IJCOPE Journal

UGC Logo DOI / ISO Logo

International Journal of Creative and Open Research in Engineering and Management

A Peer-Reviewed, Open-Access International Journal Supporting Multidisciplinary Research, Digital Publishing Standards, DOI Registration, and Academic Indexing.
Journal Information
ISSN: 3108-1754 (Online)
Crossref DOI: Available
ISO Certification: 9001:2015
Publication Fee: 599/- INR
Compliance: UGC Journal Norms
License: CC BY 4.0
Peer Review: Double Blind
Volume 02, Issue 05

Published on: May 2026

MENTAL HEALTH ANALYSIS USING SOCIAL MEDIA POSTS USING MACHINE LEARNING AND NLP TECHNIQUES

Soumitra Das Anish Dhar Suchetana Laha Shirsha Hazra Shivam Debnath Suvankar Barai

Department of Computational Sciences, Brainware University

Article Status

Plagiarism Passed Peer Reviewed Open Access

Available Documents

Abstract

Mental health disorders such as depression, anxiety, and suicidal tendencies have become major concerns in modern society. Social media platforms provide a large amount of textual data where individuals frequently express emotions, stress, and psychological conditions. This research presents a machine learning and Natural Language Processing (NLP)-based framework for analyzing social media posts to predict mental health conditions automatically. The proposed system performs text preprocessing using techniques such as lowercase conversion, stop-word removal, special character elimination, and text normalization. TF-IDF vectorization is applied to transform textual data into numerical feature vectors suitable for machine learning classification. Multiple machine learning algorithms including Logistic Regression, Naive Bayes, Support Vector Machine (SVM), Random Forest, and Dummy Classifier were implemented and compared using evaluation metrics such as Accuracy, Precision, Recall, and F1-score. The dataset consisted of approximately 40,000 social media records categorized into Suicide, Depression, Anxiety, and Normal classes along with demographic information such as age, gender, and location. Experimental results demonstrated that Random Forest and SVM achieved the best classification performance with an accuracy of approximately 57.6%. The study also performed demographic analysis to identify age-wise, gender-wise, and location-based mental health patterns. The proposed framework demonstrates the practical application of NLP and machine learning techniques for automated mental health prediction and awareness generation using social media analytics.

Keywords— Mental Health Analysis; Machine Learning; Natural Language Processing; TF-IDF; Social Media Analytics; Sentiment Classification

How to Cite this Paper

Das, S., Dhar, A., Laha, S., Hazra, S., Debnath, S. & Barai, S. (2026). Mental Health Analysis Using Social Media Posts Using Machine Learning and NLP Techniques. International Journal of Creative and Open Research in Engineering and Management, <i>02</i>(05). https://doi.org/10.55041/ijcope.v2i5.714

Das, Soumitra, et al.. "Mental Health Analysis Using Social Media Posts Using Machine Learning and NLP Techniques." International Journal of Creative and Open Research in Engineering and Management, vol. 02, no. 05, 2026, pp. . doi:https://doi.org/10.55041/ijcope.v2i5.714.

Das, Soumitra,Anish Dhar,Suchetana Laha,Shirsha Hazra,Shivam Debnath, and Suvankar Barai. "Mental Health Analysis Using Social Media Posts Using Machine Learning and NLP Techniques." International Journal of Creative and Open Research in Engineering and Management 02, no. 05 (2026). https://doi.org/https://doi.org/10.55041/ijcope.v2i5.714.

Search & Index

References


  • Mikolov, K. Chen, G. Corrado, and J. Dean, “Efficient Estimation of Word Representations in Vector Space,” Proc. ICLR, 2013.

  • Devlin, M. Chang, K. Lee, and K. Toutanova, “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding,” Proc. NAACL, 2019.

  • Cortes and V. Vapnik, “Support-Vector Networks,” Machine Learning, vol. 20, no. 3, pp. 273–297, 1995.

  • Joachims, “Text Categorization with Support Vector Machines,” European Conference on Machine Learning, pp. 137–142, 1998.

  • Pedregosa et al., “Scikit-learn: Machine Learning in Python,” Journal of Machine Learning Research, vol. 12, pp. 2825–2830, 2011.

  • Bird, E. Klein, and E. Loper, Natural Language Processing with Python. Sebastopol, CA: O’Reilly Media, 2009.

  • Goldberg, “A Primer on Neural Network Models for Natural Language Processing,” Journal of Artificial Intelligence Research, vol. 57, pp. 345–420, 2016.

  • Hassan, “Depression Detection from Social Media Text Using Machine Learning,”International Journal of Data Science, vol. 8, no. 2, pp. 120–130, 2022.

  • Ji, C. Pan, X. Li, E. Cambria, and P. Long, “Suicidal Ideation Detection: A Review of Machine Learning Methods and Applications,” IEEE Transactions on Computational Social Systems, vol. 8, no. 1, pp. 214–226, 2021.

  • Goodfellow, Y. Bengio, and A. Courville, Deep Learning. Cambridge, MA: MIT Press, 2016.

Ethical Compliance & Review Process

  • All submissions are screened under plagiarism detection.
  • Review follows editorial policy.
  • Authors retain copyright.
  • Peer Review Type: Double-Blind Peer Review
  • Published on: May 23 2026
CCBYNC

This article is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. You are free to share and adapt this work for non-commercial purposes with proper attribution.

View License
Scroll to Top