Sentiment Analysis Using Machine Learning
DOI:
https://doi.org/10.32628/CSEIT25113385Keywords:
Natural language processing (NLP), Naive Bayes, Support Vector Machines (SVM), Logistic Regression, Twitter dataAbstract
In the era of electronic correspondence, enormous volumes oftextual data are generated daily through platforms such as social media, reviews, and forums. Extracting meaningful insights from this unstructured data has become increasingly important for businesses, governments, and researchers. Sentiment analysis, often known as opinion mining, is a natural language processing (NLP) technique that evaluates the emotional tone of a document. A method to sentiment analysis with machine learning techniques is presented in this research. In order to categorize text into positive, negative, or neutral attitudes, the study investigates the use of many supervised learning techniques, such as Naive Bayes, Support Vector Machines (SVM), and Logistic Regression. Benchmark datasets like Twitter data and IMDb movie reviews are used to train and assess the algorithm. To improve model performance, preprocessing techniques such as vectorization (TF-IDF), tokenization, and stop-word deletion are used. The findings suggest that machine learning models, with SVM exhibiting especially good performance, can classify sentiment with high accuracy. This study demonstrates how machine learning can be used to better understand public sentiment and assist in decision-making in a variety of industries.
Downloads
References
A. Sharma, R. Gupta, and P. Verma, “Innovative Sentiment Analysis and Prediction of Stock Price Using FinBERT, GPT-4, and Logistic Regression: A Data-Driven Approach,” arXiv preprint, Dec. 2024. [Online]. Available: https://arxiv.org/abs/2412.06837
M. Zhang and L. Chen, “Enhanced Financial Sentiment Analysis and Trading Strategy Development Using Large Language Models,” in Proc. of the Annual Meeting of the Association for Computational Linguistics (ACL), 2024. [Online]. Available: https://aclanthology.org/2024.wassa-1.1
S. Li et al., “M2SA: Multimodal and Multilingual Model for Sentiment Analysis of Tweets,” in Proc. of the Language Resources and Evaluation Conference (LREC), 2024. [Online]. Available: https://aclanthology.org/2024.lrec-main.946
J. Williams, K. Brown, and T. Nguyen, “Argument-Based Sentiment Analysis on Forward-Looking Statements,” in Findings of the Association for Computational Linguistics (ACL), 2024. DOI:10.18653/v1/2024.findings-acl.820.
R. Kumar, A. Singh, and P. Das, “Sentiment Analysis in the Era of Large Language Models: A Reality Check,” in Findings of the North American Chapter of the Association for Computational Linguistics (NAACL), 2024. [Online]. Available: https://anthology.aclweb.org/2024.findings-naacl.246
Y. Zhou et al., “Joint Multimodal Aspect Sentiment Analysis with Aspect Enhancement and Syntactic Adaptive Learning,” in Proc. of the International Joint Conference on Artificial Intelligence (IJCAI), 2024. [Online]. Available: https://www.ijcai.org/proceedings/2024/738
F. A. Rahman, H. Setiawan, and M. Lubis, “Sentiment Analysis of Twitter Users Ahead of the 2024 Election Using the Naïve Bayes Method,” International Journal of Artificial Intelligence and Data Science (IOTA), vol. 7, no. 2, pp. 45-56, 2024. [Online]. Available: https://pubs.ascee.org/index.php/iota/article/view/784
C. Park, X. Wu, and L. Zhao, “Weakly Correlated Multimodal Sentiment Analysis: New Dataset and Topic-Oriented Model,” IEEE Transactions on Affective Computing, vol. 15, no. 1, pp. 88-102, 2024. [Online]. Available: https://dl.acm.org/doi/abs/10.1109/TAFFC.2024.3396144
H. Lee and J. Kim, “Exploring Language Models to Analyze Market Demand Sentiments from News,” in Proc. of the Workshop on Affective Content Analysis (WASSA) at ACL, 2024. [Online]. Available: https://aclanthology.org/2024.wassa-1.21
S. Patel and A. Mehta, “Zero-Shot Multilingual Sentiment Analysis Using Transformer-Based Models,” International Journal of Engineering Research and Development (IJERND), vol. 12, no. 4, pp. 120-135, 2024. [Online]. Available: https://www.ijernd.com/index.php/2024/issue/view/34
Lu C, Ke L, Zhang Q, Deng X, Shang W, Zhao X, Li Y, Xie Y, Wang Z. 2024. Quality of systematic reviews with meta-analyses of resveratrol: a methodological systematic review. Phytotherapy Research 38(1):11–21, DOI: 10.1002/ptr.8025.
Ibrahim Khalil MW, Kamel MAE. 2024. Towards smart sustainable cities vision and challenges. International Journal of Nonlinear Analysis and Applications 15(3):261–274. DOI: 10.22075/ijnaa.2023.78235.4200.
Ahaidous K, Tabaa M, Hachimi H. 2023. Towards IoT-big data architecture for future education. Procedia Computer Science 220:348–355 DOI: 10.1016/j.procs.2023.03.045.
Appasaheb Borgalli R, Surve S. 2023. Learning framework for compound facial emotion recognition. Recent Advances in Electrical & Electronic Engineering (Formerly Recent Patents on Electrical & Electronic Engineering) 16(6):664–676. DOI: 10.2174/2352096516666230403091253.
Brooks JA, Tzirakis P, Baird A, Kim L, Opara M, Fang X, Keltner D, Monroy M, Corona R, Metrick J. 2023. Deep learning reveals what vocal bursts express in different cultures. Nature Human Behaviour 7(2):240–250. DOI: 10.1038/s41562-022-01489-2.
Cîrneanu AL, Popescu D, Iordache D. 2023. New trends in emotion recognition using image analysis by neural networks. A systematic review. Sensors 23(16):7092. DOI:10.3390/s23167092.
Karnati M, Seal A, Bhattacharjee D, Yazidi A, Krejcar O. 2023. Understanding deep learning techniques for recognition of human emotions using facial expressions: a comprehensive survey. IEEE Transactions on Instrumentation and Measurement 72:1–31. DOI:10.1109/TIM.2023.3243661.
Liang PP, Morency LP. 2023. Tutorial on multimodal machine learning: principles, challenges, and open questions. In: International conference on multimodal interaction. 101–104.
Costantini G, Parada-Cabaleiro E, Casali D, Cesarini V. 2022. The emotion probe: on the universality of cross-linguistic and cross-gender speech emotion recognition via machine learning. Sensors 22(7):2461. DOI: 10.3390/s22072461.
Han K, Wang Y, Chen H, Chen X, Guo J, Liu Z, Tang Y, Xiao A, Xu C, Xu Y, Yang Z, Zhang Y, Tao D. 2022. A survey on vision transformer. IEEE Transactions on Pattern Analysis and Machine Intelligence 45(1):87–110.
Haryanto H, Agastya W. 2022. Synthesis of compound facial expressions based on indonesian sentences using multinomial Naïve Bayes model and dominance threshold equations. Engineering Letters 30(1).
Bagchi T, Mahapatra A, Yadav D, Mishra D, Pandey A, Chandrasekhar P, Kumar A. 2022. Intelligent security system based on face recognition and IoT. Materials Today: Proceedings 62:2133–2137.
Ansari L, Ji S, Chen Q, Cambria E. 2022. Ensemble hybrid learning methods for automated depression detection. IEEE Transactions on Computational Social Systems 10(1):211–219.
Ahmad K, Wang S, Vogel C, Jain P, O’Neill O, Sufi BH. 2022. Comparing the performance of facial emotion recognition systems on real-life videos: gender, ethnicity and age. In: Proceedings of the future technologies conference (FTC) 2021, vol. 1. Cham: Springer International Publishing, 193–210.
S. Minaee, M. Minaei, and A. Abdolrashidi, “Deep-emotion: facial expression recognition using attentional convolutional network,” Sensors, vol. 21, no. 9, p. 3046, 2021.
X. Zhao, X. Shi, and S. Zhang, “Facial expression recognition via deep learning,” IETE Technical Review, vol. 32, no. 5, pp. 347–355, 2015.
M. Abdulrahman and A. Eleyan, “Facial expression recognition using support vector machines,” in Proceedings of the 2015 23nd signal processing and communications applications conference (SIU), pp. 276–279, IEEE, Malatya, Turkey, May 2015.
M. Rescigno, M. Spezialetti, and S. Rossi, “Personalized models for facial emotion recognition through transfer learning,” Multimedia Tools and Applications, vol. 79, no. 47-48, pp. 35811–35828, 2020.
D. K. Jain, P. Shamsolmoali, and P. Sehdev, “Extended deep neural network for facial emotion recognition,” Pattern Recognition Letters, vol. 120, pp. 69–74, 2019.
M. A. H. Akhand, S. Roy, N. Siddique, M. A. S. Kamal, and T. Shimamura, “Facial emotion recognition using transfer learning in the deep CNN,” Electronics, vol. 10, no. 9, p. 1036, 2021.
H. M. Shahzad, S. M. Bhatti, A. Jaffar, S. Akram, M. Alhajlah, and A. Mahmood, “Hybrid facial emotion recognition using CNN-based features,” Applied Sciences, vol. 13, no. 9, p. 5572, 2023.
X. Wang, Y. Wang, and D. Zhang, “Complex emotion recognition via facial expressions with label noises self-cure relation networks,” Computational Intelligence and Neuroscience, vol. 2023, Article ID 7850140, 10 pages, 2023.
Jain, A. K., Ross, A., & Nandakumar, K. (2016). Introduction to biometrics. Springer.
Li, X., Tao, D., & Li, X. (2014). Face recognition using deep multi-pose representations. IEEE Transactions on Multimedia, 16(4), 1060-1073. DOI:10.1109/WACV.2016.7477555
Downloads
Published
Issue
Section
License
Copyright (c) 2025 International Journal of Scientific Research in Computer Science, Engineering and Information Technology

This work is licensed under a Creative Commons Attribution 4.0 International License.