Machine learning sharpens the STI signal across 54 low- and middle-income countries
Sexually transmitted infections remain a persistent public health burden, and the pattern is uneven across geography, income group, and social conditions. In a large analysis spanning 54 low- and middle-income countries, investigators used both classical machine learning and deep learning to predict self-reported STIs among sexually active men and to identify the strongest correlates of infection. The scale alone gives the work unusual weight: a weighted sample of 390,608 men aged 15 to 64 years drawn from Demographic and Health Surveys conducted between 2010 and 2024.
The central finding was not simply that STIs were present, but that they clustered in a predictable social gradient. Country income status, region, age, age at first sex, religion, education, HIV knowledge, wealth index, marital status, and place of residence all surfaced as major predictors in the best-performing model. In practical terms, the analysis moves the discussion beyond broad prevalence estimates and into the territory of risk stratification, where prevention programs can be aimed more precisely.
One figure stands out immediately: 4.44% of men reported STIs overall, with a 95% confidence interval of 3.46% to 5.43%.
Regional and income gradients were steep, and they were not random
The prevalence estimates varied sharply by country and by region. Liberia carried the highest reported prevalence at 18.66%, followed by Lesotho at 15.91% and Uganda at 13.32%. At the other end of the spectrum, Jordan showed 0.05%, Kyrgyzstan 0.50%, and Armenia 0.38%. Such variation is difficult to dismiss as statistical noise alone, especially when the same hierarchy appears at the regional level. Sub-Saharan Africa had the highest prevalence at 5.50%, Asia followed at 3.99%, Latin America was lower at 1.03%, and the Middle East and North Africa recorded the lowest prevalence at 0.13%.
The income gradient was similarly blunt. Low-income countries had the highest prevalence at 5.53%, lower middle-income countries were close behind at 5.19%, and upper middle-income countries showed the lowest prevalence at 1.15%. These differences likely reflect more than transmission biology. They fit with the broader mechanics of STI risk: unequal access to testing, treatment delays, lower HIV and sexual health literacy, and structural barriers that make timely care harder to reach. Sexual health outcomes are often shaped by the visibility of services, the affordability of care, and the degree to which preventive counseling reaches younger men before risk accumulates.
CatBoost outperformed the competing models on prediction metrics
Among the algorithms tested, CatBoost delivered the strongest performance. It achieved an accuracy of 80.10%, an AUC of 88.80%, precision of 76.00%, and recall of 89.00%. Those metrics matter because STI prediction is not just a classification exercise; a useful model must identify a meaningful share of true cases without losing too many men who actually report infection. High recall is especially relevant in this setting, where missed cases can delay treatment, prolong transmission, and weaken prevention efforts.
The comparison with logistic regression, random forest, LightGBM, AdaBoost, XGBoost, multilayer perceptron, and TabNet shows how nonlinear methods can capture interactions that classical models may flatten. Age, wealth, education, and place of residence do not act in isolation. A younger man with limited education living in a rural setting may face a very different risk profile from an older urban man with the same reported sexual history. Tree-based gradient boosting can detect these layered relationships more effectively than a single linear boundary.
The strongest predictors map to social exposure and health access
The SHAP analysis based on the CatBoost model identified the leading predictors of self-reported STIs in a consistent order of importance: country income status, region, age, age at first sex, religion, education, HIV knowledge, wealth index, marital status, and place of residence. Several of these factors likely work through the same underlying pathways. Earlier sexual debut can lengthen lifetime exposure. Lower HIV knowledge may track with broader gaps in sexual health literacy. Wealth and education often determine whether a person can seek care quickly, recognize symptoms, and navigate stigma.
Residence matters because urban and rural environments do not offer the same health infrastructure, diagnostic reach, or health messaging. Marital status can also modify exposure patterns and care-seeking behavior, though it should never be treated as a proxy for behavior without caution. Religion may reflect community norms, service access, or differences in sexual health communication, while country income status captures a bundle of structural conditions that are rarely visible in individual-level data alone.
These predictors are clinically useful because they point to where interventions are likely to have the greatest yield. A prevention strategy centered only on individual behavior would miss the structural drivers embedded in the data. A better approach would combine sexual health education, earlier screening, partner services, and community-based outreach in settings where the burden is highest.
Self-reported infection has limits, but the signal is still actionable
Self-reported STI status is not the same as laboratory-confirmed infection. Reporting may be shaped by symptom recognition, stigma, recall bias, or access to prior diagnosis. Men who have never been tested may underreport infection, while others may report past episodes rather than current disease. Even with those constraints, the sample size and geographic breadth make the pattern difficult to ignore. A prevalence of 4.44% across more than 390,000 sexually active men suggests a substantial unmet prevention need.
The broader public health message is direct. Where burden is concentrated, prevention should be concentrated too. The data support targeted interventions in sub-Saharan Africa, in low-income settings, and among men with lower education, lower wealth, limited HIV knowledge, and earlier sexual debut. Machine learning will not replace surveillance or laboratory diagnosis, but it can help health systems rank risk more intelligently when resources are scarce.
Clinical meaning for STI control programs
For STI control programs in LMICs, the study points toward a more stratified model of action. Men in high-burden countries and regions should not be treated as a uniform population. Risk varies enough to justify local tailoring, especially where prevention budgets are tight and syndromic case management still dominates routine care. The performance of CatBoost suggests that health data systems may benefit from predictive tools that are sensitive to nonlinear interactions rather than relying solely on conventional regression frameworks.
What remains unresolved is whether these models would retain the same performance in prospective, real-time screening systems, or whether they would weaken when applied outside survey data. The analysis also cannot substitute for laboratory confirmation, and self-report will always leave some uncertainty around true infection status. Even so, the combination of large-scale survey data, sharp regional gradients, and strong model performance creates a practical case for targeted STI prevention strategies built around social and structural risk, not just individual behavior.
DOI
The study is indexed in BMC Infectious Diseases and is linked to DOI 10.1186/s12879-026-13010-5.
- • Journal Study DOI 10.1186/s12879-026-13010-5: https://doi.org/10.1186/s12879-026-13010-5