A method for inversion of cultivated land soil salinity based on multi-cycle classification

Through multi-cycle classification and reverse feature elimination method, the problem of low classification accuracy of mildly salinized and non-salinized cultivated land is solved, the inversion accuracy of soil salt content of salinized cultivated land is improved, and the accuracy of agricultural management is enhanced. reliability.

CN117688478BActive Publication Date: 2024-09-24INST OF GEOGRAPHICAL SCI & NATURAL RESOURCE RES CAS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311692756.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-11
Publication Date
2024-09-24
Estimated Expiration
2043-12-11

AI Technical Summary

Technical Problem

The existing technology has low accuracy in retrieving the soil salt content of mildly salinized and non-salinized cultivated land, making it difficult to accurately distinguish and affecting agricultural management, especially the remote sensing of lightly salinized cultivated land and non-salinized cultivated land. The difference in image features is reduced, leading to classification confusion and reducing the inversion accuracy.

Method used

Using a multi-cycle classification method, through the reverse feature elimination method that combines the random forest model and the gradient boosting decision tree model, the sample set is gradually screened and divided, and multiple classifiers are constructed to improve the classification accuracy of cultivated land with or without salinization, and based on The spectral index time series is used to construct the soil salinity inversion model.

Benefits of technology

It improves the classification accuracy of non-salinized and salinized cultivated land, reduces the error in the soil salt content inversion of lightly salinized cultivated land, enhances the accuracy of the soil salt content of salinized cultivated land, and improves the agricultural Management reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117688478B
    Figure CN117688478B
Patent Text Reader

Abstract

The present invention relates to the field of soil inversion technology, specifically, a method for inverting the salinity of cultivated land soil based on multi-cycle classification, which first accurately identifies the area of ​​salinized cultivated land, and then inverts the soil salinity of the salinized cultivated land separately. Compared with the traditional soil salinity inversion method, the present invention can effectively improve the extraction accuracy of non-salinized and salinized cultivated land, and further improve the prediction accuracy of the soil salinity of salinized cultivated land by eliminating the interference of non-salinized areas.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of soil inversion, in particular to an inversion method for salinity of cultivated land soil based on multi-cycle classification. Background Art

[0002] Soil salinization is one of the main factors restricting agricultural development in arid and semi-arid areas, which will seriously affect crop growth and yield. Strong soil evaporation in arid areas leads to secondary salinization of cultivated land (Ivushkin et al. 2018). Under the influence of global warming and regional rainfall changes, about 20% of cultivated land in the world is threatened by soil salinization (Hassani et al. 2021). It is predicted that if it is not controlled, more than 50% of the world's cultivated land will be affected by salinization in 2050 (Singh 2021), which will seriously hinder the sustainable development of agriculture and threaten global food security (Pimentel and Pimentel 2006). Therefore, accurately assessing the degree of soil salinization in arid areas and identifying the areas where soil salinization occurs are conducive to accurately guiding farmers' farmland management and achieving sustainable agricultural production.

[0003] Existing technologies usually provide spectral characteristics of large-scale surface vegetation and soil through remote sensing image data, and reflect the situation of soil salinization (Zhang et al. 2023). The process of its soil salt content inversion method is roughly as follows:

[0004] First, satellite data such as Landsat and Sentinel-2 covering the study area were obtained, and soil samples with different degrees of salinization were collected, and the longitude and latitude coordinates of each sample point were recorded.

[0005] Subsequently, the salt content of the collected soil samples was measured in the laboratory. At the same time, the spectral characteristic images of the study area were calculated through the acquired Landsat and Sentinel series satellite images, and the spectral characteristic values ​​corresponding to each collected soil sample point were obtained by collecting the longitude and latitude coordinates of the soil sample points. The spectral characteristics were screened based on the correlation between the spectral characteristic values ​​and conductivity of each sample point.

[0006] Finally, the soil salt inversion model is trained based on the spectral characteristics and electrical conductivity of the screened sample points, and the trained model is applied to the spectral characteristic image of the region to obtain the soil salt distribution map of the region.

[0007] Based on the above inversion process, multiple methods have made different attempts in the three aspects of constructed spectral features, spectral feature screening methods and inversion models. In terms of the selection of inversion models, the linear relationship between a single or multiple spectral indices and soil salinity was first applied to soil salinity inversion (Guo et al. 2019; Scudiero et al. 2015), but its linear relationship cannot well represent the relationship between spectral index and soil salinity. Therefore, machine learning methods such as random forest (RF) (Ivushkin et al. 2019; Li et al. 2022) and support vector machine (SVM) (Periasamy et al. 2022) were introduced, as well as deep learning related methods (Garajeh et al. 2021; Gu et al. 2022) and applied to soil salinity inversion research, and they have shown good applicability in the soil salinity inversion research based on multi-spectral features.

[0008] However, the difference in remote sensing image characteristics due to different degrees of salinization has become the key to restricting the inversion accuracy. As the salinization level increases, a large amount of soil salt is exposed, the restriction on vegetation becomes more obvious, and the difference in remote sensing image characteristics becomes more obvious, which is conducive to remote sensing inversion.

[0009] If the salinity of cultivated land soil is still at a mild salinization or lower level, the difference in its impact on crop growth is not obvious, and its separability from non-salinized cultivated land areas in remote sensing image features is reduced, which is easy to confuse the classification of the two and seriously restrict the accuracy of soil salinization inversion. In addition, affected by factors such as farmland management, the restriction of soil salinity on crop growth may not be obvious, which leads to a decrease in the difference between the remote sensing image characteristics of mildly salinized cultivated land and the characteristics of non-salinized cultivated land. As a result, the existing models have better inversion accuracy for the salt content of cultivated land with moderate and above salinization, but poor in the identification of mildly salinized cultivated land and non-salinized cultivated land and the inversion accuracy of soil salt content. Even if the model is constructed using non-salinized and low-salinized cultivated land soil samples alone, it is difficult to obtain ideal results.

[0010] Therefore, based on the above reasons, it is necessary to design a method for inverting the salinity of cultivated land soil based on multi-cycle classification, which can accurately invert the soil salinity of salinized cultivated land while ensuring good extraction accuracy for salinized cultivated land. Summary of the invention

[0011] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a method for inverting the salinity of cultivated land soil based on multi-cycle classification, which can accurately invert the soil salinity of salinized cultivated land while ensuring good extraction accuracy for salinized cultivated land.

[0012] In order to achieve the above object, the present invention provides a method for inverting salinity of cultivated land soil based on multi-cycle classification, comprising the following steps:

[0013] S1, based on the Google Earth Engine platform, obtain the multispectral remote sensing time series images of the study area, remove the cloud from the multispectral images through the quality bands of the multispectral images, calculate multiple remote sensing image spectral indices reflecting vegetation and soil characteristics, and obtain the time series images of each spectral index;

[0014] S2, according to the national soil salinization classification standard and the salt content in the cultivated soil samples, the samples were divided into non-salinized cultivated land samples and salinized cultivated land samples;

[0015] S3, respectively calculate the separability index of non-salinized cultivated land samples and salinized cultivated land samples on each spectral index time series to evaluate the separability of the two samples on the spectral index time series; select the spectral index time series with the largest index value, and remove the time period data with lower importance in the selected spectral index time series through the reverse feature elimination method of the random forest model, and the spectral index of the remaining time period is the remote sensing image feature used for classification of cultivated land with or without salinization;

[0016] S4, constructing a multi-cycle classification model, dividing the sample set of S2 into training samples and verification samples, establishing a classifier for whether cultivated land is salinized or not based on the training samples and the remote sensing image features of S3, applying the verification samples to verify the accuracy, deleting the misclassified samples from all samples and marking them as deleted samples, and marking the remaining samples as remaining samples; the remaining samples enter the next step of the process, performing repeated classifier training, verification and misclassified sample deletion steps, and repeating the sample deletion process multiple times until the verification accuracy of the trained classifier reaches the preset condition, and finally all samples will be divided into two sample sets, namely, a deleted sample set D composed of the samples deleted in each sample deletion process and a remaining sample set R composed of the samples remaining after multiple sample deletion processes;

[0017] S5, using the classifier established in the last sample deletion process in S4 as the classifier corresponding to the remaining sample set R, and the training samples and verification samples when training the classifier as the training samples and verification samples of the remaining sample set R; dividing the deleted sample set D into training samples and verification samples, and training the classifier corresponding to the deleted sample set based on the training data;

[0018] S6, merging the validation samples of the remaining sample set R and the validation samples of the deleted sample set D as the final validation sample set T;

[0019] S7, classify all samples and areas to be classified based on the classifier of the remaining sample set R and the spectral index time series remote sensing image characteristics of the cultivated land, obtain the initial classification result of whether the cultivated land is salinized, and calculate the probability of each pixel being classified as salinized in the process of successive sample deletion, sum the probabilities, and mark it as the probability sum of the sample and pixel being classified as salinized cultivated land;

[0020] S8, constructing a discrimination rule for the applicable area of ​​the two classifiers of the deleted sample set D and the remaining sample set R established in S4 to S5 in the area to be classified; respectively counting the probability sum of the verification sample set T, the misclassified sample set in the verification sample set, and the verification sample set in the deleted sample set D, and classifying them according to the initial classification results of whether there is salinization, and obtaining the probability and distribution maps of the above three subsets respectively; according to the two categories of whether there is salinization, establishing an overlap index to evaluate the overlap of the probabilities and distributions of the above three sample subsets, and selecting the probability sum corresponding to the maximum overlap as the discrimination threshold of the applicable area of ​​the two classifiers in the area to be classified;

[0021] S9, based on the initial classification result of whether the cultivated land in the area to be classified has salinization in S8 and the probability of being classified as salinized cultivated land, and applying the discrimination rule established in S9, divide the two applicable areas of the classifiers established based on the remaining sample set R and the deleted sample set D in the area to be classified; reclassify the applicable area of ​​the deleted sample training classifier, replace the initial classification result of whether the cultivated land in the area has salinization in S8, and obtain the final distribution area of ​​cultivated land with or without salinization;

[0022] S10, based on the soil salt content data of the salinization sample points and the spectral index time series images, calculate the correlation coefficient between each spectral index time series data and the soil salt content, and select the time series features of the four indices with the greatest correlation with the soil salt content;

[0023] S11, based on the four spectral index time series features selected in S10, the features corresponding to the GBDT model that can obtain the best inversion accuracy are obtained through the reverse feature elimination method based on the gradient boosting decision tree model GBDT, and the soil salinity inversion model is trained accordingly;

[0024] S12, based on the trained GBDT regression model, the salinized cultivated land area and the corresponding spectral feature image set, the salinized cultivated land soil salt content is inverted.

[0025] The multispectral remote sensing images in S1 are multispectral images of the MSI sensor of the Sentinel-2 satellite, including all bands of Sentinel-2 images.

[0026] In S1, the quality band for cloud removal is the QA60 band of Sentinel-2 image, and the multispectral image of Sentinel-2 is declouded using the declouding algorithm built into GEE.

[0027] The evaluation of separability in S3 is: JM distance evaluates the separability of two categories of samples in the specified feature space, and the calculation method is:

[0028]

[0029] Among them J ij is the JM distance between sample sets i and j, d ij is the Bhattacharyya distance, m i and m j are the means of sample sets i and j respectively, ∑ i and∑ j are the variance matrices of sample sets i and j respectively, and T represents the transposition operation of the matrix;

[0030] The reverse feature elimination method of the random forest model is to fix the parameters in the random forest classifier, delete the least important feature according to the classifier's evaluation of the importance of each feature, and then use the remaining features to train a new classifier. This is repeated many times until the classification accuracy reaches the best and the features used to train the classifier are obtained.

[0031] All sample sets in S4 are used as initial input data. After that, each sample deletion process uses the remaining sample set output by the previous process as input, randomly divides the samples into training samples and verification samples, and trains the random forest classifier with the training samples. Through the grid search method, all parameter combinations within the set value range are traversed to find the random forest classifier parameter combination that obtains the best classification accuracy on the verification sample, and the trained random forest classifier is used to classify the input data. The misclassified samples are removed and put into the deleted sample set. The remaining sample outputs are used as the remaining samples to enter the next sample deletion process until the classifier accuracy of the random forest classifier trained with the training data reaches 0.8 or above on the corresponding test data. Then the loop ends, and the sample deletion operation is not performed. The input samples are directly output as the remaining samples of the unit.

[0032] The overlap index Score of the validation samples classified as non-salinity cultivated land in S9 Non-sanitary The overlap index Score of the validation sample classified as salinized farmland sanitary The calculation method is:

[0033]

[0034]

[0035] In the validation samples classified as non-salinity / salinity-affected farmland in the initial classification results, f delete (x) is the probability and distribution function of the validation sample belonging to the deleted sample set, f all (x) is the probability and distribution function of all validation samples, f misclass is the probability and distribution function of the misclassified samples, m is the maximum value of the probability and of the verified samples of salinized cultivated land, and n is the maximum value of the probability and of the verified samples of non-salinized cultivated land; in the salinized area and non-salinized cultivated land area of ​​the initial classification result, the discrimination criterion P of the area corresponding to the deleted sample set and the remaining sample set is Threshold-Salinization and P Threshold-Non The calculation method is:

[0036]

[0037]

[0038] In the initial classification results, the probability sum in the salinized cultivated land area is less than P Threshold-Salinization In areas with a probability greater than P and in non-salinized areas Threshold-Non The region is the usage region of the classifier trained based on the deleted sample set, and the remaining region is the applicable region of the classifier trained based on the remaining sample set.

[0039] The correlation coefficient in S11 is the Pearson correlation coefficient, which is used to evaluate the correlation between each spectral index and soil salinity in each time period. The calculation formula is:

[0040]

[0041] PCC k is the correlation between the spectral index and soil salinity in the kth time period, X i and Y i is the spectral index and soil salt content of salinized cultivated land sample i in the kth time period, and are the mean spectral index and soil salinity of the samples, σ X and σ Y are the standard deviation of the spectral index and soil salinity of the samples, respectively, and n is the number of salinized cultivated land samples;

[0042] In order to obtain the correlation PCC between each spectral index and soil salinity in each time period k Based on this, the values ​​of the Pearson correlation coefficient greater than 0.2 in each spectral index time series are summed to obtain the correlation index PCC between each spectral index time series and soil salinity. i, and its calculation formula is:

[0043]

[0044] PCC k is the Pearson correlation coefficient between the value of a spectral index in time period k and the soil salinity, and the operator To round down the calculated value of the formula contained therein;

[0045] Through the correlation index PCC of each spectral index time series and soil salt content k The size of PCC is selected k The largest of the four spectral indices.

[0046] In S12, based on the time series data of the four selected spectral indices, a soil salinity inversion model is constructed through the gradient boosting decision tree (GBDT) model. The features with the lowest importance are removed according to the feature importance index calculated by the model, and the soil salinity inversion model is retrained with the remaining features. The above steps are repeated until the accuracy of the soil salinity inversion model based on the gradient boosting decision tree reaches the best.

[0047] The beneficial technical effects of the present invention are:

[0048] In view of the problem that existing research easily confuses non-salinized farmland and slightly salinized farmland, which restricts the accuracy of inversion of soil salinity in farmland, a method is proposed to first accurately identify the area of ​​salinized farmland and then invert the soil salinity of salinized farmland separately. This method can eliminate the interference of non-salinized areas and improve the accuracy of the inversion results of soil salinity in farmland.

[0049] In order to solve the problem of low separability of farmland with low salinization degree and non-salinization degree, a multi-cycle classification method consisting of multiple sample elimination processes was proposed. The original sample sets of non-salinization and salinized farmland with poor separability were divided into two sample sets with better separability. Separate classifiers were trained on the two sample sets, and judgment rules were generated to divide the area to be divided into multiple areas, which were then classified using different classifiers.

[0050] The invention improves the classification accuracy of non-salinized and salinized cultivated land areas, and the method has a high degree of automation and portability. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 Schematic diagram of the overall method of the present invention.

[0052] Figure 2 The figure shows the spectral index calculation method of the present invention. DETAILED DESCRIPTION

[0053] See also Figures 1-2The present invention provides a method for inverting salinity of cultivated land soil based on multi-cycle classification.

[0054] S1, based on the Google Earth Engine platform, obtain the multispectral remote sensing time series remote sensing images of the study area, remove the cloud from the multispectral images through the quality bands of the multispectral images, calculate multiple remote sensing image spectral indices reflecting vegetation and soil characteristics, and obtain the time series images of each spectral index;

[0055] S2, according to the national soil salinization classification standard and the salt content in the cultivated soil samples, the samples are divided into non-salinized cultivated land samples and salinized cultivated land samples; according to the national soil salinization classification standard and the salt content in the cultivated soil, the samples are divided into non-salinized samples and salinized samples;

[0056] S3, respectively calculate the separability index of non-salinized cultivated land samples and salinized cultivated land samples on each spectral index time series to evaluate the separability of the two samples on the spectral index time series; select the spectral index time series with the largest index value, and remove the time period data with lower importance in the selected spectral index time series through the reverse feature elimination method of the random forest model, and the spectral index of the remaining time period is the remote sensing image feature used for classification of cultivated land with or without salinization;

[0057] S4, constructing a multi-cycle classification model, dividing the sample set of S2 into training samples and verification samples, establishing a classifier for whether cultivated land is salinized or not based on the training samples and the remote sensing image features of S3, applying the verification samples to verify the accuracy, deleting the misclassified samples from all samples and marking them as deleted samples, and marking the remaining samples as remaining samples; the remaining samples enter the next step of the process, performing repeated classifier training, verification and misclassified sample deletion steps, and repeating the sample deletion process multiple times until the verification accuracy of the trained classifier reaches the preset condition, and finally all samples will be divided into two sample sets, namely, a deleted sample set D composed of the samples deleted in each sample deletion process and a remaining sample set R composed of the samples remaining after multiple sample deletion processes;

[0058] S5, using the classifier established in the last sample deletion process in S4 as the classifier corresponding to the remaining sample set R, and the training samples and verification samples when training the classifier as the training samples and verification samples of the remaining sample set R; dividing the deleted sample set D into training samples and verification samples, and training the classifier corresponding to the deleted sample set based on the training data;

[0059] S6, merging the validation samples of the remaining sample set R and the validation samples of the deleted sample set D as the final validation sample set T;

[0060] S7, classify all samples and areas to be classified based on the classifier of the remaining sample set R and the spectral index time series remote sensing image characteristics of the cultivated land, obtain the initial classification result of whether the cultivated land is salinized, and calculate the probability of each pixel being classified as salinized in the process of successive sample deletion, sum the probabilities, and mark it as the probability sum of the sample and pixel being classified as salinized cultivated land;

[0061] S8, constructing a discrimination rule for the applicable area of ​​the two classifiers of the deleted sample set D and the remaining sample set R established in S4 to S5 in the area to be classified; respectively counting the probability sum of the verification sample set T, the misclassified sample set in the verification sample set, and the verification sample set in the deleted sample set D, and classifying them according to the initial classification results of whether there is salinization, and obtaining the probability and distribution maps of the above three subsets respectively; according to the two categories of whether there is salinization, establishing an overlap index to evaluate the overlap of the probabilities and distributions of the above three sample subsets, and selecting the probability sum corresponding to the maximum overlap as the discrimination threshold of the applicable area of ​​the two classifiers in the area to be classified;

[0062] S9, based on the initial classification result of whether the cultivated land in the area to be classified has salinization in S8 and the probability of being classified as salinized cultivated land, and applying the discrimination rule established in S9, divide the two applicable areas of the classifiers established based on the remaining sample set R and the deleted sample set D in the area to be classified; reclassify the applicable area of ​​the deleted sample training classifier, replace the initial classification result of whether the cultivated land in the area has salinization in S8, and obtain the final distribution area of ​​cultivated land with or without salinization;

[0063] S10, based on the soil salt content data of the salinization sample points and the spectral index time series images, calculate the correlation coefficient between each spectral index time series data and the soil salt content, and select the time series features of the four indices with the greatest correlation with the soil salt content;

[0064] S11, based on the four spectral index time series features selected in S10, the features corresponding to the GBDT model that can obtain the best inversion accuracy are obtained through the reverse feature elimination method based on the gradient boosting decision tree model GBDT, and the soil salinity inversion model is trained accordingly;

[0065] S12, based on the trained GBDT regression model, the salinized cultivated land area and the corresponding spectral feature image set, the salinized cultivated land soil salt content is inverted.

[0066] The multispectral remote sensing images in S1 are multispectral images of the MSI sensor of the Sentinel-2 satellite, including all bands of Sentinel-2 images.

[0067] In S1, the quality band for cloud removal is the QA60 band of Sentinel-2 image, and the multispectral image of Sentinel-2 is declouded using the declouding algorithm built into GEE.

[0068] The evaluation of separability in S3 is: JM distance evaluates the separability of two categories of samples in the specified feature space, and the calculation method is:

[0069]

[0070] Among them J ij is the JM distance between sample sets i and j, d ij is the Bhattacharyya distance, m i and m j are the means of sample sets i and j respectively, ∑ i and∑ j are the variance matrices of sample sets i and j respectively, and T represents the transposition operation of the matrix;

[0071] The reverse feature elimination method of the random forest model is to fix the parameters in the random forest classifier, delete the least important feature according to the classifier's evaluation of the importance of each feature, and then use the remaining features to train a new classifier. This is repeated many times until the classification accuracy reaches the best and the features used to train the classifier are obtained.

[0072] All sample sets in S4 are used as initial input data. After that, each sample deletion process uses the remaining sample set output by the previous process as input, randomly divides the samples into training samples and verification samples, and trains the random forest classifier with the training samples. Through the grid search method, all parameter combinations within the set value range are traversed to find the random forest classifier parameter combination that obtains the best classification accuracy on the verification sample, and the trained random forest classifier is used to classify the input data. The misclassified samples are removed and put into the deleted sample set. The remaining sample outputs are used as the remaining samples to enter the next sample deletion process until the classifier accuracy of the random forest classifier trained with the training data reaches 0.8 or above on the corresponding test data. Then the loop ends, and the sample deletion operation is not performed. The input samples are directly output as the remaining samples of the unit.

[0073] The overlap index Score of the validation samples classified as non-salinity cultivated land in S9 Non-sanitary The overlap index Score of the validation sample classified as salinized farmland sanitary The calculation method is:

[0074]

[0075]

[0076] In the validation samples classified as non-salinity / salinity-affected farmland in the initial classification results, f delete (x) is the probability and distribution function of the validation sample belonging to the deleted sample set, f all (x) is the probability and distribution function of all validation samples, f misclass is the probability and distribution function of the misclassified samples, m is the maximum value of the probability and the verification sample of salinized cultivated land, and n is the maximum value of the probability and the verification sample of non-salinized cultivated land;

[0077] In the salinized area and non-salinized cultivated land area of ​​the initial classification results, the discrimination criterion P of the area corresponding to the deleted sample set and the remaining sample set is Threshold-Salinization and P Threshold-Non The calculation method is:

[0078]

[0079]

[0080] In the initial classification results, the probability sum in the salinized cultivated land area is less than P Threshold-Salinization In areas with a probability greater than P and in non-salinized areas Threshold-Non The region is the usage region of the classifier trained based on the deleted sample set, and the remaining region is the applicable region of the classifier trained based on the remaining sample set.

[0081] The correlation coefficient in S11 is the Pearson correlation coefficient, which is used to evaluate the correlation between each spectral index and soil salinity in each time period. The calculation formula is:

[0082]

[0083] PCC k is the correlation between the spectral index and soil salinity in the kth time period, X i and Y i is the spectral index and soil salt content of salinized cultivated land sample i in the kth time period, and are the mean spectral index and soil salinity of the samples, σ X and σ Y are the standard deviation of the spectral index and soil salinity of the samples, respectively, and n is the number of salinized cultivated land samples;

[0084] In order to obtain the correlation PCC between each spectral index and soil salinity in each time period kBased on this, the values ​​of the Pearson correlation coefficient greater than 0.2 in each spectral index time series are summed to obtain the correlation index PCC between each spectral index time series and soil salinity. i , and its calculation formula is:

[0085]

[0086] PCC k is the Pearson correlation coefficient between the value of a spectral index in time period k and the soil salinity, and the operator is the calculated value of the formula contained therein;

[0087] Through the correlation index PCC of each spectral index time series and soil salt content k The size of PCC is selected k The largest of the four spectral indices.

[0088] In S12, based on the time series data of the four selected spectral indices, a soil salinity inversion model is constructed through the gradient boosting decision tree (GBDT) model. The features with the lowest importance are removed according to the feature importance index calculated by the model, and the soil salinity inversion model is retrained with the remaining features. The above steps are repeated until the accuracy of the soil salinity inversion model based on the gradient boosting decision tree reaches the best.

[0089] The above are only preferred embodiments of the present invention, which are only used to help understand the method and core ideas of the present application. The protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

[0090] The present invention fundamentally solves the problem in the prior art that non-salinized and slightly salinized remote sensing image features are confused and the extraction accuracy of salinized farmland is low due to other factors. On this basis, time series images are screened, key image features that can reflect the degree of salinization are selected, and an inversion model for the salinized farmland soil salt content is established. Compared with traditional soil salinity inversion methods, the present invention can effectively improve the extraction accuracy of non-salinized and salinized farmland, and further improve the prediction accuracy of the salinized farmland soil salt content by eliminating interference from non-salinized areas.

Claims

1. A method for inversion of cultivated soil salinity based on multi-cycle classification, It is characterized in that The following steps are involved: S1, based on the Google Earth Engine platform, obtain the multispectral remote sensing time series images of the study area, remove the cloud from the multispectral images through the quality bands of the multispectral images, and calculate multiple remote sensing image spectral indices reflecting vegetation and soil characteristics to obtain the time series images of each spectral index; S2, according to the national soil salinization classification standard and the salt content in the cultivated soil samples, the samples were divided into non-salinized cultivated land samples and salinized cultivated land samples; S3, respectively calculate the separability index of non-salinized cultivated land samples and salinized cultivated land samples on each spectral index time series to evaluate the separability of the two samples on the spectral index time series; select the spectral index time series with the largest index value, and remove the time period data with lower importance in the selected spectral index time series through the reverse feature elimination method of the random forest model, and the spectral index of the remaining time period is the remote sensing image feature used for classification of cultivated land with or without salinization; S4, constructing a multi-cycle classification model, dividing the sample set of S2 into training samples and verification samples, establishing a classifier for whether cultivated land is salinized or not based on the training samples and the remote sensing image features of S3, applying the verification samples to verify the accuracy, deleting the misclassified samples from all samples and marking them as deleted samples, and marking the remaining samples as remaining samples; the remaining samples enter the next step of the process, performing repeated classifier training, verification and misclassified sample deletion steps, and repeating the sample deletion process multiple times until the verification accuracy of the trained classifier reaches the preset condition, and finally all samples will be divided into two sample sets, namely, a deleted sample set D composed of the samples deleted in each sample deletion process and a remaining sample set R composed of the samples remaining after multiple sample deletion processes; S5, using the classifier established in the last sample deletion process in S4 as the classifier corresponding to the remaining sample set R, and the training samples and verification samples when training the classifier as the training samples and verification samples of the remaining sample set R; dividing the deleted sample set D into training samples and verification samples, and training the classifier corresponding to the deleted sample set based on the training data; S6, merging the validation samples of the remaining sample set R and the validation samples of the deleted sample set D as the final validation sample set T; S7, classify all samples and areas to be classified based on the classifier of the remaining sample set R and the spectral index time series remote sensing image characteristics of the cultivated land, obtain the initial classification result of whether the cultivated land is salinized, and calculate the probability of each pixel being classified as salinized in the process of successive sample deletion, sum the probabilities, and mark it as the probability sum of the sample and pixel being classified as salinized cultivated land; S8, constructing a discrimination rule for the applicable area of ​​the two classifiers of the deleted sample set D and the remaining sample set R established in S4 to S5 in the area to be classified; The probability and distribution diagram of the validation sample set T, the misclassified sample set in the validation sample set, and the validation sample set in the deleted sample set D are respectively counted, and the initial classification results of the presence or absence of salinization are used to classify them, and the probability and distribution diagram of the validation sample set T, the misclassified sample set in the validation sample set, and the deleted sample set D are respectively obtained; according to the two categories of presence or absence of salinization, an overlap index is established to evaluate the overlap of the probabilities and distributions of the above three sample subsets, and the probability and corresponding to the maximum overlap are selected as the discrimination threshold of the applicable area of ​​the two classifiers in the area to be classified; The calculation method of the overlap index is: The overlap index Score of the validation samples classified as non-salinity cultivated land Non-sanitary The overlap index Score of the validation sample classified as salinized farmland sanitary The calculation method is: In the validation samples classified as non-salinity / salinity-affected farmland in the initial classification results, f delete (x) is the probability and distribution function of the validation sample belonging to the deleted sample set, f all (x) is the probability and distribution function of all validation samples, f misclass is the probability and distribution function of the misclassified samples, m is the maximum value of the probability and of the verified samples of salinized cultivated land, and n is the maximum value of the probability and of the verified samples of non-salinized cultivated land; in the salinized area and non-salinized cultivated land area of ​​the initial classification result, the discrimination criterion P of the area corresponding to the deleted sample set and the remaining sample set is Threshold-Salinization and P Threshold-Non The calculation method is: In the initial classification results, the probability sum in the salinized cultivated land area is less than P Threshold-Salinization In areas with a probability greater than P and in non-salinized areas Threshold-Non The area is the usage area of ​​the classifier trained based on the deleted sample set, and the remaining area is the applicable area of ​​the classifier trained based on the remaining sample set; S9, based on the initial classification result of whether the cultivated land in the area to be classified has salinization in S8 and the probability of being classified as salinized cultivated land, and applying the discrimination rule established in S8, divide the two applicable areas of the classifiers established based on the remaining sample set R and the deleted sample set D in the area to be classified; reclassify the applicable area of ​​the deleted sample training classifier, replace the initial classification result of whether the cultivated land in the area has salinization in S8, and obtain the final distribution area of ​​cultivated land with or without salinization; S10, based on the soil salt content data of the salinization sample points and the spectral index time series images, calculate the correlation coefficient between each spectral index time series data and the soil salt content, and select the time series features of the four indices with the greatest correlation with the soil salt content; S11, based on the four spectral index time series features selected in S10, the features corresponding to the GBDT model that can obtain the best inversion accuracy are obtained through the reverse feature elimination method based on the gradient boosting decision tree model GBDT, and the soil salinity inversion model is trained accordingly; S12, based on the trained GBDT regression model, the salinized cultivated land area and the corresponding spectral feature image set, the salinized cultivated land soil salt content is inverted.

2. The method for inverting salinity of cultivated land soil based on multi-cycle classification according to claim 1, It is characterized in that The multispectral remote sensing image in S1 is a multispectral image of the MSI sensor of the Sentinel-2 satellite, including all bands of the Sentinel-2 image.

3. The method for inverting salinity of cultivated land soil based on multi-cycle classification according to claim 1, It is characterized in that The declouding process in S1 is performed on the QA60 band of the Sentinel-2 image, and the declouding algorithm provided by GEE is used to perform declouding on the multispectral image of Sentinel-2.

4. The method for inverting salinity of cultivated land soil based on multi-cycle classification according to claim 1, It is characterized in that The evaluation of separability in S3 is: JM distance evaluates the separability of two categories of samples in the specified feature space, and the calculation method is: J ij is the JM distance between sample sets i and j, d ij is the Bhattacharyya distance, m i and m j are the means of sample sets i and j respectively, ∑ i and∑ j are the variance matrices of sample sets i and j respectively, and T represents the transposition operation of the matrix; The reverse feature elimination method of the random forest model is to fix the parameters in the random forest classifier, delete the least important features according to the classifier's evaluation of the importance of each feature, and then use the remaining features to train a new classifier, repeating this process multiple times until the best classification accuracy is achieved and the features used when training the classifier are obtained.

5. The method for inversion of cultivated land soil salinity based on multi-cycle classification according to claim 1, It is characterized in that All sample sets in S4 are used as initial input data. After that, each sample deletion process uses the remaining sample set output by the previous process as input, randomly divides the samples into training samples and verification samples, and trains the random forest classifier with the training samples. Through the grid search method, all parameter combinations within the set value range are traversed to find the random forest classifier parameter combination that obtains the best classification accuracy on the verification sample, and the trained random forest classifier is used to classify the input data, and the misclassified samples are removed and put into the deleted sample set. The remaining sample outputs are used as the remaining samples to enter the next sample deletion process until the classifier accuracy of the random forest classifier trained with the training data reaches 0.8 or more on the corresponding test data. Then the loop ends, and the sample deletion operation is not performed, and the input samples are directly output as the remaining samples.

6. The method for inverting salinity of cultivated land soil based on multi-cycle classification according to claim 1, It is characterized in that The correlation coefficient in S11 is the Pearson correlation coefficient, which is used to evaluate the correlation between each spectral index and soil salinity in each time period. The calculation formula is: PCC k is the correlation between the spectral index and soil salinity in the kth time period, X i and Y i is the spectral index and soil salt content of salinized cultivated land sample i in the kth time period, and are the mean spectral index and soil salinity of the samples, σ X and σ Y are the standard deviation of the spectral index and soil salinity of the samples, respectively, and n is the number of salinized cultivated land samples; In order to obtain the correlation PCC between each spectral index and soil salinity in each time period k Based on this, the values ​​of the Pearson correlation coefficient greater than 0.2 in each spectral index time series are summed to obtain the correlation index PCC between each spectral index time series and soil salinity. i , and its calculation formula is: PCC k is the Pearson correlation coefficient between the value of a spectral index in time period k and the soil salinity, and the operator To round up the calculated value of the formula contained therein; Through the correlation index PCC of each spectral index time series and soil salt content k The size of PCC is selected k The largest of the four spectral indices.

7. The method for inverting salinity of cultivated soil based on multi-cycle classification according to claim 1, It is characterized in that In S12, based on the time series data of the four selected spectral indices, a soil salinity inversion model is constructed through a gradient boosting decision tree (GBDT) model, and the features with the lowest importance are removed according to the feature importance index calculated by the model. The soil salinity inversion model is retrained with the remaining features, and the above steps are repeated until the accuracy of the soil salinity inversion model based on the gradient boosting decision tree reaches the best.