Machine learning approaches have been increasingly applied to social media text data for mental health risk detection. However, existing studies vary widely in target outcomes, data sources, labeling strategies, and evaluation practices, and a structured overview of recent research remains limited. This scoping review aims to map the recent research landscape of machine learning–based mental health risk detection using social media text data. Following PRISMA ScR guidelines, peer reviewed journal articles published between January 2021 and January 2026 were retrieved from PubMed, Web of Science, and IEEE Xplore. Studies applying machine learning or deep learning methods to social media text data for mental health risk detection were included and synthesized descriptively. A total of 136 studies were identified. Most focused on depression, anxiety, and suicide or self-harm related risks. Mental health risk was predominantly operationalized through proxy indicators derived from user-generated content, with limited use of survey-linked or clinically anchored labels. Traditional machine learning, deep learning, and Transformer-based models coexisted, alongside substantial heterogeneity in validation strategies and performance metrics. Current research primarily targets proxy-based mental health risk signals rather than clinical diagnoses. This review clarifies prevailing research emphases and methodological practices, and supports the use of social media–based approaches for population-level monitoring and early risk identification.
| [1] |
Abbas, M. A., K. Munir, A. Raza, N. A. Samee, M. M. Jamjoom, and Z. Ullah. 2024. “Novel Transformer Based Contextualized Embedding and Probabilistic Features for Depression Detection From Social Media.” IEEE Access 12: 54087–54100. https://doi.org/10.1109/ACCESS.2024.3387695.
|
| [2] |
Ahmed, A., S. Aziz, C. T. Toro, et al. 2022. “Machine Learning Models to Detect Anxiety and Depression Through Social Media: A Scoping Review.” Computer Methods and Programs in Biomedicine Update 2: 100066. https://doi.org/10.1016/j.cmpbup.2022.100066.
|
| [3] |
Baydili, İ., B. Tasci, and G. Tasci. 2025. “Deep Learning-Based Detection of Depression and Suicidal Tendencies in Social Media Data With Feature Selection.” Behavioral Science 15, no. 3: 352. https://doi.org/10.3390/bs15030352.
|
| [4] |
Helmy, A., R. Nassar, and N. Ramdan. 2024. “Depression Detection for Twitter Users Using Sentiment Analysis in English and Arabic Tweets.” Artificial Intelligence in Medicine 147: 102716. https://doi.org/10.1016/j.artmed.2023.102716.
|
| [5] |
Hussain, Z., E. Wegmann, H. Yang, and C. Montag. 2020. “Social Networks Use Disorder and Associations With Depression and Anxiety Symptoms: A Systematic Review of Recent Research in China.” Frontiers in Psychology 11: 211. https://doi.org/10.3389/fpsyg.2020.00211.
|
| [6] |
Kabir, M. K., M. Islam, A. N. B. Kabir, A. Haque, and M. K. Rhaman. 2022. “Detection of Depression Severity Using Bengali Social Media Posts on Mental Health: Study Using Natural Language Processing Techniques.” JMIR Formative Research 6, no. 9: e36118. https://doi.org/10.2196/36118.
|
| [7] |
Kaminsky, Z., R. J. McQuaid, K. G. Hellemans, et al. 2024. “Machine Learning–Based Suicide Risk Prediction Model for Suicidal Trajectory on Social Media Following Suicidal Mentions: Independent Algorithm Validation.” Journal of Medical Internet Research 26: e49927. https://doi.org/10.2196/49927.
|
| [8] |
Kangshun, L., W. Chen, and Y. Lei. 2023. “ Emotion Analysis of Weibo Based on Long Short-Term Memory Neural Network.” In International Symposium on Intelligence Computation and Applications, 463–470, Springer Nature Singapore.
|
| [9] |
Kim, S., J. Cha, D. Kim, and E. Park. 2023. “Understanding Mental Health Issues in Different Subdomains of Social Networking Services: Computational Analysis of Text-Based Reddit Posts.” Journal of Medical Internet Research 25: e49074. https://doi.org/10.2196/49074.
|
| [10] |
Mirea, D. M., N. A. Martin-Key, G. Barton-Owen, et al. 2021. “Impact of a Web-Based Psychiatric Assessment on the Mental Health and Well-Being of Individuals Presenting With Depressive Symptoms: Longitudinal Observational Study.” JMIR Mental Health 8, no. 2: e23813. https://doi.org/10.2196/23813.
|
| [11] |
Moitra, M., S. Owens, M. Hailemariam, et al. 2023. “Global Mental Health: Where We Are and Where We Are Going.” Current Psychiatry Reports 25, no. 7: 301–311. https://doi.org/10.1007/s11920-023-01426-8.
|
| [12] |
Pierce, J., M. Conway, K. Grace, and J. Mikal. 2024. “Identifying Factors Associated With Heightened Anxiety During Breast Cancer Diagnosis Through the Analysis of Social Media Data on Reddit: Mixed Methods Study.” JMIR Cancer 10, no. 1: e52551. https://doi.org/10.2196/52551.
|
| [13] |
Tahir, W. B., S. Khalid, S. Almutairi, M. Abohashrh, S. A. Memon, and J. Khan. 2025. “Depression Detection in Social Media: A Comprehensive Review of Machine Learning and Deep Learning Techniques.” IEEE Access 13: 12789–12818. https://doi.org/10.1109/ACCESS.2025.3530862.
|
| [14] |
Tricco, A. C., E. Lillie, W. Zarin, et al. 2018. “PRISMA Extension for Scoping Reviews (PRISMA-ScR): Checklist and Explanation.” Annals of Internal Medicine 169, no. 7: 467–473. https://doi.org/10.7326/M18-0850.
|
| [15] |
Wang, Y., and N. Zhao. 2022. “Prediction Model of Interaction Anxiousness Based on Weibo Data.” Frontiers in Public Health 10: 1045605. https://doi.org/10.3389/fpubh.2022.1045605.
|
| [16] |
Xin, C., and L. Q. Zakaria. 2024. “Integrating BERT With CNN and BiLSTM for Explainable Detection of Depression in Social Media Contents.” IEEE Access 12: 161203–161212. https://doi.org/10.1109/ACCESS.2024.3488081.
|
| [17] |
Xu, X., J. Liu, and J. H. Liu. 2024. “The Effect of Social Media Environments on Online Emotional Disclosure: Tie Strength, Network Size and Self-Reference.” Online Information Review 48, no. 2: 390–408. https://doi.org/10.1108/OIR-04-2022-0245.
|
| [18] |
Yang, J., D. Jiang, and X. Deng. 2025. “Advancing Mental Health Detection Through Transfer Learning and Feature Fusion: Mitigating Data Imbalance in Large Transformer Models.” Electronics 14, no. 23: 4596. https://doi.org/10.3390/electronics14234596.
|
| [19] |
Zarate, D., M. Ball, M. Prokofieva, V. Kostakos, and V. Stavropoulos. 2023. “Identifying Self-Disclosed Anxiety on Twitter: A Natural Language Processing Approach.” Psychiatry Research 330: 115579. https://doi.org/10.1016/j.psychres.2023.115579.
|
| [20] |
Zhang, Z., J. Zhu, Z. Guo, Y. Zhang, Z. Li, and B. Hu. 2024. “Natural Language Processing for Depression Prediction on Sina Weibo: Method Study and Analysis.” JMIR Mental Health 11: e58259. https://doi.org/10.2196/58259.
|
RIGHTS & PERMISSIONS
2026 The Author(s). PsyCh Journal published by Institute of Psychology, Chinese Academy of Sciences and John Wiley & Sons Australia, Ltd.