Litcius/Paper detail

Automated peanut defect detection using hyperspectral imaging and deep learning: A real-time approach for smart agriculture

Shih-Yu Chen, Yucheng Wu, Yung-Ming Kuo, Ruihong Zhang, Tsai-Yi Cheng, Yu-Chien Chen, Po-Yu Chu, Li‐Wei Kang, Chinsu Lin

2025Smart Agricultural Technology10 citationsDOIOpen Access PDF

Abstract

• This study addresses the limitations of manual peanut quality inspection, which is labor-intensive, error-prone, and inconsistent. • Two hyperspectral imaging methods were employed: a push-broom system for high-precision data collection and a Snapshot system for real-time defect detection. • A dataset of 1557 peanut samples was analyzed, with Principal Component Analysis (PCA) identifying five key spectral bands for dimensionality reduction. • A 3D-CNN model achieved a classification accuracy of 98 %, while a Snapshot-based lightweight CNN reached 98.5 % accuracy at 30 FPS in real-time classification. • The proposed method enables automated, efficient, and accurate defect detection, reducing labor costs and enhancing smart agriculture applications. Manual visual inspection remains the prevailing approach for peanut quality classification; however, it is labor-intensive, prone to fatigue-induced errors, and often results in inconsistent outcomes. Peanut defects are typically categorized into four classes: healthy, underdeveloped, insect-damaged, and ruptured. This paper proposes an automated classification framework that integrates push-broom and snapshot hyperspectral imaging techniques with deep learning models for accurate and efficient peanut defect detection. A push-broom hyperspectral imaging system was employed to acquire a dataset of 1557 peanut samples, divided into a training set (477 samples: 237 healthy, 240 defective) and a test set (1080 samples). Spectral band selection was applied to reduce data dimensionality, followed by the development and evaluation of 1D, 2D, and 3D Convolutional Neural Network (CNN) models. Among them, the 3D-CNN architecture achieved the highest classification accuracy of 98 %. In addition, the snapshot imaging system enabled the construction of a lightweight CNN model for real-time defect detection. Principal Component Analysis (PCA) was utilized to identify five informative spectral bands, enabling efficient classification with an overall accuracy of 98.5 % and a Kappa coefficient of 97.3 %. The novelty of this study lies in the dual integration of push-broom and snapshot hyperspectral imaging with hybrid CNN architectures, enabling both high-accuracy offline analysis and lightweight real-time detection. The combination of spectral dimensionality reduction and attention-based modeling presents a scalable and computationally efficient solution for quality assessment. These findings represent a significant advancement in automated peanut grading, offering a robust, cost-effective, and scalable approach for deployment in smart agriculture and automated food quality control systems.

Topics & Concepts

Hyperspectral imagingArtificial intelligencePrecision agricultureComputer scienceAgricultureRemote sensingEnvironmental scienceGeographyBiologyEcologySpectroscopy and Chemometric AnalysesSmart Agriculture and AIAdvanced Chemical Sensor Technologies
Automated peanut defect detection using hyperspectral imaging and deep learning: A real-time approach for smart agriculture | Litcius