Nothing Special   »   [go: up one dir, main page]

Next Article in Journal
A Review on Mastitis in Dairy Cows Research: Current Status and Future Perspectives
Previous Article in Journal
Soil Health Intensification through Strengthening Soil Structure Improves Soil Carbon Sequestration
You seem to have javascript disabled. Please note that many of the page functionalities won't work as expected without javascript enabled.
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Spectrophotometric-Based Sensor for the Detection of Multiple Fertilizer Solutions

Faculty of Modern Agricultural Engineering, Kunming University of Science and Technology, Kunming 650500, China
*
Author to whom correspondence should be addressed.
Agriculture 2024, 14(8), 1291; https://doi.org/10.3390/agriculture14081291
Submission received: 7 June 2024 / Revised: 20 July 2024 / Accepted: 1 August 2024 / Published: 5 August 2024
Figure 1
<p>Development strategy for fertilizer detection sensors: (<b>a</b>) The acquisition of UV–vis/NIR absorption spectra of four fertilizer solutions: (<b>i</b>) KNO<sub>3</sub>, (<b>ii</b>) (NH<sub>4</sub>)<sub>2</sub>SO<sub>4</sub>, (<b>iii</b>) KH<sub>2</sub>PO<sub>4</sub>, and (iv) K<sub>2</sub>SO<sub>4</sub>. (<b>b</b>) Determination of characteristic wavelengths and construction of quantitative models. (<b>c</b>) Sensor structure and amplifier circuit design. (<b>d</b>) The detection strategy of qualitative analysis followed by quantitative assessment.</p> ">
Figure 2
<p>Fertilizer solution detection sensor. (<b>a</b>) Internal structure of the sensor; (<b>b</b>) external structure of the sensor; (<b>c</b>) physical drawing of the sensor; and (<b>d</b>) fertilizer solution identification and concentration detection strategy.</p> ">
Figure 3
<p>Absorption spectra of four fertilizer solutions after Savitzky–Golay smoothing treatment. (<b>a</b>) NO<sub>3</sub><sup>−</sup> solution, (<b>b</b>) NH<sub>4</sub><sup>+</sup> solution, (<b>c</b>) H<sub>2</sub>PO<sub>4</sub><sup>−</sup> solution, and (<b>d</b>) K<sup>+</sup> solution.</p> ">
Figure 4
<p>Absorption spectra of four nutrient ions at different concentrations in characteristic bands: (<b>a</b>) NO<sub>3</sub><sup>−</sup>, (<b>b</b>) NH<sub>4</sub><sup>+</sup>, (<b>c</b>) H<sub>2</sub>PO<sub>4</sub><sup>−</sup>, and (<b>d</b>) K<sup>+</sup>. Linear relationships between the ion concentration and the absorbance at characteristic wavelength: (<b>e</b>) NO<sub>3</sub><sup>−</sup>, (<b>f</b>) NH<sub>4</sub><sup>+</sup>, (<b>g</b>) H<sub>2</sub>PO<sub>4</sub><sup>−</sup>, and (<b>h</b>) K<sup>+</sup>.</p> ">
Figure 5
<p>Absorbance change trends in four fertilizer solutions at four characteristic wavelengths: (<b>a</b>) NO<sub>3</sub><sup>−</sup>, (<b>b</b>) NH<sub>4</sub><sup>+</sup>, (<b>c</b>) H<sub>2</sub>PO<sub>4</sub><sup>−</sup>, and (<b>d</b>) K<sup>+</sup>.</p> ">
Figure 6
<p>Stability test results of the fertilizer solution sensor: (<b>a</b>) the stability of the LED light source characterized by the output voltage of the Photodetector 1; (<b>b</b>) transmission voltage value; and (<b>c</b>) ambient light voltage value.</p> ">
Figure 7
<p>The trend in absorbance variation at four detection wavelengths (256, 405, 700, and 1650 nm) of the sensor for 10 concentrations of fertilizer solutions: (<b>a</b>) NO<sub>3</sub><sup>−</sup>, (<b>b</b>) NH<sub>4</sub><sup>+</sup>, (<b>c</b>) H<sub>2</sub>PO<sub>4</sub><sup>−</sup>, and (<b>d</b>) K<sup>+</sup>.</p> ">
Figure 8
<p>Confusion matrix charts of the classification results for four fertilizer solutions (KNO<sub>3</sub>, (NH<sub>4</sub>)<sub>2</sub>SO<sub>4</sub>, KH<sub>2</sub>PO<sub>4</sub>, and K<sub>2</sub>SO<sub>4</sub>) obtained by the developed sensor.</p> ">
Figure 9
<p>Detection errors of the sensor on the concentration of four fertilizer solutions.</p> ">
Versions Notes

Abstract

:
The online detection of fertilizer solution information is a crucial link in the implementation of intelligent and precise variable fertilization techniques. However, achieving simultaneous rapid online detection of multiple fertilizer components is still challenging. Therefore, a rapid detection method based on spectrophotometry for qualitative and quantitative identification of four fertilizers (typical N, P, and K fertilizers: KNO3, (NH4)2SO4, KH2PO4, and K2SO4) was proposed in this work. Full-scan absorption spectra of fertilizer solutions at varying concentrations were obtained using a UV–visible/near-infrared spectrophotometer. By assessing the linear fit between fertilizer concentration and absorbance at each wavelength within the characteristic band, the characteristic wavelengths for KNO3, (NH4)2SO4, KH2PO4, and K2SO4 were identified as 214 nm, 410 nm, 712 nm, and 1708 nm, respectively. The identification method of fertilizer type and the prediction model of concentration were constructed based on characteristic wavelength and the Lambert–Beer law. Based on the above analysis, a four-channel photoelectric sensor was designed with four LEDs emitting wavelengths closely matched to characteristic wavelengths for fertilizer detection. A detection strategy of “qualitative analysis followed by quantitative detection” was proposed to realize the online detection of four fertilizer types and their concentrations. Evaluation of the sensor’s performance showed its high stability, with an accuracy of 81.5% in recognizing fertilizer types. Furthermore, the relative error of the sensor detection was substantially less than ±15% for the fertilizer concentrations not exceeding 80 mg/L. These results confirm the capability of the sensor to meet the practical requirements for online detection of four fertilizer types and concentrations in the field of agricultural engineering.

1. Introduction

Precision irrigation is essential in modern agriculture to increase crop yields and reduce management costs [1]. An intelligent water–fertilizer integration system can deliver a precise and quantitative water/fertilizer regulation online by combining water–fertilize prediction models with intelligent technology based on the actual crop water–fertilizer requirements [2,3,4,5]. The system requires accurate information by monitoring nutrient components of fertilizer solution in real time to realize effective field regulation. However, online fertilizer detection is often influenced by natural environments and sensor stability, resulting in poor detection performance, such as incomplete nutrient component information, high cross-sensitivity, low detection accuracy, etc. [6,7]. Therefore, fertilizer online detection remains a challenge for intelligent, controlled technology in agriculture management.
Currently, the main techniques for online acquisition of fertilizer solution information (including nutrient elements and concentrations) are the EC/pH detection [8], the ion-selective electrode method [9], and the dielectric property method [10]. The EC/pH sensors can continuously monitor the electronic conductivity (EC) and pH of the fertilizer solution and provide an indirect reflection of the concentration of nutrient components in the fertilizer solution by establishing a functional relationship between fertilizer ion concentration and solution conductivity and pH [8]. However, this method can only characterize the total ion concentration and total pH of the fertilizer solution. Therefore, it is difficult to achieve precise regulation of multi-component fertilizer solutions. The ion-selective electrode (ISE) detection can selectively and sensitively determine the ion concentration of a fertilizer solution by detecting the potential difference resulting from the reaction of a particular electrode with ions in an electrolyte solution [9]. The method is effective in quantifying the ions, such as K+, NO3, PO43−, and P2O5 content, in fertilizer solutions [11,12]. However, this method requires the fabrication of selective electrodes for each ion, and its precision is constrained by the cross-sensitivity between ions [13]. Furthermore, the method exhibits some degree of hysteresis and temperature drift [14,15]. Miras et al. [16] employed ISEs based on plasticized polyvinyl membranes containing an ion exchanger to quantify KNO3 concentrations in hydroponic crop nutrient solutions, yielding satisfactory outcomes. However, this ISE sensor required the addition of ion exchangers and may exhibit cross-sensitivity in the presence of other components, potentially resulting in inaccurate measurements. The dielectric property detection method can rapidly determine the components and concentration in fertilizer solution by analyzing the dielectric frequency response features of the fertilizer solution (as a dielectric material) [17,18]. Nevertheless, this method has encountered challenges in the detection sensors and dielectric frequency testing techniques, and further exploration is required to address these issues. Wu et al. [17] applied the dielectric eigenfrequency method to qualitatively identify fertilizer solutions such as K2SO4, KNO3, KH2PO4, etc. The identification accuracy was 98.3%, with an average identification time of 14.3 s. However, the method could only determine the types of fertilizer solutions, not their concentrations. The identification process was time-consuming, and there remained a noticeable gap in real-time detection. Li et al. [18] designed a cylindrical capacitance sensor based on the dielectric properties of the fertilizer solution and proposed an online rapid detection method of fertilizer type and concentration based on the characteristic frequency response mode. The results showed that the maximum error of concentration detection was 7.26%. However, the sensor can only detect a single-component fertilizer solution, which is less suitable for practical engineering applications.
Spectrophotometry is an important, powerful, and versatile analytical technique that has been widely applied to quantify, identify, and characterize ions and compounds in solution [19,20]. For example, a UV–visible (UV–vis) spectrometry combining the extended Kalman filter and derivative methods is proposed by Zhou et al. to realize simultaneous determination of trace Cu2+, Co2+, and Ni2+ in zinc hydrometallurgy [21]. Some investigations have been conducted to explore the potential of UV–vis/near-infrared (UV–vis/NIR) technology for the detection of nutrient composition and content in soils and fertilizers. Zhang et al. determined the concentrations of the nutrients nitrogen (N), phosphorus (P), and potassium (K) in soil solution using UV–vis spectrophotometry, providing technical support for precision irrigation in agriculture [22]. Shen et al. verified the feasibility of using vis/NIR spectrometers to quickly analyze the content of nitrogen, phosphorus, and potassium nutrients (N, P2O5, and K2O) in fertilizers [23]. In conclusion, UV–vis/NIR spectrophotometry has the advantages of fast speed and wide detection range in solution composition detection. Therefore, the spectrophotometric technique can provide a new perspective for the development of sensors for online detection of fertilizer solutions.
This study proposed a novel method for online detection of four fertilizer components (NO3, NH4+, H2PO4, and K+) based on the spectrophotometric techniques. Firstly, the full-scan absorption spectra curves of the four fertilizer solutions at different concentrations were obtained using a UV–vis/NIR spectrophotometer. Subsequently, the characteristic wavelengths (detection wavelengths) of the four fertilizers were determined by comparing the linear fit between the absorbance at the bands near the absorption peak and the fertilizer concentration. Then, the prediction models for fertilizer concentration were established based on the linear relationships between absorbance at the characteristic wavelengths and fertilizer concentrations. Building on this, four LED light sources were selected with center wavelengths close to the characteristic wavelengths of four fertilizer solutions. A low-cost photoelectric sensor with four channels was developed for online qualitative and quantitative detection of four fertilizer solutions. The developed sensor serves to enhance the intelligence of irrigation and fertilizer application systems.

2. Materials and Methods

2.1. Experiment Materials

The main active nutrients of nitrogen, phosphate, and potash fertilizers applied in crop production are NO3, NH4+, K+, and total phosphorus (PO43−, HPO42−, and H2PO4) [24]. Accordingly, four analytically pure reagents, including potassium nitrate (KNO3, 59%), ammonium sulfate ((NH4)2SO4, 99%), potassium sulfate (K2SO4, 99%), and potassium dihydrogen phosphate (KH2PO4, 99%), were chosen as representatives of nitrate nitrogen fertilizer, ammonium nitrogen fertilizer, potash fertilizer, and phosphorus fertilizer for this study. KNO3 was purchased from Shandong Tianfu Biotechnology Co., Ltd., Jinan, China. (NH4)2SO4 was purchased from Sinopharm Chemical Reagent Co., Ltd., Shanghai, China. K2SO4 and KH2PO4 were purchased from Tianjin Dengfeng Chemical Reagent Factory, Tianjin, China. These reagents (KNO3, (NH4)2SO4, KH2PO4, and K2SO4) were dissolved in deionized water to create standard fertilizer solutions in 10 concentrations (10–100 mg/L, at 10 mg/L intervals). Three replicates of each concentration were configured for spectrophotometric experiments. The fertilizer solution samples were stored in a refrigerator at 4 °C and left at room temperature for over 2 h before testing.

2.2. Acquisition of UV–vis/NIR Absorption Spectra

The standard solutions of KNO3, (NH4)2SO4, and KH2PO4 were fully scanned using a UV–vis spectrophotometer (Model 754PC, Jinghua, Shanghai, China), with a band range of 200–1000 nm (spectral bandwidth of 4 nm). While the standard solutions of K2SO4 were fully scanned using a NIR spectrophotometer (Model 7100CRT, Xinmao, Shanghai, China), with a band range of 1000–2500 nm (spectral bandwidth of 4 nm) (Figure 1a). Specifically, deionized water was first used as a blank sample scanning baseline to eliminate the effects of instrumental system errors and ensure the accuracy and reliability of the measurement results. Subsequently, 3 mL of the fertilizer solution to be tested was pipetted into a quartz cuvette with an optical path length of 10 mm. The cuvette was then placed into the spectrophotometer, and the full-scan mode was used to obtain absorbance curves of the samples in the ranges of 200–1000 nm or 1000–2500 nm. The average spectra of three replicate samples were used for subsequent qualitative and quantitative analyses.

2.3. Spectral Pre-Processing and Characteristic Wavelength-Based Modeling of Fertilizer Concentration

In the spectral testing and analysis, spectral data were affected by background and noise [25]. To eliminate the interference of these factors, spectral data need to be preprocessed before generating the calibration model [26]. The Savitzky–Golay filter fitting method effectively achieves a smoothing effect by applying an arbitrary order polynomial to the spectral data. This method is widely used for spectral smoothing as it preserves the essential features of the spectral data while effectively smoothing the noise [27,28]. Therefore, the Savitzky–Golay method was adopted to preprocess the absorption spectral curves of the fertilizer solutions. The smoothed spectra were then analyzed. The bands near the absorption peaks were selected as the characteristic bands of the nutrient components in the fertilizer solution. According to the Lambert–Beer law, the absorbance is proportional to the concentration of the solution for a fixed optical path length. The optimal characteristic wavelength (detection wavelength) was determined by comparing the effect of the linear fit between fertilizer concentration and absorbance at each wavelength within the characteristic band (Figure 1b). Finally, prediction models were established for fertilizer concentrations based on the absorbance at characteristic wavelengths.

2.4. Development of a Four-Channel Fertilizer Solution Detection Sensor

2.4.1. Structural Design of the Sensor

According to the detection principle of spectrophotometry [29] and Lambert–Beer’s law [30], as well as the above characteristic wavelengths, a four-channel fertilizer solution detection sensor was designed. The sensor has a general pancake shape with a diameter of 120 mm and a height of 50 mm. It primarily consists of a light source chamber, a fertilizer chamber, four fertilizer inlets, four LED light sources, and four fertilizer detection channels (Figure 2). The light source chamber, fertilizer chamber, and fertilizer inlets are integrated housings made of 3D-printed resin. Four LED light sources (incident light sources) and four fertilizer detection channels (KNO3, (NH4)2SO4, KH2PO4, and K2SO4) are embedded within these integrated housings. Each detection channel consists of one filter and two identical photodetectors. A sealing cover over the light source and fertilizer chamber prevents fertilizer solution from entering the light source chamber and effectively reduces the impact of external light on fertilizer detection. The sensor was placed in the fertilizer solution to be measured, allowing the solution to enter the fertilizer chamber through its inlet. The fertilizer detection channels were then activated sequentially, enabling online detection of the fertilizer type and concentration.
To ensure the accuracy of the fertilizer sensor, the center wavelengths of the four LED light sources should theoretically coincide with the characteristic wavelengths of the four fertilizer solutions. However, unless specifically tailored, it is difficult to find commercially available LED light sources with center wavelengths that match the characteristic wavelengths of the four fertilizer solutions. Considering cost factors, four commercial LEDs with center wavelengths as close as possible to the four characteristic wavelengths were selected, and their main parameters are given in Table S1 (Supplementary Materials).
The four filter bands were positioned close to the center wavelengths of the LED light sources, aiming to concentrate the incident light around the center wavelengths. Two photodetectors per channel were employed to detect the intensity of light before and after it passed through the fertilizer solution and convert it into an electrical signal. According to the central wavelengths of the LED light sources, six UV-enhanced silicon photodiodes (LSSPD-U1.2, Beijing Lightsensing, Beijing, China) were selected as the photodetectors for KNO3, (NH4)2SO4, and KH2PO4 detection channels. Two indium–gallium–arsenic photodiodes (LSIPD-H2, Beijing Lightsensing, Beijing, China) were chosen for the K2SO4 detection channel. The specific parameters of these two types of photodetectors are shown in Table S2 (Supplementary Materials).

2.4.2. Detection Principle of the Sensor

The sensor performed qualitative and quantitative analyses based on the difference in absorbance of four fertilizer solutions at different wavelengths. The absorbance can be calculated according to the Lambert–Beer law [31], as follows:
A = lg I 0 I t
where A is the absorbance, and I0 and It are the intensities of the incident and transmitted light, respectively.
During the measurement process, the LED light passed through a filter to Photodetector 1 and then through the fertilizer solution to Photodetector 2. Photodetector 1 and Photodetector 2 recorded the intensities of the incident and transmitted light, respectively. The corresponding light intensities were expressed by the output voltages Vi and Vt. Prior to the activation of each LED light source, the photodetector measured the voltage (Va) corresponding to the ambient light. In order to account for the impact of ambient light on sensor detection, the absorbance (As) was calculated by subtracting Va from both the incident light intensity (Vi) and transmitted light intensity (Vt) as described in Equation (2).
A s = lg V i V a V t V a

2.4.3. Signal Conditioning Circuit

The output signal from the photodetector was a weak current signal; it could not be used directly in the subsequent circuit. Therefore, a signal conditioning circuit was required to convert the raw output signal into a voltage signal of a suitable amplitude (Figure 1c). The signal conditioning circuit primarily consists of the following two parts: the I–V (current-to-voltage) conversion circuit and the gain amplification circuit. The I–V conversion circuit, mainly composed of the operational amplifier AD825 and a T-type feedback resistor network (composed of R1, R2, and R3), converts the weak current signal from the photodetector into a voltage signal. The gain amplification circuit, mainly composed of the operational amplifier LF353N and its peripheral resistive–capacitive components, amplifies the amplitude of the voltage signal, with its gain adjustable up to 100 times by RP1.

2.4.4. Evaluation of the Sensor Stability

The detection stability of the sensor depends on the stability of the LED light source and the photodetector during the detection process. To evaluate the stability of the self-designed sensor in practical detection, (NH4)2SO4 solutions with concentrations of 30, 60, and 90 mg/L were used as test fertilizer solutions. The sensor was immersed in these solutions to assess the stability of the LED light source and the transmitted light, as well as the effect of ambient light. Each test was conducted for 2 h, with the output voltage of the photodetector recorded every 15 min.

2.4.5. Detection Strategy

A detection strategy of “qualitative analysis followed by quantitative detection” was adopted to achieve the rapid determination of the component information of four fertilizer solutions (Figure 2d). In each test, the following three steps were performed: (1) The four detection channels were activated sequentially for signal acquisition and absorbance calculation; (2) the type of fertilizer solution to be measured was determined by the detection channel (KNO3, (NH4)2SO4, KH2PO4, and K2SO4) corresponding to the absorbance maximum (Amax); and (3) the concentration of fertilizer solution was computed by substituting the Amax into the corresponding concentration prediction model.

2.4.6. Evaluation Method of the Sensor Detection Accuracy

In order to evaluate the accuracy of the self-designed sensor for the detection of four fertilizer solutions, each type of fertilizer was configured with 10 concentrations, spanning a range of 10 to 100 mg/L with a 10 mg/L gradient. Five replicate tests were conducted for each concentration of fertilizer solution, with the mean value taken as the result of the fertilizer solution test. The sensor was placed into the sample solution to be tested, and the four detection channels were activated sequentially for detection. The voltages corresponding to ambient, incident, and transmitted light were recorded for each detection channel. The absorbances associated with the four detection channels (A1, A2, A3, and A4) were then calculated according to Equation (2).
Identification of fertilizer solution type: The recognition accuracy of each type of fertilizer solution was assessed by sensitivity and specificity, which are calculated as the following Equations (3) and (4). The total recognition accuracy of the sensor for the four fertilizer solutions was calculated using Equation (5).
S e n s i t i v i t y   ( % ) = T P T P + F N × 100
S p e c i f i c i t y   ( % ) = T N T N + F P × 100
A c c u r a c y   ( % ) = i = 1 n T P i N × 100
where TP (true positive) represents the number of samples correctly classified as ‘Class 1’; FN (false negative) represents the number of ‘Class 1’ samples misclassified as ‘Class 0’; TN (true negative) stands for the number of ‘Class 0’ samples correctly classified as ‘Class 0’; and FP (false positive) refers to the number of ‘Class 0’ samples misclassified as ‘Class 1’. Moreover, n is the number of classes, and N is the total number of samples. In the case of multi-classification, sensitivity reflects the recognition accuracy of a certain category, while specificity indicates the probability that other categories will not be recognized as this category.
Detection accuracy of fertilizer concentration: After identifying fertilizer solution type, the absorbance was identified in the corresponding detection channel. Then, the solution concentration was calculated by substituting the absorbance into the fertilizer concentration detection model. The accuracy of the detection model was verified with the relative error.

3. Results and Discussion

3.1. Characteristic Wavelength Selection of Nutrient Ions in Fertilizer Solution

The spectral curves of four standard fertilizer solutions were smoothed by using the Savitzky–Golay filter fitting method (Figure 3). The absorbance of four fertilizer ions(NO3, NH4+, H2PO4, and K+) generally increased with increasing concentration in the test bands. However, the maximum absorption wavelengths (absorption peaks, marked in Figure 3 with rectangular boxes of different colors) of the four ions showed significant differences (214 nm for NO3; 398 nm for NH4+; 708 nm for H2PO4; and 1588 and 1804 nm for K+). Theoretically, the maximum absorption wavelengths can be used as the characteristic wavelengths (detection wavelengths) to quantify different ions. Since the rate of change in absorbance at the peak point is minimal, the absorbance at nearby wavelengths is very close to the peak absorbance. This proximity reduces detection errors caused by wavelength drift when using the maximum absorption wavelength for detection. However, the absorbance curves for (NH4)2SO4, KH2PO4, and K2SO4, as measured in this study, showed some fluctuations near the peaks and were not smooth. Therefore, selecting the absorption peak directly as the detection wavelength for fertilizer concentration is not always the most effective approach. To address this issue, we sought the optimal detection wavelength (characteristic wavelength) within the band near the peak/trough by comparing the results of the linear fit between the concentration and absorbance of the fertilizer solution. This method aims to improve the accuracy and reliability of fertilizer concentration measurements. It is important to note that the characteristic wavelength is also to provide a basis for the selection of the LED light source of the fertilizer sensor. The majority of commercially available LED light sources exhibit a center wavelength of less than 1800 nm. Accordingly, the characteristic bands of NO3, NH4+, H2PO4, and K+ can be set as 200–250 nm, 350–450 nm, 650–750 nm, and 1580–1800 nm, respectively.
By analyzing the aforementioned bands, the characteristic wavelengths of the four ions (NO3, NH4+, H2PO4, and K+) were determined to be 214, 410, 712, and 1708 nm, respectively (Figure 4). It can be observed that the distribution of absorbance corresponding to different concentrations at the characteristic wavelength is more uniform, and the linear correlation between absorbance and ion concentration was found to be highly significant, with R2 and RMSE values varying from 0.951 to 0.999 and 0.001 to 0.026, respectively (as illustrated in Figure 4e–h). It can be demonstrated that 214, 410, 712, and 1708 nm are the optimal wavelengths for the detection of NO3, NH4+, H2PO4, and K+, respectively. Shen et al. [23] found that the signal of P2O5 was stable in the 550–950 nm spectral band. The characteristic wavelength (712 nm) chosen to determine H2PO4 in this study is within the above range. Wang et al. [32] carried out a rapid detection of nitric nitrogen (NO3) in water using a UV–vis spectrophotometer and found that the second-order derivative absorbance of nitric nitrogen at 223.5 nm showed a linear relationship with the concentration. Chen et al. [33] used first-order derivative spectroscopy in the 220–230 nm band to determine nitrate content (NO3) in water, which could reduce the interference from water turbidity. These results are close to the characteristic wavelength (214 nm) chosen for the determination of NO3 in the present work.

3.2. Construction of Fertilizer Solution Detection Model

3.2.1. Identification of Fertilizer Solution Based on Characteristic Wavelengths

Figure 5 illustrates the absorbance profiles of the four fertilizer solutions (NO3, NH4+, H2PO4, and K+) at the four selected characteristic wavelengths (214, 410, 712, and 1708 nm). The trends in absorbance versus characteristic wavelengths were obviously different for the four fertilizer solutions. With increasing wavelength, the absorbance exhibited a trend of “sharp decrease→zero” for NO3; “rise→fall→zero” for NH4+; “no obvious increase→rise→down to zero” for H2PO4; and “zero→rise” for K+ (Figure 5). The absorbance curve of K+ in the range of 200–1000 nm is shown in Figure S1 (Supplementary Materials). It can be observed that the absorbance of K+ at 214, 410, and 712 nm is close to zero. In brief, all four fertilizer solutions exhibited the greatest absorbance at their respective characteristic wavelengths. Therefore, light sources with different wavelengths (214, 410, 712, and 1708 nm) can be employed sequentially to detect the tested fertilizer solution, and the type of fertilizer solution can be determined by the wavelength exhibiting the maximum absorbance.

3.2.2. Detection of Fertilizer Solution Concentration

Four models were established for the detection of fertilizer solution concentration based on the positive linear relationships between absorbance at characteristic wavelengths and fertilizer solution concentrations (Figure 4e–h and Table 1). The R2 values of the four models were all greater than 0.91, indicating a strong linear relationship between the concentration and the absorbance.

3.3. Stability Analysis of the Fertilizer Solution Sensor

The stability of the LED light source is a determining factor in the stability of the incident light in each detection channel. This can be characterized by the stability of the output voltage of the Photodetector 1 (Figure 2). As shown in Figure 6a, the voltage value of Photodetector 1 remained within the range of 133.0 to 137.0 mV, exhibiting a fluctuation of −1.38% to +1.33% under the illumination of the LED light. This indicates that the LED light source is stable enough to provide a stable incident light to the fertilizer sensor. The stability of the transmitted light can be quantified by the output voltage stability of Photodetector 2 (Figure 2), and the test results are presented in Figure 6b. The output voltage of Photodetector 2 varied with the concentration of fertilizer solution. However, for the same fertilizer concentration, the voltage values fluctuated within ±0.5 mV, with a variation of −2.58% to +3.04%. This demonstrates that the stability of the transmitted light is good enough to meet the requirements of practical applications. To assess the effect of ambient light on the sensor, the LED light source was switched off during the test, and only the output voltage values of Photodetector 2 under ambient light were recorded. As shown in Figure 6c, the voltage values had been maintained between 10.0 and 10.5 mV with a fluctuation range of −1.82%–2.07%, implying that the sensor has been subjected to little or even negligible influence from ambient light.

3.4. Detection Accuracy of the Fertilizer Solution Sensor

3.4.1. Identification of Fertilizer Solution Types

The developed sensor was used to detect ten different concentrations of (NH4)2SO4 solution with five replicates. Four detection channels were activated sequentially for each sample, and the voltages corresponding to ambient, incident, and transmitted light were recorded for each detection channel. The absorbances of four detection channels (A1, A2, A3, and A4) were calculated according to Equation (2), and the results are shown in Table 2. The trend in absorbance variation at four detection wavelengths for 10 concentrations of (NH4)2SO4 solution was plotted, as illustrated in Figure 7b. It is evident that the (NH4)2SO4 solution exhibits the greatest absorbance at 405 nm, with the absorbance varying from 0.9965 to 1.3656. To assess the detection accuracy of the sensor, the remaining three fertilizer solutions (KNO3, KH2PO4, and K2SO4) were also tested at different concentrations. The trends in the absorbance of KNO3, KH2PO4, and K2SO4 are presented in Figure 7a,c,d, respectively. KNO3, KH2PO4, and K2SO4 solutions show the highest absorbance at 256, 700, and 1650 nm, respectively. The variations in absorbance observed for the four fertilizer solutions using the developed sensor (Figure 7) are consistent with the results obtained from the spectrophotometer (Figure 5).
Following 200 tests, the developed sensor demonstrated the ability to correctly recognize KNO3, (NH4)2SO4, KH2PO4, and K2SO4 with a sensitivity (accuracy) of 84%, 84%, 82%, and 76%, respectively (Figure 8). A total of 12 K2SO4 samples were incorrectly identified as (NH4)2SO4, resulting in a low identification accuracy. High specificities are observed for KNO3 (95.33%), KH2PO4 (94.00), and K2SO4 (98.00%), indicating good rejection to other fertilizer solutions. In summary, the sensor has good detection performance with a total detection accuracy of 81.5%.
Wu et al. [17] designed a sensor based on the dielectric properties of fertilizer solution, which achieved 100%, 100%, 97.43%, and 94.8% recognition accuracy for KNO3, (NH4)2HPO4, K2SO4, and KH2PO4, respectively. However, they did not investigate the quantitative performance of the sensor in measuring fertilizer concentration. The sensor developed in this work can be placed in the buffer tank of fertilizer solution for detection, effectively preventing detection errors caused by uneven mixing of water and fertilizer, as well as fluctuations in the flow rate of fertilizer solution in the pipeline.

3.4.2. Fertilizer Solution Concentration Detection Model Verification

The relative errors between the actual and the predicted concentrations of the four fertilizer solutions determined by the developed sensor are illustrated in Figure 9. The detection errors of KNO3, (NH4)2SO4, KH2PO4, and K2SO4 concentrations were found to range from −16.31% to 12.65%, −9.75% to 9.86%, −12% to 13.3%, and −14% to 15%, respectively, when the concentration of fertilizer solution was lower than 80 mg/L. The LED light sources utilized in the four detection channels of the sensor were not entirely monochromatic, and their central wavelengths deviated from the characteristic wavelengths of the four fertilizer solutions. These deviations resulted in a reduction in the sensor’s detection accuracy. Given the limitations of selecting characteristic light sources in this study, a monochromatic LED light source with the same wavelength as the characteristic wavelength of fertilizer solution can be customized to improve detection accuracy without taking cost into consideration. Dong et al. [34] employed UV–vis spectrophotometry to measure nitrate content (NO3) in water, and the relative error of nitrate detection was reduced from 94.44% to 3.36% by correcting the offsets induced by dissolved organic carbon. Cho et al. [35] developed an on-site ion monitoring system based on ion-selective electrodes. The detection of NO3 and K+ concentrations in the hydroponic solutions was highly consistent with the results determined by a standard instrument (ion chromatography), and the average root mean square errors (RMSE) were 11.9 and 19.3 mg/L, respectively. The RMSEs for NO3 and K+ in the present study were 5.26 and 9.29 mg/L, respectively. The precise and quantitative regulation of crop water and fertilizer through intelligent water–fertilizer integration systems rely on real-time monitoring and feedback regulation of fertilizer component information. Therefore, the development of low-cost, fast, and accurate online fertilizer detection sensors is crucial for advancing agricultural engineering technology. Overall, the detection accuracy of the fertilizer sensor developed in this study can be enhanced by improving the LED light sources and modifying the prediction models. Despite this, its low-cost development strategy offers great potential for promoting agricultural applications.

4. Conclusions

In this paper, a rapid detection method based on spectrophotometry was proposed for the information of four fertilizer solutions (KNO3, (NH4)2SO4, KH2PO4, and K2SO4). By analyzing the spectral curves, the characteristic wavelengths of the four ions, NO3, NH4+, H2PO4, and K+, were determined to be 214, 410, 712, and 1708 nm, respectively. The absorbance at the characteristic wavelength showed a good linear fit to the ion concentration (R2: 0.952~0.999; RMSE: 0.001~0.026). Based on the above analysis, a four-channel sensor was designed for the online detection of four fertilizer solutions according to the Lambert–Beer law, and a detection strategy of “qualitative analysis followed by quantitative detection” was adopted to achieve the rapid identification of four fertilizer types and the prediction of their concentrations. The assessment of the sensor’s performance showed that it was highly reliable, achieving an accuracy of 81.5% in identifying four types of fertilizers. In addition, the sensor’s detection error was substantially less than ±15% for four fertilizer concentrations not exceeding 80 mg/L. These results confirm the capability of the sensor to satisfy the practical requirements for online detection of four fertilizer types and concentrations in the field of agricultural engineering. However, under certain constraints, this study only explored N, P, and K nutrient fertilizers represented by KNO3, (NH4)2SO4, KH2PO4, and K2SO4. To further enhance the applicability and generalization of the sensor, further research could explore expanding the variety of fertilizer solutions (KCl, CO(NH2)2, Ca(H2PO4)2·H2O, compound fertilizer, etc.) and developing online sensors based on Raman spectroscopy to detect higher concentrations of fertilizer solutions. In addition, the influence of fertilizer temperature and water quality variations on the sensor detection accuracy and the corresponding compensation methods also warrant investigation. Overall, this study presents a promising technique for developing sensors that can efficiently, quickly, and inexpensively detect fertilizer solution information.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/agriculture14081291/s1. Figure S1: The absorbance curve of K+ in the 200–1000 nm range. Table S1: The principal parameters of LED light sources. Table S2: The principal parameters of the photodetectors.

Author Contributions

Conceptualization, J.L. (Jianian Li) and C.W.; methodology, Z.W. and Y.G.; software, Z.W.; validation, Y.G. and J.L. (Jiawen Liang); formal analysis, Z.W. and J.L. (Jiawen Liang); investigation, Z.W.; resources, J.L. (Jianian Li) and C.W.; data curation, Z.W. and J.L. (Jiawen Liang); writing—original draft preparation, J.L. (Jianian Li) and Z.W.; writing—review and editing, J.L. (Jianian Li) and C.W.; visualization, J.L. (Jiawen Liang); supervision, C.W.; project administration, J.L. (Jianian Li); funding acquisition, J.L. (Jianian Li). All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China, grant number 52069008; the Yunnan Major Science and Technology Special Plan, grant number 202302AE090024; the Yunnan Fundamental Research Projects, grant number 202101AT070113; and the Yunnan Revitalization Talent Support Program.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article; further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Kamienski, C.; Soininen, J.-P.; Taumberger, M.; Dantas, R.; Toscano, A.; Salmon Cinotti, T.; Filev Maia, R.; Torre Neto, A. Smart Water Management Platform: IoT-Based Precision Irrigation for Agriculture. Sensors 2019, 19, 276. [Google Scholar] [CrossRef] [PubMed]
  2. An, S.; Wang, X.; Xue, B.; Yin, Y.; Wang, H.; Rao, C.; Guo, H. Research and Development of Intelligent Water and Fertilizer Integrated Machine Control System Based on Cloud Platform. Agric. Eng. 2022, 12, 29–34, (In Chinese with English Abstract). [Google Scholar]
  3. Cai, C.; Zheng, P.; Zhang, J. Integrated Monitor System of Water and Fertilizer of Greenhouse Intelligent Irrigatio. Agric. Sci. Technol. 2017, 18, 1465–1469+1523. [Google Scholar]
  4. Sun, F.; Ma, W.; Li, H.; Wang, S. Research on Water-Fertilizer Integrated Technology Based On Neural Network Prediction and Fuzzy Control. IOP Conf. Ser. Earth Environ. Sci. 2018, 170, 32168. [Google Scholar] [CrossRef]
  5. Zhai, Z.; Chen, X.; Zhang, Y.; Zhou, R. Decision-Making Technology Based on Knowledge Engineering and Experiment on the Intelligent Water-Fertilizer Irrigation System. J. Comput. Methods Sci. Eng. 2021, 21, 665–684. [Google Scholar] [CrossRef]
  6. Li, J.; Li, Y.; Yang, Q.; Lei, L.; Wu, Z. Development of Real-Time Detecting Device for Nitrogen Concentration of Liquid Fertilizer. Trans. Chin. Soc. Agric. Eng. 2015, 31, 139–145, (In Chinese with English Abstract). [Google Scholar]
  7. Ma, Z.; Zhang, J.; Li, J.; Wu, H. Design and Experiment of Concentric Cylindrical Capacitive Sensor for Liquid Fertilizer Concentration. Transducer Microsyst. Technol. 2018, 37, 91–94, (In Chinese with English Abstract). [Google Scholar]
  8. Feng, R.; Wang, Z.; Li, Z. Design and Experiment on Fertile Solution PH Value and Electrical Conductivity Measuring Instrument. Drain. Irrig. Mach. Eng. 2020, 38, 643–648, (In Chinese with English Abstract). [Google Scholar]
  9. Chen, F.; Wei, D.; Tang, Y. Virtual Ion Selective Electrode for Online Measurement of Nutrient Solution Components. IEEE Sens. J. 2011, 11, 462–468. [Google Scholar] [CrossRef]
  10. Xi, X.; Zhang, N.; He, D. Detection of Sylvine Concentration in Water Based on Permittivity. Trans. Chin. Soc. Agric. Eng. 2012, 28, 124–129. [Google Scholar]
  11. Zhang, J.; Chen, X.; Wang, R.; Liu, Y.; Li, W.; Li, M. Development and Experiment of the Rapid Detection Device of the Nutrient Ion Concentrations for Fertigation System. Trans. Chin. Soc. Agric. Eng. 2022, 38, 102–110, (In Chinese with English Abstract). [Google Scholar]
  12. Martynov, L.Y.; Sergeeva, A.S.; Sakharov, K.A.; Shkinev, V.M.; Yashtulov, N.A.; Zaitsev, N.K. Voltammetric Determination of Phosphates Using Ion-Selective Electrode Based on Organotin Ionophore. Microchem. J. 2023, 191, 108877. [Google Scholar] [CrossRef]
  13. Cecconi, F.; Reifsnyder, S.; Ito, Y.; Jimenez, M.; Sobhani, R.; Rosso, D. ISE-Ammonium Sensors in WRRFs: Field Assessment of Their Influencing Factors. Environ. Sci. Water Res. Technol. 2019, 5, 737–746. [Google Scholar] [CrossRef]
  14. Pedersen, J.W.; Larsen, L.H.; Thirsing, C.; Vezzaro, L. Reconstruction of Corrupted Datasets from Ammonium-ISE Sensors at WRRFs through Merging with Daily Composite Samples. Water Res. 2020, 185, 116227. [Google Scholar] [CrossRef]
  15. Papias, S.; Masson, M.; Pelletant, S.; Prost-Boucle, S.; Boutin, C. In Situ Continuous Monitoring of Nitrogen with Ion-Selective Electrodes in a Constructed Wetland Receiving Treated Wastewater: An Operating Protocol to Obtain Reliable Data. Water Sci. Technol. 2018, 77, 1706–1713. [Google Scholar] [CrossRef]
  16. Miras, M.; García, M.S.; Martínez, V.; Ortuño, J.Á. Inexpensive Ion-Selective Electrodes for the Simultaneous Monitoring of Potassium and Nitrate Concentrations in Nutrient Solutions. Anal. Methods 2021, 13, 3511–3520. [Google Scholar] [CrossRef] [PubMed]
  17. Wu, H.; Li, J.; Zhang, J.; Ma, Z.; Salih, W.E.B. Development of Rapid Identification Device for Variety of Macronutrient Water Soluble Fertilizers Based on Dielectric Characteristic Frequency. Trans. Chin. Soc. Agric. Eng. 2017, 33, 51–58, (In Chinese with English Abstract). [Google Scholar]
  18. Li, J.; Gao, Y.; Zeng, J.; Li, X.; Wu, Z.; Wang, G. Online Rapid Detection Method of Fertilizer Solution Information Based on Characteristic Frequency Response Features. Sensors 2023, 23, 1116. [Google Scholar] [CrossRef] [PubMed]
  19. Li, D.; Xu, X.; Li, Z.; Wang, T.; Wang, C. Detection Methods of Ammonia Nitrogen in Water: A Review. TrAC Trends Anal. Chem. 2020, 127, 115890. [Google Scholar] [CrossRef]
  20. Passos, M.L.; Saraiva, M.L.M. Detection in UV-Visible Spectrophotometry: Detectors, Detection Systems, and Detection Strategies. Measurement 2019, 135, 896–904. [Google Scholar] [CrossRef]
  21. Zhou, F.; Li, C.; Yang, C.; Zhu, H.; Li, Y. A Spectrophotometric Method for Simultaneous Determination of Trace Ions of Copper, Cobalt, and Nickel in the Zinc Sulfate Solution by Ultraviolet-Visible Spectrometry. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2019, 223, 117370. [Google Scholar] [CrossRef]
  22. Zhang, Y.; Wei, Z.; Ma, S. The concentration of water and fertilizer online detection device based on spectral technology. In Proceedings of the 2014 Montreal, Montreal, QC, Canada, 13–16 July 2014. [Google Scholar]
  23. Shen, J.; Qiao, W.; Chen, H.; Zhou, J.; Liu, F. Application of Visible/Near Infrared Spectrometers to Quickly Detect the Nitrogen, Phosphorus, and Potassium Content of Chemical Fertilizers. Appl. Sci. 2021, 11, 5103. [Google Scholar] [CrossRef]
  24. Yahaya, S.M.; Mahmud, A.A.; Abdullahi, M.; Haruna, A. Recent Advances in the Chemistry of Nitrogen, Phosphorus and Potassium as Fertilizers in Soil: A Review. Pedosphere 2023, 33, 385–406. [Google Scholar] [CrossRef]
  25. Wu, J.G. Recent Fourier Transform Infrared Spectroscopy Techniques and Applications; Scientific and Technical Documentation Press: Beijing, China, 1994. [Google Scholar]
  26. Bian, X.; Wang, K.; Tan, E.; Diwu, P.; Zhang, F.; Guo, Y. A Selective Ensemble Preprocessing Strategy for Near-Infrared Spectral Quantitative Analysis of Complex Samples. Chemom. Intell. Lab. Syst. 2020, 197, 103916. [Google Scholar] [CrossRef]
  27. Zhao, A.; Tang, X.; Zhang, Z.; Liu, J. Optimizing Savitzky-Golay Parameters and Its Smoothing Pretreatment for FTIR Gas Spectra. Guang Pu Xue Yu Guang Pu Fen Xi 2016, 36, 1340–1344. [Google Scholar]
  28. Zhang, G.; Hao, H.; Wang, Y.; Jiang, Y.; Shi, J.; Yu, J.; Cui, X.; Li, J.; Zhou, S.; Yu, B. Optimized Adaptive Savitzky-Golay Filtering Algorithm Based on Deep Learning Network for Absorption Spectroscopy. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2021, 263, 120187. [Google Scholar] [CrossRef]
  29. Worsfold, P.; Townshend, A.; Poole, C.F.; Miró, M. Encyclopedia of Analytical Science, 3rd ed.; Elsevier: Amsterdam, The Netherlands, 2019; pp. 244–248. [Google Scholar]
  30. Strong, F.C. Theoretical Basis of Bouguer-Beer Law of Radiation Absorption. Anal. Chem. 1952, 24, 338–342. [Google Scholar] [CrossRef]
  31. Dangkulwanich, M.; Thitaparun, P.; Yimkosol, W.; Chalermsongsak, T. Characterization of Factors Influencing Absorbance Measurements in LED-Based Colorimeters. Eur. J. Phys. 2023, 44, 25801. [Google Scholar] [CrossRef]
  32. Wang, J.; Zhang, J.; Zhang, Z. Rapid Determination of Nitrate Nitrogen and Nitrite Nitrogen by Second Derivative Spectrophotometry. Spectrosc. Spectr. Anal. 2019, 39, 161–165. [Google Scholar]
  33. Chen, X.; Yin, G.; Zhao, N.; Gan, T.; Yang, F.; Zhu, W.; Liu, J. Study on the Determination of Nitrate with UV First Derivative Spectrum under Turbidity Interference. Spectrosc. Spectr. Anal. 2019, 39, 2912–2916. [Google Scholar]
  34. Dong, J.; Tang, J.; Wu, G.; Xin, Y.; Li, R.; Li, Y. Effective Correction of Dissolved Organic Carbon Interference in Nitrate Detection Using Ultraviolet Spectroscopy Combined with the Equivalent Concentration Offset Method. RSC Adv. 2024, 14, 5370–5379. [Google Scholar] [CrossRef] [PubMed]
  35. Cho, W.-J.; Kim, H.-J.; Jung, D.-H.; Kim, D.-W.; Ahn, T.I.; Son, J.-E. On-Site Ion Monitoring System for Precision Hydroponic Nutrient Management. Comput. Electron. Agric. 2018, 146, 51–58. [Google Scholar] [CrossRef]
Figure 1. Development strategy for fertilizer detection sensors: (a) The acquisition of UV–vis/NIR absorption spectra of four fertilizer solutions: (i) KNO3, (ii) (NH4)2SO4, (iii) KH2PO4, and (iv) K2SO4. (b) Determination of characteristic wavelengths and construction of quantitative models. (c) Sensor structure and amplifier circuit design. (d) The detection strategy of qualitative analysis followed by quantitative assessment.
Figure 1. Development strategy for fertilizer detection sensors: (a) The acquisition of UV–vis/NIR absorption spectra of four fertilizer solutions: (i) KNO3, (ii) (NH4)2SO4, (iii) KH2PO4, and (iv) K2SO4. (b) Determination of characteristic wavelengths and construction of quantitative models. (c) Sensor structure and amplifier circuit design. (d) The detection strategy of qualitative analysis followed by quantitative assessment.
Agriculture 14 01291 g001
Figure 2. Fertilizer solution detection sensor. (a) Internal structure of the sensor; (b) external structure of the sensor; (c) physical drawing of the sensor; and (d) fertilizer solution identification and concentration detection strategy.
Figure 2. Fertilizer solution detection sensor. (a) Internal structure of the sensor; (b) external structure of the sensor; (c) physical drawing of the sensor; and (d) fertilizer solution identification and concentration detection strategy.
Agriculture 14 01291 g002
Figure 3. Absorption spectra of four fertilizer solutions after Savitzky–Golay smoothing treatment. (a) NO3 solution, (b) NH4+ solution, (c) H2PO4 solution, and (d) K+ solution.
Figure 3. Absorption spectra of four fertilizer solutions after Savitzky–Golay smoothing treatment. (a) NO3 solution, (b) NH4+ solution, (c) H2PO4 solution, and (d) K+ solution.
Agriculture 14 01291 g003
Figure 4. Absorption spectra of four nutrient ions at different concentrations in characteristic bands: (a) NO3, (b) NH4+, (c) H2PO4, and (d) K+. Linear relationships between the ion concentration and the absorbance at characteristic wavelength: (e) NO3, (f) NH4+, (g) H2PO4, and (h) K+.
Figure 4. Absorption spectra of four nutrient ions at different concentrations in characteristic bands: (a) NO3, (b) NH4+, (c) H2PO4, and (d) K+. Linear relationships between the ion concentration and the absorbance at characteristic wavelength: (e) NO3, (f) NH4+, (g) H2PO4, and (h) K+.
Agriculture 14 01291 g004
Figure 5. Absorbance change trends in four fertilizer solutions at four characteristic wavelengths: (a) NO3, (b) NH4+, (c) H2PO4, and (d) K+.
Figure 5. Absorbance change trends in four fertilizer solutions at four characteristic wavelengths: (a) NO3, (b) NH4+, (c) H2PO4, and (d) K+.
Agriculture 14 01291 g005
Figure 6. Stability test results of the fertilizer solution sensor: (a) the stability of the LED light source characterized by the output voltage of the Photodetector 1; (b) transmission voltage value; and (c) ambient light voltage value.
Figure 6. Stability test results of the fertilizer solution sensor: (a) the stability of the LED light source characterized by the output voltage of the Photodetector 1; (b) transmission voltage value; and (c) ambient light voltage value.
Agriculture 14 01291 g006
Figure 7. The trend in absorbance variation at four detection wavelengths (256, 405, 700, and 1650 nm) of the sensor for 10 concentrations of fertilizer solutions: (a) NO3, (b) NH4+, (c) H2PO4, and (d) K+.
Figure 7. The trend in absorbance variation at four detection wavelengths (256, 405, 700, and 1650 nm) of the sensor for 10 concentrations of fertilizer solutions: (a) NO3, (b) NH4+, (c) H2PO4, and (d) K+.
Agriculture 14 01291 g007
Figure 8. Confusion matrix charts of the classification results for four fertilizer solutions (KNO3, (NH4)2SO4, KH2PO4, and K2SO4) obtained by the developed sensor.
Figure 8. Confusion matrix charts of the classification results for four fertilizer solutions (KNO3, (NH4)2SO4, KH2PO4, and K2SO4) obtained by the developed sensor.
Agriculture 14 01291 g008
Figure 9. Detection errors of the sensor on the concentration of four fertilizer solutions.
Figure 9. Detection errors of the sensor on the concentration of four fertilizer solutions.
Agriculture 14 01291 g009
Table 1. Detection models for the concentrations of four fertilizer solutions.
Table 1. Detection models for the concentrations of four fertilizer solutions.
Fertilizer Solution TypesConcentration Prediction ModelR2
KNO3C1 = 469.42771A1 + 2.278570.9708
(NH4)2SO4C2 = 311.16449A2 − 310.773850.9186
KH2PO4C3 = 1098.18745A3 − 344.828090.9333
K2SO4C4 = 468.81920A4 − 1019.857090.9173
Note: C1C4 present the concentrations of NO3, NH4+, H2PO4, and K+ fertilizer solution, respectively. A1A4 present the absorbance at the characteristic wavelengths of 214, 410, 712, and 1708 nm, respectively.
Table 2. Detailed data recorded for the detection of different concentrations of (NH4)2SO4 solution.
Table 2. Detailed data recorded for the detection of different concentrations of (NH4)2SO4 solution.
Concentration (mg/L)Va
(mV)
Vi1
(mV)
Vi2
(mV)
Vi3
(mV)
Vi4
(mV)
Vt1
(mV)
Vt2
(mV)
Vt3
(mV)
Vt4
(mV)
A1A2A3A4
1010.4135.6134.4136.6136.9 108.822.999.3136.8 0.10460.99650.15220
2010.1134.8136.1135.9135.3 104.119.995.4135.2 0.12271.10910.16870
3010.1136.2134.2135.7135.5 105.018.988.6135.5 0.12341.14930.20410
4010.3134.8136.2133.9136.2 105.320.393.9136.1 0.11741.10000.16980
5010.2135.7135.3136.6136.4 101.716.289.8136.30.13721.31910.20080
6010.6136.1135.9135.5134.9 100.916.088.9134.9 0.14301.36560.20280
7010.2137.1136.7136.3134.7 102.919.594.3134.6 0.13641.13360.17590
8010.1136.7135.8137.3134.4 101.618.295.1134.3 0.14101.19090.17510
9010.3135.7135.8136.8136.6 105.718.597.6136.5 0.11871.18480.16110
10010.4136.4134.6135.2135.6 105.117.899.7135.6 0.12401.22490.14540
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Li, J.; Wu, Z.; Liang, J.; Gao, Y.; Wang, C. Spectrophotometric-Based Sensor for the Detection of Multiple Fertilizer Solutions. Agriculture 2024, 14, 1291. https://doi.org/10.3390/agriculture14081291

AMA Style

Li J, Wu Z, Liang J, Gao Y, Wang C. Spectrophotometric-Based Sensor for the Detection of Multiple Fertilizer Solutions. Agriculture. 2024; 14(8):1291. https://doi.org/10.3390/agriculture14081291

Chicago/Turabian Style

Li, Jianian, Zhuoyuan Wu, Jiawen Liang, Yuan Gao, and Chenglin Wang. 2024. "Spectrophotometric-Based Sensor for the Detection of Multiple Fertilizer Solutions" Agriculture 14, no. 8: 1291. https://doi.org/10.3390/agriculture14081291

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop