Guo, Z., Xiao, H., Dai, Z. et al. (5 more authors) (2025) Identification of apple variety using machine vision and deep learning with Multi-Head Attention mechanism and GLCM. Journal of Food Measurement and Characterization. ISSN 2193-4126
Abstract
Apple variety identification plays a crucial role in pomology and agricultural sciences, as it could effectively assist growers in optimizing orchard management, enhancing product quality, and meeting consumer demand. Traditional identification methods based on visual observation are often influenced by various factors, including human subjective judgment and inter-cultivar variability. To address these challenges, with the support of the China Agriculture Research Systems for Apple Industry and Jiangsu University, we collected sample images of eleven common apple varieties in China, followed by image enhancement and dataset expansion to establish an apple sample database. Subsequently, Convolutional Neural Network (CNN), MobileNet Version 2 (MobileNetV2), and Visual Geometry Group 19 (VGG19) neural network models were utilized for apple variety classification using image-based data. Additionally, two optimization techniques, namely Multi-Head Attention and Gray-Level Co-occurrence Matrix (GLCM), were incorporated to further improve classification accuracy. Results demonstrated that the baseline CNN achieved an accuracy of 96.46%, while MobileNetV2 and VGG19 reached 97.78% and 97.25%, respectively. Multi-Head Attention improved feature extraction but sometimes reduced performance, as observed in MobileNetV2 (87.33%). In contrast, GLCM significantly improved model accuracy, with MobileNetV2 achieving the highest accuracy (98.25%) and the lowest Mean Absolute Error (MAE) (0.0571). GLCM consistently outperformed other techniques across all models, proving particularly effective for texture-rich image classification. These findings suggest that GLCM is a powerful enhancement for deep learning models, improving accuracy, precision, and recall in apple variety classification, with MobileNetV2 combined with GLCM yielding the best overall results.
Metadata
Item Type: | Article |
---|---|
Authors/Creators: |
|
Copyright, Publisher and Additional Information: | This is an author produced version of an article published in Journal of Food Measurement and Characterization, made available under the terms of the Creative Commons Attribution License (CC-BY), which permits unrestricted use, distribution and reproduction in any medium, provided the original work is properly cited. |
Keywords: | Apple variety classification, Deep learning, Optimization techniques, CNN |
Dates: |
|
Institution: | The University of Leeds |
Academic Units: | The University of Leeds > Faculty of Environment (Leeds) > School of Food Science and Nutrition (Leeds) |
Depositing User: | Symplectic Publications |
Date Deposited: | 07 Jul 2025 10:07 |
Last Modified: | 07 Jul 2025 10:07 |
Status: | Published online |
Publisher: | Springer |
Identification Number: | 10.1007/s11694-025-03385-5 |
Related URLs: | |
Open Archives Initiative ID (OAI ID): | oai:eprints.whiterose.ac.uk:228653 |
Download
Filename: Journal of Food Measurement and Characterization 2025.pdf
Licence: CC-BY 4.0