Abstract
With the rapid development of the Internet, artificial intelligence has gained widespread concern. In this context, research in sentiment analysis, a closely related discipline, has expanded. This paper analyzes existing text sentiment analysis methods and compares the effectiveness of various emotional classification models trained using traditional machine learning. Furthermore, it introduces ensemble learning methods, specifically using Random Forest as a meta-learning method to train base classifiers on different feature sets. Experiments conclude that by utilizing diverse feature sets and base classifiers, the ensemble model achieves significant performance gains. Consequently, this paper proposes the "MFMB-ME: Multi-Features Multi-Base-Classifiers Meta Ensemble Learning Sentiment Analysis Model."
Introduction
Sentiment analysis is a critical component of modern natural language processing (NLP), enabling organizations to gauge public opinion across social media platforms. However, traditional methods often struggle with the unstructured and informal nature of online communication. Most existing systems rely on a single machine learning model or a limited set of features, which can fail to capture nuanced emotional cues.
This paper introduces MFMB-ME, a multilayer sentiment analysis model that leverages Random Forest as a "meta-learner" to aggregate predictions from multiple base classifiers. By integrating diverse linguistic features—including stems, n-grams, and syntactic structures—the model achieves significantly higher accuracy than traditional single-model approaches.
Methodology
The Multi-Features Multi-Base-Classifiers Meta Ensemble Learning Sentiment Analysis Model (MFMB-ME) is structured into four distinct levels:
- Preprocessing Module: Uses standard NLP tools to extract fundamental features such as words, stems, parts of speech (POS), and syntax.
- Features Combination Model: Generates complex features, including n-grams for both words and tags.
- Features Preprocessing (Meta-Classifiers): Trains several "meta-classifiers" using algorithms like Logistic Regression, Rank Models, and Kneser-Ney Language Models on specific feature subsets.
- Ensemble Classification Module: This core component uses a Random Forest algorithm to ensemble the outputs of the meta-classifiers. The Random Forest learns the reliability of each meta-classifier for different inputs, producing a final, optimized sentiment label.
Experimental Setup
The study utilized a dataset of 3,000 emotional statements collected from social networks. The data was partitioned into a training set of 1,920 samples (64%), a validation set of 480 samples (16%), and a testing set of 600 samples (20%).
Results and Discussion
The researchers conducted a series of experiments to benchmark the MFMB-ME model against traditional machine learning baselines.
Baseline Performance
Initially, traditional single models such as Logistic Regression, Decision Trees, and Support Vector Machines (SVM) were evaluated. As shown in Table 2, these models achieved a maximum correct rate of 0.84.
Single-Feature Ensembles
The next phase involved applying ensemble techniques to single feature sets. Table 4 illustrates the performance of various meta-classifiers across different feature types. The results indicate that ensemble approaches on "Words" alone can improve the correct rate to approximately 0.86.
The MFMB-ME Model
By integrating multiple meta-classifiers across a comprehensive array of features (n-grams, words, stems, and syntax), the final MFMB-ME model achieved a correct rate of 0.9056. This represents a substantial improvement over standard machine learning baselines.
Key insights from the experimental results include:
- Feature Synergy: Combining different linguistic features consistently outperforms models using single feature sets. While individual features like POS tags may be "weak" on their own, they provide valuable context when combined.
- The "Raw" Advantage: Raw words often contain more emotional signal than processed versions like stems, as preprocessing can sometimes strip away the specific intensity of an emotion.
- Random Forest as a Meta-Learner: Random Forest is particularly effective for this ensemble task due to its processing speed and ability to calculate feature importance, helping the model weigh the opinions of different base classifiers.
Conclusion and Future Work
The MFMB-ME model demonstrates that a multi-feature, multi-classifier ensemble approach significantly enhances the accuracy of sentiment analysis. While the results are promising, future research should address the limitations of the current study, such as the relatively small dataset size and domain specificity. Subsequent work will involve testing the model on larger datasets and comparing its performance against modern transformer-based architectures like BERT or GPT.
Summary updated