Back

Development and External Validation of a Machine Learning Model to Predict Restriction from Spirometry

Moffett, A. T.; Balasubramanian, A.; McCormack, M. C.; Aysola, J.; Ungar, L. H.; Halpern, S. D.; Weissman, G. E.

2025-01-02 respiratory medicine
10.1101/2025.01.02.25319890 medRxiv
Show abstract

BackgroundThough European Respiratory Society and American Thoracic Society (ERS/ATS) guidelines for pulmonary function test (PFT) interpretation recommend the use of the forced vital capacity (FVC) lower limit of normal (LLN) to exclude restriction, recent data suggest that the negative predictive value (NPV) of the FVC LLN is lower than has been accepted, particularly among non-Hispanic Black patients. We sought to develop and externally validate a machine learning (ML) model to predict restriction from spirometry and determine whether its use may improve the accuracy and equity of PFT interpretation. MethodsWe included PFTs with both static and dynamic lung volume measurements for patients between 18 and 80 years of age who were tested at pulmonary diagnostic labs within two health systems. We used PFTs from one health system to train logistic regression, random forest, and boosted tree models to predict restriction using demographic, anthropometric, and spirometric data. We used PFTs from the second health system to externally validate these models. The primary measure of model performance was the NPV. Racial equity was assessed by comparing the NPV among non-Hispanic Black and non-Hispanic White patients. FindingsA total of 42 462 PFTs were used for model development and 24 524 for external validation. The prevalence of restriction was 29.8% in the development dataset and 39.6% in the validation dataset. All three ML models outperformed the FVC LLN by a wide margin, both overall and among all demographic subgroups. The overall NPV of the random forest model (88.3%, 95% confidence interval [CI] 87.8% to 88.9%) was significantly greater than that of the FVC LLN (72.7%, 95% CI 72.1% to 73.3%). The NPV of the random forest model was greater than that of the FVC LLN among both non-Hispanic Black (74.6% [95% CI 72.5% to 76.6%] versus 49.5% [95% CI 47.8% to 51.2%]) and non-Hispanic White (90.9% [95% CI 90.3% to 91.5%] versus 79.6% [95% CI 78.9% to 80.3%]) patients. InterpretationML models to exclude restriction from spirometry improve the accuracy and equity of PFT interpretation but do not fully eliminate racial differences.

Matching journals

The top 4 journals account for 50% of the predicted probability mass.

1
Annals of the American Thoracic Society
11 papers in training set
Top 0.1%
30.8%
2
BMJ Open Respiratory Research
35 papers in training set
Top 0.1%
7.8%
3
European Respiratory Journal
59 papers in training set
Top 0.1%
7.2%
4
PLOS ONE
5266 papers in training set
Top 26%
6.2%
50% of probability mass above
5
Scientific Reports
3612 papers in training set
Top 21%
4.8%
6
American Journal of Respiratory and Critical Care Medicine
43 papers in training set
Top 0.2%
4.3%
7
Thorax
35 papers in training set
Top 0.2%
4.3%
8
Respiratory Research
21 papers in training set
Top 0.1%
4.3%
9
ERJ Open Research
47 papers in training set
Top 0.2%
4.0%
10
CHEST
14 papers in training set
Top 0.1%
3.2%
11
European Radiology
15 papers in training set
Top 0.2%
2.6%
12
Clinical Epidemiology
10 papers in training set
Top 0.2%
1.1%
13
BMJ Open
601 papers in training set
Top 11%
1.1%
14
Journal of Cystic Fibrosis
15 papers in training set
Top 0.1%
1.0%
15
npj Digital Medicine
118 papers in training set
Top 3%
1.0%
16
JAMA Network Open
130 papers in training set
Top 3%
0.9%
17
The Journal of Heart and Lung Transplantation
11 papers in training set
Top 0.4%
0.8%
18
Pulmonary Circulation
10 papers in training set
Top 0.3%
0.8%
19
Heliyon
152 papers in training set
Top 8%
0.8%
20
Cancers
213 papers in training set
Top 5%
0.8%
21
PLOS Digital Health
106 papers in training set
Top 4%
0.8%
22
eClinicalMedicine
77 papers in training set
Top 2%
0.8%
23
Frontiers in Digital Health
24 papers in training set
Top 1%
0.8%
24
Pediatric Pulmonology
14 papers in training set
Top 0.2%
0.6%
25
Open Forum Infectious Diseases
142 papers in training set
Top 3%
0.6%