Maize quality detection based on MConv-SwinT high-precision model

N Ning Zhang Y Yuanqi Chen E Enxu Zhang Z Ziyang Liu J Jie Yue (State Key Laboratory of Natural Medicines, Jiangsu Key Laboratory of Drug Design and Optimization, and Department of Chemistry)

Abstract

The traditional method of corn quality detection relies heavily on the subjective judgment of inspectors and suffers from a high error rate. To address these issues, this study employs the Swin Transformer as an enhanced base model, integrating machine vision and deep learning techniques for corn quality assessment. Initially, images of high-quality, moldy, and broken corn were collected. After preprocessing, a total of 20,152 valid images were obtained for the experimental samples. The network then extracts both shallow and deep features from these maize images, which are subsequently fused. Concurrently, the extracted features undergo further processing through a specially designed convolutional block. The fused features, combined with those processed by the convolutional module, are fed into an attention layer. This attention layer assigns weights to the features, facilitating accurate final classification. Experimental results demonstrate that the MC-Swin Transformer model proposed in this paper significantly outperforms traditional convolutional neural network models in key metrics such as accuracy, precision, recall, and F1 score, achieving a recognition accuracy rate of 99.89%. Thus, the network effectively and efficiently classifies different corn qualities. This study not only offers a novel perspective and technical approach to corn quality detection but also holds significant implications for the advancement of smart agriculture.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 20, Issue 1
Published January 24, 2025
Pages e0312363
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (5)

N

Ning Zhang

Y

Yuanqi Chen

E

Enxu Zhang

Z

Ziyang Liu

J

Jie Yue

State Key Laboratory of Natural Medicines, Jiangsu Key Laboratory of Drug Design and Optimization, and Department of Chemistry