Method, device and equipment for performing target detection on satellite remote sensing image

The feature extractor is improved through the hierarchical design of pre-trained cloud detection models and convolutional neural networks, which solves the problem of cloud detection in optical satellite remote sensing images, improves detection accuracy and spatial accuracy, reduces interference, and provides high-quality data. support.

CN118537748APending Publication Date: 2024-08-23WUHAN UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410851529.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing cloud detection methods in optical satellite remote sensing images are difficult to distinguish between clouds and bright ground objects, shadows and dark targets. They require a large amount of calculations, poor detection accuracy for thin clouds, and insufficient feature extraction capabilities. They cannot complete end-to-end automated detection in shallow space. Information is easily lost, and deep feature information is offset.

Method used

The pre-trained cloud detection model is used to improve the Transformer feature extractor combined with the hierarchical design of the convolutional neural network. The multi-scale Transformer decoder is used to fuse the contextual information of each layer of features, and a feature alignment structure is added during feature fusion to correct the features. The deviation between the images improves the accuracy and spatial precision of the detection results.

Benefits of technology

It improves the detection rate of thin clouds, broken clouds and small clouds, reduces the interference of shadows and similar backgrounds, and provides more reliable and high-quality data support for downstream applications of satellite remote sensing images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537748A
    Figure CN118537748A
Patent Text Reader

Abstract

The invention provides a method, a device and equipment for performing target detection on a satellite remote sensing image. The method comprises the following steps: acquiring a target remote sensing image; wherein the target remote sensing image is a satellite remote sensing image needing target object detection, and the target object comprises a cloud image in the satellite remote sensing image; inputting the target remote sensing image into a pre-training cloud detection model, and outputting a detection result through the pre-training cloud detection model; wherein the detection result comprises information representing a cloud image detected from the target remote sensing image and the position of the cloud image; wherein the pre-training cloud detection model is obtained by training based on at least one group of training data, and each group of training data in the at least one group of training data comprises a sample remote sensing image and annotation data corresponding to the sample remote sensing image. By utilizing the method disclosed by the embodiment of the invention, the cloud detection task of the satellite remote sensing image can be accurately and effectively processed, and the detection rate of thin clouds, broken clouds and small clouds is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of high-resolution optical satellite remote sensing image processing, and in particular to a method, device, electronic device, non-transitory computer-readable storage medium, and computer program product for performing target detection on satellite remote sensing images. Background Art

[0002] In recent years, with the development of society and the progress of science and technology, the performance of high-resolution optical remote sensing satellites has been greatly improved, making optical satellite remote sensing images contain richer surface information and more intuitive. Therefore, they are increasingly widely used in disaster prevention and mitigation, resource surveys, agricultural surveys and other fields. However, according to research data published by the International Satellite Cloud Climatology Program (ISCCP), more than 60% of the earth's surface is covered by clouds each year, resulting in the widespread presence of clouds in optical satellite remote sensing images. Among them, thick clouds block surface information and form shadow areas on the surface; thin clouds weaken surface radiation, causing image distortion and blur. Therefore, the detection and identification of clouds in optical satellite remote sensing images has become a problem that needs to be solved urgently.

[0003] At present, the existing cloud detection methods for optical satellite remote sensing images can be roughly divided into four categories, namely, spectral threshold method, texture analysis method, method based on traditional machine learning and method based on deep learning. However, the above four types of existing technical methods have the following problems: (1) It is difficult to distinguish between clouds and bright objects, shadows and dark targets; (2) The amount of calculation is large and the detection accuracy of thin clouds is poor; (3) The feature extraction capability of remote sensing images is insufficient and end-to-end automatic detection cannot be completed; (4) Shallow spatial information is easily lost, and deep feature information has the limitation of offset. Summary of the invention

[0004] The present disclosure provides a method, an apparatus, an electronic device, a non-transitory computer-readable storage medium, and a computer program product for performing target detection on satellite remote sensing images, so as to at least solve one of the defects in the prior art.

[0005] The present disclosure provides a method for performing target detection on a satellite remote sensing image, comprising: Acquire a target remote sensing image; wherein the target remote sensing image is a satellite remote sensing image that needs to perform target object detection, and the target object includes a cloud image in the satellite remote sensing image; Inputting the target remote sensing image into a pre-trained cloud detection model, and outputting a detection result through the pre-trained cloud detection model; wherein the detection result includes information representing a cloud image detected from the target remote sensing image and a location of the cloud image; The pre-trained cloud detection model is trained based on at least one set of training data, and each set of training data in the at least one set of training data includes a sample remote sensing image and annotation data corresponding to the sample remote sensing image; The sample remote sensing image includes a sample cloud image and a sample non-cloud image based on pixel positions, and the annotation data includes a class label of the sample cloud image and the pixel position of the sample cloud image, a class label of the sample non-cloud image and the pixel position of the sample non-cloud image.

[0006] The present disclosure also provides a device for performing target detection on satellite remote sensing images, comprising: The image acquisition module is configured to: acquire a target remote sensing image; wherein the target remote sensing image is a satellite remote sensing image that needs to perform target object detection, and the target object includes a cloud image in the satellite remote sensing image; A detection execution module is configured to: input the target remote sensing image into a pre-trained cloud detection model, and output a detection result through the pre-trained cloud detection model; wherein the detection result includes information representing the cloud image detected from the target remote sensing image and the location of the cloud image; The pre-trained cloud detection model is trained based on at least one set of training data, and each set of training data in the at least one set of training data includes a sample remote sensing image and annotation data corresponding to the sample remote sensing image; The sample remote sensing image includes a sample cloud image and a sample non-cloud image based on pixel positions, and the annotation data includes a class label of the sample cloud image and the pixel position of the sample cloud image, a class label of the sample non-cloud image and the pixel position of the sample non-cloud image.

[0007] The present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for detecting targets in satellite remote sensing images as described in any one of the above is implemented.

[0008] The present disclosure also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for detecting a target on a satellite remote sensing image as described in any one of the above is implemented.

[0009] The present disclosure also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above methods for detecting targets in satellite remote sensing images.

[0010] As described above, the method for target detection in satellite remote sensing images provided by the embodiments of the present disclosure can accurately and effectively handle cloud detection tasks in satellite remote sensing images, improve the detection rate of thin clouds, broken clouds and small clouds, and reduce interference from shadows and similar backgrounds, thereby providing more reliable and high-quality data support for downstream applications of satellite remote sensing images. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the present disclosure or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0012] Figure 1 is a flow chart of a method for performing target detection on satellite remote sensing images provided by an embodiment of the present disclosure; Figure 2 is a schematic diagram of the visual label provided by an embodiment of the present disclosure; Figure 3 is a schematic diagram of the structure of the pre-trained cloud detection model provided in an embodiment of the present disclosure; Figure 4 is a schematic diagram of the structure of the multi-level feature extractor provided in an embodiment of the present disclosure; Figure 5 is a schematic diagram of the structure of the conversion decoder provided in an embodiment of the present disclosure; Figure 6 is a flowchart of the training method of the pre-trained cloud detection model provided in an embodiment of the present disclosure; Figure 7 is a schematic diagram of the structure of a device for performing target detection on a satellite remote sensing image provided by an embodiment of the present disclosure; Figure 8 It is a schematic diagram of the structure of an electronic device provided by the present disclosure. DETAILED DESCRIPTION

[0013] In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the technical solutions in the present disclosure will be clearly and completely described below in conjunction with the drawings in the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0014] Summary of the invention concept: After research, the inventors of the present disclosure found that the reasons for the problems in the prior art are: 1) The spectral threshold method is too dependent on the spectral characteristics of clouds, and the types of surface scenes in satellite remote sensing images are complex. It is difficult to obtain a threshold that can accurately distinguish between clouds and non-clouds, which leads to the problem that the spectral threshold method is difficult to distinguish between clouds and bright objects, and shadows and dark targets. In addition, the cloud detection method based on thresholds is mostly designed for specific sensors, and it is difficult to promote it to other optical satellites, so the versatility is relatively poor. With the advancement of satellite imaging technology, the spatial resolution of optical satellite remote sensing images is constantly improving, so both clouds and objects in optical satellite remote sensing images will have clearer texture features. Based on this, some researchers have tried to detect clouds in remote sensing images by using the texture feature differences between clouds and non-cloud targets, but texture analysis requires a larger amount of calculation, which will result in a larger amount of calculation for the texture analysis method. In addition, this method has not yet solved the problem of poor detection accuracy of thin clouds. 3) Commonly used traditional machine learning algorithms (for example, Bayesian algorithms, random forests, support vector machines, artificial neural networks) are widely used for cloud detection in optical satellite remote sensing images. However, traditional machine learning algorithms require manual design and selection of features for specific images, which results in insufficient feature extraction capabilities for remote sensing images and inability to complete end-to-end automated detection. 4) As for existing deep learning-based methods, due to design defects in the feature extraction network structure, shallow spatial information is easily lost in the detection results, and deep feature information is offset.

[0015] In view of this, the inventors of the present disclosure consider designing a scheme for target detection in satellite remote sensing images. Among them, the Transformer feature extractor is improved by combining the hierarchical design of convolutional neural networks, and the method based on the mask classification idea and the multi-scale Transformer decoder are used to fuse the context information of each layer of features, effectively distinguish similar features, and add a feature alignment structure during feature fusion to align features at different levels, correct the deviation between feature maps, alleviate the feature mismatch problem, and make the detection results have higher accuracy and spatial precision. The specific scheme can refer to the following embodiment.

[0016] Example: The following describes the scheme for performing target detection on satellite remote sensing images disclosed in the present invention in conjunction with the accompanying drawings.

[0017] Figure 1 1 is a flow chart of a method for detecting a target in a satellite remote sensing image provided by an exemplary embodiment of the present disclosure. This embodiment can be applied to electronic devices (for example, servers or cloud computing platforms), such as Figure 1 As shown, the method for detecting targets on satellite remote sensing images includes the following steps: S110: Acquire a target remote sensing image.

[0018] Among them, remote sensing images (RS) refer to films or photos that record the size of electromagnetic waves of various ground objects, and can mainly include aerial photos and satellite photos. Optionally, in this embodiment, "remote sensing images" are satellite remote sensing images taken by optical satellites with high spatial resolution.

[0019] The target remote sensing image is a satellite remote sensing image that needs to perform target object detection, and the target object includes a cloud image in the satellite remote sensing image.

[0020] The present disclosure does not limit the specific method of "acquiring". For example, the electronic device (for example, a server or a cloud computing platform) that is the subject of step S110 communicates with a storage server storing the "target remote sensing image" to acquire the "target remote sensing image".

[0021] S120, inputting the target remote sensing image into a pre-trained cloud detection model, and outputting a detection result through the pre-trained cloud detection model.

[0022] The detection result includes information characterizing the cloud image detected from the target remote sensing image and the location of the cloud image. As an optional example, the “detection result” here can be as follows: Figure 2 The visualization labels shown. Figure 2 The white area in the middle represents the cloud image, and the black area represents the background image.

[0023] The pre-trained cloud detection model is trained based on at least one set of training data, each set of training data in the at least one set of training data includes a sample remote sensing image and annotation data corresponding to the sample remote sensing image. As an optional example, the number of at least one set can be 100.

[0024] The sample remote sensing image includes a sample cloud image and a sample non-cloud image based on pixel positions, and the annotation data includes a class label of the sample cloud image and the pixel position of the sample cloud image, a class label of the sample non-cloud image and the pixel position of the sample non-cloud image.

[0025] Among them, the pre-trained cloud detection model described in this embodiment improves the Transformer feature extractor by combining the hierarchical design of the convolutional neural network to obtain a multi-level feature extractor; a method based on the mask classification idea and a multi-scale Transformer decoder are used to fuse the context information of each layer of features to effectively distinguish similar features; at the same time, a feature alignment structure is added during feature fusion to align features at different levels, correct the deviations between feature maps, alleviate feature mismatch problems, and make the detection results have higher accuracy and spatial precision. The specific implementation details will be described below and will not be repeated here.

[0026] As described above, the method for target detection in satellite remote sensing images provided by the embodiments of the present disclosure can accurately and effectively handle cloud detection tasks in satellite remote sensing images, improve the detection rate of thin clouds, broken clouds and small clouds, and reduce interference from shadows and similar backgrounds, thereby providing more reliable and high-quality data support for downstream applications of satellite remote sensing images.

[0027] exist Figure 1 Based on the embodiment, as an optional implementation method, refer to Figure 3 , the pre-trained cloud detection model includes a cascaded multi-level feature extractor, a decoding alignment network, and a mask segmentation head network.

[0028] The decoding alignment network includes a parallel multi-scale transformer decoder and a feature fusion alignment unit (i.e., Figure 3 “Feature Fusion Alignment Module” shown).

[0029] In general, the pre-trained cloud detection model extracts multi-scale features (such as Figure 3 The sequence is then processed by the multi-scale transformer decoder and the feature fusion alignment unit, and finally combined with the mask segmentation head for mask classification to achieve cloud detection.

[0030] exist Figure 3 Based on the implementation mode, as an optional example, the multi-level feature extractor includes a cascaded first encoder, a second encoder, a third encoder, and a fourth encoder. The first encoder, the second encoder, the third encoder, and the fourth encoder each extract a feature map of a different scale, and are all used to output to the decoding alignment network; that is, referring to Figure 3 , output to the multi-scale transformation (Transformer) decoder and feature fusion alignment module respectively.

[0031] Reference Figure 4, the first encoder, the second encoder, the third encoder and the fourth encoder respectively include a transformation (Transformer) layer and a set prediction layer. The transformation layer in the first encoder includes a linear embedding module (ie, Figure 4 "Linear embedding processing" shown in the figure) and a window (Swin) attention module; the conversion layer in the second encoder, the third encoder and the fourth encoder includes a scale adjustment module and a window attention module.

[0032] It should be noted that the above-mentioned window (Swin) attention module is a structure that only calculates attention within a limited window. It has good feature extraction capabilities and has only linear computational complexity relative to the resolution of image features.

[0033] Reference Figure 4 , the collective prediction layer includes a collective attention module. The collective attention module uses a linear layer L that can be parameterized for learning Q , L K and L V Divide the input features into three independent individuals: set query S Q , set keyword S K and the set eigenvalue S V . Where S V The size is , where M is the length of the data sequence in each window and C is the number of windows. Q and S K The sizes are , where N is equal to the number of query blocks set in the Transformer decoder. Q It will be directly converted into a priori set predictions, and the set semantic branch will be added to assist model training. Q and S K Will jointly update S V , and passed to the next stage. The specific update mechanism can be expressed by the following calculation formula (1); (1) in, It is the feature obtained after the satellite remote sensing image passes through the Transformer layer in the encoder; Indicates converting the input into the probability value of each category; Represents a linear layer mapping computation.

[0034] exist Figure 3 Based on the implementation manner, as an optional example, the multi-scale transform decoder includes a plurality of cascaded transform decoders.

[0035] Among them, refer to Figure 5 , each of the transformation decoders includes a cascade of cross-attention layers, self-attention layers, a first normalization layer (i.e. Figure 5 In the figure, according to the direction of the arrows, the first "normalization"), the feedforward neural network layer, and the second normalization layer (i.e. Figure 5 , according to the direction of the arrow, the second "standardization"), an output end of the first standardization layer is connected to an input end of the second standardization layer.

[0036] It should be noted that the cross-attention mechanism is mainly used to realize the interaction between query features and instance features, while the self-attention mechanism is used to realize the interaction between query features and the potential correlation between features.

[0037] exist Figure 3 Based on the implementation manner, as an optional example, the feature fusion alignment unit includes (according to the data flow direction indicated by the arrows) a cascaded convolution sampling subunit, a connection layer, a first convolution layer, a deformation layer, and a second convolution layer; The convolution sampling subunit includes a first branch and a second branch connected in parallel; the first branch includes a cascaded third convolution layer and an upsampling layer, and the second branch includes a fourth convolution layer.

[0038] It should be noted that the feature fusion alignment unit can perform convolution operations with a window size of 1 on feature maps of different levels respectively, and upsample the deep feature map to the size of the shallow feature map using the interpolation method; then the upsampling result is superimposed on the shallow feature map, and reduced to two dimensions through a 3×3 convolution, representing the offsets in the h and w directions respectively, and then the original deep feature map is corrected through a bilinear interpolation method, and finally the corrected deep feature map is fused with the shallow feature map for output.

[0039] exist Figure 3 Based on the implementation method, as an optional example, the mask segmentation head network includes a multi-layer perceptron MLP, a category prediction unit and a mask prediction unit. An output end of the multi-layer perceptron MLP is used to perform mask embedding on the output of the output end and fuse with the output of the feature fusion alignment unit, and then connect to the input end of the mask prediction unit; another output end of the multi-layer perceptron MLP is connected to the input end of the category prediction unit; the category prediction unit is connected in parallel with the mask prediction unit. The multi-layer perceptron MLP includes a linear classifier and an activation function layer SoftMax.

[0040] It should be explained that the mask segmentation head network can obtain two sets of information, namely, category prediction and mask embedding, through a multi-layer perceptron structure. Specifically, classification prediction can be performed through a linear classifier and an activation function layer SoftMax to obtain the two sets of information, namely, category prediction and mask embedding.

[0041] Furthermore, when performing category prediction, each query block can generate K+1 prediction probabilities, including K categories specified by the task and one "no object" category. Based on this, in the "cloud detection of satellite remote sensing images" task of this embodiment, K=2 (cloud and background).

[0042] In the above embodiment, on the one hand, by improving the multi-scale feature extractor structure, feature information of different scales can be effectively captured, so that the pre-trained cloud detection model can more comprehensively understand and analyze the cloud coverage in satellite remote sensing images, thereby improving the accuracy and robustness of detection. On the other hand, by imitating the hierarchical design of convolutional neural networks, the transformer encoder and decoder are also hierarchically designed. By fusing context information, semantic and context information at different levels can be captured, thereby reducing feature loss in the feature extraction process and effectively reducing the small cloud detection miss rate. At the same time, by extracting features layer by layer and performing feature fusion, overfitting and parameter redundancy problems can be avoided, and the generalization ability and efficiency of the model can be improved. In addition, the decoder contains standard cross-attention mechanisms and self-attention mechanisms, which can promote interaction and information transfer between features, and complement and fuse features of different scales, thereby improving the overall detection effect and the accuracy of thin cloud and broken cloud detection. Finally, based on feature fusion, a feature alignment structure is designed to perform feature registration on features at different levels, correct the deviation between feature maps, alleviate the feature mismatch problem, and make the detection results have higher accuracy and spatial precision, so as to improve the accuracy and robustness of cloud detection in scenes with complex features (for example, there are interference factors such as shadows and snow in satellite remote sensing images).

[0043] exist Figures 1 to 5 Based on the embodiment, as an optional implementation method, refer to Figure 6 , the training steps of the pre-trained cloud detection model include: S610: Obtain the at least one set of training data.

[0044] As an optional example, S610 may include the following steps: I1) Prepare a large number of high spatial resolution optical satellite remote sensing images as the initial data set.

[0045] I2) Crop the larger optical satellite remote sensing images in the initial data set into images of a uniform standard size.

[0046] I3) Manually annotate each standard-sized image (as a sample remote sensing image) to obtain annotated data (as a sample true value for comparison with the model prediction value); wherein the annotated data includes the class label (i.e., the true label) and the pixel position of the sample cloud image, the class label and the pixel position of the sample non-cloud image.

[0047] I4) The final data set consisting of sample remote sensing images and corresponding annotated data is divided into a training data set and a test data set in a ratio of 9:1; among which, the test data set is used to further verify and optimize the cloud detection model trained using the training data set.

[0048] Optionally, after executing the above steps I1) to I4), the labels in the training data set and the test data set may be further processed.

[0049] Specifically, we first set the number of queries (i.e., the number of training data batches input into the cloud detection model to be trained, preferably the number of queries N=100), and then set the real label of the dataset Convert to a set so that the dataset label The output form of the matching mask classification network. Wherein, the set is represented as:

[0050] in, i Indicates the serial number of the sample remote sensing images in the training data set and the test data set; Indicates the i The real label subset corresponding to the element (the real label subset includes the corresponding i the true label of each pixel position in the sample remote sensing images); Indicates the i The position information subset corresponding to the element (the position information subset includes the corresponding i The H represents the number of pixels in the vertical dimension of the sample remote sensing image; W represents the number of pixels in the horizontal dimension of the sample remote sensing image.

[0051] Optionally, the dataset label can be populated with an "unclassified element" using express.

[0052] S620, respectively inputting the sample remote sensing images in each set of training data into the cloud detection model to be trained, and the cloud detection model to be trained outputs the corresponding prediction results.

[0053] The prediction result is a probability value that the image at each pixel position in the predicted image corresponding to the sample remote sensing image is a cloud image.

[0054] S630: Using a preset loss function, based on the labeled data in each set of training data and the corresponding prediction results, obtain a function value of the loss function.

[0055] As an optional example, step S630 may be implemented in the following manner: based on the labeled data in each set of training data and the corresponding prediction results, a function value of a weighted cross entropy loss function is calculated to obtain a function value of the loss function.

[0056] Specifically, the function value of the weighted cross entropy loss function can be calculated using the following calculation formula (2); (2) in, i represents the first i Sample remote sensing images; j Indicates the i The sample remote sensing image j pixels; y ij Indicates that in the labeled data, the corresponding i The sample true value of the jth pixel in the sample remote sensing image, that is, the real label; among them, the positive class (corresponding to "cloud") takes the value 1; the negative class (corresponding to "non-cloud, such as background") takes the value 0; p ij Indicates the corresponding i The probability that the jth pixel in a sample remote sensing image is predicted to be a positive class.

[0057] It should be explained that the correspondence between the labeled data in each set of training data and the corresponding prediction results can be determined by pixel positions, so that the calculation can be performed using the calculation formula (2).

[0058] S640. Based on the function value of the loss function, the cloud detection model to be trained is trained until a preset training completion condition is met, and the pre-trained cloud detection model is obtained from the cloud detection model to be trained.

[0059] As an optional example, step S640 can be implemented in the following manner: first, the function value of the loss function is fed back to the cloud detection model to be trained; second, the cloud detection model to be trained adjusts the network parameters of each network layer according to the function value of the loss function; finally, iteratively execute the step of obtaining the function value of the loss function to the step of adjusting the network parameters of each network layer until the preset training completion condition is met.

[0060] The preset training completion condition may be that the function value of the loss function is less than a preset loss threshold, or that the number of iterative training times is greater than a preset number threshold.

[0061] As described above, the method for target detection in satellite remote sensing images provided by the embodiments of the present disclosure can accurately and effectively handle cloud detection tasks in satellite remote sensing images, improve the detection rate of thin clouds, broken clouds and small clouds, and reduce interference from shadows and similar backgrounds, thereby providing more reliable and high-quality data support for downstream applications of satellite remote sensing images.

[0062] The following is a description of the device for performing target detection on satellite remote sensing images provided by the present disclosure. The device for performing target detection on satellite remote sensing images described below and the method for performing target detection on satellite remote sensing images described above can be referenced to each other.

[0063] Figure 7 FIG. 1 is a schematic diagram of a device for detecting a target in a satellite remote sensing image provided by an exemplary embodiment of the present disclosure. Figure 7 As shown, an apparatus for performing target detection on a satellite remote sensing image comprises: an image acquisition module 710, configured to: acquire a target remote sensing image; wherein the target remote sensing image is a satellite remote sensing image for which target object detection is required, and the target object comprises a cloud image in the satellite remote sensing image; a detection execution module 720, configured to: input the target remote sensing image into a pre-trained cloud detection model, and output a detection result through the pre-trained cloud detection model; wherein the detection result comprises information characterizing a cloud image detected from the target remote sensing image and a position of the cloud image; wherein the pre-trained cloud detection model is trained based on at least one set of training data, and each set of training data in the at least one set of training data comprises a sample remote sensing image and annotation data corresponding to the sample remote sensing image; wherein the sample remote sensing image comprises a sample cloud image and a sample non-cloud image based on a pixel position, and the annotation data comprises a class label of the sample cloud image and a pixel position of the sample cloud image, a class label of the sample non-cloud image and a pixel position of the sample non-cloud image.

[0064] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8As shown, the electronic device may include: a processor (processor) 810, a communication interface (Communications Interface) 820, a memory (memory) 830 and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 can call the logic instructions in the memory 830 to execute a method for performing target detection on a satellite remote sensing image, the method comprising: obtaining a target remote sensing image; wherein the target remote sensing image is a satellite remote sensing image for which target object detection is required, and the target object includes a cloud image in the satellite remote sensing image; inputting the target remote sensing image into a pre-trained cloud detection model, and outputting a detection result through the pre-trained cloud detection model; wherein the detection result includes information characterizing a cloud image detected from the target remote sensing image and a position of the cloud image; wherein the pre-trained cloud detection model is trained based on at least one set of training data, each set of training data in the at least one set of training data includes a sample remote sensing image and annotation data corresponding to the sample remote sensing image; wherein the sample remote sensing image includes a sample cloud image and a sample non-cloud image based on a pixel position, and the annotation data includes a class label of the sample cloud image and a pixel position of the sample cloud image, a class label of the sample non-cloud image and a pixel position of the sample non-cloud image.

[0065] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0066] On the other hand, the present disclosure also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the method for performing target detection on a satellite remote sensing image provided by the above methods, the method comprising: acquiring a target remote sensing image; wherein the target remote sensing image is a satellite remote sensing image for which target object detection is required, and the target object includes a cloud image in the satellite remote sensing image; inputting the target remote sensing image into a pre-trained cloud detection model, and outputting a detection result after the pre-trained cloud detection model outputs the detection result. The method comprises the following steps: the detection result comprises information characterizing a cloud image detected from the target remote sensing image and the position of the cloud image; the pre-trained cloud detection model is trained based on at least one set of training data, each set of training data in the at least one set of training data comprises a sample remote sensing image and annotation data corresponding to the sample remote sensing image; the sample remote sensing image comprises a sample cloud image and a sample non-cloud image based on pixel positions, and the annotation data comprises a class label of the sample cloud image and the pixel position of the sample cloud image, a class label of the sample non-cloud image and the pixel position of the sample non-cloud image.

[0067] On the other hand, the present disclosure also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the method for performing target detection on a satellite remote sensing image provided by the above-mentioned methods, the method comprising: obtaining a target remote sensing image; wherein the target remote sensing image is a satellite remote sensing image for which target object detection is required, and the target object includes a cloud image in the satellite remote sensing image; inputting the target remote sensing image into a pre-trained cloud detection model, and outputting a detection result through the pre-trained cloud detection model; wherein the detection result includes information characterizing a cloud image detected from the target remote sensing image and a position of the cloud image; wherein the pre-trained cloud detection model is trained based on at least one set of training data, and each set of training data in the at least one set of training data includes a sample remote sensing image and annotation data corresponding to the sample remote sensing image; wherein the sample remote sensing image includes a sample cloud image and a sample non-cloud image based on pixel positions, and the annotation data includes a class label of the sample cloud image and a pixel position of the sample cloud image, a class label of the sample non-cloud image and a pixel position of the sample non-cloud image.

[0068] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0069] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0070] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure.

Claims

1. A method for detecting a target on a satellite remote sensing image, comprising: Acquire a target remote sensing image; wherein the target remote sensing image is a satellite remote sensing image that needs to perform target object detection, and the target object includes a cloud image in the satellite remote sensing image; Inputting the target remote sensing image into a pre-trained cloud detection model, and outputting a detection result through the pre-trained cloud detection model; wherein the detection result includes information representing a cloud image detected from the target remote sensing image and a location of the cloud image; The pre-trained cloud detection model is trained based on at least one set of training data, and each set of training data in the at least one set of training data includes a sample remote sensing image and annotation data corresponding to the sample remote sensing image; The sample remote sensing image includes a sample cloud image and a sample non-cloud image based on pixel positions, and the annotation data includes a class label of the sample cloud image and the pixel position of the sample cloud image, a class label of the sample non-cloud image and the pixel position of the sample non-cloud image.

2. The method according to claim 1, characterized in that The pre-trained cloud detection model includes a cascaded multi-level feature extractor, a decoding alignment network, and a mask segmentation head network; The decoding alignment network includes a multi-scale conversion decoder and a feature fusion alignment unit connected in parallel.

3. The method according to claim 2, characterized in that The multi-level feature extractor includes a cascaded first encoder, a second encoder, a third encoder, and a fourth encoder; wherein the first encoder, the second encoder, the third encoder, and the fourth encoder each extract a feature map of a different scale, and are all used to output to the decoding alignment network; The first encoder, the second encoder, the third encoder and the fourth encoder respectively include a conversion layer and a set prediction layer; The conversion layer in the first encoder includes a linear embedding module and a window attention module; the conversion layer in the second encoder, the third encoder and the fourth encoder includes a scale adjustment module and a window attention module; Wherein, the collective prediction layer includes a collective attention module.

4. The method according to claim 2, characterized in that: The multi-scale transform decoder comprises a plurality of cascaded transform decoders; Each of the conversion decoders comprises a cascaded cross-attention layer, a self-attention layer, a first normalization layer, a feedforward neural network layer, and a second normalization layer, wherein an output end of the first normalization layer is connected to an input end of the second normalization layer; The feature fusion alignment unit includes a cascaded convolution sampling subunit, a connection layer, a first convolution layer, a deformation layer, and a second convolution layer; The convolution sampling subunit includes a first branch and a second branch connected in parallel; the first branch includes a cascaded third convolution layer and an upsampling layer, and the second branch includes a fourth convolution layer.

5. The method according to claim 2, characterized in that: The mask segmentation head network includes a multi-layer perceptron MLP, a category prediction unit and a mask prediction unit; One output end of the multi-layer perceptron MLP is used to perform mask embedding on the output of the output end and fuse it with the output of the feature fusion alignment unit, and then connect it to the input end of the mask prediction unit; another output end of the multi-layer perceptron MLP is connected to the input end of the category prediction unit; the category prediction unit is connected in parallel with the mask prediction unit; The multi-layer perceptron MLP includes a linear classifier and an activation function layer SoftMax.

6. The method according to any one of claims 1 to 5, characterized in that The training steps of the pre-trained cloud detection model include: Acquiring the at least one set of training data; The sample remote sensing images in each set of training data are respectively input into the cloud detection model to be trained, and the cloud detection model to be trained outputs the corresponding prediction results; wherein the prediction results are the probability values ​​of the images at each pixel position in the predicted image corresponding to the sample remote sensing image being a cloud image; Using a preset loss function, based on the labeled data in each set of training data and the corresponding prediction results, obtaining a function value of the loss function; Based on the function value of the loss function, the cloud detection model to be trained is trained until a preset training completion condition is met, and the pre-trained cloud detection model is obtained from the cloud detection model to be trained.

7. The method according to claim 6, characterized in that The using a preset loss function to obtain a function value of the loss function based on the labeled data in each set of training data and the corresponding prediction result includes: Based on the labeled data in each set of training data and the corresponding prediction results, a function value of a weighted cross entropy loss function is calculated to obtain the function value of the loss function.

8. The method according to claim 6, characterized in that The step of training the cloud detection model to be trained based on the function value of the loss function until a preset training completion condition is met includes: Passing back the function value of the loss function to the cloud detection model to be trained; The cloud detection model to be trained adjusts the network parameters of each network layer according to the function value of the loss function; Iterate the steps of obtaining the function value of the loss function to adjusting the network parameters of each network layer until a preset training completion condition is met.

9. A device for detecting targets in satellite remote sensing images, comprising: The image acquisition module is configured to: acquire a target remote sensing image; wherein the target remote sensing image is a satellite remote sensing image that needs to perform target object detection, and the target object includes a cloud image in the satellite remote sensing image; A detection execution module is configured to: input the target remote sensing image into a pre-trained cloud detection model, and output a detection result through the pre-trained cloud detection model; wherein the detection result includes information representing the cloud image detected from the target remote sensing image and the location of the cloud image; The pre-trained cloud detection model is trained based on at least one set of training data, and each set of training data in the at least one set of training data includes a sample remote sensing image and annotation data corresponding to the sample remote sensing image; The sample remote sensing image includes a sample cloud image and a sample non-cloud image based on pixel positions, and the annotation data includes a class label of the sample cloud image and the pixel position of the sample cloud image, a class label of the sample non-cloud image and the pixel position of the sample non-cloud image.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for detecting targets in satellite remote sensing images as described in any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Hyperspectral image classification method and storage medium

    CN113723255A

  • Remote sensing image cloud and cloud shadow detection method based on double-attention neural network

    CN114220001A

  • Few-shot urban remote sensing image information extraction method based on meta learning and attention

    US20230215166A1