Open Access iconOpen Access

ARTICLE

Optimize Sentiment Analysis: Through Machine Learning & Natural Language Processing Techniques

Naimul Hasan Shadesh*, Zannatul Ferdous, Bipasha Iasmin

Department of Computer Science and Engineering, Sonargaon University (SU), Dhaka, Bangladesh

* Corresponding Author: Naimul Hasan Shadesh. Email: email

(This article belongs to the Special Issue: Advances in Artificial Intelligence for Engineering and Sciences)

Journal on Artificial Intelligence 2026, 8, 335-357. https://doi.org/10.32604/jai.2026.078589

Abstract

Sentiment analysis is a core task in Natural Language Processing (NLP) that aims to identify opinions and sentiment polarity expressed in textual data. This study presents a systematic empirical evaluation of classical machine learning–based sentiment analysis methods using a unified experimental framework. Several supervised classifiers, including Decision Trees, Logistic Regression, Support Vector Machines (SVM), Random Forests, Naïve Bayes, and K-Nearest Neighbors (KNN), are evaluated on labeled text datasets collected from multiple domains such as product reviews, customer feedback, hotel reviews, and social media content. The experimental pipeline includes standard NLP preprocessing steps—text normalization, tokenization, stopword removal, and lemmatization—followed by feature extraction using TF-IDF and n-gram representations. To address class imbalance, the Synthetic Minority Over-sampling Technique (SMOTE) is applied during training, and model performance is assessed using stratified cross-validation and grid search–based hyperparameter tuning. Experimental results indicate that Logistic Regression achieves the highest classification accuracy of 97.11% on a balanced test split, demonstrating the continued effectiveness of classical machine learning models for sentiment analysis when combined with appropriate preprocessing and validation strategies.

Keywords

Sentiment analysis; NLP; ML; preprocessing techniques; decision trees; logistic regression; SVM; random forests; naive bayes; KNN; synthetic minority over-sampling technique; cross-validation

Cite This Article

APA Style
Shadesh, N.H., Ferdous, Z., Iasmin, B. (2026). Optimize Sentiment Analysis: Through Machine Learning & Natural Language Processing Techniques. Journal on Artificial Intelligence, 8(1), 335–357. https://doi.org/10.32604/jai.2026.078589
Vancouver Style
Shadesh NH, Ferdous Z, Iasmin B. Optimize Sentiment Analysis: Through Machine Learning & Natural Language Processing Techniques. J Artif Intell. 2026;8(1):335–357. https://doi.org/10.32604/jai.2026.078589
IEEE Style
N. H. Shadesh, Z. Ferdous, and B. Iasmin, “Optimize Sentiment Analysis: Through Machine Learning & Natural Language Processing Techniques,” J. Artif. Intell., vol. 8, no. 1, pp. 335–357, 2026. https://doi.org/10.32604/jai.2026.078589



cc Copyright © 2026 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 163

    View

  • 15

    Download

  • 0

    Like

Share Link