Intelligent Pulmonary Risk Profiling Machine Learning Framework for Obstructive Airway Disease Detection and Severity Stratification
Abstract
Accurate differentiation of asthma, Chronic Obstructive Pulmonary Disease (COPD), and bronchitis remains a significant challenge because these respiratory conditions share common symptoms such as persistent cough, wheezing, and shortness of breath while requiring different treatment strategies. This study presents a comparative evaluation of three machine learning classifiers: Logistic Regression (LR), Random Forest (RF), and Decision Tree (DT), using a dataset of 2,000 patient records spanning five clinical domains, including demographic, environmental, physical, lifestyle, and hereditary factors, together with presenting symptoms.The proposed framework addresses three prediction tasks: binary asthma detection, asthma severity classification, and multi-class disease-type classification. Model performance was evaluated using Repeated Stratified K-Fold cross-validation (5 folds × 10 repeats) to obtain reliable and unbiased performance estimates. Probability calibration was assessed using the Brier Score and Expected Calibration Error (ECE), while class imbalance was addressed through SMOTE oversampling and class-weight adjustment. Model interpretability was further enhanced using SHAP-based local explanations.Experimental results show that Logistic Regression achieved the best overall performance, with an accuracy of 97.0%, a weighted F1-score of 0.97, and the best-calibrated probability estimates. Decision Tree achieved an accuracy of 94.0% while providing transparent if-then decision rules suitable for clinical interpretation. Random Forest achieved perfect positive-class precision (1.00) but lower recall because of class imbalance. Feature importance analysis consistently identified wheezing, breathlessness, smoking, pollution level, and allergy status as the most influential predictors across all three classifiers. The proposed framework also supports the analysis of asthma-COPD overlap (ACO) phenotypes and incorporates a rule-based clinical recommendation engine to provide clinically relevant decision support.