Enhancing the Performance of Machine Learning Algorithm for Intent Sentiment Analysis on Village Fund Topic
Abstract
This study explores the implementation of Intent Sentiment Analysis on Twitter data related to the Village Fund program, leveraging Multinomial Naïve Bayes (MNB) and enhancing it with Synthetic Minority Over-sampling Technique (SMOTE) and XGBoost (XGB). The analysis categorizes tweets into six labels: Optimistic, Pessimistic, Advice, Satire, Appreciation, and No Intent. Initially, the MNB model achieved an accuracy of 67% on a 90:10 data split. By applying SMOTE, accuracy improved by 12%, reaching 89%. However, adding Chi-Square feature selection did not increase accuracy further. Incorporating XGB into the MNB+SMOTE model led to a 6% improvement, achieving a final accuracy of 95%. Comprehensive model evaluation revealed that the MNB+SMOTE+XGB model achieved 96% accuracy, 96% precision, 96% recall, and a 96% F1-score, with an AUC of 99%, categorizing it as excellent. These findings demonstrate that the combination of SMOTE for addressing class imbalance and XGBoost for boosting performance significantly enhances the MNB model's classification capabilities. The novelty lies in the integration of these techniques to improve intent sentiment classification for public opinion analysis on the Village Fund program. The results indicate that the majority of tweets labeled as "No Intent" reflect a lack of specific sentiment or actionable intent, providing valuable insights into public perception of the program.
Keywords
Full Text:
PDFReferences
R. Adawiyah, Y. Indrayono, and S. Edi, “Increasing Transparency And Accountability In Village Fund Management For Empowerment Of The Esa Community Of Cipambuan, Babakan Madang District, Bogor Regency,” Journal of Community Engagement, vol. 3, no. 2, pp. 93–98, 2021, doi: 10.33751/jce.v3i2.6066.
M. K. Anam, A. Yunianta, H. J. Alyamani, Erlin, A. Zamsuri, and M. B. Firdaus, “Analysis and Identification of Non-Impact Factors on Smart City Readiness Using Technology Acceptance Analysis: A Case Study in Kampar District, Indonesia,” Journal of Applied Engineering and Technological Science, vol. 5, no. 1, pp. 1–17, 2023, doi: 10.37385/jaets.v5i1.2401.
V. Demitria Olla and S. Mareta, “Management, Implementation and Effect of Village Fund Allocation on Regional Development During Covid-19 Pandemic,” KnE Social Sciences, Jul. 2023, doi: 10.18502/kss.v8i12.13703.
D. K. Sari, W. Kumorotomo, and N. Kurnia, “Delivery structure of nationalism message on Twitter in the context of Indonesian netizens,” Soc Netw Anal Min, vol. 12, no. 1, Dec. 2022, doi: 10.1007/s13278-022-01006-3.
D. N. Hidayat, J. Y. Lee, J. Mason, and T. Khaerudin, “Digital technology supporting English learning among Indonesian university students,” Res Pract Technol Enhanc Learn, vol. 17, no. 1, Dec. 2022, doi: 10.1186/s41039-022-00198-8.
C. Rosales Sánchez, M. Craglia, and A. K. Bregt, “New data sources for social indicators: the case study of contacting politicians by Twitter,” Int J Digit Earth, vol. 10, no. 8, pp. 829–845, Aug. 2017, doi: 10.1080/17538947.2016.1259361.
A. T. Mohamad and N. A. S. Abdullah, “A Case Study on Social Media Analytics for Malaysia Budget,” Int J Adv Comput Sci Appl, vol. 12, no. 10, pp. 579–585, 2021, doi: 10.14569/IJACSA.2021.0121064.
M. Wankhade, A. C. S. Rao, and C. Kulkarni, “A survey on sentiment analysis methods, applications, and challenges,” Artif Intell Rev, vol. 55, no. 7, pp. 5731–5780, Oct. 2022, doi: 10.1007/s10462-022-10144-1.
P. Sudhir and V. D. Suresh, “Comparative study of various approaches, applications and classifiers for sentiment analysis,” Global Transitions Proceedings, vol. 2, no. 2, pp. 205–211, Nov. 2021, doi: 10.1016/j.gltp.2021.08.004.
V. Desai, S. Wadhwa, A. A, and B. Bajaj, “Text-Based Intent Analysis using Deep Learning,” Int J Innov Sci Res Technol, vol. 5, no. 7, pp. 267–274, 2020, doi: 10.38124/ijisrt20jul342.
N. Anjum Sharupa, M. Rahman, N. Alvi, M. Raihan, A. Islam, and T. Raihan, “Emotion Detection of Twitter Post using Multinomial Naive Bayes,” in International Conference on Computing, Communication and Networking Technologies (ICCCNT), 2020, pp. 1–6. doi: 10.1109/ICCCNT49239.2020.9225432.
L. Gohil and D. Patel, “Multilabel classification for emotion analysis of multilingual tweets,” International Journal of Innovative Technology and Exploring Engineering, vol. 9, no. 1, pp. 4453–4457, Nov. 2019, doi: 10.35940/ijitee.A5320.119119.
N. A. L. M. Amram, P. Keikhosrokiani, and M. P. Asl, “Artificial intelligence approach for detection and classification of depression among refugees in selected diasporic novels,” Social Sciences & Humanities Open, vol. 8, no. 1, pp. 1–12, 2023, doi: 10.1016/j.ssaho.2023.100558.
A. Sharma and M. O. Shafiq, “A Comprehensive Artificial Intelligence Based User Intention Assessment Model from Online Reviews and Social Media,” Applied Artificial Intelligence, vol. 36, no. 1, 2022, doi: 10.1080/08839514.2021.2014193.
U. Naseem, I. Razzak, K. Musial, and M. Imran, “Transformer based Deep Intelligent Contextual Embedding for Twitter sentiment analysis,” Future Generation Computer Systems, vol. 113, pp. 58–69, Dec. 2020, doi: 10.1016/j.future.2020.06.050.
G. Xu, W. Li, and J. Liu, “A social emotion classification approach using multi-model fusion,” Future Generation Computer Systems, vol. 102, pp. 347–356, Jan. 2020, doi: 10.1016/j.future.2019.07.007.
E. Fersini, E. Messina, and F. A. Pozzi, “Sentiment analysis: Bayesian Ensemble Learning,” Decis Support Syst, vol. 68, pp. 26–38, 2014, doi: 10.1016/j.dss.2014.10.004.
A. K. Abbas, A. K. Salih, H. A. Hussein, Q. M. Hussein, and S. A. Abdulwahhab, “Twitter Sentiment Analysis Using an Ensemble Majority Vote Classifier,” Journal of Southwest Jiaotong University, vol. 55, no. 1, 2020, doi: 10.35741/issn.0258-2724.55.1.9.
R. V. A. Ogutu, R. M. Rimiru, and C. Otieno, “Target Sentiment Analysis Ensemble for Product Review Classification,” Journal of Information Technology Research, vol. 15, no. 1, pp. 1–13, Aug. 2022, doi: 10.4018/jitr.299382.
M. Mirza Kurnia, D. W. Sjuchro, and T. K. Wirakusumah, “Framing Analysis of the Reporting Scenario of Gibran Becoming Vice President on CNN Indonesia Media,” International Journal of Science and Society, vol. 6, no. 2, p. 2024, 2024, doi: 10.54783/ijsoc.v6i2.1109.
P. P. Putra, M. K. Anam, S. Defit, and A. Yunianta, “Enhancing the Decision Tree Algorithm to Improve Performance Across Various Datasets,” INTENSIF: Jurnal Ilmiah Penelitian dan Penerapan Teknologi Sistem Informasi, vol. 8, no. 2, pp. 200–212, Aug. 2024, doi: 10.29407/intensif.v8i2.22280.
R. R. Sarra, I. I. Gorial, R. R. Manea, A. E. Korial, M. Mohammed, and Y. Ahmed, “Enhanced Stacked Ensemble-Based Heart Disease Prediction with Chi-Square Feature Selection Method,” Journal of Robotics and Control (JRC), vol. 5, no. 6, p. 2024, 2024, doi: 10.18196/jrc.v5i6.23191.
M. K. Anam, M. B. Firdaus, F. Suandi, Lathifah, T. Nasution, and S. Fadly, “Performance Improvement of Machine Learning Algorithm Using Ensemble Method on Text Mining,” in ICFTSS 2024 - International Conference on Future Technologies for Smart Society, Kuala Lumpur: Institute of Electrical and Electronics Engineers Inc., Sep. 2024, pp. 90–95. doi: 10.1109/ICFTSS61109.2024.10691363.
R. Oktari and T. W. Sen, “Optimization of the Naïve Bayes Classifier (NBC) Algorithm Using the Sparrow Search (SSA) Algorithm to Predict the Distribution of Goods Receipts,” Indonesian Journal of Artificial Intelligence and Data Mining (IJAIDM), vol. 4, no. 2, pp. 108–116, 2021, doi: 10.24014/ijaidm.v2i2.15339.
Widiharto, M. Arief Soeleman, and A. Syukur, “Performance Improvement of Naïve Bayes Algorithm Based on Information Gain and Forward Selection Features Selection for Heart Disease Classification,” IOSR Journal of Mobile Computing & Application, vol. 9, no. 6, pp. 54–64, 2022, doi: 10.9790/0050-09065464.
Y. Religia, G. T. Pranoto, and I. M. Suwancita, “Analysis of the Use of Particle Swarm Optimization on Naïve Bayes for Classification of Credit Bank Applications,” Journal of Informatics and Science, vol. 4, no. 2, pp. 133–137, 2021, doi: 10.31326/jisa.v4i2.946.
A. R. Safitri and A. Muslim, “Improved Accuracy of Naive Bayes Classifier for Determination of Customer Churn Uses SMOTE and Genetic Algorithms,” Journal of Soft Computing Exploration, vol. 1, no. 1, pp. 70–75, 2020, doi: 10.52465/joscex.v1i1.5.
N. G. Ramadhan, “Comparative Analysis of ADASYN-SVM and SMOTE-SVM Methods on the Detection of Type 2 Diabetes Mellitus,” Scientific Journal of Informatics, vol. 8, no. 2, pp. 276–282, Nov. 2021, doi: 10.15294/sji.v8i2.32484.
M. K. Anam et al., “Sara Detection on Social Media Using Deep Learning Algorithm Development,” Journal of Applied Engineering and Technological Science, vol. 6, no. 1, pp. 225–237, Dec. 2024, doi: 10.37385/jaets.v6i1.5390.
N. Matondang and N. Surantha, “Effects of oversampling SMOTE in the classification of hypertensive dataset,” Advances in Science, Technology and Engineering Systems, vol. 5, no. 4, pp. 432–437, 2020, doi: 10.25046/AJ050451.
J. H. Joloudari, A. Marefat, M. A. Nematollahi, S. S. Oyelere, and S. Hussain, “Effective Class-Imbalance Learning Based on SMOTE and Convolutional Neural Networks,” Applied Sciences (Switzerland), vol. 13, no. 6, Mar. 2023, doi: 10.3390/app13064006.
M. K. Anam, S. Defit, Haviluddin, L. Efrizoni, and M. B. Firdaus, “Early Stopping on CNN-LSTM Development to Improve Classification Performance,” Journal of Applied Data Sciences, vol. 5, no. 3, pp. 1175–1188, 2024, doi: 10.47738/jads.v5i3.312.
B. P. Zen, I. Susanto, and D. Finaliamartha, “TF-IDF Method and Vector Space Model Regarding the Covid-19 Vaccine on Online News,” SinkrOn, vol. 6, no. 1, pp. 69–79, Oct. 2021, doi: 10.33395/sinkron.v6i1.11179.
R. Spencer, F. Thabtah, N. Abdelhamid, and M. Thompson, “Exploring feature selection and classification methods for predicting heart disease,” Digit Health, vol. 6, pp. 1–10, 2020, doi: 10.1177/2055207620914777.
A. J. Bowers and X. Zhou, “Receiver Operating Characteristic (ROC) Area Under the Curve (AUC): A Diagnostic Measure for Evaluating the Accuracy of Predictors of Education Outcomes,” J Educ Stud Placed Risk, vol. 24, no. 1, pp. 20–46, Jan. 2019, doi: 10.1080/10824669.2018.1523734.
C. Kaope and Y. Pristyanto, “The Effect of Class Imbalance Handling on Datasets Toward Classification Algorithm Performance,” MATRIK : Jurnal Manajemen, Teknik Informatika dan Rekayasa Komputer, vol. 22, no. 2, pp. 227–238, Mar. 2023, doi: 10.30812/matrik.v22i2.2515.
Herianto, B. Kurniawan, Z. H. Hartomi, Y. Irawan, and M. K. Anam, “Machine Learning Algorithm Optimization using Stacking Technique for Graduation Prediction,” Journal of Applied Data Sciences, vol. 5, no. 3, pp. 1272–1285, Sep. 2024, doi: 10.47738/jads.v5i3.316.
A. N. Sutranggono and E. M. Imah, “Tweets Emotions Analysis of Community Activities Restriction as COVID-19 Policy in Indonesia Using Support Vector Machine,” CommIT Journal, vol. 17, no. 1, pp. 13–25, 2023, doi: 10.21512/commit.v17i1.8189.
A. Zamsuri, S. Defit, and G. W. Nurcahyo, “Classification Of Multiple Emotions In Indonesian Text Using The K-Nearest Neighbor Method,” Journal of Applied Engineering and Technological Science, vol. 4, no. 2, pp. 1012–1021, 2023, doi: 10.37385/jaets.v4i2.1964.
M. A. Riza and N. Charibaldi, “Emotion Detection in Twitter Social Media Using Long Short-Term Memory (LSTM) and Fast Text,” International Journal of Artificial Intelligence & Robotics (IJAIR), vol. 3, no. 1, pp. 15–26, May 2021, doi: 10.25139/ijair.v3i1.3827.
Kavithasubramani, Nivedha U, L. Jabasheela, Divya S, and Dhuneesha E, “Secured Text-Based Emotion Classification Using Machine Learning With NLP Educational Administration: Theory And Practice,” Educational Administration: Theory and Practice, vol. 2024, no. 5, pp. 901–910, 2024, doi: 10.53555/kuey.v30i5.2986.
M. B. Firdaus et al., “An Augmented Reality on the Introduction of Escherichia Coli Bacteria that Cause Diarrhea Using the Marker Based Tracker Method,” in Proceedings of the 8th International Conference on Computational Science and Technology, Springer Science and Business Media Deutschland GmbH, 2022, pp. 891–905. doi: 10.1007/978-981-16-8515-6_68.
M. B. Firdaus, A. Z. Waksito, A. Tejawati, M. Taruk, M. K. Anam, and A. Irsyad, “Finite state machine for retro arcade fighting game development,” International Journal of Informatics and Communication Technology (IJ-ICT), vol. 14, no. 1, p. 102, Apr. 2025, doi: 10.11591/ijict.v14i1.pp102-110.
DOI: https://doi.org/10.47738/jads.v6i2.637
Refbacks
- There are currently no refbacks.

Journal of Applied Data Sciences
| ISSN | : | 2723-6471 (Online) |
| Publisher | : | Bright Publisher |
| Website | : | http://bright-journal.org/JADS |
| : | taqwa@amikompurwokerto.ac.id (principal contact) | |
| support@bright-journal.org (technical issues) |
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0




.png)