Large language models in spirometry interpretation: impact of guideline-based prompting
Related Experiment Video
Updated: Nov 1, 2026

Combining Volumetric Capnography And Barometric Plethysmography To Measure The Lung Structure-function Relationship
Published on: January 8, 2019
Muazzez Elçin Özkan, Damla Serçe Unat, Ömer Selim Unat
1Orhan Meral, Department of Forensic Medicine, İzmir Bakırçay University, Faculty of Medicine, 35665 Izmir, Türkiye, orhan.meral@bakircay.edu.tr.
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.
Related Concept Videos
Pulmonary Function Tests
Pulmonary Function Tests are crucial diagnostic tools for assessing respiratory function, particularly in patients with chronic respiratory disorders. They comprehensively evaluate lung volumes, ventilatory function, breathing mechanics, diffusion, and gas exchange. These tests help diagnose pulmonary diseases and play a significant role in monitoring disease progression, evaluating disability, and assessing response to therapy.
PFTs involve using a spirometer, a...
Chronic Obstructive Pulmonary Disease-IV: Assessement and Diagnostic Studies
Medical History
Respiratory Volumes
Tidal Volume (TV) Tidal volume (TV) is the air inhaled or exhaled in a...
Assessment of Airway, Skin Color, and Use of Accessory Muscles
Introduction
The initial evaluation of a patient's respiratory system...
Mechanical Ventilation I: Indication and Settings
Mechanical Ventilation III: Noninvasive Ventilation
Noninvasive Positive-Pressure Ventilation (NIPPV)
