Skip to content
Open access

Comparative Analysis of Machine Learning Models with SHAP Explanations towards Transparent Fake News Detection

Oct 2026 · International Journal of Computer Science and Engineering · 0 citations

Abstract

The generation of fake news on online platforms has grown into a serious problem, compromising public trust, public opinion and the possibility of information-based decision making. In this study, an intelligent Fake News Detection (FND) system to automatically classify news articles as fake or real was developed using techniques of Natural Language Processing (NLP), Machine Learning (ML) and Explainable Artificial Intelligence (XAI). A publicly available dataset consisting of 44,856 news articles from the LIAR data set and the Kaggle repository was used, of which 80% was used for training and 20% for testing. The data preprocessing included the following steps: Removing punctuation, Lowercase, Stop-word removal, Tokenization, Stemming, Lemmatization, and TF-IDF (Term Frequency – Inverse Document Frequency) Feature Extraction. The classification algorithms used were Logistic Regression (LR), Support Vector Machine (SVM), Random Forest (RF), Decision Tree (DT), and Long Short-Term Memory (LSTM), which were trained and evaluated with accuracy, precision, recall, F1-score, and AUC-ROC. Experimental results indicated that SVM outperforms the other models with respect to accuracy (99.21%), precision (99.25%), recall (99.23%), F1-Score (99.24%) and AUC-ROC (99.96%). To make the classifications auditable, SHapley Additive exPlanations (SHAP) was applied uniformly to all five trained models rather than to the best model alone, permitting a direct comparison of the lexical evidence on which each classifier relies. The attributions converge: four of the five models rank the token “said” as the single most influential feature, and in every case, it shifts the prediction towards REAL, indicating that the models are detecting the attribution conventions of professional reporting rather than topic alone. The results show that the proposed NLP-ML-XAI framework is accurate, interpretable, and reliable for automatic fake news detection, which could be deployed by media organizations, fact checkers, and digital platforms to prevent spreading fake news online.

Read PDF

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.