Implementation of Machine Learning Techniques for Depression in Text Messages: A Survey

Divya Dewangan*, Smita Selot**, Sreejit Panicker***
*-** Department of Computer Application, Shri Shankaracharya Technical Campus, Bhilai, Durg, Chhattisgarh, India.
*** Department of Computer Application, Lovely Professional University, Panjab, India.
Periodicity:December - February'2022


Depression is a disease or problem associated with high levels of stress seen in humans. It is uncomfortable in talking to parents, psychologists, and healthcare professionals in general. So a virtual platform is much more suitable for sharing your emotions, for example, a chatbot that provides the user with a comfort zone, acting as a friend or well-wisher. Extracting and identifying emotions from text messages to detect depressive mood is a challenging task because it involves removing natural language ambiguities. Over the past decade, researchers have proposed various state-ofthe- art methods for detecting depressive moods in text. This paper aims to analyze such methods and present a comparison based on detection accuracy. The virtual platform provides an end-user interface for communication. The system understands the meaning and context of a sentence using Natural Language Processing (NLP), word embedding, and machine learning techniques. NLP does the preprocessing and extracts the mental health-related keywords. Word embedding converts the extracted keywords into embedding vectors that can be understood by Machine learning algorithms, it can also analyze and extract users' feelings by examining and calculating levels of depression and classifying the user as depressed or not. This paper showed that the support vector machine is the preferred algorithm over other machine learning algorithms and provides higher accuracy.


Machine Learning Techniques, Depression Detection, Natural Language Processing, Mental Disorder.

How to Cite this Article?

Dewangan, D., Selot, S., and Panicker, S. (2022). Implementation of Machine Learning Techniques for Depression in Text Messages: A Survey. i-manager’s Journal on Computer Science, 9(4), 13-20.


[1]. Anderson, J. E., Michalak, E. E., & Lam, R. W. (2002). Depression in primary care: tools for screening, diagnosis, and measuring response to treatment. British Columbia Medical Journal, 44(8), 415-419.
[2]. Bhargava, M., Varshney, R., & Anita, R. (2020). Emotionally Intelligent ChatBot for Mental Healthcare and Suicide Prevention. International Journal of Advanced Science and Technology, 29(6), 2597–2605.
[3]. Chowdhary, K. (2020). Natural language processing. Fundamentals of Artificial Intelligence, 603-649.
[4]. Deshpande, M., & Rao, V. (2017, December). Depression detection using emotion artificial intelligence. In 2017 International Conference on Intelligent Sustainable Systems (ICISS) (pp. 858-862). IEEE.
[5]. Ding, Y., Chen, X., Fu, Q., & Zhong, S. (2020). A depression recognition method for college students using deep integrated support vector algorithm. IEEE Access, 8, 75616-75629.
[6]. Hemanthkumar, M., & Latha, A. (2019). Depression detection with sentiment analysis of tweets. International Research Journal of Engineering and Technology (IRJET), 6(5), 1197- 1201.
[7]. Islam, M., Kabir, M. A., Ahmed, A., Kamal, A. R. M., Wang, H., & Ulhaq, A. (2018). Depression detection from social network data using machine learning techniques. Health Information Science and Systems, 6(1), 1-12.
[8]. Kamite, S. R., & Kamble, V. B. (2020, October). Detection of depression in social media via twitter using machine learning approach. In 2020 International Conference on Smar t Innovations in Design, Environment, Management, Planning and Computing (ICSIDEMPC) (pp. 122-125). IEEE.
[9]. Kasthuri, S., & Jebaseeli, A. N. (2020). An efficient Decision Tree Algorithm for analyzing the Twitter Sentiment Analysis. Journal of Critical Reviews, 7(4), 1010-1018.
[10]. Kemp, S. (2022). Retrieved from https://blog.
[11]. Kumar, A. (2021). Machine Learning – Feature Selection vs Feature Extraction. Retrieved from
[12]. Priya, A., Garg, S., & Tigga, N. P. (2020). Predicting anxiety, depression and stress in modern life using machine learning algorithms. Procedia Computer Science, 167, 1258-1267.
[13]. Ray, S. (2017). 6 Easy Steps to Learn Naive Bayes Algorithm with codes in Python and R. Retrieved From
[14]. Safa, R., Bayat, P., & Moghtader, L. (2022). Automatic detection of depression symptoms in twitter using multimodal analysis. The Journal of Supercomputing, 78(4), 4709-4744.
[15]. Tadesse, M. M., Lin, H., Xu, B., & Yang, L. (2019). Detection of depression-related posts in reddit social media forum. IEEE Access, 7, 44883-44893.
[16]. World Health Organization. (n.d.). Retrieved from depression
[17]. Yalamanchili, B., Kota, N. S., Abbaraju, M. S., Nadella, V. S. S., & Alluri, S. V. (2020, February). Real-time acoustic based depression detection using machine learning techniques. In 2020 International Conference on Emerging Trends in Information Technology and Engineering (ic-ETITE) (pp. 1-6). IEEE.
[18]. Zulfiker, M. S., Kabir, N., Biswas, A. A., Nazneen, T., & Uddin, M. S. (2021). An in-depth analysis of machine learning approaches to predict depression. Current Research in Behavioral Sciences, 2, 100044.
If you have access to this article please login to view the article or kindly login to purchase the article

Purchase Instant Access

Single Article

North Americas,UK,
Middle East,Europe
India Rest of world
Pdf 35 35 200 20
Online 35 35 200 15
Pdf & Online 35 35 400 25

Options for accessing this content:
  • If you would like institutional access to this content, please recommend the title to your librarian.
    Library Recommendation Form
  • If you already have i-manager's user account: Login above and proceed to purchase the article.
  • New Users: Please register, then proceed to purchase the article.