IDEAS home Printed from https://ideas.repec.org/a/gam/jagris/v13y2023i7p1352-d1186937.html
   My bibliography  Save this article

Method of Peanut Pod Quality Detection Based on Improved ResNet

Author

Listed:
  • Lili Yang

    (College of Mechanical and Electrical Engineering, Qingdao Agricultural University, Qingdao 266109, China)

  • Changlong Wang

    (College of Mechanical and Electrical Engineering, Qingdao Agricultural University, Qingdao 266109, China)

  • Jianfeng Yu

    (Shanghai Advanced Research Institute, Chinese Academy of Sciences, Shanghai 201204, China)

  • Nan Xu

    (College of Mechanical and Electronic Engineering, Shandong Agricultural University, Taian 271000, China)

  • Dongwei Wang

    (College of Mechanical and Electrical Engineering, Qingdao Agricultural University, Qingdao 266109, China)

Abstract

Peanuts are prone to insect damage, breakage, germination, mildew, and other defects, which makes the quality of peanuts uneven. The difference in peanut pod quality makes the price and economic benefit also have a big difference. The classification of peanut pods according to quality is an important part of improving the product grade and market competitiveness. Real-time, accurate, and non-destructive quality detection of peanut pods can effectively improve the utilization and commercial value of peanuts. The strong subjectivity of manual detection and the low efficiency and low accuracy of mechanical detection have caused considerable wastage. Therefore, the present study proposed a new convolutional neural network for the peanut pod quality detection algorithm (PQDA) based on an improved ResNet. Compared to previous models, this model is more practical with high accuracy, lightweight, and easy nesting. Firstly, the detection and classification effects of ResNet18, AlexNet, and VGG16 are compared, and ResNet18 was determined to be the best backbone feature extraction network for model training. Secondly, three models were designed to optimize and improve the algorithm. The KRSNet module was added to the algorithm to make the model lightweight. The CSPNet module was added to the algorithm to improve the learning efficiency of each feature layer. The Convolutional Block Attention Module (CBAM) was added to the algorithm to improve its ability to capture more feature information about peanut pods. The experimental ablation results show that the precision of the improved model PQDA reaches 98.1%, and the size of parameters is only 32.63 M. Finally, the optimized model was applied to other peanut pod varieties for generalization experiments, and the accuracy reached 89.6% and 90.0%, indicating the effectiveness of the proposed peanut pod quality detection model. Furthermore, the model is suitable for deployment on embedded resource-limited devices, such as mobile terminals, to achieve the real-time and accurate detection of peanut pod quality.

Suggested Citation

  • Lili Yang & Changlong Wang & Jianfeng Yu & Nan Xu & Dongwei Wang, 2023. "Method of Peanut Pod Quality Detection Based on Improved ResNet," Agriculture, MDPI, vol. 13(7), pages 1-20, July.
  • Handle: RePEc:gam:jagris:v:13:y:2023:i:7:p:1352-:d:1186937
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2077-0472/13/7/1352/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2077-0472/13/7/1352/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Peng Xu & Qian Tan & Yunpeng Zhang & Xiantao Zha & Songmei Yang & Ranbing Yang, 2022. "Research on Maize Seed Classification and Recognition Based on Machine Vision and Deep Learning," Agriculture, MDPI, vol. 12(2), pages 1-16, February.
    2. Xin Yang & Shichen Gao & Qian Sun & Xiaohe Gu & Tianen Chen & Jingping Zhou & Yuchun Pan, 2022. "Classification of Maize Lodging Extents Using Deep Learning Algorithms by UAV-Based RGB and Multispectral Images," Agriculture, MDPI, vol. 12(7), pages 1-16, July.
    3. Alaa Saeed & A. A. Abdel-Aziz & Amr Mossad & Mahmoud A. Abdelhamid & Alfadhl Y. Alkhaled & Muhammad Mayhoub, 2023. "Smart Detection of Tomato Leaf Diseases Using Transfer Learning-Based Convolutional Neural Networks," Agriculture, MDPI, vol. 13(1), pages 1-14, January.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Weidong Zhu & Jun Sun & Simin Wang & Jifeng Shen & Kaifeng Yang & Xin Zhou, 2022. "Identifying Field Crop Diseases Using Transformer-Embedded Convolutional Neural Network," Agriculture, MDPI, vol. 12(8), pages 1-19, July.
    2. Yu Wang & Hongyi Bai & Laijun Sun & Yan Tang & Yonglong Huo & Rui Min, 2022. "The Rapid and Accurate Detection of Kidney Bean Seeds Based on a Compressed Yolov3 Model," Agriculture, MDPI, vol. 12(8), pages 1-21, August.
    3. Xianguo Ren & Haiqing Tian & Kai Zhao & Dapeng Li & Ziqing Xiao & Yang Yu & Fei Liu, 2022. "Research on pH Value Detection Method during Maize Silage Secondary Fermentation Based on Computer Vision," Agriculture, MDPI, vol. 12(10), pages 1-17, October.
    4. Dimitre D. Dimitrov, 2023. "Internet and Computers for Agriculture," Agriculture, MDPI, vol. 13(1), pages 1-7, January.
    5. Kadir Sabanci, 2023. "Benchmarking of CNN Models and MobileNet-BiLSTM Approach to Classification of Tomato Seed Cultivars," Sustainability, MDPI, vol. 15(5), pages 1-14, March.
    6. Xiantao He & Jinting Zhu & Pinxuan Li & Dongxing Zhang & Li Yang & Tao Cui & Kailiang Zhang & Xiaolong Lin, 2024. "Research on a Multi-Lens Multispectral Camera for Identifying Haploid Maize Seeds," Agriculture, MDPI, vol. 14(6), pages 1-12, May.
    7. Guangyu Hou & Haihua Chen & Mingkun Jiang & Runxin Niu, 2023. "An Overview of the Application of Machine Vision in Recognition and Localization of Fruit and Vegetable Harvesting Robots," Agriculture, MDPI, vol. 13(9), pages 1-31, September.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jagris:v:13:y:2023:i:7:p:1352-:d:1186937. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.