Skip to content

πŸ—³οΈ Political Speech Manipulation Detection uncovers misinformation, bias, and hostile rhetoric in political content using advanced language models and analytical pipelines. Demo Video:https://youtu.be/yUNSE5rif3s

Notifications You must be signed in to change notification settings

Shakthirekak11/Political-Speech-Manipulation-Detection

Repository files navigation

πŸ—³οΈ Political Speech Manipulation Detection

Detecting Misinformation, Bias & Hostile Rhetoric in Political Communication Using NLP and Deep Learning

πŸ“Œ Overview

This project analyzes and flags manipulative language in political discourseβ€”spanning speeches, tweets, and media articles. Using advanced Natural Language Processing (NLP) and Transformer-based Deep Learning models, it classifies political statements for truthfulness, detects manipulative or hostile rhetoric, analyzes media bias, and extracts key rhetorical themes.

✨ Real-time, multi-angle detection pipeline revealing how and why political speech may be misleading, emotionally charged, or biased.


🎯 Core Objectives

  • πŸ”Ž Fact-Check Claims: Classify political statements as true, false, or misleading.
  • πŸ’¬ Rhetoric Detection: Identify manipulation tactics (e.g., emotional appeal, nationalism, repetition).
  • 🧠 Hostile Speech Analysis: Detect personal attacks and hate speech in tweets.
  • πŸ“° Media Bias Framing: Analyze partisan leanings and framing in political news.
  • πŸŽ™ Theme Extraction: Uncover core themes and ideological messaging in speeches.

πŸ§ͺ Sample Output Snapshot

πŸŽ™ SPEECH 1 - MANIPULATION ANALYSIS REPORT

πŸ“Š Overall Sentiment: 😑 Negative (-0.46)
⚠️ Fact-Check: Likely False Statement Detected

🎭 Detected Tactics:
βœ… Repetition | βœ… Emotional Appeal | βœ… Personal Attacks | βœ… Nationalism | βœ… Misinformation

🧠 Verdict: The speech contains manipulative or misleading content with emotionally charged, divisive language.

πŸ“‚ Datasets Used

Dataset Description Use Case
LIAR 12.8K fact-checked political statements Fake news classification
Trump Speeches 45+ official transcripts Rhetorical + sentiment analysis
Trump Tweets 5.6K tweets labeled for hostility Hate speech / insult detection
All The News 140K+ news articles (2016–2022) Media bias & framing analysis

πŸ› οΈ Techniques & Technologies

🧰 NLP & Preprocessing:

  • Named Entity Recognition (NER)
  • Tokenization, Lemmatization
  • Sentiment & Emotion Analysis
  • TF-IDF & Hate Speech Lexicons
  • Entity Co-occurrence Mapping

🧠 Machine Learning Models:

  • Logistic Regression, SVM, XGBoost, Random Forest
  • Topic Modeling: LDA for ideological themes and topics

πŸ€– Deep Learning & Transformers:

  • BERT / BERT-Large: Context-aware classification
  • DistilBERT, RoBERTa: Light & interpretable models
  • BiLSTM: Sequential pattern recognition
  • Hybrid Architectures (e.g., BERT + BiLSTM)

πŸš€ Results & Highlights

Task Best Model Score / Insight
βœ… Fake News Detection Logistic Regression 88.8% Accuracy
🚨 Insult Detection BERT + BiLSTM 93.6% F1 Score
πŸ“° Media Bias Detection Co-occurrence Analysis Based on framing patterns (heuristic)
πŸŽ™ Theme Extraction LDA + Sentiment Topics: Witch Hunt, Fake News, Elections
πŸ’¬ Deep Rhetoric Class. DistilBERT (Trial) 88.8% Accuracy

🧠 Skills Demonstrated

Natural Language Understanding, Transformer Fine-Tuning, Text Classification, Sentiment Analysis, Rhetoric Detection, Topic Modeling, Explainable AI, Data Visualization, and Model Interpretation (SHAP).


πŸ“ˆ Future Enhancements

  • Multi-language political discourse analysis 🌍
  • Real-time Twitter/News feed monitoring πŸ”
  • Dashboard with dynamic visualizations πŸ“Š

Releases

No releases published

Packages

No packages published