Large language models in spirometry interpretation: impact of guideline-based prompting.
AIM: To compare the performance of ChatGPT and Gemini with pulmonologist assessment in spirometry interpretation based on European Respiratory Society and American Thoracic Society (ERS/ATS) standards and to evaluate the effect of structured guideline-based prompting on diagnostic accuracy. METHODS: This cross-sectional diagnostic study involved 500 anonymized spirometry reports. Quality control (QC) assessment and ventilatory pattern classification were based on pulmonologist consensus as the reference standard. The same cases were evaluated by ChatGPT and Gemini before and after structured guideline-based prompting derived from ERS/ATS criteria. Analyses were restricted to 362 tests deemed interpretable by all groups. Agreement was assessed with McNemar and McNemar-Bowker tests, and diagnostic performance was evaluated with class-specific and overall multiclass measures. RESULTS: Both models correctly extracted all numerical spirometric parameters but overestimated test interpretability compared with specialists (all P<0.001). Among the 362 tests interpretable by all groups, ChatGPT's overall multiclass accuracy increased from 72.1% to 74.0% after prompting (κ=0.582 to 0.608), whereas Gemini's accuracy remained 69.9% (κ=0.552 in both phases). ChatGPT's sensitivity for obstructive patterns increased from 60.0% to 63.6%, whereas Gemini's decreased from 32.7% to 19.1%; sensitivity for mixed patterns remained low. Errors predominantly involved misclassification of obstructive patterns as restrictive or mixed. CONCLUSION: Guideline-based prompting produced model-specific and class-specific effects rather than a uniform improvement in diagnostic performance. Neither model reliably differentiated all ventilatory patterns. These findings support specialist-supervised, human-in-the-loop use and warrant standardized validation before clinical or medicolegal implementation.
Authors
- Mutlu Onur Güçsav (ORCID: https://orcid.org/0000-0003-2969-4766)
- Ömer Selim Unat (ORCID: https://orcid.org/0000-0002-5708-2233)
- Orhan Meral (ORCID: https://orcid.org/0000-0002-7159-1595)
- Onur Akçay (ORCID: https://orcid.org/0000-0002-7233-2122)
- Muazzez Elçin Özkan (ORCID: https://orcid.org/0000-0003-0946-3653)
- Erdal Ilhan (ORCID: https://orcid.org/0009-0001-6865-2131)
- Damla Serçe Unat
- Mukaddes Hande Özgen
- Dilara Özdemir
Institutions
- Bakırçay Üniversitesi (TR)
Publication Details
- Journal
- PubMed
- Published
- 2026-10-31
- Primary Topic
- Artificial Intelligence in Healthcare and Education
- Type
- article
- Field-Weighted Citation Impact
- 0.00