Crop planting area extraction method combining remote sensing image and habitat information
By combining remote sensing images and habitat information, using deep learning models and niche models, integrating spectral, topography, and growth environment information, the problems of low crop monitoring efficiency and insufficient accuracy in the existing technology are solved, and a fast and accurate large-scale scope has been achieved Crop planting area identification and management decision support.
Patent Information
- Application Number
- CN202410843266.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-11-01
AI Technical Summary
When obtaining large-scale crop information, the prior art relies on manual sampling and measurement, which has problems such as low efficiency, strong subjectivity, single characteristics, and difficult to achieve large-scale regular monitoring.
Combining remote sensing images and habitat information, a niche model and deep learning model are used to combine it with Sentinel-2 multispectral images, ASTER GDEM data and WorldClim climate data, the MFPUNet model and MaxEnt model are constructed, and the spectrum, topography, and growth environment information are fused. Improve the accuracy of extraction in crop planting areas.
It has achieved rapid and accurate identification of large-scale crop planting areas, reduced monitoring costs, improved crop management and decision-making levels, and provided scientific planting planning and resource allocation references.
Smart Images

Figure CN118887526A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method for extracting a crop planting area by combining remote sensing images and habitat information, and belongs to the technical field of crop identification. Background Art
[0002] Acquiring large-scale crop information can monitor the planting area and growth of field crops, which plays an important role in improving crop yield and quality. Existing technologies mostly rely on manual sampling and measurement. This traditional field statistical method consumes time and manpower, and has disadvantages such as low efficiency, strong subjectivity, and single characteristics. Large-scale regular monitoring is difficult to achieve. A fast-monitoring crop monitoring technology can identify crop planting areas on a large scale and at low cost. It can provide farmers with scientific and accurate guidance and decision-making support for agricultural activities, and can provide a strong reference for the selection and introduction of crop varieties. By realizing dynamic monitoring of crop planting areas, farmers can have a more comprehensive understanding of the planting conditions, so as to better respond to the planting management needs under different seasons and climatic conditions. This has a positive role in improving the management efficiency and decision-making level of the crop industry. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a method for extracting crop planting areas by combining remote sensing images and habitat information, combining the niche model with the deep learning model, comprehensively considering the spectrum, terrain, and growth environment information, and improving the extraction accuracy of crop planting areas.
[0004] The present invention adopts the following technical solutions to solve the above technical problems:
[0005] A method for extracting crop planting areas by combining remote sensing images and habitat information comprises the following steps:
[0006] Step 1: Obtain Sentinel-2 multispectral image data, ASTER GDEM data, and WorldClim climate data of the target area, and divide the target area into a training area and a test area;
[0007] Step 2: Preprocess the Sentinel-2 multispectral image data of the target area to obtain preprocessed multispectral image data, randomly select and label four types of sample points of crops, forests, bare land and grassland in the training area, and calculate the vegetation index of each sample point;
[0008] Step 3, based on the Relief-F feature screening algorithm and the Pearson correlation coefficient, the three most important vegetation indices are selected from all vegetation indices at each sample point;
[0009] Step 4: remove the bands in Sentinel-2 that are not related to the classification of land objects, and use the remaining bands together with the three most important vegetation indices as spectral features;
[0010] Step 5: Calculate the slope and aspect based on the ASTER GDEM data and resample to 10 m. The resampled altitude, slope and aspect are used as terrain features.
[0011] Step 6: construct a data set for the entire target area based on the spectral features and terrain features, and divide the data set of the training area into a training set and a validation set, and construct a MFPUNet model. The MFPUNet model includes a spectral encoder, a terrain encoder, and a decoder. The MFPUNet model is trained and validated using the training set and the validation set; the trained MFPUNet model is used to predict the test area;
[0012] Step 7: Select the crop sample points with a distance greater than 1.5 km from each other as the crop existence points from all the crop sample points, use the crop existence points and WorldClim climate data to train the MaxEnt model, use ten-fold cross validation, select the simulation result with the largest AUC value, predict the probability distribution of the crop suitable growth area in the test area and resample to 10m;
[0013] Step 8: Use the fusion objective function to perform decision fusion processing on the prediction results of the MFPUNet model and the MaxEnt model, and predict the crop distribution in the test area based on the decision fusion results.
[0014] As a preferred solution of the present invention, the Sentinel-2 multispectral image data of the target area is preprocessed in step 2, including: converting the L1C level data of Sentinel-2 into L2A level data, and resampling all bands to 10m, performing terrain correction on the resampled image using the terrain correction model Teillet, and converting the grayscale value into spectral reflectance.
[0015] As a preferred solution of the present invention, the specific process of step 3 is as follows:
[0016] 3.1, using the Relief F-Pearson feature screening algorithm, the average weight of each vegetation index obtained after T iterations is taken as the final weight, that is:
[0017]
[0018] Among them, ω(F i ) represents the weight of the i-th vegetation index, k is the number of nearest neighbor samples, ∑ h∈H ∣R i -h i∣ is the sum of the nearest neighbor distances between the sample point R and the selected k similar sample points on the i-th vegetation index, R i represents the i-th vegetation index of sample point R, h i represents the i-th vegetation index of sample point h of the same category as sample point R, H represents the set of sample points of the same category as sample point R, ∑ m∈M ∣R i -m i ∣ represents the sum of the nearest neighbor distances between sample point R and k different types of sample points on the i-th vegetation index, m i represents the i-th vegetation index of sample point m of a different category from sample point R, and M represents the set of sample points of a different category from sample point R;
[0019] 3.2. For all vegetation indices, calculate the Pearson correlation coefficient between each pair, that is:
[0020]
[0021] Among them, r pearson represents the Pearson correlation coefficient, x j and j They represent the vegetation index x and y of the j-th sample point, respectively. X represents the mean of the vegetation index x of all sample points, and Y represents the mean of the vegetation index y of all sample points. x and y represent two different vegetation indices.
[0022] 3.3, sort the final weights of all vegetation indices from large to small, and select three vegetation indices starting from the ones with the largest final weights. The selected three vegetation indices satisfy the Pearson correlation coefficient between each pair is less than 0.6.
[0023] As a preferred solution of the present invention, the remaining bands in step 4 include a blue band, a green band, a red band, three vegetation red edge bands, a near infrared band and two short-wave infrared bands.
[0024] As a preferred solution of the present invention, step 6 constructs a data set of the entire target area according to the spectral features and terrain features, and divides the data set of the training area into a training set and a validation set. Specifically, the spectral features, terrain features and labels of the entire target area are cropped into image blocks of 256×256 according to an overlap rate of 50%, and some negative samples of the training area are removed so that the ratio of positive and negative samples is 1:1. Geometric transformation is used for data enhancement to obtain the data set of the training area, and the data set is divided into a training set and a validation set at a ratio of 8:2.
[0025] As a preferred solution of the present invention, the MFPUNet model described in step 6 uses the UNet architecture as a baseline, introduces a multi-head encoder and a post-fusion strategy, and the multi-head encoder is divided into two parts: the first part is a three-layer ResNet50 encoder with a multi-scale pyramid structure, which is used to learn spectral features; the second part is a three-layer ResNet34 encoder, which is used to learn terrain features;
[0026] The spectral encoder performs the first to fourth downsampling on the input spectral features, and at the same time crops the input spectral features into four identical sub-blocks, and performs the first to fourth downsampling on each sub-block, and at the same time crops each sub-block into four identical small sub-blocks, and performs the first to fourth downsampling on each small sub-block; the terrain encoder performs the first to fourth downsampling on the input terrain features;
[0027] The result obtained by the fourth downsampling of the spectral feature is successively passed through the dilated spatial convolution pooling pyramid and the convolution layer to obtain the result A1; the results of the fourth downsampling of the four sub-blocks are merged to obtain the result B11, and the results of the fourth downsampling of the sixteen small sub-blocks are merged to obtain the result B12. B11 and B12 are concatenated and then passed through the convolution layer to obtain the result B1; the result obtained by the fourth downsampling of the terrain feature is concatenated with A1 and B1 and then upsampled to obtain the result D1;
[0028] The results of the third downsampling of the four sub-blocks are combined to obtain result B2; the results of the third downsampling of the sixteen small sub-blocks are combined to obtain result C2; the results of the third downsampling of the spectral features are spliced with the results of the third downsampling of B2, C2, D1 and the terrain features, and then upsampled to obtain result D2;
[0029] The results of the second downsampling of the four sub-blocks are combined to obtain result B3; the results of the second downsampling of the sixteen small sub-blocks are combined to obtain result C3; the results of the second downsampling of the spectral features are spliced with the results of the second downsampling of B3, C3, D2 and the terrain features, and then upsampled to obtain result D3;
[0030] The results of the first downsampling of the four sub-blocks are merged to obtain result B4; the results of the first downsampling of the sixteen small sub-blocks are merged to obtain result C4; the result of the first downsampling of the spectral feature is spliced with the results of B4, C4, D3 and the first downsampling of the terrain feature, and then upsampled to obtain result D4; D4 is subjected to dimensionality reduction processing to obtain the output of the model.
[0031] As a preferred solution of the present invention, the MFPUNet model described in step 6 uses the Adam optimizer for model training during training, and sets the initial learning rate of the model to 1×10 -4, the batch size is 4, the total number of training epochs is 80, the learning rate decay factor is defined as 0.1, and the learning rate decreases every 25 epochs;
[0032] Select weighted category cross entropy loss to evaluate the model training effect, that is:
[0033]
[0034] Where L represents the weighted category cross entropy loss, N is the number of categories, and w n is the weight of category n, y n represents a one-hot vector with only 1 and 0 elements, p n represents a vector containing the predicted probabilities for class n, β n Represents the frequency of occurrence of category n.
[0035] As a preferred solution of the present invention, the fusion objective function in step 8 is specifically as follows:
[0036]
[0037] Where S is the set of pixel locations, Represented by model M k The predicted pixel s belongs to category y s The probability of w k It is model M k The weight of A(model k ) represents the model M k The target class accuracy.
[0038] A computer device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the computer program, the steps of the method for extracting crop planting areas by combining remote sensing images and habitat information are implemented.
[0039] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a method for extracting crop planting areas by combining remote sensing images and habitat information.
[0040] Compared with the prior art, the present invention adopts the above technical solution and has the following technical effects:
[0041] 1. The present invention combines the niche model with the deep learning model, and comprehensively considers the spectrum, terrain, and growth environment information. This information can provide more comprehensive and multi-angle features of the land objects, helping to improve the accuracy of classification. The method of the present invention is expected to provide a reference for the management and development of the crop industry and land planning, and help decision makers and agricultural practitioners to more effectively carry out planting planning and resource allocation.
[0042] 2. The present invention utilizes Sentinel-2 images, DEM and Worldclim data to achieve rapid acquisition of large-scale crop distribution and change information, reducing the consumption of manpower and material resources and greatly saving monitoring costs.
[0043] 3. The multi-head encoder of MFPUNet constructed by the present invention has two key parts: the first part is the encoder of multi-scale pyramid structure, which can capture the spatial information of the image from different scales, so as to effectively extract the spectral and spatial features. The second part is to use the pre-trained three-layer ResNet34 as the feature learner of the terrain features. This architecture design aims to learn features from different data sources separately and solve the inherent differences between the information captured from different data.
[0044] 4. The present invention utilizes the fusion objective function to coordinate the prediction results of the deep learning model and the ecological niche model. The low resolution of habitat data usually cannot truly describe the spatial distribution of crops. The present invention integrates the MaxEnt model and the deep learning model in an effective way to obtain more complete and clear crop extraction results. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a flow chart of a method for extracting crop planting areas by combining remote sensing images and habitat information proposed by the present invention;
[0046] Figure 2 It is a structural diagram of the MFPUNet model constructed by the present invention. DETAILED DESCRIPTION
[0047] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.
[0048] like Figure 1 As shown, the present invention proposes a method for extracting crop planting areas by combining remote sensing images and habitat information, and the specific steps are as follows:
[0049] Step 1: Select Sentinel-2 L1C multispectral image data, ASTER GDEM (Global Digital Elevation Model of Spaceborne Thermal Emission and Reflection Radiometer) data, and Worldclim (High Spatial Resolution Global Weather and Climate Database) climate data that cover the target area without clouds and with good imaging quality, and divide the target area into training area and test area.
[0050] Step 2: The Sentinel-2L1C data of the target area are processed into L2A data, all bands are resampled to 10 m, the resampled images are terrain corrected using the Teillet algorithm, and the grayscale value (DN value) is converted into spectral reflectance.
[0051] Step 3: Randomly select 200 sample points of four categories, namely crops, forests, bare land, and grassland, in the training area and calculate the vegetation index of each sample point.
[0052] Step 4: Implement the Relief-F feature screening algorithm based on the Python environment. After T iterations, the average weight of each feature (i.e., vegetation index) is used as the feature weight:
[0053]
[0054] Among them, ω(F i ) represents the weight of the i-th feature, and k is the number of nearest neighbor samples. h∈H ∣R i -h i ∣ is the sum of the nearest neighbor distances between sample R and the selected k similar samples on the i-th feature. ∑ m∈M ∣R i -m i | represents the sum of the nearest neighbor distances between sample R and k samples of different types on the i-th feature.
[0055] Step 5: Calculate the Pearson correlation coefficient between all vegetation indices:
[0056]
[0057] Among them, r pearson represents the Pearson correlation coefficient, j represents the sampling point. x and y represent two different features, X represents the mean of x, and Y represents the mean of y.
[0058] Step 6: Sort the feature weights in descending order, starting with the vegetation index corresponding to the largest weight, and select the three most important vegetation indices, which satisfy the correlation coefficient between each other less than 0.6. Eliminate the bands in Sentinel-2 that are not related to the classification of land objects, and combine the remaining bands with the selected three vegetation indices as spectral features, with a total of 12 spectral features (blue band, green band, red band, three vegetation red edge bands, near infrared band, two short-wave infrared bands, and three vegetation indices).
[0059] Step 7: Based on the DEM, the slope and aspect were calculated using the 3D Analyst tool in ArcGIS, and the data were resampled to 10 m. The altitude, slope, and aspect were combined into terrain features.
[0060] Step 8: According to the overlap rate of 50%, the spectral features, terrain features and labels of the training area and the test area are cropped into image blocks of size 256×256. In order to reduce background interference, some negative samples in the training area are removed to make the number of positive and negative samples about 1:1. Geometric transformation is used for data enhancement to obtain the data set of the training area. The data set is randomly divided into a training set and a validation set with a ratio of 8:2.
[0061] Step 9: Use the PyTorch deep learning library to build the MFPUNet model. Figure 2 As shown in the figure, the model uses the UNet architecture as the baseline, introduces a multi-head encoder and a post-fusion strategy. The design of the multi-head encoder is divided into two parts: the first part is a three-layer ResNet50 spectral encoder with a multi-scale pyramid structure, which is used to learn spectral features and calls the ImageNet pre-training parameters; the second part uses a three-layer ResNet34 as a feature learner for terrain features and calls the ImageNet pre-training parameters. In the model decoder part, these features are integrated through the post-fusion method.
[0062] The spectral feature image blocks are input into the spectral encoder, and the terrain feature image blocks are input into the terrain encoder to train and verify the MFPUNet model. The Adam optimizer is used for model training, and the initial learning rate of the model is set to 1×10 -4 , the batch size is 4, the total number of training epochs is 80, and the learning rate decay factor is defined as 0.1, and the learning rate decreases every 25 epochs.
[0063] Select weighted cross entropy loss (Weighted Cross Entropy, Weighted CE) to evaluate the model training effect:
[0064]
[0065] Among them, pn is a vector containing the predicted probabilities for class n, y n is a one-hot vector with only 1 and 0 elements, and N is the number of categories;
[0066] The frequency of crop pixels in the statistical label β n , calculate the crop weight w according to the weight formula n :
[0067]
[0068] w n is the weight of class n, and β n is the frequency of occurrence of category n.
[0069] Step 10, obtain crop sample points according to the rule that the distance between crop sample points is greater than 1.5 km; input crop sample points with a distance greater than 1.5 km and WorldClim climate data to train the MaxEnt model, use ten-fold cross validation, select the simulation result with the largest AUC value, and predict the geographical distribution of suitable crop growth areas; evaluate the prediction results based on the AUC value, predict the probability of suitable crop growth areas in the entire region and resample to 10m.
[0070] Step 11, use the fusion objective function to make a decision fusion process on the prediction results of the MFPUNet model and the MaxEnt model. The fusion objective function is shown in the following formula:
[0071]
[0072] Where S is the set of pixel positions, Represented by model M k The predicted pixel s belongs to category y s The probability of w k It is model M k The weight of each model is calculated based on the training accuracy, as shown in the following formula: Where A(model k ) represents the model M k The target class accuracy.
[0073] Step 12: Use the trained MFPUNet model and MaxEnt model to predict the crop distribution in the test area.
[0074] Based on the same inventive concept, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the aforementioned method for extracting crop planting areas combining remote sensing images and habitat information are implemented.
[0075] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the aforementioned method for extracting crop planting areas by combining remote sensing images and habitat information are implemented.
[0076] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0077] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0078] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0079] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0080] The above embodiments are only for illustrating the technical idea of the present invention, and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the present invention.
Claims
1. A method for extracting crop planting areas by combining remote sensing images and habitat information, characterized in that: The steps include: Step 1: Obtain Sentinel-2 multispectral image data, ASTER GDEM data, and WorldClim climate data of the target area, and divide the target area into a training area and a test area; Step 2: Preprocess the Sentinel-2 multispectral image data of the target area to obtain preprocessed multispectral image data, randomly select and label four types of sample points of crops, forests, bare land and grassland in the training area, and calculate the vegetation index of each sample point; Step 3, based on the Relief-F feature screening algorithm and the Pearson correlation coefficient, the three most important vegetation indices are selected from all vegetation indices at each sample point; Step 4: remove the bands in Sentinel-2 that are not related to the classification of land objects, and use the remaining bands together with the three most important vegetation indices as spectral features; Step 5: Calculate the slope and aspect based on the ASTER GDEM data and resample to 10 m. The resampled altitude, slope and aspect are used as terrain features. Step 6: construct a data set for the entire target area based on the spectral features and terrain features, and divide the data set of the training area into a training set and a validation set, and construct a MFPUNet model. The MFPUNet model includes a spectral encoder, a terrain encoder, and a decoder. The MFPUNet model is trained and validated using the training set and the validation set; the trained MFPUNet model is used to predict the test area; Step 7: Select the crop sample points with a distance greater than 1.5 km from each other as the crop existence points from all the crop sample points, use the crop existence points and WorldClim climate data to train the MaxEnt model, use ten-fold cross validation, select the simulation result with the largest AUC value, predict the probability distribution of the crop suitable growth area in the test area and resample to 10m; Step 8: Use the fusion objective function to perform decision fusion processing on the prediction results of the MFPUNet model and the MaxEnt model, and predict the crop distribution in the test area based on the decision fusion results.
2. The method for extracting crop planting areas by combining remote sensing images and habitat information according to claim 1, characterized in that: Step 2 preprocesses the Sentinel-2 multispectral image data of the target area, including: converting the L1C data of Sentinel-2 into L2A data, resampling all bands to 10m, performing terrain correction on the resampled image using the terrain correction model Teillet, and converting the grayscale value into spectral reflectance.
3. The method for extracting crop planting areas by combining remote sensing images and habitat information according to claim 1, characterized in that: The specific process of step 3 is as follows: 3.1, using the Relief F-Pearson feature screening algorithm, the average weight of each vegetation index obtained after T iterations is taken as the final weight, that is: Among them, ω(F i ) represents the weight of the i-th vegetation index, k is the number of nearest neighbor samples, ∑ h∈H ∣R i -h i ∣ is the sum of the nearest neighbor distances between the sample point R and the selected k similar sample points on the i-th vegetation index, R i represents the i-th vegetation index of sample point R, h i represents the i-th vegetation index of sample point h of the same category as sample point R, H represents the set of sample points of the same category as sample point R, ∑ m∈M ∣R i -m i ∣ represents the sum of the nearest neighbor distances between sample point R and k different types of sample points on the i-th vegetation index, m i represents the i-th vegetation index of sample point m of a different category from sample point R, and M represents the set of sample points of a different category from sample point R; 3.
2. For all vegetation indices, calculate the Pearson correlation coefficient between each pair, that is: Among them, r pearson represents the Pearson correlation coefficient, x j and j They represent the vegetation index x and y of the j-th sample point, respectively. X represents the mean of the vegetation index x of all sample points, and Y represents the mean of the vegetation index y of all sample points. x and y represent two different vegetation indices. 3.3, sort the final weights of all vegetation indices from large to small, and select three vegetation indices starting from the ones with the largest final weights. The selected three vegetation indices satisfy the Pearson correlation coefficient between each pair is less than 0.
6.
4. The method for extracting crop planting areas by combining remote sensing images and habitat information according to claim 1, characterized in that: The remaining bands in step 4 include a blue band, a green band, a red band, three vegetation red edge bands, a near infrared band, and two short-wave infrared bands.
5. The method for extracting crop planting areas by combining remote sensing images and habitat information according to claim 1, characterized in that: As described in step 6, a data set of the entire target area is constructed based on the spectral features and terrain features, and the data set of the training area is divided into a training set and a validation set. Specifically, the spectral features, terrain features and labels of the entire target area are cropped into image blocks of 256×256 size according to a 50% overlap rate, and some negative samples in the training area are removed to make the ratio of positive and negative samples 1:
1. Geometric transformation is used for data enhancement to obtain the data set of the training area, and the data set is divided into a training set and a validation set at a ratio of 8:
2.
6. The method for extracting crop planting areas by combining remote sensing images and habitat information according to claim 1, characterized in that: The MFPUNet model described in step 6 uses the UNet architecture as the baseline, introduces a multi-head encoder and a post-fusion strategy, and the multi-head encoder is divided into two parts: the first part is a three-layer ResNet50 encoder with a multi-scale pyramid structure, which is used to learn spectral features; The second part is a three-layer ResNet34 encoder, which is used to learn terrain features; The spectral encoder performs the first to fourth downsampling on the input spectral features, and at the same time crops the input spectral features into four identical sub-blocks, and performs the first to fourth downsampling on each sub-block, and at the same time crops each sub-block into four identical small sub-blocks, and performs the first to fourth downsampling on each small sub-block; the terrain encoder performs the first to fourth downsampling on the input terrain features; The result obtained by the fourth downsampling of the spectral features is successively passed through the dilated spatial convolutional pooling pyramid and the convolutional layer to obtain result A1; the results of the fourth downsampling of the four sub-blocks are merged to obtain result B11, and the results of the fourth downsampling of the sixteen small sub-blocks are merged to obtain result B12. B11 and B12 are concatenated and then passed through the convolutional layer to obtain result B1; The fourth downsampling result of the terrain features is concatenated with A1 and B1 and then upsampled to obtain the result D1; The results of the third downsampling of the four sub-blocks are combined to obtain the result B2; The results of the third downsampling of the sixteen small sub-blocks are combined to obtain the result C2; The result obtained by the third downsampling of the spectral feature is concatenated with the results obtained by the third downsampling of B2, C2, D1 and the terrain feature, and then upsampled to obtain the result D2; The results of the second downsampling of the four sub-blocks are combined to obtain result B3; The results of the second downsampling of the sixteen small sub-blocks are combined to obtain the result C3; The result obtained by the second downsampling of the spectral feature is concatenated with the results obtained by the second downsampling of B3, C3, D2 and the terrain feature, and then upsampled to obtain the result D3; The results of the first downsampling of the four sub-blocks are combined to obtain the result B4; the results of the first downsampling of the sixteen small sub-blocks are combined to obtain the result C4; The result obtained by the first downsampling of the spectral feature is concatenated with the results of B4, C4, D3 and the first downsampling of the terrain feature, and then upsampled to obtain the result D4; D4 is subjected to dimensionality reduction processing to obtain the output of the model.
7. The method for extracting crop planting areas by combining remote sensing images and habitat information according to claim 1, characterized in that: The MFPUNet model described in step 6 uses the Adam optimizer for model training and sets the initial learning rate of the model to 1×10 -4 , the batch size is 4, the total number of training epochs is 80, the learning rate decay factor is defined as 0.1, and the learning rate decreases every 25 epochs; Select weighted category cross entropy loss to evaluate the model training effect, that is: Where L represents the weighted category cross entropy loss, N is the number of categories, and w n is the weight of category n, y n represents a one-hot vector with only 1 and 0 elements, p n represents a vector containing the predicted probabilities for class n, β n Represents the frequency of occurrence of category n.
8. The method for extracting crop planting areas by combining remote sensing images and habitat information according to claim 1, characterized in that: The fusion objective function described in step 8 is as follows: Where S is the set of pixel locations, Represented by model M k The predicted pixel s belongs to category y s The probability of w k It is model M k The weight of A(model k ) represents the model M k The target class accuracy.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor executes the computer program, the steps of the method for extracting crop planting areas by combining remote sensing images and habitat information as described in any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for extracting crop planting areas by combining remote sensing images and habitat information as described in any one of claims 1 to 8 are implemented.
