Answers are grounded in this paper and cite their sources.
Background Depressive symptoms are common among people living with HIV (PLHIV) and are associated with poorer antiretroviral therapy (ART) adherence and viral suppression. In rural settings, routine symptom screening may be constrained by counsellor workload and limited specialist mental health capacity. This study developed and internally evaluated ten supervised machine-learning (ML) models for identifying PHQ-9-defined probable depression among PLHIV attending ART clinics in Kadjebi District, Ghana. Methods A facility-based cross-sectional dataset of 264 adults receiving ART was analysed. Probable depression was defined as a Patient Health Questionnaire-9 (PHQ-9) score of 10 or above. Fifty-two predictors were engineered from sociodemographic, HIV-clinical, tuberculosis-service, physical-health, psychosocial, stigma and health-system variables; the nine PHQ-9 items were excluded from predictors. Data were partitioned 80:20 with stratification. Imputation and, where required, standardisation were fitted using the training partition, and SMOTE was applied only to the training data. Ten algorithms were tuned using five-fold cross-validation within the training partition. Performance on the untouched held-out test set was treated as the primary split-sample internal validation, with 5-fold x 4-repeat cross-validation of the training partition used as a secondary stability analysis. Performance metrics included AUC, sensitivity, specificity, precision, F1 score, Cohen's kappa, Brier score and calibration slope. Interpretability used permutation importance and SHapley Additive exPlanations (SHAP); decision-curve analysis was exploratory. Results PHQ-9-defined probable depression was present in 100 of 264 participants (37.9%). Random Forest was selected by the training-set cross-validation results. On the held-out test set, it achieved an AUC of 0.870, accuracy of 77.4%, sensitivity of 80.0%, specificity of 75.8%, F1 score of 0.727, Cohen's kappa of 0.536 and Brier score of 0.137. Its secondary repeated-cross-validation AUC was 0.893 (SD 0.041). Differences in cross-validated AUC among the leading algorithms were small relative to fold-to-fold variability, and no formal pairwise superiority testing was performed. Permutation importance and SHAP consistently highlighted comfort disclosing psychological difficulty, belief system, counselling and tailored mental-health service availability, perceived healthcare access and quality, sex, and perceived HIV impact. Exploratory decision-curve analysis suggested potential net benefit of model-guided PHQ-9 administration; at a threshold of 0.40, 48.9% of attendees would receive the PHQ-9 while 94% of PHQ-9-positive cases would be identified. This calculation concerns PHQ-9 administrations only and does not quantify total workflow burden. At the PHQ-9 > = 5 sensitivity threshold, Random Forest had a secondary cross-validated AUC of 0.911. Conclusion Random Forest showed promising discrimination for PHQ-9-defined probable depression in this small, single-district development study, but the findings remain proof-of-concept. Relational and service-related variables contributed strongly to prediction. Threshold analyses suggest that risk stratification could reduce the number of PHQ-9 administrations, but total counselling burden and safety were not established. External validation, development of a more parsimonious routine-workflow model, and prospective evaluation are required before clinical use; a prediction model should not replace assessment of suicide or self-harm risk.
No takes yet. Share an insight, caveat, or question.
Gmayinaam et al. (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: