Analisis Perbandingan Kinerja Algoritma Random Forest dan Logistic Regression untuk Deteksi Berita Hoaks
DOI:
https://doi.org/10.55606/juisik.v6i3.2726Keywords:
CIRUS, Hoax Detection, Imbalanced Data, Logistic Regression, Random ForestAbstract
The widespread circulation of hoax news across digital media in Indonesia presents serious challenges to public trust and social stability. This study compares the classification performance of Random Forest and Logistic Regression in detecting Indonesian-language hoax news while addressing class imbalance using Customized Instance Random Undersampling (CIRUS). A dataset of 17,185 news articles from the official Kominfo repository (December 2018 to March 2026) was utilized, focusing combination on two primary text attributes: tittle (headline) and body_text (news content). Following data cleaning, 15,411 clean articles were obtained (10,274 hoaxes and 5,137 non-hoaxes). Preprocessing on both attributes included case folding, cleaning, tokenization, stopword removal, and Sastrawi stemming, followed by TF-IDF n-gram feature extraction (10,000 features; 5,000 from tittle and 5,000 from body_text). Models were evaluated using K-Fold Cross Validation (K=5) on imbalanced and CIRUS-balanced datasets (10,274 articles, 1:1 ratio). On the balanced dataset, Random Forest outperformed Logistic Regression across all metrics, achieving an accuracy of 95.16%, precision of 95.27%, recall of 95.16%, and F1-score of 95.16%, compared to 92.21% accuracy and 92.19% F1-score for Logistic Regression. These results show that CIRUS effectively mitigates the accuracy paradox by retaining representative boundary samples, while Random Forest provides superior predictive stability for Indonesian text classification.
References
Adebesin, F., Smuts, H., & Mawela, T. (2023). The Role of Social Media in Health Misinformation and Disinformation During the COVID-19 Pandemic: Bibliometric Analysis Corresponding Author: 3. https://doi.org/10.2196/48620
Annie, K., & Jung, I. (2023). Optimal selection of resampling methods for imbalanced data with high complexity. 1–18. https://doi.org/10.1371/journal.pone.0288540
Breiman, L. E. O. (2001). Random Forests. 5–32.
Elsoud, E. A., Hassan, M., Alidmat, O., Henawi, E. Al, Alshdaifat, N., Iqtait, M., Ghaben, A., Katrawi, A., & Dmour, M. (2024). Under Sampling Techniques for Handling Unbalanced Data with Various Imbalance Rates: A Comparative Study. IJACSA International Journal of Advanced Computer Science and Applications, 15(8), 1274–1284. https://doi.org/10.14569/IJACSA.2024.01508124
Gillala, R., Reddy, V. K., & Kumar, A. (2024). CIRUS: Critical Instances Removal based Under-Sampling - A solution for class imbalance problem. https://doi.org/10.3233/HIS-200279
Hashim, A., Almarashy, J., & Salehpour, P. (2023). Enhancing Fake News Detection by Multi-Feature Classification. IEEE Access, PP, 1. https://doi.org/10.1109/ACCESS.2023.3339621
Hassan, K. F., Abdullah, M. N., & Al-hchimy, Z. S. (2024). The Application of Random Forest to the Classification of Fake News. 00049, 1–12. https://doi.org/10.1051/bioconf/20249700049
Hoyos-osorio, J., Alvarez-meza, A., Daza-santacoloma, G., & Orozco-gutierrez, A. (2021). Relevant information undersampling to support imbalanced data classification. Neurocomputing, 436, 136–146. https://doi.org/10.1016/j.neucom.2021.01.033
Iizuka, R., Toriumi, F., Nishiguchi, M., Takano, M., Yoshida, M., & Guidi, B. (2022). Impact of correcting misinformation on social disruption. PLOS ONE, 1–21. https://doi.org/10.1371/journal.pone.0265734
Jahan, I., Hasan, N., Islam, S. N., Akter, L., & Onik, K. R. (2024). Advanced machine learning techniques for fake news detection: A comprehensive analysis.
Kowsari, K., Meimandi, K. J., Heidarysafa, M., & Mendu, S. (2019). Text Classification Algorithms: A Survey. 1–68. https://doi.org/10.3390/info10040150
Lavalley, M. P. (2008). Statistical Primer for Cardiovascular Research Logistic Regression. 2395–2399. https://doi.org/10.1161/CIRCULATIONAHA.106.682658
Lumumba, V. W., Kiprotich, D., Makena, N. G., Kavita, M. D., & Mpaine, M. L. (2024). Comparative Analysis of Cross-Validation Techniques: LOOCV, K-folds Cross-Validation, and Repeated K-folds Cross-Validation in Machine Learning Models. 13(5), 127–137. https://www.sciencepublishinggroup.com/article/10.11648/j.ajtas.20241305.13
Othman, N. A., Elzanfaly, D. S., & Elhawary, M. M. M. (2024). Arabic Fake News Detection Using Deep Learning. IEEE Access, 12(September), 122363–122376. https://doi.org/10.1109/ACCESS.2024.3451128
Paramita, N., Adiati, R., Febriyan, D., & Indarjani, S. (2024). Comparative study of predictive models for hoax and disinformation detection in indonesian news. International Journal of Advances in Intelligent Informatics, 10(3), 504–516.
Putra, B. T., & Yulianingsih, E. (2023). Analisis Tingkat Akurasi Prediksi Gejala COVID-19 Dengan Menggunakan Metode Logistic Regression dan Support Vector Machine. 13(2), 269–278. https://ejurnal.umri.ac.id/index.php/JIK/article/view/5629
Septiani, D., & Isabela, I. (2022). Analisis Term Frequency Inverse Document Frequency (Tf-Idf) Dalam Temu Kembali Informasi Pada Dokumen Teks. SINTESIA: Jurnal Sistem Dan Teknologi Informasi Indonesia, 1, 81–88.
Swana, E. F., & Doorsamy, W. (2022). Tomek Link and SMOTE Approaches for Machine Fault Classification with an Imbalanced Dataset.
Tusell-rey, C. C., Camacho-nieto, O., & Cornelio, Y. (2022). Customized Instance Random Undersampling to Increase Knowledge Management for Multiclass Imbalanced Data Classification. Sustainability. https://doi.org/10.3390/su142114398
Zhou, X., & Zafarani, R. (2020). A Survey of Fake News: Fundamental Theories, Detection Methods, and Opportunities.






