Threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images

Generating high-quality samples through twin networks and adaptive threshold estimation methods, combined with semivariogram and farthest point sampling, solves the problems of low classification accuracy and poor stability of hyperspectral remote sensing images, and achieves high-precision classification with a small number of labeled samples. , and reduce the computational cost.

CN118470469BActive Publication Date: 2024-10-22深圳市规划和自然资源数据管理中心(深圳市空间地理信息中心) +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410928303.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-22
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

In the existing hyperspectral remote sensing image classification technology, the classification accuracy is not high and the stability and universality are poor. The sample quality is difficult to constrain and control. The samples generated by the generative adversarial network may not represent the real sample distribution. Active learning methods increase the time cost of manual annotation. .

Method used

The twin network is used for training, the threshold value of each category is adaptively estimated to select pseudo samples, and the sample labels and distribution are optimized through semivariogram and farthest point sampling algorithm to form a high-quality virtual sample set and reduce the need for manual labeling.

Benefits of technology

It maintains high classification accuracy under a small number of manually labeled samples, is stable and universal, has low computational cost, and improves the land cover classification accuracy of high-resolution remote sensing images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470469B_ABST
    Figure CN118470469B_ABST
Patent Text Reader

Abstract

The present invention discloses a threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images, the method comprising: obtaining public data of hyperspectral remote sensing images, selecting multiple samples according to each type to form an initial training sample set; using a twin network as a classifier to train the initial training sample set, and predicting the hyperspectral pixel by pixel to obtain a prediction result presented in a classification probability matrix; inputting the classification probability matrix into a threshold estimation module to adaptively estimate each type of threshold, selecting samples with a prediction probability higher than the corresponding category threshold in the classification probability matrix as pseudo samples, and obtaining a pseudo sample set; detecting and correcting the pseudo sample set to obtain a corrected pseudo sample set, placing the corrected pseudo sample set into the initial training sample set, and stopping the iteration when the threshold reaches a predefined condition to obtain a final classification map. The present invention improves the accuracy of land cover classification of high-resolution images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of remote sensing image classification, and in particular to a threshold estimation sample enhancement method, system, terminal and computer-readable storage medium for deep learning classification of hyperspectral remote sensing images. Background Art

[0002] Hyperspectral Remote Sensed Image (HRSI) land cover classification aims to assign a unique semantic label to each pixel and has been successfully applied in various fields, such as urban area monitoring, precision agriculture, and environmental protection. In the past few decades, some representative supervised methods and classifiers, such as support vector machines, random forests, and supervised neural networks, have been successfully applied to HRSI classification. However, the quality and quantity of samples are crucial for training robust supervised classifiers. To this end, various HRSI classification methods based on sample enhancement have been proposed to improve the classification performance.

[0003] For example, pseudo-labeling technology is the most common sample augmentation strategy, which makes full use of a large number of unlabeled samples. For example, the semi-supervised framework uses a predefined constant threshold for all categories to select unlabeled data that is helpful for training, thus failing to consider the different learning states and learning difficulties of different categories.

[0004] For example, sample generation improves sample diversity and enhances model generalization through geometric transformation. The main operations include transformation, mixing, and occlusion. However, the main limitation of the above methods is that the model performance depends largely on the quality of the generated samples, which is difficult to constrain and control. In addition, generative adversarial networks (GAN) are an effective method for generating virtual samples. For example, 3D-GAN (3 Dimensional -G generative adversarial networks) first applied GAN to the field of HRSI classification, using initial samples and generated samples to perform HRSI classification tasks. Adaptive dropblock (CNN regularization method, randomly masking some features of the patch block, CNN, convolutional neural network) enhanced GAN (ADGAN, Adaptivedropblock-enhanced generative adversarial networks) combines dropblock technology with GAN to generate samples with good spatial distribution. Although GAN-based methods can generate virtual samples, GAN follows the assumption that the sample distribution belongs to the normal distribution. In addition, the generated samples may not represent the distribution of the real original samples.

[0005] For example, active learning algorithms select unlabeled samples that are beneficial to model classification to expand the training set by designing sample query strategies. The query strategies are mainly based on sample uncertainty queries and sample representativeness queries. However, the labels of the samples after the query still need to be determined. Active learning may increase the time spent on manually labeling samples.

[0006] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0007] The main purpose of the present invention is to provide a threshold estimation sample enhancement method, system, terminal and computer-readable storage medium for deep learning classification of hyperspectral remote sensing images, aiming to solve the problem that the existing methods for classifying high-resolution remote sensing images have poor stability and universality and low classification accuracy.

[0008] To achieve the above object, the present invention provides a threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images, and the threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images comprises the following steps:

[0009] Obtaining public data of hyperspectral remote sensing images, and selecting a plurality of samples of each type from the public data of hyperspectral remote sensing images to form an initial training sample set;

[0010] Using the twin network as a classifier to train the initial training sample set, and predicting the hyperspectral pixel by pixel to obtain a prediction result presented in a classification probability matrix;

[0011] The classification probability matrix is ​​input into a threshold estimation module, the threshold estimation module adaptively estimates each class threshold, and selects samples with predicted probabilities higher than the corresponding class threshold in the classification probability matrix as pseudo samples to obtain a pseudo sample set;

[0012] The pseudo sample set is detected and corrected to obtain a corrected pseudo sample set, and the corrected pseudo sample set is placed into the initial training sample set. When a threshold reaches a predefined condition, the iteration stops to obtain a final classification map.

[0013] Optionally, the threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images, wherein the step of obtaining public data of hyperspectral remote sensing images and selecting a plurality of samples of each type from the public data of hyperspectral remote sensing images to form an initial training sample set, specifically includes:

[0014] Get a hyperspectral land cover classification dataset;

[0015] The ground reference truth map of the hyperspectral land cover classification dataset is labeled with multiple pixels of each type of ground feature to form an initial training sample set. , define the initial threshold set ;

[0016] in, and It is Iteration No. Class training sample subset and threshold, is the total number of categories in the initial training sample set.

[0017] Optionally, the threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images, wherein the initial training sample set is trained using the twin network as a classifier, and the hyperspectral image is predicted pixel by pixel to obtain a prediction result presented as a classification probability matrix, specifically comprising:

[0018] For the initial training sample set After training, the twin network is used as a classifier to classify each pixel of the hyperspectral remote sensing image to obtain the classification probability matrix ;

[0019] in, is a dimensional probability vector, represented as The probability that a sample belongs to a category.

[0020] Optionally, the threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images, wherein the classification probability matrix is ​​input into a threshold estimation module, the threshold estimation module adaptively estimates the threshold of each category, and selects samples with a predicted probability higher than the corresponding category threshold in the classification probability matrix as pseudo samples to obtain a pseudo sample set, specifically comprising:

[0021] Determine whether each type of threshold meets the iteration stop condition: ;

[0022] in, Indicates Iteration No. The threshold of the class;

[0023] If If the class threshold meets the iteration stop condition, the next iteration will not expand Class sample;

[0024] If The class threshold does not meet the iteration stop condition, and the classification probability matrix Input to the threshold estimation module, select the samples whose maximum classification probability of each pixel is higher than the threshold of this class to construct a pseudo sample set ;

[0025] in, For the Class The pseudo sample subset of the iteration;

[0026] Statistical pseudo sample set The number of samples in each category is obtained ;

[0027] in, For the The predicted probability of the iteration exceeds The number of samples for the class threshold;

[0028] calculate Iteration threshold set ;

[0029] in, For the The predicted probability of the iteration exceeds The number of samples for the class threshold.

[0030] Optionally, the threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images, wherein the pseudo sample set is detected and corrected to obtain a corrected pseudo sample set, the corrected pseudo sample set is placed into the initial training sample set, and the iteration stops when the threshold reaches a predefined condition to obtain a final classification map, specifically comprising:

[0031] For the pseudo sample set Perform pseudo sample correction on each type of pseudo sample set;

[0032] Initialize an empty candidate sample set , each type of pseudo sample set Perform intra-class sample optimization sampling and place the sampled samples in ;

[0033] The initial training sample set and Merge into training sample set , through the twin network as a classifier pair Training is performed to classify each pixel of the hyperspectral remote sensing image to obtain a classification probability set , until all classes meet the predefined conditions, for the classification probability set Execute the softmax function to obtain the result graph, perform quantitative evaluation on the result graph and the true value graph to obtain the classification accuracy, and finally output the classification result graph and the corresponding classification accuracy.

[0034] Optionally, the threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images, wherein the pseudo sample set Each type of pseudo sample set is corrected by pseudo sample correction, including:

[0035] For A subset of pseudo samples of the class , the known training sample subset is ;

[0036] in, It is The total number of samples in the class training set, For the No. known training samples;

[0037] The semivariogram function is introduced to correct pseudo samples. The semivariogram function is defined as , each training sample is obtained through the semivariogram function of Follow changes;

[0038] in, represents the semivariogram, , represents the sampling interval of spatial distance, and Representation sample and samples The spectral value of Represented as a sample and samples The number of sample pairs is formed to reflect the optimal scale of homogeneous regions;

[0039] By modifying the homogeneous region and Samples that do not belong to the same category to meet the requirements of sample correction.

[0040] Optionally, the threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images, wherein the initialization empty candidate sample set , each type of pseudo sample set Perform intra-class sample optimization sampling and place the sampled samples in , specifically including:

[0041] For Class pseudo sample set, given pseudo sample set ;

[0042] in, yes The total number of pseudo samples in , For the pseudo samples, defining the sampling rate ;

[0043] Randomly select a pixel , ,Will Placement middle;

[0044] exist Search samples in , Distance to empty candidate sample set The farthest, where the distance is determined by the spectral Euclidean distance Calculated until the sampling rate reaches Stop sampling and return .

[0045] In addition, to achieve the above-mentioned purpose, the present invention also provides a threshold estimation sample enhancement system for deep learning classification of hyperspectral remote sensing images, wherein the threshold estimation sample enhancement system for deep learning classification of hyperspectral remote sensing images comprises:

[0046] The threshold estimation sample enhancement system for deep learning classification of hyperspectral remote sensing images includes:

[0047] A training sample acquisition module is used to acquire public data of hyperspectral remote sensing images, and select multiple samples of each type from the public data of hyperspectral remote sensing images to form an initial training sample set;

[0048] A training and prediction module, used to use the twin network as a classifier to train the initial training sample set, and predict the hyperspectral pixel by pixel to obtain a prediction result presented in a classification probability matrix;

[0049] A pseudo sample generation module is used to input the classification probability matrix into a threshold estimation module, the threshold estimation module adaptively estimates each class threshold, selects samples with a predicted probability higher than the corresponding class threshold in the classification probability matrix as pseudo samples, and obtains a pseudo sample set;

[0050] The correction and classification module is used to detect and correct the pseudo sample set to obtain a corrected pseudo sample set, and place the corrected pseudo sample set into the initial training sample set. When the threshold reaches a predefined condition, the iteration stops to obtain a final classification map.

[0051] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and a threshold estimation sample enhancement program for deep learning classification of hyperspectral remote sensing images stored in the memory and run on the processor, and when the threshold estimation sample enhancement program for deep learning classification of hyperspectral remote sensing images is executed by the processor, the steps of the threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images as described above are implemented.

[0052] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a threshold estimation sample enhancement program for deep learning classification of hyperspectral remote sensing images, and when the threshold estimation sample enhancement program for deep learning classification of hyperspectral remote sensing images is executed by a processor, the steps of the threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images as described above are implemented.

[0053] In the present invention, the public data of hyperspectral remote sensing images are obtained, and multiple samples are selected from the public data of hyperspectral remote sensing images according to each type to form an initial training sample set; the initial training sample set is trained using a twin network as a classifier, and the hyperspectral image is predicted pixel by pixel to obtain a prediction result presented in a classification probability matrix; the classification probability matrix is ​​input into a threshold estimation module, the threshold estimation module adaptively estimates each type of threshold, and selects samples with a prediction probability higher than the corresponding category threshold in the classification probability matrix as pseudo samples to obtain a pseudo sample set; the pseudo sample set is detected and corrected to obtain a corrected pseudo sample set, and the corrected pseudo sample set is placed in the initial training sample set, and the iteration stops when the threshold reaches a predefined condition to obtain a final classification map. The present invention ensures that good classification accuracy is maintained under a small number of artificially labeled samples, and also performs well under different sample sizes, has certain stability and universality, and has a low computational cost, thereby improving the classification accuracy of high-resolution image land cover. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is a flow chart of a preferred embodiment of a threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images of the present invention;

[0055] Figure 2 It is a schematic diagram of the implementation process of a preferred embodiment of the threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images of the present invention;

[0056] Figure 3 It is a schematic diagram of a hyperspectral land cover classification data set disclosed in a preferred embodiment of a threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images of the present invention;

[0057] Figure 4It is a rendering of the present invention and other eight comparison methods in a preferred embodiment of the threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images of the present invention;

[0058] Figure 5 It is a structural diagram of a preferred embodiment of the threshold estimation sample enhancement system for deep learning classification of hyperspectral remote sensing images of the present invention;

[0059] Figure 6 It is a structural diagram of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0061] The present invention discloses a threshold estimation sample enhancement method based on deep learning classification of hyperspectral remote sensing images, which is a method for expanding the initial training set using unlabeled data according to the learning state of the model. The core of the present invention is to flexibly adjust the thresholds of different categories in each iteration to filter the unlabeled data and pseudo-labels with rich information and high confidence. In order to improve the quality of filtered samples, a semi-variation model is used to detect and correct sample labels. In addition, in order to improve the sample's ability to represent intra-class heterogeneity, the farthest point sampling algorithm is used to optimize the distribution of samples. The above modules are integrated into the iterative process, and a twin network is used to classify hyperspectral remote sensing images in each iteration to continuously optimize the classification results. The method ensures good classification accuracy under a small number of manually labeled samples by expanding the initial training set. At the same time, the present invention also performs well under different sample sizes, has certain stability and universality, and has a low computational cost. The proposal of this method has important practical significance for high-resolution remote sensing image classification.

[0062] The threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images described in the preferred embodiment of the present invention is as follows: Figure 1 and Figure 2 As shown, the threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images includes the following steps:

[0063] Step S10: Obtain public data of hyperspectral remote sensing images, and select multiple samples of each type from the public data of hyperspectral remote sensing images to form an initial training sample set.

[0064] Specifically, obtain a hyperspectral land cover classification dataset such as Figure 3 As shown, Figure 3The input data is Paviauniversity, Pavia university is a public hyperspectral land cover classification dataset, detailed information is as follows Figure 3 As shown, (a) is a false color image, and (b) is the ground reference truth of (a) ((b) and (a) have the same length and width, the pixels correspond one to one, and the same color represents the same type of ground object).

[0065] The ground reference truth map of the hyperspectral land cover classification dataset (i.e., Pavia University data) is labeled with multiple (e.g., 10) pixels of each type of ground feature to form an initial training sample set. , define the initial threshold set ;in, and It is Iteration No. Class training sample subset and threshold, then , is the total number of categories in the initial training sample set.

[0066] Step S20: Use the twin network as a classifier to train the initial training sample set, and predict the hyperspectral pixel by pixel to obtain a prediction result presented in a classification probability matrix.

[0067] Specifically, for the initial training sample set After training, the twin network is used as a classifier to classify each pixel of the hyperspectral remote sensing image to obtain the classification probability matrix ;in, is a dimensional probability vector, represented as The classifier predicts the probability that a sample belongs to a category, and the classifier predicts that the sample is the category with the highest probability.

[0068] Step S30: input the classification probability matrix into a threshold estimation module, the threshold estimation module adaptively estimates each category threshold, selects samples with predicted probabilities higher than the corresponding category threshold in the classification probability matrix as pseudo samples, and obtains a pseudo sample set.

[0069] Specifically, determine whether each type of threshold meets the iteration stop condition: ;in, Indicates Iteration No. The threshold of the class; if If the class threshold meets the iteration stop condition, the next iteration will not expand Class sample; if The class threshold does not meet the iteration stop condition, and the classification probability matrix Input to the threshold estimation module, select the samples whose maximum classification probability of each pixel is higher than the threshold of this class to construct a pseudo sample set ;in, For the Class Subset of pseudo samples for iterations; Statistical pseudo sample set The number of samples in each category is ;in, For the The predicted probability of the iteration exceeds The number of samples for the class threshold; calculation Iteration threshold set ;in, For the The predicted probability of the iteration exceeds The number of samples for the class threshold. The details are as follows:

[0070] For The pseudo sample subset Normalized, by formula Get the corresponding ( It has no actual meaning. It indicates that the values ​​are normalized to facilitate computer processing. Each value except the maximum value of these values ​​will still follow the original properties, but the size will become [0, 1]). Calculate the next iteration Class Threshold ,in is a decreasing parabola mapping function, denoted by , is the weight factor, which reflects hour The lower limit of .

[0071] Step S40: Detect and correct the pseudo sample set to obtain a corrected pseudo sample set, place the corrected pseudo sample set into the initial training sample set, and when the threshold reaches a predefined condition, the iteration stops to obtain a final classification map.

[0072] Specifically, for the pseudo sample set Each type of pseudo sample set is corrected to improve the sample quality. Specifically: A subset of pseudo samples of the class , the known training sample subset is ;in, It is The total number of samples in the class training set, For the No. known training samples; introduce the semivariogram function to correct pseudo samples, and the semivariogram function is defined as , each training sample is obtained through the semivariogram function of Follow changes; among them, represents the semivariogram, , represents the sampling interval of spatial distance, and Representation sample and samples The spectral value of Represented as a sample and samples The number of sample pairs is formed to reflect the optimal scale of homogeneous regions, and the homogeneous regions are likely to share the same label. Samples that do not belong to the same category can achieve the effect of sample correction.

[0073] Initialize an empty candidate sample set , each type of pseudo sample set Perform intra-class sample optimization sampling and place the sampled samples in , specifically: for the Class pseudo sample set, given pseudo sample set ;in, yes The total number of pseudo samples in , For the pseudo samples, defining the sampling rate ; Randomly select a pixel , ,Will Placement in Search samples in , Distance to empty candidate sample set The farthest, where the distance is determined by the spectral Euclidean distance Calculated until the sampling rate reaches Stop sampling and return .

[0074] The initial training sample set and Merge into training sample set , through the twin network as a classifier pair Training is performed to classify each pixel of the hyperspectral remote sensing image to obtain a classification probability set , until all classes meet the predefined conditions, for the classification probability set Execute the softmax function to obtain the result graph, perform quantitative evaluation on the result graph and the true value graph to obtain the classification accuracy, and finally output the classification result graph and the corresponding classification accuracy.

[0075] The purpose of the present invention is to provide a threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images, which does not require a large number of learning samples by generating reliable virtual samples and improves the accuracy of land cover classification of high-resolution images. To achieve the above purpose, the technical solution of the present invention uses a set of widely used hyperspectral remote sensing images as test data, and the experimental results show that the inventive method can effectively improve the classification accuracy.

[0076] Figure 4 Visual comparison results of different methods are given: eight existing comparison methods for land cover classification based on a small number of samples are selected, compared with the method in this embodiment, and verified by five widely used indicators. Among them, 3D-CNN (3 dimensional -convolutional neural network) and 3D-GAN (3 dimensional -generative adversarial networks) are common baseline networks, DFSL (Deep few-shot learning), S3-Net (Spectral–spatial Siamese network), MDL-Net (multitask deep learning network) and DM-MRN (multistage relation network with dual-metric) methods are currently the most advanced few-shot classification networks, 3D-HyperGAMO (3D-Generative adversarial minority oversampling) and ADGAN (Adaptive dropblock-enhanced generative adversarial networks) are networks that deal with imbalanced problems. Figure 4 The result diagram of the method of the present invention is shown in Table 1. It can be seen from the effect diagram that the method of the present invention is significantly better than other methods. Table 1 shows the accuracy comparison results of different methods. Table 2 shows the change of the accuracy of the present invention with the number of iterations. Table 3 shows the change of the accuracy of the present invention with the number of samples.

[0077] Table 1 is a precision comparison table of the present invention and other eight comparison methods, wherein the method in the present invention uses OA: overall accuracy, AA: average accuracy, Ka coefficient, F1-score coefficient and SDUA coefficient indicators to evaluate the advantages of the method. OA represents the sum of correctly classified pixels divided by the total number of pixels, AA refers to the average value of the accuracy of all object categories, Ka coefficient is an indicator used for consistency verification, which measures the difference between the performance of the classification algorithm and the performance of random classification, F1-score coefficient is a measurement indicator for classification problems, which is the harmonic mean of precision and recall, SDUA refers to the standard deviation between the accuracy of various types of objects, measures the numerical distribution of the accuracy of object categories, and describes the deviation between the accuracy of object categories.

[0078] Table 1: Comparison of the accuracy of the present invention and other eight comparison methods

[0079]

[0080] Table 2: Changes in the accuracy of the present invention with the number of iterations

[0081]

[0082] Table 3: The accuracy of the present invention varies with the number of samples

[0083]

[0084] In summary, the present invention has the following advantages:

[0085] (1) The present invention is the first to use an adaptive threshold instead of a predefined constant threshold to select high-quality samples.

[0086] (2) This paper introduces the semivariogram into the HRSI classification task for the first time, corrects the pseudo sample labels, and improves the sample quality.

[0087] (3) With a small number of manually labeled samples, the classification accuracy is still very good, which effectively reduces the labor and time costs of labeling samples.

[0088] (4) The method proposed in the present invention has good stability. As the number of training samples gradually increases, the accuracy of the method remains within 5%. It can be seen that this method is suitable for remote sensing image classification with a small number of samples.

[0089] (5) The process of the present invention is intuitive and reasonable, with a high degree of automation and low computational cost.

[0090] Furthermore, if Figure 5As shown, based on the above-mentioned threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images, the present invention also provides a threshold estimation sample enhancement system for deep learning classification of hyperspectral remote sensing images, wherein the threshold estimation sample enhancement system for deep learning classification of hyperspectral remote sensing images includes:

[0091] The training sample acquisition module 51 is used to acquire public data of hyperspectral remote sensing images, and select multiple samples of each type from the public data of hyperspectral remote sensing images to form an initial training sample set;

[0092] A training and prediction module 52 is used to use the twin network as a classifier to train the initial training sample set and predict the hyperspectral pixel by pixel to obtain a prediction result presented in a classification probability matrix;

[0093] A pseudo sample generation module 53 is used to input the classification probability matrix into a threshold estimation module, the threshold estimation module adaptively estimates the threshold of each category, selects samples with a predicted probability higher than the corresponding category threshold in the classification probability matrix as pseudo samples, and obtains a pseudo sample set;

[0094] The correction and classification module 54 is used to detect and correct the pseudo sample set to obtain a corrected pseudo sample set, and place the corrected pseudo sample set into the initial training sample set. When the threshold reaches a predefined condition, the iteration stops to obtain a final classification map.

[0095] Furthermore, if Figure 6 As shown, based on the above-mentioned threshold estimation sample enhancement method and system for deep learning classification of hyperspectral remote sensing images, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Figure 6 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0096] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed on the terminal, such as the program code of the installation terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a threshold estimation sample enhancement program 40 for deep learning classification of hyperspectral remote sensing images is stored on the memory 20, and the threshold estimation sample enhancement program 40 for deep learning classification of hyperspectral remote sensing images can be executed by the processor 10, thereby realizing the threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images in the present application.

[0097] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the threshold estimation sample enhancement method for deep learning classification of the hyperspectral remote sensing image.

[0098] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.

[0099] In one embodiment, when the processor 10 executes the threshold estimation sample enhancement program 40 for deep learning classification of hyperspectral remote sensing images in the memory 20 , the steps of the threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images described above are implemented.

[0100] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a threshold estimation sample enhancement program for deep learning classification of hyperspectral remote sensing images, and when the threshold estimation sample enhancement program for deep learning classification of hyperspectral remote sensing images is executed by a processor, the steps of the threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images as described above are implemented.

[0101] In summary, the present invention provides a threshold estimation sample enhancement method, system, terminal and storage medium for deep learning classification of hyperspectral remote sensing images, the method comprising: obtaining public data of hyperspectral remote sensing images, selecting multiple samples of each type from the public data of hyperspectral remote sensing images to form an initial training sample set; using a twin network as a classifier to train the initial training sample set, and predicting the hyperspectral pixel by pixel to obtain a prediction result presented in a classification probability matrix; inputting the classification probability matrix into a threshold estimation module, the threshold estimation module adaptively estimates each class threshold, and selecting samples with a prediction probability higher than the corresponding class threshold in the classification probability matrix as pseudo samples to obtain a pseudo sample set; detecting and correcting the pseudo sample set to obtain a corrected pseudo sample set, placing the corrected pseudo sample set into the initial training sample set, and stopping the iteration when the threshold reaches a predefined condition to obtain a final classification map. The present invention ensures that good classification accuracy is maintained under a small number of artificially labeled samples, and also performs well under different sample sizes, has certain stability and universality, and has a low computational cost, thereby improving the classification accuracy of high-resolution image land cover.

[0102] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or terminal including the element.

[0103] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.

[0104] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images, characterized in that: The threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images includes: Obtaining public data of hyperspectral remote sensing images, and selecting a plurality of samples of each type from the public data of hyperspectral remote sensing images to form an initial training sample set; Using the twin network as a classifier to train the initial training sample set, and predicting the hyperspectral pixel by pixel to obtain a prediction result presented in a classification probability matrix; The classification probability matrix is ​​input into a threshold estimation module, the threshold estimation module adaptively estimates each class threshold, and selects samples with predicted probabilities higher than the corresponding class threshold in the classification probability matrix as pseudo samples to obtain a pseudo sample set; Performing detection and correction processing on the pseudo sample set to obtain a corrected pseudo sample set, placing the corrected pseudo sample set into the initial training sample set, and stopping iteration when a threshold reaches a predefined condition to obtain a final classification graph; The step of obtaining public hyperspectral remote sensing image data and selecting a plurality of samples of each type from the public hyperspectral remote sensing image data to form an initial training sample set specifically includes: Get a hyperspectral land cover classification dataset; The ground reference truth map of the hyperspectral land cover classification dataset is labeled with multiple pixels of each type of ground feature to form an initial training sample set. , define the initial threshold set ; in, and It is Iteration No. The training sample subset and threshold of the class, Indicates The first training sample subset of the iteration, Indicates The second training sample subset of the iteration, Indicates The third training sample subset of the iteration, Indicates Iteration No. Class training sample subset, Indicates The threshold of the first training sample subset for the iteration, Indicates The threshold of the second training sample subset for the iteration, Indicates The threshold of the third category training sample subset in the iteration, Indicates Iteration No. The threshold of the training sample subset of the class, is the total number of categories in the initial training sample set.

2. The threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images according to claim 1 is characterized in that: The use of the twin network as a classifier to train the initial training sample set and predict the hyperspectral pixel by pixel to obtain a prediction result presented in a classification probability matrix specifically includes: For the initial training sample set After training, the twin network is used as a classifier to classify each pixel of the hyperspectral remote sensing image to obtain the classification probability matrix ; in, is a dimensional probability vector, represented as The probability that a sample is predicted to belong to a category, It is expressed as the probability that the first sample is predicted to belong to a category, It is expressed as the probability that the second sample is predicted to belong to a category, It represents the probability that the third sample belongs to a category.

3. The threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images according to claim 2 is characterized in that: The classification probability matrix is ​​input into a threshold estimation module, the threshold estimation module adaptively estimates each class threshold, and selects samples with predicted probabilities higher than the corresponding class threshold in the classification probability matrix as pseudo samples to obtain a pseudo sample set, specifically including: Determine whether each type of threshold meets the iteration stop condition: ; in, Indicates Iteration No. The threshold of the class; If If the class threshold meets the iteration stop condition, the next iteration will not expand Class sample; If The class threshold does not meet the iteration stop condition, and the classification probability matrix Input to the threshold estimation module, select the samples whose maximum classification probability of each pixel is higher than the threshold of this class to construct a pseudo sample set ; in, For the Class The pseudo sample subset of the iteration, For the first category The pseudo sample subset of the iteration, For the second category in The pseudo sample subset of the iteration, For the third category The pseudo sample subset of the iteration, For the Class The pseudo sample subset of the iteration; Statistical pseudo sample set The number of samples in each category is obtained ; in, For the The predicted probability of the iteration exceeds The number of samples for the class threshold, For the The number of samples whose predicted probability exceeds the threshold of Class 1 in the iteration, For the The number of samples whose predicted probability exceeds the second category threshold in the iteration, For the The number of samples whose predicted probability exceeds the threshold of Class 3 in the iteration, For the The predicted probability of the iteration exceeds The number of samples for the class threshold; calculate Iteration threshold set ; in, For the The predicted probability of the iteration exceeds The number of samples for the class threshold, For the The number of samples whose predicted probability exceeds the threshold of Class 1 in the iteration, For the The number of samples whose predicted probability exceeds the second category threshold in the iteration, For the The number of samples whose predicted probability exceeds the threshold of Class 3 in the iteration, For the The predicted probability of the iteration exceeds The number of samples for the class threshold.

4. The threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images according to claim 3 is characterized in that: The detecting and correcting processing of the pseudo sample set is performed to obtain a corrected pseudo sample set, the corrected pseudo sample set is placed into the initial training sample set, and the iteration is stopped when the threshold reaches a predefined condition to obtain a final classification map, specifically including: For the pseudo sample set Perform pseudo sample correction on each type of pseudo sample set; Initialize an empty candidate sample set , each type of pseudo sample set Perform intra-class sample optimization sampling and place the sampled samples in ; The initial training sample set and Merge into training sample set , through the twin network as a classifier pair Training is performed to classify each pixel of the hyperspectral remote sensing image to obtain a classification probability set , until all classes meet the predefined conditions, for the classification probability set Execute the softmax function to obtain the result graph, perform quantitative evaluation on the result graph and the true value graph to obtain the classification accuracy, and finally output the classification result graph and the corresponding classification accuracy.

5. The threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images according to claim 4 is characterized in that: For the pseudo sample set Each type of pseudo sample set is corrected by pseudo sample, including: For A subset of pseudo samples of the class , the known training sample subset is ; in, It is The total number of samples in the class training set, For the No. known training samples, For the The first known training sample in the class, For the The second known training sample in the class, For the The third known training sample in the class; The semivariogram function is introduced to correct pseudo samples. The semivariogram function is defined as , each training sample is obtained through the semivariogram function of Follow changes; in, represents the semivariogram, represents the sampling interval of the spatial distance, and Representation sample and samples The spectral value of Represented as a sample and samples The number of sample pairs is formed to reflect the optimal scale of homogeneous regions; By modifying the homogeneous region and Samples that do not belong to the same category to meet the requirements of sample correction.

6. The threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images according to claim 5, characterized in that: The initialization empty candidate sample set , each type of pseudo sample set Perform intra-class sample optimization sampling and place the sampled samples in , specifically including: For Class pseudo sample set, given pseudo sample set ; in, yes The total number of pseudo samples in , For the A pseudo sample, is the first pseudo sample, is the second pseudo sample, For the third pseudo sample, define the sampling rate ; Randomly select a pixel , ,Will Placement middle, represents the candidate sample set; exist Search samples in , Distance to empty candidate sample set The farthest, where the distance is determined by the spectral Euclidean distance Calculated until the sampling rate reaches Stop sampling and return .

7. A threshold estimation sample enhancement system for deep learning classification of hyperspectral remote sensing images, characterized in that: The threshold estimation sample enhancement system for deep learning classification of hyperspectral remote sensing images is applied to the threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images according to any one of claims 1 to 6, and the threshold estimation sample enhancement system for deep learning classification of hyperspectral remote sensing images comprises: A training sample acquisition module is used to acquire public data of hyperspectral remote sensing images, and select multiple samples of each type from the public data of hyperspectral remote sensing images to form an initial training sample set; A training and prediction module, used to use the twin network as a classifier to train the initial training sample set, and predict the hyperspectral pixel by pixel to obtain a prediction result presented in a classification probability matrix; A pseudo sample generation module is used to input the classification probability matrix into a threshold estimation module, the threshold estimation module adaptively estimates each class threshold, selects samples with a predicted probability higher than the corresponding class threshold in the classification probability matrix as pseudo samples, and obtains a pseudo sample set; The correction and classification module is used to detect and correct the pseudo sample set to obtain a corrected pseudo sample set, and place the corrected pseudo sample set into the initial training sample set. When the threshold reaches a predefined condition, the iteration stops to obtain a final classification map.

8. A terminal, characterized in that: The terminal includes: a memory, a processor, and a threshold estimation sample enhancement program for deep learning classification of hyperspectral remote sensing images stored in the memory and executable on the processor. When the threshold estimation sample enhancement program for deep learning classification of hyperspectral remote sensing images is executed by the processor, the steps of the threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images as described in any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a threshold estimation sample enhancement program for deep learning classification of hyperspectral remote sensing images. When the threshold estimation sample enhancement program for deep learning classification of hyperspectral remote sensing images is executed by a processor, the steps of the threshold estimation sample enhancement method for deep learning classification of hyperspectral remote sensing images as described in any one of claims 1 to 6 are implemented.