Fast and accurate assessment of soil nutrient content is a necessary prerequisite for precise fertilizer management and a crucial means to drive the rapid development of smart agriculture [1]. Approximately 50–70% of plant nutrients come from the soil during crop growth and development, with nitrogen being one of the important limiting nutrients for plant growth [2]. Total nitrogen (TN) in the soil reflects the capacity and nitrogen-supplying ability of the soil [3–4]. Therefore, obtaining accurate information on soil TN content is of great significance for crop growth, nitrogen fertilizer management, and environmental protection.
Traditional chemical methods for determining soil TN are time-consuming and labor-intensive, especially for large-scale soil sample analysis. The results also suffer from significant lag and cannot meet the requirements of precision fertilizer application in modern smart agriculture [5–7]. Hyperspectral remote sensing technology has shown great potential in rapid monitoring of soil TN content due to its advantages of being fast, efficient, and non-destructive [8]. Currently, research on rapid monitoring models for soil nutrient assessment based on spectral technology can be divided into two categories: laboratory spectroscopy and in-situ spectroscopy. In laboratory spectroscopy research, Zhang et al. [9] used first-order derivatives and Norris' spectral preprocessing methods to estimate soil nutrient information, achieving an R2 of 0.84 and an RMSE of 3.64 using partial least squares regression (PLSR). Liu et al. [10] utilized multiple spectral preprocessing methods and a support vector machine (SVM) model based on selected feature wavelengths, obtaining good results with an R2 of 0.816 and an RMSE of 0.20. Bai et al. [11] compared the accuracy of different modeling methods in constructing soil TN inversion models using mid-infrared diffuse reflectance spectroscopy. The backpropagation neural network (BPNN) model combined with principal component analysis (PCA) for dimensionality reduction showed the best monitoring capability, with an R2 of 0.78 and an RMSE of 0.12. In comparison with laboratory spectroscopy research, the prediction accuracy of in-situ spectroscopy is not as high, with an R2 of only 0.45 reported in one study utilizing PLSR. Similar conclusions were drawn in other studies as well [12]. The relatively low accuracy of in-situ spectroscopy may be attributed to the complex composition, heterogeneous texture, and irregular physical features of the soil, as well as factors such as crop cover, sunlight, and soil moisture [13–16]. However, in-situ spectroscopy measurements offer advantages such as speed, real-time monitoring, non-destructiveness, and lack of pollution. They circumvent the issues associated with laboratory spectroscopy, such as sample collection, transportation, drying, and grinding, simplifying the cumbersome sample preparation process [17]. This is more in line with the requirements of precision agriculture and has garnered increasing attention from researchers.
Therefore, the preprocessing of in-situ spectral data using scientific approaches and the selection of appropriate algorithm models become the focus and challenges of research on in-situ spectroscopic techniques for soil nutrient monitoring [18]. In addition to the aforementioned issues, there is also a challenge of weak spectral penetration, making it difficult to monitor deep soil nutrient levels. To address this problem, some research has utilized generalized regression neural network (GRNN), support vector regression (SVR), and extreme learning machine algorithms to construct soil nutrient models at different depths [19]. These studies have provided a theoretical basis and technical support for monitoring deep soil nutrient levels using in-situ spectroscopy. However, they also point out the difficulties and key issues in monitoring soil nutrient levels using in-situ spectroscopy: (1) selection of spectral preprocessing methods and model screening; (2) weak spectral penetration into the soil; (3) lack of consideration for the impact of soil texture types on spectral data, resulting in a lack of model robustness.
The focus and challenges of current in-situ spectral monitoring of soil nutrients, considering the influence of soil texture on spectral reflectance, are addressed in this study. The study focuses on pre-planting soils in cotton fields in the Kekelik-Kashi area of China. Spectral data and soil total nitrogen (TN) content were collected and measured for different soil texture types at different soil depths, including the surface layer (0–3 cm), shallow tillage layer (3–20 cm), mid-tillage layer (20–40 cm), and deep tillage layer (40–60 cm). Correlations between spectral data and soil TN content were analyzed to establish monitoring models for TN in different soil layers based on indoor and in-situ spectral data. A comparative analysis and applicability analysis of the monitoring capabilities of the two models were conducted, aiming to provide a theoretical basis and scientific support for in-situ spectral monitoring of soil TN. The research hypotheses are as follows: (1) Different pre-processing combinations have varying effects on the monitoring performance of soil TN models in different soil layers, and the optimal pre-processing combination should be selected for each soil layer to improve the monitoring performance; (2) The GRNN modeling method optimized by the NGO algorithm performs best in enhancing the monitoring capability of the models; (3) Indoor spectral monitoring outperforms in-situ spectral monitoring in terms of monitoring performance, but in-situ spectral monitoring simplifies the experimental process and is feasible; (4) With the selection of the optimal modeling method, in-situ spectral monitoring can achieve an overall prediction accuracy of over 0.6, demonstrating certain credibility and robustness.