ASPG Menu
search

American Scientific Publishing Group

verified Journal

Journal of Artificial Intelligence and Metaheuristics

ISSN
Online: 2833-5597
Frequency

Continuous publication

Publication Model

Open access journal. All articles are freely available online with no APC.

Journal of Artificial Intelligence and Metaheuristics
Full Length Article

Volume 9Issue 1PP: 53-71 • 2025

Comparative Analysis of Machine Learning Models and Greylag Goose Optimization for High-Accuracy Apple Quality Grading

Marwa M. Eid 1* ,
Anis Ben Ghorbal 2
1Faculty of Artificial Intelligence, Delta University for Science and Technology, Mansoura 11152, Egypt
2Department of Mathematics and Statistics, Faculty of Science, Imam Mohammad Ibn Saud Islamic University (IMSIU), Riyadh 11432, Saudi Arabia
* Corresponding Author.
verified

Open Access & Copyright

© 2025 The Author(s). Published by ASPG. This article is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).

Received: October 30, 2024 Revised: December 11, 2024 Accepted: January 14, 2025

Abstract

A significant barrier to sustaining and achieving successful quality evaluation of apples has been the biases and inefficiencies of manual inspection, which cannot be effectively applied to large-scale industrial processing. This paper fills this gap by building an automated machine learning system for apple quality classification, which combines physical (size, weight, firmness) and sensory (sweetness, acidity, juiciness) features. Four baseline models, including K-Nearest Neighbors (KNN), Naive Bayes, Decision Tree, and Gradient Boosting, were trained on a preprocessed dataset. Imputation, categorical encoding, and feature scaling were used. To enhance predictive accuracy, hyperparameter tuning of three metaheuristic optimization algorithms — Genetic Algorithm (GA), Particle Swarm Optimization (PSO), and Greylag Goose Optimization (GGO) — was employed. The findings indicated that KNN had the highest baseline accuracy of 93.6% and that its accuracy improved to 98.6% with GGO optimization, which was better than that of GA and PSO. These results indicate that GGO-optimized KNN can provide a high-quality and scalable approach to assessing the quality of apples in the industry, offering enhanced accuracy, reduced variability, and a high degree of practical applicability in supply chain decision making, thereby increasing customer satisfaction and decreasing losses after harvesting.

Keywords

Apple Quality Assessment Machine Learning Greylag Goose Optimization (GGO) Food Quality Prediction Smart Agriculture

References

[1] Li, X., Gao, W., Wang, L., Chen, Y., Cai, Z., Wu, D., Chen, N., Jiang, Q., Zheng, Z., Zhu, J., Wang, Z.: Co fermentation of lactobacillus plantarum and lactobacillus casei improves in vitro antioxidant capacity and quality of apple juice. Fermentation 11(4) (2025) https://doi.org/10.3390/fermentation11040161

[2] Akter, T., Faqeerzada, M.A., Kim, Y., Pahlawan, M.F.R., Aline, U., Kim, H., Kim, H., Cho, B.-K.: Hyperspectral imaging with multivariate analysis for detection of exterior flaws for quality evaluation of apples and pears. Postharvest Biology and Technology 223, 113453 (2025) https://doi.org/10.1016/j.postharvbio.2025.113453

[3] Okba, S.K., Abo Ogiela, H.M., Mehesen, A., Mikhael, G.B., Alam-Eldein, S.M., Tubeileh, A.M.S.: Influence of compost and biological fertilization with reducing the rates of mineral fertilizers on vegetative growth, nutritional status, yield and fruit quality of ‘anna’ apples. Agronomy 15(3) (2025) https://doi.org/10.3390/agronomy15030662

[4] Iyoubi, E.M., Boq, R.E., Tetouani, S., Cherkaoui, O., Soulhi, A.: Advanced apple conformity detection through fuzzy logic: A novel approach to post-harvest quality control. Engineering Proceedings 97(1) (2025) https://doi.org/10. 3390/engproc2025097051

[5] Nisenbaum, M., Agustinelli, S.P., Guzman, M.N., Murialdo, S.E.: Biospeckle laser for real-time monitoring of water and food samples: Enhancing contamination detection and quality control in field applications. Instrumentation Science & Technology, 1–35 (2025) https://doi.org/10.1080/10739149.2025.2506110

[6] Liu, X., Le Bourvellec, C., Yu, J., Zhao, L., Wang, K., Tao, Y., Renard, C.M.G.C., Hu, Z.: Trends and challenges on fruit and vegetable processing: Insights into sustainable, traceable, precise, healthy, intelligent, personalized and local innovative food products. Trends in Food Science & Technology 125, 12–25 (2022) https://doi.org/10.1016/j. tifs.2022.04.016

[7] Wang, X., Feng, Y., Wang, Y., Zhu, H., Song, D., Shen, C., Luo, Y.: Enhancing optical non-destructive methods for food quality and safety assessments with machine learning techniques: A survey. Journal of Agriculture and Food Research 19, 101734 (2025) https://doi.org/10.1016/j.jafr.2025.101734

[8] He, Z., Cao, L., Zhao, L., Zhou, Y., Gong, J., Zhu, C., Tan, C.: Effects of the mixed fermentation of apples and yeast on the sensory evaluation, physicochemical composition and flavor of coffee beans. Food Bioscience 68, 106337 (2025) https://doi.org/10.1016/j.fbio.2025.106337

[9] Rojas Santelices, I., Cano, S., Moreira, F., Pena Fritz, A.: Artificial vision systems for fruit inspection and classification: Systematic literature review. Sensors 25(5) (2025) https://doi.org/10.3390/s25051524

[10] Jia, X., Schneider, F., Ning, M., Ding, J.: Aesthetic grading causes food losses without financially benefiting farmers: Micro-level evidence from china’s fresh apple supply chain. Waste Management & Research 43(6), 957 968 (2025) https://doi.org/10.1177/0734242X241280097

[11] Rosati, R., Romeo, L., Cecchini, G., Tonetto, F., Viti, P., Mancini, A., Frontoni, E.: From knowledge-based to big data analytic model: A novel iot and machine learning based decision support system for predictive maintenance in industry 4.0. Journal of Intelligent Manufacturing 34(1), 107–121 (2023) https://doi.org/10.1007/s10845-022-01960-x

[12] Chhetri, K.B.: Applications of artificial intelligence and machine learning in food quality control and safety assessment. Food Engineering Reviews 16(1), 1–21 (2024) https://doi.org/10.1007/s12393-023-09363-1

[13] Taner, A., Mengstu, M.T., Selvi, K.C., Duran, H., Gur, ˙I., Ungureanu, N.: Apple varieties classification using deep features and machine learning. Agriculture 14(2), 2 (2024) https://doi.org/10.3390/agriculture14020252

[14] Albahra, S., Gorbett, T., Robertson, S., D’Aleo, G., Kumar, S.V.S., Ockunzzi, S., Lallo, D., Hu, B., Rashidi, H.H.: Artificial intelligence and machine learning overview in pathology & laboratory medicine: A general review of data preprocessing and basic supervised concepts. Seminars in Diagnostic Pathology 40(2), 71–87 (2023) https: //doi.org/10.1053/j.semdp.2023.02.002

[15] Ghazal, S., Qureshi, W.S., Khan, U.S., Iqbal, J., Rashid, N., Tiwana, M.I.: Analysis of visual features and classifiers for fruit classification problem. Computers and Electronics in Agriculture 187, 106267 (2021) https://doi.org/10. 1016/j.compag.2021.106267

[16] Ahmad, T., Madonski, R., Zhang, D., Huang, C., Mujeeb, A.: Data-driven probabilistic machine learning in sustainable smart energy/smart energy systems: Key developments, challenges, and future research opportunities in the context of smart grid paradigm. Renewable and Sustainable Energy Reviews 160, 112128 (2022) https://doi.org/10.1016/ j.rser.2022.112128

[17] Lara-Montano, O.D., Gomez-Castro, F.I., Gutierrez-Antonio, C., Dragoi, E.N.: Success-based optimization algorithm (sboa): Development and enhancement of a metaheuristic optimizer. Computers & Chemical Engineering 194, 108987 (2025) https://doi.org/10.1016/j.compchemeng.2024.108987

[18] Sharma, P., Raju, S.: Metaheuristic optimization algorithms: a comprehensive overview and classification of benchmark test functions. Soft Computing-A Fusion of Foundations, Methodologies & Applications 28(4) (2024) https://doi. org/10.1007/s00500-023-09276-5

[19] Elshewey, A.M., Abed, A.H., Khafaga, D.S., Alhussan, A.A., Eid, M.M., El-kenawy, E.-S.M.: Enhancing heart disease classification based on greylag goose optimization algorithm and long short-term memory. Scientific Reports 15(1), 1277 (2025) https://doi.org/10.1038/s41598-024-83592-0

[20] Kılıcarslan, S., Donmez, E., Kılıcarslan, S.: Identification of apple varieties using hybrid transfer learning and multi-level feature extraction. European Food Research and Technology 250(3), 895–909 (2024) https://doi.org/10.1007/ s00217-023-04436-1

[21] Bhargava, A., Bansal, A.: Classification and grading of multiple varieties of apple fruit. Food Analytical Methods 14(7), 1359–1368 (2021) https://doi.org/10.1007/s12161-021-01970-0

[22] Biffi, L.J., Mitishita, E., Liesenberg, V., Santos, A.A., Goncalves, D.N., Estrabis, N.V., Silva, J.d.A., Osco, L.P., Ramos, A.P.M., Centeno, J.A.S., Schimalski, M.B., Rufato, L., Neto, S.L.R., Marcato Junior, J., Goncalves, W.N.: Atss deep learning-based approach to detect apple fruits. Remote Sensing 13(1), 1 (2021) https://doi.org/10.3390/ rs13010054

[23] Cetin, N., Karaman, K., Kavuncuo˘glu, E., Yıldırım, B., Jahanbakhshi, A.: Using hyperspectral imaging technology and machine learning algorithms for assessing internal quality parameters of apple fruits. Chemometrics and Intelligent Laboratory Systems 230, 104650 (2022) https://doi.org/10.1016/j.chemolab.2022.104650

[24] Chao, X., Sun, G., Zhao, H., Li, M., He, D.: Identification of apple tree leaf diseases based on deep learning models. Symmetry 12(7), 7 (2020) https://doi.org/10.3390/sym12071065

[25] Chen, J., Han, J., Liu, C., Wang, Y., Shen, H., Li, L.: A deep-learning method for the classification of apple varieties via leaf images from different growth periods in natural environment. Symmetry 14(8), 8 (2022) https://doi.org/10. 3390/sym14081671

[26] Chu, P., Li, Z., Lammers, K., Lu, R., Liu, X.: Deep learning-based apple detection using a suppression mask r-cnn. Pattern Recognition Letters 147, 206–211 (2021) https://doi.org/10.1016/j.patrec.2021.04.022

[27] Gao, F., Fang, W., Sun, X., Wu, Z., Zhao, G., Li, G., Li, R., Fu, L., Zhang, Q.: A novel apple fruit detection and counting methodology based on deep learning and trunk tracking in modern orchard. Computers and Electronics in Agriculture 197, 107000 (2022) https://doi.org/10.1016/j.compag.2022.107000

[28] Khan, A.I., Quadri, S.M.K., Banday, S., Latief Shah, J.: Deep diagnosis: A real-time apple leaf disease detection system based on deep learning. Computers and Electronics in Agriculture 198, 107093 (2022) https://doi.org/10.1016/ j.compag.2022.107093

[29] Li, Y., Feng, X., Liu, Y., Han, X.: Apple quality identification and classification by image processing based on convolutional neural networks. Scientific Reports 11(1), 16618 (2021) https://doi.org/10.1038/s41598-021 96103-2

[30] Majeed, Y., Zhang, J., Zhang, X., Fu, L., Karkee, M., Zhang, Q., Whiting, M.D.: Deep learning based segmentation for automated training of apple trees on trellis wires. Computers and Electronics in Agriculture 170, 105277 (2020) https://doi.org/10.1016/j.compag.2020.105277

[31] Mirbod, O., Choi, D., Heinemann, P.H., Marini, R.P., He, L.: On-tree apple fruit size estimation using stereo vision with deep learning-based occlusion handling. Biosystems Engineering 226, 27–42 (2023) https://doi.org/10.1016/j. biosystemseng.2022.12.008

[32] Tian, K., Zhu, W., Wang, M., Chen, T., Li, F., Xie, J., Peng, Y., Sun, T., Zhou, G., Hu, D.: Qualitative and quantitative assessment of apple quality using bulk optical properties in combination with machine learning and chemometrics techniques. LWT 211, 116894 (2024) https://doi.org/10.1016/j.lwt.2024.116894

[33] Villacres, J., Viscaino, M., Delpiano, J., Vougioukas, S., Auat Cheein, F.: Apple orchard production estimation using deep learning strategies: A comparison of tracking-by-detection algorithms. Computers and Electronics in Agriculture 204, 107513 (2023) https://doi.org/10.1016/j.compag.2022.107513

[34] Wang, X.A., Tang, J., Whitty, M.: Deepphenology: Estimation of apple flower phenology distributions based on deep learning. Computers and Electronics in Agriculture 185, 106123 (2021) https://doi.org/10.1016/j.compag. 2021.106123

[35] Wu, J., Yang, G., Yang, H., Zhu, Y., Li, Z., Lei, L., Zhao, C.: Extracting apple tree crown information from remote imagery using deep learning. Computers and Electronics in Agriculture 174, 105504 (2020) https://doi.org/10. 1016/j.compag.2020.105504

[36] Xuan, G., Gao, C., Shao, Y., Zhang, M., Wang, Y., Zhong, J., Li, Q., Peng, H.: Apple detection in natural environment using deep learning algorithms. IEEE Access 8, 216772–216780 (2020) https://doi.org/10.1109/ACCESS.2020. 3040423

[37] Yu, F., Lu, T., Xue, C.: Deep learning-based intelligent apple variety classification system and model interpretability analysis. Foods 12(4), 4 (2023) https://doi.org/10.3390/foods12040885

[38] Zhan, C., Mao, H., Fan, R., He, T., Qing, R., Zhang, W., Lin, Y., Li, K., Wang, L., Xia, T., Wu, Y., Kang, Z.: Detection of apple sucrose concentration based on fluorescence hyperspectral image system and machine learning. Foods 13(22), 22 (2024) https://doi.org/10.3390/foods13223547

[39] Zou, Z., Long, T., Wang, Q., Wang, L., Chen, J., Zou, B., Xu, L.: Implementation of apple’s automatic sorting system based on machine learning. Food Science and Technology 42, 24922 (2022) https://doi.org/10.1590/fst.24922

[40] Zhang, X., He, L., Zhang, J., Whiting, M.D., Karkee, M., Zhang, Q.: Determination of key canopy parameters for mass mechanical apple harvesting using supervised machine learning and principal component analysis (pca). Biosystems Engineering 193, 247–263 (2020) https://doi.org/10.1016/j.biosystemseng.2020.03.006

Cite This Article

Choose your preferred format

format_quote
Eid, Marwa M., Ghorbal, Anis Ben. "Comparative Analysis of Machine Learning Models and Greylag Goose Optimization for High-Accuracy Apple Quality Grading." Journal of Artificial Intelligence and Metaheuristics, vol. Volume 9, no. Issue 1, 2025, pp. 53-71. DOI: https://doi.org/10.54216/JAIM.090106
Eid, M., Ghorbal, A. (2025). Comparative Analysis of Machine Learning Models and Greylag Goose Optimization for High-Accuracy Apple Quality Grading. Journal of Artificial Intelligence and Metaheuristics, Volume 9(Issue 1), 53-71. DOI: https://doi.org/10.54216/JAIM.090106
Eid, Marwa M., Ghorbal, Anis Ben. "Comparative Analysis of Machine Learning Models and Greylag Goose Optimization for High-Accuracy Apple Quality Grading." Journal of Artificial Intelligence and Metaheuristics Volume 9, no. Issue 1 (2025): 53-71. DOI: https://doi.org/10.54216/JAIM.090106
Eid, M., Ghorbal, A. (2025) 'Comparative Analysis of Machine Learning Models and Greylag Goose Optimization for High-Accuracy Apple Quality Grading', Journal of Artificial Intelligence and Metaheuristics, Volume 9(Issue 1), pp. 53-71. DOI: https://doi.org/10.54216/JAIM.090106
Eid M, Ghorbal A. Comparative Analysis of Machine Learning Models and Greylag Goose Optimization for High-Accuracy Apple Quality Grading. Journal of Artificial Intelligence and Metaheuristics. 2025;Volume 9(Issue 1):53-71. DOI: https://doi.org/10.54216/JAIM.090106
M. Eid, A. Ghorbal, "Comparative Analysis of Machine Learning Models and Greylag Goose Optimization for High-Accuracy Apple Quality Grading," Journal of Artificial Intelligence and Metaheuristics, vol. Volume 9, no. Issue 1, pp. 53-71, 2025. DOI: https://doi.org/10.54216/JAIM.090106
policy

Publisher's Note

The statements, opinions, and data presented in this article are solely those of the author(s) and do not necessarily represent those of ASPG, the journal, or its editors. ASPG and the editors disclaim responsibility for any harm arising from the use of any ideas, methods, instructions, or products described in this article, to the fullest extent permitted by applicable law.

Digital Archive Ready