JOURNAL ARTICLE

COMPARISON OF RANDOM FOREST, SUPPORT VECTOR MACHINE AND NAIVE BAYES ALGORITHMS TO ANALYZE SENTIMENT TOWARDS MENTAL HEALTH STIGMA

Putri ElisaAuliya Rahman Isnain

Year: 2024 Journal:   Jurnal Teknik Informatika (Jutif) Vol: 5 (1)Pages: 321-329

Abstract

Advances in technology, especially the internet, have significantly changed the way people communicate, including social media. Social media facilitates more effective and efficient online communication. Twitter has 18.45 million users in Indonesia by 2022. Discussion of mental health stigma on twitter, increased 17% in 2021 compared to the previous year. Lifestyle transformation, social pressures, and technological advancements have created new challenges in maintaining individual mental health. Discussions of mental health issues have become pros and cons on twitter. The tendency of twitter users in posting content can be known by means of sentiment analysis. Therefore, sentiment analysis can be used to classify comments and tweets related to mental health stigma into negative, positive and neutral. So, it is expected to provide a number of significant benefits in the aspect of managing mental health issues. The methods used to analyze sentiment towards mental health stigma are Random Forest, Support Vector Machine (SVM) and Naïve Bayes algorithms. Based on the research that has been done, it produces 3,095 data for the period 2020-2023. After preprocessing and labeling the data, 1,635 data (negative class), 633 data (positive class) and 208 data (neutral class) were obtained. The SVM model test results show an accuracy of 86.11%, the Random Forest model shows an accuracy of 82.55%, while the Naive Bayes model shows an accuracy of 78.19%. Therefore, it can be concluded that SVM has the best performance in classifying tweets containing mental health stigma.

Keywords:
Random forest Naive Bayes classifier Stigma (botany) Support vector machine Bayes' theorem Mental health Computer science Psychology Machine learning Artificial intelligence Algorithm Psychiatry Bayesian probability

Metrics

2
Cited By
2.88
FWCI (Field Weighted Citation Impact)
0
Refs
0.90
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Artificial Intelligence in Healthcare
Health Sciences →  Health Professions →  Health Information Management
Sentiment Analysis and Opinion Mining
Physical Sciences →  Computer Science →  Artificial Intelligence
Mental Health via Writing
Social Sciences →  Psychology →  Social Psychology

Related Documents

JOURNAL ARTICLE

Comparison of Naive Bayes and Support Vector Machine Algorithms in Sentiment Analysis

Tiara SelaAnisya Sonita

Journal:   Jutisi Jurnal Ilmiah Teknik Informatika dan Sistem Informasi Year: 2025 Vol: 14 (2)Pages: 973-973
JOURNAL ARTICLE

Diabetes Prediction using Support Vector Machine, Naive Bayes and Random Forest Machine Learning Models

Vinod Jain

Journal:   2022 6th International Conference on Electronics, Communication and Aerospace Technology Year: 2022 Pages: 837-841
© 2026 ScienceGate Book Chapters — All rights reserved.