IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0312363.html
   My bibliography  Save this article

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

Author

Listed:
  • Ning Zhang
  • Yuanqi Chen
  • Enxu Zhang
  • Ziyang Liu
  • Jie Yue

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.

Suggested Citation

  • Ning Zhang & Yuanqi Chen & Enxu Zhang & Ziyang Liu & Jie Yue, 2025. "Maize quality detection based on MConv-SwinT high-precision model," PLOS ONE, Public Library of Science, vol. 20(1), pages 1-20, January.
  • Handle: RePEc:plo:pone00:0312363
    DOI: 10.1371/journal.pone.0312363
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0312363
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0312363&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0312363?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Olaf Erenstein & Moti Jaleta & Kai Sonder & Khondoker Mottaleb & B.M. Prasanna, 2022. "Global maize production, consumption and trade: trends and R&D implications," Food Security: The Science, Sociology and Economics of Food Production and Access to Food, Springer;The International Society for Plant Pathology, vol. 14(5), pages 1295-1319, October.
    2. Kun Wu & Min Zhang & Gang Wang & Xu Chen & Jun Wu, 2022. "A Continuous Single-Layer Discrete Tiling System for Online Detection of Corn Impurities and Breakage Rates," Agriculture, MDPI, vol. 12(7), pages 1-18, June.
    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. Robert Czubaszek & Agnieszka Wysocka-Czubaszek & Wendelin Wichtmann & Grzegorz Zając & Piotr Banaszuk, 2023. "Common Reed and Maize Silage Co-Digestion as a Pathway towards Sustainable Biogas Production," Energies, MDPI, vol. 16(2), pages 1-25, January.
    2. Mirosław Wyszkowski & Natalia Kordala, 2024. "Effects of Humic Acids on Calorific Value and Chemical Composition of Maize Biomass in Iron-Contaminated Soil Phytostabilisation," Energies, MDPI, vol. 17(7), pages 1-19, April.
    3. Kamila Nowosad & Jan Bocianowski & Farzad Kianersi & Alireza Pour-Aboughadareh, 2023. "Analysis of Linkage on Interaction of Main Aspects (Genotype by Environment Interaction, Stability and Genetic Parameters) of 1000 Kernels in Maize ( Zea mays L.)," Agriculture, MDPI, vol. 13(10), pages 1-17, October.
    4. José Augusto Correa Martins & Alberto Yoshiriki Hisano Higuti & Aiesca Oliveira Pellegrin & Raquel Soares Juliano & Adriana Mello de Araújo & Luiz Alberto Pellegrin & Veraldo Liesenberg & Ana Paula Ma, 2024. "Assessment of UAV-Based Deep Learning for Corn Crop Analysis in Midwest Brazil," Agriculture, MDPI, vol. 14(11), pages 1-15, November.
    5. Yangjie Ren & Yitong Zhang & Shiyang Guo & Ben Wang & Siqi Wang & Wei Gao, 2023. "Pipe Cavitation Parameters Reveal Bubble Embolism Dynamics in Maize Xylem Vessels across Water Potential Gradients," Agriculture, MDPI, vol. 13(10), pages 1-17, September.
    6. Chengkai Yang & Jingkai Lei & Zhihao Liu & Shufeng Xiong & Lei Xi & Jian Wang & Hongbo Qiao & Lei Shi, 2025. "Estimation Model of Corn Leaf Area Index Based on Improved CNN," Agriculture, MDPI, vol. 15(5), pages 1-20, February.
    7. Anna Barriviera & Diego Bosco & Sara Daniotti & Carlo Massimo Pozzi & Maria Elena Saija & Ilaria Re, 2023. "Assessing Farmers’ Willingness to Pay for Adopting Sustainable Corn Traits: A Choice Experiment in Italy," Sustainability, MDPI, vol. 15(18), pages 1-13, September.
    8. Lekarkar, Katoria & Nkwasa, Albert & Villani, Lorenzo & van Griensven, Ann, 2024. "Localizing agricultural impacts of 21st century climate pathways in data scarce catchments: A case study of the Nyando catchment, Kenya," Agricultural Water Management, Elsevier, vol. 294(C).
    9. Buttinelli, Rebecca & Cortignani, Raffaele & Caracciolo, Francesco, 2024. "Irrigation water economic value and productivity: An econometric estimation for maize grain production in Italy," Agricultural Water Management, Elsevier, vol. 295(C).
    10. Sandro Steinbach & Xiting Zhuang, 2025. "US agricultural exports and the 2022 Mississippi River drought," Agribusiness, John Wiley & Sons, Ltd., vol. 41(1), pages 289-303, January.
    11. Charlotte Cautereels & Jolien Smets & Jonas De Saeger & Lloyd Cool & Yanmei Zhu & Anna Zimmermann & Jan Steensels & Anton Gorkovskiy & Thomas B. Jacobs & Kevin J. Verstrepen, 2024. "Orthogonal LoxPsym sites allow multiplexed site-specific recombination in prokaryotic and eukaryotic hosts," Nature Communications, Nature, vol. 15(1), pages 1-15, December.
    12. Agata Borowik & Jadwiga Wyszkowska & Magdalena Zaborowska & Jan Kucharski, 2024. "Soil Enzyme Response and Calorific Value of Zea mays Used for the Phytoremediation of Soils Contaminated with Diesel Oil," Energies, MDPI, vol. 17(11), pages 1-21, May.
    13. Germán-Homero Morán-Figueroa & Darwin-Fabián Muñoz-Pérez & José-Luis Rivera-Ibarra & Carlos-Alberto Cobos-Lozada, 2024. "Model for Predicting Maize Crop Yield on Small Farms Using Clusterwise Linear Regression and GRASP," Mathematics, MDPI, vol. 12(21), pages 1-34, October.
    14. Deepak Kumar Nepali & Keshav Lall Maharjan, 2025. "Assessing the Impact of Hermetic Storage Technology on Storage Quantity and Post-Harvest Storage Losses Among Smallholding Maize Farmers in Nepal," Agriculture, MDPI, vol. 15(2), pages 1-22, January.
    15. Qiu, Bingwen & Jian, Zeyu & Yang, Peng & Tang, Zhenghong & Zhu, Xiaolin & Duan, Mingjie & Yu, Qiangyi & Chen, Xuehong & Zhang, Miao & Tu, Ping & Xu, Weiming & Zhao, Zhiyuan, 2024. "Unveiling grain production patterns in China (2005–2020) towards targeted sustainable intensification," Agricultural Systems, Elsevier, vol. 216(C).
    16. Huang, Na & Lin, Xiaomao & Lun, Fei & Zeng, Ruiyun & Sassenrath, Gretchen F. & Pan, Zhihua, 2024. "Nitrogen fertilizer use and climate interactions: Implications for maize yields in Kansas," Agricultural Systems, Elsevier, vol. 220(C).
    17. Meng Wang & Haiming Duan & Cheng Zhou & Li Yu & Xiangtao Meng & Wenjie Lu & Haibing Yu, 2024. "Synergistic Effects of Chemical Fungicides with Crude Extracts from Bacillus amyloliquefaciens to Control Northern Corn Leaf Blight," Agriculture, MDPI, vol. 14(4), pages 1-16, April.
    18. Jianfei Zhang & Guangqiao Cao & Yue Jin & Wenyu Tong & Ying Zhao & Zhiyu Song, 2022. "Parameter Optimization and Testing of a Self-Propelled Combine Cabbage Harvester," Agriculture, MDPI, vol. 12(10), pages 1-19, October.
    19. Oluwaseun Temitope Faloye & Ayodele Ebenezer Ajayi & Philip Gbenro Oguntunde & Viroon Kamchoom & Abayomi Fasina, 2024. "Modeling and Optimization of Maize Yield and Water Use Efficiency under Biochar, Inorganic Fertilizer and Irrigation Using Principal Component Analysis," Agriculture, MDPI, vol. 14(10), pages 1-20, October.
    20. Odhiambo Alphonce Kasera & Phennie Morghan Osure & Bruno Charles Oloo & Owili Mathews Odhiambo & Francis Odhiambo Salu & Hemolike Omondi Oguna, 2024. "Disambiguating Maize Policy Failure in Kenya, 2013 – 2024: A Political Economy Perspective," International Journal of Research and Innovation in Social Science, International Journal of Research and Innovation in Social Science (IJRISS), vol. 8(7), pages 2581-2601, July.

    More about this item

    Statistics

    Access and download statistics

    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:plo:pone00:0312363. 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: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    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.