An Interpretable Machine Learning Framework Integrating Multi-Window Environmental Exposure for Hypertension Risk Assessment
Ying Zhao, Kexin YuanMachine learning (ML) models for hypertension risk prediction have predominantly relied on traditional demographic and clinical risk factors, often overlooking the temporal heterogeneity of environmental exposures. This study developed and validated an interpretable ML framework that systematically integrates multi-window cumulative PM2.5 exposure features for hypertension risk assessment. We designed a modular analytical pipeline comprising five ML algorithms—Generalized Linear Model (GLM), Lasso regression, Decision Tree, Random Forest (RF), and XGBoost—coupled with a three-layer interpretability module (variable importance, SHAP values, and partial dependence plots). The framework ingests traditional risk factors alongside cumulative PM2.5 exposure across five temporal windows (0-day, 7-day, 15-day, 30-day, and 60-day). As a validation case, the framework was applied to 2523 participant-visits from the Beijing subsample of the China Health and Nutrition Survey. Analyses were performed at the participant level, systolic and diastolic blood pressure were excluded from the predictors of the hypertension classifiers, and models were validated with person-level and year-based splits. After these corrections the five models showed realistic discrimination, with test AUCs of 0.69–0.77 and Brier scores of 0.17–0.23. Age, body mass index (BMI) and waist circumference were consistently among the most important predictors, and the 60-day PM2.5 window was the most important exposure feature. Adding the five PM2.5 window features improved test AUC by ≈0.02–0.03 in the ensemble models (p = 0.03–0.05). Window-specific adjusted analyses showed inverse associations of PM2.5 with hypertension that were stronger for longer windows. The proposed framework provides a reusable interpretable approach for incorporating multi-window environmental exposure data into cardiovascular risk prediction. Its modular design enables adaptation to other environmental exposures, health outcomes, and population cohorts, supporting both risk screening and personalized intervention strategies.