Comparison of Machine Learning for Sentiment Analysis in Detecting Anxiety Based on Social Media Data
Not on the map. Why?
Abstract (arXiv)
All groups of people felt the impact of the COVID-19 pandemic. This situation triggers anxiety, which is bad for everyone. The government's role is very influential in solving these problems with its work program. It also has many pros and cons that cause public anxiety. For that, it is necessary to detect anxiety to improve government programs that can increase public expectations. This study applies machine learning to detecting anxiety based on social media comments regarding government programs to deal with this pandemic. This concept will adopt a sentiment analysis in detecting anxiety based on positive and negative comments from netizens. The machine learning methods implemented include K-NN, Bernoulli, Decision Tree Classifier, Support Vector Classifier, Random Forest, and XG-boost. The data sample used is the result of crawling YouTube comments. The data used amounted to 4862 comments consisting of negative and positive data with 3211 and 1651. Negative data identify anxiety, while positive data identifies hope (not anxious). Machine learning is processed based on feature extraction of count-vectorization and TF-IDF. The results showed that the sentiment data amounted to 3889 and 973 in testing, and training with the greatest accuracy was the random forest with feature extraction of vectorization count and TF-IDF of 84.99% and 82.63%, respectively. The best precision test is K-NN, while the best recall is XG-Boost. Thus, Random Forest is the best accurate to detect someone's anxiety based-on data from social media.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 1 of its 50 references that are in the map. First posted on arXiv 16 Jan 2021.
Builds on
1 of 50 references.
References · 1
Built on by
Citing papers per year: 2022: 1; 2023: 1; 2024: 1.
3 papers.
- 2023Mental-LLM: Leveraging Large Language Models for Mental Health Prediction via Online Text Datacited by 66
- 2022Identification of chicken egg fertility using SVM classifier based on first-order statistical feature extractioncited by 1
- 2024They Look Like Each Other: Case-based Reasoning for Explainable Depression Detection on Twitter using Large Language Modelscited by 1
- 2024They Look Like Each Other: Case-based Reasoning for Explainable Depression Detection on Twitter using Large Language Models21 Jul 2024
- 2023Mental-LLM: Leveraging Large Language Models for Mental Health Prediction via Online Text Data26 Jul 2023
- 2022Identification of chicken egg fertility using SVM classifier based on first-order statistical feature extraction10 Jan 2022