A crop planting area recognition method in a complex background based on remote sensing images
By constructing a Net-SLR model, combining Elastic-Net and Laplacian regularization terms, and using the spectral feature adjacency matrix to select the optimal feature combination, the accuracy and robustness issues of crop planting area identification in remote sensing images under complex backgrounds are solved, and efficient crop classification is achieved.
Patent Information
- Application Number
- CN202410636310.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-05-22
Smart Images

Figure CN118587480B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent crop classification technology, and in particular to a method for identifying crop planting areas in complex backgrounds based on remote sensing images. Background Technology
[0002] With the rapid development of Earth observation technology, remote sensing technology can acquire large-scale spatial information in a timely manner. The development of multispectral and high-resolution satellite sensors has promoted the availability of remote sensing data in smart agriculture. This data has fundamentally changed our ability to acquire extensive agricultural knowledge, providing valuable insights into crop management and land use patterns. In modern agriculture, remote sensing imagery can provide macroscopic, real-time, and high-resolution monitoring data, enabling dynamic monitoring and efficient management of crops. Among the many agricultural applications based on remote sensing imagery, accurately mapping crop distribution is a key task, involving many important issues such as the rational allocation of agricultural production resources and food security.
[0003] In the early stages of remote sensing technology development, crop type identification primarily relied on visual interpretation methods. In recent decades, automatic computation and identification of satellite imagery based on computational models has become the main approach for studying crop planting distribution. These computational models effectively learn and interpret features in remote sensing data through abstract modeling and analysis. Traditional machine learning methods, such as Support Vector Machines (SVM), Random Forests (RF), and Logistic Regression (LR), have demonstrated superior performance in crop identification research using remote sensing images. Generally speaking, crop identification research based on remote sensing data is inherently a nonlinear problem. In recent years, deep learning has become an effective method for addressing the complexity of remote sensing images in complex environmental scenarios. Numerous deep learning models have emerged in the field of remote sensing-based ground target identification.
[0004] Due to the vast geographical scope of remote sensing data, the amount of labeled data available for deep learning models is very limited. Although deep learning methods demonstrate high efficiency, uncertainties such as lighting conditions, cloud cover, resolution, and temporal variations lead to significant variability in remote sensing data. These constraints challenge the generalization ability of trained models. In contrast, machine learning has attracted considerable attention due to its simplicity, interpretability, and lower requirements for data processing and analysis.
[0005] Features in remote sensing imagery typically originate from different spectral bands. Different land objects exhibit varying reflectance or radiation characteristics across these bands. Therefore, feature selection is an effective method for extracting key features from diverse input datasets. However, existing classifier models lack robustness and exhibit unstable performance across different remote sensing datasets. Most classification methods directly utilize raw spectral features as input. These raw features are susceptible to noise and environmental influences. Previous machine learning methods have often treated feature selection and classification models as two independent entities. Feature selection is typically considered an independent preprocessing step before the classification model learns, neglecting prior knowledge about the feature structure. Therefore, a comprehensive analytical method combining feature selection and classification can be developed.
[0006] In crop identification using remote sensing imagery, sparse logistic regression (SLR) models can compress irrelevant features in remote sensing data and simultaneously perform classification and feature selection. In practice, most SLR models typically employ Lasso regularization for feature selection. However, Lasso regularization assumes all variables are independent and uncorrelated, limiting the applicability of Lasso-based classification models. To address this issue, Elastic-Net regularization was proposed, combining the advantages of Lasso and Ridge regularization. It can stably select multiple correlated variables by adjusting parameters. However, in the context of remote sensing imagery, these features exhibit significant interdependencies, and Elastic-Net regularization alone cannot provide the required stable and effective solution. Therefore, based on prior knowledge of variable structure, a Net-SLR model is constructed using the normalized Laplacian matrix as a prior network for spectral features to further enhance feature selection in SLR and improve the generalization ability of the classification model, thereby achieving higher accuracy and robustness. To this end, this invention proposes a method for identifying crop planting areas in complex backgrounds based on remote sensing imagery. Summary of the Invention
[0007] The purpose of this invention is to address the problem in the background art of difficulty in accurately identifying crop planting areas in complex regions with a high degree of fragmentation, specifically the single crop type. This invention proposes a method for identifying crop planting areas in complex backgrounds based on remote sensing imagery.
[0008] The technical solution of this invention: A method for identifying crop planting areas in complex backgrounds based on remote sensing imagery, comprising the following steps:
[0009] S1. Establish a dataset: Download remote sensing data, perform preprocessing operations on the remote sensing data, label the remote sensing data, extract spectral features as a dataset, and then divide the dataset into a training set and a test set.
[0010] S2. Construct a spectral feature adjacency matrix: Construct a spectral feature adjacency matrix by combining the spectral features of crops, the spectral band features involved in the vegetation index, and the band combination of the remote sensing data;
[0011] S3. Construct a network sparse logistic regression classification model: Construct a Net-SLR classification model that combines a logistic regression classifier model, Elastic-Net, and Laplacian regularization terms;
[0012] S4. Feature selection: Adjust the regularization parameters of the Net-SLR classification model, and use the Net-SLR classification model to perform feature selection on the remote sensing data, selecting the spectral feature combination that contributes the most to the accurate identification of crops;
[0013] S5. Classification and Recognition: Use the Net-SLR classification model to classify and recognize crops, generate classification results, and evaluate the classification and recognition accuracy.
[0014] Optionally, the remote sensing data in S1 is Sentinel-2 satellite remote sensing image data.
[0015] Optionally, the specific implementation steps of S1 are as follows:
[0016] S1-a: Acquire Sentinel-2 satellite remote sensing images in 10 bands with spatial resolutions of 10m and 20m, including visible light band, near-infrared band and short-wave infrared band;
[0017] S1-b: Preprocess satellite imagery, including band enhancement, band fusion, image stitching, and image cropping;
[0018] S1-c: Using visual interpretation and field survey results, ArcGIS software was used to label crops in the preprocessed remote sensing images, and the spectral reflectance of the bands and the corresponding category labels were extracted as data stored in the dataset.
[0019] The S1-d remote sensing dataset adopts a random uniform distribution principle, with 60%-80% of the data divided into the training set and 20%-40% of the data divided into the test set.
[0020] Optionally, the features in S2 are as follows:
[0021] Spectral characteristics of crops: spectral reflectance of Sentinel-2 satellite remote sensing image bands B2, B3, B4, B5, B6, B7, B8, B8A and B11, B12 under different conditions;
[0022] Vegetation index characteristics: Normalized Difference Vegetation Index (NDVI) and Enhanced Vegetation Index (EDI), among which,
[0023] Normalized Difference Vegetation Index (NDVI):
[0024]
[0025] Where B8 is the reflectance in the near-infrared band and B4 is the reflectance in the red band;
[0026] The enhanced vegetation index is:
[0027]
[0028] Where B2 is the reflectivity of the blue band;
[0029] The spectral band characteristics involved in the vegetation index and the band combination of the remote sensing data: monitoring crop characteristics and health status based on spectral reflectance under different conditions.
[0030] Optionally, the specific steps for constructing the Net-SLR classification model in S3 are as follows:
[0031] S3-a. Construct a sparse logistic regression classifier model with Elastic-Net regularization terms to ensure that the parameters of the Net-SLR classification model are smooth by inducing sparsity in the classifier model.
[0032] S3-b: Based on the spectral feature adjacency matrix, a feature variable prior network structure is constructed to combine spectral feature prior knowledge. Its feature variable prior network module is a Laplacian regularization term, and the feature variable prior network is obtained by encoding the normalized Laplacian matrix through the spectral feature adjacency matrix.
[0033] Optionally, in step S4, the specific steps for feature selection are as follows:
[0034] S4-a: Train the Net-SLR classification model based on the training set of remote sensing data, and obtain the corresponding classification accuracy by optimizing and adjusting the regularization parameter λ of the model;
[0035] S4-b: As the regularization parameter λ increases, the regression coefficients of spectral features that contribute little to accurate crop identification are gradually compressed to zero.
[0036] S4-c: By selecting the regularization parameter λ with the highest classification accuracy, the feature combination that contributes the most to accurate crop identification is determined.
[0037] Optionally, in step S5, the specific steps are as follows:
[0038] Based on the remote sensing data test set and the regularization parameter λ of the highest classification accuracy, the Net-SLR classification model is used to classify and identify crops, and the overall classification accuracy (OA), recall (Recall), and AUC value are calculated based on the confusion matrix.
[0039]
[0040]
[0041] Among them, TP represents a true positive, predicting the number of positive cases as the number of positive cases; TN represents a true negative, predicting the number of negative cases as the number of negative cases; FP represents a false positive, predicting the number of negative cases as the number of positive cases; and FN represents a false negative, predicting the number of positive cases as the number of negative cases.
[0042] The AUC value is the area under the ROC curve, a value between 0 and 1.
[0043] Optionally, the ROC curve is a curve with sensitivity as the vertical axis and 1-specificity as the horizontal axis.
[0044] Compared with the prior art, the present invention has the following beneficial technical effects:
[0045] (1) The prior network based on spectral features in this invention can accurately determine the optimal feature combination, thereby reducing model complexity, improving model running efficiency, and effectively improving the accuracy of crop classification and identification in complex areas. By calculating the feature regression coefficient, the importance of spectral features in crop classification and identification in complex areas is highlighted.
[0046] (2) The Net-SLR model constructed in this invention outperforms single classifier models in crop classification and identification. It improves crop identification accuracy under complex terrain conditions, scattered crop distribution, small plot scale, and overlapping growth periods of multiple crops. It verifies the feasibility of using high-resolution satellite remote sensing images for crop identification in complex terrain areas and provides good theoretical and practical support for crop classification under other complex terrain conditions.
[0047] In summary, this invention requires fewer samples, reduces the time spent processing remote sensing data, and constructs a spectral feature adjacency matrix, which can fully utilize the spectral features of remote sensing images while simultaneously performing feature selection and crop classification. This improves the generalization ability and classification accuracy of the crop identification model, solves the problem of identification difficulties in areas with complex crop planting, and is therefore more practically significant. Attached Figure Description
[0048] Figure 1 A flowchart illustrating a method for identifying crop planting areas in complex backgrounds based on remote sensing imagery, provided as an embodiment of the present invention;
[0049] Figure 2 The distribution of marked sample points in Changfeng County, Hefei City, Anhui Province in April 2021;
[0050] Figure 3 shows the feature selection of the Net-SLR model based on different regularization coefficients λ; among them, Figure 3(a) shows the changes in regression coefficients of remote sensing image spectral features based on different regularization coefficients λ; Figure 3(b) shows the changes in classification performance of the Net-SLR model based on different regularization coefficients λ; Figure 3(c) shows the feature selection results when the regularization coefficient λ = 420.
[0051] Figure 4 The ROC curves for wheat classification are shown for the Net-SLR model and the single classifier model.
[0052] Figure 5 A partial comparison of classification results for concentrated crop planting scenes in remote sensing imagery of Changfeng County; among them, Figure 5 (a) is the original image of a concentrated crop planting scene in Changfeng County, presented by remote sensing imagery; Figure 5 (b) shows the classification results of the Net-SLR model; Figure 5 (c) shows the classification results of the Elastic-SLR model;
[0053] Figure 6 A partial comparison of classification results for scattered crop planting scenes in remote sensing imagery of Changfeng County; among them, Figure 6 (a) is the original image of scattered crop planting scenes in remote sensing imagery of Changfeng County; Figure 6 (b) shows the classification results of the Net-SLR model; Figure 6 (c) shows the classification results of the Elastic-SLR model. Detailed Implementation
[0054] The technical solution of the present invention will be further described below with reference to the accompanying drawings and specific embodiments.
[0055] Example
[0056] The remote sensing data used in this embodiment is a Sentinel-2 satellite image covering Changfeng County, Hefei City, Anhui Province, taken on April 6, 2021, with low cloud cover and clear ground features. The image was taken during the peak vegetation growing season, and the main crops are wheat and rapeseed. Although the area is located in the central plains of China, crop cultivation in this region is mostly scattered, with small plots of land unevenly distributed.
[0057] like Figure 1 As shown, the present invention provides a method for identifying crop planting areas in complex backgrounds based on remote sensing imagery, comprising the following steps:
[0058] S1. Establish dataset: Download Sentinel-2 satellite remote sensing image data, preprocess the downloaded remote sensing data, and after labeling it with the results of field surveys, extract spectral features as the dataset, and then divide the dataset into training set and test set.
[0059] S2. Constructing a spectral feature adjacency matrix: Construct a spectral feature adjacency matrix by combining the spectral features of crops, the spectral band features involved in vegetation indices, and the band combinations of Sentinel-2 satellite remote sensing image data;
[0060] S3. Construct a network sparse logistic regression classification model: Construct a Net-SLR classification model that combines a logistic regression classifier model, Elastic-Net, and Laplacian regularization terms;
[0061] S4. Feature Selection: By adjusting the regularization parameters of the Net-SLR classification model, feature selection is performed on the remote sensing data using the Net-SLR classification model to select the spectral feature combination that contributes the most to the accurate identification of crops.
[0062] S5. Classification and Recognition: Use the Net-SLR classification model to classify and recognize crops, generate classification results, and evaluate the accuracy of classification and recognition.
[0063] This crop classification and identification method is applicable to various types of crop classification tasks, including but not limited to common crops such as wheat and rapeseed. In practical applications, the model parameters can be adjusted according to specific needs to adapt to different application scenarios and task requirements.
[0064] Specifically, the implementation of step S1 in this embodiment is as follows:
[0065] S1-a: Download Sentinel-2 satellite imagery in 10 bands with spatial resolutions of 10m and 20m from the European Space Agency's Copernicus Data Open Centre, including visible light, near-infrared and short-wave infrared bands.
[0066] S1-b: Preprocess satellite imagery, including band enhancement, band fusion, image stitching, and image cropping;
[0067] S1-c. Using visual interpretation and field survey results, ArcMap software was used to label crops in the preprocessed remote sensing images. The distribution of labeled sample points in Changfeng County, Hefei City, Anhui Province in April 2021 is shown below. Figure 2 As shown, a total of 5,000 valid land cover type samples were obtained in April 2021, which covered the entire study area relatively evenly. The spectral reflectance of the bands and the corresponding category labels were extracted and stored in the dataset.
[0068] The S1-d remote sensing dataset follows the principle of random uniform distribution, with 70% of the data divided into the training set and 30% into the test set.
[0069] The specific features in step S2 are as follows:
[0070] S2-a, Spectral characteristics: Spectral reflectance of Sentinel-2 satellite remote sensing image bands B2 (Blue), B3 (Green), B4 (Red), B5, B6, B7 (Red edge), B8 (NIR), B8A (Narrow-NIR), and B11 and B12 (SWIR);
[0071] S2-b, Vegetation index characteristics: Normalized Difference Vegetation Index (NDVI) and Enhanced Vegetation Index (EVI);
[0072] Normalized Difference Vegetation Index (NDVI):
[0073]
[0074] Where B8 is the reflectance in the near-infrared band and B4 is the reflectance in the red band;
[0075] The enhanced vegetation index is:
[0076]
[0077] Wherein, B8 is the reflectance in the near-infrared band, B4 is the reflectance in the red band, and B2 is the reflectance in the blue band.
[0078] The band combinations of S2-c and Sentinel-2 satellite remote sensing data are as follows: the natural color (B4, B3, B2) band combination displays images in true color; the color infrared (B8, B4, B3) band combination can emphasize healthy and unhealthy vegetation conditions, with denser vegetation appearing red and urban areas appearing white; the shortwave infrared (B12, B8A, B4) band combination displays various shades of green vegetation, with darker green indicating denser vegetation; and the agricultural (B11, B8, B2) band combination is used to monitor crop health, with dense vegetation areas appearing dark green.
[0079] The specific implementation method of step S3 is as follows:
[0080] S3-a. Construct a sparse logistic regression classifier model with Elastic-Net regularization terms, which ensures that the parameters of the Net-SLR classification model are smooth by inducing sparsity in the classifier model.
[0081] S3-b: Based on the spectral feature adjacency matrix, a feature variable prior network structure is constructed to combine spectral feature prior knowledge. Its feature variable prior network module is a Laplacian regularization term, and the feature variable prior network is obtained by encoding the normalized Laplacian matrix through the spectral feature adjacency matrix.
[0082] The specific implementation method of step S4 is as follows:
[0083] As shown in Figure 3 ( Figure 3a As shown in 3b and 3c), the Net-SLR classification model is trained based on the training set of remote sensing images, and the regularization parameter λ of the model (ranging from 10) is adjusted by optimization. -2 Up to 10 3 The corresponding classification accuracy is obtained. As the regularization parameter λ increases, the regression coefficients of spectral features that contribute less to accurate crop identification are gradually compressed to zero. The Net-SLR model selects features based on different regularization coefficients λ. By selecting the regularization parameter λ of 420 with the highest classification accuracy, the feature combination that contributes the most to accurate crop identification is determined.
[0084] The specific implementation method of step S5 is as follows:
[0085] This study focuses on key crops, wheat and rapeseed, without further subdividing other land types. Based on a remote sensing data test set and the regularization parameter λ representing the highest classification accuracy, the Net-SLR classification model is used to classify and identify crops. The overall classification precision (OA), recall (Recall), and AUC (Average Unknown Value) are calculated based on the confusion matrix.
[0086]
[0087]
[0088] In this diagram, TP represents a true positive, predicting the number of positive cases as positive; TN represents a true negative, predicting the number of negative cases as negative; FP represents a false positive, predicting the number of negative cases as positive; and FN represents a false negative, predicting the number of positive cases as negative. The ROC curve is a curve with sensitivity on the vertical axis and specificity on the horizontal axis. The AUC value is the area under the ROC curve, a value between 0 and 1.
[0089] To evaluate the impact of the Net-SLR model on crop classification and recognition capabilities, the classification accuracy of the following six classification models was compared:
[0090] (1) Net-SLR model;
[0091] (2) Support Vector Machine (SVM) model;
[0092] (3) Random Forest (RF) model;
[0093] (4) Logistic Regression (LR) model;
[0094] (5) Lasso Regularized Sparse Logistic Regression (Lasso-SLR) model;
[0095] (6) Elastic Regularized Sparse Logistic Regression (Elastic-SLR) model.
[0096] The classification results of six classification models for wheat and rapeseed are shown in Table 1. The test results show that the Net-SLR model outperforms the other models overall. The Net-SLR model achieved overall precision, recall, and AUC of 0.982, 0.989, and 0.984 for wheat, and 0.972, 0.908, and 0.950 for rapeseed, respectively, all higher than other single classifier models. This demonstrates that the present invention can effectively extract and identify different categories of crops, thus efficiently completing the classification task. The Net-SLR model, based on a feature variable prior network structure using spectral feature prior knowledge, improved the overall precision for wheat and rapeseed by approximately 1.6% and 0.7% respectively compared to the Elastic-SLR model. The ROC curves for wheat classification by the six models are shown in Table 1. Figure 4 As shown.
[0097] Table 1. Performance comparison between Net-SLR model and single classifier model:
[0098]
[0099] Local comparison of classification results of concentrated and scattered crop planting scenes in remote sensing images of Changfeng County based on Net-SLR and Elastic-SLR models: Figure 5 and Figure 6 As shown, the Elastic-SLR model misses classifying wheat and misclassifies rapeseed as wheat, while the Net-SLR model significantly improves upon these misclassifications.
[0100] The Net-SLR constructed in this embodiment is robust and can effectively extract crop information from areas with complex crop cultivation, especially improving the classification and recognition accuracy of crops such as wheat and rapeseed.
[0101] The above specific embodiments are merely several preferred embodiments of the present invention. Based on the technical solutions of the present invention and the relevant teachings of the above embodiments, those skilled in the art can make various alternative improvements and combinations to the above specific embodiments.
Claims
1. A method for identifying crop planting areas in a complex background based on remote sensing images, characterized in that, Includes the following steps: S1. Establish a dataset: Download remote sensing data, perform preprocessing operations on the remote sensing data, label the remote sensing data, extract spectral features as a dataset, and then divide the dataset into a training set and a test set. S2. Construct a spectral feature adjacency matrix: Construct a spectral feature adjacency matrix by combining the spectral features of crops, the spectral band features involved in the vegetation index, and the band combination of the remote sensing data; S3. Construct a network sparse logistic regression classification model: Construct a Net-SLR classification model that combines a logistic regression classifier model, Elastic-Net, and Laplacian regularization terms; The specific steps for constructing the Net-SLR classification model in S3 are as follows: S3-a. Construct a sparse logistic regression classifier model with Elastic-Net regularization terms to ensure that the parameters of the Net-SLR classification model are smooth by inducing sparsity in the classifier model. S3-b: Based on the spectral feature adjacency matrix, a feature variable prior network structure is constructed to combine spectral feature prior knowledge. Its feature variable prior network module is a Laplacian regularization term. The feature variable prior network is obtained by encoding the normalized Laplacian matrix through the spectral feature adjacency matrix. S4. Feature selection: Adjust the regularization parameters of the Net-SLR classification model, and use the Net-SLR classification model to perform feature selection on the remote sensing data, selecting the spectral feature combination that contributes the most to the accurate identification of crops; In step S4, the specific steps for feature selection are as follows: S4-a: Train the Net-SLR classification model based on the training set of remote sensing data, and obtain the corresponding classification accuracy by optimizing and adjusting the regularization parameter λ of the model; S4-b: As the regularization parameter λ increases, the regression coefficients of spectral features that contribute little to accurate crop identification are gradually compressed to zero. S4-c: By selecting the regularization parameter λ with the highest classification accuracy, the feature combination that contributes the most to the accurate identification of crops is determined. S5. Classification and Recognition: Use the Net-SLR classification model to classify and recognize crops, generate classification results, and evaluate the classification and recognition accuracy. In step S5, the specific steps are as follows: Based on the remote sensing data test set and the regularization parameter λ of the highest classification accuracy, the Net-SLR classification model is used to classify and identify crops, and the overall classification accuracy (OA), recall (Recall), and AUC value are calculated based on the confusion matrix. , , Among them, TP represents a true positive, predicting the number of positive cases as the number of positive cases; TN represents a true negative, predicting the number of negative cases as the number of negative cases; FP represents a false positive, predicting the number of negative cases as the number of positive cases; and FN represents a false negative, predicting the number of positive cases as the number of negative cases. The AUC value is the area under the ROC curve, and its value is between 0 and 1.
2. The method for identifying crop planting areas in complex backgrounds based on remote sensing imagery according to claim 1, characterized in that, The remote sensing data in S1 is Sentinel-2 satellite remote sensing image data.
3. The method for identifying crop planting areas in complex backgrounds based on remote sensing imagery according to claim 2, characterized in that, The specific implementation steps of S1 are as follows: S1-a: Acquire Sentinel-2 satellite remote sensing images in 10 bands with spatial resolutions of 10m and 20m, including visible light band, near-infrared band and short-wave infrared band; S1-b: Preprocess satellite imagery, including band enhancement, band fusion, image stitching, and image cropping; S1-c: Using visual interpretation and field survey results, ArcGIS software was used to label crops in the preprocessed remote sensing images, and the spectral reflectance of the bands and the corresponding category labels were extracted as data stored in the dataset. The S1-d remote sensing dataset adopts a random uniform distribution principle, with 60%-80% of the data divided into the training set and 20%-40% of the data divided into the test set.
4. The method for identifying crop planting areas in complex backgrounds based on remote sensing imagery according to claim 3, characterized in that, The specific features in S2 are as follows: Spectral characteristics of crops: spectral reflectance of Sentinel-2 satellite remote sensing image bands B2, B3, B4, B5, B6, B7, B8, B8A and B11, B12 under different conditions; Vegetation index characteristics: Normalized Difference Vegetation Index (NDVI) and Enhanced Vegetation Index (EDI), among which, Normalized Difference Vegetation Index (NDVI): , Where B8 is the reflectance in the near-infrared band and B4 is the reflectance in the red band; The enhanced vegetation index is: , Where B2 is the reflectivity of the blue band; The spectral band characteristics involved in the vegetation index and the band combination of the remote sensing data: monitoring crop characteristics and health status based on spectral reflectance under different conditions.
5. The method for identifying crop planting areas in complex backgrounds based on remote sensing imagery according to claim 1, characterized in that, The ROC curve is a curve with sensitivity as the vertical axis and 1-specificity as the horizontal axis.
6. A method for identifying crop planting areas in complex backgrounds based on remote sensing imagery according to any one of claims 1-5, characterized in that, It can be applied to various types of crop classification tasks, and the model parameters can be adjusted according to the application scenario and task requirements.
