A semi-supervised annotation method for remote sensing multispectral data based on self-learning
Through self-learning algorithms and random forest models, combined with principal component analysis and outlier removal, semi-supervised annotation of remote sensing multispectral data is achieved, solving the problems of heavy manual annotation workload and limited target types, and improving annotation accuracy and speed. Suitable for multispectral data and multi-category annotation.
Patent Information
- Application Number
- CN202111492310.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-08
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-12-08
AI Technical Summary
Existing remote sensing data annotation methods have problems such as heavy manual annotation workload, difficulty in achieving large-area annotation, limited target types, and limited wave bands. In particular, there is a lack of effective methods for multispectral data annotation.
A semi-supervised labeling method for remote sensing multispectral data based on self-learning is adopted. By acquiring and fusing multispectral image data, using seed points and principal component analysis for data preprocessing, a random forest classification model is constructed, data labeling is automatically completed, and through iteration and Abnormal point removal improves labeling accuracy.
It achieves automatic annotation based on less annotated data, improves annotation accuracy and speed, reduces the need for manual annotation, is suitable for multi-spectral data and multi-category annotation, and enhances anti-noise capabilities.
Smart Images

Figure CN114266932B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data annotation, and in particular to a semi-supervised annotation method for remote sensing multispectral data based on self-learning. Background Art
[0002] The data required for traditional geography, environmental science, and earth science research are all obtained by ground monitoring stations or field surveys, which have problems such as long cycles, long time consumption, and high costs. Remote sensing technology has greatly improved the above points. Ocean satellites with shorter cycles can obtain global images within a few hours, and land resource satellites can obtain global surface information within 10+ days. The application of remote sensing technology has greatly shortened the time and cost of data collection. At the same time, the multi-phase data collected is of great significance for the study of evolution.
[0003] With a series of technological breakthroughs, artificial intelligence has gradually entered the fast lane in the world's science and technology field. The development of artificial intelligence is inseparable from data annotation. As a cornerstone on the highway of artificial intelligence, data annotation has become the top priority among many important links. Remote sensing image target detection is a research hotspot in the field of remote sensing image processing. It is widely used in military and civilian fields. Remote sensing data has the characteristics of high resolution and fast data growth. The annotation of remote sensing data is the key to remote sensing data management and understanding, providing a foundation for the development of subsequent remote sensing automatic interpretation algorithms, ensuring that the algorithm releases the full potential of AI and machine learning, and helping machine learning programs bring the greatest value.
[0004] Data labeling is still a labor-intensive industry at the current stage, and manual work plays a vital role in the entire process. Remote sensing data has high resolution, and the workload of manual labeling is large. The collection of ground truth is a very tedious and time-consuming task, and sometimes very expensive, especially in the remote sensing field, which usually relies on field surveys to collect ground truth. Therefore, it is difficult to achieve data labeling in large areas by manual labeling. Therefore. To improve the efficiency and quality of data labeling, it is necessary to reduce the workload of manpower, which requires high-efficiency and high-quality data labeling tools. The Chinese patent with publication number CN113111716A discloses "a semi-automatic labeling method and device for remote sensing images based on deep learning", and proposes a semi-automatic labeling method. The method trains a fully convolutional neural network based on a public remote sensing data set, uses the network to automatically label the data, and confirms whether manual intervention is required based on the uncertain row measurement value of the label to complete the entire semi-automatic labeling process. This method is limited by the need for the data to be labeled to be consistent with the band of the public data set, and cannot achieve semi-automatic labeling on data with inconsistent bands, and is not generally applicable. Moreover, most of the annotation methods only annotate the three-band data of visible light, while there are few methods for annotating multispectral data. The Chinese patent with publication number CN111079847A discloses "a remote sensing image automatic annotation method based on deep learning". This method aligns the electronic map with the remote sensing image, and then extracts the vector data of buildings and roads from the electronic map and maps it to the remote sensing image. The multi-task deep learning model is trained based on the mapped data, and the remote sensing image classification of the test set is completed through the deep neural network to complete the automatic annotation of the data set. This method is based on extracting targets from electronic maps and is only applicable to urban targets such as artificial buildings and roads, such as roads, houses, vehicles, airplanes, etc., while there are fewer types of targets in the natural environment, and the categories of automatic annotation are limited. Summary of the invention
[0005] In order to solve the problems of large manual labeling workload, difficulty in implementing data labeling for large areas, limited target types and limited bands in existing remote sensing data labeling methods, the present invention provides a semi-supervised labeling method for remote sensing multispectral data based on self-learning.
[0006] The technical solution adopted by the present invention to solve the technical problem is as follows:
[0007] The present invention provides a remote sensing multispectral data semi-supervised labeling method based on self-learning, which mainly includes the following steps:
[0008] Step 1: Data acquisition and fusion
[0009] Acquire remote sensing multispectral image data in the study area, determine the category information of the target to be classified, perform image fusion on the remote sensing multispectral image data, and obtain fused remote sensing multispectral image data;
[0010] Step 2: Obtaining seed points
[0011] Select a sample plot in the study area, record the category information of the target to be classified in the sample plot, determine the pixel correspondence between the target to be classified in the sample plot and the fused remote sensing multispectral image data by combining the fused remote sensing multispectral image data, obtain the pixel category information of the fused remote sensing multispectral image data, and complete the seed point acquisition;
[0012] Step 3: Preprocessing labeled data
[0013] The seed point data generated in step 2 is used as the initial labeled data. Each pixel point of the fused remote sensing multispectral image data contains spectral information of multiple bands. Different bands have high correlation. The principal component analysis method is used to remove redundant information between bands.
[0014] Step 4: Build a classification model
[0015] Use the labeled data preprocessed in step 3 to build a classification model using the random forest algorithm;
[0016] Step 5: Outlier Removal
[0017] The classification model constructed in step 4 is used to classify the unlabeled data, and the confidence of the classification category is obtained. The confidence less than the set value is considered to be an outlier. The data after removing the outliers is used as a new labeled data set for the next round of iteration. Repeat steps 3 to 5 to obtain the final self-labeled data set.
[0018] Furthermore, in step 2, the area of each sample plot is 50*50 square meters.
[0019] Furthermore, in step 2, the sample plots cover all categories of interest.
[0020] Furthermore, in step 2, the location of each sample plot is measured using the global positioning system GPS, with a measurement accuracy within 1 m.
[0021] Furthermore, the specific operation process of step three is as follows:
[0022] 1) Use labeled data to construct a matrix X = (X1, X2, ..., X p ), X is an n*p matrix, n is the number of spectral bands of remote sensing multispectral image data, p is the number of labeled data, X j is an n*1 column vector, representing the multispectral information of the jth seed point, 1≤j≤p;
[0023] 2) Zero-mean each row of X;
[0024] 3) Find the covariance matrix represents the zero-mean matrix, T represents the matrix transpose, Representation Matrix The transpose of
[0025] 4) Solve the eigenvalues and corresponding eigenvectors of the covariance matrix;
[0026] 5) Sort the eigenvalues corresponding to the eigenvectors from large to small, and take the first k eigenvalues and eigenvectors, so that k satisfies The minimum value of λ i is the sorted eigenvalue;
[0027] 6) The data after dimensionality reduction is Q is the eigenvector corresponding to k eigenvalues, with a dimension of k*n; the data Y is the labeled data with redundant information between bands removed.
[0028] Furthermore, in step 3 (2), each row of X represents a spectrum segment of remote sensing multispectral image data.
[0029] Furthermore, in step 4, in the random forest algorithm, the generation rule of each tree in the random forest is:
[0030] 1) If the size of the labeled data set obtained in step 3 is p, for each tree, randomly select p training samples with replacement as the training set of the tree;
[0031] 2) The feature dimension of each training sample is k. The out-of-bag error rate is used to determine the constant m. M feature subsets are randomly selected from the k feature values. Each time the tree splits, the optimal feature is selected from these m feature subsets.
[0032] 3) Each tree grows as much as possible without pruning.
[0033] Furthermore, in step 4 (2), the steps for determining m are:
[0034] a) For each training sample, calculate the classification result as an out-of-bag sample;
[0035] b) Use voting to simply confirm the classification category of the training sample;
[0036] c) The ratio of the number of misclassified samples to the total number of training samples is used as the out-of-bag error rate.
[0037] Furthermore, in step five, the confidence value is set to 0.4.
[0038] The beneficial effects of the present invention are:
[0039] The present invention discloses a semi-supervised labeling method for remote sensing multispectral data based on self-learning, which manually labels some seed points for each category to be classified, realizes automatic classification of data sets based on seed points and self-learning algorithm, and then cleans the classified data to obtain updated labeled data sets, thereby completing the semi-supervised labeling of remote sensing multispectral data.
[0040] Compared with the existing data annotation methods, the semi-supervised annotation method of remote sensing multispectral data based on self-learning in the present invention brings the following effects to remote sensing multispectral data annotation:
[0041] 1. The present invention only requires a small number of labeled sample points and can complete the automatic labeling process based on less labeled data, with low requirements on the amount of manually labeled data.
[0042] 2. The present invention involves a wide range of categories, and the categories covered by manual annotation can all be automatically annotated later.
[0043] 3. The present invention removes redundant information and improves labeling accuracy: Since different bands of the original multispectral data usually have a high correlation and information redundancy, the principal component analysis method is used in data preprocessing to remove redundant information between bands, thereby improving labeling accuracy.
[0044] 4. The present invention has strong noise resistance: in the process of dimensionality reduction using principal component analysis, noise data in the data collection process can be removed, the signal-to-noise ratio of the data can be increased, and thus the noise resistance can be improved.
[0045] 5. The classification speed of the present invention is fast and the accuracy is high: the classification algorithm based on self-learning has a fast training speed and can quickly realize the labeling of unlabeled data. The iterative training and outlier removal process can further improve the classification accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 The present invention is a flowchart of a semi-supervised labeling method for remote sensing multispectral data based on self-learning. DETAILED DESCRIPTION
[0047] The invention discloses a semi-supervised labeling method for remote sensing multispectral data based on self-learning. A small number of seed points are manually labeled in each category, and the classification of unlabeled data is completed based on a self-learning algorithm and an outlier detection algorithm. The method mainly includes multiple cycles of iteration of four processes: 1) obtaining labeled data; 2) preprocessing labeled data; 3) completing self-learning algorithm iteration based on labeled data; classifying unlabeled data using the algorithm after iteration to obtain updated labeled data; and 4) removing outliers in labeled data.
[0048] The present invention can realize the labeling of data of any category, has low requirements on the amount of manually labeled data, and can complete the automatic labeling process based on less labeled data. The self-learning method improves the labeling accuracy and labeling speed, and avoids the experience differences of manually labeled data.
[0049] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0050] like Figure 1 As shown, a semi-supervised labeling method for remote sensing multispectral data based on self-learning of the present invention specifically includes the following steps:
[0051] Step 1: Data acquisition and fusion
[0052] Acquire the remote sensing multispectral image data in the study area, determine the category information of the target to be classified, perform image fusion on the remote sensing multispectral image data, and obtain fused remote sensing multispectral image data.
[0053] The image fusion method mainly includes the following steps:
[0054] Acquire remote sensing multispectral image data of the same area, determine the pixel size of the highest resolution band as Height*Weight, where Height is the image height of the band, and Weight is the image width of the band. Based on the bilinear interpolation algorithm, interpolate the data of all bands to the same size of the highest resolution band, and create a 3D matrix with a matrix size of n*Height*Weight, where n is the number of remote sensing multispectral image data bands, and each slice is the interpolated remote sensing multispectral image data.
[0055] Step 2: Obtaining seed points
[0056] Sample plots are selected in the study area. Each plot is 50*50 square meters in size. The plots can cover all categories of interest. The location of each plot can be measured using the global positioning system (GPS) with a measurement accuracy of less than 1m. The category information of the target to be classified in the plot is recorded. The pixel correspondence between the target to be classified in the plot and the fused remote sensing multispectral image data is determined by combining the fused remote sensing multispectral image data and the category information of the target to be classified. The pixel category information of the fused remote sensing multispectral image data is obtained to complete the seed point acquisition. The seed point refers to the manually annotated labeled data sample, which needs to cover all categories to be classified.
[0057] Step 3: Preprocessing labeled data
[0058] The initial labeled data is the seed point data generated in step 2. Each pixel point of the fused remote sensing multispectral image data contains spectral information of multiple bands. Different bands usually have a high correlation. The principal component analysis method is used in data preprocessing to remove redundant information between bands. The specific operation process is as follows:
[0059] 7) Use labeled data to construct a matrix X = (X1, X2, ..., X p ), X is an n*p matrix, where n is the number of spectral bands of remote sensing multispectral image data, p is the number of labeled data, and X j is an n*1 column vector, representing the multispectral information of the jth seed point, 1≤j≤p.
[0060] 8) Zero-mean each row of X (each row represents a spectrum of remote sensing multispectral image data), that is, subtract the mean of this row.
[0061] 9) Find the covariance matrix in, represents the zero-mean matrix, T represents the matrix transpose, Representation Matrix The transpose of .
[0062] 10) Solve for the eigenvalues and corresponding eigenvectors of the covariance matrix.
[0063] 11) Sort the eigenvalues corresponding to the eigenvectors from large to small, and take the first k eigenvalues and eigenvectors, so that k satisfies The minimum value of i is the sorted eigenvalue.
[0064] 12) The data after dimension reduction is Among them, Q is the eigenvector corresponding to k eigenvalues, and the dimension is k*n. The data Y is the labeled data with redundant information between bands removed.
[0065] Step 4: Build a classification model
[0066] The classification model is constructed using the random forest algorithm using the labeled data preprocessed in step 3. In the random forest algorithm, the generation rule of each tree in the random forest is as follows:
[0067] 1) If the size of the labeled data set obtained in step 3 is p, for each tree, p training samples are randomly selected with replacement sampling as the training set of the tree.
[0068] 2) The feature dimension of each training sample is k. The out-of-bag error rate is used to determine the constant m. M feature subsets are randomly selected from the k feature values. Each time the tree splits, the optimal feature is selected from these m feature subsets.
[0069] The steps for determining m are as follows:
[0070] d) For each training sample, calculate the classification result as an out-of-bag sample.
[0071] e) Use voting to simply confirm the classification category of the training sample.
[0072] f) The ratio of the number of misclassified samples to the total number of training samples is used as the out-of-bag error rate.
[0073] 3) Each tree grows as much as possible without pruning.
[0074] Step 5: Outlier Removal
[0075] The classification model constructed in step 4 is used to classify the unlabeled data, and the confidence of the classification category is obtained. The confidence less than 0.4 is considered an outlier. The data after removing the outliers is used as a new labeled data set for the next round of iteration. Repeat steps 3 to 5 to obtain the final self-labeled data set.
[0076] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A semi-supervised annotation method for remote sensing multispectral data based on self-learning, characterized in that: The following steps are involved: Step 1: Data acquisition and fusion Acquire remote sensing multispectral image data in the same research area, determine the category information of the target to be classified, fuse the remote sensing multispectral image data, and obtain fused remote sensing multispectral image data; Step 2: Obtaining seed points Select sample plots in the same study area, record the category information of the target to be classified in the sample plots, determine the pixel correspondence between the target to be classified in the sample plots and the fused remote sensing multispectral image data by combining the fused remote sensing multispectral image data, obtain the pixel category information of the fused remote sensing multispectral image data, and complete the seed point acquisition; Step 3: Preprocessing labeled data The seed point data generated in step 2 is used as the initial labeled data. Each pixel point of the fused remote sensing multispectral image data contains spectral information of multiple bands. Different bands have high correlation. The principal component analysis method is used to remove redundant information between bands. The specific operation process of step three is as follows: 1) Use labeled data to construct a matrix X = (X1, X2, ..., X p ), X is an n*p matrix, n is the number of spectral bands of remote sensing multispectral image data, p is the number of labeled data, X j is an n*1 column vector, representing the multispectral information of the jth seed point, 1≤j≤p; 2) Zero-mean each row of X; 3) Find the covariance matrix represents the zero-mean matrix, T represents the matrix transpose, Representation Matrix The transpose of 4) Solve the eigenvalues and corresponding eigenvectors of the covariance matrix; 5) Sort the eigenvalues corresponding to the eigenvectors from large to small, and take the first k eigenvalues and eigenvectors, so that k satisfies s 1≤ u i≤ m k λ i / s 1≤ u i≤ m n λ i ≥0.95 minimum value, λ i is the sorted eigenvalue; 6) The data after dimensionality reduction is Y=Q~X, where Q is the eigenvector corresponding to k eigenvalues and the dimension is k*n; the data Y is the labeled data with redundant information between bands removed; Step 4: Build a classification model Use the labeled data preprocessed in step 3 to build a classification model using the random forest algorithm; Step 5: Outlier removal The classification model constructed in step 4 is used to classify the unlabeled data, and the confidence of the classification category is obtained. The confidence less than the set value is considered to be an outlier. The data after removing the outliers is used as a new labeled data set for the next round of iteration. Repeat steps 3 to 5 to obtain the final self-labeled data set.
2. The method for semi-supervised labeling of remote sensing multispectral data based on self-learning according to claim 1, characterized in that: In step 2, the area of each sample plot is 50*50 square meters.
3. The method for semi-supervised labeling of remote sensing multispectral data based on self-learning according to claim 1, characterized in that: In step 2, the sample plots cover all categories of interest.
4. The method for semi-supervised labeling of remote sensing multispectral data based on self-learning according to claim 1, characterized in that: In step 2, the location of each sample plot was measured using the global positioning system GPS with an accuracy of less than 1 m.
5. The method for semi-supervised labeling of remote sensing multispectral data based on self-learning according to claim 1, characterized in that: In step 3 (2), each row of X represents a spectrum segment of remote sensing multispectral image data.
6. The method for semi-supervised labeling of remote sensing multispectral data based on self-learning according to claim 1, characterized in that: In step 4, in the random forest algorithm, the generation rule of each tree in the random forest is: 1) If the size of the labeled data set obtained in step 3 is p, for each tree, randomly select p training samples with replacement as the training set of the tree; 2) The feature dimension of each training sample is k. The out-of-bag error rate is used to determine the constant m. M feature subsets are randomly selected from the k feature values. Each time the tree splits, the optimal feature is selected from these m feature subsets. 3) Each tree grows as much as possible without pruning.
7. The method for semi-supervised labeling of remote sensing multispectral data based on self-learning according to claim 6, characterized in that: In step 4 (2), the steps for determining m are: a) For each training sample, calculate the classification result as an out-of-bag sample; b) Use voting to simply confirm the classification category of the training sample; c) The ratio of the number of misclassified samples to the total number of training samples is used as the out-of-bag error rate.
8. The method for semi-supervised labeling of remote sensing multispectral data based on self-learning according to claim 1, characterized in that: In step 5, the confidence value is set to 0.4.
