Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

Predicting depression among men who have sex with men in Ghana using machine learning algorithms

Domain:

healthcare

Record type:

paper
Creator:
AbdLaRLeoVin
Publisher:
Pub
Host:
Men who have sex with men (MSM) in Ghana face heightened risks of depression due to pervasive stigma, social exclusion, and legal discrimination. Despite this, depression remains underdiagnosed and undertreated in this population. This study applied seven tree-based machine learning (ML) models using tree-based classifiers: Decision Tree, Random Forest, Gradient Boosting, AdaBoost, XGBoost, LightGBM, and CatBoost to identify key psychosocial predictors of depression in a sample of 225 MSM aged 18–60 years. The dataset included sociodemographic variables, perceived stress (PSS), social isolation (internal and external), behavioural risk indicators, and stigma-related measures. After handling missing values, data were pre-processed with feature standardization and one-hot encoding. The Synthetic Minority Over-Sampling Technique was applied to address class imbalance. Model performance was evaluated using 5-fold cross-validation and metrics such as accuracy, precision, recall, F1 score, and ROC AUC. Among all models, Random Forest achieved the highest accuracy for the prediction of depression amongst MSM in Ghana. Feature importance analysis revealed that external social isolation (ExtSocialIso2), perceived stress (PSS14), and stigma due to same-sex behaviour (StigmaSSB9) were the most consistent predictors of depression. Variables related to resilience, gender non-conformity stigma, and sense of community belonging also contributed significantly. Depression among MSM in Ghana is closely linked to social isolation, stress, and identity-based stigma. Machine learning models, especially ensemble methods, can effectively identify individuals at risk. These findings underscore the need for culturally tailored mental health interventions and inclusive policies that address stigma and promote social support among MSM in Ghana.

Visit

doi.org

Licenses

http://creativecommons.org/licenses/by/4.0/

Similar

Violence and depression among men who have sex with men in TanzaniaPredicting HIV Status among Men Who Have Sex with Men in Bulawayo & Harare, Zimbabwe Using Bio-Behavioural Data, Recurrent Neural Networks, and Machine Learning TechniquesCorrelates of Rectal Douching Practices Among Men Who Have Sex With Men in KenyaRectal gonorrhoea and chlamydia among men who have sex with men in coastal KenyaHIV prevalence and factors associated with HIV infection among men who have sex with men in CameroonCapture-Recapture Among Men Who Have Sex With Men and Among Female Sex Workers in 11 Towns in Uganda (Preprint)

Violence and depression among men who have sex with men in Tanzania

Abstract Background Men who have sex with men (MSM) continue to be at an increased risk of Violence,

Predicting HIV Status among Men Who Have Sex with Men in Bulawayo & Harare, Zimbabwe Using Bio-Behavioural Data, Recurrent Neural Networks, and Machine Learning Techniques

HIV and AIDS continue to be major public health concerns globally. Despite significant progress in a

Correlates of Rectal Douching Practices Among Men Who Have Sex With Men in Kenya

Background Among men who have sex with men (MSM), rectal douching (RD) has been associ

Rectal gonorrhoea and chlamydia among men who have sex with men in coastal Kenya

Background: Men who have sex with men (MSM) experience a high burden of

HIV prevalence and factors associated with HIV infection among men who have sex with men in Cameroon

Introduction Despite men who have sex with men (MSM) being a key population for HIV programming glo

Capture-Recapture Among Men Who Have Sex With Men and Among Female Sex Workers in 11 Towns in Uganda (Preprint)

BACKGROUND Key populations at higher risk for HIV infection, including peo