Deep learning techniques for sentiment analysis in code-switched Hausa-English tweets

Social media serve as a crucial platform for expressing opinions and perspectives. Its texts often characterised by code-switching or mixed languages in multilingual setting. This results in a diverse and complex linguistic context, which can negatively affect the accuracy of sentiment analysis for...

Full description

Saved in:
Bibliographic Details
Main Authors: Yusuf Aliyu, Aliza Sarlan, Kamaluddeen Usman Danyaro, Abdullahi Sani abd Rahman, Aminu Aminu Muazu, Mustapha Yusuf Abubakar
Format: Article
Language:English
Published: Elsevier 2025-06-01
Series:International Journal of Information Management Data Insights
Subjects:
Online Access:http://www.sciencedirect.com/science/article/pii/S2667096825000126
Tags: Add Tag
No Tags, Be the first to tag this record!
Description
Summary:Social media serve as a crucial platform for expressing opinions and perspectives. Its texts often characterised by code-switching or mixed languages in multilingual setting. This results in a diverse and complex linguistic context, which can negatively affect the accuracy of sentiment analysis for low-resource languages such as Hausa. Prior research has predominantly concentrated on sentiment analysis within single-language data rather than code-switched data. This paper proposes an efficient hyperparameter tuning framework and a novel stemming algorithm for the Hausa language. The framework leverages word embeddings to determine the polarity scores of code-mixed tweets and enhances the accuracy of sentiment analysis models in low-resource language. The extensive experiments demonstrate the framework's efficiency and reveal a superior performance of transformer models over conventional deep learning models. The framework achieves a balance between accuracy and computational efficiency, making it suitable for deployment in practical applications. Compared to state-of-the-art transformer models, our framework significantly reduces computational costs while maintaining competitive performance. Notably, the AfriBERTa model achieves outstanding results, with an F1-score of 0.92 and an accuracy of 0.919, surpassing current baseline standards. These findings have broad implications for social media monitoring, customer feedback analysis, and public sentiment tracking, enabling more inclusive and accessible NLP tools for underrepresented linguistic communities.
ISSN:2667-0968