{"title":"Sentiment analysis of movie reviews: A flask application using CNN with RoBERTa embeddings","authors":"Biplov Paneru , Bipul Thapa , Bishwash Paneru","doi":"10.1016/j.sasc.2025.200192","DOIUrl":null,"url":null,"abstract":"<div><div>Sentiment analysis, an important task in Natural Language Processing (NLP), focuses on identifying and extracting sentiments from input. With the exponential expansion of digital information, sentiment analysis has recently gained significant attention across various domains. Traditional sentiment analysis methods paired with static embeddings often fall short in capturing the deep contextual relationships within text. In this work, we analyze sentiment in IMDB movie reviews using a hybrid deep learning model combining RoBERTa embeddings with a convolutional neural network (R-CNN). We provide a comprehensive overview of the creation and assessment of a convolutional learning model especially suited for sentiment analysis of movie reviews using a dataset of around 50k entries. The proposed approach preprocesses movie reviews, employs RoBERTa to generate rich contextual embeddings, and processes these embeddings through a simple yet effective R-CNN architecture. We perform comprehensive analysis of the R-CNN model, showing a superior test accuracy of 91.5 %, achieving the best results compared to the baseline. Additionally, we develop a Flask-based application, demonstrating the practical applicability of our R-CNN model for real-time sentiment prediction.</div></div>","PeriodicalId":101205,"journal":{"name":"Systems and Soft Computing","volume":"7 ","pages":"Article 200192"},"PeriodicalIF":0.0000,"publicationDate":"2025-01-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Systems and Soft Computing","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2772941925000109","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Sentiment analysis, an important task in Natural Language Processing (NLP), focuses on identifying and extracting sentiments from input. With the exponential expansion of digital information, sentiment analysis has recently gained significant attention across various domains. Traditional sentiment analysis methods paired with static embeddings often fall short in capturing the deep contextual relationships within text. In this work, we analyze sentiment in IMDB movie reviews using a hybrid deep learning model combining RoBERTa embeddings with a convolutional neural network (R-CNN). We provide a comprehensive overview of the creation and assessment of a convolutional learning model especially suited for sentiment analysis of movie reviews using a dataset of around 50k entries. The proposed approach preprocesses movie reviews, employs RoBERTa to generate rich contextual embeddings, and processes these embeddings through a simple yet effective R-CNN architecture. We perform comprehensive analysis of the R-CNN model, showing a superior test accuracy of 91.5 %, achieving the best results compared to the baseline. Additionally, we develop a Flask-based application, demonstrating the practical applicability of our R-CNN model for real-time sentiment prediction.