NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Deep Neural Network-based Model for the Sentiment Analysis of Dravidian Code-mixed Social Media Posts

Jyoti Kumari, Abhinav KumarFIRE (Working Notes) 2021

Introduction

Sentiment analysis in the context of multilingual social media presents unique challenges, particularly in regions where "code-mixing" is prevalent. In India, users frequently blend English with native languages like Kannada, Malayalam, and Tamil, often using phonetic Romanization. This linguistic fluidity renders standard word-level NLP models ineffective. This paper presents a computationally efficient dense neural network model that utilizes character-level features to classify sentiment in these under-resourced Dravidian code-mixed datasets.

Methodology

The proposed system moves away from complex sequential architectures like LSTMs or CNNs, which often struggle with the high noise and irregular spelling of code-mixed text. Instead, the authors employ a robust feature extraction method followed by a deep feed-forward network.

Feature Extraction

The core of the approach is the use of character-level n-gram TF-IDF (Term Frequency-Inverse Document Frequency) features. By extracting sequences of 1 to 6 characters, the model captures sub-word patterns and phonetic variations that word-level tokenizers miss. For the Kannada dataset, the top 50,000 features were retained, while 30,000 were used for Malayalam and Tamil.

Model Architecture

The architecture consists of a four-layer Dense Neural Network. The layers are progressively narrowed from 4,096 to 512, then 64, and finally 5 neurons to match the output classes.

The proposed deep neural network architecture using character-level TF-IDF features.

The model utilizes ReLU activation in the hidden layers and a Softmax function for the final classification. Training was conducted using the Adam optimizer and categorical cross-entropy loss over 50 epochs.

Dataset and Experimental Setup

The study utilized datasets from the DravidianCodeMix FIRE 2021 shared task. The data is categorized into five sentiment classes: Positive, Negative, Mixed feelings, Unknown state, and a language-specific "Not-[Language]" class.

Distribution of training, validation, and test sets across the three Dravidian languages and five sentiment classes.

As shown in the dataset statistics, the Tamil-English corpus is the largest, while Kannada-English is the most constrained. The class distribution is notably imbalanced, with "Positive" sentiments being the most frequent across all languages.

Results and Discussion

The model achieved its highest performance on the Malayalam-English dataset with a weighted F1-score of 0.72, followed by Kannada-English (0.61) and Tamil-English (0.60).

A key finding is the model's proficiency in identifying clear sentiments, particularly the Positive class, where recall reached up to 0.78. However, the system struggled significantly with the Mixed feelings category. For instance, recall for "Mixed feelings" dropped to 0.14 in the Kannada dataset and 0.19 in the Tamil dataset. This suggests that while character n-grams are excellent at capturing phonetic spelling, they may lack the semantic depth required to resolve conflicting emotional cues within a single post.

Conclusion

This research demonstrates that for noisy, code-mixed social media data, simpler architectures paired with high-quality sub-word features can provide a strong baseline. Character-level TF-IDF effectively handles the spelling variations inherent in Romanized Dravidian languages. Future work will explore integrating these character-level insights into more advanced transformer-based architectures to better capture nuanced and mixed sentiments.

Summary updated

BibTeX
@inproceedings{kumari2021deep,
  author = {Jyoti Kumari and Abhinav Kumar},
  title = {{A Deep Neural Network-based Model for the Sentiment Analysis of Dravidian Code-mixed Social Media Posts}},
  booktitle = {FIRE (Working Notes)},
  year = {2021},
}
Figure