Sentiment Analysis of Suicide on X Using Support Vector Machine and Naive Bayes Classifier Algorithms

Background: The World Health Organization (WHO) defines health as a state of physical, mental, and social well-being, not just the absence of disease. Mental health, essential for overall well-being, is often neglected, leading to disorders like depression, a major cause of suicide. In Indonesia, s...

Full description

Saved in:
Bibliographic Details
Main Authors: M. Fariz Fadillah Mardianto, Bagas Shata Pratama, Marfa Audilla, Elly Pusporani
Format: Article
Language:English
Published: Universitas Nusantara PGRI Kediri 2025-02-01
Series:Intensif: Jurnal Ilmiah Penelitian Teknologi dan Penerapan Sistem Informasi
Subjects:
Online Access:https://ojs.unpkediri.ac.id/index.php/intensif/article/view/23742
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1849724265051455488
author M. Fariz Fadillah Mardianto
Bagas Shata Pratama
Marfa Audilla
Elly Pusporani
author_facet M. Fariz Fadillah Mardianto
Bagas Shata Pratama
Marfa Audilla
Elly Pusporani
author_sort M. Fariz Fadillah Mardianto
collection DOAJ
description Background: The World Health Organization (WHO) defines health as a state of physical, mental, and social well-being, not just the absence of disease. Mental health, essential for overall well-being, is often neglected, leading to disorders like depression, a major cause of suicide. In Indonesia, suicide cases have surged, with 971 reported from January to October 2023. Objective: This study aims to analyze public sentiment regarding the rise in suicide cases in Indonesia using sentiment analysis methods, specifically Support Vector Machine (SVM) and Naive Bayes Classifier (NBC). The findings are expected to raise public awareness and provide policy recommendations to support mental health initiatives. Methods: One method used to understand public perception regarding the issue of suicide is text mining. This research employs text mining techniques with the Support Vector Machine (SVM) and Naive Bayes Classifier algorithms to analyze public sentiment related to suicide cases in Indonesia. Data was collected from tweets on social media platform X using crawling methods with snscrape and Python, totaling 1,175 tweets. Results: The results indicate that the Linear SVM model achieved higher accuracy than Naive Bayes in classifying tweet sentiments, with an accuracy rate of 80%. Conclusion: The SVM algorithm with a linear kernel achieved 80% accuracy and an identical ROC-AUC score. Word cloud visualization highlighted terms like "kill," "self," "depression," and "stress" as key negative sentiments. This study aims to raise public awareness and support better mental health policies in Indonesia.
format Article
id doaj-art-fa543863d56f445baccd81f8d1a2aa98
institution DOAJ
issn 2580-409X
2549-6824
language English
publishDate 2025-02-01
publisher Universitas Nusantara PGRI Kediri
record_format Article
series Intensif: Jurnal Ilmiah Penelitian Teknologi dan Penerapan Sistem Informasi
spelling doaj-art-fa543863d56f445baccd81f8d1a2aa982025-08-20T03:10:47ZengUniversitas Nusantara PGRI KediriIntensif: Jurnal Ilmiah Penelitian Teknologi dan Penerapan Sistem Informasi2580-409X2549-68242025-02-019110.29407/intensif.v9i1.23742Sentiment Analysis of Suicide on X Using Support Vector Machine and Naive Bayes Classifier AlgorithmsM. Fariz Fadillah Mardianto0Bagas Shata Pratama1Marfa Audilla2Elly Pusporani3Universitas AirlanggaUniversitas AirlanggaUniversitas AirlanggaUniversitas Airlangga Background: The World Health Organization (WHO) defines health as a state of physical, mental, and social well-being, not just the absence of disease. Mental health, essential for overall well-being, is often neglected, leading to disorders like depression, a major cause of suicide. In Indonesia, suicide cases have surged, with 971 reported from January to October 2023. Objective: This study aims to analyze public sentiment regarding the rise in suicide cases in Indonesia using sentiment analysis methods, specifically Support Vector Machine (SVM) and Naive Bayes Classifier (NBC). The findings are expected to raise public awareness and provide policy recommendations to support mental health initiatives. Methods: One method used to understand public perception regarding the issue of suicide is text mining. This research employs text mining techniques with the Support Vector Machine (SVM) and Naive Bayes Classifier algorithms to analyze public sentiment related to suicide cases in Indonesia. Data was collected from tweets on social media platform X using crawling methods with snscrape and Python, totaling 1,175 tweets. Results: The results indicate that the Linear SVM model achieved higher accuracy than Naive Bayes in classifying tweet sentiments, with an accuracy rate of 80%. Conclusion: The SVM algorithm with a linear kernel achieved 80% accuracy and an identical ROC-AUC score. Word cloud visualization highlighted terms like "kill," "self," "depression," and "stress" as key negative sentiments. This study aims to raise public awareness and support better mental health policies in Indonesia. https://ojs.unpkediri.ac.id/index.php/intensif/article/view/23742Suicide AwarenessSentiment AnalysisText MiningSupport Vector MachineNaive Bayes Classifier
spellingShingle M. Fariz Fadillah Mardianto
Bagas Shata Pratama
Marfa Audilla
Elly Pusporani
Sentiment Analysis of Suicide on X Using Support Vector Machine and Naive Bayes Classifier Algorithms
Intensif: Jurnal Ilmiah Penelitian Teknologi dan Penerapan Sistem Informasi
Suicide Awareness
Sentiment Analysis
Text Mining
Support Vector Machine
Naive Bayes Classifier
title Sentiment Analysis of Suicide on X Using Support Vector Machine and Naive Bayes Classifier Algorithms
title_full Sentiment Analysis of Suicide on X Using Support Vector Machine and Naive Bayes Classifier Algorithms
title_fullStr Sentiment Analysis of Suicide on X Using Support Vector Machine and Naive Bayes Classifier Algorithms
title_full_unstemmed Sentiment Analysis of Suicide on X Using Support Vector Machine and Naive Bayes Classifier Algorithms
title_short Sentiment Analysis of Suicide on X Using Support Vector Machine and Naive Bayes Classifier Algorithms
title_sort sentiment analysis of suicide on x using support vector machine and naive bayes classifier algorithms
topic Suicide Awareness
Sentiment Analysis
Text Mining
Support Vector Machine
Naive Bayes Classifier
url https://ojs.unpkediri.ac.id/index.php/intensif/article/view/23742
work_keys_str_mv AT mfarizfadillahmardianto sentimentanalysisofsuicideonxusingsupportvectormachineandnaivebayesclassifieralgorithms
AT bagasshatapratama sentimentanalysisofsuicideonxusingsupportvectormachineandnaivebayesclassifieralgorithms
AT marfaaudilla sentimentanalysisofsuicideonxusingsupportvectormachineandnaivebayesclassifieralgorithms
AT ellypusporani sentimentanalysisofsuicideonxusingsupportvectormachineandnaivebayesclassifieralgorithms