Choosing the right data augmentation (DA) technique for imbalanced time-series classification is a persistent challenge for data scientists. Rather than relying on trial-and-error or generic best practices, this research introduces BALANCER, a machine learning-based decision support system designed to recommend the optimal DA method tailored to specific dataset characteristics and classifier architectures.
TL;DR
BALANCER is a meta-learning framework that automates the selection of data augmentation techniques for imbalanced time-series classification (ITSC). By analyzing intrinsic dataset features and classifier types, it predicts which augmentation will yield the best performance boost, significantly outperforming traditional "one-size-fits-all" strategies.
The Challenge of Imbalanced Time-Series
In critical domains such as medical diagnostics or industrial maintenance, datasets are often heavily imbalanced. While "normal" data is abundant, "event" samples (e.g., machine failures) are rare. Data augmentation helps by generating synthetic minority samples, but practitioners lack clear guidance on whether to use techniques like SMOTE, ADASYN, or TimeGAN.
The effectiveness of a DA technique depends on the intrinsic features of the time series (such as entropy or seasonality) and the classifier architecture (e.g., Random Forest vs. Neural Networks). Currently, selecting the right method requires exhaustive benchmark studies, which are time-consuming and often result in suboptimal choices.
The BALANCER Framework
The authors developed a two-step meta-learning approach to solve this selection problem:
- Feature Extraction: Time-series datasets are characterized using dataset-level metrics (e.g., size, variance, Imbalance Degree) and data-level features extracted via the
catch22library, which captures 22 canonical statistics like linear correlation and stationarity. - Meta-Model Training: A Gradient Boosting (GB) meta-model was trained on an extensive empirical study. It takes dataset features and the classifier type as input to predict the expected F1-score improvement ($\Delta F_1$) for seven different DA techniques.
To ensure transparency, the authors employed SHAP (SHapley Additive exPlanations) to identify which features—such as the use of a Multi-Layer Perceptron (MLP) or the degree of class overlapping—most heavily influence the recommendation.
Empirical Foundation
The study's robustness stems from a massive experimental setup:
- Data Source: 128 datasets from the UCR Time Series Archive.
- Simulated Imbalance: By artificially removing minority samples (at 20%, 50%, and 90% rates), the researchers generated 720 ITSC datasets.
- Testing Scope: These datasets were evaluated against 7 classifier architectures and 6 DA techniques (TimeGAN, SMOTE, ADASYN, Random Oversampling, Jittering, and Time Warping), creating a comprehensive performance library for training BALANCER.
Key Insights
- The "Mean Rank" Fallacy: Techniques that perform well "on average" across many datasets often fail on specific new cases. Traditional mean-rank recommendations were found to be no better than random guessing (Kendall’s tau near zero).
- Classifier-DA Synergy: The choice of classifier is paramount. For instance, Time Warping significantly boosts performance for MLPs but can degrade results for Shapelet classifiers.
- Non-Linear Interactions: The relationship between data "shapes" and augmentation logic is highly non-linear, justifying the use of Gradient Boosting to capture complex interactions.
Results and Performance
- Ranking Accuracy: BALANCER achieved a Kendall’s tau of 0.36, a stark improvement over the -0.01 of traditional strategies.
- Precision: The model predicted F1-score improvements with a Root Mean Square Error (RMSE) of only 0.015.
- Critical Predictors: XAI analysis confirmed that the classifier type and Imbalance Degree are the most significant factors in DA success.
Limitations and Future Directions
While powerful, BALANCER currently relies on artificially induced imbalance, which may differ from real-world noise. Additionally, adding new DA techniques or classifiers requires retraining the meta-model on new empirical data. Future work aims to create a more generalized framework that accommodates new configurations without extensive retraining and expands beyond the time-series domain.
Summary updated