AUTHOR=Ren Fengchun , Zhao Xiao , Yang Qin , Liao Huaqiang , Zhang Yudong , Liu Xuemei TITLE=A machine learning framework for predicting cognitive impairment in aging populations using urinary metal and demographic data JOURNAL=Frontiers in Genetics VOLUME=Volume 16 - 2025 YEAR=2025 URL=https://www.frontiersin.org/journals/genetics/articles/10.3389/fgene.2025.1631228 DOI=10.3389/fgene.2025.1631228 ISSN=1664-8021 ABSTRACT=IntroductionCognitive impairment in older adults poses a significant global public health concern, with environmental metal exposure emerging as a major risk factor. However, the combined effects of multiple metals and the modulatory roles of demographic variables remain insufficiently explored.MethodsThis study analyzed data from four NHANES cycles (1999–2000, 2001–2002, 2011–2012, 2013–2014), comprising 1,230 participants aged ≥ 60 years. Urinary concentrations of nine metals and creatinine were quantified in conjunction with demographic variables. Cognitive status was classified using data-driven quartile thresholds on the Digit Symbol Substitution Test, CERAD Word-Learning Test, and Animal Fluency tests. Six machine learning algorithms were trained and evaluated using sensitivity (SN), specificity (SP), accuracy (ACC), Matthews correlation coefficient (MCC) and AUC.ResultsThe eXtreme gradient boosting (XGBoost) model demonstrated superior performance across all metrics (SN = 0.78, SP = 0.84, ACC = 0.81, MCC = 0.62, AUC = 0.90), and was selected for subsequent interpretation. SHAP analysis identified educational level, age, race/ethnicity, and creatinine as primary predictors. Elevated thallium and molybdenum levels and reduced barium levels also contributed to cognitive risk. Ultimately, a user-friendly webserver was deployed for the predictive model and is freely accessed at http://bio-medical.online/admxp/.DiscussionThe associated webserver enables accessible risk screening and underpins precision prevention strategies in aging populations.