Imbalanced data classification represents an enduring and formidable challenge across modern machine learning and data mining, where conventional algorithmic models systematically favor majority classes while struggling to detect minority instances. This structural limitation becomes especially consequential in high-stakes binary decision environments, including clinical diagnostics, financial fraud detection, and network intrusion monitoring, where rare positive occurrences carry significant operational importance. To counter this pervasive imbalance, an empirical study conducted by researcher Laouni Djafri introduces an integrated, optimization-driven framework designed to execute adaptive data-level rebalancing. By deploying population-based metaheuristic algorithms directly within the data preparation pipeline, the methodology increases minority-class representation while safeguarding the intrinsic geometric and distributional characteristics of the underlying dataset. Comprehensive evaluations conducted across benchmark datasets demonstrate substantial, statistically validated improvements over standard baselines, achieving notable average gains across critical evaluation metrics, including an approximate 35.3 percent increase in F1-score, a 47.6 percent elevation in recall, and a 21.5 percent boost in geometric mean.
Conventional machine learning classifiers typically pursue global objective functions focused on overall classification accuracy, an approach that inherently overlooks class distribution skewness and masks severe misclassification among rare classes. In highly skewed datasets, models often register deceptively high accuracy scores simply by predicting the dominant class across all instances, thereby completely failing to capture the rare events that practitioners most urgently need to identify. The literature notes that this deficiency is further aggravated in contemporary high-capacity models, such as deep neural architectures, where structural over-parameterization intensifies majority-class bias unless dedicated imbalance mitigation techniques are incorporated. Standard remediation strategies historically divide into data-level interventions, such as random oversampling, synthetic minority oversampling, and generative synthesis, or algorithm-level modifications, such as cost-sensitive penalties, dynamic focal loss adjustments, and class-balanced classification margins. However, existing implementations often treat preprocessing and downstream classifier training as disjointed operations, failing to exploit the dynamic interplay between synthetic data generation, feature selection, and classifier parameterization.
Addressing this operational fragmentation, the newly formulated methodology introduces a cohesive two-level integrated architecture that jointly optimizes data rebalancing and classifier configuration within a unified algorithmic loop. At the preliminary data level, the framework integrates advanced synthetic sampling protocols whose governing parameters are dynamically calibrated through metaheuristic search algorithms. Rather than applying uniform or static oversampling rates, population-based metaheuristics search for optimal configurations that govern synthetic sampling ratios, neighborhood selection boundaries, and distribution preservation rules to maximize minority detection while actively preventing model overfitting. At the subsequent classifier level, metaheuristic optimization is systematically extended to conduct automated feature selection, hyperparameter tuning, and ensemble weight allocation. By treating classifier selection and parameter calibration as a unified multi-objective optimization problem, the system avoids the computational rigidity of manual grid searching, iteratively refining decision boundaries to sustain a balanced trade-off between precision, recall, and overall predictive integrity across diverse domains.
To guide the evolutionary search and swarm intelligence trajectories, the optimization framework incorporates three widely studied population-based algorithms: Genetic Algorithms (GA), Particle Swarm Optimization (PSO), and the Salp Swarm Algorithm (SSA). These algorithms are tasked with minimizing two complementary objective functions specifically constructed to govern the data rebalancing process. The first function, designated F1, calculates a cumulative quadratic aggregation across the solution vector by iteratively accumulating squared partial sums of vector components, thereby magnifying structural deviations to capture comprehensive balancing distributions. The second function, designated F2, determines the maximum absolute value among vector components, imposing rigorous constraints on extreme values to prevent erratic local fluctuations during iterative searches. Together, these complementary formulations enable the optimization engines to effectively balance macro-level distributional patterns with micro-level boundary constraints prior to model training.
Initial computational evaluations analyzing the convergence behavior and execution efficiency of GA, SSA, and PSO across independent runs revealed distinct algorithmic characteristics across the two objective formulations. In tests assessing computational runtime, the Genetic Algorithm demonstrated the lowest execution overhead, requiring between 0.577 and 0.691 seconds for objective function F1, and between 0.242 and 0.448 seconds for function F2, reflecting the reduced computational complexity of evaluating maximum absolute values compared to cumulative quadratic summations. Conversely, the Salp Swarm Algorithm registered longer computational durations, spanning 2.359 to 2.870 seconds for F1 and 1.613 to 2.375 seconds for F2, an increase attributed to its leader-follower chain updates and position adjustment mechanics. Particle Swarm Optimization exhibited intermediate execution times while achieving rapid fitness reduction. Overall, while minor runtime variations spanning several seconds were recorded, all three metaheuristics proved computationally feasible, directing analytical focus toward their relative convergence quality and final solution accuracy.
Experimental validation was conducted using a rigorous 5Cv-fold stratified cross-validation protocol on real-world benchmark datasets obtained from the KEEL repository, sorted across varying imbalance ratios spanning low, moderate, and extreme disparities. Random Forest was selected as the foundational base learner across all comparative trials owing to its resistance to overfitting, stability in handling heterogeneous attribute structures, and natural variance reduction via bootstrap aggregation. For datasets characterized by low imbalance ratios, designated as imbalance ratios up to 3, trials utilized the Pima Indians Diabetes dataset, comprising 768 total records with 500 majority instances and 268 minority instances, yielding an imbalance ratio of approximately 1.87. In this low-imbalance environment, baseline classification prior to optimization yielded an F1-score of 0.68, a G-mean of 0.79, precision of 0.74, and recall of 0.63, reflecting common difficulties in identifying rare outcomes.
Upon introducing metaheuristic rebalancing to the Pima Indians Diabetes benchmark, classification performance improved substantially across all evaluated algorithms, with Particle Swarm Optimization establishing superior results. While the Genetic Algorithm elevated the F1-score to 0.85, G-mean to 0.91, precision to 0.85, and recall to 0.86, and the Salp Swarm Algorithm attained an F1-score of 0.88, G-mean of 0.93, precision of 0.87, and recall to 0.89, PSO achieved the top overall marks. Specifically, PSO drove the F1-score to 0.92, G-mean to 0.96, precision to 0.91, and recall to 0.93, representing an absolute recall increase of 0.30 over the unoptimized baseline. Graphical precision-recall and receiver operating characteristic curve evaluations corroborated this hierarchy: the PSO model yielded an average precision of 0.975 and an area under the ROC curve of 0.994, outperforming SSA, which registered an average precision of 0.935 and an AUC of 0.948, as well as GA, which achieved an average precision of 0.741 and an AUC of 0.852.
In moderate imbalance environments, designated as imbalance ratios between 3 and 9, the framework was evaluated using the Yeast3 dataset, which consists of 1484 total instances, eight numerical attributes detailing protein localization, and an imbalance ratio of 8.10, featuring 163 minority instances alongside 1321 majority instances. Confronted with this increased distribution skew, the unoptimized baseline once again achieved a modest F1-score of 0.68, a G-mean of 0.79, precision of 0.74, and recall of 0.63. Under these conditions, the Salp Swarm Algorithm emerged as the most effective optimizer, attaining the lowest final fitness values across both mathematical objective functions and yielding the strongest classification improvements. SSA elevated the Random Forest model to an F1-score of 0.93, a G-mean of 0.97, precision of 0.92, and recall of 0.95, representing an improvement of 0.25 in F1-score and 0.32 in recall over the uncalibrated baseline. In this moderate scenario, GA followed with an F1-score of 0.88 and recall of 0.90, while PSO achieved an F1-score of 0.85 and recall of 0.88, with SSA demonstrating an exceptional average precision of 0.993 and an AUC value of 0.990.
For highly imbalanced benchmarks where the imbalance ratio exceeds 9, the study evaluated the Yeast-0-5-6-7-9_vs_4 dataset, a challenging binary classification task comprising 528 samples, eight continuous features, and an imbalance ratio of 9.35, where majority cases outnumber minority samples by more than nine to one. In this severe imbalance setting, the Genetic Algorithm demonstrated superior exploration-exploitation dynamics, converging faster than competing approaches and reaching the lowest fitness thresholds across both objective formulations. When coupled with the Random Forest classifier, GA delivered flawless discriminative performance, recording an F1-score of 1.00, recall of 1.00, precision of 1.00, and a G-mean of 0.99. SSA provided robust alternative performance on this dataset, achieving an F1-score of 0.93, precision of 0.92, recall of 0.94, and G-mean of 0.96, whereas PSO registered more modest gains, yielding an F1-score of 0.88 and recall of 0.90. Precision-recall and ROC curves mirrored these findings, with GA registering perfect metrics of 1.000 across both diagnostic curves.
This performance variation across testing tiers reveals an essential adaptive property: different metaheuristic algorithms demonstrate specialized efficacy depending directly on the degree of class skewness. While PSO excelled in low-imbalance scenarios, SSA demonstrated peak performance under moderate imbalance, and GA proved most capable of navigating extreme imbalance conditions. When compared systematically against existing state-of-the-art metaheuristic frameworks across extended benchmarks—including Haberman, Newthyroid, Breast Cancer Wisconsin, SPECT Heart, Ecoli, Yeast-1289vs7, Abalone-20_vs_8-9-10, and Abalone19—the proposed method consistently outperformed competing models. Against advanced baselines such as GWO-PSO hybrid architectures, SSA-Ensemble Learning, GA-based SVM, SSA feature selection, and PSO-DT BagDT, the proposed system achieved the highest average F1-score of 0.96 and an overall sensitivity of 0.98. Statistical significance testing utilizing the Wilcoxon signed-rank test confirmed that these performance margins were reliable and statistically significant at an alpha threshold of 0.05, producing p-values of 0.004 against GA-based SVM, 0.003 against SSA feature selection, 0.012 against GWO-PSO hybrids, and 0.015 against SSA-Ensemble Learning.
The study also conducted head-to-head comparisons against conventional and generative imbalance techniques, including SMOTE, ADASYN, GAN-AHR, and algorithmic cost-sensitive learning. Across benchmarks including Haberman, SPECT Heart, Ecoli, and Yeast variants, the proposed metaheuristic methodology achieved superior precision, outperforming standard techniques by approximately 3 to 8 percent, while sustaining overall classification accuracies up to 0.980. While generative and adaptive methods like GAN-AHR and ADASYN occasionally produced competitive recall figures on specific datasets, they frequently suffered substantial drops in precision due to excessive false-positive generation. In contrast, the proposed optimization framework preserved an even balance across precision, recall, and accuracy. Further multi-model evaluations testing the framework across diverse classifiers—including Support Vector Machines, Artificial Neural Networks, XGBoost, Logistic Regression, and k-Nearest Neighbors—confirmed consistent cross-model enhancements, yielding average improvements of approximately 2.5 percent in G-mean, 4 percent in Matthew’s Correlation Coefficient, and 2.5 to 3 percent in AUC-PR, with Random Forest consistently maintaining top classification performance.
An ablation study dissecting the architectural components affirmed that the framework’s superior efficacy stems from synergistic interaction rather than isolated modules. Incorporating data rebalancing via metaheuristic optimization provided the single largest individual performance surge, particularly in recall and G-mean metrics, demonstrating the vital necessity of addressing distribution skewness. The subsequent addition of evolutionary feature selection further elevated precision by filtering out uninformative and redundant variables, while the final layer of hyperparameter optimization secured the highest overall metric values across all tested environments. Concluding the investigation, the author notes that while the proposed optimization framework provides an effective, statistically validated solution for imbalanced binary tasks, future research should investigate extending the architecture to multi-class imbalanced datasets and evaluating wider machine learning model families.
Subject of Research: Metaheuristic optimization frameworks for imbalanced binary data classification
Article Title: Metaheuristic-based data-level rebalancing for imbalanced binary classification: an empirical study
Article References: Djafri, L. (2026). Metaheuristic-based data-level rebalancing for imbalanced binary classification: an empirical study. Scientific Journal of King Faisal University: Basic and Applied Sciences, 27(1), Article 5. https://doi.org/10.1007/s44523-026-00005-9
Image Credits: AI Generated
DOI: 10.1007/s44523-026-00005-9
Keywords: metaheuristic optimization, imbalanced classification, binary classification, data rebalancing, genetic algorithms, particle swarm optimization, salp swarm algorithm, random forest, minority class detection, synthetic sampling, feature selection, hyperparameter tuning, KEEL repository, Wilcoxon signed-rank test, machine learning
Cite Scienmag News
Teresa Odom. (November 25, 2026). Metaheuristic Rebalancing Framework Enhances Minority Class Detection in Imbalanced Binary Classification. Scienmag. https://scienmag.com/metaheuristic-rebalancing-framework-enhances-minority-class-detection-in-imbalanced-binary-classification/
Teresa Odom. "Metaheuristic Rebalancing Framework Enhances Minority Class Detection in Imbalanced Binary Classification." Scienmag, 25 November 2026, https://scienmag.com/metaheuristic-rebalancing-framework-enhances-minority-class-detection-in-imbalanced-binary-classification/. Accessed 25 November 2026.
Teresa Odom. "Metaheuristic Rebalancing Framework Enhances Minority Class Detection in Imbalanced Binary Classification." Scienmag. November 25, 2026. https://scienmag.com/metaheuristic-rebalancing-framework-enhances-minority-class-detection-in-imbalanced-binary-classification/








