In a single-center retrospective study of 252 hospitalized lung cancer patients, five machine-learning models built from six routinely collected clinical and laboratory variables distinguished patients with physician-documented dyspnea from those without it. In an independent 76-patient test set, an artificial neural network achieved the numerically highest area under the curve (0.899; 95% confidence interval, 0.824–0.957) and lowest Brier score (0.132), though substantially overlapping confidence intervals meant no algorithm established statistical superiority. Conducted by Wenjuan He, Yan Wang, Yunjiang Wu, and colleagues at The First People’s Hospital of Guannan County and Affiliated Hospital of Yangzhou University, and published in Frontiers in Physiology, the study served as an exploratory classification and association analysis rather than a tool ready for clinical deployment or predicting new-onset dyspnea.
Dyspnea affects over half of patients with advanced lung cancer, impairing physical functioning, exercise tolerance, emotional well-being, and health-related quality of life. Cited studies linked dyspnea to prolonged hospitalization, higher healthcare utilization, poor treatment tolerance, and unfavorable survival outcomes. Prior work examined individual factors, including advanced tumor stage, pulmonary infection, malnutrition, anemia, systemic inflammation, and impaired functional status, but few studies combined inexpensive, objective variables into an explainable classification model. Because many machine-learning systems operate as black-box models without explaining how predictors drive outputs, clinician confidence can suffer. To pair classification with interpretability, the researchers applied model-agnostic Shapley Additive Explanations, or SHAP, a game theory-based framework that quantifies and visualizes each predictor’s contribution to model outputs at population and individual levels.
The team reviewed electronic medical records of lung cancer patients treated between March 2021 and September 2024, following approval from the Ethics Committee of The First People’s Hospital of Guannan County and an informed-consent waiver for anonymized data. Of 286 patients assessed, 34 were excluded: eight had another concurrent malignant tumor, 12 had insufficient documentation to determine dyspnea status, nine lacked required variable data, and five met the exclusion criterion for severe cardiac, hepatic, or renal dysfunction leading to missing data. The final complete-case cohort comprised 252 patients, including 101 (40.1%) with documented dyspnea and 151 (59.9%) without during the index hospitalization, without statistical imputation. Dyspnea was ascertained retrospectively as a binary outcome from explicit physician documentation of dyspnea, shortness of breath, or breathing difficulty, as no validated scale, severity threshold, or uniform duration criterion existed.
Unadjusted comparisons showed clear demographic, nutritional, hematologic, and disease-burden differences by dyspnea status. Patients with documented dyspnea were significantly older, with a median age of 68 years (interquartile range, 58–73.5) versus 57 years (53–68; P < 0.001) among non-dyspnea patients. Mean body mass index was lower in the dyspnea group (21.21 ± 2.63 vs. 23.29 ± 3.19 kg/m²; P < 0.001), as were mean serum albumin (36.59 ± 4.97 vs. 41.28 ± 4.56 g/L; P < 0.001) and hemoglobin (117.91 ± 16.51 vs. 129.65 ± 14.57 g/L; P < 0.001). The dyspnea group also had higher proportions of TNM stage III–IV disease (76.24% vs. 38.41%; P < 0.001) and pulmonary infection (31.68% vs. 16.56%; P = 0.005). No significant differences appeared for sex, smoking history, histological subtype, comorbidities, C-reactive protein, lymphocyte count, ECOG performance status, anticancer treatment modality, or Hospital Anxiety and Depression Scale scores (all P > 0.05).
Rather than screening predictors by univariable significance, the authors prespecified six routine variables for multivariable logistic regression and all five models: age, body mass index, serum albumin, hemoglobin, TNM stage (III–IV vs. I–II), and pulmonary infection. In multivariable regression, older age (odds ratio [OR] 1.089; 95% CI, 1.046–1.133; P < 0.001), advanced TNM stage (OR 6.675; 95% CI, 3.118–14.287; P < 0.001), and pulmonary infection (OR 2.941; 95% CI, 1.288–6.716; P = 0.01) were positively associated with documented dyspnea, while body mass index (OR 0.805; 95% CI, 0.707–0.916; P = 0.001), albumin (OR 0.817; 95% CI, 0.756–0.883; P < 0.001), and hemoglobin (OR 0.945; 95% CI, 0.921–0.968; P < 0.001) were inversely associated. In apparent in-sample receiver operating characteristic analyses, albumin showed the highest individual area under the curve (0.762; 95% CI, 0.701–0.822), ahead of hemoglobin (0.703), body mass index (0.699), TNM stage (0.689), age (0.674), and pulmonary infection (0.576, despite 83.44% specificity). The combined logistic model’s apparent area under the curve (0.904; 95% CI, 0.869–0.938) was descriptive only.
To compare logistic regression, random forest, support vector machine, artificial neural network, and XGBoost uniformly, the team split the 252-patient cohort once in a 70:30 stratified ratio using a fixed seed: 176 training patients (71 with documented dyspnea) and 76 independent test patients (30 with documented dyspnea, 46 without). Because class imbalance was not severe, no oversampling, undersampling, synthetic data generation, or class weighting was used. Preprocessing and five-fold stratified cross-validation hyperparameter tuning occurred exclusively inside the training set, with feature standardization embedded in cross-validation for logistic regression, support vector machine, and the artificial neural network, whereas random forest and XGBoost used original scales. L2 regularization, restricted hidden layers, and bounded tree parameters constrained complexity, leaving the 76-patient test set untouched until final evaluation with 5,000 stratified bootstrap resamples for confidence intervals.
In the 76-patient test set, the artificial neural network achieved the numerically highest area under the curve at 0.899 (95% CI, 0.824–0.957), with 78.9% accuracy, 80.0% sensitivity, and 78.3% specificity at a prespecified 0.50 probability threshold. Logistic regression followed at 0.890 (95% CI, 0.811–0.949; 76.3% accuracy, 76.7% sensitivity, 76.1% specificity), support vector machine reached 0.876 (95% CI, 0.793–0.941; 73.7% accuracy, 70.0% sensitivity, 76.1% specificity), random forest scored 0.830 (95% CI, 0.730–0.912; 72.4% accuracy, 60.0% sensitivity, 80.4% specificity), and XGBoost scored 0.783 (95% CI, 0.671–0.880; 75.0% accuracy, 66.7% sensitivity, 80.4% specificity). Calibration also numerically favored the artificial neural network, which had the lowest Brier score (0.132), indicating better overall probabilistic accuracy, ahead of support vector machine (0.155), random forest (0.162), logistic regression (0.179), and XGBoost (0.186). Hosmer–Lemeshow tests indicated no significant lack of fit for the artificial neural network (P = 0.831), random forest (P = 0.673), or support vector machine (P = 0.057), but significant departures for logistic regression (P = 0.004) and XGBoost (P = 0.019).
Exploratory decision-curve analysis on the same 76-patient test set showed that the artificial neural network maintained positive estimated net benefit across threshold probabilities of 0.01 to 0.80, whereas other models were less consistent at higher thresholds; without prespecified clinically actionable thresholds and given the small test set, this does not establish clinical effectiveness. To interpret the fitted artificial neural network, the team ran an exact model-agnostic interventional SHAP analysis across all 64 possible coalitions of the six predictors, using the 176-patient training set as the background distribution to calculate test-set feature contributions. By mean absolute SHAP value, advanced TNM stage ranked highest, followed by serum albumin, age, body mass index, hemoglobin, and pulmonary infection. Lower albumin, body mass index, and hemoglobin shifted predictions toward dyspnea, as did older age, advanced TNM stage, and pulmonary infection, matching the logistic regression directions.
The authors stressed that SHAP values reflect only internal model behavior, not causal relationships or independently adjusted effects. Although serum albumin ranked second in SHAP importance and highest in apparent individual discrimination, it reflects systemic inflammation, infection, disease severity, hepatic synthetic function, and hydration status alongside nutrition. Lower body mass index and hypoalbuminemia may reflect reduced physiological reserve and greater disease burden; aging reduces pulmonary elasticity and respiratory muscle strength; advanced tumor stage increases airway obstruction and pleural involvement; pulmonary infection worsens ventilation–perfusion mismatch and airway inflammation; and anemia impairs oxygen transport. Still, this retrospective observational design cannot determine mechanisms or show whether nutritional intervention or anemia correction would reduce dyspnea. Under uniform validation in this modest dataset, flexible XGBoost did not outperform simpler models, underscoring how numerical rankings can be unstable when confidence intervals overlap.
Six limitations bound interpretation of these results. First, 252 patients and a single 76-patient test set with 30 dyspnea cases leave flexible models susceptible to overfitting and split-dependent variability. Second, the single-center retrospective design lacked external or prospective validation, leaving transportability and calibration elsewhere unknown. Third, ascertaining dyspnea from routine physician notes without validated scales precluded assessing severity or persistence and risked underdocumentation, misclassification, and selection bias from excluding 12 indeterminate records. Fourth, because body mass index, laboratory markers, and pulmonary infection came from the same hospitalization without consistent timing relative to dyspnea onset, temporal leakage and reverse association could not be excluded; the models classify documented dyspnea status rather than predicting incident dyspnea. Fifth, excluding nine incomplete records for complete-case analysis may have introduced selection bias. Sixth, omitted cardiopulmonary variables, including pulmonary-function tests, oxygen saturation, COPD or emphysema, pleural effusion, airway obstruction, heart failure, and thromboembolic disease, may have caused residual confounding and shifted conditional SHAP rankings. External validation in larger prospective multicenter cohorts using standardized dyspnea instruments is required before clinical or nursing application.
Subject of Research: Explainable machine learning models classifying physician-documented dyspnea in hospitalized patients with lung cancer using routine clinical variables
Article Title: Explainable machine learning for identifying dyspnea-related clinical profiles in patients with lung cancer: a retrospective study
Article References: He, W., Wang, Y., Pan, T., Shi, Y., Zhang, Y., & Wu, Y. (2026). Explainable machine learning for identifying dyspnea-related clinical profiles in patients with lung cancer: a retrospective study. Frontiers in Physiology, 17, Article 1930512. https://doi.org/10.3389/fphys.2026.1930512
Image Credits: AI Generated
DOI: 10.3389/fphys.2026.1930512
Keywords: lung cancer, dyspnea, explainable machine learning, artificial neural network, logistic regression, random forest, support vector machine, XGBoost, SHAP analysis, serum albumin, hemoglobin, body mass index, TNM staging, pulmonary infection, retrospective study, model calibration, decision curve analysis, oncology nursing
Cite Scienmag News
Blake Davidson. (December 2, 2026). Five Machine Learning Models Classify Lung Cancer Dyspnea in Retrospective Study. Scienmag. https://scienmag.com/five-machine-learning-models-classify-lung-cancer-dyspnea-in-retrospective-study/
Blake Davidson. "Five Machine Learning Models Classify Lung Cancer Dyspnea in Retrospective Study." Scienmag, 2 December 2026, https://scienmag.com/five-machine-learning-models-classify-lung-cancer-dyspnea-in-retrospective-study/. Accessed 2 December 2026.
Blake Davidson. "Five Machine Learning Models Classify Lung Cancer Dyspnea in Retrospective Study." Scienmag. December 2, 2026. https://scienmag.com/five-machine-learning-models-classify-lung-cancer-dyspnea-in-retrospective-study/








