Comparing Machine Learning Algorithms for Sentiment Analysis in Movie Reviews

Authors

  • Mamta Bisht Department of Computer Science and Engineering (AIML), Inderprastha Engineering College, Ghaziabad, India
  • Mukul Gupta Department of Computer Science and Engineering (AIML), Inderprastha Engineering College, Ghaziabad, India
  • Vinod Kharakwal Department of Computer Science and Engineering (AIML), Inderprastha Engineering College, Ghaziabad, India
  • Sparsh Jain Department of Computer Science and Engineering (AIML), Inderprastha Engineering College, Ghaziabad, India
  • Shubh Verma Department of Computer Science and Engineering (AIML), Inderprastha Engineering College, Ghaziabad, India

DOI:

https://doi.org/10.13052/jgeu0975-1416.13110

Keywords:

Sentiment analysis, machine learning, Naive Bayes, logistic regression, support vector machines

Abstract

Sentiment analysis is a crucial natural language processing component that helps businesses to understand public opinion, customer feedback, and market trends. This study evaluates the performance of three machine learning models, namely Naive Bayes, Logistic Regression and SVM in classifying the sentiment of movie reviews. We analyzed 50,000 IMDB reviews from Kaggle using TF-IDF with three ML models using the following key metrics: accuracy, precision, recall, and F1-score. We further analyzed the confusion matrix for each model, which provided insights into the number of correctly and incorrectly classified reviews, helping identify potential areas for improvement. The findings of this study can guide the selection and optimization of algorithms for sentiment analysis, ultimately improving marketing, customer engagement, and social media strategies.

Downloads

Download data is not yet available.

Author Biographies

Mamta Bisht, Department of Computer Science and Engineering (AIML), Inderprastha Engineering College, Ghaziabad, India

Mamta Bisht is a passionate researcher and educator in Artificial Intelligence, Machine Learning, and Digital Communication. She earned her B.Tech. in Electronics and Communication Engineering from H.N.B. Garhwal University (A Central University, Srinagar, Uttarakhand) in 2011 and an M. Tech. in Digital Communication from B.T.K.I.T. Dwarahat (An Autonomous Institute of the Government of Uttarakhand) in 2015. She has pursued a Ph.D. in Electronics and Communication Engineering at Jaypee Institute of Information Technology, Noida, which she successfully completed in 2023. Her doctoral research, “Handwritten Text Recognition for Devanagari Script using Deep Learning Models,” explores innovative solutions in pattern recognition and AI-driven linguistic processing. Her research contributions are featured in reputed indexed journals and conferences. She actively explores cutting-edge developments in AI, Image Processing, Pattern Recognition, Deep Learning, Signal Processing, and Communication. Currently, she serves as an Assistant Professor in the Department of Computer Science and Engineering (AI & ML) at Indraprastha Engineering College, Ghaziabad.

Mukul Gupta, Department of Computer Science and Engineering (AIML), Inderprastha Engineering College, Ghaziabad, India

Mukul Gupta is a final-year B.Tech student in the Department of Computer Science and Engineering (AI & ML) at Indraprastha Engineering College, Ghaziabad. His academic interests include artificial intelligence, machine learning, and software development. He has worked on projects involving front-end development, API integration, and sentiment analysis. He is passionate about exploring new technologies and applying them to real-world problems.

Vinod Kharakwal, Department of Computer Science and Engineering (AIML), Inderprastha Engineering College, Ghaziabad, India

Vinod Kharkwal is a final-year B.Tech student in the Department of Computer Science and Engineering (AI & ML) at Indraprastha Engineering College, Ghaziabad. He has strong interest in artificial intelligence, machine learning, and cloud computing. Over time, he has worked on various projects, including front-end development, Android applications, and sentiment analysis. He enjoys discovering emerging technologies and leveraging them to solve practical challenges. His key focus areas include artificial intelligence, cybersecurity, and cloud computing.

Sparsh Jain, Department of Computer Science and Engineering (AIML), Inderprastha Engineering College, Ghaziabad, India

Sparsh Jain is a final-year B.Tech student in the Department of Computer Science and Engineering (AI & ML) at Indraprastha Engineering College, Ghaziabad. His academic interests include artificial intelligence, cloud computing, and cybersecurity. He has worked on projects involving Web development, machine learning, or network security. He is passionate about leveraging technology to solve real-world challenges and is continuously exploring new advancements in his field.

Shubh Verma, Department of Computer Science and Engineering (AIML), Inderprastha Engineering College, Ghaziabad, India

Shubh Verma is a graduating B.Tech student specializing in Artificial Intelligence and Machine Learning at Indraprastha Engineering College, Ghaziabad. He is deeply interested in data analysis. He has hands-on experience in projects involving data analysis, front-end development, and sentiment analysis. Shubh is enthusiastic about adopting cutting-edge technologies to create impactful solutions and is always looking to refine his technical proficiency.

References

Q. A. Xu, V. Chang, and C. Jayne, “A systematic review of social media-based sentiment analysis: Emerging trends and challenges,” Decision Analytics Journal, vol. 3, p. 100073, 2022.

C. Sahoo, M. Wankhade, and B. K. Singh, “Sentiment analysis using deep learning techniques: a comprehensive review,” Int J Multimed Info Retr, vol. 12, no. 2, p. 41, Dec. 2023.

Md. S. Islam et al., “Challenges and future in deep learning for sentiment analysis: a comprehensive review and a proposed novel hybrid approach,” Artif Intell Rev, vol. 57, no. 3, p. 62, Mar. 2024.

R. B. Shamantha, S. M. Shetty, and P. Rai, “Sentiment analysis using machine learning classifiers: evaluation of performance,” in 2019 IEEE 4th international conference on computer and communication systems (ICCCS), IEEE, 2019, pp. 21–25.

M. D. Devika, C. Sunitha, and A. Ganesh, “Sentiment analysis: a comparative study on different approaches,” Procedia Computer Science, vol. 87, pp. 44–49, 2016.

M. Dorothy and S. Rajini, “The Various Approaches for Sentiment Analysis: A Survey,” vol, vol. 5, pp. 2014–2016, 2016.

M. Avinash and E. Sivasankar, “A Study of Feature Extraction Techniques for Sentiment Analysis,” in Emerging Technologies in Data Mining and Information Security, vol. 814, A. Abraham, P. Dutta, J. K. Mandal, A. Bhattacharya, and S. Dutta, Eds., in Advances in Intelligent Systems and Computing, vol. 814, Singapore: Springer Singapore, 2019, pp. 475–486.

M. Kabir, M. Md. J. Kabir, S. Xu, and B. Badhon, “An empirical research on sentiment analysis using machine learning approaches,” International Journal of Computers and Applications, vol. 43, no. 10, pp. 1011–1019, Nov. 2021.

P. P. Surya and B. Subbulakshmi, “Sentimental analysis using Naive Bayes classifier,” in 2019 International conference on vision towards emerging trends in communication and networking (ViTECoN), IEEE, 2019, pp. 1–5.

P. B. Pajila, B. G. Sheena, A. Gayathri, J. Aswini, and M. Nalini, “A comprehensive survey on naive bayes algorithm: Advantages, limitations and applications,” in 2023 4th International Conference on Smart Electronics and Communication (ICOSEC), IEEE, 2023, pp. 1228–1234. Accessed: Mar. 08, 2025.

R. Swathi, A. Sri, and P. Roshini, “Sentiment Classification of Movie Reviews with Logistic Regression,” in 2024 International Conference on Sustainable Communication Networks and Application (ICSCNA), IEEE, 2024, pp. 1534–1538.

D. N. Devi, C. K. Kumar, and S. Prasad, “A feature based approach for sentiment analysis by using support vector machine,” in 2016 IEEE 6th international conference on advanced computing (IACC), IEEE, 2016, pp. 3–8.

Downloads

Published

2025-04-22

How to Cite

Bisht, M., Gupta, M., Kharakwal, V., Jain, S., & Verma, S. (2025). Comparing Machine Learning Algorithms for Sentiment Analysis in Movie Reviews. Journal of Graphic Era University, 13(01), 205–220. https://doi.org/10.13052/jgeu0975-1416.13110

Issue

Section

Articles