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

• 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.

Authors

Institutions

Publication Details

Journal
Smart Agricultural Technology
Published
2025-04-08
DOI
https://doi.org/10.1016/j.atech.2025.100943
Citations
5
Primary Topic
Spectroscopy and Chemometric Analyses
Type
article
Field-Weighted Citation Impact
3.76
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Yung-Ming Kuo, Chinsu Lin, Yu-Chien Chen, Tsai-Yi Cheng et al.
5 citations
Smart Agricultural Technology
Spectroscopy and Chemometric Analyses
3.76
article

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

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

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.

Smart Agricultural TechnologyVol. 11
National Taiwan Normal University (TW), National Chiayi University (TW), National Formosa University (TW), National Yunlin University of Science and Technology (TW)
Zero hunger
Openalex Percentile: Top 7%
Spectroscopy and Chemometric Analyses
3.76
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.