Large language models in spirometry interpretation: impact of guideline-based prompting.
Muazzez Elçin Özkan, Damla Serçe Unat, Ömer Selim Unat, Mutlu Onur Güçsav, Mukaddes Hande Özgen, Dilara Özdemir, Erdal İlhan, Orhan Meral,
Orhan Meral, Department of Forensic Medicine, İzmir Bakırçay University, Faculty of Medicine, 35665 Izmir, Türkiye, orhan.meral@bakircay.edu.tr.
Key points
From the paper's 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.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Accuracy and reproducibility of a large language model in assessing spirometry test acceptability and interpretation: a performance study.Frontiers in medicine · 2026
- The Role and Diagnostic Accuracy of Artificial Intelligence in Pulmonary Function Tests: A Systematic Review.Current health sciences journal · 2026
- Version-Specific Performance of ChatGPT in Audiogram Interpretation: Comparison of ChatGPT-4.0 and ChatGPT-5.1.Otolaryngology--head and neck surgery : official journal of American Academy of Otolaryngology-Head and Neck Surgery · 2026
- ChatGPT Versus DeepSeek in Resectability Categorization of Chronic Rhinosinusitis: A Comparison Based on EPOS 2020.World journal of otorhinolaryngology - head and neck surgery · 2026
- Accuracy of ChatGPT-4o and Gemini-1.5-Pro in AI-assisted videolaryngological assessment.European archives of oto-rhino-laryngology : official journal of the European Federation of Oto-Rhino-Laryngological Societies (EUFOS) : affiliated with the German Society for Oto-Rhino-Laryngology - Head and Neck Surgery · 2026
- Clinical accuracy, safety, triage, and test-retest consistency of general-purpose large language models for patient-centred respiratory questions: a blinded paired benchmarking study.Frontiers in medicine · 2026