TL;DR
RWMaU is a novel data preprocessing technique that tackles class imbalance by using random walks on a graph to identify and remove majority class instances that are "too close" to the minority class. By quantifying proximity through visit frequencies and the order of visits, the method effectively clears the decision boundary, leading to significant performance gains across various classifiers.
What Problem Does This Paper Address?
In many real-world scenarios—such as fraud detection, medical diagnosis, or software defect prediction—the data is heavily imbalanced. One class (the "majority") vastly outnumbers the other (the "minority"). Standard machine learning classifiers often become biased toward the majority class, leading to poor performance on the rare but critical minority instances.
Existing "undersampling" techniques (which remove majority instances to balance the classes) often rely on simple k-nearest neighbor (k-NN) rules or clustering. However, these methods can be "oblivious" to the relative distances between points or provide only a locally optimized view of the data. The authors aim to find a more holistic way to quantify how much a majority point "interferes" with the minority class space.
Methods
The authors propose Random Walk-steered Majority Undersampling (RWMaU). The core idea is to treat the dataset as a directed, weighted graph and use the dynamics of a random walk to measure proximity.
- Graph Construction: Every data point is a node. Each node is connected to its $k$-nearest neighbors. Edge weights (transition probabilities) are calculated using a Gaussian-like function of Euclidean distance, meaning closer neighbors are more likely to be visited.
- Simulating Walks: The algorithm initiates multiple random walks starting specifically from minority class points.
- Proximity Scoring: For every majority class point, a score ($\nu_l$) is calculated based on two factors:
- Visit Frequency: How often did a walk starting from a minority point pass through this majority point?
- Visit Order: Was the point reached early in the walk? Earlier visits are weighted more heavily, as they indicate closer proximity to the minority starting point.
- Undersampling: Majority points with the highest proximity scores are considered the most "intrusive" to the minority class and are removed first to balance the dataset.
Datasets
The researchers evaluated RWMaU on 21 binary classification datasets sourced from the KEEL project. These datasets cover a wide range of domains (e.g., yeast, ecoli, wine-red, pima, spam) and varying degrees of difficulty:
- Imbalance Ratios: Ranging from 1.54 (nearly balanced) to 32.73 (highly imbalanced).
- Dimensionality: Ranging from 5 to 57 features.
Key Insights and Ideas
- Global vs. Local Proximity: Unlike standard k-NN undersampling which only looks at immediate neighbors, the random walk captures a more nuanced, "global" sense of how a majority point sits within the minority class's neighborhood.
- The "Early Visit" Heuristic: One of the most clever aspects of the paper is weighting the order of visits. If a random walk hits a majority point in the very first step, that point is a much stronger candidate for removal than one hit on the tenth step.
- Model Independence: Because this is a data preprocessing (sampling) step, it can be used to improve any classifier. The authors demonstrated this by showing improvements in k-NN, Decision Trees (C4.5), and Bagging ensembles.
Key Results
The authors compared RWMaU against four popular undersampling methods: Random Undersampling (RUS), Instance Hardness Threshold (IHT), Cluster Centroids (CC), and Neighborhood Cleaning Rule (NCR).
- Top Ranking: RWMaU achieved the lowest average rank (meaning it was most frequently the best performer) across almost all classifier/metric combinations.
- Decision Tree Performance: On the C4.5 Decision Tree, RWMaU achieved an impressive average rank of 1.48 for AUC, significantly outperforming the next best method.
- Statistical Significance: Post-hoc Friedman tests confirmed that RWMaU's improvements in AUC and F1-scores were statistically significant compared to most competing methods, particularly when using k-NN and C4.5 classifiers.
Limitations and Future Work
While RWMaU is highly effective for undersampling, the authors note a few areas for growth:
- Hybrid Approaches: The current work focuses solely on removing majority points. The authors suggest that integrating this random walk logic into a minority oversampling scheme (creating synthetic minority points) could be even more powerful.
- Unified Framework: A future goal is to create a single framework that uses random walks to simultaneously handle both oversampling and undersampling.
- Parameter Sensitivity: The method introduces parameters like the walk length ($\gamma$) and the number of neighbors ($k$). While the paper provides ranges for these, the optimal values may vary depending on the specific topology of the dataset.
Summary updated