Machine learning techniques for sentiment analysis classification: a comparative study

With the exponential growth of online communication, there is an urgent need for robust tools to decode human sentiment in digital text. This research utilized the Sentiment140 dataset, capturing a wide range of real-world Twitter (now X) messages, both positive and negative. This study conducted a rigorous comparative evaluation of various algorithms, including traditional classifiers like naive Bayes (NB), support vector machine (SVM), and logistic regression (LR), alongside deep learning architectures such as convolutional neural networks (CNN), recurrent neural networks (RNN), long-short term memory (LSTM), and bidirectional long-short term memory (BiLSTM). To enhance representational quality, feature engineering was approached through unigram, bigram, term frequency-inverse document frequency (TF-IDF), and advanced embeddings like word to vector (Word2Vec) and global vectors for word representation (GloVe). The analysis revealed a clear leader: transformer-based models, with bidirectional encoder representations from transformers (BERT) achieving an impressive accuracy of 92.76%, surpassing both classical and deep architectures. Notably, hybrid approaches like NB-SVM-maximum entropy (ME) and robustly optimized BERT pretraining approach (RoBERTa)-LSTM also demonstrated competitive performance, underscoring the ongoing relevance of feature-driven and ensemble methods. This finding prompts essential reflection: while transformers excel in contextual understanding, the choice of feature representation and hybridization strategies remains critical for optimizing performance. Ultimately, this study highlights the transformative role of modern architectures in sentiment analysis while reinforcing the importance of methodological diversity in advancing natural language processing (NLP).

Authors

Institutions

Publication Details

Journal
IAES International Journal of Artificial Intelligence
Published
2026-12-01
DOI
https://doi.org/10.11591/ijai.v15.i6.pp5822-5837
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
NOV
article

Machine learning techniques for sentiment analysis classification: a comparative study

Adnan Souri, Hicham Omara, Billal El Khattabi
3 links
IAES International Journal of Artificial Intelligence
Sentiment Analysis and Opinion Mining
article

Machine learning techniques for sentiment analysis classification: a comparative study

Adnan Souri, Hicham Omara, Billal El Khattabi
article en

Abstract

With the exponential growth of online communication, there is an urgent need for robust tools to decode human sentiment in digital text. This research utilized the Sentiment140 dataset, capturing a wide range of real-world Twitter (now X) messages, both positive and negative. This study conducted a rigorous comparative evaluation of various algorithms, including traditional classifiers like naive Bayes (NB), support vector machine (SVM), and logistic regression (LR), alongside deep learning architectures such as convolutional neural networks (CNN), recurrent neural networks (RNN), long-short term memory (LSTM), and bidirectional long-short term memory (BiLSTM). To enhance representational quality, feature engineering was approached through unigram, bigram, term frequency-inverse document frequency (TF-IDF), and advanced embeddings like word to vector (Word2Vec) and global vectors for word representation (GloVe). The analysis revealed a clear leader: transformer-based models, with bidirectional encoder representations from transformers (BERT) achieving an impressive accuracy of 92.76%, surpassing both classical and deep architectures. Notably, hybrid approaches like NB-SVM-maximum entropy (ME) and robustly optimized BERT pretraining approach (RoBERTa)-LSTM also demonstrated competitive performance, underscoring the ongoing relevance of feature-driven and ensemble methods. This finding prompts essential reflection: while transformers excel in contextual understanding, the choice of feature representation and hybridization strategies remains critical for optimizing performance. Ultimately, this study highlights the transformative role of modern architectures in sentiment analysis while reinforcing the importance of methodological diversity in advancing natural language processing (NLP).

IAES International Journal of Artificial IntelligenceVol. 15(6)
Abdelmalek Essaâdi University (MA), Sidi Mohamed Ben Abdellah University (MA)
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