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

Rapid Detection of Fertilizer Information Based on Near-Infrared Spectroscopy and Machine Learning and the Design of a Detection Device

Author

Listed:
  • Yongzheng Ma

    (Faculty of Modern Agricultural Engineering, Kunming University of Science and Technology, Kunming 650500, China)

  • Zhuoyuan Wu

    (Faculty of Modern Agricultural Engineering, Kunming University of Science and Technology, Kunming 650500, China)

  • Yingying Cheng

    (Faculty of Modern Agricultural Engineering, Kunming University of Science and Technology, Kunming 650500, China)

  • Shihong Chen

    (Faculty of Modern Agricultural Engineering, Kunming University of Science and Technology, Kunming 650500, China)

  • Jianian Li

    (Faculty of Modern Agricultural Engineering, Kunming University of Science and Technology, Kunming 650500, China)

Abstract

The online detection of fertilizer information is pivotal for precise and intelligent variable-rate fertilizer application. However, traditional methods face challenges such as the complex quantification of multiple components and sensor-induced cross-contamination. This study investigates integrating near-infrared principles with machine learning algorithms to identify fertilizer types and concentrations. We utilized near-infrared transmission spectroscopy and applied Partial Least Squares Discriminant Analysis (PLS-DA), Support Vector Machine (SVM), and Back-Propagation Neural Network (BPNN) algorithms to analyze full spectrum data. The BPNN model, using S-G smoothing, demonstrated a superior classification performance for the nutrient ions of four fertilizer solutions: HPO 4 2− , NH 4 + , H 2 PO 4 − and K + . Optimization using the competitive adaptive reweighted sampling (CARS) method yielded BPNN model RMSE values of 0.3201, 0.7160, 0.2036, and 0.0177 for HPO 4 2− , NH 4 + , H 2 PO 4 − , and K + , respectively. Building on this foundation, we designed a four-channel fertilizer detection device based on the Lambert–Beer law, enabling the real-time detection of fertilizer types and concentrations. The test results confirmed the device’s robust stability, achieving 93% accuracy in identifying fertilizer types and concentrations, with RMSE values ranging from 1.0034 to 2.4947, all within ±8.0% error margin. This study addresses the practical requirements for online fertilizer detection in agricultural engineering, laying the groundwork for efficient water–fertilizer integration technology aligned with sustainable development goals.

Suggested Citation

  • Yongzheng Ma & Zhuoyuan Wu & Yingying Cheng & Shihong Chen & Jianian Li, 2024. "Rapid Detection of Fertilizer Information Based on Near-Infrared Spectroscopy and Machine Learning and the Design of a Detection Device," Agriculture, MDPI, vol. 14(7), pages 1-21, July.
  • Handle: RePEc:gam:jagris:v:14:y:2024:i:7:p:1184-:d:1438067
    as

    Download full text from publisher

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

    File URL: https://www.mdpi.com/2077-0472/14/7/1184/
    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:7:p:1184-:d:1438067. 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.