[Paper Review] CUSATNLP@HASOC-Dravidian-CodeMix-FIRE2020:Identifying Offensive Language from ManglishTweets
This paper presents a neural network-based approach for identifying offensive language in Manglish tweets—code-mixed Malayalam-English text written in Roman script—using two embedding methods (Keras embedding and Doc2Vec) and three classifier systems. The best-performing model, a weighted ensemble of two classifiers, achieved a weighted F1-score of 0.54, demonstrating moderate effectiveness in handling imbalanced, low-resource code-mixed offensive language detection.
With the popularity of social media, communications through blogs, Facebook, Twitter, and other plat-forms have increased. Initially, English was the only medium of communication. Fortunately, now we can communicate in any language. It has led to people using English and their own native or mother tongue language in a mixed form. Sometimes, comments in other languages have English transliterated format or other cases; people use the intended language scripts. Identifying sentiments and offensive content from such code mixed tweets is a necessary task in these times. We present a working model submitted for Task2 of the sub-track HASOC Offensive Language Identification- DravidianCodeMix in Forum for Information Retrieval Evaluation, 2020. It is a message level classification task. An embedding model-based classifier identifies offensive and not offensive comments in our approach. We applied this method in the Manglish dataset provided along with the sub-track.
Motivation & Objective
- To address the challenge of detecting offensive content in code-mixed social media texts, particularly in Manglish (Malayalam in Roman script).
- To develop a robust classification system for offensive language in low-resource, multilingual contexts where traditional models may underperform.
- To evaluate the effectiveness of different embedding techniques—Keras embedding and Doc2Vec—on offensive language detection in code-mixed text.
- To explore ensemble methods that combine predictions from multiple classifiers to improve performance on imbalanced datasets.
- To contribute a reproducible system for offensive language detection in Dravidian code-mixed social media content, specifically for the FIRE 2020 HASOC sub-track.
Proposed method
- Text preprocessing involved removing URLs, usernames, hashtags, repeated characters, numbers, and converting all text to lowercase using the tweet-preprocessor library.
- Sentence representations were generated using two methods: (1) Keras embedding layer with one-hot encoded, padded sequences producing 50-dimensional vectors, and (2) Doc2Vec for learning distributed sentence representations from variable-length texts.
- Three distinct classification systems were implemented: System A used a unidirectional LSTM with 0.2 recurrent dropout and a sigmoid output layer; System B used a three-layer dense network with ReLU activation and a sigmoid output layer.
- System C combined predictions from Systems A and B using a decision function: if both models agree on the class, the result is taken; otherwise, the class is determined by the sum of predicted probabilities exceeding 1.
- All models were trained using binary cross-entropy loss and evaluated using precision, recall, and F1-score, with weighted average F1-score used to handle class imbalance.
- Evaluation was conducted on a test set of 1,000 Manglish tweets, with metrics computed using scikit-learn’s classification_report function.
Experimental results
Research questions
- RQ1How effective are traditional neural network architectures like LSTM and dense networks in detecting offensive content in code-mixed Manglish tweets?
- RQ2To what extent do different embedding techniques—Keras embedding and Doc2Vec—impact the performance of offensive language detection in low-resource, code-mixed text?
- RQ3Can an ensemble of multiple classifiers improve detection performance on imbalanced code-mixed datasets compared to individual models?
- RQ4What is the performance of a simple, non-transformer-based model on the FIRE 2020 HASOC Dravidian CodeMix offensive language detection task?
- RQ5How do precision, recall, and F1-score vary across offensive and non-offensive classes in a low-resource, multilingual setting?
Key findings
- System A, based on Keras embedding and LSTM, achieved a weighted F1-score of 0.53, with precision and recall of 0.54 each on average.
- System B, using Doc2Vec and a deep dense network, achieved a lower weighted F1-score of 0.48, indicating poorer performance on the minority offensive class (F1=0.40).
- System C, the ensemble model combining predictions from Systems A and B, achieved the highest weighted F1-score of 0.54, showing that ensemble methods can mitigate individual model weaknesses.
- The micro and macro F1-scores across all systems were approximately 0.54, indicating consistent but moderate overall performance.
- The model showed better recall for the 'Not Offensive' class (0.60 in System A) but struggled with the 'Offensive' class, particularly in System B, where recall dropped to 0.32.
- Despite the use of advanced embedding techniques, the models achieved only moderate performance, suggesting significant room for improvement in representation learning for code-mixed Dravidian languages.
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.