ThermalAnalysisDSC_TGAQualityChecker

Thermal Analysis DSC/TGA

LabEx laboratory QC CSV→JSON URS & FS utilities / cleanroom
Open selection
Thermal Analysis DSC/TGA Quality Checker — Thermal Analysis (DSC/TGA)

ℹ️  Utility assesses thermal properties of pharmaceutical substances using Differential Scanning Calorimetry (DSC) and Thermogravimetric Analysis (TGA):
     • Melting Onset and Peak Temperature — criteria for identity and purity
     • Enthalpy of Fusion (ΔH) — indicator of crystallinity degree and energy stability
     • Thermal Decomposition Onset (TGA Onset) — thermal stability limit
     • Mass Loss on Heating (LOD) — moisture or volatile solvent content
     • Residue after Ignition (Ash) — inorganic impurity content
     • Polymorphic form identification by thermal profile

⚠️  CRITICAL: Shift in melting temperature or change in enthalpy may indicate impurities, solvates, or polymorph change!
     Polymorphism critically affects drug solubility and bioavailability.

Usage:
  ThermalAnalysisDSC_TGAQualityChecker.exe                            → demo mode (console output)
  ThermalAnalysisDSC_TGAQualityChecker.exe input.csv output.json      → evaluate your data

Input format:
BatchNumber,ProductName,DSC_OnsetTemp_C,DSC_PeakTemp_C,DSC_Entalpy_Jg,TGA_OnsetDecomp_C,TGA_WeightLossPercent_105C,TGA_ResiduePercent_600C,PolymorphForm

Example:
  TA-2026-API-001,Carbamazepine,189.5,191.2,145.0,210.0,0.15,0.05,Form III

— WHY IS THIS NEEDED?
Thermal analysis is a key tool for characterizing the solid state of a substance.
It allows distinguishing amorphous form from crystalline, identifying polymorphs, detecting solvates, and assessing thermal stability of drying or sterilization processes.

⚠️  CRITICAL:
• DSC Onset/Peak: Must match reference standard within ±1-2°C.
• Enthalpy: Decrease in enthalpy may indicate reduced crystallinity (amorphization).
• TGA Onset: Substance must not decompose at processing temperatures (e.g., during granulation).
• Mass Loss: Sharp mass loss before melting point often indicates presence of solvate (pseudopolymorph).
• Polymorphism: Different forms have different melting points and enthalpies. Wrong form can lead to batch recall.

Key features:
• Comprehensive analysis of DSC and TGA data
• Control of polymorphic purity
• Assessment of thermal stability and volatiles
• Generation of reports for regulatory dossiers and LIMS LabWare
• Compliance with USP <891> and Ph. Eur. 2.2.34 / 2.2.35

Critical parameters:
• DSC Onset: within specification (e.g., 188-192°C)
• DSC Peak: within specification
• Enthalpy: ≥ specified minimum (e.g., 130 J/g)
• TGA Onset Decomposition: ≥ specified minimum
• Mass Loss (105°C): ≤ 0.5% (example)
• Residue (600°C): ≤ 0.1%
• Polymorphic Form: Strict compliance (e.g., Form III)

💡 Usage tips:
1. Calibration: Instrument must be calibrated with indium, tin, and zinc before measurement series.
2. Heating Rate: Standard rate 10°C/min. Deviations affect peak temperature.
3. Atmosphere: Use nitrogen or argon to prevent sample oxidation.
4. Sample Mass: Usually 2-10 mg. Too large mass worsens heat transfer.
5. Interpretation: Broad endothermic peak may indicate mixture of polymorphs or amorphous phase.

⚠️ Note: DSC and TGA are often used together. DSC shows phase transitions (melting, glass transition), while TGA confirms whether the transition is accompanied by mass loss (evaporation, decomposition) or not.

input.csv

BatchNumber,ProductName,DSC_OnsetTemp_C,DSC_PeakTemp_C,DSC_Entalpy_Jg,TGA_OnsetDecomp_C,TGA_WeightLossPercent_105C,TGA_ResiduePercent_600C,PolymorphForm
TA-2026-API-001,Carbamazepine API,189.5,191.2,145.0,210.0,0.15,0.05,Form III
TA-2026-API-002,Carbamazepine API,185.0,187.5,120.0,208.0,1.20,0.08,Form I

URS & FS — Thermal Analysis DSC/TGA

This document describes the user requirements and functional specification for ThermalAnalysisDSC_TGAQualityChecker. The utility is intended for QC laboratory use as a rule-based check of data prepared from an instrument, LIMS, ELN, MES or an approved input.csv.

URS — User Requirements Specification

IDRequirementCriticalityAcceptance criterion
URS-001The utility shall accept input.csv with approved columns: BatchNumber, ProductName, DSC_OnsetTemp_C, DSC_PeakTemp_C, DSC_Entalpy_Jg, TGA_OnsetDecomp_C, TGA_WeightLossPercent_105C, TGA_ResiduePercent_600C, PolymorphForm.HighThe CSV file is processed without manual header editing.
URS-002The utility shall perform deterministic evaluation for “Thermal Analysis DSC/TGA” without machine learning.HighThe same input data produce the same JSON result.
URS-003The utility shall validate mandatory fields, numeric formats, flags, ranges and domain plausibility.HighSchema and conversion errors are explicitly reported.
URS-004The utility shall generate output.json with PASS / WARNING / FAIL statuses, source values, warnings and failures.HighThe JSON result is suitable for review, deviation investigation and integration.
URS-005The documentation shall support IQ/OQ/PQ or CSV/CSA verification.MediumURS/FS, CSV/JSON contract and test scenarios are supplied with the utility.

input.csv contract

#FieldSamplePurpose
1BatchNumberTA-2026-API-001Input parameter for deterministic QC evaluation.
2ProductNameCarbamazepine APIInput parameter for deterministic QC evaluation.
3DSC_OnsetTemp_C189.5Input parameter for deterministic QC evaluation.
4DSC_PeakTemp_C191.2Input parameter for deterministic QC evaluation.
5DSC_Entalpy_Jg145.0Input parameter for deterministic QC evaluation.
6TGA_OnsetDecomp_C210.0Input parameter for deterministic QC evaluation.
7TGA_WeightLossPercent_105C0.15Input parameter for deterministic QC evaluation.
8TGA_ResiduePercent_600C0.05Input parameter for deterministic QC evaluation.
9PolymorphFormForm IIIInput parameter for deterministic QC evaluation.

FS — Functional Specification

IDFunctionImplementation
FS-001CSV importRead input.csv; validate header, column count and encoding.
FS-002Schema validationCheck required fields and permitted input values.
FS-003Rule engineApply domain rules, limits and system suitability/specification checks described in the source utility description.
FS-004Status aggregationProduce final status: FAIL for critical failure, WARNING for non-critical deviation, PASS for conformance.
FS-005JSON exportWrite machine-readable output.json for LIMS/ELN/MES and QA/QC review.

OQ/PQ scenarios

  • OQ-001: a valid sample row shall be processed without schema error.
  • OQ-002: a missing mandatory column shall produce a schema error.
  • OQ-003: a non-numeric value in a numeric field shall produce a conversion error.
  • OQ-004: a critical parameter outside the limit shall produce FAIL or a critical finding.
  • PQ-001: user real batches shall be checked with retention of input.csv, output.json, utility version and checksum.

Included in packages

LabEx QC Suite

LabEx package for laboratory QC methods: chromatography, spectroscopy, microbiology, sterility, endotoxins, particles, dissolution, water, cleanrooms and sample preparation.

Open

Neurology QC Suite

QC package for neurology and neuropsychiatry: antiepileptics, antiparkinsonian medicines, antidepressants, antipsychotics, analgesics and neurological diagnostic radiopharmaceuticals.

Open

Radiology QC Suite

QC package for radiology and diagnostic imaging: radiopharmaceuticals, PET/SPECT, contrast media, iodinated and gadolinium products, plus particle, sterility and endotoxin checks.

Open