A soil erosion assessment method and related equipment
By constructing a soil erosion model and combining it with remote sensing information, taking into account factors such as rainfall and vegetation coverage, the problem of inaccurate soil erosion assessment in the existing technology is solved, the efficiency and accuracy of the assessment are improved, and better soil erosion risks and Contamination level assessment.
Patent Information
- Application Number
- CN202410265294.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-08
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-03-08
AI Technical Summary
Existing soil erosion assessment methods cannot accurately reflect the degree of soil erosion control, especially in areas lacking detailed data, resulting in low assessment efficiency and low scalability.
By obtaining the training sample set and the target data set, preprocessing and feature extraction are performed to build an initial soil erosion model. Combined with remote sensing image information, considering rainfall, vegetation coverage and slope factors, the soil erosion amount and pollution level are calculated, and the preset water erosion model is used. Computational models determine soil pollution levels.
It improves the accuracy and efficiency of soil erosion assessment, enables effective assessment of soil erosion risks and pollution levels in different areas, and improves decision support for soil erosion control.
Smart Images

Figure CN118212520B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a soil erosion assessment method and related equipment. Background Art
[0002] Soil erosion refers to the destruction or displacement of the physical structure or chemical composition of soil or soil parent material under the action of external forces such as water, wind, freeze-thaw, gravity, temperature, and human factors, including processes such as destruction, erosion, transportation, and deposition. Except for permafrost areas, most areas in the world have experienced or are experiencing soil erosion to varying degrees. The Universal Soil Loss Equation (USLE) can be used to quantitatively evaluate the soil erosion status of the study area over a large area. Regarding the characterization of the degree of watershed management, the main indicator used in existing studies is the degree of soil and water loss management, that is, "the ratio of the area of soil and water loss management to the area of original soil and water loss in a certain area." However, this indicator cannot accurately represent the degree of soil and water loss management. In some watersheds, the degree of soil and water loss management has reached 100%, but there is still soil and water loss that needs further management. Some scholars have proposed to use the ratio of the minimum possible soil erosion modulus to the current soil erosion modulus to characterize the degree of soil erosion control, which can reflect the degree of soil erosion management in the watershed. However, this type of method requires a large amount of field monitoring data to assist in determining the suitable distribution areas of dams, terraces and woodlands. The minimum possible soil erosion modulus is difficult to calculate in a large number of areas without detailed data, resulting in low efficiency in assessing the degree of soil erosion control. Therefore, the method is not very applicable.
[0003] The Universal Soil Loss Equation (RUSLE) takes into account the natural factors that affect soil erosion and quantitatively calculates soil erosion through factors such as rainfall erosivity, soil erodibility, slope gradient and length, crop cover, and soil and water conservation measures. The Universal Soil Loss Equation is highly practical and has been widely used around the world. However, since the result calculated by the Universal Soil Loss Equation is the current situation of soil loss in a certain place during a certain period of time, it cannot represent the local soil loss risk. Therefore, when assessing the soil loss risk, it is necessary to consider the probability of soil erosion occurring in the region over a long period of time.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The purpose of this application is to provide a soil erosion assessment method and related equipment, which at least to a certain extent overcomes the problems existing in the prior art. By extracting the soil properties, topography and vegetation types of the study area and assigning different scores through expert scoring or other assignment means, the soil erosion risk of the study area is obtained by layer superposition. By extracting remote sensing image information of the study area, the seasonal variation characteristics of rainfall and vegetation coverage and the influence of slope factors on soil and water conservation measures are taken into account, which can effectively improve the accuracy of soil erosion assessment.
[0006] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present invention.
[0007] According to one aspect of the present application, a soil erosion assessment method is provided, comprising: acquiring a training sample set and a target data set; preprocessing the training sample set to generate a training sample set with identification information; constructing an initial soil erosion model based on a preset processing rule; processing the initial soil erosion model based on the training sample set with identification information to generate a target soil erosion model; processing the target data set based on the target soil erosion model to generate a soil erosion amount in a target area; processing the soil erosion amount in the target area based on a preset water erosion calculation model to generate a soil pollution level in the target area, wherein the preset water erosion calculation model determines the soil pollution level in the target area based on the following formula: SPL=T(|Paose-Raose|); wherein SPL represents the soil pollution level, T is a preset time duration, Paose is a preset soil erosion amount in the target area, Raose is a real-time soil erosion amount in the target area, and |Paose-Raose| is an absolute value of a difference between a preset soil erosion amount and a real-time soil erosion amount in the target area.
[0008] In one embodiment of the present application, the preprocessing of the training sample set to generate a training sample set with identification information includes: extracting features from the training sample set to determine an original feature library; dividing each feature data set according to the original feature library to generate a training data set and a test data set; using a classifier to predict each test data set divided from the original feature library to determine a prediction result; using a preset algorithm to train each training data set divided from the original feature library to obtain a test set class prediction result; generating a fused feature data set based on the prediction result and the test set class prediction result; processing the fused feature data set based on a preset feature screening rule to generate identification information, wherein the identification information is used to identify feature information in which the amount of soil erosion is greater than a preset threshold.
[0009] In one embodiment of the present application, constructing an initial soil erosion model based on preset processing rules includes: constructing a preset soil erosion model; obtaining soil erosion information of a preset area, wherein the soil erosion information includes a slope length and steepness factor (topography factor) and a vegetation cover factor; processing the soil erosion information of the preset area based on the preset soil erosion model to generate a predicted soil erosion amount for the preset area; if the error between the predicted soil erosion amount of the preset area and the actual soil erosion amount of the preset area is less than a preset threshold, using the preset soil erosion model as the initial soil erosion model.
[0010] In one embodiment of the present application, the initial soil erosion model is processed based on the training sample set with identification information to generate a target soil erosion model, including: dividing the training sample set with identification information into a training set for training the initial soil erosion model and a test set for testing the initial soil erosion model based on a preset ratio; extracting multiple data groups from the training set, wherein each data group contains a preset number of data samples, wherein at least one data sample includes identification information; training the initial soil erosion model based on the data samples in the multiple data groups to generate a trained soil erosion model; processing the trained soil erosion model based on the test set to generate a test result; if the data sample containing the identification information in the test result is soil information with a soil erosion amount greater than a preset threshold, the trained soil erosion model is used as the target soil erosion model.
[0011] In one embodiment of the present application, extracting multiple groups of data groups from the training set includes: dividing the training set based on identification information to generate a number of number of class samples; obtaining any smaller number of class samples in the training set; generating adjacent samples based on the distance between any smaller number of class samples and other smaller number of class samples of the same category, wherein the adjacent samples include a preset number of any smaller number of class samples; sampling the adjacent samples to generate a preset number of sampled samples; generating multiple groups of data groups based on any minority class sample and each sampled sample.
[0012] In one embodiment of the present application, the sampling of the adjacent samples to generate a preset number of sampling samples includes: determining a sampling ratio based on the number of samples of each category in the training set; determining a sampling ratio based on the sampling ratio; and sampling the adjacent samples based on the sampling ratio to generate a preset number of sampling samples.
[0013] Another aspect of the present application is a soil erosion assessment device, characterized in that the device includes: an acquisition module for acquiring a training sample set and a target data set; a processing module for preprocessing the training sample set to generate a training sample set with identification information; constructing an initial soil erosion model based on a preset processing rule; processing the initial soil erosion model based on the training sample set with identification information to generate a target soil erosion model; processing the target data set based on the target soil erosion model to generate a soil erosion amount in a target area; processing the soil erosion amount in the target area based on a preset water erosion calculation model to generate a soil pollution level in the target area, wherein the preset water erosion calculation model determines the soil pollution level in the target area based on the following formula: SPL=T(|Paose-Raose|); wherein SPL represents the soil pollution level, T is a preset duration, Paose is a preset soil erosion amount in the target area, Raose is a real-time soil erosion amount in the target area, and |Paose-Raose| is the absolute value of the difference between the preset soil erosion amount and the real-time soil erosion amount in the target area.
[0014] According to another aspect of the present application, an electronic device is provided, comprising: a first processor; and a memory for storing executable instructions of the first processor; wherein the first processor is configured to implement the above-mentioned soil erosion assessment method by executing the executable instructions.
[0015] According to another aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a second processor, the above-mentioned soil erosion assessment method is implemented.
[0016] According to another aspect of the present application, a computer program product is provided, including a computer program, characterized in that when the computer program is executed by a third processor, the above-mentioned soil erosion assessment method is implemented.
[0017] The present application provides a soil erosion assessment method and related equipment, wherein a server obtains a training sample set and a target data set; pre-processes the training sample set to generate a training sample set with identification information; constructs an initial soil erosion model based on a preset processing rule; processes the initial soil erosion model based on the training sample set with identification information to generate a target soil erosion model; processes the target data set based on the target soil erosion model to generate the amount of soil erosion in the target area; processes the amount of soil erosion in the target area based on a preset water erosion calculation model to generate the soil pollution level in the target area. By extracting remote sensing image information of the study area, the seasonal variation characteristics of rainfall and vegetation coverage and the influence of slope factors on soil and water conservation measures are taken into account, which can effectively improve the accuracy of soil erosion assessment.
[0018] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A flow chart showing a soil erosion assessment method provided by an embodiment of the present application;
[0020] Figure 2 A schematic structural diagram of a soil erosion assessment device provided in one embodiment of the present application is shown;
[0021] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application is shown;
[0022] Figure 4 A schematic diagram of a storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0023] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0024] Combine the following Figure 1 To describe the soil erosion assessment method according to the exemplary embodiment of the present application. It should be noted that the following application scenarios are only shown to facilitate understanding of the spirit and principle of the present application, and the embodiments of the present application are not limited in this regard. On the contrary, the embodiments of the present application can be applied to any applicable scenario.
[0025] In one embodiment, the present application also proposes a soil erosion assessment method and related equipment. Figure 1 The following schematically shows a flow chart of a soil erosion assessment method according to an embodiment of the present application. Figure 1 As shown, the method is applied to a server, comprising:
[0026] S101, obtaining a training sample set and a target data set.
[0027] In one embodiment, the training sample set and the target data set include land slope length and steepness factors and vegetation cover factors, wherein the land slope length and steepness factors include downhill farming, contour ridge planting, contour strip farming, and horizontal terraces, wherein different land slope lengths and steepnesses correspond to different slopes; the vegetation cover factors include forest and grassland and farmland, and forest and grassland include but are not limited to primary forests, secondary forests, sparse forests, wastelands, grasslands, fruit forests, paddy fields, shrubs, and difficult-to-use land.
[0028] S102: pre-process the training sample set to generate a training sample set with identification information.
[0029] In one embodiment, the training sample set includes an overview of the relevant land. A remote sensing image of the relevant land is obtained, and the panchromatic band and the green, red, and near-infrared bands of the remote sensing image are fused to generate a multispectral image of the study area. The multispectral image is subjected to radiation correction, geometric correction, and image enhancement preprocessing, and the preprocessed image is classified using a visual interpretation method to obtain a land use spatial distribution map of the study area including land use spatial distribution data, and the characteristic information of the soil erosion amount of the soil information in the land use spatial distribution data being greater than a preset threshold is set with corresponding identification information, that is, the identification information is used to identify the characteristic information of the soil erosion amount of the soil information being greater than a preset threshold. Among them, the identification information can be represented by a preset specific symbol. This embodiment does not limit the specific symbol, as long as the present solution can be implemented. The characteristic information of the preset threshold is not specifically limited in this embodiment, as long as it meets actual needs.
[0030] In another embodiment, feature extraction is performed on the training sample set to determine the original feature library, wherein the feature extraction includes four features: original features, statistical features, frequency domain features, and time domain features. The commonly used features extracted are specifically introduced as follows: Original features: The original features are the collected data, after preprocessing, using all the information in each sample data matrix for model training. In order not to lose sample information, each curve of the sample is directly unfolded and stretched into a row vector. Statistical features: Statistical features consider the change trend of all data points on the curve. By extracting statistical features, the dimension of the data sample can be reduced, which is convenient for analyzing genetic data and accelerating the convergence speed during model training. The extracted statistical features include maximum value, minimum value, mean, variance, and standard deviation. Frequency domain features: Wavelet transform is performed on the data set, and the coefficients obtained by the second-order wavelet transform are used as new features to constitute frequency domain features. Time domain features: Time domain features mainly study the change laws of signals and systems from the perspective of time. Time domain features can reflect the information of curve data in time changes. This process mainly extracts the first-order forward difference of the data set to form the first-order difference time domain features, and uses the exponential moving average feature processing method.
[0031] According to the original feature library, each feature data set is divided to generate a training data set and a test data set. The original feature library is divided using existing technology to generate a training data set and a test data set. In this embodiment, as long as the division can be performed, no restriction is imposed on the method used. The classifier is used to divide the original feature library into each test data set for prediction, and the prediction result is determined. The preset algorithm is used to divide each training data set in the original feature library for training to obtain the test set class prediction result. According to the prediction result and the test set class prediction result, a fusion feature data set is generated. The preset algorithm is used to divide each training data set in the original feature library for training to obtain the test set class prediction result. In the embodiment, as long as the test set class prediction result can be obtained, no restriction is imposed on the algorithm used. According to the prediction result and the test set class prediction result, a fusion feature data set is generated. The classification results of Evalfeature and Evaloriginal are judged. If Evalfeature is improved compared with Evaloriginal, the feature is incorporated into Dfusion, and the final fusion feature data set Dfusion is obtained after the traversal is completed. Specifically, the data classification result corresponding to the training data set is obtained, because the classification result of each training data set can be determined in advance, and the data can be directly obtained from the outside. Compare the prediction results with the data classification results to determine the first comparison result; compare the test set prediction results with the data classification results to determine the second comparison result; judge whether the second comparison result meets the first comparison result. When the preset requirements are met, determine the corresponding features as the fused feature data set.
[0032] Based on the preset feature screening rules, the fused feature data set is processed to generate identification information, and the fused feature data set includes but is not limited to Cplant plant absorption factor (m / day), SMDmax maximum soil water shortage (mm), Ksoil soil adsorption constant ( / day), n nonlinear adsorption constant related to temperature (-), FSD soil splash erosion coefficient (s / m), ESD soil splash erosion capacity (kg / m2 / s), Veg vegetation coverage, FTC soil transport coefficient (kg / m2 / km2); nTC soil transport nonlinear constant. When the value of the above fused feature parameter is greater than the preset threshold, the corresponding identification information is generated, wherein the identification information is used to identify the characteristic information that the soil erosion amount of the soil information is greater than the preset threshold.
[0033] S103, constructing an initial soil erosion model based on preset processing rules.
[0034] In one implementation, a preset soil erosion model is constructed; soil erosion information of a preset area is obtained, wherein the soil erosion information includes a slope length steepness factor (topographic factor) and a vegetation coverage factor; the soil erosion information of the preset area is processed based on the preset soil erosion model to generate a predicted soil erosion amount of the preset area; if the error between the predicted soil erosion amount of the preset area and the actual soil erosion amount of the preset area is less than a preset threshold, the preset soil erosion model is used as the initial soil erosion model. The preset soil erosion model selects the slope and slope length, which are the main key terrain factors that determine the runoff scouring capacity, and performs terrain visualization from three aspects: terrain slope, slope length, and the product of the two. Since the vegetation coverage that affects soil erosion is closely related to land use, relevant studies have given a corresponding table of the relationship between land use and vegetation coverage. With the help of this table, the land use attribute column is expanded to achieve spatial visualization of the vegetation coverage value. The predicted soil erosion amount of the preset area is generated through the above content. The size of the preset threshold is not specifically limited in this embodiment, as long as it meets actual needs.
[0035] In another embodiment, the preset soil erosion model sets each erosion factor as an independent variable and the erosion status as a dependent variable, and establishes a corresponding table of the two at a 30-meter grid scale, and extracts the area of interest of the corresponding layer area by longitude and latitude, slope classification boundaries, elevation classification boundaries and arbitrary lines for evaluation and table building. The preset soil erosion model includes an erosion intensity information analysis module for different slope levels and different land use types, a curve under a two-dimensional coordinate plane, a bar and pie chart drawing module, a correlation coefficient tabulation module, and a single factor analysis report generation module. The above modules can not only better display the spatiotemporal characteristics of the single factor of soil erosion, but also display the relationship between the hierarchical classification characteristics of each erosion factor and soil erosion, providing more basis and channels for soil erosion research.
[0036] In another embodiment, the relationship between soil type and soil particle properties is combined, and the K value of different soil types is calculated with reference to the erosion productivity impact calculator EPIC. A soil type-related attribute column is established to achieve spatial visualization of soil erodibility.
[0037] S104: Process the initial soil erosion model based on the training sample set with identification information to generate a target soil erosion model.
[0038] In one implementation, historical soil erosion areas can be used to identify which characteristic parameters are available for model calculation, and the training sample set of information to be identified is used to set weights for the parameters that can be used for calculation, so that the conclusions drawn are more accurate. For example, what factors cause areas with large amounts of soil erosion? Are the main influencing factors of different areas with large amounts of soil erosion the same? This is a continuous learning process.
[0039] In another embodiment, a training sample set with identification information is divided into a training set for training an initial soil erosion model and a test set for testing the initial soil erosion model based on a preset ratio; multiple data groups are extracted from the training set, wherein each data group contains a preset number of data samples, wherein at least one data sample includes identification information; the initial soil erosion model is trained based on the data samples in the multiple data groups to generate a trained soil erosion model; the trained soil erosion model is processed based on the test set to generate a test result; if the data sample containing the identification information in the test result is soil information with a soil erosion amount greater than a preset threshold, the trained soil erosion model is used as the target soil erosion model.
[0040] The training sample set with identification information is divided into a training set for training the initial soil erosion model and a test set for testing the initial soil erosion model according to a preset ratio, wherein the ratio can be set as needed, such as 1:8 or 1:5, etc.; multiple data groups are extracted from the training set, wherein each data group contains a preset number of data samples, wherein at least one data sample includes identification information. The initial soil erosion model is trained based on the data samples in the multiple data groups to generate a trained soil erosion model, and the trained soil erosion model is processed based on the test set to generate a test result. If the data sample containing the identification information in the test result is characteristic information that the soil erosion amount of the soil information is greater than a preset threshold, the trained soil erosion model is used as the target soil erosion model.
[0041] S105: Process the target data set based on the target soil erosion model to generate a soil erosion amount in a target area.
[0042] In one embodiment, based on the scenario combination of different future land use types and meteorological conditions, the hydrological cycle process and nutrient cycle process under the scenario conditions are simulated through the calibrated and corrected target soil erosion model to obtain the spatial distribution layer of total water production; the soil interception and vegetation absorption parameters are set to 0, and the vegetation management and vegetation coverage parameters are set to 1, and the model is run again, and the sediment content, organic nutrients and inorganic nutrients obtained from the two model runs are subtracted to obtain the soil and water conservation and water quality purification under the scenario conditions, and then the soil and water conservation and water quality purification hydrological ecosystem service spatial distribution layer is obtained. Based on the simulation results of the hydrological ecosystem service scenario under the changes in land use types and meteorological conditions, the soil erosion amount of the target area is generated. Based on the above soil erosion evaluation factors and combined with the target soil erosion model, a quantitative evaluation of regional soil erosion is carried out to obtain the soil erosion amount corresponding to each grid unit. According to the Technical Standard for Soil and Water Conservation (SL190-2007), the soil erosion in the study area was divided into five erosion levels: very low (less than 5 t / ha / year), low (5-25 t / ha / year), medium (25-50 t / ha / year), high (50-80 t / ha / year) and very high (more than 80 t / ha / year), and the grid cells corresponding to the soil erosion levels were named as very low, low, medium, high and very high erosion areas, and the final soil erosion classification map was obtained.
[0043] S106: Processing the soil erosion amount of the target area based on a preset water erosion calculation model to generate a soil pollution grade of the target area.
[0044] In one embodiment, the preset water erosion calculation model determines the soil pollution level of the target area based on the following formula: SPL=T(|Paose-Raose|); wherein SPL represents the soil pollution level, T is the preset duration, Paose is the preset soil erosion amount of the target area, Raose is the real-time soil erosion amount of the target area, and |Paose-Raose| is the absolute value of the difference between the preset soil erosion amount and the real-time soil erosion amount of the target area. Through the above formula, the growth rate of soil erosion in the preset period can be obtained, and the corresponding soil pollution level can be obtained based on this. In addition, according to the technical standard for soil and water conservation (SL190-2007), the soil erosion amount in the study area is divided into five erosion levels: extremely low (less than 5t / ha / year), low (5-25t / ha / year), medium (25-50t / ha / year), high (50-80t / ha / year) and extremely high (greater than 80t / ha / year), and the grid cells corresponding to the soil erosion level are named extremely low, low, medium, high and extremely high erosion areas, and the final soil erosion classification map is obtained.
[0045] In another implementation, the land use spatial distribution map, landscape spatial load ratio index, and soil erosion level are standardized and spatially overlaid to obtain the level of non-point source pollution in the target area, and the key source areas of non-point source pollution are identified based on the level of non-point source pollution.
[0046] In this application, the server obtains the training sample set and the target data set; preprocesses the training sample set to generate a training sample set with identification information; constructs an initial soil erosion model based on preset processing rules; processes the initial soil erosion model based on the training sample set with identification information to generate a target soil erosion model; processes the target data set based on the target soil erosion model to generate the amount of soil erosion in the target area; processes the amount of soil erosion in the target area based on the preset water erosion calculation model to generate the soil pollution level in the target area. By extracting remote sensing image information from the study area, the seasonal variation characteristics of rainfall and vegetation coverage and the influence of slope factors on soil and water conservation measures are taken into account, which can effectively improve the accuracy of soil erosion assessment.
[0047] Optionally, in another embodiment of the method of the present application, the preprocessing of the training sample set to generate a training sample set with identification information further includes:
[0048] Dividing the training set based on the identification information to generate a number of numerical samples;
[0049] Obtain any smaller number of samples from the training set;
[0050] Generate adjacent samples based on the distance between any of the smaller number of samples and other smaller number of samples of the same category, wherein the adjacent samples include a preset number of any of the smaller number of samples;
[0051] Sampling the adjacent samples to generate a preset number of sampling samples;
[0052] Based on any minority class sample and each sampling sample, multiple data sets are generated.
[0053] In one embodiment, the distance between any number of smaller number of class samples and each other number of smaller number of class samples of the same category can be Euclidean distance or other cosine distance, which is not specifically limited here. All other number of smaller number of class samples can be arranged in order of distance from any other number of smaller number of class samples from near to far, and then the data in the first few positions of the arrangement result are selected as adjacent samples. The purpose of oversampling is to increase the number of minority class samples to achieve a balance between the number of minority class samples and the number of majority class samples in the initial sample set. Here, oversampling can be achieved by a sampling algorithm, which is not specifically limited here. After oversampling, multiple groups of data groups can be determined based on the results obtained by oversampling and combined with the training set. At this time, the number of descriptive data samples corresponding to each attribute category label in the data group is equivalent, and there are no number of smaller number of class samples or number of larger number of class samples. In this embodiment, the training set is first preliminarily divided, and then the number of smaller number of class samples is merged with the number of larger number of class samples.
[0054] Optionally, in another embodiment of the method of the present application, the step of sampling the adjacent samples to generate a preset number of sampled samples includes:
[0055] Determining a sampling ratio based on the number of samples of each category in the training set;
[0056] Based on the sampling ratio, determining a sampling ratio;
[0057] The adjacent samples are sampled based on the sampling ratio to generate a preset number of sampling samples.
[0058] In one implementation, first obtain which data groups are included in the training set, confirm how many number class samples there are in each data group, and determine the sampling ratio according to the number of number class samples in each data group, and then use the sampling ratio to determine the sampling ratio. The sampling ratio can be set as needed, for example, it can be 50% or other ratios, which are not specifically limited here. Finally, use the sampling ratio to sample a preset number of adjacent samples to obtain a specified number of sampled samples, and all other smaller number of number class samples can be arranged in order from near to far in terms of distance from any smaller number of number class samples, and then select the preset number of samples ranked first in the arrangement result as neighboring samples, and the preset number can be set according to actual conditions, which is not specifically limited here. Based on any smaller number of number class samples and each sampled sample, a new sample is generated and used as a new data group, so that the balance effect between the smaller number of data groups and the other larger number of data groups can be further improved.
[0059] By applying the above technical solution, the server obtains a training sample set and a target data set; performs feature extraction on the training sample set to determine an original feature library; divides each feature data set according to the original feature library to generate a training data set and a test data set; uses a classifier to predict each test data set divided by the original feature library to determine a prediction result; uses a preset algorithm to divide each training data set in the original feature library for training to obtain a test set class prediction result; generates a fused feature data set based on the prediction result and the test set class prediction result; processes the fused feature data set based on a preset feature screening rule to generate identification information, wherein the identification information is used to identify feature information that the soil erosion amount is greater than a preset threshold; constructs a preset soil erosion model; obtains soil erosion information of a preset area, wherein the soil erosion information includes a slope length steepness factor and a vegetation cover factor; processes the soil erosion information of the preset area based on the preset soil erosion model to generate a predicted soil erosion amount of the preset area.
[0060] If the error between the predicted soil erosion amount in the preset area and the actual soil erosion amount in the preset area is less than a preset threshold, the preset soil erosion model is used as the initial soil erosion model; the training sample set with identification information is divided into a training set for training the initial soil erosion model and a test set for testing the initial soil erosion model based on a preset ratio; the training set is divided based on the identification information to generate a number of number class samples; any smaller number of number class samples in the training set are obtained; and adjacent samples are generated based on the distance between any smaller number of number class samples and other smaller number of number class samples of the same category, wherein the adjacent samples include a preset number of any smaller number of number class samples.
[0061] Based on the number of samples of each class in the training set, the sampling ratio is determined; based on the sampling ratio, the sampling ratio is determined; based on the sampling ratio, adjacent samples are sampled to generate a preset number of sampling samples; based on any minority class sample and each sampling sample, multiple data groups are generated, wherein each data group contains a preset number of data samples, wherein at least one data sample includes identification information; based on the data samples in the multiple data groups, the initial soil erosion model is trained to generate a trained soil erosion model; based on the test set, the trained soil erosion model is processed to generate a test result; if the data sample containing identification information in the test result is soil information with a soil erosion amount greater than a preset threshold, the trained soil erosion model is used as the target soil erosion model; based on the target soil erosion model, the target data set is processed to generate the soil erosion amount of the target area; based on the preset water erosion calculation model, the soil erosion amount of the target area is processed to generate the soil pollution level of the target area. By extracting remote sensing image information of the study area, the seasonal variation characteristics of rainfall and vegetation coverage and the influence of slope factors on soil and water conservation measures are considered, which can effectively improve the accuracy of soil erosion assessment.
[0062] In one embodiment, if Figure 2 As shown, the present application also provides a soil erosion assessment device, comprising:
[0063] An acquisition module 201 is used to acquire a training sample set and a target data set;
[0064] The processing module 202 is used to pre-process the training sample set to generate a training sample set with identification information; construct an initial soil erosion model based on a preset processing rule; process the initial soil erosion model based on the training sample set with identification information to generate a target soil erosion model; process the target data set based on the target soil erosion model to generate the soil erosion amount of the target area; process the soil erosion amount of the target area based on a preset water erosion calculation model to generate the soil pollution level of the target area, wherein the preset water erosion calculation model determines the soil pollution level of the target area based on the following formula: SPL=T(|Paose-Raose|); wherein SPL represents the soil pollution level, T is a preset time duration, Paose is a preset soil erosion amount of the target area, Raose is a real-time soil erosion amount of the target area, and |Paose-Raose| is an absolute value of the difference between the preset soil erosion amount and the real-time soil erosion amount of the target area.
[0065] In this application, the server obtains the training sample set and the target data set; preprocesses the training sample set to generate a training sample set with identification information; constructs an initial soil erosion model based on preset processing rules; processes the initial soil erosion model based on the training sample set with identification information to generate a target soil erosion model; processes the target data set based on the target soil erosion model to generate the amount of soil erosion in the target area; processes the amount of soil erosion in the target area based on the preset water erosion calculation model to generate the soil pollution level in the target area. By extracting remote sensing image information from the study area, the seasonal variation characteristics of rainfall and vegetation coverage and the influence of slope factors on soil and water conservation measures are taken into account, which can effectively improve the accuracy of soil erosion assessment.
[0066] In another embodiment of the present application, the processing module 202 is configured to pre-process the training sample set to generate a training sample set with identification information, including:
[0067] Extracting features from the training sample set to determine an original feature library;
[0068] Divide each feature data set according to the original feature library to generate a training data set and a test data set;
[0069] Use the classifier to divide the original feature library into various test data sets for prediction and determine the prediction results;
[0070] Use the preset algorithm to divide each training data set in the original feature library for training, and obtain the prediction results of the test set class;
[0071] Generate a fusion feature data set based on the prediction results and the test set class prediction results;
[0072] The fused feature data set is processed based on preset feature screening rules to generate identification information, wherein the identification information is used to identify feature information that the amount of soil erosion is greater than a preset threshold.
[0073] In another embodiment of the present application, the processing module 202 is configured to construct an initial soil erosion model based on a preset processing rule, including:
[0074] Constructing preset soil erosion models;
[0075] Acquire soil erosion information of a preset area, wherein the soil erosion information includes a slope length and steepness factor (topographic factor) and a vegetation coverage factor;
[0076] Processing the soil erosion information of the preset area based on a preset soil erosion model to generate a predicted soil erosion amount of the preset area;
[0077] If the error between the predicted soil erosion amount in the preset area and the actual soil erosion amount in the preset area is less than a preset threshold, the preset soil erosion model is used as the initial soil erosion model.
[0078] In another embodiment of the present application, the processing module 202 is configured to process the initial soil erosion model based on the training sample set with identification information to generate a target soil erosion model, including:
[0079] Dividing the training sample set with identification information into a training set for training the initial soil erosion model and a test set for testing the initial soil erosion model based on a preset ratio;
[0080] Extracting a plurality of data groups from the training set, wherein each data group includes a preset number of data samples, wherein at least one data sample includes identification information;
[0081] Training the initial soil erosion model based on the data samples in the plurality of data groups to generate a trained soil erosion model;
[0082] Processing the trained soil erosion model based on the test set to generate a test result;
[0083] If the data sample containing identification information in the test result is soil information with a soil erosion amount greater than a preset threshold, the trained soil erosion model is used as the target soil erosion model.
[0084] In another embodiment of the present application, the processing module 202 is configured to extract multiple data sets from the training set, including:
[0085] Dividing the training set based on the identification information to generate a number of numerical samples;
[0086] Obtain any smaller number of samples from the training set;
[0087] Generate adjacent samples based on the distance between any of the smaller number of samples and other smaller number of samples of the same category, wherein the adjacent samples include a preset number of any of the smaller number of samples;
[0088] Sampling the adjacent samples to generate a preset number of sampling samples;
[0089] Based on any minority class sample and each sampling sample, multiple data sets are generated.
[0090] In another embodiment of the present application, the processing module 202 is configured to sample the adjacent samples to generate a preset number of sample samples, including:
[0091] Determining a sampling ratio based on the number of samples of each category in the training set;
[0092] Based on the sampling ratio, determining a sampling ratio;
[0093] The adjacent samples are sampled based on the sampling ratio to generate a preset number of sampling samples.
[0094] By applying the above technical solution, the server obtains a training sample set and a target data set; performs feature extraction on the training sample set to determine an original feature library; divides each feature data set according to the original feature library to generate a training data set and a test data set; uses a classifier to predict each test data set divided by the original feature library to determine a prediction result; uses a preset algorithm to divide each training data set in the original feature library for training to obtain a test set class prediction result; generates a fused feature data set based on the prediction result and the test set class prediction result; processes the fused feature data set based on a preset feature screening rule to generate identification information, wherein the identification information is used to identify feature information that the soil erosion amount is greater than a preset threshold; constructs a preset soil erosion model; obtains soil erosion information of a preset area, wherein the soil erosion information includes a slope length steepness factor and a vegetation cover factor; processes the soil erosion information of the preset area based on the preset soil erosion model to generate a predicted soil erosion amount of the preset area.
[0095] If the error between the predicted soil erosion amount in the preset area and the actual soil erosion amount in the preset area is less than a preset threshold, the preset soil erosion model is used as the initial soil erosion model; the training sample set with identification information is divided into a training set for training the initial soil erosion model and a test set for testing the initial soil erosion model based on a preset ratio; the training set is divided based on the identification information to generate a number of number class samples; any smaller number of number class samples in the training set are obtained; and adjacent samples are generated based on the distance between any smaller number of number class samples and other smaller number of number class samples of the same category, wherein the adjacent samples include a preset number of any smaller number of number class samples.
[0096] Based on the number of samples of each class in the training set, the sampling ratio is determined; based on the sampling ratio, the sampling ratio is determined; based on the sampling ratio, adjacent samples are sampled to generate a preset number of sampling samples; based on any minority class sample and each sampling sample, multiple data groups are generated, wherein each data group contains a preset number of data samples, wherein at least one data sample includes identification information; based on the data samples in the multiple data groups, the initial soil erosion model is trained to generate a trained soil erosion model; based on the test set, the trained soil erosion model is processed to generate a test result; if the data sample containing identification information in the test result is soil information with a soil erosion amount greater than a preset threshold, the trained soil erosion model is used as the target soil erosion model; based on the target soil erosion model, the target data set is processed to generate the soil erosion amount of the target area; based on the preset water erosion calculation model, the soil erosion amount of the target area is processed to generate the soil pollution level of the target area. By extracting remote sensing image information of the study area, the seasonal variation characteristics of rainfall and vegetation coverage and the influence of slope factors on soil and water conservation measures are considered, which can effectively improve the accuracy of soil erosion assessment.
[0097] The present application embodiment provides an electronic device, such as Figure 3 As shown, the electronic device 3 includes a first processor 300, a memory 301, a bus 302 and a communication interface 303. The first processor 300, the communication interface 303 and the memory 301 are connected via the bus 302; the memory 301 stores a computer program that can be run on the first processor 300, and when the first processor 300 runs the computer program, the soil erosion assessment method provided in any of the aforementioned embodiments of the present application is executed.
[0098] The memory 301 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 303 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0099] The bus 302 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 301 is used to store programs, and the first processor 300 executes the programs after receiving the execution instruction. The soil erosion assessment method disclosed in any implementation of the embodiment of the present application may be applied to the first processor 300, or implemented by the first processor 300.
[0100] The first processor 300 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the first processor 300. The above-mentioned first processor 300 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be embodied as a hardware decoding processor to execute, or a combination of hardware and software modules in the decoding processor to execute. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 301, and the first processor 300 reads the information in the memory 301 and completes the steps of the above method in combination with its hardware.
[0101] The electronic device provided in the above-mentioned embodiments of the present application and the soil erosion assessment method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0102] The present application embodiment provides a computer-readable storage medium, such as Figure 4 As shown, the computer-readable storage medium stores 401 a computer program, and when the computer program is read and executed by the second processor 402, the soil erosion assessment method as described above is implemented.
[0103] The technical solution of the embodiment of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which may be an air conditioner, a refrigeration device, a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method described in the embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
[0104] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the soil erosion assessment method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.
[0105] An embodiment of the present application provides a computer program product, including a computer program, wherein the computer program is executed by a third processor to implement the method described above.
[0106] The computer program product provided by the above-mentioned embodiments of the present application and the soil erosion assessment method provided by the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.
[0107] It should be noted that, in this application, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or still includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0108] Each embodiment in the present application is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the soil erosion assessment method, electronic device, electronic device, and readable storage medium embodiment, since they are basically similar to the soil erosion assessment method embodiment described above, the description is relatively simple, and the relevant parts can be referred to the partial description of the soil erosion assessment method embodiment described above.
[0109] Although the present application is disclosed as above, the present application is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application, so the protection scope of the present application shall be subject to the scope defined by the claims.
Claims
1. A soil erosion assessment method, characterized in that: include: Obtain training sample sets and target data sets; Preprocessing the training sample set to generate a training sample set with identification information; Construct an initial soil erosion model based on preset processing rules; The initial soil erosion model is constructed based on the preset processing rules, including: Constructing preset soil erosion models; Acquire soil erosion information of a preset area, wherein the soil erosion information includes a slope length steepness factor and a vegetation coverage factor; Processing the soil erosion information of the preset area based on a preset soil erosion model to generate a predicted soil erosion amount of the preset area; If the error between the predicted soil erosion amount in the preset area and the actual soil erosion amount in the preset area is less than a preset threshold, the preset soil erosion model is used as the initial soil erosion model; Processing the initial soil erosion model based on the training sample set with identification information to generate a target soil erosion model; Processing the target data set based on the target soil erosion model to generate soil erosion amount in the target area; The soil erosion amount of the target area is processed based on a preset water erosion calculation model to generate a soil pollution level of the target area, wherein the preset water erosion calculation model determines the soil pollution level of the target area based on the following formula: SPL = T(|Paose-Raose|); Wherein, SPL represents the soil pollution level, T is the preset duration, Paose is the preset soil erosion amount in the target area, Raose is the real-time soil erosion amount in the target area, and |Paose-Raose| is the absolute value of the difference between the preset soil erosion amount and the real-time soil erosion amount in the target area.
2. The method according to claim 1, characterized in that The preprocessing of the training sample set to generate a training sample set with identification information includes: Extracting features from the training sample set to determine an original feature library; Divide each feature data set according to the original feature library to generate a training data set and a test data set; Use the classifier to divide the original feature library into various test data sets for prediction and determine the prediction results; Use the preset algorithm to divide each training data set in the original feature library for training, and obtain the prediction results of the test set class; Generate a fusion feature data set based on the prediction results and the test set class prediction results; The fused feature data set is processed based on preset feature screening rules to generate identification information, wherein the identification information is used to identify feature information that the amount of soil erosion is greater than a preset threshold.
3. The method according to claim 1, characterized in that The processing of the initial soil erosion model based on the training sample set with identification information to generate a target soil erosion model includes: Dividing the training sample set with identification information into a training set for training the initial soil erosion model and a test set for testing the initial soil erosion model based on a preset ratio; Extracting a plurality of data groups from the training set, wherein each data group includes a preset number of data samples, wherein at least one data sample includes identification information; Training the initial soil erosion model based on the data samples in the plurality of data groups to generate a trained soil erosion model; Processing the trained soil erosion model based on the test set to generate a test result; If the data sample containing identification information in the test result is soil information with a soil erosion amount greater than a preset threshold, the trained soil erosion model is used as the target soil erosion model.
4. The method according to claim 3, characterized in that The step of extracting multiple data sets from the training set comprises: Dividing the training set based on the identification information to generate a number of numerical samples; Obtain any smaller number of samples from the training set; Generate adjacent samples based on the distance between any of the smaller number of samples and other smaller number of samples of the same category, wherein the adjacent samples include a preset number of any of the smaller number of samples; Sampling the adjacent samples to generate a preset number of sampling samples; Based on any minority class sample and each sampling sample, multiple groups of data are generated.
5. The method according to claim 4, wherein the step of sampling the adjacent samples to generate a preset number of sampled samples comprises: Determining a sampling ratio based on the number of samples of each category in the training set; Based on the sampling ratio, determining a sampling ratio; The adjacent samples are sampled based on the sampling ratio to generate a preset number of sampling samples.
6. A soil erosion assessment device, characterized in that: The device comprises: An acquisition module is used to acquire a training sample set and a target data set; A processing module is used to pre-process the training sample set to generate a training sample set with identification information; construct an initial soil erosion model based on a preset processing rule; the construction of the initial soil erosion model based on the preset processing rule includes: constructing a preset soil erosion model; obtaining soil erosion information of a preset area, wherein the soil erosion information includes a slope length steepness factor and a vegetation cover factor; processing the soil erosion information of the preset area based on the preset soil erosion model to generate a predicted soil erosion amount of the preset area; if the error between the predicted soil erosion amount of the preset area and the actual soil erosion amount of the preset area is less than a preset threshold, the preset soil erosion model is used as the initial soil erosion model; processing the initial soil erosion model based on the training sample set with identification information The target data set is processed based on the target soil erosion model to generate a target soil erosion model; the target data set is processed based on the target soil erosion model to generate a soil erosion amount of a target area; the soil erosion amount of the target area is processed based on a preset water erosion calculation model to generate a soil pollution level of the target area, wherein the preset water erosion calculation model determines the soil pollution level of the target area based on the following formula: SPL=T(|Paose-Raose|); wherein SPL represents the soil pollution level, T is a preset time duration, Paose is a preset soil erosion amount of the target area, Raose is a real-time soil erosion amount of the target area, and |Paose-Raose| is an absolute value of a difference between a preset soil erosion amount and a real-time soil erosion amount of the target area.
7. An electronic device, characterized in that: include: a first processor; and a memory for storing executable instructions of the first processor; Wherein, the first processor is configured to execute the soil erosion assessment method according to any one of claims 1 to 5 by executing the executable instructions.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the second processor, the soil erosion assessment method according to any one of claims 1 to 5 is implemented.
