Sentiment analysis in Bangla: A three-class dataset and comparative evaluation of machine learning, deep learning, and transformer approaches.
Md Nahid Hasan, Jahanur Biswas, Antu Chowdhury, Md Rakib Hossain, Mir Aminul Haque, Md Muksit Ul Islam
Department of Computer Science and Engineering, Dhaka International University, Dhaka, Bangladesh. · Department of Computer Science and Engineering, East West University, Dhaka, Bangladesh.
Key points
From the paper's conclusion- The results show that BanglaBERT outperforms all other pretrained with approximately 80% accuracy, indicating good generalizability over sentiment classes.
Abstract
Despite the increasing growth of sentiment analysis (SA) in several languages, Bangla is largely unexplored as a result of the low availability of annotated datasets, class imbalance, and challenging linguistic features such as inflectional morphology and code mixing. Existing work has concentrated mostly on limited or in-domain corpora, which leaves a void for general multi-domain sentiment resources based on real-world usage. The aim of the research work is to present such a balanced three-class sentiment dataset from Bangla social media text messages, with each post annotated by native speakers as positive, negative, or neutral. A robust preprocessing pipeline, including denoising, abbreviation expansion, and tokenization, was applied to improve data quality. Features were extracted using Count Vectorizer and Word2Vec embeddings, followed by the implementation of several machine learning (SVM, Random Forest, XGBoost) and deep learning (GRU, LSTM) models. In addition, fine-tuning was also applied to the BanglaBERT transformer model for comparison. The results show that BanglaBERT outperforms all other pretrained with approximately 80% accuracy, indicating good generalizability over sentiment classes. These observations support the success of transformer-based architectures trained on low-resource languages. The release of this dataset is expected to facilitate further advances in Bangla sentiment analysis and provide a scalable foundation for multilingual and cross-lingual NLP research.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- BanglishDepYT: Depression Detection in Native Bengali Social Media with Emotion-Preserving Preprocessing and Domain-Adaptive PretrainingarXiv · 2026
- BanglaHateCorpus: A large-scale bangla benchmark for hate speech classification and a transformer-based deep learning method.PloS one · 2026
- BanglaMix: a dataset of token-level annotated Bengali-English code-mixed social media comments with Bengali transliteration.Data in brief · 2026
- Can LLMs Follow the Pulse of a Crisis? Evaluating Crisis Sentiment in Bangladesh's July UprisingarXiv · 2026
- Depression Detection in Low-Resource Languages: A BERT-Based Deep Learning Approach for Hindi and Bhojpuri Social Media PostsPsychiatry International · 2026
- Transformer-Driven Machine-Learning Framework for Low-Resource Sentiment ClassificationElectronics · 2026