Optimizing XGBoost via mSMA_plus: A Novel Meta-Heuristic Approach for High-Precision Multiclass Dry Bean Classification
Source abstract
Abstract
Precise classification of dry bean varieties holds critical importance for agricultural sustainability, food security, and the preservation of seed quality standards. Traditional classification methods rely on human intervention and exhibit significant error rates; this necessitates the use of high-performance machine learning models and effective optimization strategies. This study aims to propose an innovative framework that optimizes the hyperparameters of the Extreme Gradient Boosting model for classifying seven different bean varieties on the Dry Bean Dataset using meta-heuristic algorithms. Within this study, critical parameters of the XGBoost model, such as learning rate, tree depth, and subsampling rates, have been systematically tuned using Slime Mould, Modified SMA (mSMA), mSMA_plus, Particle Swarm Optimization, and Grey Wolf Optimizer algorithms. The effectiveness of the proposed methods has been comparatively evaluated against commonly used GridSearch and RandomSearch techniques in the literature. The experimental results, assessed using accuracy, F1-score, precision, and recall metrics, reveal that the proposed mSMA_plus algorithm achieves a peak classification accuracy of 99.39% and an F1-score of 0.9939. This marks a clear architectural advancement over baseline frameworks, raising the classification accuracy baseline by approximately 1.15% compared to traditional GridSearch approaches within a total execution timeline of 507.55 s.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Smart Agriculture and AI · Machine Learning and Data Classification · Spectroscopy and Chemometric Analyses
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Computer Programming, Vocational School of Technical Sciences, Kirklareli University, 39100 Kirklareli, Türkiye
References (66)
Show source-provided references
1. Innovative Solutions and Environmental Analysis of Current and Future Food Problems
2. Akıllı tarım uygulamalarında akademi ve özel sektörün rolü10.24181/tarekoder.1511288 ↗
3. Sürdürülebilir Tarım Açısından Türkiye’de Tohumculuk Sektörü
4. Computer-vision classification of corn seed varieties using deep convolutional neural network10.1016/j.jspr.2021.101800 ↗
5. Material Parameter Identification of Elastoplastic Constitutive Models Using Machine Learning Approaches10.4028/p-zr575d ↗
6. Dengesiz Sınıf Dağılımında Kayıp Gözlem Sorunu için Topluluk Öğrenmesi Sonuçlarının İstatistiksel Değerlendirmesi10.19113/sdufenbed.1090596 ↗
7. Optik ve radar görüntüleri ile aşırı gradyan artırma algoritması kullanılarak tarımsal ürün desen tespiti10.29128/geomatik.1332997 ↗
8. Machine Learning Methods to Perform Pricing Optimization. A Comparison with Standard GLMs10.66573/001c.116043 ↗
9. Navon, D., and Bronstein, A. (2022). Random Search Hyper-Parameter Tuning: Expected Improvement Estimation and the Corresponding Lower Bound. arXiv.
10. AutoML: A survey of the state-of-the-art10.1016/j.knosys.2020.106622 ↗
11. Metaheuristic Optimization Algorithms: An overview
12. Morales-Reyes, J.L., Aquino-Bolaños, E.N., Acosta-Mesa, H.G., Pérez-Castro, N., and Chavez-Servia, J.L. (2025). Classification of Common Bean Landraces of Three Species Using a Neuroevolutionary Approach with Probabilistic Color Characterization. Math. Comput. Appl., 30.10.3390/mca30030066 ↗
13. Kuru Fasulye Tohumlarının Çok Sınıflı Sınıflandırılması İçin Hibrit Bir Yaklaşım10.21597/jist.1185949 ↗
14. Minimizing the overall electricity production cost to the large-scale power system incorporating solar and wind energy sources using Elk Herd Optimizer10.55579/jaec.2026101.523 ↗
15. Air quality prediction model based on mRMR–RF feature selection and ISSA–LSTM10.1038/s41598-023-39838-4 ↗
16. Gülsün, B., and Aydin, M.R. (2024). Optimizing the extreme gradient boosting algorithm through the use of metaheuristic algorithms in sales forecasting. Preprint.10.21203/rs.3.rs-4515150/v1 ↗
17. Slime mould algorithm: A comprehensive review of recent variants and applications10.1080/00207721.2022.2153635 ↗
18. A Literature Review and Critical Analysis of Metaheuristics Recently Developed10.1007/s11831-023-09975-0 ↗
19. Cui, Z., Hou, X., Zhou, H., Lian, W., and Wu, J. (2020). Modified Slime Mould Algorithm via Levy Flight. Proceedings of the 2020 13th International Congress on Image and Signal Processing, BioMedical Engineering and Informatics (CISP-BMEI), IEEE.10.1109/CISP-BMEI51763.2020.9263669 ↗
20. Wei, Y., Othman, Z., Daud, K.M., Luo, Q., and Zhou, Y. (2024). Advances in Slime Mould Algorithm: A Comprehensive Survey. Biomimetics, 9.10.3390/biomimetics9010031 ↗
21. A Novel Binary Slime Mould Algorithm with AU Strategy for Cognitive Radio Spectrum Allocation10.1007/s44196-021-00005-0 ↗
22. Zhang, X., Liu, Q., and Bai, X. (2023). Improved slime mould algorithm based on hybrid strategy optimization of Cauchy mutation and simulated annealing. PLoS ONE, 18.10.1371/journal.pone.0280512 ↗
23. Improved Slime Mould Algorithm Hybridizing Chaotic Maps and Differential Evolution Strategy for Global Optimization10.1109/ACCESS.2022.3183627 ↗
24. Multiclass classification of dry beans using computer vision and machine learning techniques10.1016/j.compag.2020.105507 ↗
25. An In-Depth Analysis of Data Reduction Methods for Sustainable Deep Learning
26. Ramagalla, O.A., Subrahmanyam, K.V., and G, S.R. (2024). Near Real-Time Forecasting of Temperature Using Machine Learning Algorithms. Preprint.10.21203/rs.3.rs-4214036/v1 ↗
27. Global Optimizasyonu için Uygunluk Mesafe Dengesi Tabanlı Rehber Mekanızmasıyla Slime Mould Optimize Edicinin İyileştirilmesi
28. The improved slime mould algorithm with Levy flight10.1088/1742-6596/1617/1/012033 ↗
29. Quantum error-correction using humming sparrow optimization based self-adaptive deep cnn noise correction module10.1038/s41598-024-65182-2 ↗
30. A Balanced Approach of Rapid Genetic Exploration and Surrogate Exploitation for Hyperparameter Optimization
31. Erden, C., İbrahim Demir, H., and Kökçam, A.H. (2023). Enhancing Machine Learning Model Performance with Hyper Parameter Optimization: A Comparative Study. arXiv.
32. Nature-inspired optimization algorithms: Challenges and open problems10.1016/j.jocs.2020.101104 ↗
33. Optimal grouping preventive maintenance strategy for the multi-part series system under the extended warranty condition
34. Ardeshirifar, R. (2024). Automated Classification of Dry Bean Varieties Using XGBoost and SVM Models. arXiv.
35. Dimensionality-Aware Dry Bean Classification Using Transfer Learning and SVM: Addressing Variety and Resolution Constraints10.62411/faith.3048-3719-140 ↗
36. Precision seed certification through machine learning
37. Digital Forensics AI: Evaluating, Standardizing and Optimizing Digital Evidence Mining Techniques10.1007/s13218-022-00763-9 ↗
38. Veri Kümesi Performansı Üzerinde Izgara ve Rastgele Aramanın Kapsamlı Analizi
39. On hyperparameter optimization of machine learning algorithms: Theory and practice10.1016/j.neucom.2020.07.061 ↗
40. Hyperparameter optimization: Foundations, algorithms, best practices, and open challenges10.1002/widm.1484 ↗
41. Overview of Metaheuristic Algorithms10.58429/pgjsrt.v2n2a144 ↗
42. Metaheuristic-based ensemble learning: An extensive review of methods and applications10.1007/s00521-024-10203-4 ↗
43. Hybrid approaches to optimization and machine learning methods: A systematic literature review10.1007/s10994-023-06467-x ↗
44. Computational optimization techniques applied to microgrids planning: A review10.1016/j.rser.2015.04.025 ↗
45. Evaluation of seed-metering devices using an automated system based on digital image analysis10.1016/j.compag.2026.111548 ↗
46. Super-High-Purity Seed Sorter Using Low-Latency Image-Recognition Based on Deep Learning10.1109/LRA.2018.2849513 ↗
47. Chen, T., and Guestrin, C. (2016, January 13–17). XGBoost: A Scalable Tree Boosting System. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD ’16), San Francisco, CA, USA.10.1145/2939672.2939785 ↗
48. Clustering and classification for dry bean feature imbalanced data10.1038/s41598-024-82253-6 ↗
49. Greedy function approximation: A gradient boosting machine10.1214/aos/1013203451 ↗
50. A novel method for identifying rice seed purity using hybrid machine learning algorithms10.1016/j.heliyon.2024.e33941 ↗
51. An AI-Driven Dual-Spectral Vision–Language Sensing Framework for Intelligent Agricultural Phenotyping10.3390/s26072045 ↗
52. A model for genuineness detection in genetically and phenotypically similar maize variety seeds based on hyperspectral imaging and machine learning10.1186/s13007-022-00918-7 ↗
53. A bimodal image dataset for seed classification from the visible and near-infrared spectrum10.1038/s41597-025-05979-6 ↗
54. Valdez, D.B. (2024, January 25). Optimizing MobileNetV3 Using Particle Swarm Optimization Algorithm for the Recognition of Bean Leaf Diseases. Proceedings of the 2024 IEEE Open Conference of Electrical, Electronic and Information Sciences (eStream), Vilnius, Lithuania.10.1109/eStream61684.2024.10542615 ↗
55. Application of deep learning for high-throughput phenotyping of seed: A review10.1007/s10462-024-11079-5 ↗
56. Kumar, D. (2024). Training neural networks without backpropagation using particles. arXiv.
57. Alcolea, A., and Resano, J. (2021). FPGA Accelerator for Gradient Boosting Decision Trees. Electronics, 10.10.3390/electronics10030314 ↗
58. Martínek, T., Kořenek, J., and Čejka, T. (2024, January 5–8). LGBM2VHDL: Mapping of LightGBM Models to FPGA. Proceedings of the 2024 IEEE 32nd Annual International Symposium on Field-Programmable Custom Computing Machines (FCCM), Orlando, FL, USA.10.1109/FCCM60383.2024.00020 ↗
59. Mehta, A., Sengupta, P., Garg, D., Singh, H., and Diamand, Y.S. (2023). Benchmarking the Effectiveness of Classification Algorithms and SVM Kernels for Dry Beans. arXiv.
60. An Advance Boosting Approach for Multiclass Dry Bean Classification10.25103/jestr.162.14 ↗
61. Boruah, A.N., and Goswami, M. (2024). Stacking Approach for Classification of Multiclass Dry Beans. Agric. Sci. Dig.-Res. J., Online First.10.18805/ag.D-5930 ↗
62. Efficient Hyperparameter Optimization Using Metaheuristics for Machine Learning in Truss Steel Structure Cross-Section Prediction10.3390/buildings15152791 ↗
63. Wang, X., Sun, J., Tian, P., Wu, M., Zhao, J., Chen, J., Qian, Y., and Wang, C. (2025). Intelligent grading of sugarcane leaf disease severity by integrating physiological traits with the SSA-XGBoost algorithm. Front. Plant Sci., 16.10.3389/fpls.2025.1698808 ↗
64. Kadhim, Y.A., Guzel, M.S., and Mishra, A. (2024). A Novel Hybrid Machine Learning-Based System Using Deep Learning Techniques and Meta-Heuristic Algorithms for Various Medical Datatypes Classification. Diagnostics, 14.10.3390/diagnostics14141469 ↗
65. DEVELOPMENT OF AGDE-BASED META-HEURISTIC DIMENSION REDUCTION ALGORITHM FOR CLASSIFICATION PROBLEMS10.21923/jesd.828518 ↗
66. Putatunda, S., and Rama, K. (2018, January 28–30). A Comparative Analysis of Hyperopt as Against Other Approaches for Hyper-Parameter Optimization of XGBoost. Proceedings of the 2018 International Conference on Signal Processing and Machine Learning—SPML’18, Shanghai, China.10.1145/3297067.3297080 ↗