Nondestructive Detection and Quality Grading System of Walnut Using X-Ray Imaging and Lightweight WKNet
Open Access
Abstract
The internal quality detection is extremely important. To solve the challenges of walnut quality detection, we presented the first comprehensive investigation of walnut quality detection method using X-ray imaging and deep learning model. An X-ray machine vision system was designed, and a walnut kernel detection (called WKD) dataset was constructed. Then, an effective walnut kernel detection network (called WKNet) was developed by employing Transformer, GhostNet, and criss-cross attention (called CCA) module to the YOLO v5s model, aiming to solve the time consuming and parameter redundancy issues. The WKNet achieved an mAP_0.5 of 0.9869, precision of 0.9779, and recall of 0.9875 for walnut kernel detection. The inference time per image is only 11.9 ms. Extensive comparison experiments with the state-of-the-art (SOTA) deep learning models demonstrated the advanced nature of WKNet. The online test of walnut internal quality detection also shows satisfactory performance. The innovative combination of X-ray imaging and WKNet provide significant implications for walnut quality control.Keywords
Funding Information
- Central Public-interest Scientific Institution Basal Research Fund (JBYW-AII-2025-41, 6244056)
- Beijing Natural Science Foundation (JBYW-AII-2025-41, 6244056)
This publication has 40 references indexed in Scilit:
- Real-time cucurbit fruit detection in greenhouse using improved YOLO series algorithmPrecision Agriculture, 2023
- Visual recognition and location algorithm based on optimized YOLOv3 detector and RGB depth cameraThe Visual Computer, 2023
- Advances in Machine Learning and Hyperspectral Imaging in the Food Supply ChainFood Engineering Reviews, 2022
- YOLOX-Dense-CT: a detection algorithm for cherry tomatoes based on YOLOX and DenseNetJournal of Food Measurement and Characterization, 2022
- Pigeon cleaning behavior detection algorithm based on light-weight networkComputers and Electronics in Agriculture, 2022
- Classification of pepper seed quality based on internal structure using X-ray CT imagingComputers and Electronics in Agriculture, 2020
- Impurity detection of juglans using deep learning and machine visionComputers and Electronics in Agriculture, 2020
- Non-destructive quality control detection of endogenous contaminations in walnuts using terahertz spectroscopic imagingJournal of Food Measurement and Characterization, 2020
- X‐ray computed tomography for quality inspection of agricultural products: A reviewFood Science & Nutrition, 2019
- Inline discrete tomography system: Application to agricultural product inspectionComputers and Electronics in Agriculture, 2017