ORIGINAL RESEARCH article

Front. Plant Sci.

Sec. Sustainable and Intelligent Phytoprotection

Volume 16 - 2025 | doi: 10.3389/fpls.2025.1521508

Sustainable Deep Vision Systems for Date Fruit Quality Assessment Using Attention-Enhanced Deep Learning Models

Provisionally accepted
Esraa  HassanEsraa Hassan1*Sarah  Abu GhazalahSarah Abu Ghazalah2*Nora  El-RashidyNora El-Rashidy1Tarek  Abd El-HafeezTarek Abd El-Hafeez3*Mahmoud  Y. ShamsMahmoud Y. Shams1
  • 1Faculty of Artificial Intelligence, Kafrelsheikh University, Kafr el-Sheikh, Egypt
  • 2College of Computer Science, King Khalid University, 263, Abha 61471, Saudi Arabia, Abha, Saudi Arabia
  • 3Department of Computer Science, Faculty of Science, Minia University, Minia, minia, Egypt

The final, formatted version of the article will be published soon.

Accurate and automated fruit classification plays a vital role in modern agriculture but remains challenging due to the wide variability in fruit appearances. In this study, we propose a novel approach to image classification by integrating a DenseNet121 model pre-trained on ImageNet with a Squeeze-and-Excitation (SE) Attention block to enhance feature representation. The model leverages data augmentation to improve generalization and avoid overfitting. The enhancement includes attention mechanisms and Nadam optimization, specifically tailored for the classification of date fruit images. Unlike traditional DenseNet variants, proposed model incorporates SE attention layers to focus on critical image features, significantly improving performance. Multiple deep learning models, including DenseNet121+SE and YOLOv8n, were evaluated for date fruit classification under varying conditions. The proposed approach demonstrated outstanding performance, achieving 98.25% accuracy, 98.02% precision, 97.02% recall, and a 97.49% F1-score with Dense-Net121+SE. In comparison, YOLOv8n achieved 96.04% accuracy, 99.76% precision, 99.7% recall, and a 99.73% F1-score. These results underscore the effectiveness of the proposed method compared to widely used architecture, providing a robust and practical solution for automating fruit classification and quality control in the food industry.

Keywords: Fruit classification, DenseNet121, Squeeze-and-excitation, YOLOv8n, augmentation, segmentation

Received: 04 Nov 2024; Accepted: 09 Jun 2025.

Copyright: © 2025 Hassan, Abu Ghazalah, El-Rashidy, Abd El-Hafeez and Shams. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence:
Esraa Hassan, Faculty of Artificial Intelligence, Kafrelsheikh University, Kafr el-Sheikh, Egypt
Sarah Abu Ghazalah, College of Computer Science, King Khalid University, 263, Abha 61471, Saudi Arabia, Abha, Saudi Arabia
Tarek Abd El-Hafeez, Department of Computer Science, Faculty of Science, Minia University, Minia, minia, Egypt

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.