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

Maize Kernel Quality Detection Based on Improved Lightweight YOLOv7

Author

Listed:
  • Lili Yang

    (College of Mechanical and Electrical Engineering, Qingdao Agricultural University, Qingdao 266109, China
    Yellow River Delta Intelligent Agricultural Equipment Industry Academy, Dongying 257300, China)

  • Chengman Liu

    (College of Electrical and Control Engineering, Heilongjiang University of Science and Technology, Harbin 150022, China)

  • Changlong Wang

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

  • Dongwei Wang

    (College of Mechanical and Electrical Engineering, Qingdao Agricultural University, Qingdao 266109, China
    Yellow River Delta Intelligent Agricultural Equipment Industry Academy, Dongying 257300, China)

Abstract

As an important cereal crop, maize is a versatile and multi-purpose crop, primarily used as a feed globally, but also is important as a food crop, and has other uses such as oil and industrial raw materials. Quality detection is an indispensable part of functional and usage classification, avoiding significant waste as well as increasing the added value of the product. The research on algorithms for real-time, accurate, and non-destructive identification and localization of corn kernels based on quality classification and equipped with non-destructive algorithms suitable for embedding in intelligent agricultural machinery systems is a key step in improving the effective utilization rate of maize kernels. The difference in maize kernel quality leads to significant differences in price and economic benefits. This algorithm reduced unnecessary waste caused by the low efficiency and accuracy of manual and mechanical detection. Image datasets of four kinds of maize kernel quality were established and each image contains a total of about 20 kernels of different quality randomly distributed. Based on the self-built dataset, the YOLOv7-tiny, as the backbone network, was used to design a maize kernel detection and recognition model named “YOLOv7-MEF”. Firstly, the backbone feature layer of the algorithm was replaced by MobileNetV3 as the feature extraction backbone network. Secondly, ESE-Net was used to enhance feature extraction and obtain better generalization performance. Finally, the loss function was optimized and replaced with the Focal-EOIU loss function. The experiment showed that the improved algorithm achieved an accuracy of 98.94%, a recall of 96.42%, and a Frame Per Second (FPS) of 76.92 with a model size of 9.1 M. This algorithm greatly reduced the size of the model while ensuring high detection accuracy and has good real-time performance. It was suitable for deploying embedded track detection systems in agricultural machinery equipment, providing a powerful theoretical research method for efficient detection of corn kernel quality.

Suggested Citation

  • Lili Yang & Chengman Liu & Changlong Wang & Dongwei Wang, 2024. "Maize Kernel Quality Detection Based on Improved Lightweight YOLOv7," Agriculture, MDPI, vol. 14(4), pages 1-18, April.
  • Handle: RePEc:gam:jagris:v:14:y:2024:i:4:p:618-:d:1376498
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2077-0472/14/4/618/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2077-0472/14/4/618/
    Download Restriction: no
    ---><---

    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:14:y:2024:i:4:p:618-:d:1376498. 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.

    We have no bibliographic references for this item. You can help adding them by using 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.