Sentiment analysis in Bangla: A three-class dataset and comparative evaluation of machine learning, deep learning, and transformer approaches

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.

Authors

Institutions

Publication Details

Journal
PLoS ONE
Published
2026-10-27
DOI
https://doi.org/10.1371/journal.pone.0360952
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Sentiment analysis in Bangla: A three-class dataset and comparative evaluation of machine learning, deep learning, and transformer approaches

Md. Rakib Hossain, Jahanur Biswas, Md Nahid Hasan, Md. Muksit Ul Islam et al.
4 links
PLoS ONE
Sentiment Analysis and Opinion Mining
article

Sentiment analysis in Bangla: A three-class dataset and comparative evaluation of machine learning, deep learning, and transformer approaches

Md. Rakib Hossain, Jahanur Biswas, Md Nahid Hasan, Md. Muksit Ul Islam, Antu Chowdhury, Mir Aminul Haque
article en

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.

PLoS ONEVol. 21(10)
Dhaka International University (BD), East–West University (US), East West University (BD)
Openalex Percentile: Top 13%
Sentiment Analysis and Opinion Mining
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon