Deep Convolutional Learning for Automated Multi-Class Quality Grading and Defect Recognition of Fruits and Crop Leaves

Grading harvested produce by eye is slow, depends heavily on the inspector, and yields inconsistent results from one batch to the next, which contributes to post-harvest loss and unfair pricing. This paper presents an automated grading framework based on a convolutional neural network (CNN) that goes beyond identifying which crop is in an image and instead judges its condition. Images of fruits and leaves are assigned to one of five quality grades—healthy, ripe, unripe, pest-damaged, and rotten—so that maturity stage and common defects are recognized within a single model. The pipeline combines image normalization and enhancement, extensive data augmentation, hierarchical feature learning, and a softmax classifier trained with cross-entropy loss and the Adam optimizer. On a held-out test set the model reaches 94.9% accuracy and a macro-averaged F1-score of 94.8%, surpassing a support vector machine trained on hand-crafted features by 8.4 percentage points while needing only about 21 ms per image. These results indicate that the approach is accurate and fast enough to support real-time sorting and supply-chain decisions in precision agriculture.

Authors

Publication Details

Journal
Preprints.org
Published
2026-11-03
DOI
https://doi.org/10.20944/preprints202611.0149.v1
Primary Topic
Smart Agriculture and AI
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Deep Convolutional Learning for Automated Multi-Class Quality Grading and Defect Recognition of Fruits and Crop Leaves

Vinit Kundu
Preprints.org
Smart Agriculture and AI
preprint

Deep Convolutional Learning for Automated Multi-Class Quality Grading and Defect Recognition of Fruits and Crop Leaves

Vinit Kundu
preprint en

Abstract

Grading harvested produce by eye is slow, depends heavily on the inspector, and yields inconsistent results from one batch to the next, which contributes to post-harvest loss and unfair pricing. This paper presents an automated grading framework based on a convolutional neural network (CNN) that goes beyond identifying which crop is in an image and instead judges its condition. Images of fruits and leaves are assigned to one of five quality grades—healthy, ripe, unripe, pest-damaged, and rotten—so that maturity stage and common defects are recognized within a single model. The pipeline combines image normalization and enhancement, extensive data augmentation, hierarchical feature learning, and a softmax classifier trained with cross-entropy loss and the Adam optimizer. On a held-out test set the model reaches 94.9% accuracy and a macro-averaged F1-score of 94.8%, surpassing a support vector machine trained on hand-crafted features by 8.4 percentage points while needing only about 21 ms per image. These results indicate that the approach is accurate and fast enough to support real-time sorting and supply-chain decisions in precision agriculture.

Preprints.org
Smart Agriculture and AI
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon