Case Study - EU Parliament Text Sentiment Analysis
Sentiment analysis and classification on transcripts from European Union Parliament sessions.
- Client
- UC Berkeley Department of Political Science
- Year
- Service
- NLP Modeling & Research
![](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Feu-research.79a357c3.png&w=3840&q=90)
Overview
The UC Berkeley department of Political Science researches ways to use Machine Learning to detect trends in or make predictions about political events. One project we worked on involved training a sentiment analysis model on transcriptions from EU Parliament sessions in order to gague the emotions of members and measure "Euroskepticism"--how skeptical they are of the European Union.
Using a collection of over 3,000 EU parliamentary texts, we enhanced a text classification scheme to evaluate the Euroskepticism of each. This was achieved through the creation of a sentiment analysis ML model using Keras, Scikit-learn, which was supported by the Universal Sentence Encoder (USE).
In addition, through the implementation of imbalanced-learn oversampling techniques to compensate for the skewed training data set, the model's performance was significantly improved, leading to a 70% increase in accuracy for sentiment prediction.
What we did
- Machine Learning
- Text Classification
- Sentiment Analysis
- Sampling
Sentiment analysis is an extremely valuable application of natural language processing, especially when intersected with humanities research.
![](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2FRohan_Khandewal.9762b447.png&w=3840&q=75)
Software & Machine Learning Engineer