Weak and small target detection method and device based on panchromatic and hyperspectral fused image

Through the hierarchical supervision integrated model of the image fusion network and the target detection network, combined with the spatial spectrum attention mapping module of Transformer and CNN, the problem of inaccurate panchromatic and hyperspectral image detection is solved, and high-precision weak and small target detection is achieved.

CN118674907AActive Publication Date: 2024-09-20BEIJING INST OF TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410898517.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-09-20
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

The detection of weak and small targets based on panchromatic and hyperspectral images faces the problems of low spatial resolution and inaccurate spectral characteristics, resulting in inaccurate detection.

Method used

A hierarchical supervision integrated model of the image fusion network and the target detection network is used, trained through a loss feedback mechanism, to generate a fused image with high spatial and spectral resolution, and the spatial spectrum attention mapping module combined with the Transformer network and CNN is used to extract features. Realize the positioning detection of weak and small targets.

Benefits of technology

The accuracy and detection rate of weak and small target detection in remote sensing images are improved, and the network's attention to the target area is enhanced through feature fusion to improve the detection effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118674907A
    Figure CN118674907A
Patent Text Reader

Abstract

The invention discloses a weak and small target detection method and device based on a panchromatic and hyperspectral fusion image, and belongs to the technical field of image processing. The method comprises the following steps: acquiring panchromatic and hyperspectral remote sensing images with high matching precision; sequentially connecting the image fusion network and the target detection network into a hierarchical supervision integrated network; the image fusion network and the target detection network respectively carry out calculation through respective loss functions, meanwhile, mutual learning loss is calculated based on an output result of the target detection network, and the mutual learning loss is fed back and transmitted to the image fusion network to serve as a loss function to carry out supervision training on the fusion network; then inputting the panchromatic and hyperspectral remote sensing images into a fusion network, carrying out panchromatic and hyperspectral image fusion, inputting the fused image into a target detection network, extracting space and spectrum joint features of the fused image, carrying out small target feature enhancement, and finally outputting a high-precision target detection result; the method can improve the accuracy of remote sensing image weak and small target detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a method and device for detecting small targets based on a panchromatic and hyperspectral fusion image. Background Art

[0002] Small target detection based on panchromatic and hyperspectral images is a challenging task, but it still receives more and more attention due to their unique data characteristics. Panchromatic images have high spatial resolution, while hyperspectral images have high spectral resolution, and both have their own advantages. Therefore, combining the two can achieve complementary advantages and synergistic enhancement in target detection. Small target detection based on panchromatic and hyperspectral images has a wide range of applications, including food safety and quality monitoring, precision agriculture, biomedical applications, urban planning, and military surveillance, so it has great research value.

[0003] In recent years, deep learning methods have shown good performance in the field of remote sensing image target detection. However, due to the significant imaging differences between panchromatic and hyperspectral images, there are still several challenges in achieving accurate small target detection based on these two types of images: 1) Wide-width remote sensing images taken at long distances have low spatial resolution. Even in panchromatic images, the shape and texture information of the target is still insufficient to achieve good results in small and weak target detection; 2) Hyperspectral images have rich spectral features, but due to the spectral mixing effect, the spectral features of small targets are inaccurate; 3) Some existing methods face challenges in accurately aligning spatial and spectral features, resulting in inaccurate detection of small and weak targets.

[0004] Therefore, how to effectively utilize the information of the two images to obtain accurate target detection results is the main problem that needs to be solved urgently. Summary of the invention

[0005] In view of this, the present invention provides a method and device for detecting small targets based on panchromatic and hyperspectral fusion images, which at least solve some of the above-mentioned technical problems, so as to improve the accuracy of small target detection in remote sensing images.

[0006] To achieve the above purpose, the technical solution adopted by the present invention is:

[0007] In a first aspect, an embodiment of the present invention provides a method for detecting small targets based on a panchromatic and hyperspectral fusion image, the method comprising:

[0008] Obtain original registered panchromatic and hyperspectral images;

[0009] The image fusion network and the object detection network are sequentially connected into a hierarchical supervision integrated network;

[0010] The network is supervised and trained, where the image fusion network and the target detection network are calculated using their own loss functions. At the same time, the mutual learning loss is calculated based on the output of the target detection network and fed back to the image fusion network as a loss function for supervised training of the fusion network.

[0011] After training, the image fusion network is used to fuse the panchromatic image and the hyperspectral image; the target detection network is used to extract features from the fused image to achieve positioning and detection of weak targets.

[0012] Optionally, after obtaining the original registered panchromatic image and hyperspectral image, the obtained hyperspectral image is upsampled to the same spatial resolution as the panchromatic image using bilinear interpolation.

[0013] Optionally, preprocessing is performed on the panchromatic image and the upsampled hyperspectral image, and the preprocessing includes: image cropping, labeling and data normalization.

[0014] Optionally, when the image fusion network fuses the panchromatic image and the hyperspectral image, a coefficient matrix feature map is first generated, and then the generated coefficient matrix feature map and the original upsampled hyperspectral image are multiplied by band to obtain the final panchromatic and hyperspectral fused image.

[0015] Optionally, the image fusion network is constructed based on a Transformer network, including: three convolutional layers, the convolution kernel sizes of the three convolutional layers are: 9×9, 5×5 and 5×5 respectively; each convolutional layer is connected to a Relu activation function layer.

[0016] Optionally, the target detection network is jointly constructed based on CNN and Transformer networks, including: multiple cascaded spatial-spectral attention mapping modules, a global average pooling layer and a fully connected layer; wherein: each of the spatial-spectral attention mapping modules contains parallel calculations of: a local spatial convolution module, a global spatial-spectral calculation module and a channel spectral calculation module.

[0017] In a second aspect, an embodiment of the present invention further provides a small target detection device based on a panchromatic and hyperspectral fusion image, comprising: an image acquisition device, a memory, and a processor, wherein:

[0018] The image acquisition device is used to acquire the registered full-color image and hyperspectral image;

[0019] The memory stores computer instructions;

[0020] The processor is connected to the image acquisition device and the memory data. The processor executes the computer instructions to perform the above-mentioned small target detection method based on full-color and hyperspectral fusion images to perform small target detection in remote sensing images.

[0021] In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the above-mentioned method for detecting small and dim targets based on panchromatic and hyperspectral fusion images is implemented.

[0022] Compared with the prior art, the present invention has at least the following beneficial effects:

[0023] In the present invention, image fusion and target detection network are integrated into an integrated network model. The detection rate of small targets can be effectively enhanced through feature fusion. During the training process, the loss feedback adjustment strategy is used to feed back the target detection mask information to the fusion network, and its loss function is adjusted to make the network pay more attention to the target area, thereby improving the accuracy of small target detection in remote sensing images.

[0024] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the accompanying drawings.

[0025] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0027] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.

[0028] Figure 1 A schematic diagram of the principle of a small target detection method based on panchromatic and hyperspectral fusion images provided in an embodiment of the present invention.

[0029] Figure 2 A schematic flow chart of a small target detection method based on panchromatic and hyperspectral fusion images provided in an embodiment of the present invention.

[0030] Figure 3 A schematic diagram of the image fusion network structure provided by an embodiment of the present invention.

[0031] Figure 4 A schematic diagram of a target detection network structure provided by an embodiment of the present invention.

[0032] Figure 5 A schematic diagram of the structure of a spatial-spectral attention mapping module provided in an embodiment of the present invention.

[0033] Figure 6 A schematic diagram of visualized image blocks after cropping of an original 16-bit full-color image provided in an embodiment of the present invention.

[0034] Figure 7 A schematic diagram of visualized image blocks after cropping of the original 16-bit hyperspectral image (RGB band) provided in an embodiment of the present invention.

[0035] Figure 8 A schematic diagram of a fused image provided by an embodiment of the present invention.

[0036] Fig. 9 A schematic diagram of small target detection results provided by an embodiment of the present invention.

[0037] Fig.10 A schematic diagram of the structure of a small target detection device based on panchromatic and hyperspectral fusion images provided in an embodiment of the present invention.

[0038] Among them, 1-image acquisition device; 2-memory; 3-processor. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.

[0040] In the description of the present invention, it should be noted that: in some processes described in the specification and drawings of this application, multiple operations appearing in a specific order are included, but it should be clearly understood that these operations may not be performed in the order in which they appear in this document or may be performed in parallel. In addition, various serial numbers are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0041] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] See also Figure 1 and Figure 2 As shown, the present invention provides a small target detection method based on panchromatic and hyperspectral fusion images, which is used to automatically detect small targets in panchromatic and hyperspectral fusion images. The method mainly includes:

[0043] Obtain original registered panchromatic and hyperspectral images;

[0044] The image fusion network (Hyperspectral Image Pansharpening, HIP) and the target detection network (Small Object Detection, SOD) are sequentially connected to form a hierarchical supervision integrated network; then the image fusion network and the target detection network are calculated through their own loss functions for supervised training; at the same time, the mutual learning loss is calculated based on the output result of the target detection network and fed back to the image fusion network as a loss function together with other loss functions to supervise the image fusion network training;

[0045] After training, the image fusion network is used to fuse the panchromatic image and the hyperspectral image; the target detection network is used to extract features from the fused image to achieve positioning and detection of weak targets.

[0046] The specific implementation methods of the method of the present invention are described in detail below:

[0047] (1) The original 16-bit registered panchromatic and hyperspectral image data taken by the satellite are obtained, and the hyperspectral image is upsampled to the same spatial resolution as the panchromatic image using bilinear interpolation to obtain the upsampled hyperspectral image.

[0048] (2) Preprocessing the obtained panchromatic and hyperspectral images to meet the machine computing requirements; specifically including:

[0049] First, the original 16-bit panchromatic and upsampled hyperspectral images are cropped into 256 × 256 image blocks to make training samples for the network model.

[0050] Then, the target truth box is annotated based on the panchromatic image and hyperspectral image data.

[0051] (3) Calculate the ratio transformation image of the panchromatic image and the hyperspectral image, specifically:

[0052] Each band of the hyperspectral image is calculated with the panchromatic image to obtain a series of ratio transformation images (coefficient matrix feature maps); the specific calculation formula is:

[0053]

[0054] Among them, R i is the ratio transformation image for each band, P is the full-color image, M is i is each band of the hyperspectral image, and x and y are the pixel coordinates.

[0055] (4) The HIP network is used to perform feature fine-tuning and adaptively fuse the panchromatic and hyperspectral image blocks with complex backgrounds; the panchromatic and hyperspectral image fusion processing is completed.

[0056] In the embodiment of the present invention, the HIP network is built based on the Transformer network architecture optimization, see Figure 3 As shown in Figure 1, the HIP network architecture is mainly composed of three convolutional layers, each with a convolution kernel size of 9×9, 5×5, and 5×5, followed by three Relu activation function layers. The HIP network chooses to generate a ratio transformation image instead of directly generating a fusion image, and then inputs the ratio transformation image of the panchromatic and hyperspectral images obtained in step (3) into the network, fine-tunes the features, and multiplies the output result with the panchromatic image to obtain the fusion result, thus obtaining a panchromatic and hyperspectral fusion image with higher fidelity.

[0057] (5) Use the SOD network to detect small targets in panchromatic and hyperspectral fusion images.

[0058] See also Figure 4 As shown, in an embodiment of the present invention, the SOD network is jointly constructed based on CNN and Transformer. The SOD network combines convolution and Transformer architectures, including multiple cascaded spectral attention mapping modules (Spectral-Spatial Attention Projection, SSAP) and a global average pooling layer. Finally, a fully connected layer is used to achieve effective feature fusion, which is used to solve the challenges of small target detection on hyperspectral and panchromatic images. Figure 5The internal structure of the proposed SSAP module is shown. The SSAP module mainly includes three parallel computing modules, namely: local spatial convolution module, global spatial spectrum computing module and channel spectrum computing module; used to extract local spatial features, pixel spectrum features and global spatial-spectral joint features. Among them, each module is also composed of a multilayer perceptron (Multilayer Perceptron, MLP), a depth multilayer perceptron (D-MLP), a channel multilayer perceptron (C-MLP), and a multi-head self-attention mechanism module (Multi-head Self-Attention, MSA), which are used to extract image features and improve network attention. Integrating these structures can enhance the ability to capture spatial-spectral small target features and reduce information loss as the network deepens.

[0059] In the embodiments of the present invention, see Figure 1 and Figure 2 As shown in the figure, the image fusion network (HIP) and the target detection network (SOD) are combined, and integrated training is achieved through a feedback adjustment mechanism. The HIP network and the SOD network are connected sequentially, and the output fusion image is directly used as the input data of the SOD network. Among them, the HIP network calculates the spatial and spectral errors with the panchromatic image and the hyperspectral image through the mean absolute error function L1loss to complete the gradient backpropagation; the SOD network calculates the error by comparing the Yolo loss function with the true value of the target box. During the training process, the loss function of the HIP network is added to the output target area of ​​the SOD network for weight enhancement. Through this operation, the HIP network can not only obtain a high-fidelity fusion image as the goal, but also combine it with target detection to achieve the optimal target detection effect.

[0060] In this embodiment, Figures 6 to 9 An example of applying the method provided by the present invention to detect small and weak targets based on a panchromatic and hyperspectral fusion image is shown in FIG. Figure 6 and Figure 7 They are the original 16-bit panchromatic and hyperspectral images (RGB bands) after being cropped for visualization. Figure 8 is a schematic diagram of the fused image. Fig. 9 This is a schematic diagram of the results of weak target detection. Fig. 9 It can be seen that the method of the present invention can achieve accurate detection of weak targets in remote sensing images.

[0061] From the description of the above embodiments, those skilled in the art can know that in order to improve the accuracy of small target detection in remote sensing images, the present invention proposes a small target detection method based on panchromatic and hyperspectral fusion images, the method comprising: firstly obtaining panchromatic and hyperspectral remote sensing images with high matching accuracy; secondly, inputting paired panchromatic and hyperspectral remote sensing images into the HIP fusion network model, fusing the panchromatic and hyperspectral images, and obtaining a fusion image with high spatial resolution and high spectral resolution with precise feature alignment; then, inputting the obtained fusion image into the SOD small target detection network, extracting the spatial and spectral joint features of the fusion image by three-dimensional spatial convolution, and enhancing the small target features by the feature enhancement module, and finally outputting a high-precision target detection result; in the training process, using the loss feedback adjustment strategy, the target detection mask information is fed back to the fusion network, and its loss function is adjusted to make the network pay more attention to the target area. The method is a progressive multi-level supervised integrated network model, which integrates image fusion and small target detection network into an integrated network model, and can effectively enhance the small target detection rate through feature fusion, which has high research significance and practical value.

[0062] Furthermore, the present invention also provides a small target detection system based on panchromatic and hyperspectral fusion images, which uses a small target detection method based on panchromatic and hyperspectral fusion images in the above embodiment to realize small target detection in remote sensing images. The system includes:

[0063] An image acquisition module, used to acquire the original registered panchromatic image and hyperspectral image;

[0064] A network model building module, which is used to sequentially connect the image fusion network and the object detection network into a hierarchical supervision integrated network;

[0065] The network model training module is used to supervise the network training, in which the image fusion network and the target detection network are calculated through their own loss functions respectively; at the same time, the mutual learning loss is calculated based on the output result of the target detection network and fed back to the image fusion network as a loss function to supervise the training of the fusion network;

[0066] The network model application module is used to fuse the panchromatic image and the hyperspectral image using the trained image fusion network; and to extract features from the fused image using the trained target detection network to achieve positioning detection of small targets.

[0067] The implementation principle and technical effects of the system provided in the embodiment of the present invention are the same as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the system embodiment, reference can be made to the corresponding contents in the aforementioned method embodiment, which will not be repeated here.

[0068] In addition, the embodiment of the present invention also provides a small target detection device based on panchromatic and hyperspectral fusion images to achieve accurate detection of small targets. The device can be implemented by software and / or hardware. Fig.10 As shown, the apparatus comprises an image acquisition device 1, a memory 2 and a processor 3. The image acquisition device 1, the memory 2 and the processor 3 may be connected via a bus or other means.

[0069] The image acquisition device 1 is used to acquire the original remote sensing image data and send it to the processor 3. The processor 3 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components and other chips, or a combination of the above chips.

[0070] The memory 2, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as programs or instructions corresponding to a small target detection method based on panchromatic and hyperspectral fusion images.

[0071] The processor 3 executes various functional applications and data processing of the processor by running the non-transitory software program or instruction stored in the memory 2, that is, implements the dim small target detection method based on the panchromatic and hyperspectral fusion image in the above method embodiment.

[0072] The memory 2 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created by the processor 2 and the like.

[0073] In addition, the memory 2 may include a high-speed random access memory and may also include a non-volatile memory. More specific examples of the memory 2 (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, and any suitable combination of the above.

[0074] In some aspects, the memory 2 optionally includes memories remotely located relative to the processor 3 , and these remote memories may be connected to the processor 3 via a network.

[0075] Those skilled in the art should understand that the embodiments of the present invention can be provided as methods, systems, devices or computer program products, etc. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects.

[0076] It should be noted that the word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention can be implemented by means of hardware comprising several distinct components, and by means of a suitably programmed computer.

[0077] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0078] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A small target detection method based on panchromatic and hyperspectral fusion images, characterized in that: The method includes: Obtain original registered panchromatic and hyperspectral images; The image fusion network and the object detection network are sequentially connected into a hierarchical supervision integrated network; The network is supervised and trained, where the image fusion network and the target detection network are calculated using their own loss functions. At the same time, the mutual learning loss is calculated based on the output of the target detection network and fed back to the image fusion network as a loss function for supervised training of the fusion network. After training, the image fusion network is used to fuse the panchromatic image and the hyperspectral image; the target detection network is used to extract features from the fused image to achieve positioning and detection of small targets.

2. The method for detecting small targets based on panchromatic and hyperspectral fusion images according to claim 1, characterized in that: After obtaining the original registered panchromatic and hyperspectral images, the acquired hyperspectral images are upsampled to the same spatial resolution as the panchromatic images using bilinear interpolation.

3. The method for detecting small targets based on panchromatic and hyperspectral fusion images according to claim 2, characterized in that: Preprocessing is performed on the panchromatic image and the upsampled hyperspectral image, and the preprocessing includes: image cropping, labeling and data normalization.

4. The method for detecting small targets based on panchromatic and hyperspectral fusion images according to claim 1, characterized in that: When the image fusion network fuses the panchromatic image and the hyperspectral image, a coefficient matrix feature map is first generated, and then the generated coefficient matrix feature map and the original upsampled hyperspectral image are multiplied by band to obtain the final panchromatic and hyperspectral fused image.

5. The method for detecting small targets based on panchromatic and hyperspectral fusion images according to claim 1, characterized in that: The image fusion network is constructed based on the Transformer network, including three convolutional layers, the convolution kernel sizes of the three convolutional layers are respectively: 9×9, 5×5 and 5×5; each convolutional layer is connected to a Relu activation function layer.

6. The method for detecting small targets based on panchromatic and hyperspectral fusion images according to claim 1, characterized in that: The target detection network is jointly constructed based on CNN and Transformer networks, including: multiple cascaded spatial-spectral attention mapping modules, a global average pooling layer and a fully connected layer; wherein: each of the spatial-spectral attention mapping modules contains parallel calculations: a local spatial convolution module, a global spatial-spectral calculation module and a channel spectral calculation module.

7. A small target detection device based on panchromatic and hyperspectral fusion images, characterized in that: include: An image acquisition device, a memory and a processor, wherein: The image acquisition device is used to acquire the original registered full-color image and the hyperspectral image; The memory stores computer instructions; The processor is data-connected to the image acquisition device and the memory. The processor executes the computer instructions to perform the small target detection method based on panchromatic and hyperspectral fusion images as described in any one of claims 1 to 6 to perform small target detection in remote sensing images.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, which, when executed by a processor, implement a small target detection method based on a panchromatic and hyperspectral fusion image as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Hyperspectral fusion method based on space-spectrum total variation regularization

    CN113205453A

  • Optical remote sensing spatial spectrum fusion method, device and equipment without reference image and medium

    CN114581347A

  • Remote sensing target detection method and system, medium, equipment and terminal

    CN116524376A

  • Multi-mode face anti-fraud detection method based on AR-MLP

    CN117011911A

  • Hyperspectral image classification method based on spatial-spectral feature enhancement

    CN117351254A