Abstract
Training samples are often limited in real-world text classification tasks, leading to overfitting and poor generalization. This paper proposes a Text Classification Algorithm based on Kernel Density Estimation (TCAKDE) to address the small sample problem. By generating auxiliary training samples through probability density estimation, the algorithm effectively expands the dataset and improves classification performance. Simulation experiments on news text datasets demonstrate the effectiveness of the proposed approach.
Introduction
In machine learning, the performance of traditional text classification models like Support Vector Machines (SVM) and K-Nearest Neighbors (KNN) is heavily dependent on the availability of large-scale training data. However, acquiring labeled documents is often costly and time-consuming, resulting in "small sample" scenarios. In these cases, models tend to overfit, capturing noise rather than general linguistic patterns. This paper introduces TCAKDE to bridge this gap by making standard classifiers robust even with minimal data.
Methodology: The TCAKDE Approach
The core innovation of TCAKDE is a data-augmentation step using Kernel Density Estimation (KDE). Instead of training directly on a sparse dataset, the algorithm follows these steps:
- Probability Density Estimation: Using the Parzen-window method with a Gaussian kernel, the algorithm estimates the probability density function of the original small training set.
- Auxiliary Sample Generation: Synthetic "auxiliary" data points are generated from the estimated density. These points are statistically likely to belong to the same classes as the original data.
- Dataset Expansion: The original dataset is merged with these auxiliary samples to create a larger, "smoothed" training set.
- Classifier Training: Standard classifiers (KNN or SVM) are then trained on this expanded dataset.
This process essentially "fills the gaps" in the high-dimensional feature space, preventing jagged decision boundaries that lead to overfitting.
Experimental Setup
The researchers evaluated TCAKDE using web page data from the Sohu news site across four categories: Sci-tec, Talk, Education, and Economic. To simulate a small-sample environment, only 200 samples per topic were used for training, while 600 samples per topic were reserved for testing to ensure statistical significance.
Results and Discussion
The TCAKDE-enhanced models consistently outperformed standard KNN and SVM baselines across all categories in terms of both precision and recall.
As shown in the precision results for KNN above, the TCAKDE-enhanced model achieved approximately 93% precision in the "Sci-tec" category, compared to roughly 90% for the standard KNN. Similar trends were observed for recall metrics.
In the "Economic" category, the TCAKDE-enhanced SVM reached nearly 93% recall, while the baseline SVM hovered around 91%. The consistent gap between the TCAKDE-enhanced models and the baselines across all topics underscores the method's stability and effectiveness in smoothing decision boundaries.
Conclusion
TCAKDE offers a classifier-agnostic wrapper for improving text classification in data-scarce environments. While effective, future work should address the computational overhead of density estimation in high-dimensional spaces and explore the interaction of this statistical augmentation with modern word embeddings like BERT.
Summary updated