An XGBoost-Based Morphometric Classification System for Automatic Subspecies Identification of Apis mellifera
Simple Summary
Abstract
1. Introduction
2. Materials and Methods
2.1. The XGBoost-Based Classification Framework
2.2. Case Study: Identification of the Hunchun Honey Bee Population
2.3. Feature Selection and Model Training
2.4. Dimensionality Reduction
2.5. Model Evaluation and Cross-Validation
2.6. Statistical Analysis
3. Results
3.1. Overall Classification Workflow
3.2. Case Study Data Characteristics
3.3. Case Study Model Performance
3.4. XGBoost Outperforms Other Models in Cross-Validation
4. Discussion
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| a | Cubital vein a |
| A4 | Forewing vein angle A4 |
| ANOVA | Analysis of Variance |
| AUC | Area Under the (ROC) Curve |
| b | Cubital vein b |
| B4 | Forewing vein angle B4 |
| CI | Confidence Interval |
| CV | Cross-Validation |
| D7 | Forewing vein angle D7 |
| DCA | Drone Congregation Area(s) |
| DWM | Distance between wax mirrors on sternite 3 |
| E9 | Forewing vein angle E9 |
| F1 | F1-score |
| FAMD | Factor Analysis of Mixed Data |
| Fb | Width of forewing |
| FDR | False Discovery Rate |
| Fe | Length of hind leg femur |
| Fl | Length of forewing |
| FPR | False Positive Rate |
| G18 | Forewing vein angle G18 |
| Gi | Cubital index (a/b) |
| Gi | Cubital index ($Ci = a/b$) |
| GIS/GPS | Geographic Information System/Global Positioning System |
| H5 | Length of hair cover on tergite 5 |
| HWH | Number of hindwing hooks (Hamuli) |
| IQR | Interquartile Range |
| J10 | Forewing vein angle J10 |
| J16 | Forewing vein angle J16 |
| K19 | Forewing vein angle K19 |
| L13 | Forewing vein angle L13 |
| L3 | Length of sternite 3 |
| L6 | Length of sternite 6 |
| Lst3 | Length of sternite 3 |
| LWM | Length of wax mirror on sternite 3 |
| ML | Length of hind leg metatarsus |
| MT | Width of hind leg metatarsus |
| N23 | Forewing vein angle N23 |
| O26 | Forewing vein angle O26 |
| PCA | Principal Component Analysis |
| Pl | Proboscis length |
| QC | Quality Control |
| RF | Random Forest |
| ROC | Receiver Operating Characteristic |
| SD | Standard Deviation |
| SE | Standard Error |
| SHAP | SHapley Additive exPlanations |
| Slant LWM | Slant length of wax mirror on sternite 3 |
| SNP | Single-Nucleotide Polymorphism |
| SOP | Standard Operating Procedure |
| SVM | Support Vector Machine |
| T3 | Length of tergite 3 |
| T4 | Length of tergite 4 |
| T6 | Width of sternite 6 |
| Ti | Length of hind leg tibia |
| Tom_Dist | Distance from tomentum to posterior margin |
| Tom_W | Width of tomentum on tergite 4 |
| TPR | True Positive Rate |
| WM_Dist | Distance between wax mirrors on sternite 3 |
| WM_L | Length of wax mirror on sternite 3 |
| WM_SL | Slant length of wax mirror on sternite 3 |
| XGBoost | Extreme Gradient Boosting |
References
- Hung, K.-L.J.; Kingston, J.M.; Albrecht, M.; Holway, D.A.; Kohn, J.R. The Worldwide Importance of Honey Bees as Pollinators in Natural Habitats. Proc. Biol. Sci. 2018, 285, 20172140. [Google Scholar] [CrossRef]
- Meixner, M.D.; Pinto, M.A.; Bouga, M.; Kryger, P.; Ivanova, E.; Fuchs, S. Standard Methods for Characterising Subspecies and Ecotypes of Apis mellifera. J. Apic. Res. Bee World 2013, 52, 1–28. [Google Scholar] [CrossRef]
- Nawrocka, A.; Kandemir, İ.; Fuchs, S.; Tofilski, A. Computer Software for Identification of Honey Bee Subspecies and Evolutionary Lineages. Apidologie 2018, 49, 172–184. [Google Scholar] [CrossRef]
- Ángel Beamonte, E.; Martín Ramos, P.; Santolaria, P.; Sales, E.; Abizanda, J.; Yániz, J.L. Automatic Determination of Landmark Coordinates for Honey Bee Forewing Venation Using a New MATLAB-Based Tool. J. Apic. Res. 2018, 57, 605–610. [Google Scholar] [CrossRef]
- Amiri, E.; Abou-Shaara, H.; McAfee, A. The Effect of Major Abiotic Stressors on Honey Bee (Apis mellifera L.) Queens and Potential Impact on Their Progeny. Apidologie 2024, 56, 2. [Google Scholar] [CrossRef]
- Galindo-Cardona, A.; Carolina Monmany, A.; Moreno-Jackson, R.; Rivera-Rivera, C.; Huertas-Dones, C.; Caicedo-Quiroga, L.; Giray, T. Landscape Analysis of Drone Congregation Areas of the Honey Bee, Apis mellifera. J. Insect Sci. 2012, 12, 122. [Google Scholar] [CrossRef]
- Ayup, M.M.; Gärtner, P.; Agosto-Rivera, J.L.; Marendy, P.; de Souza, P.; Galindo-Cardona, A. Analysis of Honeybee Drone Activity during the Mating Season in Northwestern Argentina. Insects 2021, 12, 566. [Google Scholar] [CrossRef]
- Steed, E.J.; Painting, C.J.; Mortensen, A.N. Global Variation in Honey Bee (Apis mellifera) Mating Flight Times. N. Z. J. Zool. 2025, 52, 830–843. [Google Scholar] [CrossRef]
- Muñoz, I.; Henriques, D.; Johnston, J.S.; Chávez-Galarza, J.; Kryger, P.; Pinto, M.A. Reduced SNP Panels for Genetic Identification and Introgression Analysis in the Dark Honey Bee (Apis mellifera mellifera). PLoS ONE 2015, 10, e0124365. [Google Scholar] [CrossRef] [PubMed]
- Henriques, D.; Parejo, M.; Vignal, A.; Wragg, D.; Wallberg, A.; Webster, M.T.; Pinto, M.A. Developing Reduced SNP Assays from Whole-Genome Sequence Data to Estimate Introgression in an Organism with Complex Genetic Patterns, the Iberian Honeybee (Apis mellifera iberiensis). Evol. Appl. 2018, 11, 1270–1282. [Google Scholar] [CrossRef]
- Qiu, L.; Dong, J.; Li, X.; Parey, S.H.; Tan, K.; Orr, M.; Majeed, A.; Zhang, X.; Luo, S.; Zhou, X.; et al. Defining Honeybee Subspecies in an Evolutionary Context Warrants Strategized Conservation. Zool. Res. 2023, 44, 483–493. [Google Scholar] [CrossRef]
- Momeni, J.; Parejo, M.; Nielsen, R.O.; Langa, J.; Montes, I.; Papoutsis, L.; Farajzadeh, L.; Bendixen, C.; Căuia, E.; Charrière, J.-D.; et al. Authoritative Subspecies Diagnosis Tool for European Honey Bees Based on Ancestry Informative SNPs. BMC Genom. 2021, 22, 101. [Google Scholar] [CrossRef]
- Donthu, R.; Marcelino, J.A.P.; Giordano, R.; Tao, Y.; Weber, E.; Avalos, A.; Band, M.; Akraiko, T.; Chen, S.-C.; Reyes, M.P.; et al. HBeeID: A Molecular Tool That Identifies Honey Bee Subspecies from Different Geographic Populations. BMC Bioinform. 2024, 25, 278. [Google Scholar] [CrossRef] [PubMed]
- Muñoz, I.; Henriques, D.; Jara, L.; Johnston, J.S.; Chávez-Galarza, J.; De La Rúa, P.; Pinto, M.A. SNPs Selected by Information Content Outperform Randomly Selected Microsatellite Loci for Delineating Genetic Identification and Introgression in the Endangered Dark European Honeybee (Apis mellifera mellifera). Mol. Ecol. Resour. 2017, 17, 783–795. [Google Scholar] [CrossRef]
- Henriques, D.; Lopes, A.R.; Chejanovsky, N.; Dalmon, A.; Higes, M.; Jabal-Uriel, C.; Le Conte, Y.; Reyes-Carreño, M.; Soroker, V.; Martín-Hernández, R.; et al. A SNP Assay for Assessing Diversity in Immune Genes in the Honey Bee (Apis mellifera L.). Sci. Rep. 2021, 11, 15317. [Google Scholar] [CrossRef]
- Techer, M.A.; Clémencet, J.; Simiand, C.; Preeaduth, S.; Azali, H.A.; Reynaud, B.; Hélène, D. Large-Scale Mitochondrial DNA Analysis of Native Honey Bee Apis mellifera Populations Reveals a New African Subgroup Private to the South West Indian Ocean Islands. BMC Genet. 2017, 18, 53. [Google Scholar] [CrossRef]
- Utzeri, V.J.; Ribani, A.; Taurisano, V.; Banqué, C.H.i.; Fontanesi, L. Distribution of the Main Apis mellifera Mitochondrial DNA Lineages in Italy Assessed Using an Environmental DNA Approach. Insects 2021, 12, 620. [Google Scholar] [CrossRef] [PubMed]
- Oleksa, A.; Kusza, S.; Tofilski, A. Mitochondrial DNA Suggests the Introduction of Honeybees of African Ancestry to East-Central Europe. Insects 2021, 12, 410. [Google Scholar] [CrossRef] [PubMed]
- García, C.A.Y.; Rodrigues, P.J.; Tofilski, A.; Elen, D.; McCormak, G.P.; Oleksa, A.; Henriques, D.; Ilyasov, R.; Kartashev, A.; Bargain, C.; et al. Using the Software DeepWings© to Classify Honey Bees across Europe through Wing Geometric Morphometrics. Insects 2022, 13, 1132. [Google Scholar] [CrossRef]
- Oleksa, A.; Căuia, E.; Siceanu, A.; Puškadija, Z.; Kovačić, M.; Pinto, M.A.; Rodrigues, P.J.; Hatjina, F.; Charistos, L.; Bouga, M.; et al. Honey Bee (Apis mellifera) Wing Images: A Tool for Identification and Conservation. Gigascience 2023, 12, giad019. [Google Scholar] [CrossRef]
- Ruttner, F. Biogeography and Taxonomy of Honeybees; Springer: Berlin/Heidelberg, Germany, 1988; ISBN 978-3-642-72651-4. [Google Scholar]
- Miguel, I.; Baylac, M.; Iriondo, M.; Manzano, C.; Garnery, L.; Estonba, A. Both Geometric Morphometric and Microsatellite Data Consistently Support the Differentiation of the Apis mellifera M Evolutionary Branch. Apidologie 2011, 42, 150–161. [Google Scholar] [CrossRef]
- Nielsen, D.I.; Ebert, P.R.; Hunt, G.J.; Guzmán-Novoa, E.; Kinnee, S.A.; Page, R.E. Identification of Africanized Honey Bees (Hymenoptera: Apidae) Incorporating Morphometrics and an Improved Polymerase Chain Reaction Mitotyping Procedure. Ann. Entomol. Soc. Am. 1999, 92, 167–174. [Google Scholar] [CrossRef]
- Rinderer, T.E.; Buco, S.M.; Rubink, W.L.; Daly, H.V.; Stelzer, J.A.; Riggio, R.M.; Baptista, F.C. Morphometric Identification of Africanized and European Honey Bees Using Large Reference Populations. Apidologie 1993, 24, 569–585. [Google Scholar] [CrossRef]
- Henriques, D.; Chávez-Galarza, J.; S. G. Teixeira, J.; Ferreira, H.; J. Neves, C.; Francoy, T.M.; Pinto, M.A. Wing Geometric Morphometrics of Workers and Drones and Single Nucleotide Polymorphisms Provide Similar Genetic Structure in the Iberian Honey Bee (Apis mellifera iberiensis). Insects 2020, 11, 89. [Google Scholar] [CrossRef]
- Francoy, T.M.; Wittmann, D.; Drauschke, M.; Müller, S.; Steinhage, V.; Bezerra-Laure, M.A.F.; De Jong, D.; Gonçalves, L.S. Identification of Africanized Honey Bees through Wing Morphometrics: Two Fast and Efficient Procedures. Apidologie 2008, 39, 488–494. [Google Scholar] [CrossRef]
- Crewe, R.M.; Hepburn, H.R.; Moritz, R.F.A. Morphometric Analysis of 2 Southern African Races of Honeybee. Apidologie 1994, 25, 61–70. [Google Scholar] [CrossRef]
- Kuliçi, M.; Shehu, L. Estimation of 14 Morphological Traits of Honey Bees in Tropoja District and Their Correlation with Honey Production. J. Hyg. Eng. Des. 2021, 36, 179–184. [Google Scholar]
- Oldroyd, B.; Rinderer, T.; Buco, S. Heritability of Morphological Characters Used to Distinguish European and Africanized Honeybees. Theor. Appl. Genet. 1991, 82, 499–504. [Google Scholar] [CrossRef]
- Nazzi, F. Morphometric Analysis of Honey Bees from an Area of Racial Hybridization in Northeastern Italy. Apidologie 1992, 23, 89–96. [Google Scholar] [CrossRef]
- Dall’Olio, R.; Marino, A.; Lodesani, M.; Moritz, R.F.A. Genetic Characterization of Italian Honeybees, Apis mellifera ligustica, Based on Microsatellite DNA Polymorphisms. Apidologie 2007, 38, 207–217. [Google Scholar] [CrossRef][Green Version]
- Shwartz-Ziv, R.; Armon, A. Tabular Data: Deep Learning Is Not All You Need. Inf. Fusion 2022, 81, 84–90. [Google Scholar] [CrossRef]
- Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 785–794. [Google Scholar]
- Lundberg, S.; Lee, S.-I. A Unified Approach to Interpreting Model Predictions. In Proceedings of the 31st International Conference on Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017. [Google Scholar]




| Model | XGBoost | SVM | Random Forest |
|---|---|---|---|
| Accuracy | 0.982 (0.972, 0.992) | 0.946 (0.903, 0.989) | 0.962 (0.943, 0.981) |
| Precision | 0.985 (0.974, 0.996) | 0.956 (0.921, 0.991) | 0.958 (0.937, 0.978) |
| Recall | 0.994 (0.985, 1.004) | 0.982 (0.968, 0.996) | 1.000 (1.000, 1.000) |
| F1 | 0.990 (0.984, 0.995) | 0.969 (0.944, 0.993) | 0.978 (0.968, 0.989) |
| AUC | 0.997 (0.995, 0.999) | 0.957 (0.909, 1.005) | 0.996 (0.993, 0.999) |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Zhang, M.; Du, Y.; Deng, X.; He, J.; Jiang, H.; Liu, Y.; Hao, J.; Chen, P.; Xu, K.; Niu, Q. An XGBoost-Based Morphometric Classification System for Automatic Subspecies Identification of Apis mellifera. Insects 2026, 17, 27. https://doi.org/10.3390/insects17010027
Zhang M, Du Y, Deng X, He J, Jiang H, Liu Y, Hao J, Chen P, Xu K, Niu Q. An XGBoost-Based Morphometric Classification System for Automatic Subspecies Identification of Apis mellifera. Insects. 2026; 17(1):27. https://doi.org/10.3390/insects17010027
Chicago/Turabian StyleZhang, Miaoran, Yali Du, Xiaoyin Deng, Jinming He, Haibin Jiang, Yuling Liu, Jingyu Hao, Peng Chen, Kai Xu, and Qingsheng Niu. 2026. "An XGBoost-Based Morphometric Classification System for Automatic Subspecies Identification of Apis mellifera" Insects 17, no. 1: 27. https://doi.org/10.3390/insects17010027
APA StyleZhang, M., Du, Y., Deng, X., He, J., Jiang, H., Liu, Y., Hao, J., Chen, P., Xu, K., & Niu, Q. (2026). An XGBoost-Based Morphometric Classification System for Automatic Subspecies Identification of Apis mellifera. Insects, 17(1), 27. https://doi.org/10.3390/insects17010027

