Identification of Erectile Dysfunction From Routine Blood Test Data: Development and Validation of a Machine Learning‐Based Prediction Model
BACKGROUND: Erectile dysfunction (ED) is a prevalent male health disorder and a recognized sentinel marker for cardiovascular disease. Current diagnostic reliance on subjective questionnaires or invasive examinations limits early screening. AIM: We aimed to develop and validate a machine learning model based on routine blood test data to predict ED risk to facilitate its early clinical screening. METHODS: Data from 4116 men in the NHANES database (2001-2004) formed the training/internal validation sets. An independent external validation set comprised 489 clinical patients with NPTR-confirmed ED. From 49 initial demographic and blood-based indicators, feature selection via univariate logistic, multivariate logistic, and LASSO regression identified nine key predictors. Seven machine learning models were constructed, optimized via grid search with fivefold cross-validation, and evaluated using ROC analysis, calibration curves, and decision curve analysis (DCA). The optimal model was interpreted via SHAP. RESULTS: The random forest model achieved superior performance, with an external validation AUC of 0.934, accuracy of 0.918, and specificity of 0.986, significantly outperforming logistic regression (AUC = 0.743). SHAP analysis identified age, sex hormone-binding globulin (SHBG), testosterone, glucose, cholesterol, and creatinine as the most influential predictors. DISCUSSION: The study established a concise, nine-feature blood test panel and validated a high-performing predictive model in an independent clinical cohort, demonstrating significant clinical net benefit. Meanwhile, this model provides an economical, non-invasive, and scalable screening tool suitable for health check-ups, facilitating early ED identification. CONCLUSION: A machine learning model based on routine blood tests can effectively evaluate ED risk, offering a novel foundation for early screening and precision management.
Authors
- Yunlong Ge (ORCID: https://orcid.org/0000-0002-9391-1780)
- Tianle Zhu (ORCID: https://orcid.org/0000-0002-2816-0175)
- W W Zhang
- Xiansheng Zhang (ORCID: https://orcid.org/0000-0001-6003-5182)
- Zhi Cao
- Pan Gao
- Peng Yang
- Yukuai Ma
Institutions
- Anhui Medical University (CN)
- First Affiliated Hospital of Anhui Medical University (CN)
- Hangzhou Medical College (CN)
Publication Details
- Journal
- Andrology
- Published
- 2026-08-14
- DOI
- https://doi.org/10.1111/andr.70358
- Primary Topic
- Sexual function and dysfunction studies
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- University Natural Science Research Project of Anhui Province