Abstract & Overview
This study proposes an explainable machine learning framework for smoking-associated health risk assessment and counterfactual analysis. The objective is to estimate the probability of a model-defined Health Risk Status and examine how this estimated probability changes under a hypothetical modification of smoking status. The study uses the publicly available Body Signal of Smoking dataset from Kaggle, comprising 55,692 records with demographic, anthropometric, physiological, laboratory, and behavioral variables. Health Risk Status was constructed as a binary modeling target by classifying individuals as high risk when at least three of ten selected physiological indicators exceeded their corresponding 75th-percentile thresholds calculated from the training data. This target does not represent a clinically diagnosed disease outcome. The target-generating indicators were excluded from the predictor matrix to reduce direct target leakage. XGBoost was used as the primary model, with sensitivity and ablation analyses examining alternative risk definitions and the contribution of smoking status. Comparative evaluation showed that Random Forest achieved the highest discrimination (ROC-AUC = 0.8920), while XGBoost achieved a ROC-AUC of 0.8348 and was retained for its integration with probability-based counterfactual analysis and SHAP interpretation. Counterfactual analysis compared the observed smoking state with a hypothetical non-smoking state while holding other observed characteristics constant. SHAP analysis identified gender, waist circumference, and LDL as influential predictors, while SHAP stability analysis supported the consistency of the principal feature rankings. The framework provides a model-based approach for assessing health-risk sensitivity to hypothetical smoking-status changes; these estimates should not be interpreted as causal effects or observed clinical outcomes of smoking cessation.