Manuscript Offprint
arXiv:2610.39466CBE: A Complexity-adaptive Boundary-aware Ensemble Method for Imbalanced Data
Xun Wei
Abstract—In many real-world classification tasks, datasets exhibit class imbalance, which can degrade the generalization performance of conventional learning algorithms. Data complexity has recently been recognized as a more objective indicator of learning difficulty than the imbalance ratio alone, because class overlap and complex decision boundaries often impair classifiers more severely than imbalance itself. Samples near the decision boundary are inherently difficult to classify, which has motivated many researchers to focus on such instances to improve classifier performance. However, most under-sampling approaches fail to differentiate their sampling of boundary samples across datasets of varying complexity. To overcome this limitation, we propose a complexity-adaptive boundary-aware ensemble (CBE) framework that links the sampling weight distribution to data complexity and dynamically adjusts the boundary preference of under-sampling accordingly. We also introduce an overall complexity measure that combines metrics at multiple levels and use it to divide imbalanced datasets into three categories. Extensive experiments on 24 benchmark datasets from UCI and KEEL show that the proposed method outperforms many existing methods in terms of F-measure and G-mean on Easy and Median datasets, without degrading performance on hard cases.
Index Terms—Class imbalance learning, ensemble learning, data complexity, under-sampling, boundary samples.
I. INTRODUCTION
Class imbalance is a pervasive issue in real-world classification tasks, particularly in domains such as anomaly detection and disease analytics [1], [2]. This phenomenon arises when the majority class dominates the dataset, leading standard classifiers to prioritize frequent patterns over minority instances. Under such an imbalanced distribution, learning algorithms often degenerate: they tend to classify every instance as the majority class to minimize the error rate, thereby misclassifying most minority samples.
Sampling methods are typically adopted to resolve this issue by adjusting the sizes of the majority and minority classes to balance the training set [1]. These methods can be divided into under-sampling and over-sampling. Under-sampling handles class imbalance by discarding some majority examples to create a balanced training set, whereas over-sampling balances the dataset by adding new minority examples. Both approaches can be implemented in either a random or a heuristic manner. However, under-sampling may discard a large amount of useful data, while over-sampling may introduce extra bias, especially when the model consists of a single classifier.
Ensemble learning paradigms, in contrast to individual models, generally perform better by leveraging collective decision-making across multiple base models. This advantage stems from their ability to reduce variance through model diversity and mitigate overfitting by aggregating predictions. Two prominent ensemble frameworks are Bagging and Boosting [3]. In recent years, researchers have developed various strategies to apply these ensemble methods to class imbalance [4].
More recently, data complexity has been regarded as a more objective indicator of learning difficulty than the imbalance ratio alone: class overlap and noise can be more damaging than imbalance itself [5], [6]. A growing body of work therefore designs imbalanced classification methods directly guided by data complexity [7]–[9].
Samples near the decision boundary are inherently difficult to classify because of their ambiguous feature representations [1]. Conventional undersampling algorithms, which uniformly undersample the majority class at random, fail to prioritize these hard-to-classify instances, thereby undermining the discriminative power of the induced models. Distance-weighted sampling is an effective strategy for addressing this challenge in deep embedding learning [10]. However, overly aggressive boundary sampling is not always beneficial. In high-complexity datasets with severe class overlap, the boundary region no longer corresponds to a sharp, separable decision surface but to a wide, ambiguous overlap band dominated by irreducible noise [6]. Concentrating sampling and weighting on these boundary samples then forces the classifier to fit the noise. To tackle this limitation, we propose a novel under-sampling strategy, complexity-adaptive distance-weighted sampling (CDWS), which adjusts the sampling strength of boundary samples according to data complexity.
In this paper, we propose a complexity-adaptive boundary-aware ensemble framework named CBE to overcome the aforementioned shortcomings. For clarity, we examine only binary classification problems with ensemble classifiers. The proposed method achieves higher performance than many existing ensemble methods for class imbalance.
The main contributions of this paper can be summarized as follows:
-
We propose an overall complexity measure (OCM) for imbalanced data that combines metrics at multiple levels. Based on this measure, imbalanced datasets can be divided into three categories. Correlation experiments show that OCM is more effective than individual complexity measures.
-
We introduce a novel distance-weighted sampling method that adaptively tunes the sampling intensity over boundary regions according to the intrinsic data complexity, so that boundary densification is emphasized
Xun Wei is with the School of Industrial Software, Jiangxi University of Science and Technology, Nanchang 330044, China (email:xun.wei@jxust.edu.cn).
https://github.com/weixun2018/CBE on well-separated boundaries while relaxed under severe overlap.
- We propose a complexity-adaptive boundary-aware ensemble framework that integrates preference-based undersampling with ensemble learning to address imbalanced tasks.
The remainder of this paper is organized as follows. Section II reviews related methods. Section III illustrates the complexity of imbalanced data. Section IV presents our proposed method. Section V reports the experiments. Finally, Section VI concludes this paper.
Ensemble learning algorithms are also employed to address class imbalance owing to their strong performance. Bagging and Boosting are the main ensemble learning frameworks [3]. BalanceBagging [15] is a bagging ensemble method with additional balancing that bootstraps equal numbers of majority and minority instances to create training subsets. Balanced Random Forests [16] is an efficient ensemble algorithm that addresses class imbalance by modifying the random forest: it creates balanced training subsets by random under-sampling of the bootstrap examples. RUSBoost [17] alleviates class imbalance by randomly under-sampling majority instances at each iteration of the AdaBoost algorithm. EasyEnsemble [4] further exploits the majority examples by randomly under-sampling them to build multiple balanced subsets. EasyEnsemble is similar to Balanced Random Forests, except that the former uses the samples to generate boosted ensembles, whereas the latter uses them to train decision trees. REA [18] is a bagging method that addresses class imbalance by under-sampling the majority class and over-sampling the minority class to form balanced training subsets, and it uses multiple different machine learning methods to train these subsets. Adaptive EUSBoost [19] is similar to EasyEnsemble, but it introduces a weighting algorithm that assigns each individual classifier a voting weight according to its own training error. This strategy yields better performance, especially in highly imbalanced settings, and it also uses the OTSU algorithm to determine the optimal threshold. ClusterBal [20] is a data balancing method that clusters the majority samples into several subsets to create balanced training subsets. Tang et al. proposed a novel metric GIR that measures class distribution imbalance, together with two adaptive sampling-based ensemble approaches, GIREnUs and GIREnOs, which combine boosting and bagging strategies [21].
In recent years, a growing line of research in imbalanced learning has developed sampling and ensemble algorithms that explicitly exploit the characteristics of the decision boundary rather than merely rebalancing the global class distribution. Cerqueira et al. [22] proposed ICLL, a layered learning framework that first uses hierarchical clustering to separate hard boundary samples from easy majority samples and then trains the final classifier only on boundary samples together with all minority samples, showing both theoretically and empirically that performance loss arises mainly from distribution shift in the boundary region rather than from the global imbalance ratio, and that conventional under-/over-sampling respectively distorts the boundary by deleting critical samples and amplifies boundary noise. Dai et al. [23] extended Tomek-Link detection with the multi-granularity relabeled under-sampling algorithm MGRU, which jointly identifies global hard overlaps and locally latent soft overlaps and removes only ambiguous majority samples in the boundary region, demonstrating that multi-granularity detection covers the majority of boundary overlaps that single-granularity methods miss. From an uncertainty perspective, Grina et al. [24] combined belief function theory with ensemble learning for multi-class imbalance, using belief soft labels to quantify boundary ambiguity, preferentially under-sampling highly ambiguous majority samples and directionally over-sampling boundary minority samples, and argued that boundary ambiguity rather than global imbalance is the key factor governing the severity of the problem.
Another line of research directly guides imbalanced classification with data complexity measures, which capture learning difficulty more objectively than the imbalance ratio. Barella et al. [5] adapted classical complexity measures to imbalanced scenarios by decomposing them per class, and experimentally showed that the reduction in data complexity after imbalance treatments correlates with the achieved performance improvement, providing a theoretical basis for complexity-guided sampling. Liu et al. [7] proposed the Self-paced Ensemble (SPE), which characterizes the intrinsic difficulty of each instance through its classification hardness, a quantity implicitly reflecting class overlap and noise, and then harmonizes the data hardness distribution by progressively under-sampling the majority class in a self-paced manner. Sun et al. [8] proposed FO-RBU, which estimates the overall class overlap degree from the distribution of overlap ratios on each feature, and uses it to determine the proper under-sampling extent of the Radial-Based Undersampling approach, thereby replacing the imbalance ratio as the sampling-amount criterion. Park et al. [9] introduced CIHR, a hybrid resampling method in which a relative class-impurity measure quantifies the overlap degree.
of individual instances: majority instances with high impurity are iteratively removed, while minority instances with high impurity are prioritized as seeds for synthetic oversampling. These studies collectively validate that adaptively modulating the sampling intensity according to data complexity, the same principle underlying our approach, is an effective and well-grounded strategy for imbalanced classification.
III. COMPLEXITY OF IMBALANCED DATA
A. Class Boundary and Class Overlapping
In classification tasks, a class boundary denotes the geometric partition (a hyperplane in a high-dimensional feature space) that separates feature regions assigned to different class labels by a classifier, characterizing the intrinsic separable structure of the data distribution. It describes where the decision rule switches its prediction from one category to another. A class boundary should be clearly distinguished from class overlap: the former refers to the dividing manifold between classes, whereas the latter describes ambiguous feature regions where samples with different labels coexist densely. A clear, simple class boundary corresponds to low data complexity and limited intermingling of cross-class samples. In contrast, severe class overlap often yields twisted, fragmented, and fuzzy boundaries, which are a primary cause of classification errors, especially in class-imbalanced scenarios [6]. Many existing sampling and ensemble algorithms explicitly target boundary regions, because boundary samples carry decisive information for constructing reliable decision surfaces, rather than merely addressing overlapping samples.
B. Complexity Measures of Imbalanced Data
Measures of classification complexity can be used to estimate how difficult it is to separate the data points into their expected classes. Descriptors of the spatial distribution of the data and estimates of the shape and size of the decision boundary are among the known measures for this purpose [25]. Researchers have adapted complexity measures to the context of imbalanced datasets and demonstrated their effectiveness [5]. Lower data complexity implies clearer class boundaries; conversely, higher complexity corresponds to fuzzier boundaries and more severe class overlap.
This paper adopts three complexity measures at different levels to assess the data complexity of imbalanced datasets, namely N1, N3, and L2. The details of these measures are given below.
- N3(sample level): Leave-one-out error rate of the NN classifier.
N3 is the ratio of the number of examples whose 1-NN belongs to a different class to the total number of examples. The adapted N3 focuses on the minority class. This metric quantifies local class overlap in individual sample neighborhoods. It bounds the intrinsic classification ambiguity and shows the strongest correlation with the performance improvement of sampling strategies.
- N1(boundary level): Fraction of points on the class boundary.
N1 builds a minimum spanning tree (MST) that connects all instances in a dataset based on their pairwise distances, regardless of their classes. It then counts the number of instances connected to at least one instance from another class. The adapted N1 focuses on the minority class. This metric measures the scale and tortuosity of the decision boundary and governs the convergence rate and computational cost of the learner when fitting the boundary geometry.
- L2(global level): Training error of a linear classifier. L2 is the training error of a linear classifier. To compute it, we induce a linear classifier from the training set and use its classification error rate. The higher the value, the less linear the classification boundary. The adapted L2 uses the error of the minority class. This metric reflects the global linear separability of the data distribution and provides a global perspective for identifying special cases, such as extreme tail minority classes in ordered discrete feature spaces.
We then calculate the weighted average of these three measures as the overall complexity measure (OCM), as shown in Equation (1).
Intuitively, we set , , and according to the contribution of each measure to data complexity.
We divide the datasets into three categories according to their OCM values, as shown in Table I. Easy datasets correspond to low N1, N3, and L2, with simple and clear class boundaries and negligible local overlap. Median datasets usually have low N1 and N3 with high L2, or median N1, N3, and L2, representing data with geometrically complex decision boundaries but limited inter-class mixing. Hard datasets have high N1, N3, and L2, where severe class overlap leads to high intrinsic classification ambiguity and the performance gains brought by sampling strategies are generally limited.
The relationship holds mathematically: samples misclassified in leave-one-out 1-NN (counted in N3) are always adjacent to opposite-class instances in the minimum spanning tree and thus included in N1. However, the two metrics capture distinct dimensions of classification difficulty and are not redundant. N3 quantifies the severity of local class overlap and intrinsic classification ambiguity at the sample level, while N1 measures the overall scale and geometric complexity of decision boundaries. Notably, datasets with high adapted N1 and N3 rarely yield low adapted L2. High adapted N3 implies severe local overlap around minority samples. When training a linear SVM, such overlap inevitably increases the minority error rate measured by the adapted L2. Hence, the high-N3, low-L2 combination scarcely appears in our experiments, which justifies the three-way categorization.
TABLE I: Dataset Categorization via Complexity Measures
| Category | N1 | N3 | L2 | OCM |
|---|---|---|---|---|
| Easy | Low | Low | Low | Low |
| Median | Low/Median | Low/Median | High/Median | Median |
| Hard | High | High | High | High |
We synthesize four datasets to illustrate this categorization, as shown in Fig. 1. The detailed values of the complexity measures on these four synthetic datasets are listed in Table II. The difficulty category is not determined by a single fixed OCM threshold. Here, we use 0.2 and 0.6 to divide these four synthetic datasets. In general, for a group of datasets with varied complexity, we adopt the 1/3 and 2/3 quantiles as the split points.

Fig. 1: Synthetic imbalanced datasets illustrating the proposed categorization based on complexity measures. The four datasets range from Easy to Hard, each containing 900 negative samples and 100 positive samples. In particular, we show two kinds of Median datasets: one with low N1 and N3 and high L2, and the other with median N1, N3, and L2.
TABLE II: Complexity Measures on Four Synthetic Datasets.
| Dataset | N1 | N3 | L2 | OCM | Category |
|---|---|---|---|---|---|
| Clear Blob | 0.1 | 0.1 | 0.06 | 0.09 | Easy |
| Moon | 0.31 | 0.23 | 0.38 | 0.28 | Median |
| Spiral | 0.2 | 0.11 | 1.0 | 0.32 | Median |
| Overlap Blob | 0.82 | 0.65 | 1.0 | 0.77 | Hard |
IV. METHOD
A. Complexity-adaptive Distance-Weighted Sampling
Distance-weighted sampling (DWS) is a sampling distribution that corrects bias while controlling variance, originally proposed in deep embedding learning [10]. Given an anchor example , it samples negative examples according to distance, with weights . DWS can improve model performance on Easy and Median datasets. On Hard datasets, however, it is ineffective or even harmful: it aggravates the inter-class mixing of examples and thereby exacerbates performance degradation.
To address the inability of DWS to adapt to datasets with different degrees of class overlap, we link the sampling weight distribution to data complexity and dynamically adjust the boundary preference of under-sampling according to the classification difficulty of the dataset. The overall complexity measure (OCM) introduced above is used to quantify the severity of class overlap and boundary ambiguity, which serves as the basis for adaptively adjusting the sampling intensity.
We introduce a temperature parameter into distance-weighted sampling to control how fast the sampling weight decays with the nearest distance from majority samples to minority samples. A smaller makes the sampling weights highly sensitive to distance: majority samples close to the class boundary receive much higher sampling probability, and the distribution is strongly concentrated on the boundary region. A larger flattens the weight distribution, so the sampling strategy gradually approaches uniform random sampling. The rationale for adaptive temperature adjustment is as follows. On Easy datasets, a small strengthens the sampling priority of boundary samples, enriching boundary information in training subsets and improving minority-class accuracy. On Hard datasets, a large weakens excessive boundary preference. This prevents sampling from over-concentrating on noisy overlapping regions, avoids a systematic shift of the decision boundary, and preserves the classification specificity of the majority class together with the minority-class recall.
To make adapt smoothly and continuously to OCM and avoid performance jumps caused by hard threshold switching, we use a translated and normalized Sigmoid function to build the mapping from complexity to temperature. Because the standard Sigmoid function is inherently asymmetric, linear normalization is applied to restrict the output adaptation coefficient to the range [0, 1]. The formulation is given in Equation (2).
where is the inflection point that determines when the strategy transitions, and controls the steepness of the adaptive curve. The coefficient is then used to compute the sampling temperature within a statistically determined interval, as shown in Equation (3).
Here, and are derived from the and quantiles of the nearest-neighbor distance distribution between majority and minority samples, providing data-driven and robust temperature boundaries. Based on the adaptive temperature, the distance-based sampling weight for each majority sample is calculated as in Equation (4).
where is the nearest Euclidean distance from the -th majority sample to the minority samples. To avoid extreme weight concentration and guarantee basic sampling opportunities for boundary samples, hard weight clipping is applied.
This sampling strategy avoids the drawbacks of fixed-intensity distance weighting. It maintains a strong boundary preference to improve minority recall on simple datasets, and gradually weakens the weighting to stabilize majority specificity on highly overlapping datasets. In this way, it achieves a stable trade-off between minority-class accuracy and overall balanced performance.
B. Complexity-adaptive Boundary-Aware Ensemble
Under-sampling is an effective way to handle imbalanced data, but it discards a large amount of potentially useful data. In addition, selecting only a small fraction of majority examples at a time yields unstable results, that is, high variance. EasyEnsemble [4] is a typical ensemble model for imbalance learning that addresses this problem by repeatedly under-sampling majority instances at random. It adopts a "bagging of boosting" strategy, using AdaBoost as the base learner to strengthen the fitting ability. However, EasyEnsemble randomly undersamples the majority examples and fails to prioritize examples near the decision boundary. It also fails to adapt to datasets with different degrees of complexity. To overcome these limitations, we incorporate the proposed CDWS method into a complexity-adaptive boundary-aware ensemble framework, CBE. The pseudocode is shown in Algorithm 1.
Algorithm 1 CBE
1: procedure CBE(P, N, n, t) 2: Input: 3: P: the set of minority class 4: N: the set of majority class 5: n: the number of subsets 6: t: iterations to train a AdaBoost model 7: Steps: 8: OCM ← calculate the overall complexity measures of dataset 9: calculate the minimum euclidean distance to P for every sample in N 10: T ← derive the sampling temperature via OCM and d 11: calculate the sampling weights 12: for i = 1 to n do 13: undersample a subset from N with weights , and 14: 15: train AdaBoost on under t iterations 16: end for 17: Output: 18: H: an ensemble model 19: 20: end procedure
The parameter in Algorithm 1 is the ensemble threshold above which an example is classified as positive. CART [26] is usually used as the base model of AdaBoost. An example of the CDWS method and an overview of the CBE framework are shown in Fig. 2.
V. EXPERIMENTS
A. Datasets
We conduct experiments on 24 imbalanced datasets from UCI [27] and KEEL. Each difficulty category contains 8 datasets, split by the 1/3 and 2/3 quantiles of OCM, namely 0.220 and 0.581. The details of these datasets are shown in Table III, including basic information and complexity measures. The basic information covers dataset size, number of features, and imbalance ratio. The dataset size ranges from hundreds to thousands, the number of features from several to hundreds, and the imbalance ratio from mild to severe across the three categories. The datasets are listed in ascending order of OCM, from 0.025 to 0.871.
B. Evaluation Criteria
It is well known that the error rate is not an appropriate evaluation criterion when a dataset is imbalanced or misclassification costs are unequal. In this paper, we use F-measure and G-mean as the performance metrics. Notably, we exclude AUC, as clearly pointed out in many surveys on imbalanced learning, ROC-AUC is suitable for rough comparison of global ranking ability, yet it is not recommended as the primary evaluation metric for imbalanced classification [28].
F-measure and G-mean are functions of the confusion matrix as shown in Table IV. F-measure is the harmonic mean of precision and recall and is commonly used to estimate the overall performance of a model. G-mean is the square root of the product of the true positive rate (TPR) and the true negative rate (TNR). These two metrics are defined in Equations (5g) and (5f). The F-measure focuses on minority examples, whereas the G-mean considers both minority and majority examples.
(5g)
C. Experimental Settings
For every dataset, we perform fivefold stratified cross-validation. To account for randomness, the entire cross-validation is repeated 10 times. The final AUC, G-mean, and F-measure are the averages over these 10 runs. All algorithms are implemented in Python, using Scikit-Learn as the base framework and the Imbalanced-learn package [29].

(a) CDWS on Four Synthetic Datasets.

(b) Overview of CBE framework.
Fig. 2: (a) shows the sampling probabilities of majority instances, encoded by the intensity of the blue color. CDWS applies an adaptive sampling intensity to boundary majority instances. On datasets with low complexity, it assigns closer examples higher weights to preserve critical boundary information, while it weakens excessive boundary preference on hard datasets. (b) shows the procedure of the CBE framework. It first calculates the overall complexity of the dataset; then performs weighted under-sampling of the majority examples based on this complexity to create a balanced training subset; finally, it trains base classifiers on multiple subsets and obtains the ensemble model.
TABLE III: Details of the datasets, including basic information and data complexity measures. The 24 datasets are divided into three groups by OCM (Easy, Median, Hard) and listed in ascending order of OCM.
| Dataset | Size | Features | Imbalance Ratio | N1 | N3 | L2 | OCM |
|---|---|---|---|---|---|---|---|
| mfeat-fac | 2000 | 216 | 9.00 | 0.050 | 0.020 | 0.000 | 0.025 |
| mfeat-pix | 2000 | 240 | 9.00 | 0.045 | 0.025 | 0.000 | 0.026 |
| mfeat-kar | 2000 | 64 | 9.00 | 0.070 | 0.050 | 0.010 | 0.048 |
| newthyroid2 | 215 | 5 | 5.14 | 0.171 | 0.029 | 0.029 | 0.072 |
| vowel0 | 988 | 13 | 9.98 | 0.133 | 0.000 | 0.167 | 0.073 |
| vehicle | 845 | 18 | 3.25 | 0.176 | 0.060 | 0.035 | 0.090 |
| musk2 | 6598 | 166 | 5.49 | 0.251 | 0.161 | 0.180 | 0.192 |
| ecoli4 | 336 | 7 | 15.80 | 0.250 | 0.250 | 0.100 | 0.220 |
| wave | 5000 | 21 | 2.04 | 0.319 | 0.213 | 0.108 | 0.224 |
| ecoli1 | 336 | 7 | 3.36 | 0.390 | 0.286 | 0.234 | 0.307 |
| glass0 | 214 | 9 | 2.06 | 0.471 | 0.186 | 0.400 | 0.314 |
| ecoli3 | 336 | 7 | 8.60 | 0.600 | 0.429 | 0.371 | 0.469 |
| glass1 | 214 | 9 | 1.82 | 0.474 | 0.329 | 0.921 | 0.491 |
| pima | 768 | 8 | 1.87 | 0.616 | 0.485 | 0.433 | 0.514 |
| bank | 7842 | 47 | 3.39 | 0.652 | 0.508 | 0.488 | 0.547 |
| vehicle1 | 846 | 18 | 2.90 | 0.728 | 0.548 | 0.442 | 0.581 |
| mfeat-fou | 2000 | 76 | 9.00 | 0.715 | 0.575 | 0.420 | 0.586 |
| vehicle3 | 846 | 18 | 2.99 | 0.717 | 0.571 | 0.453 | 0.591 |
| wine | 6497 | 11 | 5.02 | 0.724 | 0.366 | 1.000 | 0.600 |
| yeast1 | 1484 | 8 | 2.46 | 0.683 | 0.513 | 0.760 | 0.613 |
| mfeat-mor | 2000 | 6 | 9.00 | 0.690 | 0.635 | 1.000 | 0.724 |
| haberman | 306 | 3 | 2.78 | 0.852 | 0.728 | 0.975 | 0.815 |
| mfeat-zer | 2000 | 47 | 9.00 | 0.880 | 0.785 | 1.000 | 0.857 |
| abalone | 4177 | 10 | 7.58 | 0.912 | 0.795 | 1.000 | 0.871 |
TABLE IV: Confusion Matrix
| Predicted Positive Class | Predicted Negative Class | |
|---|---|---|
| Actual Positive Class | TP(true positive) | FN(false negative) |
| Actual Negative Class | FP(false positive) | TN(true negative) |
We compare CART with nine ensemble models. This paper focuses on ensemble methods combined with undersampling. The nine methods for class imbalance are listed below:
- CART. Classification and regression trees [26]. It uses
the entire data set to train a single classifier.
-
AdaBoost(abbreviated as Ada). A traditional AdaBoost classifier. The base estimator is CART and estimator number is set 100.
-
Random Forest(abbreviated as RF). A traditional random forest classifier. The estimator number is set 100.
-
Undersampling + AdaBoost(abbreviated as UAda). First, a subset of the majority samples with the same size as the minority class is undersampled; an AdaBoost classifier is then trained on the resulting balanced training set. The base estimator configuration is the same as that of Ada.
-
Undersampling + Random Forest(abbreviated as URF). The difference from UAda is that RF is used to train the balanced training set. The base estimator configuration is the same as that of RF.
-
BalancedBagging(abbreviated as BB). A Bagging classifier with additional balancing. Here we use random under-sample to balance subset. The base estimator is CART and estimator number is set 100.
-
BalancedRandomForests(abbreviated as BRF). A balanced random forest by randomly under-sampling each bootstrap sample. The estimator number is set 100.
-
RUSBoost(abbreviated as RUSB). During learning, the problem of class balancing is alleviated by random under-sampling the sample at each iteration of the AdaBoost algorithm. The base estimator is CART and estimator number is set 100.
-
EasyEnsemble(abbreviated as EE). Like random undersampling, this method samples the negative examples with replacement and repeats the process M times to create M balanced subsets. We set M = 10. The base estimator is AdaBoost with CART as the base classifier, and the number of AdaBoost estimators is set to 10.
-
CBE. The complexity-adaptive boundary-aware ensemble model we proposed; details are given in Section IV. Here, we also create 10 balanced subsets. The base classifier of AdaBoost is CART, and the number of AdaBoost estimators is set to 10.
CART and Ada are the baseline methods. In CART, we set min_samples_split = 10 to prune the tree and avoid overfitting. In addition, for the ensemble methods based on CART, we set max_features='sqrt' to reduce variance and training overhead [30].
D. Analysis of Training Time
The running times of these methods are recorded in Table V on a Mac with an M4 CPU. With n_job=1, the single-estimator CART runs fastest. Imbalance learning methods based on under-sampling run faster than conventional methods because they use fewer training examples. The RF series (RF, URF, BRF) runs slightly faster than the Ada series (Ada, UAda). RUSB runs faster than UAda, mainly because of the different convergence algorithms in the runtime environment: SAMME.R typically converges faster than SAMME. Owing to the extra computation of data complexity and sample distances, CBE runs slightly slower than EE.
E. Results and Analyses
First, we show the Pearson correlation between the data complexity measures and the performance metrics in Fig. 3. The performance results are obtained with the CART model. A highly statistically significant correlation is observed (p < 0.01). Among the performance metrics, AUC has a lower correlation than F-measure and G-mean, which show similar distributions. Among the individual complexity measures, L2 has the lowest correlation, probably because the base model is nonlinear, whereas N3 achieves the highest. In addition, we include the result of AVG, the naive average of the three measures. OCM shows a stronger correlation with all three performance metrics than either the individual measures or AVG, demonstrating the effectiveness of this overall complexity measure.
The average F-measure of the compared methods on the Easy, Median, and Hard datasets is summarized in Table VI, and the results of the pairwise t-tests are shown in Table VII. The average G-mean is summarized in Table VIII, with the corresponding t-test results in Table IX. In Tables VII and IX, the three values at the intersection of row i and column j indicate, respectively, on how many datasets method i is significantly better than, not significantly different from, or significantly worse than method j.
Furthermore, we perform a Friedman test, which rejects the hypothesis that all algorithms are equivalent at a significance level of 0.05 [31], and we obtain the average ranks of all methods for the two metrics. We then conduct a post-hoc Nemenyi test to compare the average ranks pairwise. According to this test, two classifiers differ significantly if their average ranks differ by at least the critical difference (CD = 4.24). Fig. 4 summarizes these comparisons. The top line is the axis along which the average rank of each method m is plotted, from the highest ranks (worst methods) on the left to the lowest ranks (best methods) on the right. Groups of methods that are not statistically different are connected.
On Easy datasets, the traditional methods Ada and RF achieve high F-measure and G-mean; in particular, Ada surpasses most imbalance learning methods on F-measure. On Median and Hard datasets, however, both Ada and RF degrade severely on both metrics. These results show that imbalance learning methods mainly benefit Median and Hard datasets.
On Median and Hard datasets, even simple undersampling allows UAda and URF to substantially alleviate the effects of class imbalance and improve significantly over Ada and RF on both metrics. Well-designed methods such as BB, BRF, and EE outperform UAda and URF on both metrics. BRF draws a balanced bootstrap for every tree, which reduces variance more effectively than EE, and inherits the random feature subspace technique from RF, which further reduces variance compared with BB. Hence, BRF performs better than both BB and EE.
Benefiting from the boundary-aware mechanism, CBE achieves the highest average F-measure and G-mean on Easy and Median datasets. On Hard datasets, it also attains near-optimal performance. In the pairwise t-tests, CBE outperforms the other methods on most datasets, except that it loses to BRF on F-measure for Hard datasets (0-6-2). The post-hoc Nemenyi test gives the same picture: CBE achieves the best rank for all three categories and both metrics, again except for BRF on F-measure for Hard datasets. The key is not uniform improvement but adaptive, complexity-aware sampling intensity. Guided by OCM, the method strengthens boundary sampling on easy and median datasets where a separable boundary exists, yielding consistent gains, and automatically relaxes it on hard datasets where intrinsic overlap bounds the Bayes error. It therefore delivers measurable gains without degrading performance on hard cases, an advantage over aggressive
TABLE V: Training Times (in Seconds). The last row shows the average training time of each method over the 24 datasets.
| CART | Ada | RF | UAda | URF | BB | BRF | RUSB | EE | CBE | |
|---|---|---|---|---|---|---|---|---|---|---|
| mfeat-fac | 0.064 | 0.540 | 0.245 | 0.036 | 0.064 | 0.169 | 0.106 | 0.016 | 0.105 | 0.169 |
| mfeat-pix | 0.012 | 0.198 | 0.091 | 0.067 | 0.045 | 0.134 | 0.076 | 0.017 | 0.077 | 0.139 |
| mfeat-kar | 0.045 | 0.596 | 0.288 | 0.104 | 0.06 | 0.139 | 0.102 | 0.028 | 0.109 | 0.138 |
| newthyroid2 | 0.000 | 0.003 | 0.034 | 0.001 | 0.033 | 0.081 | 0.051 | 0.004 | 0.019 | 0.026 |
| vowel0 | 0.002 | 0.066 | 0.058 | 0.010 | 0.035 | 0.089 | 0.058 | 0.007 | 0.038 | 0.050 |
| vehicle | 0.001 | 0.094 | 0.052 | 0.059 | 0.042 | 0.099 | 0.068 | 0.010 | 0.064 | 0.071 |
| musk2 | 0.285 | 2.198 | 1.099 | 0.700 | 0.328 | 0.668 | 0.522 | 0.137 | 0.775 | 1.292 |
| ecoli4 | 0.000 | 0.018 | 0.036 | 0.004 | 0.033 | 0.083 | 0.053 | 0.005 | 0.026 | 0.031 |
| wave | 0.035 | 0.847 | 0.398 | 0.542 | 0.291 | 0.501 | 0.465 | 0.207 | 0.537 | 0.699 |
| ecoli1 | 0.000 | 0.044 | 0.036 | 0.038 | 0.034 | 0.083 | 0.054 | 0.006 | 0.047 | 0.048 |
| glass0 | 0.000 | 0.044 | 0.036 | 0.040 | 0.035 | 0.084 | 0.055 | 0.012 | 0.048 | 0.049 |
| ecoli3 | 0.000 | 0.043 | 0.036 | 0.026 | 0.033 | 0.081 | 0.052 | 0.004 | 0.043 | 0.044 |
| glass1 | 0.000 | 0.044 | 0.037 | 0.041 | 0.035 | 0.084 | 0.056 | 0.014 | 0.049 | 0.050 |
| pima | 0.001 | 0.072 | 0.050 | 0.059 | 0.045 | 0.101 | 0.071 | 0.034 | 0.067 | 0.072 |
| bank | 0.027 | 0.527 | 0.285 | 0.241 | 0.137 | 0.303 | 0.242 | 0.121 | 0.252 | 0.659 |
| vehicle1 | 0.002 | 0.102 | 0.064 | 0.067 | 0.048 | 0.110 | 0.077 | 0.021 | 0.075 | 0.081 |
| mfeat-fou | 0.029 | 0.587 | 0.254 | 0.110 | 0.065 | 0.155 | 0.116 | 0.016 | 0.119 | 0.143 |
| vehicle3 | 0.002 | 0.102 | 0.066 | 0.066 | 0.048 | 0.108 | 0.077 | 0.026 | 0.075 | 0.081 |
| wine | 0.016 | 0.669 | 0.354 | 0.229 | 0.135 | 0.270 | 0.231 | 0.088 | 0.237 | 0.386 |
| yeast1 | 0.002 | 0.100 | 0.067 | 0.071 | 0.052 | 0.121 | 0.086 | 0.041 | 0.083 | 0.095 |
| mfeat-mor | 0.001 | 0.098 | 0.058 | 0.050 | 0.038 | 0.099 | 0.067 | 0.005 | 0.058 | 0.068 |
| haberman | 0.000 | 0.042 | 0.036 | 0.038 | 0.034 | 0.084 | 0.055 | 0.016 | 0.048 | 0.048 |
| mfeat-zer | 0.021 | 0.413 | 0.186 | 0.087 | 0.061 | 0.141 | 0.106 | 0.012 | 0.097 | 0.116 |
| abalone | 0.008 | 0.495 | 0.196 | 0.099 | 0.065 | 0.153 | 0.118 | 0.054 | 0.109 | 0.160 |
| Average | 0.023 | 0.331 | 0.169 | 0.116 | 0.075 | 0.164 | 0.124 | 0.038 | 0.132 | 0.196 |
boundary sampling.
We also conduct an experiment to examine the impact of different sampling strategies; the results are shown in Fig. 5, where RUS denotes random under-sampling. On Easy datasets, CDWS performs best and RUS worst in terms of F-measure, confirming the effectiveness of the boundary-aware mechanism. CDWS outperforms DWS because it uses the function to calculate the sampling weights, rather than the simple form, which tends to inflate the weights of noisy samples. On Median datasets, the three sampling methods perform similarly. On Hard datasets, CDWS and RUS achieve similar results owing to the complexity-adaptive design of boundary sampling intensity, and both outperform the aggressive boundary sampling of DWS. Similar results are observed for G-mean.
VI. CONCLUSION
In this paper, we propose a complexity-adaptive boundary-aware ensemble framework, CBE, for class imbalance classification. The framework consists of three components: an overall complexity measure OCM, a novel distance-weighted under-sampling method CDWS, and a simple ensemble strategy adapted from EasyEnsemble. Experiments on 24 benchmark datasets demonstrate the effectiveness of OCM and the superiority of CBE over several typical ensemble methods in terms of F-measure and G-mean, with a particularly pronounced advantage in F-measure. We also examine the impact of different sampling strategies. Guided by OCM, CBE strengthens boundary sampling on easy and median datasets where a separable boundary exists and automatically relaxes it on hard datasets where intrinsic overlap bounds the Bayes error.
Introducing complexity measures to adjust the sampling intensity of boundary examples also incurs computational overhead, because computing the data complexity and pairwise Euclidean distances scales quadratically with the dataset size and dimension. This may limit the applicability of the method to large-scale datasets and real-time scenarios.

Fig. 3: Correlation between data complexity measures and performance metrics.
REFERENCES
[1] H. He and Y. Ma, Eds., Imbalanced Learning: Foundations, Algorithms, and Applications, 2013.
[2] X. Wei et al., “An ensemble model for diabetes diagnosis in large-scale and imbalanced dataset,” in Proc. Comput. Frontiers Conf., 2017.
[3] Z.-H. Zhou, Ensemble Learning. Springer Singapore, 2021.
[4] X. Y. Liu, J. Wu, and Z. H. Zhou, “Exploratory undersampling for class-imbalance learning,” IEEE Trans. Syst. Man Cybern., Part B, vol. 39, no. 2, pp. 539–550, 2009.
[5] Barella et al., “Assessing the data complexity of imbalanced datasets,” Information Sciences, vol. 553, pp. 83–109, 2021.
TABLE VI: F-measure of Compared Methods with Standard Deviation on Easy, Median, and Hard Datasets.
| Easy | mfeat-fac | mfeat-pix | mfeat-kar | newthyroid2 | vowel0 | vehicle | musk2 | ecoli4 | Average |
|---|---|---|---|---|---|---|---|---|---|
| CART | 0.914±0.032 | 0.854±0.040 | 0.764±0.056 | 0.849±0.103 | 0.881±0.081 | 0.846±0.049 | 0.886±0.019 | 0.700±0.202 | 0.8370 |
| Ada | 0.963±0.024 | 0.950±0.021 | 0.843±0.047 | 0.924±0.085 | 0.984±0.025 | 0.949±0.021 | 0.907±0.018 | 0.729±0.252 | 0.9061 |
| RF | 0.955±0.022 | 0.941±0.022 | 0.843±0.050 | 0.945±0.063 | 0.949±0.039 | 0.927±0.029 | 0.916±0.014 | 0.677±0.288 | 0.8942 |
| UAda | 0.886±0.077 | 0.944±0.033 | 0.928±0.069 | 0.843±0.136 | 0.802±0.101 | 0.901±0.037 | 0.871±0.021 | 0.519±0.208 | 0.8367 |
| URF | 0.905±0.045 | 0.926±0.036 | 0.923±0.035 | 0.927±0.073 | 0.801±0.065 | 0.875±0.041 | 0.808±0.030 | 0.603±0.191 | 0.8459 |
| BB | 0.935±0.033 | 0.954±0.025 | 0.942±0.023 | 0.957±0.061 | 0.871±0.049 | 0.900±0.034 | 0.896±0.017 | 0.742±0.172 | 0.8996 |
| BRF | 0.934±0.031 | 0.956±0.023 | 0.942±0.024 | 0.961±0.071 | 0.868±0.049 | 0.902±0.036 | 0.895±0.017 | 0.752±0.142 | 0.9012 |
| RUSB | 0.872±0.041 | 0.907±0.045 | 0.826±0.062 | 0.908±0.100 | 0.817±0.081 | 0.880±0.035 | 0.843±0.022 | 0.590±0.192 | 0.8304 |
| EE | 0.930±0.033 | 0.952±0.025 | 0.950±0.027 | 0.914±0.083 | 0.863±0.053 | 0.906±0.038 | 0.903±0.016 | 0.669±0.183 | 0.8857 |
| CBE | 0.973±0.020 | 0.971±0.019 | 0.963±0.021 | 0.972±0.052 | 0.904±0.055 | 0.944±0.027 | 0.943±0.011 | 0.738±0.189 | 0.9260 |
| Median | wave | ecoli1 | glass0 | ecoli3 | glass1 | pima | bank | vehicle1 | Average |
| CART | 0.755±0.016 | 0.768±0.077 | 0.681±0.098 | 0.519±0.173 | 0.618±0.094 | 0.568±0.059 | 0.570±0.024 | 0.503±0.070 | 0.6227 |
| Ada | 0.858±0.015 | 0.758±0.104 | 0.793±0.070 | 0.558±0.183 | 0.760±0.081 | 0.614±0.053 | 0.611±0.020 | 0.531±0.057 | 0.6853 |
| RF | 0.852±0.014 | 0.775±0.094 | 0.774±0.081 | 0.595±0.186 | 0.707±0.086 | 0.634±0.049 | 0.626±0.018 | 0.511±0.062 | 0.6842 |
| UAda | 0.843±0.013 | 0.763±0.072 | 0.777±0.073 | 0.541±0.113 | 0.756±0.057 | 0.648±0.059 | 0.673±0.018 | 0.641±0.064 | 0.7052 |
| URF | 0.847±0.013 | 0.782±0.075 | 0.763±0.076 | 0.543±0.107 | 0.706±0.078 | 0.679±0.050 | 0.678±0.018 | 0.632±0.061 | 0.7037 |
| BB | 0.853±0.014 | 0.770±0.081 | 0.800±0.076 | 0.571±0.121 | 0.730±0.072 | 0.672±0.045 | 0.691±0.017 | 0.628±0.053 | 0.7143 |
| BRF | 0.853±0.014 | 0.776±0.083 | 0.801±0.065 | 0.574±0.122 | 0.738±0.069 | 0.673±0.048 | 0.690±0.017 | 0.634±0.056 | 0.7172 |
| RUSB | 0.830±0.014 | 0.760±0.076 | 0.756±0.084 | 0.532±0.160 | 0.734±0.085 | 0.627±0.054 | 0.662±0.018 | 0.601±0.064 | 0.6878 |
| EE | 0.849±0.012 | 0.775±0.074 | 0.808±0.056 | 0.578±0.110 | 0.766±0.071 | 0.664±0.052 | 0.683±0.016 | 0.653±0.055 | 0.7218 |
| CBE | 0.862±0.014 | 0.794±0.078 | 0.831±0.052 | 0.593±0.116 | 0.770±0.071 | 0.666±0.055 | 0.687±0.017 | 0.656±0.059 | 0.7324 |
| Hard | mfeat-fou | vehicle3 | wine | yeast1 | mfeat-mor | haberman | mfeat-zer | abalone | Average |
| CART | 0.462±0.066 | 0.511±0.067 | 0.499±0.031 | 0.489±0.040 | 0.303±0.056 | 0.319±0.124 | 0.196±0.057 | 0.185±0.036 | 0.3705 |
| Ada | 0.177±0.073 | 0.482±0.066 | 0.581±0.029 | 0.519±0.041 | 0.301±0.077 | 0.295±0.085 | 0.125±0.049 | 0.076±0.030 | 0.3194 |
| RF | 0.306±0.069 | 0.486±0.056 | 0.517±0.025 | 0.546±0.044 | 0.316±0.065 | 0.310±0.117 | 0.078±0.047 | 0.039±0.024 | 0.3248 |
| UAda | 0.613±0.042 | 0.609±0.055 | 0.547±0.019 | 0.578±0.035 | 0.616±0.048 | 0.415±0.084 | 0.514±0.051 | 0.287±0.027 | 0.5226 |
| URF | 0.626±0.043 | 0.616±0.051 | 0.537±0.021 | 0.598±0.042 | 0.652±0.047 | 0.478±0.075 | 0.529±0.046 | 0.297±0.024 | 0.5417 |
| BB | 0.642±0.041 | 0.625±0.052 | 0.584±0.023 | 0.609±0.038 | 0.655±0.045 | 0.463±0.079 | 0.560±0.043 | 0.313±0.028 | 0.5564 |
| BRF | 0.641±0.042 | 0.628±0.048 | 0.582±0.024 | 0.611±0.041 | 0.655±0.044 | 0.465±0.075 | 0.563±0.045 | 0.313±0.030 | 0.5573 |
| RUSB | 0.535±0.049 | 0.589±0.056 | 0.565±0.023 | 0.551±0.043 | 0.601±0.048 | 0.402±0.083 | 0.441±0.047 | 0.282±0.026 | 0.4958 |
| EE | 0.634±0.040 | 0.630±0.049 | 0.569±0.023 | 0.603±0.036 | 0.654±0.044 | 0.443±0.079 | 0.558±0.042 | 0.299±0.023 | 0.5485 |
| CBE | 0.640±0.036 | 0.636±0.046 | 0.581±0.022 | 0.601±0.039 | 0.654±0.043 | 0.458±0.085 | 0.567±0.044 | 0.300±0.024 | 0.5547 |
TABLE VII: Comparison of Pairwise t-tests on F-measure with Significance Level 0.05 on Easy, Median, and Hard Datasets.
| F-measure | CART | Ada | RF | UAda | URF | BB | BRF | RUSB | EE | CBE |
|---|---|---|---|---|---|---|---|---|---|---|
| CART | — | 0-1-7 | 0-1-7 | 2-2-4 | 2-1-5 | 0-1-7 | 0-1-7 | 0-4-4 | 0-2-6 | 0-0-8 |
| Ada | 7-1-0 | — | 4-2-2 | 6-1-1 | 6-1-1 | 4-2-2 | 4-2-2 | 6-2-0 | 3-4-1 | 1-2-5 |
| RF | 7-1-0 | 2-2-4 | — | 6-1-1 | 5-2-1 | 4-2-2 | 4-2-2 | 7-1-0 | 5-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| 0-5-3 | 0-3-5 | 7-1-0 | — | 0-5-3 |
| CBE | 8-0-0 | 7-1-0 | 8-0-0 | 8-0-0 | 4-3-1 | 2-5-1 | 0-6-2 | 8-0-0 | 3-5-0 | — |
TABLE VIII: G-mean of Compared Methods with Standard Deviation on Easy, Median, and Hard Datasets.
| Easy | mfeat-fac | mfeat-pix | mfeat-kar | newthyroid2 | vowel0 | vehicle | musk2 | ecoli4 | Average |
|---|---|---|---|---|---|---|---|---|---|
| CART | 0.946±0.027 | 0.914±0.032 | 0.858±0.046 | 0.915±0.071 | 0.937±0.053 | 0.896±0.039 | 0.931±0.014 | 0.834±0.178 | 0.9040 |
| Ada | 0.967±0.021 | 0.951±0.020 | 0.855±0.042 | 0.945±0.070 | 0.985±0.024 | 0.968±0.016 | 0.913±0.017 | 0.779±0.239 | 0.9204 |
| RF | 0.958±0.021 | 0.944±0.022 | 0.855±0.044 | 0.951±0.057 | 0.958±0.035 | 0.954±0.021 | 0.924±0.013 | 0.706±0.277 | 0.9061 |
| UAda | 0.973±0.023 | 0.984±0.011 | 0.975±0.024 | 0.938±0.055 | 0.966±0.025 | 0.964±0.014 | 0.958±0.010 | 0.869±0.160 | 0.9535 |
| URF | 0.977±0.013 | 0.973±0.013 | 0.966±0.016 | 0.980±0.036 | 0.972±0.013 | 0.954±0.016 | 0.939±0.010 | 0.931±0.071 | 0.9613 |
| BB | 0.976±0.017 | 0.973±0.016 | 0.955±0.020 | 0.987±0.033 | 0.979±0.017 | 0.962±0.014 | 0.956±0.008 | 0.932±0.091 | 0.9651 |
| BRF | 0.976±0.015 | 0.975±0.014 | 0.955±0.019 | 0.987±0.036 | 0.978±0.017 | 0.963±0.014 | 0.956±0.008 | 0.942±0.073 | 0.9667 |
| RUSB | 0.967±0.018 | 0.971±0.013 | 0.950±0.023 | 0.969±0.041 | 0.966±0.022 | 0.943±0.019 | 0.939±0.011 | 0.892±0.116 | 0.9497 |
| EE | 0.985±0.012 | 0.984±0.011 | 0.974±0.015 | 0.979±0.029 | 0.979±0.015 | 0.967±0.013 | 0.966±0.008 | 0.939±0.071 | 0.9716 |
| CBE | 0.989±0.012 | 0.984±0.012 | 0.973±0.019 | 0.987±0.039 | 0.985±0.012 | 0.976±0.012 | 0.972±0.008 | 0.945±0.080 | 0.9763 |
| Median | wave | ecoli1 | glass0 | ecoli3 | glass1 | pima | bank | vehicle1 | Average |
| CART | 0.813±0.013 | 0.852±0.060 | 0.760±0.077 | 0.668±0.173 | 0.700±0.073 | 0.660±0.047 | 0.699±0.019 | 0.642±0.051 | 0.7241 |
| Ada | 0.896±0.011 | 0.830±0.077 | 0.839±0.062 | 0.672±0.160 | 0.805±0.067 | 0.696±0.038 | 0.705±0.018 | 0.649±0.042 | 0.7615 |
| RF | 0.891±0.010 | 0.856±0.068 | 0.826±0.063 | 0.693±0.158 | 0.760±0.071 | 0.711±0.035 | 0.718±0.016 | 0.631±0.050 | 0.7604 |
| UAda | 0.901±0.008 | 0.882±0.047 | 0.842±0.059 | 0.865±0.062 | 0.810±0.045 | 0.726±0.039 | 0.824±0.010 | 0.782±0.036 | 0.8291 |
| URF | 0.902±0.009 | 0.900±0.044 | 0.830±0.064 | 0.877±0.051 | 0.769±0.063 | 0.752±0.032 | 0.830±0.009 | 0.775±0.036 | 0.8293 |
| BB | 0.904±0.009 | 0.888±0.049 | 0.860±0.059 | 0.872±0.072 | 0.786±0.057 | 0.747±0.027 | 0.828±0.010 | 0.766±0.032 | 0.8313 |
| BRF | 0.904±0.009 | 0.891±0.047 | 0.862±0.051 | 0.871±0.073 | 0.793±0.055 | 0.748±0.029 | 0.827±0.010 | 0.770±0.034 | 0.8332 |
| RUSB | 0.886±0.010 | 0.872±0.047 | 0.824±0.064 | 0.807±0.121 | 0.790±0.068 | 0.710±0.035 | 0.800±0.012 | 0.743±0.042 | 0.8041 |
| EE | 0.904±0.008 | 0.894±0.040 | 0.865±0.049 | 0.887±0.051 | 0.819±0.050 | 0.740±0.031 | 0.833±0.008 | 0.793±0.031 | 0.8418 |
| CBE | 0.910±0.009 | 0.899±0.043 | 0.880±0.040 | 0.887±0.058 | 0.821±0.056 | 0.741±0.035 | 0.837±0.008 | 0.794±0.033 | 0.8462 |
| Hard | mfeat-fou | vehicle3 | wine | yeast1 | mfeat-mor | haberman | mfeat-zer | abalone | Average |
| CART | 0.651±0.052 | 0.652±0.055 | 0.668±0.025 | 0.621±0.032 | 0.523±0.061 | 0.482±0.118 | 0.418±0.072 | 0.400±0.046 | 0.5517 |
| Ada | 0.312±0.077 | 0.602±0.054 | 0.663±0.022 | 0.632±0.033 | 0.523±0.079 | 0.462±0.083 | 0.304±0.081 | 0.204±0.044 | 0.4628 |
| RF | 0.447±0.065 | 0.602±0.048 | 0.612±0.020 | 0.648±0.034 | 0.535±0.068 | 0.453±0.120 | 0.226±0.093 | 0.134±0.051 | 0.4573 |
| UAda | 0.901±0.022 | 0.761±0.040 | 0.793±0.011 | 0.704±0.024 | 0.894±0.023 | 0.574±0.065 | 0.839±0.031 | 0.636±0.024 | 0.7628 |
| URF | 0.907±0.020 | 0.766±0.033 | 0.789±0.013 | 0.721±0.027 | 0.928±0.015 | 0.635±0.061 | 0.839±0.029 | 0.647±0.021 | 0.7790 |
| BB | 0.901±0.024 | 0.767±0.038 | 0.799±0.015 | 0.726±0.025 | 0.932±0.013 | 0.622±0.070 | 0.840±0.028 | 0.634±0.025 | 0.7776 |
| BRF | 0.899±0.024 | 0.769±0.035 | 0.797±0.015 | 0.728±0.028 | 0.932±0.013 | 0.624±0.068 | 0.842±0.030 | 0.635±0.027 | 0.7783 |
| RUSB | 0.846±0.034 | 0.736±0.043 | 0.790±0.016 | 0.676±0.030 | 0.876±0.031 | 0.568±0.068 | 0.782±0.034 | 0.607±0.029 | 0.7351 |
| EE | 0.912±0.017 | 0.779±0.036 | 0.808±0.013 | 0.725±0.026 | 0.933±0.012 | 0.600±0.061 | 0.867±0.022 | 0.651±0.022 | 0.7844 |
| CBE | 0.915±0.017 | 0.783±0.030 | 0.813±0.013 | 0.724±0.025 | 0.933±0.011 | 0.615±0.066 | 0.868±0.025 | 0.651±0.020 | 0.7876 |
TABLE IX: Comparison of Pairwise t-tests on G-mean with Significance Level 0.05 on Easy, Median, and Hard Datasets.
| G-mean | CART | Ada | RF | UAda | URF | BB | BRF | RUSB | EE | CBE |
|---|---|---|---|---|---|---|---|---|---|---|
| CART | — | 0-1-7 | 0-1-7 | 0-0-8 | 0-0-8 | 0-0-8 | 0-0-8 | 0-0-8 | 0-0-8 | 0-0-8 |
| Ada | 7-1-0 | — | 5-2-1 | 1-3-4 | 2-0-6 | 1-1-6 | 1-1-6 | 2-1-5 | 1-1-6 | 0-1-7 |
| RF | 7-1-0 | 1-2-5 | — | 0-2-6 | 0-1-7 | 0-0-8 | 0-0-8 | 1-1-6 | 0-0-8 | 0-0-8 |
| UAda | 8-0-0 | 4-3-1 | 6-2-0 | — | 4-2-2 | 2-3-3 | 2-3-3 | 4-3-1 | 0-3-5 | 0-2-6 |
| URF | 8-0-0 | 6-0-2 | 7-1-0 | 2-2-4 | — | 1-3-4 | 1-3-4 | 5-3-0 | 0-2-6 | 0-2-6 |
| BB | 8-0-0 | 6-1-1 | 8-0-0 | 3-3-2 | 4-3-1 | — | 0-8-0 | 6-2-0 | 0-3-5 | 0-2-6 |
| BRF | 8-0-0 | 6-1-1 | 8-0-0 | 3-3-2 | 4-3-1 | 0-8-0 | — | 6-2-0 | 0-3-5 | 0-2-6 |
| RUSB | 8-0-0 | 5-1-2 | 6-1-1 | 1-3-4 | 0-3-5 | 0-2-6 | 0-2-6 | — | 0-1-7 | 0-0-8 |
| EE | 8-0-0 | 6-1-1 | 8-0-0 | 5-3-0 | 6-2-0 | 5-3-0 | 5-3-0 | 7-1-0 | — | 0-4-4 |
| CBE | 8-0-0 | 7-1-0 | 8-0-0 | 6-2-0 | 6-2-0 | 6-2-0 | 6-2-0 | 8-0-0 | 4-4-0 | — |
| CART | — | 0-2-6 | 0-2-6 | 0-0-8 | 0-0-8 | 0-0-8 | 0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| 0-4-4 | 0-4-4 | 6-2-0 | 0-0-8 | 0-0-8 |
| URF | 8-0-0 | 8-0-0 | 8-0-0 | 5-2-1 | — | 2-4-2 | 2-3-3 | 7-1-0 | 1-3-4 | 1-2-5 |
| BB | 8-0-0 | 8-0-0 | 8-0-0 | 4-4-0 | 2-4-2 | — | 0-8-0 | 8-0-0 | 1-2-5 | 0-3-5 |
| BRF | 8-0-0 | 8-0-0 | 8-0-0 | 4-4-0 | 3-3-2 | 0-8-0 | — | 8-0-0 | 1-2-5 | 0-3-5 |
| RUSB | 8-0-0 | 8-0-0 | 8-0-0 | 0-2-6 | 0-1-7 | 0-0-8 | 0-0-8 | — | 0-0-8 | 0-0-8 |
| EE | 8-0-0 | 8-0-0 | 8-0-0 | 8-0-0 | 4-3-1 | 5-2-1 | 5-2-1 | 8-0-0 | — | 0-7-1 |
| CBE | 8-0-0 | 8-0-0 | 8-0-0 | 8-0-0 | 5-2-1 | 5-3-0 | 5-3-0 | 8-0-0 | 1-7-0 | — |

(a) Average ranks of F-measure on Easy datasets
(b) Average ranks of G-mean on Easy datasets

(c) Average ranks of F-measure on Median datasets
(d) Average ranks of G-mean on Median datasets

(e) Average ranks of F-measure on Hard datasets
(f) Average ranks of G-mean on Hard datasets
Fig. 4: Average ranks of all methods and critical difference diagram on three kinds of datasets for the Nemenyi test. Groups of methods that are not significantly different at 0.05 are connected.
[6] M. S. Santos, P. H. Abreu, N. Japkowicz, A. Fernández, and J. Santos, "A unifying view of class overlap and imbalance: Key concepts, multi-view panorama, and open avenues for research," Information Fusion, vol. 89, pp. 228–253, 2023.
[7] Z. Liu, W. Cao, Z. Gao, J. Bian, H. Chen, Y. Chang, and T.-Y. Liu, “Self-paced ensemble for highly imbalanced massive data classification,” in 2020 IEEE 36th International Conference on Data Engineering (ICDE), 2020, pp. 841–852.
[8] B. Sun, Z. Wang, Z. Zhou, Q. Li, Y. Wang, X. Geng, Y. Zhang, and C. Sun, “Imbalanced data learning approach utilizing feature value based class overlap degree,” Computer Science, 2026, article ID 24339 (in Chinese).
[9] Y.-J. Park, K.-Y. Cheng, R. Pan, D. C. Montgomery, Q.-V. Dang, and J. Lee, “A novel hybrid resampling based on relative class-impurity for class imbalanced problems,” International Journal of Intelligent Systems, vol. 2026, no. 1, 2026.
[10] C.-Y. Wu et al., “Sampling matters in deep embedding learning,” in Proc. IEEE Int. Conf. Comput. Vis. (ICCV), 2017.
[11] I. Mani and I. Zhang, “knn approach to unbalanced data distributions: A case study involving information extraction,” in Proc. Workshop Learn. Imbalanced Datasets, ICML, vol. 126, no. 1, 2003.
[12] M. Kubat and S. Matwin, “Addressing the curse of imbalanced training sets: One-sided selection,” in Proc. 14th Int. Conf. Mach. Learn., Nashville, TN, 1997, pp. 179–186.
[13] N. V. Chawla, K. W. Bowyer, L. O. Hall, and W. P. Kegelmeyer,
“Smote: Synthetic minority over-sampling technique,” J. Artif. Intell. Res., vol. 16, pp. 321–357, 2002.
[14] C. Drummond and R. C. Holte, “C4.5, class imbalance, and cost sensitivity: Why under-sampling beats over-sampling,” in Proc. ICML Workshop Learn. Imbalanced Data Sets, Washington, DC, 2003.
[15] S. Hido, H. Kashima, and Y. Takahashi, “Roughly balanced bagging for imbalanced data,” Stat. Anal. Data Min.: ASA Data Sci. J., vol. 2, no. 5-6, pp. 412–426, 2009.
[16] C. Chen, A. Liaw, and L. Breiman, “Using random forest to learn imbalanced data,” Univ. California, Berkeley, Dept. Stat., Berkeley, CA, Tech. Rep. 666, 2004.
[17] C. Seiffert, T. M. Khoshgoftaar, J. Van Hulse, and A. Napolitano, "Rusboost: A hybrid approach to alleviating class imbalance," IEEE Trans. Syst. Man Cybern., Part A: Syst. Humans, vol. 40, no. 1, pp. 185–197, 2009.
[18] Y. Qian et al., “A resampling ensemble algorithm for classification of imbalance problems,” Neurocomputing, vol. 143, pp. 57–67, 2014.
[19] W. Lu, Z. Li, and J. Chu, “Adaptive ensemble undersampling-boost: A novel learning framework for imbalanced data,” J. Syst. Softw., vol. 132, pp. 272–282, 2017.
[20] Z. Sun et al., “A novel ensemble method for classifying imbalanced data,” Pattern Recognit., vol. 48, no. 5, pp. 1623–1637, 2015.
[21] B. Tang and H. He, “Gir-based ensemble sampling approaches for imbalanced learning,” Pattern Recognit., vol. 71, pp. 306–319, 2017.
[22] V. Cerqueira, L. Torgo, P. Branco, and C. Bellinger, “Automated im-

(a) F-measure of different sampling strategies on three categories of datasets

(b) G-mean of different sampling strategies on three categories of datasets
Fig. 5: F-measure and G-mean of different sampling strategies on the three categories of datasets.
balanced classification via layered learning," Machine Learning, 2022, volume, number, pages and DOI to be verified against the published version.
[23] Q. Dai, J. wei Liu, and Y. Liu, “Multi-granularity relabeled undersampling algorithm for imbalanced data,” Applied Soft Computing, pp. 109083(1–16), 2022.
[24] F. Grina, Z. Elouedi, and E. Lefevre, “Re-sampling of multi-class imbalanced data using belief function theory and ensemble learning,” International Journal of Approximate Reasoning, 2023.
[25] A. C. Lorena et al., “How complex is your classification problem? a survey on measuring classification complexity,” ACM Comput. Surv., vol. 52, no. 5, pp. 1–34, 2019.
[26] L. Breiman, J. H. Friedman, R. A. Olshen, and C. J. Stone, Classification and Regression Trees. Chapman and Hall/CRC, 1984.
[27] M. Kelly, R. Longjohn, and K. Nottingham, “The uci machine learning repository.” [Online]. Available: https://archive.ics.uci.edu
[28] P. Branco, L. Torgo, and R. P. Ribeiro, “A survey of predictive modeling on imbalanced domains,” ACM Computing Surveys, vol. 49, no. 2, pp. 1–50, 2016.
[29] G. Lemaitre, F. Nogueira, and C. K. Aridas, “Imbalanced-learn: A python toolbox to tackle the curse of imbalanced datasets in machine learning,” J. Mach. Learn. Res., vol. 18, no. 17, pp. 1–5, 2017.
[30] T. K. Ho, “The random subspace method for constructing decision forests,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 20, no. 8, pp. 832–844, 1998.
[31] J. Demsar, “Statistical comparisons of classifiers over multiple data sets,” J. Mach. Learn. Res., vol. 7, pp. 1–30, 2006.