Method, device and medium for obtaining soil organic matter distribution map by mixed pixel decomposition
By using a hybrid pixel decomposition algorithm, soil organic matter distribution maps are obtained by combining satellite remote sensing and genetic algorithms. This solves the problems of large sample size and low accuracy, and enables efficient and low-cost soil fertility distribution mapping, which is suitable for large farms and county-level scales.
Patent Information
- Application Number
- CN202410975789.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-07-19
AI Technical Summary
Existing technologies suffer from problems such as large sample size required for soil organic matter distribution inversion, low inversion accuracy, and poor model generalization ability.
A hybrid pixel decomposition algorithm is adopted to obtain soil organic matter distribution maps through satellite remote sensing spectral information acquisition, unsupervised clustering, endmember extraction, and genetic algorithms, including data correction, dimensionality reduction, classification, sampling, and hybrid pixel decomposition.
It reduces the frequency of field sampling, saves detection costs, ensures the portability of the method and the accuracy of the model, improves the generalization ability of the model, and is suitable for mapping soil organic matter fertility distribution at the scale of large farms and counties.
Smart Images

Figure CN118823598B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of agricultural technology, specifically to a method for obtaining mesoscale soil organic matter distribution maps using a hybrid pixel decomposition algorithm. Background Technology
[0002] Soil organic matter content refers to the amount of various plant and animal remains, microorganisms, and organic matter synthesized by decomposition in a unit volume of soil, typically accounting for about 1% to 3% of the total soil mass. Despite its small content, organic matter plays a crucial role in plant growth, soil structure improvement, water and fertilizer retention, and the promotion of microbial activity. Measuring soil organic matter content helps understand soil fertility, allowing for precise fertilization to replenish soil nutrients and improve soil fertility, thus ensuring crop yield and quality.
[0003] Early researchers developed spatial interpolation algorithms based on geostatistical principles to achieve a holistic description of soil fertility distribution from point-like distribution to area-like distribution maps. Methods developed based on this include Kriging interpolation, inverse distance weighting, and geographic weighted regression. Spatial interpolation methods primarily rely on the geospatial correlation of nutrients, neglecting the influence of other factors. Their accuracy is mainly affected by sample density, and accurate fertility distribution calculations require a large amount of measured data, which is extremely costly. In recent years, with the development of satellite remote sensing technology, using remote sensing spectral information to invert soil nutrient distribution has become a research hotspot. Although machine learning algorithms have made significant progress, due to the influence of environmental factors in different regions, these models often only have good fitting ability for specific areas, lacking strong generalization ability, and still require a large number of samples in high-dimensional feature spaces.
[0004] The purpose of this invention is to address the shortcomings of existing technologies in soil organic matter distribution inversion, such as large sample size, low inversion accuracy, and poor model generalization ability, and to provide a method for soil organic matter inversion based on hybrid pixel decomposition to solve the above problems. Summary of the Invention
[0005] The present invention provides a method, device, and storage medium for obtaining soil organic matter distribution maps by hybrid pixel decomposition, which can at least solve one of the technical problems in the background art.
[0006] To achieve the above objectives, the present invention adopts the following technical solution:
[0007] A method for obtaining soil organic matter distribution maps by hybrid pixel decomposition, comprising the following steps performed using a computer device:
[0008] S1. Collect satellite remote sensing spectral information of the study area;
[0009] S2. Correct and reduce the dimensions of the collected optical information data;
[0010] S3. Classify the study area using an unsupervised clustering algorithm;
[0011] S4. Analyze the classified spectral information and extract endmembers for each category;
[0012] S5. Soil samples were taken using the geographic coordinates corresponding to the end-members as sampling points and then tested using the national standard laboratory method.
[0013] S6. Use genetic algorithms to perform hybrid pixel decomposition;
[0014] S7. Draw a distribution map of soil organic matter based on the mixed pixel decomposition results.
[0015] Furthermore, the unsupervised clustering algorithm in step S3 of this invention is specifically described as follows:
[0016] S31. The input sample set is the dataset processed in step S2. Where D is the dataset constructed from all pixels, N is the total number of pixels in the study area, and n is the dimension of the remote sensing data;
[0017] S32. Randomly select K elements from dataset D as centroids.
[0018] S33. Calculate the distance from each element to the center point, and perform the first clustering based on the center point closest to it. Euclidean distance is usually used as the distance metric, and the formula is as follows:
[0019]
[0020] Where l represents the l-th pixel, i represents the i-th centroid, and j represents the j-th dimension;
[0021] S34. Recalculate the cluster centers. The new cluster centers are the mean of the inner sets of each cluster after S33.
[0022] S35. Repeat S33 to S34 until the cluster centers no longer change or the maximum number of iterations is met;
[0023] S36. Output the element sets corresponding to the K classes respectively. Further, the endmember extraction method in step S4 of this invention has the following specific steps:
[0024] S41. Select objects of a class and construct a collection. Where R is the sum of all vectors of the selected class, B is the vector dimension, and S is the total number of pixels;
[0025] S42. Select an initial unit vector, project all pixel points onto the vector, and regard the pixel with the largest projection distance as the first end cell;
[0026] S43. Find a new direction orthogonal to the initial endmember, search for the maximum distance projected pixel, and add it to the endmember set;
[0027] S44. Find the direction orthogonal to each element in the endmember set, search for the largest projected pixel with the unit direction vector, and add it to the endmember set.
[0028] S45. Repeat step S44 until all endmembers are found, forming the final endmember set. Where V is the extracted endmember, and s≤B;
[0029] S46. Perform the above operation for each class to obtain the end element of each class.
[0030] Furthermore, the hybrid pixel decomposition method in step S6 of the present invention comprises the following specific steps:
[0031] S61. Based on the dimension and number of endmembers, create an initial population and set the number of iterations;
[0032] S62. Calculate the fitness of each individual in the population. Fitness is a measure of an individual's advantage in the population and is used to distinguish between "good" and "bad" individuals. Fitness is usually calculated using a fitness function.
[0033] Based on the problem itself, the fitness function is determined as follows:
[0034]
[0035] The constraints are:
[0036]
[0037] Where c i Abundance;
[0038] S63. Applying genetic operators of selection, crossover, and mutation to the population produces a new generation based on the better individuals in the current generation.
[0039] S64. Recalculate the fitness of each individual in the new generation population. If the termination condition is not met, repeat the S63 process. If the condition is met, the program terminates and selects the individual with the highest fitness as the final optimization result.
[0040] S65, the organic matter content corresponding to a pixel can be expressed as: Where SOM represents the organic matter content corresponding to the target pixel, SOM iThis indicates the organic matter content corresponding to each endmember.
[0041] In another aspect, the present invention also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of the method described above.
[0042] In another aspect, the present invention also discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the method described above.
[0043] As can be seen from the above technical solution, compared with the prior art, this invention reduces the frequency of field sampling, saves detection costs, and ensures the portability of the method. Specifically, this invention includes the following steps: acquisition of satellite remote sensing data; data correction and dimensionality reduction of optical information; classification of data using unsupervised clustering methods; extraction of endmembers using a successive projection algorithm; hybrid pixel decomposition using a genetic algorithm; and generation of a soil fertility distribution map. This invention utilizes satellite remote sensing image features to invert soil organic matter content, greatly reducing the sampling frequency, saving laboratory detection costs, reducing pollution from chemical methods, and ensuring the portability of the method.
[0044] This invention relates to a soil fertility inversion model using a hybrid pixel decomposition algorithm, which includes an overall scheme from the layout of sampling points to the final fertility distribution map. While reducing the sampling density, it ensures the accuracy of the model and has good generalization ability, making it very suitable for drawing soil organic matter fertility distribution maps at the scale of large farms or even county levels. Attached Figure Description
[0045] Figure 1 This is a flowchart of the present invention; Detailed Implementation
[0046] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of the present invention, but not all embodiments.
[0047] like Figure 1 As shown in this embodiment, the method for obtaining a soil organic matter distribution map by hybrid pixel decomposition involves the following steps performed using a computer device:
[0048] S1. Collect satellite remote sensing spectral information of the study area.
[0049] Spectral information of the study area is generally acquired through satellite remote sensing. Specifically, acquiring regional spectral information involves collecting high-quality satellite remote sensing data on the growth cycle and bare soil stage of a single crop within the study area. Taking Sentinel-2 imagery as an example, 11 bands from blue light (wavelength 490nm) to short-wave infrared (wavelength 2190nm) are available.
[0050] S2. Correct and reduce the dimensionality of the collected optical information data.
[0051] In this embodiment, the spectral information data acquired by satellite remote sensing is preprocessed, namely, the original data of high-quality satellite remote sensing data of the growth cycle and bare soil period of a single crop in the study area is corrected, outliers are removed, and the data is reduced in dimensionality by principal component analysis (PCA).
[0052] The raw data correction in the above method includes radiometric correction: a process of eliminating various distortions (noise) attached to the radiance in image data to eliminate interference and obtain the true reflectance. This mainly includes correcting for radiometric errors caused by sensor sensitivity characteristics, differences in lighting conditions, and atmospheric scattering and absorption.
[0053] Geometric correction: Utilizing GCPs (Ground Control Points) to correct geometric distortions caused by various factors, and performing geographic coordinate positioning on the image to obtain true coordinate information. This includes: transformation of spatial pixel positions and calculation of the transformed pixel brightness values.
[0054] Orthorectification: In addition to performing conventional geometric correction, orthorectification also corrects the distortion of the image caused by terrain undulation based on the DEM (Depth Elevation), adding elevation information to the image.
[0055] Outlier Removal: Outliers appear in remote sensing imagery due to factors such as sensor component damage or excessively thick cloud cover. When using the data, we generally need to remove these outliers and correct them to relatively accurate values. Here are the general steps: First, perform a global search of the dataset. If a pixel has an empty band or a reflectance of 0, delete that pixel's data. Then, statistically analyze the reflectance of each band and perform Gaussian fitting to remove outliers that are more than three standard deviations below the threshold.
[0056] PCA dimensionality reduction: It uses orthogonal transformation to convert a series of potentially linearly related variables into a new set of linearly unrelated variables, also known as principal components, thereby using the new variables to show the characteristics of the data in a smaller dimension.
[0057] S3. Classify the study area using an unsupervised clustering algorithm;
[0058] The most commonly used unsupervised clustering algorithm mentioned above is the K-means clustering algorithm, whose specific steps are as follows:
[0059] S31. The input sample set is the dataset processed in step S2. Where D is the dataset constructed from all pixels, N is the total number of pixels in the study area, and n is the dimension of the remote sensing data;
[0060] S32. Randomly select K elements from dataset D as centroids.
[0061] S33. Calculate the distance from each element to the center point, and perform the first clustering based on the center point closest to each element. Euclidean distance is typically used as the distance metric, and the formula is as follows:
[0062]
[0063] Where l represents the l-th pixel, i represents the i-th centroid, and j represents the j-th dimension;
[0064] S34. Recalculate the cluster centers. The new cluster centers are the mean of the inner sets of each cluster after clustering (33).
[0065] S35. Repeat steps 33) to 34) until the cluster centers do not change or the maximum number of iterations is met;
[0066] S36. Output the set of elements corresponding to each of the K classes.
[0067] S4. Analyze the classified spectral information and extract endmembers for each category;
[0068] The terminus extraction process mainly includes the following steps:
[0069] S41. Select objects of a class and construct a collection. Where R is the sum of all vectors of the selected class, B is the vector dimension, and S is the total number of pixels.
[0070] S42. Select an initial unit vector, project all pixel points onto this vector, and regard the pixel with the largest projection distance as the first end pixel.
[0071] S43. Find a new direction orthogonal to the initial endmember, search for the maximum distance projected pixel, and add it to the endmember set.
[0072] S44. Find the direction orthogonal to each element in the endmember set, search for the largest projected pixel with the unit direction vector, and add it to the endmember set.
[0073] S45. Repeat step 44) until all endmembers are found, forming the final endmember set. Where V is the extracted endmember, and s≤B;
[0074] S46. Perform the above operation for each class to obtain the end element of each class.
[0075] S5. Soil samples were taken using the geographic coordinates corresponding to the end-members as sampling points and then tested using the national standard laboratory method.
[0076] S6. Use genetic algorithms to perform hybrid pixel decomposition;
[0077] The aforementioned mixed pixel refers to a spatial mixture in which multiple material components exist within an instantaneous field of view (IFOV). Mixed pixel decomposition is a method of decomposing a pixel into a combination of several endmembers, where the proportion of each endmember in the pixel is called the abundance.
[0078] The specific steps for using a genetic algorithm to decompose mixed pixels and solve for organic matter content are as follows:
[0079] S61. Based on the dimension and number of endmembers, create an initial population and set the number of iterations;
[0080] S62. Calculate the fitness of each individual in the population. Fitness is a measure of an individual's advantage in the population and is used to distinguish between "good" and "bad" individuals. Fitness is usually calculated using a fitness function.
[0081] The hybrid pixel decomposition problem involved in this invention is a multi-objective optimization problem. Based on the problem itself, the fitness function is determined as follows:
[0082]
[0083] The constraints are:
[0084]
[0085] Where c i Abundance.
[0086] S63. Applying genetic operators of selection, crossover, and mutation to the population produces a new generation based on the better individuals in the current generation.
[0087] S64. Recalculate the fitness of each individual in the new generation population. If the termination condition is not met, repeat the S63 process. If the condition is met, the program terminates and selects the individual with the highest fitness as the final optimization result.
[0088] S65, the organic matter content corresponding to a pixel can be expressed as: Where SOM represents the organic matter content corresponding to the target pixel, SOM i This indicates the organic matter content corresponding to each endmember.
[0089] S7. Draw a distribution map of soil organic matter based on the mixed pixel decomposition results.
[0090] The soil fertility distribution map in S7 was drawn using ArcGIS software, specifically including the following steps:
[0091] S71. Obtain a vector map of the research objects within the region. The vector map should be in shp format.
[0092] S72. Import the geographic coordinates and soil organic matter inversion results generated in step S26 into ArcGIS software;
[0093] S73. For the points corresponding to outliers, select the Kriging interpolation algorithm for interpolation analysis;
[0094] S74. Generate a soil fertility distribution map of the study area and select appropriate color schemes.
[0095] This invention discloses a soil fertility distribution inversion method based on satellite remote sensing information and utilizing a hybrid pixel decomposition method. This method includes an endmember sampling point placement method and a soil fertility distribution inversion algorithm. Compared with traditional spatial interpolation methods and machine learning algorithms, the endmember sampling point placement method effectively avoids repeated sampling under the same features, greatly reducing the sampling frequency and saving detection costs. The use of a hybrid pixel decomposition method to invert soil fertility distribution ensures the overall generalization ability of the scheme. This invention, through a soil fertility inversion scheme based on remote sensing spectral features and utilizing a hybrid pixel decomposition algorithm, requires fewer sampling points and has stronger generalization ability in the overall process of constructing the soil fertility distribution map.
[0096] In another aspect, the present invention also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of the method described above.
[0097] In another aspect, the present invention also discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the method described above.
[0098] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the methods for obtaining soil organic matter distribution maps by hybrid pixel decomposition in the above embodiments.
[0099] It is understood that the system provided in the embodiments of the present invention corresponds to the method provided in the embodiments of the present invention, and the explanation, examples and beneficial effects of the relevant content can be referred to the corresponding parts of the above methods.
[0100] This application also provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, communication interface, and memory communicate with each other via the communication bus.
[0101] Memory, used to store computer programs;
[0102] When the processor executes the program stored in the memory, it implements the above-mentioned method for drawing a soil organic matter distribution map by hybrid pixel decomposition.
[0103] The communication bus mentioned in the aforementioned electronic devices can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc.
[0104] The communication interface is used for communication between the aforementioned electronic devices and other devices.
[0105] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0106] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0107] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)).
[0108] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0109] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0110] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for obtaining soil organic matter distribution maps by mixed pixel decomposition, characterized in that, Perform the following steps using a computer device: S1. Collect satellite remote sensing spectral information of the study area; S2. Correct and reduce the dimensions of the collected optical information data; S3. Classify the study area using an unsupervised clustering algorithm; S4. Analyze the classified spectral information and extract endmembers for each category; S5. Soil samples were taken using the geographic coordinates corresponding to the end-members as sampling points and then tested using the national standard laboratory method. S6. Use genetic algorithms to perform hybrid pixel decomposition; S7. Draw a soil organic matter distribution map based on the mixed pixel decomposition results; The endmember extraction method in step S4 is as follows: S41. Select objects of a class and construct a collection. ,in R The sum of all vectors of the selected class. B It is the vector dimension. S This represents the total number of pixels. S42. Select an initial unit vector, project all pixel points onto the vector, and regard the pixel with the largest projection distance as the first end cell; S43. Find a new direction orthogonal to the initial endmember, search for the maximum distance projected pixel, and add it to the endmember set; S44. Find the direction orthogonal to each element in the endmember set, search for the largest projected pixel with the unit direction vector, and add it to the endmember set. S45. Repeat step S44 until all endmembers are found, forming the final endmember set. ,in V For the extracted endmembers, s≤B; S46. Perform the above operation for each class to obtain the end element of each class; The hybrid pixel decomposition method in step S6 is as follows: S61. Based on the dimension and number of endmembers, create an initial population and set the number of iterations; S62. Calculate the fitness of each individual in the population. Fitness is a measure of an individual's advantage in the population and is used to distinguish between "good" and "bad" individuals. Fitness is calculated using a fitness function. Based on the problem itself, the fitness function is determined as follows: The constraints are: in Abundance; S63. Applying genetic operators of selection, crossover, and mutation to the population produces a new generation; S64. Recalculate the fitness of each individual in the new generation population. If the termination condition is not met, repeat the S63 process. If the condition is met, the program terminates and selects the individual with the highest fitness as the final optimization result. S65, the organic matter content corresponding to a pixel can be expressed as: ,in SOM This represents the organic matter content corresponding to the target pixel. This indicates the organic matter content corresponding to each endmember.
2. The method for obtaining a soil organic matter distribution map by mixed pixel decomposition according to claim 1, characterized in that, The unsupervised clustering algorithm in step S3 is as follows: S31, the input sample set is the dataset processed in step S2. ,in D A dataset constructed for all cells. N To study the total number of pixels in the region, n For remote sensing data dimensions; S32, in the dataset D K elements are randomly selected as the centroids. ; S33. Calculate the distance from each element to the center point, and perform the first clustering based on the center point closest to it, using Euclidean distance as the distance metric, as shown in the following formula: in l Indicates the first l One pixel, i Indicates the first i The center of mass, j Indicates the first j One dimension; S34. Recalculate the cluster centers. The new cluster centers are the mean of the inner sets of each cluster after clustering in S33. S35. Repeat steps S33-S34 until the cluster centers remain unchanged or the maximum number of iterations is met; S36. Output the set of elements corresponding to each of the K classes.
3. A computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the steps of the method as described in claim 1 or 2.
4. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method as claimed in claim 1 or 2.
Citation Information
Patent Citations
Corn straw coverage estimation method based on radar remote sensing and optical remote sensing
CN112711989A
Machine learning in agricultural planting, growing, and harvesting contexts
US20190050948A1
