Background: Carrots, rich in essential nutrients, play a crucial role in supporting human health. Current deep learning networks for carrot quality inspection are constrained by redundant parameters and high computational costs. To address these issues, this paper introduces a lightweight network, PRS2Net, based on ResNet18 selected after comparing four networks (GoogLeNet, MobileNet-v2, ResNet18, ResNet50). ResNet18 was pruned using first-order Taylor expansion to reduce redundancy and enhanced with an attention mechanism to focus on critical features.
Results: PRS2Net achieved high efficiency with learnable parameters reduced from 11 173 764 to 444 152, while maintaining 97.25% accuracy on the validation set. Training time was cut by about 53.15% compared to ResNet18, significantly speeding up carrot quality inspection.
期刊介绍:
The Journal of the Science of Food and Agriculture publishes peer-reviewed original research, reviews, mini-reviews, perspectives and spotlights in these areas, with particular emphasis on interdisciplinary studies at the agriculture/ food interface.
Published for SCI by John Wiley & Sons Ltd.
SCI (Society of Chemical Industry) is a unique international forum where science meets business on independent, impartial ground. Anyone can join and current Members include consumers, business people, environmentalists, industrialists, farmers, and researchers. The Society offers a chance to share information between sectors as diverse as food and agriculture, pharmaceuticals, biotechnology, materials, chemicals, environmental science and safety. As well as organising educational events, SCI awards a number of prestigious honours and scholarships each year, publishes peer-reviewed journals, and provides Members with news from their sectors in the respected magazine, Chemistry & Industry .
Originally established in London in 1881 and in New York in 1894, SCI is a registered charity with Members in over 70 countries.