| Literature DB >> 36092011 |
Abstract
Social media platforms such as Twitter, YouTube, Instagram and Facebook are leading sources of large datasets nowadays. Twitter's data is one of the most reliable due to its privacy policy. Tweets have been used for sentiment analysis and to identify meaningful information within the dataset. Our study focused on the distance learning domain in Saudi Arabia by analyzing Arabic tweets about distance learning. This work proposes a model for analyzing people's feedback using a Twitter dataset in the distance learning domain. The proposed model is based on the Apache Spark product to manage the large dataset. The proposed model uses the Twitter API to get the tweets as raw data. These tweets were stored in the Apache Spark server. A regex-based technique for preprocessing removed retweets, links, hashtags, English words and numbers, usernames, and emojis from the dataset. After that, a Logistic-based Regression model was trained on the pre-processed data. This Logistic Regression model, from the field of machine learning, was used to predict the sentiment inside the tweets. Finally, a Flask application was built for sentiment analysis of the Arabic tweets. The proposed model gives better results when compared to various applied techniques. The proposed model is evaluated on test data to calculate Accuracy, F1 Score, Precision, and Recall, obtaining scores of 91%, 90%, 90%, and 89%, respectively. ©2022 Almalki.Entities:
Keywords: Apache Spark; Arabic language; E-Learning; Sentiment analysis; Social media; Twitter
Year: 2022 PMID: 36092011 PMCID: PMC9454973 DOI: 10.7717/peerj-cs.1047
Source DB: PubMed Journal: PeerJ Comput Sci ISSN: 2376-5992
Figure 1Proposed methodology for the sentiment analysis of Arabic tweets.
Figure 2Create your Twitter account.
Figure 3Developer account creation and ‘Get access to the Twitter API’.
Figure 4Testing model results.
Comparison between logistic regression and SVM classifier.
| No | Dataset | Classifier name | Accuracy |
|---|---|---|---|
| 1 | Twitter dataset | SVM | 69% |
| 2 | Twitter dataset | Logistic regression | 91% |
Results evaluated for the proposed model.
| No | Dataset | Accuracy | Precision | Recall | F1 Measure |
|---|---|---|---|---|---|
| 1 | 5k Tweets Twitter Dataset | 82% | 83% | 79% | 81% |
| 2 | 10k Tweets Twitter Dataset | 86% | 85% | 84% | 83% |
| 3 | 14k Tweets Twitter Dataset | 91% | 90% | 89% | 90% |
Figure 5Results evaluation using different data volumes.
Figure 6Graphical representation of the people’s behavior.
Results evaluated for the proposed model.
| Dataset | Accuracy | Precision | Recall | F1 Measure |
|---|---|---|---|---|
|
| 89% | – | – | – |
| Proposed Model | 91% | 90% | 89% | 90% |