PoliticaLens: Predict Election Outcomes via Social Media Analysis
End-to-end AI system • NLP • Sentiment Analysis • Data Scraping • Visualization
- Built automated Puppeteer + TypeScript scrapers to collect political content from Facebook, YouTube, Reddit, Twitter, and Sri Lankan online news sources.
- Trained a political content classifier (the_poli) to separate political from non-political posts before deeper analysis.
- Ran secondary scraping on political content to extract reactions, shares, comments, and comment-level engagement.
- Applied sentiment analysis (the_senti) and candidate identification (the_candi) to link content to candidates and public opinion.
- Designed a weighted scoring framework (the_waiter) combining reaction-weighted engagement, sentiment, candidate confidence, and time decay into normalised candidate scores.
- Stored each processing stage in MongoDB and orchestrated the pipeline through a Flask backend.
- Built a Streamlit dashboard with Pandas + Plotly to visualise candidate scores, sentiment, and engagement trends.