Deep Learning Utilizing Suboptimal Spirometry Data to Improve Lung Function and Mortality Prediction in the UK Biobank

Davin Hill, Max Torop, Aria Masoomi, Peter J. Castaldi, Edwin K. Silverman, Sandeep Bodduluri, Surya P. Bhatt, Taedong Yun, Cory Y. McLean, Farhad Hormozdiari, Jennifer Dy, Michael H. Cho, Brian D. HobbsmedRxiv 2023

Abstract: MHC is supported by NIH R01HL137927, R01HL135142, HL147148, and HL089856. BDH is supported by NIH K08HL136928, U01 HL089856, and an Alpha-1 Foundation Research Grant. DH is supported by NIH 2T32HL007427-41EKS is supported by NIH R01 HL152728, R01 HL147148, U01 HL089856, R01 HL133135, P01 HL132825, and P01 HL114501. PJC is supported by NIH R01HL124233 and R01HL147326. SPB is supported by NIH R01HL151421 and UH3HL155806. TY, FH, and CYM are employees of Google LLC.

Introduction

Spirometry is the gold-standard test for respiratory health, requiring patients to perform maximal forced expiratory maneuvers. Because the test is highly effort-dependent, clinical guidelines mandate multiple attempts to ensure reproducibility. Currently, only the "best" efforts—those meeting strict Quality Control (QC) criteria—are utilized for clinical decision-making. "Submaximal" or "failed" attempts are typically discarded as noise.

The authors hypothesize that these discarded efforts contain "hidden" signals about a patient's underlying lung physiology or performance variability, which could serve as a biomarker. The challenge lies in developing a model capable of identifying consistent health signatures across both "perfect" and "failed" attempts.

Methods: The Spiro-CLF Framework

The researchers introduced the Spirogram-based Contrastive Learning Framework (Spiro-CLF) to extract features from raw spirometry data.

  1. Contrastive Learning: Instead of immediate supervised training, the model uses a self-supervised pretext task. It learns to recognize that different efforts from the same individual should have similar mathematical representations, while efforts from different individuals should remain distinct.
  2. Data Transformations: The model processes three distinct "views" of each breath: Volume-Time, Flow-Time, and Flow-Volume curves.
  3. Architecture: A 1D Convolutional Neural Network (CNN) with six blocks captures temporal relationships in the breathing data.
  4. Downstream Tasks: The learned "lung signature" (a 100-dimensional vector) is used to predict airflow obstruction (FEV1/FVC < 0.7) and all-cause mortality using linear models and Cox proportional hazards regression.
Spiro-CLF training and downstream prediction workflow.

Datasets and Quality Control

The study leveraged the UK Biobank, analyzing 940,705 volume-time curves from 352,684 participants. A significant portion of this data would typically be excluded from clinical analysis: 24.1% of efforts failed standard QC, and 37.5% were categorized as submaximal.

Distribution of QC-passing and QC-failing efforts in the dataset.

The data was split into training (60%), validation (20%), and a held-out test set (20%).

Key Insights: "Trash" as a Signal

The most striking finding is that "bad" data is highly informative. Spiro-CLF predicted airflow obstruction with an AUROC of 0.981 using only the efforts that clinicians would normally discard. By using contrastive learning, the model achieves invariance to effort, learning features of the lung that remain constant even when the patient does not blow perfectly. This suggests AI can "see through" poor patient effort to the underlying pathology. Furthermore, the inability to perform a perfect test (due to frailty or disease) may itself be a potent predictor of health outcomes.

Key Results

  • Superior Mortality Prediction: Spiro-CLF achieved a C-index of 0.654 for all-cause mortality, significantly outperforming traditional metrics like FEV1 (0.590) or the FEV1/FVC ratio (0.599) derived from the "best" effort.
  • High Diagnostic Accuracy: For predicting lung impairment (FEV1PP < 80%), the model achieved an AUROC of 0.863 using only discarded data, nearly matching the performance of models using "best" data (0.881).
  • Interpretability: Using Asymmetric Shapley Values (ASV), researchers confirmed the model focuses on the first 1000ms of the breath—the same region clinicians prioritize for Peak Expiratory Flow (PEF) and FEV1—validating the physiological relevance of the learned features.

Limitations and Future Work

The UK Biobank cohort is predominantly white and subject to "healthy volunteer" bias, necessitating validation in more diverse populations. Additionally, clinical integration would require real-time processing of raw spirometer data. Future iterations of Spiro-CLF could incorporate demographic covariates (age, height, sex) to further refine "percent predicted" calculations and improve clinical utility.

Summary updated

BibTeX
@misc{hill2023deep,
  author = {Davin Hill and Max Torop and Aria Masoomi and Peter J. Castaldi and Edwin K. Silverman and Sandeep Bodduluri and Surya P. Bhatt and Taedong Yun and Cory Y. McLean and Farhad Hormozdiari and Jennifer Dy and Michael H. Cho and Brian D. Hobbs},
  title = {{Deep Learning Utilizing Suboptimal Spirometry Data to Improve Lung Function and Mortality Prediction in the UK Biobank}},
  year = {2023},
  doi = {10.1101/2023.04.28.23289178},
  howpublished = {medRxiv},
}
Figure