Evaluasi Performa Algoritma Machine Learning untuk Klasifikasi Sentimen Ulasan Film IMDb

Akhiyar Waladi, Hasanatul Iftitah

Abstract


IMDb with over 83 million active users generates millions of movie reviews annually. Manually analyzing such large textual data is impractical, necessitating automated approaches for binary sentiment classification. This study tested three traditional machine learning algorithms, namely Logistic Regression, Naive Bayes, and Random Forest, on 50,000 English-language movie reviews with balanced distribution between positive and negative sentiments. Feature extraction was performed using CountVectorizer and TF-IDF after preprocessing steps including HTML tag removal, contraction expansion, and text normalization. Among all combinations tested, Logistic Regression with TF-IDF achieved the best results with 87.29% accuracy, 87.32% F1-score, and 0.9481 AUC-ROC. Performance consistency was confirmed through 5-fold cross-validation with low coefficient of variation across all folds. Feature importance analysis revealed that words like "excellent," "perfect," and "amazing" indicate positive sentiment, while "worst," "awful," and "terrible" mark negative sentiment. Naive Bayes excelled in speed with 11.5 seconds training time but lower accuracy, while Logistic Regression offered the best balance between accuracy and efficiency at 17.2 seconds. Beyond accuracy, Logistic Regression provides interpretable coefficients explaining which words drive predictions. The findings demonstrate that properly tuned traditional algorithms remain viable for sentiment analysis in the entertainment industry

Keywords


Sentiment Analysis IMDb; TF-IDF; Logistic Regression; Feature Importance

Full Text:

PDF

References


P. Atandoh, F. Zhang, M. A. Al-Antari, D. Addo, and Y. H. Gu, "Scalable deep learning framework for sentiment analysis prediction for online movie reviews," Heliyon, vol. 10, no. 10, e30756, May 2024, doi: 10.1016/j.heliyon.2024.e30756.

M. Bordoloi and S. K. Biswas, "Sentiment analysis: A survey on design framework, applications and future scopes," Artif. Intell. Rev., vol. 56, pp. 12505–12560, Mar. 2023, doi: 10.1007/s10462-023-10442-2.

A. Mabrouk, R. P. Díaz-Redondo, and M. Kayed, "Deep learning-based sentiment classification: A comparative survey," IEEE Access, vol. 8, pp. 85616–85638, May 2020, doi: 10.1109/ACCESS.2020.2992013.

S. A. H. Bahtiar, C. K. Dewa, and A. Luthfi, "Comparison of Naïve Bayes and Logistic Regression in sentiment analysis on marketplace reviews using rating-based labeling," J. Inf. Syst. Inform., vol. 5, no. 3, pp. 915–927, Sep. 2023, doi: 10.51519/journalisi.v5i3.539.

S. Sperandei, "Understanding logistic regression analysis," Biochem. Med., vol. 24, no. 1, pp. 12–18, Feb. 2014, doi: 10.11613/BM.2014.003.

M. H. I. Bijoy, "Comparison of TF-IDF with CountVectorizer for sentiment analysis from Bengali text using supervised machine learning," in Proc. IEEE CS BDC Symp., 2024. [Online]. Available: https://s24.ieeecsbdc.org/papers/35

Y. Paul, S. ul Nisa, H. Hussain, and R. Singh, "Twitter sentiment analysis using TF-IDF and machine learning classifiers," Int. J. Recent Innov. Trends Comput. Commun., vol. 11, no. 3, pp. 693–701, Mar. 2023, doi: 10.17762/ijritcc.v11i3.11515.

K. L. Tan, C. P. Lee, and K. M. Lim, "A survey of sentiment analysis: Approaches, datasets, and future research," Appl. Sci., vol. 13, no. 7, 4550, Apr. 2023, doi: 10.3390/app13074550.

L. Zhang, S. Wang, and B. Liu, "Deep learning for sentiment analysis: A survey," WIREs Data Min. Knowl. Discov., vol. 8, no. 4, e1253, Feb. 2018, doi: 10.1002/widm.1253.

N. A. Semary, W. Ahmed, K. Amin, P. Pławiak, and M. Hammad, "Enhancing machine learning-based sentiment analysis through feature extraction techniques," PLOS ONE, vol. 19, no. 2, e0294968, Feb. 2024, doi: 10.1371/journal.pone.0294968.

L. Ashbaugh and Y. Zhang, "A comparative study of sentiment analysis on customer reviews using machine learning and deep learning," Computers, vol. 13, no. 12, 340, Dec. 2024, doi: 10.3390/computers13120340.

B. Kabra and C. Nagar, "Attention-Emotion-Embedding BiLSTM-GRU network based sentiment analysis," J. Integr. Sci. Technol., vol. 11, no. 4, 503, 2023. [Online]. Available: https://pubs.thesciencein.org/journal/index.php/jist/article/view/a563

M. Arief and N. A. Samsudin, "Hybrid approach with VADER and Multinomial Logistic Regression for multiclass sentiment analysis," Int. J. Adv. Comput. Sci. Appl., vol. 14, no. 12, pp. 232–241, Dec. 2023, doi: 10.14569/IJACSA.2023.0141232.

N. S. Wardana, F. P. Aditiawan, and A. P. Sari, "Logistic Regression classification with TF-IDF and FastText for sentiment analysis," VISA J. Vis. Ideas, vol. 4, no. 3, pp. 1359–1371, 2024, doi: 10.47467/visa.v4i3.2835.

E. Cambria, S. Poria, A. Gelbukh, and M. Thelwall, "Sentiment analysis is a big suitcase," IEEE Intell. Syst., vol. 32, no. 6, pp. 74–80, Nov. 2017, doi: 10.1109/MIS.2017.4531228.

A. Yadav and D. K. Vishwakarma, "Sentiment analysis using deep learning architectures: A review," Artif. Intell. Rev., vol. 53, no. 6, pp. 4335–4385, Aug. 2020, doi: 10.1007/s10462-019-09794-5.

S. Seo, C. Kim, H. Kim, K. Mo, and P. Kang, "Comparative study of deep learning-based sentiment classification," IEEE Access, vol. 8, pp. 6861–6875, Jan. 2020, doi: 10.1109/ACCESS.2019.2963426.

Y. Su and Y. Shen, "A deep learning-based sentiment classification model for real online consumption," Front. Psychol., vol. 13, 886982, Apr. 2022, doi: 10.3389/fpsyg.2022.886982.

N. C. Dang, M. N. Moreno-García, and F. De la Prieta, "Sentiment analysis based on deep learning: A comparative study," Electronics, vol. 9, no. 3, 483, Mar. 2020, doi: 10.3390/electronics9030483.

N. A. Helal, A. Hassan, N. L. Badr, and Y. M. Afify, "A contextual-based approach for sarcasm detection," Sci. Rep., vol. 14, 15415, Jul. 2024, doi: 10.1038/s41598-024-65217-8.




DOI: https://doi.org/10.31284/j.kernel.2026.v7i1.8567

Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Akhiyar Waladi, Hasanatul Iftitah, Hasanatul Iftitah, Nindy Raisa Hanum, Nindy Raisa Hanum

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

Diindeks oleh:
SINTA 5 logo Google Scholar logo Dimensions Logo