Interpretable Fake News Detection Using BERT with LIME and SHAP Explanations
Year: 2026
Type: preprint
Abstract: The rapid spread of misinformation on social mediahas made manual fact-checking insufficient, and many automaticdetectors return only a “Real” or “Fake” label without justification. Such labels are difficult to trust, debug, and defend. Thispaper presents an interpretable fake news detection frameworkin which the explanation is a primary output of the system. Theframework combines two classical baselines, Logistic Regressionand Linear Support Vector Classification (LinearSVC), trainedon TF-IDF features, with a BERT-base-uncased model fine-tunedfor binary classification. Each prediction is explained with LIME,which gives instance-level word weights, and SHAP, which givesglobal and instance-level feature attributions. The frameworktargets two public benchmarks with different characteristics:LIAR, a collection of short political statements, and the ISOTFake and Real News dataset, a collection of full-length articles.A FastAPI backend with predict and explain endpoints, togetherwith a web frontend, supports live demonstration. The completepipeline has been implemented, and all components except theGPU-dependent BERT trainer have been verified end to end on asample dataset. This paper does not report final accuracy figures. Instead, it specifies the evaluation protocol, which uses accuracy,precision, recall, F1-score, and confusion matrices on held-outtest sets, together with a qualitative audit of explanations forshortcut learning. Index Terms—Fake news detection, natural language processing, BERT, TF-IDF, LIME, SHAP, explainable AI, FastAPI.
Author: Harshal, Katre
Language: English
Subfield: Sociology and Political Science
Field: Social Sciences
Domain: Social Sciences
Open Access status: green
OpenAlex ID: W7242018265
Cites:
Cited by:
Related to:
