AI Chat Paper
Note: Please note that the following content is generated by AMiner AI. SciOpen does not take any responsibility related to this content.
{{lang === 'zh_CN' ? '文章概述' : 'Summary'}}
{{lang === 'en_US' ? '中' : 'Eng'}}
Chat more with AI
PDF (17 MB)
Collect
Submit Manuscript AI Chat Paper
Show Outline
Outline
Show full outline
Hide outline
Outline
Show full outline
Hide outline
Open Access

Research and experiment on walnut kernel grading based on improved YOLOv7

Yingjie YU, Kunshu WU, Pengxin RAN, Jianian LI( )
Faculty of Modern Agricultural Engineering, Kunming University of Science and Technology, Kunming 650500, China
Show Author Information

Abstract

In China, walnut kernel grading predominantly relies on mechanical and manual methods, which suffer from high economic costs, low efficiency, and poor accuracy, severely limiting the standardization and economic value of walnut kernel products. To achieve automated and intelligent walnut kernel grading, this study proposes a deep learning-based intelligent grading method. An image acquisition device was utilized to capture walnut kernel images across six grades under three distinct background colors: pure white, light green, and conveyor belt. The Python OpenCV library was employed for data augmentation to expand the dataset, resulting in a VOC format dataset of 12246 images, with training, testing, and validation sets allocated in an 8: 1: 1 ratio. To select the most suitable model for walnut kernel grading, two models were constructed based on the YOLOv5 and YOLOv7 object detection networks, respectively. Both models were trained using pre-trained weights, achieving average grading accuracies of 87.83% and 91.16% for YOLOv5 and YOLOv7, respectively. During validation, YOLOv7 exhibited mispredictions, prompting the integration of two attention mechanisms, ECANet and CBAM, to refine the model. The improved models demonstrated enhanced performance, with the YOLOv7+CBAM model achieving the highest average accuracy (94.5%) and F1-score (90.2%). Compared to the original YOLOv7, the upgraded model increased average accuracy and F1-score by 3.34% and 5.9%, respectively, while adding only 2ms to inference time. To validate practical feasibility, a recognition system platform was developed for walnut kernel classification testing. Four experimental groups were designed, each containing 120 walnut kernels (20 per grade). The YOLOv7+CBAM model achieved an average recognition accuracy of 91.63%, demonstrating robust grading capabilities for walnut kernel appearance quality. This study provides a reference for intelligent walnut kernel grading systems.

CLC number: S126 Document code: A Article ID: 2096-7217(2025)04-0017-07

References

【1】
【1】
 
 
Journal of Intelligent Agricultural Mechanization
Pages 17-23

{{item.num}}

Comments on this article

Go to comment

< Back to all reports

Review Status: {{reviewData.commendedNum}} Commended , {{reviewData.revisionRequiredNum}} Revision Required , {{reviewData.notCommendedNum}} Not Commended Under Peer Review

Review Comment

Close
Close
Cite this article:
YU Y, WU K, RAN P, et al. Research and experiment on walnut kernel grading based on improved YOLOv7. Journal of Intelligent Agricultural Mechanization, 2025, 6(4): 17-23. https://doi.org/10.12398/j.issn.2096-7217.2025.04.002

1

Views

0

Downloads

0

Crossref

Received: 12 December 2024
Revised: 16 January 2025
Published: 15 November 2025
© Journal of Intelligent Agricultural Mechanization (2025)

This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/)