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

The Rapid Detection of Foreign Fibers in Seed Cotton Based on Hyperspectral Band Selection and a Lightweight Neural Network

Author

Listed:
  • Yeqi Fei

    (College of Mechanical and Electronic Engineering, Nanjing Forestry University, Nanjing 210037, China
    School of Intelligent Manufacturing, Nanjing University of Science and Technology Zijin College, Nanjing 210023, China)

  • Zhenye Li

    (College of Mechanical and Electronic Engineering, Nanjing Forestry University, Nanjing 210037, China)

  • Dongyi Wang

    (Smart Food and Agricultural Engineering Lab, Biological and Agricultural Engineering Department, University of Arkansas, 221 Engineering Hall, Fayetteville, AR 72701, USA)

  • Chao Ni

    (College of Mechanical and Electronic Engineering, Nanjing Forestry University, Nanjing 210037, China)

Abstract

Contamination with foreign fibers—such as mulch films and polypropylene strands—during cotton harvesting and processing severely compromises fiber quality. The traditional detection methods often fail to identify fine impurities under visible light, while full-spectrum hyperspectral imaging (HSI) techniques—despite their effectiveness—tend to be prohibitively expensive and computationally intensive. Specifically, the vast amount of redundant spectral information in full-spectrum HSI escalates both the system’s costs and processing challenges. To address these challenges, this study presents an intelligent detection framework that integrates optimized spectral band selection with a lightweight neural network. A novel hybrid Harris Hawks–Whale Optimization Operator (HWOO) is employed to isolate 12 discriminative bands from the original 288 channels, effectively eliminating redundant spectral data. Additionally, a lightweight attention mechanism, combined with a depthwise convolution module, enables real-time inference for online production. The proposed attention-enhanced CNN architecture achieves a 99.75% classification accuracy with real-time processing at 12.201 μs per pixel, surpassing the full-spectrum models by 11.57% in its accuracy while drastically reducing the processing time from 370.1 μs per pixel. This approach not only enables the high-speed removal of impurities in harvested seed cotton production lines but also offers a cost-effective pathway to practical multispectral solutions. Moreover, this methodology demonstrates broad applicability for quality control in agricultural product processing.

Suggested Citation

  • Yeqi Fei & Zhenye Li & Dongyi Wang & Chao Ni, 2025. "The Rapid Detection of Foreign Fibers in Seed Cotton Based on Hyperspectral Band Selection and a Lightweight Neural Network," Agriculture, MDPI, vol. 15(10), pages 1-22, May.
  • Handle: RePEc:gam:jagris:v:15:y:2025:i:10:p:1088-:d:1658554
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2077-0472/15/10/1088/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2077-0472/15/10/1088/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Xingpeng Li & Hongzhe Jiang & Xuesong Jiang & Minghong Shi, 2021. "Identification of Geographical Origin of Chinese Chestnuts Using Hyperspectral Imaging with 1D-CNN Algorithm," Agriculture, MDPI, vol. 11(12), pages 1-19, December.
    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.

      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:15:y:2025:i:10:p:1088-:d:1658554. 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.