NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fruit Classification System with Deep Learning and Neural Architecture Search

Christine Dewi, Dhananjay R. Thiruvady, Nayyar ZaidiarXiv 2024 · DOI

Abstract

This paper presents a high-precision fruit identification system utilizing Neural Architecture Search (NAS) and the YOLO-NAS model. By automating neural network design, the proposed system achieves a 99.98% mean Average Precision (mAP) across 15 fruit categories, significantly outperforming traditional hand-crafted architectures and establishing a new benchmark for industrial fruit classification.

Introduction

Identifying and categorizing fruit is a critical yet labor-intensive task in industrial agriculture, food quality control, and retail. Traditional deep learning models often rely on "hand-crafted" architectures designed by human engineers, which frequently struggle to balance high accuracy with the computational efficiency required for deployment on edge devices like smart scales or robotic harvesters. This study addresses these challenges by leveraging automated architecture design to find the most efficient and accurate model possible for a diverse 15-class fruit dataset.

Methodology

The core innovation of this research is the application of Neural Architecture Search (NAS) via the YOLO-NAS framework. Unlike manual design, NAS uses an automated pipeline to explore a vast search space of potential architectures, evaluating candidates based on an objective function that balances mAP and latency.

The Neural Architecture Search (NAS) workflow used to identify optimal model structures.

The YOLO-NAS model incorporates advanced techniques such as Quantization-Aware Blocks, which allow for INT8 precision conversion without significant accuracy loss, and Knowledge Distillation to refine detection capabilities. This architectural approach ensures the model is production-ready for low-power hardware.

YOLO-NAS architecture overview and fruit detection output for mango and strawberry classes.

Dataset and Experimental Setup

The study utilized a dataset of 2,909 photographs across 15 distinct categories, including Avocado, Banana, Cherry, Mango, and Strawberry. The data was split into training (70%), validation (20%), and testing (10%) sets. Images included a mix of aspect ratios and sizes (213px to 249px) to ensure the model could generalize across different camera angles and fruit shapes.

Key Results

The quantitative results demonstrate a clear hierarchy of performance:

  • Top Performer: YOLO-NAS_l achieved the highest accuracy with 99.98% mAP, representing a 7% increase over previous state-of-the-art benchmarks (93.78%).
  • Internal Benchmarks: While YOLOv8m performed well at 99% mAP, it was still surpassed by the NAS-optimized model. Older iterations like YOLOv5n and YOLOv7 struggled significantly, achieving only 67.4% and 56% mAP, respectively.
  • Reliability: YOLO-NAS_l exhibited the lowest loss value (1.736) and a high recall of 0.987, indicating extreme reliability in identifying fruit without omissions.

Discussion and Future Work

The findings suggest that automation in architecture design can uncover efficiencies that human designers might overlook. The model's ability to maintain precision under quantization makes it a superior choice for real-time applications.

However, challenges remain regarding environmental complexity, such as identifying significantly occluded or damaged fruits. Future research will focus on expanding the variety of fruit sub-species and integrating Explainable AI (XAI) to provide transparency in automated quality assessment systems.

Summary updated

BibTeX
@misc{dewi2024fruit,
  author = {Christine Dewi and Dhananjay R. Thiruvady and Nayyar Zaidi},
  title = {{Fruit Classification System with Deep Learning and Neural Architecture Search}},
  year = {2024},
  eprint = {2406.01869},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.01869},
}
Figure