Detecting Fake News using LSTM Deep Learning Model with Real-Time Explanation Capabilitiesn

The primary aim of this project is to develop a web-based application capable of determining the authenticity of news articles using deep learning techniques. By leveraging Natural Language Processing (NLP) and a Long Short-Term Memory (LSTM) model, the system is designed to classify news content as either real or fake. The application places a strong emphasis on user experience, ensuring it is intuitive, responsive, and efficient. Additionally, it provides real-time feedback to users, making the prediction process transparent and interactive. This combination of deep learning and user-centered design helps address the growing concern of misinformation in digital media.

Tools Used: Python, TensorFlow, Keras, Flask, SQLite, Chart.js, HTML/CSS, Docker, Google Colab

๐Ÿง  Fake News Detection using LSTM - Final Project Report

2. ๐Ÿ“ Testing Methods and Concepts

Refined CategoryMethods & Libraries Used
Management of DataPandas, NumPy
Text CleaningNLTK, RegEx, WordNet Lemmatizer
Model DevelopmentTensorFlow and Keras
Data RepresentationVisualization, Chart.js, Matplotlib and Seaborn
Website DevelopmentFlask, HTML, CSS
Response StorageSQLite
Web ApplicationDocker

3. ๐Ÿ—„ Data Sets Used

In this project we utilize labeled datasets Fake.csv and True.csv. Both datasets are to be merged, cleaned, and labeled as follows:

4. ๐Ÿ—’ Model Structure - LSTM

For its strong capacity for sequence data, I chose this model type and created an architecture with the following elements:

model = Sequential([
    Embedding(10000, 128, input_length=300),
    LSTM(128, dropout=0.2, recurrent_dropout=0.2),
    Dense(1, activation='sigmoid')
])

5. ๐Ÿ“ˆ Model Performance

Based on loss and accuracy curves, the efficiency of the model was confirmed. It has been proven that the model generalizes well and is not overfitting.

6. ๐ŸŒ Application Features

Userโ€™s submission of news content generates:

Frontend is responsive with minimal inputs and retrieves data quickly.

7. ๐Ÿ“‹ User Feedback System

The app allows users to submit their voice regarding the prediction through a feedback form. Feedback is:

8. ๐Ÿš€ Deployment

The application was containerized via Docker, allowing deployment on any server.

docker build -t fake-news-app .
docker run -d -p 80:5000 fake-news-app

Compatible with any modern browser.

9. โœ… Results

10. ๐Ÿ”ฎ Future Works

Model Building

FakeNewsDetection (5)