Understanding Mental Health through Sentiment Analysis: using Machine Learning to Analyze Social Media for Emotional Insights

This paper examines the use of sentiment analysis to detect mental health conditions from social media posts using machine learning techniques. A dataset of over 53,000 labelled posts was processed, employing logistic regression for classification. Feature extraction was conducted through TF- IDF and sentiment polarity analysis. The model yields an overall accuracy of 87% in classifying conditions such as Anxiety, Bipolar, and Normal. On the other hand, this model has failed in the face of class imbalance and the threat of closely related categories such as Suicidal, Anxiety, and Depression since the sentiments are often too similar. Moreover, it was a big challenge for specification to mark those sarcastic and ambiguous statements in social network posts. The challenges in feature engineering, class imbalance, and the efficiency of the models used mean that future works should target overcoming these challenges by improving feature engineering, handling class imbalances, and using more sophisticated models such as transformers, with the ultimate aim of achieving real-time monitoring of mental health.

Authors

Institutions

Publication Details

Published
2024-11-18
DOI
https://doi.org/10.1109/icdici62993.2024.10810855
Citations
8
Primary Topic
Mental Health via Writing
Type
article
Field-Weighted Citation Impact
5.15
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Understanding Mental Health through Sentiment Analysis: using Machine Learning to Analyze Social Media for Emotional Insights

Abhinav Rathour, Eshika Jain
8 citations
Mental Health via Writing
5.15
article

Understanding Mental Health through Sentiment Analysis: using Machine Learning to Analyze Social Media for Emotional Insights

Abhinav Rathour, Eshika Jain
article en
8 citations

Abstract

This paper examines the use of sentiment analysis to detect mental health conditions from social media posts using machine learning techniques. A dataset of over 53,000 labelled posts was processed, employing logistic regression for classification. Feature extraction was conducted through TF- IDF and sentiment polarity analysis. The model yields an overall accuracy of 87% in classifying conditions such as Anxiety, Bipolar, and Normal. On the other hand, this model has failed in the face of class imbalance and the threat of closely related categories such as Suicidal, Anxiety, and Depression since the sentiments are often too similar. Moreover, it was a big challenge for specification to mark those sarcastic and ambiguous statements in social network posts. The challenges in feature engineering, class imbalance, and the efficiency of the models used mean that future works should target overcoming these challenges by improving feature engineering, handling class imbalances, and using more sophisticated models such as transformers, with the ultimate aim of achieving real-time monitoring of mental health.

Chitkara University (IN)
Reduced inequalities
Openalex Percentile: Top 4%
Mental Health via Writing
5.15
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.