Tweet Sentiment Analysis to Detect Suicide Intentions Through a Machine Learning Approach to Big Data Using the Naive Bayes Method
DOI:
https://doi.org/10.70609/gtech.v9i1.6154Keywords:
Sentiment Analysis, Machine Learning Approaches, Big Data, Mental Health, TwitterAbstract
Suicidal ideation is a serious mental health problem and is often difficult to detect in its early stages. Social media, especially Twitter, is one of the platforms widely used by individuals to express their feelings and emotional conditions, including expressions of suicidal ideation. This study aims to develop a machine learning model that can analyze the sentiment of tweets related to suicidal ideation using big data. The data used in this study consisted of tweets that had been processed for sentiment analysis, which were then classified into three sentiment categories, namely positive, negative, and neutral. The machine learning model applied was Naive Bayes. The results of the model evaluation showed that this model had an accuracy of 72%, with precision and recall values varying depending on the sentiment category. The highest precision was recorded in the negative and neutral categories (0.91), while the highest recall was recorded in the positive category (0.97). This study provides insight into the potential use of machine learning-based sentiment analysis to detect signs of suicidal ideation through big data from social media that can help in early detection of mental health problems.
References
Al Maeni, N., Suarna, N., & Prihartono, W. (2024). Shopee User Sentiment Analysis Based on Tweet Data From Twitter Using the Naive Bayes Classifier Method. JATI (Journal of Informatics Engineering Students) , 8 (2), 1834–1840. https://doi.org/10.36040/jati.v8i2.8298
Aldhyani, THH, Alsubari, SN, Alshebami, AS, Alkahtani, H., & Ahmed, ZAT (2022). Detecting and Analyzing Suicidal Ideation on Social Media Using Deep Learning and Machine Learning Models. International Journal of Environmental Research and Public Health , 19 (19). https://doi.org/10.3390/ijerph191912635
Arsini, Y., Azzahra, H., Tarigan, KS, & Azhari, I. (2023). The Influence of Social Media on Adolescent Mental Health. MUDABBIR Journal Research and Education Studies , 3 (2), 50–54. https://doi.org/10.56832/mudabbir.v3i2.370
Fadjeri, A., Hidayat, K., & Handayani, DR (2021). Emotion Detection in Text Using the Naïve Bayes Algorithm. Journal of Information and Computer Technology Research (JURISTIK) , 1 (2), 1–4. https://doi.org/10.53863/juristik.v1i02.365
Fathoni, MA, & Bhrata, AA (2023). Smart Manufacturing Management System Utilizing Big Data and Machine Learning Algorithms for MSME Production. Journal Science Innovation and Technology (SINTECH) , 3 (1), 36–47. https://doi.org/10.47701/sintech.v3i1.2523
Frijanto, A. (2022). Depression and Suicide . Ministry of Health. https://yankes.kemkes.go.id/view_artikel/1450/depresi-dan-bunuh-diri
Horhoruw, LFM, Pratama, A., Asri, Y., & P, N. (2024). Machine Learning Exploration with Scikit-Learn : Machine Learning Learning Strategy (Vol. 16, Issue 1). UWAIS Inspirasi Indonesia.
Khosla, S. (2024). Exploring the Influence of Social Media on Body Image: A Study on Adolescent Girls . 12 (1). https://doi.org/10.25215/1201.104
Mahur, L. S., Gupta, S., & Gupta, P. (2023). Review on Depression Detection on Social Media Using Machine Learning. Lecture Notes in Networks and Systems , 726 LNNS (June), 79–88. https://doi.org/10.1007/978-981-99-3716-5_8
Muhammad Firdausy, T., & Pandu Adikara, P. (2022). Advertisement Detection on Twit using the Naive Bayes Method . 6 (1), 204–209.
Rahayu, K., Fitria, V., Septhya, D., Rahmaddeni, R., & Efrizoni, L. (2023). Text Classification to Detect Depression and Anxiety in Twitter Users Based on Machine Learning. MALCOM: Indonesian Journal of Machine Learning and Computer Science , 3 (2), 108–114. https://doi.org/10.57152/malcom.v3i2.780
Roihan, A., Sunarya, P.A., & Rafika, A.S. (2020). Utilization of Machine Learning in Various Fields: Review paper. IJCIT (Indonesian Journal on Computer and Information Technology) , 5 (1), 75–82. https://doi.org/10.31294/ijcit.v5i1.7951
Santoso, JT (2020). Big Data Analysis. In Yayasan Prima Agus Teknik Publisher .
Solihin, F., Awaliyah, S., Muid, A., & Shofa, A. (2021). Utilization of Twitter as a Media for Disseminating Information by the Communication and Informatics Service. Journal of Social Science Education (JPIPS) , 1 (13), 52–58.
Thursina Fazrian. (2023). The Influence of Social Media on Students' Mental Health at a Senior High School in Bandung City. West Science Journal of Psychology and Counseling , 1 (01), 19–30.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Noviyanti. P, Candra Gudiato, Listra Frigia Missianes Horhoruw

This work is licensed under a Creative Commons Attribution 4.0 International License.









