Soil physical and chemical parameter inversion method based on multi-task deep convolutional neural network
Through multi-task deep convolutional neural networks, the problems of low efficiency and reliance on laboratory reagents in traditional soil monitoring are solved, high-precision soil physical and chemical parameter inversion is achieved, and a new soil census method is provided.
Patent Information
- Application Number
- CN202410630586.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-08-30
AI Technical Summary
Traditional soil monitoring models are costly and inefficient, making it difficult to achieve real-time monitoring. Hyperspectral remote sensing images are difficult to directly observe changes in soil physical and chemical parameters, and are greatly affected by mixed pixels and soil moisture content.
Using the soil physical and chemical parameter inversion method based on multi-task deep convolutional neural network, through preprocessing of hyperspectral soil data sets, parameter correlation screening, model construction and optimization, a Multi_Task_1DCNN network framework was constructed, using dynamic learning rate and loss function weights Optimize the model to achieve the inversion of soil physical and chemical parameters.
It improves the calculation efficiency and accuracy of soil physical and chemical parameters, reduces the dependence on laboratory chemical reagents, provides new ideas for soil census, and achieves high-precision inversion of soil organic matter, nitrogen, phosphorus, PH and other parameters.
Smart Images

Figure CN118569069A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of soil information extraction, and is a soil physical and chemical parameter inversion method based on a multi-task deep convolutional neural network. Background Art
[0002] Soil refers to a loose layer of material on the surface of the earth, composed of various granular minerals, organic matter, water, air, microorganisms, etc., and can grow plants. Soil is composed of minerals formed by weathering of rocks, organic matter produced by the decomposition of animal and plant and microbial residues, soil organisms (solid phase matter), water (liquid phase matter), air (gas phase matter), oxidized humus, etc.
[0003] Solid matter includes soil minerals, organic matter, and nutrients obtained by microorganisms through light inhibition and sterilization. Liquid matter mainly refers to soil moisture. Gas is the air existing in the pores of the soil. These three types of substances in the soil constitute a contradictory unity. They are interconnected and mutually restricted, providing the necessary living conditions for crops and are the material basis of soil fertility.
[0004] Soil minerals are mineral particles of different sizes (sand particles, soil particles and colloid particles) formed by the weathering of rocks. There are many types of soil minerals with complex chemical composition. They directly affect the physical and chemical properties of the soil and are one of the important sources of crop nutrients.
[0005] Solid soil particles composed of minerals and humus are the main body of the soil, accounting for about 50% of the soil volume, and the pores between the solid particles are occupied by gas and water.
[0006] The vast majority of soil gas is oxygen and nitrogen that enter from the atmosphere, and a small portion is carbon dioxide and water vapor produced by life activities in the soil. The water in the soil mainly enters the soil from the surface, including many dissolved substances. There are also various animals, plants and microorganisms in the soil.
[0007] Soil is the basis of all agricultural production, an important place for crop growth, and an essential natural resource for human survival. As a non-renewable resource, soil physical and chemical properties (soil organic carbon, soil nitrogen, soil phosphorus, soil potassium, soil pH, soil calcium carbonate, soil cation exchange capacity, etc.) should be monitored regularly to prevent soil degradation and promote sustainable agricultural development. However, due to the high cost and low efficiency of the traditional monitoring mode of "field sampling + laboratory testing", it is almost impossible to achieve real-time monitoring of soil dynamic characteristics. At the same time, most of the soil physical and chemical parameters have little effect on the reflectance spectrum of the soil itself. It is difficult for traditional multispectral remote sensing images to directly observe the changes in soil physical and chemical parameters. At the same time, due to the existence of mixed pixel problems and the influence of different soil water contents on the spectral curve, the role of remote sensing images is further reduced. Therefore, a method that can meet the calculation accuracy and is relatively simple is needed to complete the extraction of soil physical and chemical parameters. The spectral resolution of the mainstream hyperspectral data sets on the market is better than 10nm. The high-precision data sets can meet the quantitative inversion of soil parameters and provide a new idea for soil survey. Summary of the invention
[0008] In view of the shortcomings of the prior art, in order to solve the problem that soil physical and chemical parameters cannot be calculated without laboratory chemical reagent testing during soil survey, the present invention provides a soil physical and chemical parameter inversion method based on a multi-task deep convolutional neural network.
[0009] The present invention provides a soil physical and chemical parameter inversion method based on a multi-task deep convolutional neural network. The present invention provides the following technical solutions:
[0010] A soil physical and chemical parameter inversion method based on a multi-task deep convolutional neural network includes the following steps:
[0011] Step 1: Preprocess the hyperspectral soil dataset, including the conversion of absorbance and reflectance, resampling of data with different spectral resolutions, and smoothing of band sequence data;
[0012] Step 2: Determine the correlation between soil physical and chemical parameters and select the optimal parameter combination;
[0013] Step 3: Based on the optimal parameter combination, construct the Multi_Task_1DCNN network framework of the multi-task soil physical and chemical parameter inversion model;
[0014] Step 4: Optimize the network model by changing the learning rate change strategy and loss function weight to achieve the optimal calculation accuracy;
[0015] Step 5: Input the field measured spectral data into the optimized model to obtain the inversion results of soil parameters.
[0016] Preferably, the step 1 is specifically:
[0017] The absorbance data is converted into reflectance data. The conversion method between the two is expressed by the following formula:
[0018] R=10 -A
[0019]
[0020] Among them, R is reflectance and A is absorbance;
[0021] The data are normalized to the same spectral resolution by interpolation, using spline interpolation, and the calculation method is as follows:
[0022] For the interpolation function f(x), the nodes x0, x1..., x n The function value at the point is segmented into two adjacent nodes to obtain n interpolation intervals. In each interval, a k-order polynomial is used for interpolation to satisfy the interpolation condition and k-1-order smoothness:
[0023] S i (x i )=f(x i ),S i+1 (x i+1 )=f(x i+1 ),0≤i≤n-1
[0024]
[0025] After obtaining a data set with the same number of bands and spectral resolution, it is necessary to remove outliers in the data and smooth the sequence data based on the Savitzky-Golay filter. The method is to set the width of the filter window to n = 2m + 1, each measurement point to x = (-m, -m + 1, ..., 0, 1, ..., m-1, m), and use a k-1 degree polynomial to fit the data points in the window:
[0026] y=a0+a1x+a2x 2 +...+a k-1 x k-1
[0027] Among them, x is the data to be fitted, y is the output data after fitting, and a is the parameter to be solved.
[0028] Preferably, the step 2 is specifically:
[0029] The correlation between soil parameters was evaluated, soil properties were grouped based on the correlation, the parameters with the highest correlation were grouped together, and the correlation between inversion parameters was calculated using the following formula:
[0030]
[0031] Preferably, the step 3 is specifically:
[0032] The constructed network framework includes: 8 1D convolutional layers, 4 1D pooling layers, and 4 fully connected layers; a Dropout is performed to discard 30% of the neurons; the activation function of the convolutional layer is selected as the RELU function, and the activation function of the fully connected layer is the linear activation function linear, and the root mean square error is used as the cost function to evaluate the network performance.
[0033] Preferably, the step 4 is specifically:
[0034] A dynamic learning rate mechanism was used, with a total of 300 rounds of training. The initial learning rate was 0.001. When the loss function did not decrease within 15 rounds, the learning rate was reduced to one tenth of the current learning rate.
[0035] Preferably, the step 5 is specifically:
[0036] The field measured spectral data were input into the model to obtain the inversion results of soil parameters, and the determination coefficient and root mean square error were used as the evaluation results of the model effectiveness.
[0037] Preferably, in regression modeling, the coefficient of determination R 2 , root mean square error RMSE to evaluate the goodness of fit and accuracy. 2 The larger it is, the smaller the RMSE is, the better the result is, and the prediction performance and stability of the fitting model are calculated by the following formula:
[0038]
[0039] Where n is the number of samples, y i To observe the plants, is the predicted value, is the average of the observed values.
[0040] A soil physical and chemical parameter inversion system based on a multi-task deep convolutional neural network, the system comprising:
[0041] A preprocessing module, which preprocesses the hyperspectral soil data set, including conversion of absorbance and reflectance, resampling of data with different spectral resolutions, and smoothing of band sequence data;
[0042] A screening module, wherein the screening module determines the correlation between soil physical and chemical parameters and screens the optimal parameter combination;
[0043] A framework construction module, wherein the framework construction module constructs a multi-task soil physical and chemical parameter inversion model Multi_Task_1DCNN network framework according to an optimal parameter combination;
[0044] An optimization module, wherein the optimization module optimizes the network model by changing the learning rate change strategy and the loss function weight to achieve the optimal calculation accuracy;
[0045] The inversion module inputs the field measured spectral data into the optimized model to obtain the inversion results of soil parameters.
[0046] A computer-readable storage medium stores a computer program, which is executed by a processor to implement a soil physical and chemical parameter inversion method based on a multi-task deep convolutional neural network.
[0047] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, a soil physical and chemical parameter inversion method based on a multi-task deep convolutional neural network is implemented.
[0048] The present invention has the following beneficial effects:
[0049] Compared with the prior art, the present invention has the following advantages:
[0050] The present invention constructs a deep learning inversion model of multiple soil physical and chemical parameters such as soil organic matter, soil nitrogen, soil phosphorus, soil potassium, soil pH, etc. through a hyperspectral soil data set. Compared with the prior art, the present invention has faster calculation efficiency and higher accuracy. At the same time, it solves the problem that traditional soil parameter determination requires a large amount of laboratory chemical reagent analysis, providing a new idea for soil survey and soil mapping. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 is a flow chart of the present invention;
[0053] Figure 2 It is the specific architecture and parameter settings of the Multi_Task_1DCNN deep learning model constructed in the present invention;
[0054] Figure 3It is a scatter plot of the inversion accuracy of four major soil parameters: soil organic carbon, soil nitrogen, soil pH and soil calcium carbonate. DETAILED DESCRIPTION
[0055] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0057] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0058] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0059] The present invention is described in detail below in conjunction with specific embodiments. Specific embodiment one:
[0061] according to Figures 1 to 3 As shown, the specific optimization technical solution adopted by the present invention to solve the above technical problems is: the present invention relates to a soil physical and chemical parameter inversion method based on a multi-task deep convolutional neural network.
[0062] A soil physical and chemical parameter inversion method based on a multi-task deep convolutional neural network includes the following steps:
[0063] Step 1: Preprocess the hyperspectral soil dataset, including the conversion of absorbance and reflectance, resampling of data with different spectral resolutions, and smoothing of band sequence data;
[0064] Step 2: Determine the correlation between soil physical and chemical parameters and select the optimal parameter combination;
[0065] Step 3: Based on the optimal parameter combination, construct the Multi_Task_1DCNN network framework of the multi-task soil physical and chemical parameter inversion model;
[0066] Step 4: Optimize the network model by changing the learning rate change strategy and loss function weight to achieve the optimal calculation accuracy;
[0067] Step 5: Input the field measured spectral data into the optimized model to obtain the inversion results of soil parameters.
[0068] The present invention resamples the hyperspectral soil data set based on cubic spline interpolation to complete the normalization of different data sets; performs sequence smoothing on the data set based on the Savitzky-Golay filter to construct an initial data set; determines the correlation between the physical and chemical parameters by calculating the correlation coefficient, and determines the optimal combination; constructs a multi-task soil physical and chemical parameter inversion model Multi_Task_1DCNN, sets the corresponding activation function and learning rate change strategy, and finally calculates the soil physical and chemical parameters. In view of the problem that the traditional soil physical and chemical parameter measurement process relies heavily on laboratory chemical testing, the present invention proposes a soil physical and chemical parameter inversion method based on a multi-task deep convolutional neural network. The method can directly calculate soil physical and chemical parameters through soil hyperspectral data, which is convenient and fast, and can reduce the manpower and material resources spent on laboratory chemical testing. A new method is provided for soil survey.
[0069] The present invention constructs a deep learning inversion model of multiple soil physical and chemical parameters such as soil organic matter, soil nitrogen, soil phosphorus, soil potassium, soil pH, etc. through a hyperspectral soil data set. Compared with the prior art, the present invention has faster calculation efficiency and higher accuracy. At the same time, it solves the problem that traditional soil parameter determination requires a large amount of laboratory chemical reagent analysis, providing a new idea for soil survey and soil mapping. Specific embodiment 2:
[0071] The difference between the second embodiment of the present invention and the first embodiment is that:
[0072] The step 1 is specifically as follows:
[0073] The absorbance data is converted into reflectance data. The conversion method between the two is expressed by the following formula:
[0074] R=10 -A
[0075]
[0076] Among them, R is reflectance and A is absorbance;
[0077] The data are normalized to the same spectral resolution by interpolation, using spline interpolation, and the calculation method is as follows:
[0078] For the interpolation function f(x), the nodes x0, x1..., x n The function value at the point is segmented into two adjacent nodes to obtain n interpolation intervals. In each interval, a k-order polynomial is used for interpolation to satisfy the interpolation condition and k-1-order smoothness:
[0079] S i (x i )=f(x i ),S i+1 (x i+1 )=f(x i+1 ),0≤i≤n-1
[0080]
[0081] After obtaining a data set with the same number of bands and spectral resolution, it is necessary to remove outliers in the data and smooth the sequence data based on the Savitzky-Golay filter. The method is to set the width of the filter window to n = 2m + 1, each measurement point to x = (-m, -m + 1, ..., 0, 1, ..., m-1, m), and use a k-1 degree polynomial to fit the data points in the window:
[0082] y=a0+a1x+a2x 2 +...+a k-1 x k-1
[0083] Among them, x is the data to be fitted, y is the output data after fitting, and a is the parameter to be solved.
[0084] Preprocessing method of soil hyperspectral dataset in step 1. Through band operation, sequence data interpolation and other methods, different data sources are converted into a unified dataset with the same physical meaning, the same spectral band range, and the same spectral resolution. The sequence data needs to be filtered later to remove the noise in the sequence. Specific embodiment three:
[0086] The difference between the third embodiment of the present invention and the second embodiment is that:
[0087] The step 2 is specifically as follows:
[0088] The correlation between soil parameters was evaluated, soil properties were grouped based on the correlation, the parameters with the highest correlation were grouped together, and the correlation between inversion parameters was calculated using the following formula:
[0089] Specific embodiment four:
[0091] The difference between the fourth embodiment of the present invention and the third embodiment is that:
[0092] The step 3 is specifically as follows:
[0093] The constructed network framework includes: 8 1D convolutional layers, 4 1D pooling layers, and 4 fully connected layers; a Dropout is performed to discard 30% of the neurons; the activation function of the convolutional layer is selected as the RELU function, and the activation function of the fully connected layer is the linear activation function linear, and the root mean square error is used as the cost function to evaluate the network performance.
[0094] The present invention constructs a soil physical and chemical parameter inversion model with good generalization, builds a deep learning model based on soil hyperspectral data sets available at home and abroad, and directly inverts soil organic carbon content, soil nitrogen content, soil cation exchange capacity, soil calcium carbonate content, and soil pH value, thus avoiding the consumption of manpower and material resources caused by laboratory chemical testing. Specific embodiment five:
[0096] The difference between the fifth embodiment of the present invention and the fourth embodiment is that:
[0097] The step 4 is specifically as follows:
[0098] A dynamic learning rate mechanism was used, with a total of 300 rounds of training. The initial learning rate was 0.001. When the loss function did not decrease within 15 rounds, the learning rate was reduced to one tenth of the current learning rate. Specific embodiment six:
[0100] The difference between the sixth embodiment of the present invention and the fifth embodiment is that:
[0101] The step 5 is specifically as follows:
[0102] The field measured spectral data were input into the model to obtain the inversion results of soil parameters, and the determination coefficient and root mean square error were used as the evaluation results of the model effectiveness. Specific embodiment seven:
[0104] The difference between the seventh embodiment of the present invention and the sixth embodiment is that:
[0105] In regression modeling, the coefficient of determination R 2, root mean square error RMSE to evaluate the goodness of fit and accuracy. 2 The larger it is, the smaller the RMSE is, the better the result is, and the prediction performance and stability of the fitting model are calculated by the following formula:
[0106]
[0107]
[0108] Where n is the number of samples, y i To observe the plants, is the predicted value, is the average of the observed values. Specific embodiment eight:
[0110] The difference between the eighth embodiment of the present invention and the seventh embodiment is that:
[0111] The present invention provides a soil physical and chemical parameter inversion system based on a multi-task deep convolutional neural network, the system comprising:
[0112] A preprocessing module, which preprocesses the hyperspectral soil data set, including conversion of absorbance and reflectance, resampling of data with different spectral resolutions, and smoothing of band sequence data;
[0113] A screening module, wherein the screening module determines the correlation between soil physical and chemical parameters and screens the optimal parameter combination;
[0114] A framework construction module, wherein the framework construction module constructs a multi-task soil physical and chemical parameter inversion model Multi_Task_1DCNN network framework according to an optimal parameter combination;
[0115] An optimization module, wherein the optimization module optimizes the network model by changing the learning rate change strategy and the loss function weight to achieve the optimal calculation accuracy;
[0116] The inversion module inputs the field measured spectral data into the optimized model to obtain the inversion results of soil parameters. Specific embodiment nine:
[0118] The difference between the ninth embodiment of the present invention and the eighth embodiment is that:
[0119] The present invention provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement a soil physical and chemical parameter inversion method based on a multi-task deep convolutional neural network. Specific embodiment ten:
[0121] The difference between the tenth embodiment of the present invention and the ninth embodiment is that:
[0122] The present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, a soil physical and chemical parameter inversion method based on a multi-task deep convolutional neural network is implemented. Specific embodiment eleven:
[0124] The difference between the eleventh embodiment of the present invention and the tenth embodiment is that:
[0125] In order to more clearly describe the advantages, features and technical processes of the present invention, a detailed description will be given in conjunction with the flowchart in the present invention, and the initial data sets take the Lucas data set and the ICRAF-ISRIC data set as examples.
[0126] Step 1: Preprocessing of hyperspectral soil dataset;
[0127] The Lucas soil public dataset was obtained by scanning with a FOSS XDS spectrometer. The spectral wavelength range is 400-2500nm, the spectral resolution is 0.5nm, and there are 4200 wavelengths in total. The data is recorded in the form of absorbance, with a total of 19036 sets of data. The ICRAF-ISRIC dataset was measured by an ASD FieldSpec4 Hi-Res high-resolution spectroradiometer. The spectral wavelength range is 350-2500nm, the spectral resolution is 10nm, and there are 215 wavelengths in total. The data is recorded in the form of reflectance, with a total of 4439 sets of data. To facilitate subsequent calculations, the absorbance data of the Lucas dataset was converted into reflectance data, and the spectral resolution was resampled to 1nm based on cubic spline interpolation. Similarly, the ICRAF-ISRIC dataset was resampled to 1nm, and the 350-400nm region was discarded to complete the normalization between different datasets. Since data errors are inevitably introduced during the resampling process, the dataset needs to be smoothed. Therefore, the Savitzky-Golay filter with a sliding window of 5 is used for smoothing filtering to obtain the final high-resolution soil dataset.
[0128] Step 2: Calculate the correlation coefficient to determine the correlation between soil physical and chemical parameters and determine the optimal parameter combination.
[0129] In order to improve the accuracy of the multi-task deep learning model, it is necessary to ensure that each subtask is related to each other. Here, the correlation between each soil parameter is calculated.
[0130] Table 1 Correlation between soil properties
[0131]
[0132]
[0133] From the above results, the present invention can know that the three parameters of soil organic carbon, soil nitrogen and soil pH have a high correlation; soil pH has a high correlation with soil calcium carbonate. Therefore, these four parameters can be combined to construct a multi-task inversion model. The correlation between other parameters is low, and a single-task inversion model is preferably used.
[0134] Step 3: Construct the Multi_Task_1DCNN network framework of the multi-task soil physical and chemical parameters inversion model.
[0135] Step 4: Optimize the network model by changing the learning rate change strategy and the loss function weight to achieve the optimal calculation accuracy.
[0136] Construct a one-dimensional deep convolutional regression model based on multiple tasks. The overall architecture of the model is as follows: Figure 2 As shown in the figure, the model consists of 8 1D convolutional layers, 4 1D pooling layers, and 4 fully connected layers. Since the model is a multi-task model, multiple root mean square error loss functions are set, and the loss weights are all set to 1. In order to balance the problem of different orders of magnitude between different tasks and prevent overfitting, L2 regularization is added to the model. 80% of the data are randomly selected for model training, and the remaining 20% of the data are used for model accuracy verification. The dynamic learning rate mechanism is used in the model training process. The model is trained for a total of 300 rounds, and the initial learning rate is 0.001. When the loss function does not decrease within 15 rounds, the learning rate is reduced to one tenth of the current learning rate.
[0137] Step 5: Input the field measured spectral data into the model to obtain the inversion results of soil parameters.
[0138] To verify the accuracy of the model, the measured spectral data were preprocessed into a data set that can be read by the model using the method in step 1 and the soil parameters were inverted. The inversion accuracy was as follows: Figure 3 As shown, the soil carbon correlation coefficient is 0.8065, and the root mean square error is 17.1447; the soil nitrogen correlation coefficient is 0.7679, and the root mean square error is 1.2644; the soil pH correlation coefficient is 0.7151, and the root mean square error is 0.7344; the soil calcium carbonate correlation coefficient is 0.9235, and the root mean square error is 45.9803. It can be seen from the results that the present invention has a high inversion accuracy for four soil parameters: soil organic carbon, soil nitrogen, soil pH, and soil calcium carbonate, and can significantly improve the efficiency of soil parameter inversion in soil surveys.
[0139] In the description of this specification, the description of reference terms such as "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples without contradiction. In addition, the terms "first" and "second" are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" can explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "N" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. Any process or method description in the flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code including one or more executable instructions for implementing the steps of a custom logic function or process, and the scope of the preferred embodiment of the present invention includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved, which should be understood by a person skilled in the art of the art to which the embodiments of the present invention belong. The logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as a sequenced list of executable instructions for implementing the logic function, and may be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection having one or N wirings (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM).In addition, the computer readable medium can even be paper or other suitable medium on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other medium, then editing, interpreting or processing in other suitable ways as necessary, and then storing it in a computer memory. It should be understood that the various parts of the present invention can be implemented with hardware, software, firmware, or a combination thereof. In the above-mentioned embodiment, N steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented with hardware, as in another embodiment, any one of the following technologies known in the art or their combination can be used to implement: a discrete logic circuit with a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit with a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0140] The above is only a preferred implementation of a soil physical and chemical parameter inversion method based on a multi-task deep convolutional neural network. The protection scope of a soil physical and chemical parameter inversion method based on a multi-task deep convolutional neural network is not limited to the above embodiments. All technical solutions under this idea belong to the protection scope of the present invention. It should be pointed out that for those skilled in the art, several improvements and changes without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. A soil physical and chemical parameter inversion method based on multi-task deep convolutional neural network, Its characteristics are: The following steps are involved: Step 1: Preprocess the hyperspectral soil dataset, including the conversion of absorbance and reflectance, resampling of data with different spectral resolutions, and smoothing of band sequence data; Step 2: Determine the correlation between soil physical and chemical parameters and select the optimal parameter combination; Step 3: Based on the optimal parameter combination, construct the Multi_Task_1DCNN network framework of the multi-task soil physical and chemical parameter inversion model; Step 4: Optimize the network model by changing the learning rate change strategy and loss function weight to achieve the optimal calculation accuracy; Step 5: Input the field measured spectral data into the optimized model to obtain the inversion results of soil parameters.
2. The method according to claim 1, Its characteristics are: The step 1 is specifically as follows: The absorbance data is converted into reflectance data. The conversion method between the two is expressed by the following formula: R=10 -A Among them, R is reflectance and A is absorbance; The data are normalized to the same spectral resolution by interpolation, using spline interpolation, and the calculation method is as follows: For the interpolation function f(x), the node x is known 0 ,x 1 ...,x n The function value at the point is segmented into two adjacent nodes to obtain n interpolation intervals. In each interval, a k-order polynomial is used for interpolation to satisfy the interpolation condition and k-1-order smoothness: S i (x i )=f(x i ),S i+1 (x i+1 )=f(x i+1 ),0≤i≤n-1 After obtaining a data set with the same number of bands and spectral resolution, it is necessary to remove outliers in the data and smooth the sequence data based on the Savitzky-Golay filter. The method is to set the width of the filter window to n = 2m + 1, each measurement point to x = (-m, -m + 1, ..., 0, 1, ..., m-1, m), and use a k-1 degree polynomial to fit the data points in the window: y=a 0 +a 1 x+a 2 x 2 +...+a k-1 x k-1 Among them, x is the data to be fitted, y is the output data after fitting, and a is the parameter to be solved.
3. The method according to claim 2, Its characteristics are: The step 2 is specifically as follows: The correlation between soil parameters was evaluated, soil properties were grouped based on the correlation, the parameters with the highest correlation were grouped together, and the correlation between inversion parameters was calculated using the following formula:
4. The method according to claim 3, Its characteristics are: The step 3 is specifically as follows: The constructed network framework includes: 8 1D convolutional layers, 4 1D pooling layers, and 4 fully connected layers; a Dropout is performed to discard 30% of the neurons; the activation function of the convolutional layer is selected as the RELU function, and the activation function of the fully connected layer is the linear activation function linear, and the root mean square error is used as the cost function to evaluate the network performance.
5. The method according to claim 4, Its characteristics are: The step 4 is specifically as follows: A dynamic learning rate mechanism was used, with a total of 300 rounds of training. The initial learning rate was 0.
001. When the loss function did not decrease within 15 rounds, the learning rate was reduced to one tenth of the current learning rate.
6. The method according to claim 3, Its characteristics are: The step 5 is specifically as follows: The field measured spectral data were input into the model to obtain the inversion results of soil parameters, and the determination coefficient and root mean square error were used as the evaluation results of the model effectiveness.
7. The method according to claim 6, Its characteristics are: In regression modeling, the coefficient of determination R 2 , root mean square error RMSE to evaluate the goodness of fit and accuracy; R 2 The larger it is, the smaller the RMSE is, the better the result is, and the prediction performance and stability of the fitting model are calculated by the following formula: Where n is the number of samples, y i To observe the plants, is the predicted value, is the average of the observed values.
8. A soil physical and chemical parameter inversion system based on multi-task deep convolutional neural network, Its characteristics are: The system comprises: A preprocessing module, which preprocesses the hyperspectral soil data set, including conversion of absorbance and reflectance, resampling of data with different spectral resolutions, and smoothing of band sequence data; A screening module, wherein the screening module determines the correlation between soil physical and chemical parameters and screens the optimal parameter combination; A framework construction module, wherein the framework construction module constructs a multi-task soil physical and chemical parameter inversion model Multi_Task_1DCNN network framework according to an optimal parameter combination; An optimization module, wherein the optimization module optimizes the network model by changing the learning rate change strategy and the loss function weight to achieve the optimal calculation accuracy; The inversion module inputs the field measured spectral data into the optimized model to obtain the inversion results of soil parameters.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that The program is executed by a processor to implement the method according to claims 1-7.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program. Its characteristics are: When the processor executes the computer program, the method of claims 1-7 is implemented.
Citation Information
Cited By
Soil nutrient prediction method of CatBoost model based on dynamic weighted multi-objective regression
CN120162557A
Method and device for extrapolating reflectivity of colorimeter
CN121540285A
A method and device for extrapolating reflectance of a color difference meter
CN121540285B
Plant leaf physicochemical parameter inversion method based on spectrum two-dimensional characterization and multi-task deep learning
CN121659710A
A Method for Inverting Physicochemical Parameters of Plant Leaves Based on Two-Dimensional Spectral Representation and Multi-Task Deep Learning
CN121659710B
