Social media has become a key platform for disseminating information and opinions, particularly in Indonesia, where SARA (Ethnicity, Religion, Race, and Intergroup) issues can fuel social tensions. To address this, developing an automated system to detect and classify harmful content is essential. This study develops a deep learning model using Convolutional Neural Network (CNN) and Bidirectional Long Short-Term Memory (BiLSTM) to detect SARA-related comments on Twitter. The method involves data collection through web scraping, followed by cleaning, manual labeling, and text preprocessing. To address data imbalance, SMOTE (Synthetic Minority Over-sampling Technique) is applied, while early stopping prevents overfitting. Model performance is evaluated using precision, recall, and F1-score. The results demonstrate that SMOTE significantly improves model performance, particularly in detecting minority-class SARA comments. CNN+SMOTE achieves a accuracy of 93%, and BiLSTM+SMOTE records a recall of 88%, effectively capturing patterns in SARA and non-SARA data. With SMOTE and early stopping, the model successfully manages class imbalance and reduces overfitting. This research supports efforts to curtail hate speech on social media, especially in the Indonesian context, where SARA-related issues often dominate public discourse.
In the digital era, sentiment analysis on social media has become increasingly important in understanding public perception of various issues. However, one of the main challenges in sentiment analysis is the issue of data imbalance, where one class (such as positive sentiment) may significantly outnumber another (such as negative or neutral sentiment). This imbalance can lead to biased predictions in machine learning models, where the majority class is favored over the minority class. To address this, Synthetic Minority Over-sampling Technique (SMOTE) is used to artificially balance the dataset by creating synthetic samples from the minority class. SMOTE generates new instances by interpolating between existing minority instances, improving the distribution of the data and enhancing model performance. In this research, various machine learning algorithms are utilized to perform sentiment analysis on tweets collected with the hashtag “online learning”. The SMOTE oversampling technique is applied and compared with models that do not use SMOTE. This research focuses mainly on the Majority Voting algorithm, which combines predictions from multiple models to improve overall accuracy. The test results show that using SMOTE significantly improves the model’s performance, especially in terms of recall and F1-Score. The Majority Voting+SMOTE algorithm achieved the highest accuracy of 97%, demonstrating the effectiveness of this approach in handling data imbalance and producing more reliable predictions. These results confirm that SMOTE effectively improves model performance under imbalanced data conditions, especially in sentiment analysis.
1 January 2024 in Journal of Applied Data Sciences
The timely graduation of students is a key metric in evaluating the academic effectiveness of higher education institutions. However, accurately identifying students at risk of delayed graduation remains challenging due to imbalanced data distributions and the instability of single-model prediction approaches. This study proposes an optimized ensemble-based machine learning system for predicting on-time graduation among university students. The model integrates C4.5, K-Nearest Neighbor (KNN), and Random Forest algorithms through a hard voting classifier, which is further optimized using Particle Swarm Optimization (PSO) to determine the most effective weighting configuration. To address class imbalance, the Synthetic Minority Over-sampling Technique (SMOTE) is implemented, ensuring balanced representation between timely and delayed graduates. A dataset of 809 student academic records from Universitas Sains dan Teknologi Indonesia (USTI) was used, and performance was evaluated using 5-fold cross-validation. The proposed ensemble model achieved an average accuracy of 93.70%, a precision of 0.94, a recall of 0.93, and an F1-score of 0.94, outperforming each individual classifier. These results confirm that the combination of ensemble learning, PSO-based optimization, and data balancing effectively improves both accuracy and model stability. The findings highlight the system’s potential as a reliable decision-support tool for educational institutions to anticipate delayed graduations and improve academic supervision strategies.