Comparative Performance Analysis of XGBoost and CatBoost for Fake News Detection

Ardra Taksa Uziezar, Indrastanti Ratna Widiasari

Abstract


The widespread dissemination of misleading information through digital media has increased the need for automated fake news detection. This study compares the performance of XGBoost and CatBoost in classifying fake and real news using the Fake News Detection dataset obtained from Kaggle. The research process involved data cleaning, text preprocessing, an 80:20 stratified train-test split, Term Frequency–Inverse Document Frequency (TF-IDF) feature extraction fitted exclusively on the training data, and class balancing using the Synthetic Minority Over-sampling Technique (SMOTE) applied only to the training data. Both models were evaluated using accuracy, precision, recall, F1-score, and confusion matrices. The experimental results showed that XGBoost achieved an accuracy of 99.61%, precision of 99.75%, recall of 99.41%, and F1-score of 99.58% for the fake news class. CatBoost achieved an accuracy of 99.54%, precision of 99.69%, recall of 99.30%, and F1-score of 99.50%. The confusion matrices also indicated that XGBoost produced fewer incorrect predictions than CatBoost. These findings suggest that XGBoost performed slightly better under the experimental conditions used in this study. However, further evaluation using independent datasets is necessary to assess the generalization capability of both models.

Keywords


CatBoost; Fake news detection; machine learning; text classification; XGBoost

Full Text:

PDF

References


M. N. Raza, “Sistem Deteksi Berita Hoax menggunakan Algoritma Naïve Bayes dan Random Forest pada Machine Learning,” Pondasi: Journal of Applied Science Engineering, Vol. 1, No. 2, pp. 43–57, 2024. [Online]. Available: https://journal.alshobar.or.id/index.php/pondasi/article/view/221.

N. A. Hasma, “Implementasi Machine Learning dalam menganalisis dan mendeteksi Berita Palsu pada Portal Berita Bahasa Inggris,” Jurnal Rekayasa Sistem Informasi dan Teknologi, Vol. 1, No. 3, pp. 85–95, 2024, DOI: 10.59407/jrsit.v1i3.455.

V. A. Saputra and S. A. Arnomo, “Penerapan Metode Machine Learning dalam mengidentifikasi Berita Hoaks,” Computer Based Information System Journal, Vol. 12, No. 1, pp. 112–121, 2024, DOI: 10.33884/cbis.v12i1.8442.

J. Alghamdi, S. Luo, and Y. Lin, “A Comprehensive Survey on Machine Learning Approaches for Fake News Detection,” Multimedia Tools and Applications, Vol. 83, No. 17, pp. 51009–51067, May 2024, DOI: 10.1007/s11042-023-17470-8.

L. Ayash, A. Algarni, and O. Alqahtani, “Advancements in Feature Selection and Extraction Methods for Text Mining: A Review,” Discover Applied Sciences, Vol. 7, Art. No. 914, 2025, DOI: 10.1007/s42452-025-07587-w.

A. O. Widodo, B. Setiawan, and R. Indraswari, “Machine Learning-based Intrusion Detection on Multi-Class Imbalanced Dataset using SMOTE,” Procedia Computer Science, Vol. 234, pp. 578–583, 2024, DOI: 10.1016/j.procs.2024.03.042.

M. R. Andryan, M. Fajri, and N. Sulistyowati, “Komparasi Kinerja Algoritma XGBoost dan Algoritma Support Vector Machine (SVM) untuk Diagnosis Penyakit Kanker Payudara,” JIKO (Jurnal Informatika dan Komputer), Vol. 6, No. 1, pp. 1–5, Feb. 2022, DOI: 10.26798/jiko.v6i1.500.

R. Rahmaddeni, M. K. Anam, Y. Irawan, S. Susanti, and M. Jamaris, “Comparison of Support Vector Machine and XGBSVM in Analyzing Public Opinion on COVID-19 Vaccination,” ILKOM Jurnal Ilmiah, Vol. 14, No. 1, pp. 32–38, Apr. 2022, DOI: 10.33096/ilkom.v14i1.1090.32-38.

O. M. Ahmed, S. R. M. Zeebaree, and S. Askar, “Comparative Analysis of XGBoost Performance for Text Classification with CPU Parallel and Non-Parallel Processing,” The Indonesian Journal of Computer Science, Vol. 13, No. 2, pp. 1781–1786, 2024, DOI: 10.33022/ijcs.v13i2.3798.

M. A. A. Syukur, Suhartono, and T. Chamidy, “Prediksi Kualitas Udara menggunakan Metode CatBoost,” JISKA (Jurnal Informatika Sunan Kalijaga), Vol. 10, No. 2, pp. 249–258, May 2025, DOI: 10.14421/jiska.2025.10.2.249-258.

Y. N. Ifriza, R. N. M. Sanusi, H. Febriyanto, and A. Kamaruddin, “Optimization CatBoost using GridSearchCV for Sentiment Analysis Customer Reviews in Digital Transportation Industry,” TIERS Information Technology Journal, Vol. 6, No. 2, pp. 205–216, Dec. 2025, DOI: 10.38043/tiers.v6i2.7201.

A. S. Alfath, A. K. Wardhana, and R. Rumini, “Hypertension Risk Prediction using Stacking Ensemble of CatBoost, XGBoost, and LightGBM: A Machine Learning Approach,” Journal of Applied Informatics and Computing, Vol. 9, No. 6, pp. 3146–3156, Dec. 2025, DOI: 10.30871/jaic.v9i6.10370.

N. Maulana, M. R. Handayani, W. D. Yuniarti, and K. Umam, “Penerapan Metode Support Vector Machine dalam mengklasifikasikan Berita Politik: Fakta vs Hoaks,” JIPI (Jurnal Ilmiah Penelitian dan Pembelajaran Informatika), Vol. 10, No. 3, pp. 2679–2688, Sep. 2025, DOI: 10.29100/jipi.v10i3.8077.

M. Z. Al Amin, M. A. Furqon, and D. Wijonarko, “Deteksi Berita Hoaks Berbahasa Indonesia menggunakan One-Dimensional Convolutional Neural Network,” Jurnal Nasional Teknik Elektro dan Teknologi Informasi, Vol. 14, No. 2, pp. 161–169, May 2025, DOI: 10.22146/jnteti.v14i2.19050.

L. Triyono, R. Gernowo, Prayitno, M. Rahaman, and T. R. Yudantoro, “Indonesian Fake News Detection using Various Machine Learning Technique,” International Journal on Informatics Visualization, Vol. 7, No. 3, pp. 726–732, 2023, DOI: 10.30630/joiv.7.3.1243.

A. A. Nabil, F. R. Wildantama, D. Satrianto, M. G. Bakara, I. Budiawan, and D. Mulyati, “Klasifikasi Hoax menggunakan Metode TF-IDF + SVM,” Jurnal Pengabdian Masyarakat dan Riset Pendidikan, Vol. 4, No. 3, pp. 17653–17660, 2025, DOI: 10.31004/jerkin.v4i3.5078.

L. Xiao, Q. Li, Q. Ma, J. Shen, Y. Yang, and D. Li, “Text Classification Algorithm of Tourist Attractions Subcategories with Modified TF-IDF and Word2Vec,” PLOS ONE, Vol. 19, No. 10, Art. No. e0305095, 2024, DOI: 10.1371/journal.pone.0305095.

R. Irfannandhy, L. B. Handoko, and N. Ariyanto, “Analisis Performa Model Random Forest dan CatBoost dengan Teknik SMOTE dalam Prediksi Risiko Diabetes,” Edumatic: Jurnal Pendidikan Informatika, Vol. 8, No. 2, pp. 714–723, Dec. 2024, DOI: 10.29408/edumatic.v8i2.27990.

A. B. Mawardi, R. S. Pradini, and M. S. Haris, “Komparasi Algoritma Boosting untuk Prediksi Gangguan Tidur,” Jurnal Informatika dan Teknik Elektro Terapan, Vol. 13, No. 3, 2025, DOI: 10.23960/jitet.v13i3.7281.




DOI: https://doi.org/10.32520/stmsi.v15i11.7059

Article Metrics

Abstract view : 23 times
PDF - 4 times

Refbacks

  • There are currently no refbacks.


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