ThermalAnalysisDSC_TGAQualityChecker
Thermal Analysis DSC/TGA
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
| ID | Requirement | Criticality | Acceptance criterion |
|---|---|---|---|
| URS-001 | The 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. | High | The CSV file is processed without manual header editing. |
| URS-002 | The utility shall perform deterministic evaluation for “Thermal Analysis DSC/TGA” without machine learning. | High | The same input data produce the same JSON result. |
| URS-003 | The utility shall validate mandatory fields, numeric formats, flags, ranges and domain plausibility. | High | Schema and conversion errors are explicitly reported. |
| URS-004 | The utility shall generate output.json with PASS / WARNING / FAIL statuses, source values, warnings and failures. | High | The JSON result is suitable for review, deviation investigation and integration. |
| URS-005 | The documentation shall support IQ/OQ/PQ or CSV/CSA verification. | Medium | URS/FS, CSV/JSON contract and test scenarios are supplied with the utility. |
input.csv contract
| # | Field | Sample | Purpose |
|---|---|---|---|
| 1 | BatchNumber | TA-2026-API-001 | Input parameter for deterministic QC evaluation. |
| 2 | ProductName | Carbamazepine API | Input parameter for deterministic QC evaluation. |
| 3 | DSC_OnsetTemp_C | 189.5 | Input parameter for deterministic QC evaluation. |
| 4 | DSC_PeakTemp_C | 191.2 | Input parameter for deterministic QC evaluation. |
| 5 | DSC_Entalpy_Jg | 145.0 | Input parameter for deterministic QC evaluation. |
| 6 | TGA_OnsetDecomp_C | 210.0 | Input parameter for deterministic QC evaluation. |
| 7 | TGA_WeightLossPercent_105C | 0.15 | Input parameter for deterministic QC evaluation. |
| 8 | TGA_ResiduePercent_600C | 0.05 | Input parameter for deterministic QC evaluation. |
| 9 | PolymorphForm | Form III | Input parameter for deterministic QC evaluation. |
FS — Functional Specification
| ID | Function | Implementation |
|---|---|---|
| FS-001 | CSV import | Read input.csv; validate header, column count and encoding. |
| FS-002 | Schema validation | Check required fields and permitted input values. |
| FS-003 | Rule engine | Apply domain rules, limits and system suitability/specification checks described in the source utility description. |
| FS-004 | Status aggregation | Produce final status: FAIL for critical failure, WARNING for non-critical deviation, PASS for conformance. |
| FS-005 | JSON export | Write 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
FAILor 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.
OpenNeurology QC Suite
QC package for neurology and neuropsychiatry: antiepileptics, antiparkinsonian medicines, antidepressants, antipsychotics, analgesics and neurological diagnostic radiopharmaceuticals.
OpenRadiology 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