Machine Learning-Based Classification of Suicidal Ideation in Tweets: A Sentiment Analysis Approach

Suicide appears to have reached the highest public health importance, with social media like Twitter providing an infinite source of information that may help in the detection of ideation. This paper describes the development of an effective machine learning-based model for the classification of suicidal ideation in tweets using sentiment analysis. An assembly was done with a dataset of 9,120 tweets; they were labelled according to the suicidal thoughts expressed in them. We presented the assembly and preprocessing of a dataset consisting of 9,120 tweets designated based on indicative or non-indicative suicidal thoughts. The preprocessing steps consisted of normalization, tokenization, stop word removal, and lemmatization. Five ML models, namely Support Vector Machine (SVM), Multinomial Naive Bayes (MNB), Random Forest (RF), Stochastic Gradient Descent (SGD), and Logistic Regression (LR), were further trained on the selected dataset. The models are tested for standard classification metrics: accuracy, precision, recall, F1-Score, and AUC. The best performance for the model was Random Forest with 95.135% and an F1-Score of 95.094%. In conclusion, our study established that an amalgamation of sentiment analysis in ML models can have the potential to detect early suicidal tendencies and that it lays a platform for timely interventions. Future research should be focused on making the dataset even larger and enhancing the detection of sarcasm and jokes in the models.

Authors

Institutions

Publication Details

Published
2024-11-20
DOI
https://doi.org/10.1109/icimcis63449.2024.10956416
Primary Topic
Mental Health via Writing
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Machine Learning-Based Classification of Suicidal Ideation in Tweets: A Sentiment Analysis Approach

Brilly Andro Makalew, Irma Kartika Wairooy, Orsino Jerrell Bruinier, Vladimir Elwin Leonard
Mental Health via Writing
article

Machine Learning-Based Classification of Suicidal Ideation in Tweets: A Sentiment Analysis Approach

Brilly Andro Makalew, Irma Kartika Wairooy, Orsino Jerrell Bruinier, Vladimir Elwin Leonard
article en

Abstract

Suicide appears to have reached the highest public health importance, with social media like Twitter providing an infinite source of information that may help in the detection of ideation. This paper describes the development of an effective machine learning-based model for the classification of suicidal ideation in tweets using sentiment analysis. An assembly was done with a dataset of 9,120 tweets; they were labelled according to the suicidal thoughts expressed in them. We presented the assembly and preprocessing of a dataset consisting of 9,120 tweets designated based on indicative or non-indicative suicidal thoughts. The preprocessing steps consisted of normalization, tokenization, stop word removal, and lemmatization. Five ML models, namely Support Vector Machine (SVM), Multinomial Naive Bayes (MNB), Random Forest (RF), Stochastic Gradient Descent (SGD), and Logistic Regression (LR), were further trained on the selected dataset. The models are tested for standard classification metrics: accuracy, precision, recall, F1-Score, and AUC. The best performance for the model was Random Forest with 95.135% and an F1-Score of 95.094%. In conclusion, our study established that an amalgamation of sentiment analysis in ML models can have the potential to detect early suicidal tendencies and that it lays a platform for timely interventions. Future research should be focused on making the dataset even larger and enhancing the detection of sarcasm and jokes in the models.

Binus University (ID)
Reduced inequalities
Openalex Percentile: Top 64%
Mental Health via Writing
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.

Machine Learning-Based Classification of Suicidal Ideation in Tweets: A Sentiment Analysis Approach — Brilly Andro Makalew, Irma Kartika Wairooy, et al. · (2024) | TGRS Research Map | TGRS