NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Deep learning for spirometry quality assurance with spirometric indices and curves

Yimin Wang, Yicong Li, Wenya Chen, Changzheng Zhang, Li-juan Liang, Ruibo Huang, Jianling Liang, Dandan Tu, Yi Gao, Jinping Zheng, Nanshan ZhongRespiratory 2022

Abstract

The proposed model assisted GPs in spirometry quality assurance, resulting in enhancing the performance of GPs in quality control of spirometry.

Introduction

Spirometry is the fundamental "gold standard" for diagnosing and monitoring respiratory diseases such as asthma and chronic obstructive pulmonary disease (COPD). However, the accuracy of these tests is highly dependent on patient effort and the clinician's ability to perform real-time quality control (QC). Artifacts such as coughs, early termination, or glottis closure can render the data unusable. While specialists can readily identify these issues, general practitioners (GPs) in primary care settings often lack the specialized training required to enforce the strict 2019 ATS/ERS (American Thoracic Society/European Respiratory Society) standards. This study introduces a deep learning framework designed to automate spirometry quality assurance and bridge this expertise gap.

Methods

The researchers developed a hybrid framework consisting of three integrated modules:

  1. Data Preprocessing Module: This module extracts numerical indices (e.g., FEV1, FVC) and generates standardized curve images from raw spirometry data.
  2. Rule Module: An algorithmic component that evaluates quantitative criteria against the 2019 ATS/ERS guidelines, such as ensuring exhalation lasts at least 6 seconds.
  3. Object Detection Module: The core innovation utilizes a ResNet50 architecture. This computer vision module is trained to identify and localize visual artifacts within flow-volume and volume-time curves.

By combining numerical rule-checking with visual intuition, the system assigns a quality grade (A–F) and provides actionable feedback to the clinician.

Examples of spirometric artifacts (cough, obstructed mouthpiece, and glottis closure) identified by the object detection module.

Datasets and Validation

The model was developed and validated using a multi-stage approach:

  • Internal Development: 16,502 spirometry files from the First Affiliated Hospital of Guangzhou Medical University were used, with 14,124 files for training and 1,569 for internal testing.
  • External Validation: 360 curves from three independent hospitals were used to test the model's generalizability across different clinical environments.
  • Prospective Clinical Study: The system was deployed to 30 GPs across 10 primary care units in China over a three-month period to measure its real-world impact on test quality.

Key Results

The model demonstrated high technical performance and significant clinical utility:

  • Accuracy: In internal testing, the framework achieved 95.1% accuracy for FEV1 acceptability and 93.6% for FVC.
  • Clinical Impact: The most significant finding was the improvement in GP performance. Before AI assistance, GPs achieved "Good Quality" (Grades A, B, or C) in only 52.8% of FVC maneuvers. With the AI system, this rose to 89.0% (a 36.2% absolute increase). Similarly, FEV1 quality improved from 70.8% to 91.8%.
  • Educational Value: The percentage of high-quality tests increased steadily over the study period, suggesting that the real-time feedback helped GPs improve their own technical skills over time.

Discussion and Limitations

The study highlights the potential for AI to serve as both a quality gatekeeper and a teaching tool in primary care. Unlike previous "black box" models, the use of object detection allows the system to point to specific errors, making its decisions interpretable for clinicians.

However, some limitations remain. The model currently struggles with detecting air leaks around the mouthpiece due to a lack of such examples in the high-quality training data. Additionally, while the internal dataset was large, the external validation set was relatively small. Future research will focus on larger multi-center trials and refining the model to detect a broader range of rare artifacts.

Conclusion

Automating spirometry quality assurance using deep learning significantly enhances the reliability of lung function testing in primary care. By providing real-time, interpretable feedback, the system ensures that clinical decisions are based on high-quality data, ultimately improving patient care for respiratory conditions.

Summary updated

BibTeX
@inproceedings{wang2022deep,
  author = {Yimin Wang and Yicong Li and Wenya Chen and Changzheng Zhang and Li-juan Liang and Ruibo Huang and Jianling Liang and Dandan Tu and Yi Gao and Jinping Zheng and Nanshan Zhong},
  title = {{Deep learning for spirometry quality assurance with spirometric indices and curves}},
  booktitle = {Respiratory},
  year = {2022},
  doi = {10.1186/s12931-022-02014-9},
}
Figure