Abstract
With the widespread use of microblogging, analyzing public sentiment during emergencies has become a vital tool for government agencies to monitor and guide public opinion. This paper proposes a sentiment analysis framework that combines Word2vec for high-dimensional feature extraction with a Random Forest (RF) classifier optimized by a Genetic Algorithm (GA). Experimental results demonstrate that this hybrid GA-RF approach significantly improves classification accuracy compared to traditional single-classifier models like SVM and KNN.
Introduction
During social emergencies or natural disasters, microblogging platforms like Sina Weibo serve as primary channels for public discourse. For emergency responders, monitoring this "firehose" of information is critical for maintaining social order. However, microblogging text is inherently noisy, informal, and high-dimensional, making traditional lexicon-based or standard machine learning methods less effective. This research addresses these challenges by developing a robust pipeline for classifying sentiments into positive or negative polarities.
Methodology
The proposed system follows a multi-stage pipeline: preprocessing, feature extraction, and optimized classification.
Preprocessing and Feature Extraction
Raw text is first cleaned using regular expressions to remove URLs, hashtags, and emoticons. Chinese word segmentation is performed using the Jieba tool. To capture semantic depth, the researchers employed a skip-gram Word2vec model trained on Chinese Wikipedia, transforming each comment into a 400-dimensional vector. This allows the model to understand semantic relationships beyond simple keyword matching.
The GA-RF Classifier
The core innovation is the Genetic Algorithm-optimized Random Forest (GA-RF). While a standard Random Forest consists of multiple decision trees, not all trees contribute equally to accuracy; some may introduce noise. The authors used a Genetic Algorithm to "prune" the forest:
- Chromosome Coding: Each individual in the GA population is a binary string where each bit represents the presence (1) or absence (0) of a specific tree.
- Fitness Function: The GA evaluates tree combinations based on their classification accuracy.
- Evolution: Through selection, crossover, and mutation, the algorithm identifies the optimal subset of trees ($K'$) for the final ensemble.
Experimental Results
The researchers evaluated the model using 5,000 comments from Sina Weibo related to four major emergencies in 2016. A subset of 3,000 comments was manually labeled to create a balanced training and testing environment.
As shown in the results, the GA-RF model significantly outperformed classic classifiers in 10-fold cross-validation. The GA-RF approach achieved an average accuracy of 77.38%, which is approximately 23.9% higher than SVM (62.43%) and 26.2% higher than a standard Random Forest (61.33%).
Discussion and Conclusion
The study highlights that "more is not always better" in ensemble learning; by treating the forest as an evolvable population, the GA-RF model filters out weak links to achieve higher precision and recall. While the 77.38% accuracy is a substantial improvement, future work will focus on the temporal dynamics of emergencies—tracking how sentiment shifts from initial shock to resolution—and analyzing how specific government interventions influence public opinion trends.
Summary updated