Sentiment analysis: A machine learning utilisation for analyzing the sentiments of facebook and twitter posts
Authors:
- 5 February 2025
- journal article
- Published by SAGE Publications in Intelligent Data Analysis: An International Journal
- Vol. 29 (4) , 889-912
Abstract
The article describes a novel sentiment analysis framework for social media platforms, based on a combination of five machine learning (ML) algorithms—Multinomial Naive Bayes, Random Forest Classifier, Gradient Boosting Classifier, K-Nearest Neighbors, and Decision Tree—and three deep learning (DL) algorithms—LSTM, MLP, and CNN. Using comprehensive datasets from Facebook and Twitter, the authors achieved remarkable results, with LSTM demonstrating superior performance, achieving an accuracy of 0.99, and excelling particularly with Facebook data. The authors illustrate the proposed method’s effectiveness through detailed performance metrics, comparing it against existing models. The proposed framework allows for improved accuracy by up to 20.9%, precision by 1.23%, recall by 11.11%, and F1-score by 3.61%. The new method’s effectiveness is confirmed by extensive evaluation on real-world datasets. These new research results enhance sentiment analysis and can be used for better public opinion understanding, business strategy formulation, and decision-making processes. The novelty and scientific contribution lie in integrating diverse algorithms to achieve higher accuracy and more reliable sentiment detection in social media contexts.Keywords
Funding Information
- Deanship of Scientific Research, Princess Nourah Bint Abdulrahman University (PNURSP2024R435)
This publication has 13 references indexed in Scilit:
- The Enrichment Of MVSA Twitter Data Via Caption-Generated Label Using Sentiment Analysis2022
- Sentiment Analysis of Iraqi Arabic Dialect on Facebook Based on Distributed Representations of DocumentsACM Transactions on Asian and Low-Resource Language Information Processing, 2019
- The State-of-the-Art in Twitter Sentiment AnalysisACM Transactions on Management Information Systems, 2018
- Sentiment Analysis on Multi-View Social Data2016
- Contextual semantics for sentiment analysis of TwitterInformation Processing & Management, 2016
- Twitter Sentiment Analysis with Deep Convolutional Neural Networks2015
- Twitter sentiment analysis2014
- Sentiment Analysis of Arabic Slang Comments on FacebookINTERNATIONAL JOURNAL OF COMPUTERS & TECHNOLOGY, 2014
- Sentiment analysis in TwitterNatural Language Engineering, 2012
- The 2012 US presidential electionPhysics Today, 2012