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.
Copyrights © 2026