Development of an interpretable machine learning model associated with multiple heavy metal exposures to identify depression among US adults from 2005 to 2020

The association between heavy metal exposure and increased susceptibility to depression is well established. This study aimed to develop an interpretable predictive model for depression based on heavy metal exposure levels using data from the National Health and Nutrition Examination Survey (2005–2020). Multiple machine learning algorithms, including AdaBoost, decision tree, k-nearest neighbors, random forest, support vector machine, and XGBoost were evaluated to determine the optimal model for predicting depressive disorder. Model interpretability was enhanced through an integrated pipeline combining permutation feature importance analysis, partial dependence plots, and Shapley additive explanations. Data from 5,092 eligible participants were randomly partitioned into training and validation sets. The random forest model demonstrated the strongest performance, achieving an accuracy of 90%, an area under the curve of 0.9, and an F1-score of 0.47 in the validation set. Key metals identified as influential predictors included blood mercury, urinary tungsten, urinary thallium, and blood cadmium with contribution weights of 2.16% ± 0.19%, 1.26% ± 0.10%, 0.79% ± 0.10%, and 0.66% ± 0.08%, respectively. Partial dependence analysis revealed inverse associations between depression risk and both blood mercury (0.1–0.62 µg/L) and urinary thallium (0.011–0.12 µg/L) within specific concentration ranges. Conversely, urinary tungsten (0.013–0.096 µg/L) and blood cadmium (0.068–0.29 µg/L) exhibited positive correlations. Interaction analysis further indicated that mercury and tungsten showed potential interaction as primary determinants of depression risk. Our findings highlight the potential of specific heavy metals as predictive biomarkers and demonstrate the power of interpretable machine learning in uncovering complex environment-health associations.

Authors

Institutions

Publication Details

Journal
BMC Psychiatry
Published
2026-10-31
DOI
https://doi.org/10.1186/s12888-026-08837-w
Primary Topic
Heavy Metal Exposure and Toxicity
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Development of an interpretable machine learning model associated with multiple heavy metal exposures to identify depression among US adults from 2005 to 2020

Houfeng Zhou, Yang Xu, Yuting Fan, Yuanxin Guo et al.
BMC Psychiatry
Heavy Metal Exposure and Toxicity
article

Development of an interpretable machine learning model associated with multiple heavy metal exposures to identify depression among US adults from 2005 to 2020

Houfeng Zhou, Yang Xu, Yuting Fan, Yuanxin Guo, Yu Xiao
article en

Abstract

The association between heavy metal exposure and increased susceptibility to depression is well established. This study aimed to develop an interpretable predictive model for depression based on heavy metal exposure levels using data from the National Health and Nutrition Examination Survey (2005–2020). Multiple machine learning algorithms, including AdaBoost, decision tree, k-nearest neighbors, random forest, support vector machine, and XGBoost were evaluated to determine the optimal model for predicting depressive disorder. Model interpretability was enhanced through an integrated pipeline combining permutation feature importance analysis, partial dependence plots, and Shapley additive explanations. Data from 5,092 eligible participants were randomly partitioned into training and validation sets. The random forest model demonstrated the strongest performance, achieving an accuracy of 90%, an area under the curve of 0.9, and an F1-score of 0.47 in the validation set. Key metals identified as influential predictors included blood mercury, urinary tungsten, urinary thallium, and blood cadmium with contribution weights of 2.16% ± 0.19%, 1.26% ± 0.10%, 0.79% ± 0.10%, and 0.66% ± 0.08%, respectively. Partial dependence analysis revealed inverse associations between depression risk and both blood mercury (0.1–0.62 µg/L) and urinary thallium (0.011–0.12 µg/L) within specific concentration ranges. Conversely, urinary tungsten (0.013–0.096 µg/L) and blood cadmium (0.068–0.29 µg/L) exhibited positive correlations. Interaction analysis further indicated that mercury and tungsten showed potential interaction as primary determinants of depression risk. Our findings highlight the potential of specific heavy metals as predictive biomarkers and demonstrate the power of interpretable machine learning in uncovering complex environment-health associations.

BMC Psychiatry
Chengdu Fifth People's Hospital (CN), Chengdu University of Traditional Chinese Medicine (CN)
Openalex Percentile: Top 17%
Heavy Metal Exposure and Toxicity
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon