[Paper Review] HausaNLP at SemEval-2023 Task 12: Leveraging African Low Resource TweetData for Sentiment Analysis
This paper presents a sentiment analysis system for 14 low-resource African languages using Twitter data, leveraging pre-trained models including Afro-xlmr-large, AfriBERTa-large, and BERT-based models. Afro-xlmr-large achieved the highest performance across monolingual, multilingual, and zero-shot subtasks, with Hausa, Igbo, and Yoruba showing superior results due to larger training data volumes.
We present the findings of SemEval-2023 Task 12, a shared task on sentiment analysis for low-resource African languages using Twitter dataset. The task featured three subtasks; subtask A is monolingual sentiment classification with 12 tracks which are all monolingual languages, subtask B is multilingual sentiment classification using the tracks in subtask A and subtask C is a zero-shot sentiment classification. We present the results and findings of subtask A, subtask B and subtask C. We also release the code on github. Our goal is to leverage low-resource tweet data using pre-trained Afro-xlmr-large, AfriBERTa-Large, Bert-base-arabic-camelbert-da-sentiment (Arabic-camelbert), Multilingual-BERT (mBERT) and BERT models for sentiment analysis of 14 African languages. The datasets for these subtasks consists of a gold standard multi-class labeled Twitter datasets from these languages. Our results demonstrate that Afro-xlmr-large model performed better compared to the other models in most of the languages datasets. Similarly, Nigerian languages: Hausa, Igbo, and Yoruba achieved better performance compared to other languages and this can be attributed to the higher volume of data present in the languages.
Motivation & Objective
- Address the lack of sentiment analysis research for low-resource African languages, particularly in NLP and social media contexts.
- Overcome data scarcity challenges in African languages by leveraging publicly available Twitter datasets for sentiment classification.
- Evaluate the effectiveness of multilingual and zero-shot transfer learning approaches for African languages using pre-trained models.
- Investigate the impact of training data volume on model performance across diverse African languages.
- Contribute a publicly released codebase and benchmark for future research in African language NLP.
Proposed method
- Fine-tuned five pre-trained transformer models—Afro-xlmr-large, AfriBERTa-large, BERT-base-arabic-camelbert-da-sentiment, mBERT, and BERT—on monolingual, multilingual, and zero-shot sentiment classification tasks.
- Utilized a gold-standard, multi-class labeled Twitter dataset spanning 14 African languages, including Hausa, Yoruba, Igbo, Amharic, Tigrinya, Oromo, Swahili, and others.
- Applied transfer learning techniques to adapt pre-trained models to low-resource African language settings with limited annotated data.
- Conducted ablation studies to analyze the correlation between training data size and model performance across languages.
- Employed standard NLP evaluation metrics (weighted F1-score) to compare model performance across subtasks and languages.
- Released code and models on GitHub to support reproducibility and future research in African NLP.

Experimental results
Research questions
- RQ1How do pre-trained multilingual and monolingual models perform on sentiment classification tasks for low-resource African languages?
- RQ2What is the impact of training data volume on model performance in low-resource African language settings?
- RQ3Can zero-shot transfer learning effectively classify sentiment in African languages without fine-tuning on target language data?
- RQ4Which pre-trained model architecture achieves the highest performance across diverse African languages and subtasks?
- RQ5To what extent do language-specific models outperform multilingual or multilingual-robust models in low-resource settings?
Key findings
- Afro-xlmr-large achieved the highest overall performance across all three subtasks, securing the top score in 9 out of 15 tasks.
- Hausa, Igbo, and Yoruba achieved the best results among all languages, with Hausa recording a peak F1-score of 81.00% in monolingual sentiment classification.
- Afro-xlmr-large achieved 69.50% F1-score in the multilingual subtask, demonstrating strong cross-lingual transfer capability.
- In the zero-shot subtask, Afro-xlmr-large achieved 46.20% F1 on Oromo and AfriBERTa-large achieved 62.50% on Tigrinya, indicating strong zero-shot generalization.
- A strong correlation was found between training data volume and model performance, with Xitsonga (804 training samples) achieving the lowest F1 (50.3%) and Hausa (14,172 samples) the highest.
- The BERT-base-arabic-camelbert-da-sentiment model performed best on Arabic-dialect datasets (Darija and Algerian Arabic), reflecting its pre-training on Arabic corpora.
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.