[Paper Review] Actionable and Political Text Classification using Word Embeddings and LSTM
This paper proposes a deep learning approach using word embeddings and Long Short-Term Memory (LSTM) networks for contextual text classification beyond sentiment analysis. It achieves 85% accuracy on actionability classification across 30+ languages and 87.57% accuracy in classifying political leaning as Democratic or Republican, outperforming traditional methods and demonstrating the value of context-specific classification in customer support and political insight applications.
In this work, we apply word embeddings and neural networks with Long Short-Term Memory (LSTM) to text classification problems, where the classification criteria are decided by the context of the application. We examine two applications in particular. The first is that of Actionability, where we build models to classify social media messages from customers of service providers as Actionable or Non-Actionable. We build models for over 30 different languages for actionability, and most of the models achieve accuracy around 85%, with some reaching over 90% accuracy. We also show that using LSTM neural networks with word embeddings vastly outperform traditional techniques. Second, we explore classification of messages with respect to political leaning, where social media messages are classified as Democratic or Republican. The model is able to classify messages with a high accuracy of 87.57%. As part of our experiments, we vary different hyperparameters of the neural networks, and report the effect of such variation on the accuracy. These actionability models have been deployed to production and help company agents provide customer support by prioritizing which messages to respond to. The model for political leaning has been opened and made available for wider use.
Motivation & Objective
- To develop a contextual text classification system that moves beyond sentiment analysis to address application-specific criteria in customer support and political discourse.
- To improve customer service efficiency by classifying social media messages as actionable or non-actionable, enabling prioritization of responses.
- To enable deeper political insight by classifying messages as Democratic or Republican, capturing political leaning independent of sentiment polarity.
- To evaluate the impact of hyperparameters on model performance in both actionability and political leaning classification tasks.
- To deploy and open-source a high-accuracy political leaning classification model for broader research and application use.
Proposed method
- Utilizes pre-trained word embeddings (e.g., word2vec or GloVe) to convert text into dense semantic vectors for input representation.
- Employs a bidirectional LSTM network to model sequential dependencies in social media text, capturing long-range contextual patterns.
- Trains a multi-layered neural network with a final softmax layer for binary classification: actionable vs. non-actionable or Democratic vs. Republican.
- Optimizes model performance using the Adam optimizer and sigmoid activation functions, with hyperparameter tuning across embedding and LSTM layer units.
- Trains separate models per language for actionability, using a vocabulary size of 20,000 and a training set of 330,000 samples.
- Makes the trained political leaning model and associated data publicly available via GitHub for reproducibility and wider use.
Experimental results
Research questions
- RQ1Can LSTM-based models with word embeddings outperform traditional machine learning techniques in classifying actionability across multiple languages?
- RQ2How do variations in hyperparameters (e.g., number of LSTM units, embedding dimensions) affect classification accuracy in actionability and political leaning tasks?
- RQ3To what extent does sentiment alone fail to capture meaningful distinctions in customer support and political discourse, necessitating context-aware classification?
- RQ4Can a single model architecture effectively generalize across diverse languages for actionability classification while maintaining high accuracy?
- RQ5What is the performance of a political leaning classifier in distinguishing between Democratic and Republican views when sentiment is not a reliable indicator?
Key findings
- The LSTM-based model achieved over 90% accuracy on actionability classification for several languages, with most models reaching around 85% accuracy.
- The model using 128 embedding units and 32 LSTM units with sigmoid activation and Adam optimizer achieved 87.57% accuracy on political leaning classification.
- LSTM networks with word embeddings significantly outperformed traditional machine learning techniques in both actionability and political classification tasks.
- The model demonstrated robust performance across 30+ languages for actionability, indicating strong generalization despite linguistic diversity.
- Prediction scores from the political model reflect the strength of leaning—e.g., 0.94 for strongly Republican messages—enabling nuanced interpretation beyond binary labels.
- The open-sourced political leaning model and associated data are publicly available, enabling reuse and further research in political text analysis.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.