Remote sensing target detection sample sampling method and device based on active learning

By using feature difference and sample consistency mechanisms in remote sensing target detection to evaluate the uncertainty of unlabeled data sets, and combining it with the Mean Shift clustering algorithm, the problems of low sample acquisition efficiency and difficulty in model training in the existing technology are solved. , achieving effective screening of high-quality samples and efficient training of models.

CN118537537AActive Publication Date: 2024-08-23XIDIAN UNIV
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410633543.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-08-23
Estimated Expiration
2044-05-21

AI Technical Summary

Technical Problem

Existing sample sampling methods for remote sensing target detection based on active learning have problems such as high time cost, difficulty in model training, and low sample acquisition efficiency.

Method used

By obtaining unlabeled remote sensing samples, we generate labeled and unlabeled data sets, use the pre-trained target detection network for feature extraction, evaluate the uncertainty results based on the feature difference mechanism and sample consistency mechanism, and filter through the Mean Shift clustering algorithm. High-quality samples to achieve efficient sample acquisition.

Benefits of technology

It effectively improves the limitations of a single evaluation method, improves the clustering speed and sample acquisition efficiency, and reduces the difficulty and time cost of model training.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537537A
    Figure CN118537537A
Patent Text Reader

Abstract

The invention provides a remote sensing target detection sample sampling method and device based on active learning. The method comprises the following steps: performing difference judgment on a plurality of first multi-level features and a plurality of second multi-level features based on a feature difference mechanism to obtain difference distance information; obtaining a stability result based on a sample consistency mechanism and the second data set; performing weighted summation on the difference distance information and the stability result to obtain an uncertainty result of the second data set; obtaining a target category and a target category number of the first data set, and obtaining a category sampling weight according to the target category and the target category number; generating a sampling score of each second sample in the second data set according to the category sampling weight and the uncertainty result; performing clustering processing on the second sample based on a Mean Shift algorithm to obtain a cluster; and taking the second sample with the sampling score meeting the requirement in each cluster as a target remote sensing sampling sample. And the time cost of obtaining the target detection sample is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image processing, and in particular relates to a remote sensing target detection sample sampling method and device based on active learning. Background Art

[0002] In recent years, with the continuous development of artificial intelligence technology, remote sensing target detection and recognition technology based on deep learning has gradually received more attention. It is currently widely used in many fields such as resource exploration, environmental disaster detection, military reconnaissance, etc., and has a significant impact on the national economy, national defense and social development. However, the commonly used target detection methods are all based on deep learning, and they need to rely on a large amount of manually labeled data. In real scenarios, the cost of obtaining a lot of data is very high, and the labor cost of labeling data is a considerable expense. Therefore, how to use limited data to improve the accuracy and performance of remote sensing target detection has become a hot topic of research.

[0003] Active learning is a semi-supervised learning method. Its core idea is to evaluate unlabeled data based on labeled data sets and mine a small number of the most informative unlabeled samples to assist in the learning of supervised tasks. Compared with randomly selected samples, active learning only requires a small number of labeled samples to achieve impressive performance. Therefore, using active learning to sample target detection data has become a mainstream method.

[0004] For example, some scholars in the prior art have proposed a "key data screening method for drone target detection based on active learning" (application number: 202410252652.8, application publication number: CN117876910A, publication date: 2024.04.12), which improves the performance and reliability of drone target detection models. However, since this method requires training multiple target detection models and building a model committee composed of different models, it requires a high time cost, and there are problems such as high overhead and low efficiency in actual use. Other scholars have proposed "an active learning framework with both uncertainty and representativeness" (application number: 202410018254.X, application publication number: CN117852617A, publication date: 2024.04.09), and solved the cold start problem of active learning by adopting this active learning framework. However, since this framework uses the K nearest neighbor algorithm to calculate outlier samples, the calculation efficiency is low, and it is sensitive to the hyperparameters of the algorithm, so it cannot be directly applied in actual scenarios. Some scholars have also proposed an “uncertainty-guided adversarial active learning target detection method” (Computer Measurement and Control: 1-19 [2024-04-26], published on 2024.3.23). However, since this method requires the additional construction of an adversarial network for sample evaluation, the model complexity is high and the training difficulty is high, and it cannot be adapted to different detection networks.

[0005] Therefore, the existing sample sampling methods based on active learning have problems such as high time cost, difficulty in model training and low efficiency in sample acquisition. Summary of the invention

[0006] In order to solve the above problems existing in the prior art, the present invention provides a remote sensing target detection sample sampling method and device based on active learning.

[0007] The technical problem to be solved by the present invention is achieved through the following technical solutions:

[0008] In a first aspect, the present invention provides a remote sensing target detection sample sampling method based on active learning, comprising:

[0009] Obtain unlabeled remote sensing samples, and generate a first data set and a second data set based on the unlabeled remote sensing samples; the first data set is a labeled data set; and the second data set is an unlabeled data set;

[0010] Using the first data set to train the initial object detection network to obtain a pre-trained object detection network;

[0011] Using a pre-trained target detection network, feature extraction is performed on the first data set and the second data set respectively, and a plurality of first multi-level features and a plurality of second multi-level features are correspondingly obtained;

[0012] Based on the feature difference mechanism, a difference judgment is performed on the plurality of first multi-level features and the plurality of second multi-level features to obtain difference distance information;

[0013] Obtain stability results based on the sample consistency mechanism and the second data set;

[0014] Performing weighted sum processing on the difference distance information and the stability result to obtain the uncertainty result of the second data set;

[0015] Obtain target categories and the number of target categories of the first data set, and obtain category sampling weights according to the target categories and the number of target categories;

[0016] Generate a sampling score for each second sample in the second data set according to the category sampling weight and the uncertainty result;

[0017] The second sample is clustered based on the Mean Shift clustering algorithm to obtain clusters;

[0018] In each cluster, the second sample whose sampling score meets the preset requirements is used as the target remote sensing sampling sample.

[0019] Optionally, obtaining an unlabeled remote sensing sample and generating a first data set and a second data set based on the unlabeled remote sensing sample includes:

[0020] Obtain unlabeled remote sensing samples;

[0021] Randomly select some unlabeled remote sensing samples from the unlabeled remote sensing samples as initial data, and use the initial data after data annotation as the first data set;

[0022] The unlabeled remote sensing samples except the initial data in the unlabeled remote sensing samples are used as the second data set.

[0023] Optionally, the first data set and the second data set are respectively subjected to feature extraction using a pre-trained target detection network, and a plurality of first multi-level features and a plurality of second multi-level features are correspondingly obtained, including:

[0024] Inputting the first data set and the second data set into the feature extraction layer of the pre-trained object detection network respectively for feature extraction;

[0025] For each first sample in the first data set, a plurality of first multi-level features are correspondingly obtained;

[0026] A plurality of second multi-level features are correspondingly obtained for each second sample in the second data set.

[0027] Optionally, performing difference judgment on the plurality of first multi-level features and the plurality of second multi-level features based on a feature difference mechanism to obtain difference distance information includes:

[0028] Performing an average processing on the plurality of first multi-level features to obtain a first average feature;

[0029] Performing an average processing on the plurality of second multi-level features to obtain a second average feature;

[0030] The Euclidean distance is used to calculate the difference between the first mean feature and the second mean feature to obtain the difference distance information.

[0031] Optionally, obtaining a stability result based on the sample consistency mechanism and the second data set includes:

[0032] Performing data enhancement processing on the second data set based on the sample consistency mechanism to obtain a second enhanced data set;

[0033] A stability judgment is performed on the second enhanced data set and the second data set to obtain a stability result.

[0034] Optionally, performing stability judgment on the second enhanced data set and the second data set to obtain a stability result includes:

[0035] Inputting the second enhanced data set into the pre-trained target detection network, obtaining multiple first detection results, and performing information entropy calculation on the multiple first detection results to obtain first information entropy data;

[0036] Inputting the second data set into the pre-trained target detection network, obtaining a plurality of second detection results, and performing information entropy calculation on the plurality of second detection results to obtain second information entropy data;

[0037] The variance between the first information entropy data and the second information entropy data is calculated to obtain a stability result.

[0038] Optionally, obtaining the target category and the number of target categories of the first data set, and obtaining the category sampling weight according to the target category and the number of target categories, includes:

[0039] Obtain target categories and target category quantities of the first data set;

[0040] Sum the number of target categories to get the total number of categories;

[0041] Divide the number of target categories by the total number of categories to get the category sampling weight corresponding to the target category.

[0042] Optionally, generating a sampling score for each second sample in the second data set according to the category sampling weight and the uncertainty result includes:

[0043] Inputting the second enhanced data set into the pre-trained object detection network to obtain a first detection result;

[0044] According to the first detection result, searching for a corresponding target detection weight coefficient in the category sampling weight;

[0045] Input the target detection weight coefficient and uncertainty result into the sampling score formula to calculate the sampling score;

[0046] The sampling score formula is expressed as:

[0047]

[0048] S x represents the sampling score, U x Indicates the uncertainty result, W y Represents the target detection weight coefficient corresponding to the target category y, N CL Indicates the total number of target categories included in the first detection result.

[0049] Optionally, in each cluster, the second sample whose sampling score meets the preset requirement is used as the target remote sensing sampling sample, including:

[0050] In each cluster, the sampling scores are sorted by size to obtain the sampling sorting scores;

[0051] The second sample whose sampling ranking score is greater than the preset threshold is used as the target remote sensing sampling sample.

[0052] In a second aspect, the present invention provides a remote sensing target detection sample sampling device based on active learning, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, when the remote sensing target detection sample sampling device based on active learning is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the steps of the remote sensing target detection sample sampling method based on active learning as described in the first aspect above.

[0053] The present invention provides a remote sensing target detection sample sampling method and device based on active learning. Among them, a remote sensing target detection sample sampling method based on active learning includes: obtaining unlabeled remote sensing samples, generating a first data set and a second data set based on the unlabeled remote sensing samples; the first data set is a labeled data set; the second data set is an unlabeled data set; using the first data set to train an initial target detection network to obtain a pre-trained target detection network; using the pre-trained target detection network to extract features from the first data set and the second data set respectively, and correspondingly obtaining a plurality of first multi-level features and a plurality of second multi-level features; based on a feature difference mechanism, performing difference judgment on the plurality of first multi-level features and the plurality of second multi-level features to obtain difference distance information; based on a sample consistency mechanism and a second data set to obtain a stability result; performing weighted summation processing on the difference distance information and the stability result to obtain an uncertainty result of the second data set; obtaining a target category and the number of target categories of the first data set, and obtaining a category sampling weight according to the target category and the number of target categories; generating a sampling score of each second sample in the second data set according to the category sampling weight and the uncertainty result; clustering the second samples based on a Mean Shift clustering algorithm to obtain cluster clusters; in each cluster cluster, the second samples whose sampling scores meet preset requirements are used as target remote sensing sampling samples. In the present invention, by adopting the feature difference mechanism and the sample consistency mechanism to jointly evaluate the uncertainty results of the unlabeled data set, the limitations of the single evaluation method are effectively improved, and the mining of high-quality second samples in the unlabeled data set is realized; secondly, by integrating the MeanShift clustering algorithm, the clustering speed is greatly improved, thereby improving the sample acquisition efficiency; finally, due to the single model structure of the present invention, the training of additional modules is avoided, reducing the difficulty and time cost of model training.

[0054] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A schematic diagram of a flow chart of a remote sensing target detection sample sampling method based on active learning provided by an embodiment of the present invention;

[0056] Figure 2 A schematic diagram of the overall process of a remote sensing target detection sample sampling method based on active learning provided by an embodiment of the present invention;

[0057] Figure 3 The distribution of the categories of the randomly selected samples and the samples sampled by the method of the present invention provided by the embodiment of the present invention;

[0058] Figure 4 A schematic diagram of a remote sensing target detection sample sampling device based on active learning provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0059] The present invention is further described in detail below with reference to specific embodiments, but the embodiments of the present invention are not limited thereto.

[0060] In order to mine high-quality second samples in unlabeled data sets while reducing the difficulty and time cost of model training, an embodiment of the present invention provides a remote sensing target detection sample sampling method based on active learning. Figure 1 The present invention provides a flow chart of a remote sensing target detection sample sampling method based on active learning. Figure 1 As shown, including:

[0061] S101. Acquire unlabeled remote sensing samples, and generate a first data set and a second data set based on the unlabeled remote sensing samples.

[0062] The first dataset is a labeled dataset; the second dataset is an unlabeled dataset.

[0063] Optionally, step S101 may specifically include:

[0064] Obtain unlabeled remote sensing samples;

[0065] Randomly select some unlabeled remote sensing samples from the unlabeled remote sensing samples as initial data, and use the initial data after data annotation as the first data set;

[0066] The unlabeled remote sensing samples except the initial data in the unlabeled remote sensing samples are used as the second data set.

[0067] In addition, the first data set is a small portion of sample data randomly selected from unlabeled remote sensing samples, and the small portion of sample data is labeled. The second data set is the unlabeled remote sensing samples other than the initial data.

[0068] S102: Using the first data set to train an initial object detection network to obtain a pre-trained object detection network.

[0069] It should be noted that, in the embodiment of the present invention, the initial target detection network may be a TOLOv9 network.

[0070] S103, using a pre-trained target detection network to perform feature extraction on the first data set and the second data set respectively, and correspondingly obtain a plurality of first multi-level features and a plurality of second multi-level features.

[0071] It should be noted that, each first sample in the first data set corresponds to a plurality of first multi-level features, and each second sample in the second data set corresponds to a plurality of second multi-level features.

[0072] Specifically, the current second sample in the second data set is input into the pre-trained target detection network for feature extraction, and for multiple feature extraction layers of the pre-trained target detection network, multiple second multi-level features are output accordingly. The current first sample in the first data set is input into the pre-trained target detection network for feature extraction, and for multiple feature extraction layers of the pre-trained target detection network, multiple first multi-level features are output accordingly.

[0073] Optionally, step S103 may specifically include:

[0074] Inputting the first data set and the second data set into the feature extraction layer of the pre-trained object detection network respectively for feature extraction;

[0075] For each first sample in the first data set, a plurality of first multi-level features are correspondingly obtained;

[0076] A plurality of second multi-level features are correspondingly obtained for each second sample in the second data set.

[0077] It should be noted that the first multi-level features and the second multi-level features are both feature outputs of the efficient layer aggregation network module (GELAN) in the pre-trained target detection network.

[0078] For example, in the embodiment of the present invention, the feature vectors of the last three layers of GELAN can be taken as the first multi-level features. The first multi-layer feature vector and the first multi-layer feature vector three The corresponding number of channels can be 128, 256 and 512.

[0079] The feature vectors of the last three layers of GELAN can also be taken as the second multi-level features. The second multi-layer feature vector and the second multi-layer feature vector three The corresponding number of channels can be 128, 256 and 512.

[0080] S104: Perform difference judgment on the plurality of first multi-level features and the plurality of second multi-level features based on a feature difference mechanism to obtain difference distance information.

[0081] Optionally, step S104 may specifically include:

[0082] Performing an average processing on the plurality of first multi-level features to obtain a first average feature;

[0083] Performing an average processing on the plurality of second multi-level features to obtain a second average feature;

[0084] The Euclidean distance is used to calculate the difference between the first mean feature and the second mean feature to obtain the difference distance information.

[0085] The Euclidean distance formula is as follows:

[0086]

[0087] Among them, D px represents the difference distance information, i represents the i-th level, j represents the j-th channel of the mean feature, N i The number of channels representing the mean feature of the i-th level, represents the first mean feature of the jth channel at the i-th level, Represents the second mean feature of the jth channel at the i-th level.

[0088] It should be emphasized that in this embodiment, the first multi-level features corresponding to the current first sample are averaged to obtain the first mean feature; and the second multi-level features corresponding to the current second sample are averaged to obtain the second mean feature.

[0089] Therefore, after this step is performed, each first sample will have a corresponding first mean feature, and each second sample will have a corresponding second mean feature.

[0090] S105. Obtain stability results based on the sample consistency mechanism and the second data set.

[0091] Optionally, step S105 may specifically include:

[0092] Performing data enhancement processing on the second data set based on the sample consistency mechanism to obtain a second enhanced data set;

[0093] A stability judgment is performed on the second enhanced data set and the second data set to obtain a stability result.

[0094] Optionally, performing stability judgment on the second enhanced data set and the second data set to obtain a stability result includes:

[0095] Inputting the second enhanced data set into the pre-trained target detection network, obtaining multiple first detection results, and performing information entropy calculation on the multiple first detection results to obtain first information entropy data;

[0096] Inputting the second data set into the pre-trained target detection network, obtaining a plurality of second detection results, and performing information entropy calculation on the plurality of second detection results to obtain second information entropy data;

[0097] The variance between the first information entropy data and the second information entropy data is calculated to obtain a stability result.

[0098] S106: Perform weighted sum processing on the difference distance information and the stability result to obtain an uncertainty result of the second data set.

[0099] The uncertainty result is calculated as follows:

[0100] U x =α·D Px +β·V Px ;

[0101] Among them, U x represents the uncertainty result of the second sample in the second data set, D Px represents the difference distance information of the second sample in the second data set, V Px It represents the stability result of the second sample in the second data set. Both α and β are hyperparameters, and the values ​​of α and β are specified according to manual experience.

[0102] S107 , obtaining target categories and the number of target categories of the first data set, and obtaining category sampling weights according to the target categories and the number of target categories.

[0103] It should be noted that, in the embodiment of the present invention, by incorporating Mean Shift clustering processing and a category-balanced sampling mechanism of category sampling weights, the problem of sample category imbalance in remote sensing target detection tasks is effectively solved.

[0104] Optionally, step S107 may specifically include:

[0105] Obtain target categories and target category quantities of the first data set;

[0106] Sum the number of target categories to get the total number of categories;

[0107] Divide the number of target categories by the total number of categories to get the category sampling weight corresponding to the target category.

[0108] It should be noted that, in this embodiment, obtaining the target category and the number of target categories of the first data set may specifically be to determine the type of annotation boxes included in the first data set and the number of annotation boxes under the type of annotation boxes.

[0109] S108. Generate a sampling score for each second sample in the second data set according to the category sampling weight and the uncertainty result.

[0110] Optionally, step S108 may specifically include:

[0111] Inputting the second enhanced data set into the pre-trained object detection network to obtain a first detection result;

[0112] According to the first detection result, searching for a corresponding target detection weight coefficient in the category sampling weight;

[0113] Input the target detection weight coefficient and uncertainty result into the sampling score formula to calculate the sampling score;

[0114] The sampling score formula is expressed as:

[0115]

[0116] S x represents the sampling score, U x Indicates the uncertainty result, W y Represents the target detection weight coefficient corresponding to the target category y, N CL Indicates the total number of target categories included in the first detection result.

[0117] S109: clustering the second sample based on the Mean Shift clustering algorithm to obtain clusters.

[0118] It should be noted that, in this embodiment, clustering the second sample may specifically be performing clustering on the second multi-level features corresponding to the second sample to obtain cluster clusters.

[0119] S110 , in each cluster, taking the second sample whose sampling score meets the preset requirement as the target remote sensing sampling sample.

[0120] Optionally, step S110 may specifically include:

[0121] In each cluster, the sampling scores are sorted by size to obtain the sampling sorting scores;

[0122] The second sample whose sampling ranking score is greater than the preset threshold is used as the target remote sensing sampling sample.

[0123] In addition, it should be noted that the above steps S101-S110 can be repeatedly performed until the number of target remote sensing samples reaches the set total amount requirement, and then sampling is stopped. All target remote sensing samples are handed over to experts for labeling to construct the final sample data for training the model.

[0124] The embodiment of the present invention provides a remote sensing target detection sample sampling method based on active learning, including: obtaining unlabeled remote sensing samples, generating a first data set and a second data set based on the unlabeled remote sensing samples; the first data set is a labeled data set; the second data set is an unlabeled data set; using the first data set to train an initial target detection network to obtain a pre-trained target detection network; using the pre-trained target detection network to extract features from the first data set and the second data set respectively, and correspondingly obtaining a plurality of first multi-level features and a plurality of second multi-level features; performing difference judgment on the plurality of first multi-level features and the plurality of second multi-level features based on a feature difference mechanism to obtain difference distance information; obtaining a stability result based on a sample consistency mechanism and the second data set; performing weighted summation processing on the difference distance information and the stability result to obtain an uncertainty result of the second data set; obtaining a target category and the number of target categories of the first data set, and obtaining a category sampling weight according to the target category and the number of target categories; generating a sampling score of each second sample in the second data set according to the category sampling weight and the uncertainty result; clustering the second samples based on a Mean Shift clustering algorithm to obtain cluster clusters; in each cluster cluster, the second samples whose sampling scores meet preset requirements are used as target remote sensing sampling samples. In an embodiment of the present invention, a feature difference mechanism and a sample consistency mechanism are used to jointly evaluate the uncertainty results of an unlabeled data set, thereby effectively improving the limitations of a single evaluation method and realizing the mining of high-quality second samples in an unlabeled data set; secondly, by integrating the Mean Shift clustering algorithm, the clustering speed is greatly improved, thereby improving the sample acquisition efficiency; finally, due to the single model structure of the present invention, the training of additional modules is avoided, thereby reducing the difficulty and time cost of model training.

[0125] In this embodiment, a remote sensing target detection sample sampling method based on active learning is generally described. Figure 2 The overall flow diagram of the remote sensing target detection sample sampling method based on active learning provided by the embodiment of the present invention. Figure 2As shown in the figure, after obtaining a large amount of unlabeled data, the initial labeled data is first removed to obtain the data to be screened. After the target detection model is trained using the initial labeled data, the target detection model is used to extract features from the data to be screened. Based on the feature extraction results, the consistency of the data to be screened is judged to calculate the uncertainty of the samples in the data to be screened. Then, based on the uncertainty of the samples, the feature vector clustering results of the data to be screened, and the category distribution of the data to be screened, category balanced sampling is performed to evaluate the data value and obtain low-value data and high-value data.

[0126] In order to verify the accuracy of the remote sensing target detection sample sampling method based on active learning provided by the embodiment of the present invention, the embodiment of the present invention also conducted a simulation experiment.

[0127] 1. Simulation experiment conditions:

[0128] The hardware platform of the simulation experiment is: the processor is Intel(R) Core(TM) CPU i9-13900K, the main frequency is 5.80GHz, the memory is 64GB, and the GPU is RTX 4090.

[0129] The software platform for the simulation experiment is: Windows 10 operating system, python3.8, PyTorch1.7.0 and pycharm2017.

[0130] The remote sensing target detection sample sampling method based on active learning was experimentally verified on the small sample UAV remote sensing target recognition task. The dataset used in this experiment is Visdrone2019 data, which contains 10 types of targets: pedestrians, static people, bicycles, vehicles, vans, trucks, tricycles, awning tricycles, buses and motorcycles. Among them, the training set has 6471 pictures and the validation set has 548 pictures. The minimum resolution of the image is 1360×765×3 pixels, the maximum resolution is 1920×1080×3 pixels, and the image format is JPEG.

[0131] 2. Simulation content and results analysis:

[0132] The simulation experiment uses the method of the present invention to compare with three existing technologies: Entropy, CALD, and PPAL.

[0133] In the simulation experiment, the three existing technologies used are:

[0134] Entropy refers to the uncertainty sampling method of information entropy proposed in "Entropy-based active learning for object detection with progressive diversity constraint. In Proceedings of the IEEE / CVFConference on Computer Vision and Pattern Recognition, pages 9397-9406, 2022."

[0135] CALD refers to the sampling method based on consistency active learning proposed in "Consistency-based active learning for object detection. In Proceedings of the IEEE / CVF Conference on Computer Vision and Pattern Recognition, pages 3951-3960, 2022."

[0136] PPAL refers to the sampling method based on uncertainty and category imbalance proposed in "Plug and play active learning for object detection.arXivpreprint arXiv:2211.11612,2022."

[0137] In the simulation experiment, YOLOv9 was used as the detection model. First, 500 images were randomly selected for the initial model training. In the subsequent steps, the sampling method was used to select samples of 100, 200, 300, 400, and 500 images, and mixed with the original samples to train the detection model. The three evaluation indicators of the detection models trained by different sampling methods on the validation set were compared: precision, recall, and mean average precision (mAP).

[0138] The experimental results are shown in Table 1:

[0139] Table 1 Quantitative analysis of the detection results of the method of the present invention and the prior art in the simulation experiment

[0140]

[0141] From Table 1, it can be seen that the samples sampled by the method of the present invention make the precision, recall and mAP of the detection model on the validation set higher than those of other methods. After sampling 500 samples, compared with the PPAL sampling method with the best existing results, the precision increased by 3.5%, the recall increased by 2.7%, and the mAP increased by 3.0%, which reflects the superiority of the method of the present invention under small sample conditions.

[0142] The effect of the present invention is further described below in conjunction with the simulation diagram:

[0143] Figure 3 The randomly selected samples provided in the embodiments of the present invention and the category distribution of the samples sampled using the method of the present invention. Figure 3 Figure (a) shows the category distribution of 100 samples randomly selected and 100 samples sampled by the method of the present invention in the simulation experiment of the present invention. Figure 3 Figure (b) shows the category distribution of 500 samples randomly selected and 500 samples sampled by the method of the present invention in the simulation experiment of the present invention. Figure 3 It can be seen that the samples sampled by this method can make the distribution of targets of different categories more balanced, effectively improving the imbalance of sample categories in remote sensing target detection.

[0144] The above simulation experiments show that the remote sensing target detection sample sampling method based on active learning of the present invention can effectively solve the problems of small number of samples available for training, high sampling difficulty, and unbalanced sample categories of drone collected data. By screening out key data that helps improve the performance of the detection model, reducing the annotation burden and resource consumption, the detection model can achieve better detection results with a small amount of data.

[0145] The method provided in the embodiment of the present invention can be applied to electronic devices. Specifically, the electronic device can be: a desktop computer, a portable computer, an intelligent mobile terminal, a server, etc. This is not limited here, and any electronic device that can implement the present invention belongs to the protection scope of the present invention.

[0146] Based on the same inventive concept, an embodiment of the present invention also provides a remote sensing target detection sample sampling device based on active learning. Figure 4The schematic diagram of the remote sensing target detection sample sampling device based on active learning provided by the embodiment of the present invention includes: a processor 710, a storage medium 720 and a bus 730, wherein the storage medium 720 stores machine-readable instructions executable by the processor 710, and when the remote sensing target detection sample sampling device based on active learning is running, the processor 710 communicates with the storage medium 720 through the bus 730, and the processor 710 executes the machine-readable instructions to execute the steps of the remote sensing target detection sample sampling method based on active learning. The specific implementation method and technical effect are similar and will not be repeated here.

[0147] The storage medium may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. Optionally, the storage medium may also be at least one storage device located away from the aforementioned processor.

[0148] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0149] The present invention also provides a computer-readable storage medium in which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above-mentioned remote sensing target detection sample sampling methods based on active learning are implemented.

[0150] It should be noted that the terms "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention.

[0151] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification.

[0152] Although the present invention is described herein in conjunction with various embodiments, in the process of implementing the claimed invention, those skilled in the art can understand and implement other changes to the disclosed embodiments by viewing the drawings and the disclosed content. In the description of the present invention, the term "comprising" does not exclude other components or steps, "one" or "an" does not exclude multiple situations, and "multiple" means two or more, unless otherwise clearly and specifically limited. In addition, certain measures are recorded in different embodiments, but this does not mean that these measures cannot be combined to produce good results.

[0153] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. A remote sensing target detection sample sampling method based on active learning, characterized in that: include: Acquire unlabeled remote sensing samples, and generate a first data set and a second data set based on the unlabeled remote sensing samples; The first data set is a labeled data set; The second data set is an unlabeled data set; Using the first data set to train an initial object detection network to obtain a pre-trained object detection network; Using the pre-trained object detection network, respectively extract features from the first data set and the second data set, and correspondingly obtain a plurality of first multi-level features and a plurality of second multi-level features; Based on the feature difference mechanism, a difference judgment is performed on the plurality of the first multi-level features and the plurality of the second multi-level features to obtain difference distance information; Obtaining stability results based on the sample consistency mechanism and the second data set; Performing weighted sum processing on the difference distance information and the stability result to obtain an uncertainty result of the second data set; Obtaining target categories and the number of target categories of the first data set, and obtaining category sampling weights according to the target categories and the number of target categories; Generate a sampling score for each second sample in the second data set according to the category sampling weight and the uncertainty result; Performing clustering processing on the second sample based on the Mean Shift clustering algorithm to obtain cluster clusters; In each of the clusters, the second samples whose sampling scores meet preset requirements are used as target remote sensing sampling samples.

2. According to the active learning-based remote sensing target detection sample sampling method of claim 1, it is characterized in that: The step of acquiring unlabeled remote sensing samples and generating a first data set and a second data set based on the unlabeled remote sensing samples includes: Acquiring the unlabeled remote sensing sample; Randomly selecting some of the unlabeled remote sensing samples from the unlabeled remote sensing samples as initial data, and using the initial data after data annotation as the first data set; The unlabeled remote sensing samples except the initial data in the unlabeled remote sensing samples are used as the second data set.

3. The method for remote sensing target detection sample sampling based on active learning according to claim 1, characterized in that: The using the pre-trained target detection network to extract features from the first data set and the second data set respectively, and correspondingly obtaining a plurality of first multi-level features and a plurality of second multi-level features, includes: Inputting the first data set and the second data set into the feature extraction layer of the pre-trained object detection network respectively for feature extraction; For each first sample in the first data set, a plurality of the first multi-level features are correspondingly obtained; A plurality of the second multi-level features are correspondingly obtained for each of the second samples in the second data set.

4. The method for remote sensing target detection sample sampling based on active learning according to claim 1, characterized in that: The step of performing difference judgment on the plurality of the first multi-level features and the plurality of the second multi-level features based on the feature difference mechanism to obtain difference distance information includes: Performing an average processing on a plurality of the first multi-level features to obtain a first average feature; Performing an average processing on a plurality of the second multi-level features to obtain a second average feature; The difference value between the first mean feature and the second mean feature is calculated using the Euclidean distance to obtain the difference distance information.

5. The method for remote sensing target detection sample sampling based on active learning according to claim 1, characterized in that: The obtaining of stability results based on the sample consistency mechanism and the second data set includes: Performing data enhancement processing on the second data set based on a sample consistency mechanism to obtain a second enhanced data set; A stability judgment is performed on the second enhanced data set and the second data set to obtain the stability result.

6. The method for remote sensing target detection sample sampling based on active learning according to claim 5, characterized in that: The performing stability judgment on the second enhanced data set and the second data set to obtain the stability result includes: Inputting the second enhanced data set into the pre-trained target detection network, obtaining a plurality of first detection results, and performing information entropy calculation on the plurality of first detection results to obtain first information entropy data; Inputting the second data set into the pre-trained target detection network, obtaining a plurality of second detection results, and performing information entropy calculation on the plurality of second detection results to obtain second information entropy data; Calculate the variance between the first information entropy data and the second information entropy data to obtain the stability result.

7. The method for remote sensing target detection sample sampling based on active learning according to claim 1, characterized in that: The step of obtaining the target category and the number of target categories of the first data set, and obtaining the category sampling weight according to the target category and the number of target categories, includes: Obtain target categories and the number of target categories of the first data set; Sum the number of target categories to obtain the total number of categories; The number of target categories is divided by the total number of categories to obtain the category sampling weight corresponding to the target category.

8. The method for remote sensing target detection sample sampling based on active learning according to claim 1, characterized in that: The step of generating a sampling score for each second sample in the second data set according to the category sampling weight and the uncertainty result includes: Inputting the second enhanced data set into the pre-trained object detection network to obtain a first detection result; Searching for a corresponding target detection weight coefficient in the category sampling weight according to the first detection result; Inputting the target detection weight coefficient and the uncertainty result into a sampling score formula to calculate the sampling score; The sampling score formula is expressed as: S x represents the sampling score, U x Indicates the uncertainty result, W y Represents the target detection weight coefficient corresponding to the target category y, N CL Indicates the total number of target categories included in the first detection result.

9. The method for remote sensing target detection sample sampling based on active learning according to claim 1, characterized in that: The step of taking the second sample whose sampling score meets a preset requirement in each cluster as a target remote sensing sampling sample comprises: In each of the clusters, the sampling scores are sorted according to size to obtain sampling sorting scores; The second sample whose sampling ranking score is greater than a preset threshold is used as the target remote sensing sampling sample.

10. A remote sensing target detection sample sampling device based on active learning, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the remote sensing target detection sample sampling device based on active learning is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the remote sensing target detection sample sampling method based on active learning as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Clustering-based adaptive weighted oversampling method

    CN113378927A

  • Electric Power system dominant instability mode discrimination method based on active learning

    CN113435492A

  • Artificial intelligence learning method based on double sampling of target model and sample

    CN114169470A

  • Remote sensing image target detection method based on parameter optimization

    CN115359366A

  • Optical remote sensing target detection method based on active learning

    CN115731417A