Bionic compound eye multispectral target detection system and method for harsh environments

Through the bionic compound eye type multispectral target detection method, the processing of multi-view heterospectral image sequences and the generation of adversarial networks are used to achieve clear image fusion and concealed target positioning in harsh environments, solving the problem of imaging inaccuracies in traditional multispectral imaging in harsh environments. Accurate questions improve detection efficiency and accuracy.

CN118426736BActive Publication Date: 2024-09-20HOHAI UNIV +4
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410886328.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-09-20
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

Traditional multispectral imaging devices cannot obtain clear imaging and accurate target detection results under harsh environmental conditions (such as low illumination, strong light, haze, etc.), and are greatly affected by ambient lighting conditions.

Method used

The bionic compound eye type multispectral target detection method is used to enhance the pixel-level structural consistency of multi-view heterospectral image sequences, affine transformation and pixel-level image registration, combined with the continuous learning generative adversarial network based on parameter merging elastic weights for image fusion. , and utilize the adaptive point sampling transformation model to extract multi-scale features to locate hidden targets.

Benefits of technology

It achieves clear images and accurate target detection in harsh environments, improves optical adaptability and anti-interference, and avoids imaging inaccuracies and target positioning difficulties caused by illumination changes in traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118426736B
    Figure CN118426736B
Patent Text Reader

Abstract

The present invention discloses a bionic compound eye type multi-spectral target detection system and method for harsh environments. The method first uses a bionic compound eye type multi-spectral imaging device to shoot a target area with a harsh environment, and obtains a multi-view heterospectral image sequence consisting of visible light imaging images of 5 filter bands and 1 infrared thermal imaging image; then the collected multi-view heterospectral image sequence is processed to obtain a pixel-aligned heterospectral image sequence; then the obtained image sequence of 6 spectral bands is fused to obtain a clear image in a harsh environment; finally, an adaptive point sampling conversion model is used to capture the sparse supervision signal of the target boundary area of ​​the image obtained in step three from the coding feature, and the position of the hidden target is quickly located. The present invention solves the problem of rapid detection of targets in harsh environments and has high engineering application value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a bionic compound eye type multi-spectral target detection system and method for harsh environments, belonging to the technical field of computer vision and target detection. Background Art

[0002] With the development of modern science and technology, multispectral imaging technology has been widely used in the field of target detection and recognition. Compared with traditional single-band imaging technology, multispectral imaging technology has stronger spectral resolution and better spectral discrimination ability, so it can detect and identify targets more accurately. However, in some cases, such as in harsh environmental conditions (such as low illumination, strong light, haze, etc.), the performance of traditional multispectral target detection systems will be severely limited.

[0003] In order to solve this problem, researchers have gradually introduced the idea of ​​bionics into target detection systems in recent years. Bionics is a science that studies biological systems and designs new technologies and systems by imitating the structure and function of organisms. Inspired by bionics, researchers have designed a bionic compound eye multispectral target detection system for harsh environmental conditions. This system imitates the compound eye structure of insects and combines multiple optical sensors into a compound eye structure, with each sensor detecting spectral information in different bands. This system has better optical adaptability and anti-interference performance, and can effectively detect and identify targets. Summary of the invention

[0004] The technical problem to be solved by the present invention is that the previous multispectral imaging devices and target detection methods are greatly affected by the ambient lighting conditions when processing target images in harsh environmental conditions, and it is impossible to obtain clear imaging and accurate target detection results. A bionic compound eye multispectral target detection system and method for harsh environments are proposed, which aligns, fuses and identifies targets for multispectral imaging results, achieves clear imaging and accurate detection in harsh environments, and improves optical adaptability and anti-interference to the environment.

[0005] In order to solve the above technical problems, the present invention first provides a bionic compound eye multispectral target detection method for harsh environments, comprising the following steps:

[0006] Step 1: Use a bionic compound eye multispectral imaging device to shoot a target area with a harsh environment, and obtain a multi-viewing angle and heterospectral image sequence consisting of visible light imaging images of 5 filter bands and 1 infrared thermal imaging image;

[0007] Step 2: Enhance the pixel-level structural consistency of the multi-view hetero-spectral image sequence collected in step 1, and then perform affine transformation on the multi-view hetero-spectral image sequence according to its structural similarity; then perform pixel-level image registration on the hetero-spectral image sequence after affine transformation using the sum of square differences of the images as a measure to obtain an image sequence of 6 spectral segments with pixel alignment;

[0008] Step 3: fuse the image sequences of the six spectrum segments obtained in step 2 to obtain a clear image in a harsh environment;

[0009] Step 4: Use the adaptive point sampling conversion model to capture the sparse supervision signal of the target boundary area of ​​the image obtained in step 3 from the encoding features to quickly locate the position of the hidden target.

[0010] Preferably, the step 2 of performing pixel-level structural consistency enhancement on the multi-viewing and heterospectral image sequence specifically comprises the following steps:

[0011] Step 201: unify the multi-view and heterospectral image sequences collected in step 1 into a single-channel image, wherein the infrared thermal imaging image is a single-channel image and does not need to be processed; whereas the visible light imaging image is a three-channel image, and the collected original image of the visible light imaging image needs to be converted from the RGB space to the YCbCr space. The YCbCr color model is a non-absolute color model, wherein the Y channel represents brightness information, i.e., structural details and brightness changes, and the Cb and Cr channels represent chromaticity information, i.e., the color and saturation of the image. The Cb channel represents the difference between blue and brightness, and the Cr channel represents the difference between red and brightness. The value ranges of the three channels are: Y ∈ [ 0 , 255 ] , Cb , Cr ∈ [ − 128 , 127 ] ;

[0012] Channel extraction is performed to extract the Y channel representing structural details and brightness changes for subsequent processing. The specific conversion formula from RGB space to YCbCr space is: ;

[0013] Step 202: Using the relative significance of the inherent edge structure, the channel-extracted heterospectral image sequence The overall inherent edge structure strength consistency enhancement transformation is performed as follows:

[0014] 202a. A set of channel-extracted spectral image sequences Contains 6 images from different perspectives , let pixel Neighborhood window The size is ,image Pixels in With pixels The gradient between them is defined as ; Calculate each image Each pixel Respectively with its neighborhood window The pixels included The gradient between ;

[0015] 202b. Calculate each image At any pixel Gradient-intensity correlation index at , which is defined as ,in, Represents pixels The intensity average value of the 9 pixels in the neighborhood window of , 0.5 is the empirical observation value of the symmetry axis of the prior distribution of the image gradient-intensity correlation of the enhanced transformation, is the gradient-intensity correlation index The overall size control parameter, is the rate-controlling parameter for the gradient-intensity correlation distribution decaying downward from the peak at the central symmetry axis, is the scale factor of the gradient-intensity correlation distribution;

[0016] 202c. The gradient calculated according to step 202a and step 202b and the relative significance index of the inherent edge structure , the original heterospectral image sequence Transformed into heterospectral image sequences with enhanced structural consistency , for each image , any pixel The transformation result is defined as: ,in, Represents the number of pixels contained in the neighborhood window;

[0017] The gradient-intensity correlation index Substituting the definition of , we can get the complete form of the inherent edge structure strength consistency enhancement transformation : According to the above formula, each isospectral image extracted through the channel Perform the inherent edge structure strength consistency enhancement transformation to obtain the transformation result ;

[0018] In step 202b, the gradient-intensity correlation index corresponding to each image is calculated The optimal inherent edge structure consistency enhancement transformation parameters pre-trained by the differential evolution algorithm are required .

[0019] Preferably, the affine transformation in step 2 and pixel-level image registration of the heterospectral image sequence after affine transformation specifically include the following steps:

[0020] 203a. For the sequence The 6 images included in , select one of them as the reference image , the remaining 5 images are images to be registered ;

[0021] 203b. Any image to be registered With reference image When performing registration, the gradient descent method is used to search for the optimal registration parameters , making use of The registered image obtained by affine transformation will set the objective function Minimize, optimal registration parameters The calculation process is as follows:

[0022] Image to be registered Pixels The process of affine transformation is expressed as: , where pixels The coordinates of , pixels The coordinates after affine transformation are , is the registration parameter to be optimized;

[0023] Define the objective function of gradient descent For reference image The image to be registered The difference after affine transformation, using the sum of squared differences As a measure of the objective function, the specific formula is: ,in, Represents the reference image and the image to be registered after affine transformation The overlapping area between them is the set of pixel positions containing valid intensity values ​​after affine transformation. and Respectively represent the images to be registered after affine transformation and reference image In pixel coordinates The strength of the place;

[0024] Therefore, the gradient descent method is used to find the objective function Image registration can be achieved by minimizing the optimal affine transformation parameters, that is, .

[0025] Preferably, step three comprises the following steps:

[0026] The image sequence of the six spectral segments obtained in step 2 is transformed into the image sequence of the six spectral segments obtained in step 2 through the trained continuous learning generative adversarial network based on parameter merging elastic weights. Convert to 1 fused image , the steps are as follows:

[0027] Step 301: For the first round of fusion task, two registered heterospectral images are and Enter the first generator of the continuous learning generative adversarial network Perform fusion and output the fusion intermediate results , wherein each generator of the continuous learning generative adversarial network has the same architecture, a generator is divided into two branches, processing two input images respectively, each branch includes a layer of kernel size The convolutional layer and the three-layer kernel size are Each convolution layer in each branch establishes a short-distance direct connection with the subsequent convolution layer in a feedforward manner. All convolution layers use the LeakyReLU function as the activation function. Finally, the outputs of the two branches are connected in series. The sizes of the two input convolution kernels are , the activation function is LeakyReLU and Tanh convolutional layer for dimensionality reduction, the output generator The fusion result ;

[0028] Step 302: For Round fusion task, the fusion intermediate result of the previous round and the new heterospectral registration image Enter the new generator Perform fusion and output a new round of fusion intermediate results ;

[0029] Similarly, step 302 is repeated 4 times in a sequential processing manner, so that 6 registered heterospectral images are obtained. Input into 5 generators respectively, and finally output the fused image ,Right now .

[0030] Preferably, step 4 specifically includes:

[0031] Step 401: Use the RGB encoder to encode the fused image obtained in step 3 Perform four downsampling encodings to obtain encoding results of four different scales , which is convenient for subsequent extraction of multi-scale features of the image;

[0032] Step 402: Use a multi-scale feature fusion module, MFFM module for short, to extract and integrate multi-scale features from the encoding result: The encoding results of four different scales are passed through the MFFM module to obtain the corresponding four multi-scale feature maps. ;

[0033] Step 403: Use the adaptive point sampling conversion module to extract the global features and local features of the target object, and aggregate the two; the adaptive point sampling conversion module is the core module of the target prediction model, including four parts: global extractor, local extractor, aggregator and correlation graph generator, where:

[0034] The global extractor is responsible for framing the approximate target area from the input features by The masked area in is pooled globally to extract the global features of the target object based on the semantic context. The specific implementation of the global extractor is as follows:

[0035] First, separate each multi-scale feature map of the input Each channel of No. The channel is defined as ,in and represent The height and width of , R represents the set of real numbers;

[0036] Secondly, the inter-channel Softmax operation is used to generate the approximate target region of each channel f s k ∈ [ 0 , 1 ] H × W , represents the area of ​​the target object;

[0037] Next, approximate the target area is a weighted mask for multi-scale feature maps Perform global weighted average pooling operation to obtain the global template , C represents the number of channels, that is ,in represents the global maximum pooling operation, Representing multi-scale feature maps Approximate target area A collection of, where k represents a multi-scale feature map The kth (k=0,1,…C) channel of

[0038] Finally, the approximate target area corresponding to each channel The resulting global template Merge to get the final global template block ;

[0039] The local extractor is responsible for extracting detailed local information and significant features of the target object from the variability sampling points, and only samples useful information to improve the computational efficiency of the model. Its specific implementation is as follows:

[0040] First, the input multi-scale feature map Split into Block, of which The block is defined as ;

[0041] Second, in each block Uniform initialization A reference point is input into the offset encoder for offset processing; the offset encoder contains two convolutional layers, after which GeLu and Tanh are used as activation functions respectively. After passing through the offset encoder, the relative change of each reference point is obtained;

[0042] Finally, each reference point is moved according to the encoder result, and bilinear interpolation is applied to the 4 adjacent pixels to sample the local features. The resulting partial template is defined as , the local template obtained for each block Merge to get the final local template block ;

[0043] The aggregator is responsible for aggregating the generated local features and global features. The aggregator is based on the input global template and partial templates The size and relationship of the design are as follows:

[0044] First, we use the multi-head attention module MHA to enhance Internal correlation and Internal relevance;

[0045] Secondly, for , perform attention pooling operations along two dimensions, along the length The local features in the block are obtained by operating in the direction of , along the length The direction operation obtains the local features between blocks ;

[0046] Next, , and Through the multi-layer perceptron module MLP, and Respectively Perform matrix multiplication and Softmax activation to generate two correlation score graphs and ; The two correlation score graphs are respectively and The results after the MLP operation are matrix multiplied to obtain two types of aggregate features. and ;

[0047] Finally, the MLP layer is used to aggregate the two types of features and Fusion is performed to obtain the final aggregator output result ;

[0048] The correlation graph generator is responsible for generating relevant features from the aggregator output results, and its specific implementation is as follows:

[0049] Output the aggregator results Each feature of is used as a kernel with size The convolution kernel of the initial input multi-scale feature map Perform convolution;

[0050] For including characteristic , the convolution operation generates relevant features , the relevant features With multi-scale feature maps Merge and pass the kernel size The convolution layer can obtain the final output feature of the adaptive point sampling conversion module ;

[0051] Input four multi-scale feature maps to the adaptive point sampling conversion module respectively , we can get the corresponding four aggregation features ;

[0052] Step 404: predicting the target boundary using a boundary decoder based on a feature pyramid;

[0053] The boundary decoder based on the feature pyramid is specifically implemented as follows: four aggregated features Through The convolutional layer and upsampling layer of , get the features of the same size and merge them, and then pass them to Convolutional layer and Sigmoid layer to generate a single-channel boundary prediction map ;

[0054] Step 405: Use the boundary fusion module (BFM) to fuse the output result of the boundary decoder with the four aggregate features to generate a boundary fusion feature. The specific implementation is as follows:

[0055] First, the boundary prediction map generated by the boundary decoder is input to the BFM module and an aggregate feature , after the resolution of the two is adjusted to be consistent, multiply and pass The convolutional layer obtains the matrix ;

[0056] Secondly, Perform global weighted average pooling and multi-layer perceptron operations, activate with Sigmoid function, and generate attention vectors ;

[0057] Next, we transform the vector With the matrix Perform matrix multiplication to extract boundary-guided global context information ;

[0058] Finally, the global context information guided by the boundary With aggregate features Add and pass Convolutional layer, generating boundary fusion features ;

[0059] Step 406: The boundary fusion features obtained in the previous step are sequentially reduced in dimension and matrix added along the upsampling order, the global information and local details are integrated, the overall trend of the image is identified, and the sparse supervision signal representing the target boundary area is captured to obtain the final target area prediction map. .

[0060] Preferably, step 2 further comprises the step of removing image noise using Gaussian filtering before performing pixel-level structural consistency enhancement on the collected multi-view heterospectral image sequence.

[0061] On the other hand, the present invention also provides a bionic compound eye multi-spectral target detection system for harsh environments, which is used to run the above-mentioned bionic compound eye multi-spectral target detection method for harsh environments, and the system includes:

[0062] An adjustable bionic compound eye multispectral imaging device, a heterospectral image synchronous acquisition module, an edge microprocessor module and a power supply module are used to be carried on various mobile devices such as drones or robots, and to reach and shoot in harsh environments through mobile devices; wherein the heterospectral image synchronous acquisition module is composed of 5 visible light cameras with interchangeable filter bands and 1 infrared thermal imaging camera, and is used to obtain a heterospectral image sequence consisting of visible light imaging images of 5 filter bands and 1 infrared thermal imaging image; the edge microprocessor module is embedded with a pixel-level structure consistency enhancement module, a pixel-level image registration module, an image fusion module, an image feature extraction module, and a target area segmentation module, wherein:

[0063] The pixel-level structural consistency enhancement module is used to perform an overall inherent edge structure strength consistency enhancement transformation on the heterospectral image sequence extracted by the channel, so as to obtain a multi-view heterospectral image sequence with high pixel-level structural consistency;

[0064] A pixel-level image registration module is used to perform pixel-level image registration on heterospectral image sequences with strong inherent edge structure strength consistency to obtain a pixel-aligned heterospectral image sequence;

[0065] Image fusion module, used to fuse pixel-aligned heterospectral image sequences into a clear image of the harsh environment that integrates all spectral information;

[0066] The image feature extraction module is used to collect multi-scale feature maps for clear imaging, perform global and local feature extraction, and then use an aggregator to fuse features and finally generate an aggregated feature map;

[0067] The target area segmentation module is used to combine the generated aggregate features for upsampling, calculate the saliency score of the clear image, generate boundary fusion features, and finally output the target area prediction map.

[0068] Compared with the prior art, the present invention has the following beneficial effects:

[0069] (1) The harsh environment involved in the present invention may be difficult for humans to reach. The water area can be accurately obtained by photographing the harsh environment using an adjustable bionic compound eye multi-spectral imaging device carried by a mobile device. Compared with traditional manual measurement methods, this method is more convenient and faster.

[0070] (2) The harsh environment involved in the present invention may have insufficient lighting, strong light, fog and haze blocking the line of sight, etc., which requires high imaging capabilities and limits the performance of traditional target detection systems. The present invention proposes a bionic compound eye multispectral imaging and target detection method for harsh environmental conditions, which can perform pixel-level registration and fusion of the collected multi-view heterospectral image sequences, as well as accurate target segmentation and recognition.

[0071] (3) The present invention combines the structural similarity of multi-view heterospectral image sequences, enhances the structural consistency of multi-view heterospectral image sequences, and then performs pixel-level image registration, which can avoid the adverse environmental conditions affecting the imaging results of individual spectral segments, resulting in the inability to register the image sequences.

[0072] (4) When performing image fusion, the present invention adopts a continuous learning generative adversarial network based on parameter merging elastic weights, avoiding the catastrophic forgetting problem in the fusion process caused by the sequential training method.

[0073] (5) When performing target segmentation, the present invention adopts an adaptive point sampling conversion model to extract multi-scale feature maps, and comprehensively considers global features and local features, and locates the target based on the sparse supervision signal in the boundary area to solve the problem of target concealment.

[0074] (6) The present invention optimizes the quality of the acquired image sequence and uses Gaussian filtering to remove the noise of the image sequence to prevent the noise generated during the image acquisition process from affecting the subsequent gradient calculation results. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] Figure 1 This is a flow chart of a bionic compound eye multi-spectral target detection algorithm for harsh environmental conditions according to a specific embodiment of the present invention;

[0076] Figure 2 This is a schematic diagram of a bionic compound eye multi-spectral imaging device according to a specific embodiment of the present invention;

[0077] Figure 3 The architecture diagram of a single generator in the continuous learning generative adversarial network based on parameter merging elastic weights for heterospectral image sequence fusion of the present invention;

[0078] Figure 4 The overall algorithm flow chart of the continuous learning generative adversarial network based on parameter merging elastic weights for heterospectral image sequence fusion of the present invention;

[0079] Figure 5 A confrontation flow chart of a single fusion task of the continuous learning generative adversarial network based on parameter merging elastic weights for heterospectral image sequence fusion of the present invention;

[0080] Figure 6 It is a specific architecture diagram of the fusion module for extracting and integrating multi-scale features of the present invention. DETAILED DESCRIPTION

[0081] The present invention proposes a bionic compound eye multi-spectral target detection system for harsh environmental conditions, which includes two parts: image acquisition and information processing. The information processing steps are as follows: Figure 1 shown.

[0082] Step 1: Use the bionic compound eye multispectral imaging device to shoot the target area with harsh environment and obtain a visible light imaging image including 5 filter bands and 1 infrared thermal imaging image Heterospectral image sequence ;

[0083] Step 2: According to the structural similarity of the collected multi-view heterospectral image sequence, an inherent edge structure consistency enhancement transformation is performed on it to obtain a multi-view heterospectral image sequence with high pixel-level structural consistency; using the sum of square differences of the images as a measure, pixel-level image registration is performed on the processed heterospectral image sequence to obtain a pixel-aligned heterospectral image sequence;

[0084] Step 3: The image sequences of the six spectral segments are fused through a trained continuous learning generative adversarial network based on parameter merging elastic weights to obtain a clear fused image of the harsh environment;

[0085] Step 4: Use the adaptive point sampling conversion model to capture the sparse supervision signal of the target boundary area from the encoding features and quickly locate the position of the hidden target.

[0086] In the image acquisition part, such as Figure 2 As shown, the method uses an adjustable bionic compound eye multispectral imaging device composed of 5 high-definition visible light cameras with interchangeable filter bands and 1 infrared thermal imaging camera to collect multispectral image sequences. The image acquisition device can be carried on various mobile devices such as drones and robots. The mobile device can reach the harsh environment, aim the imaging device at the target area for shooting, and the 6 cameras use the hardware trigger mode to achieve synchronous shooting of heterospectral image sequences, and obtain heterospectral image sequences containing 6 different viewing angles. When the present invention performs target detection, an inherent edge structure consistency enhancement transformation based on the structural similarity of the inherent edge is performed in advance, which effectively improves the structural consistency of the image sequence. Therefore, the registration accuracy of the heterospectral image is higher, the clarity of the fused image is higher, and the efficiency of target detection is higher.

[0087] Preferably, before applying the inherent edge structure consistency enhancement transformation, Gaussian filtering can be used to remove image noise to prevent noise generated during image acquisition from affecting subsequent gradient calculation results.

[0088] Traditional target detection is a target detection method based on visible light image features, and its information mainly comes from visible light images or videos captured by ordinary visible light cameras, while multispectral target detection algorithms need to provide richer multispectral image sequence information of the same target area, and have stronger spectral resolution and spectral identification capabilities. However, the harsh environment involved in the present invention may have situations where the visible light imaging performance is severely limited, such as low or high light intensity, thick smoke or fog obstruction, which affects the accuracy of target detection and positioning, and may even make it impossible to image the target. Therefore, the present invention proposes to use a bionic compound eye multispectral target detection system to image targets in harsh environmental conditions, capture heterospectral image sequences containing rich information, and achieve rapid positioning of targets in harsh environments.

[0089] In a specific embodiment, step 2 specifically includes the following steps:

[0090] Step 201: unify the acquired image sequence into a single-channel image. The specific processing process is as follows:

[0091] For infrared thermal imaging cameras, the imaging result is single-channel and does not need to be processed. For visible light imaging cameras, the imaging result is three-channel and the original image needs to be converted from RGB space to YCbCr space. The YCbCr color model is a non-absolute color model, in which the Y channel represents brightness information, i.e. structural details and brightness changes, while the Cb and Cr channels represent chromaticity information, i.e. the color and saturation of the image. The Cb channel represents the difference between blue and brightness, and the Cr channel represents the difference between red and brightness. The value ranges of the three channels are: Y ∈ [ 0 , 255 ] , Cb , Cr ∈ [ − 128 , 127 ] ;

[0092] The Y channel (brightness channel) representing structural details and brightness changes is extracted for subsequent processing. The specific conversion formula from RGB space to YCbCr space is: .

[0093] Step 202: Using the relative significance of the inherent edge structure, the channel-extracted heterospectral image sequence The overall inherent edge structure strength consistency enhancement transformation is performed as follows:

[0094] 202a. A set of channel-extracted allospectral image sequences Contains 6 images from different perspectives In this embodiment, the pixel Neighborhood window The size is ,image Pixels in With pixels The gradient between them is defined as ; Calculate each image Each pixel Respectively with its neighborhood window The pixels included The gradient between ;

[0095] 202b. Calculate each image At any pixel Gradient-intensity correlation index at , which is defined as ,in, In this embodiment, pixels The intensity average value of the 9 pixels in the neighborhood window of , 0.5 is the empirical observation value of the symmetry axis of the prior distribution of the image gradient-intensity correlation of the enhanced transformation, is the gradient-intensity correlation index The overall size control parameter, is the rate-controlling parameter for the gradient-intensity correlation distribution decaying downward from the peak at the central symmetry axis, is the scale factor of the gradient-intensity correlation distribution. and , the shape of the distribution can be freely adjusted;

[0096] 202c. The gradient calculated according to steps 202a and 202b and the relative significance index of the inherent edge structure , the original heterospectral image sequence Transformed into heterospectral image sequences with enhanced structural consistency , for each image , any pixel The transformation result is defined as: ,in, Represents the number of pixels contained in the neighborhood window. In this embodiment ; The gradient-intensity correlation index Substituting the definition of , we can get the complete form of the inherent edge structure strength consistency enhancement transformation :

[0097] ,

[0098] According to the above formula, each isospectral image extracted through the channel Perform the inherent edge structure strength consistency enhancement transformation to obtain the transformation result ;

[0099] In the above step 202b, the gradient-intensity correlation index corresponding to each image is calculated It is necessary to use the pre-trained optimal inherent edge structure consistency enhancement transformation parameters , the pre-training process of this parameter is as follows:

[0100] The transformation parameters are enhanced by differential evolution (DE) algorithm. Perform global optimization. In this embodiment, 30 individuals are set, the step weight is 0.85, and the parameter search space is set to c ∈ [ 0 , 0 . 5 ] , α ∈ [ 1 , 10 ] , β ∈ ( 0 , 1 ] , the upper limit of the number of iterations is 60 generations;

[0101] Intensity difference expression To optimize the target, the square of the intensity gradient is used as the objective function The normalized term is used to correct the objective function The final definition of is:

[0102] ,

[0103] in, and Representative image and The results after structural consistency enhancement are as follows: and Representative image and In pixels The intensity at represents the gradient operator along the horizontal and vertical directions;

[0104] During the training process, the image acquisition device of the present invention is used to capture Different scenes ( ), each scene shot A set of multi-view and heterogeneous image sequences is obtained A set of multi-view heterospectral image sequences, each of which contains 6 heterospectral images. The 6 images are randomly divided into three groups of image pairs without duplication or omission, and finally the Image pairs are used as training data, and the objective function is minimized through differential evolution algorithm to obtain the optimal enhancement transformation parameters ;

[0105] Step 203: Using the affine transformation method, the transformed allospectral image sequence is enhanced for the consistency of the inherent edge structure intensity. To perform pixel-level image registration, the steps are as follows:

[0106] 203a. For the sequence The 6 images included in , select one of them as the reference image , the remaining 5 images are images to be registered ;

[0107] 203b. Any image to be registered With reference image When performing registration, the gradient descent method is used to search for the optimal registration parameters , making use of The registered image obtained by affine transformation will set the objective function Minimize, optimal registration parameters The calculation process is as follows:

[0108] image Pixels The process of affine transformation is expressed as:

[0109] ,

[0110] Among them, pixels The coordinates of , pixels The coordinates after affine transformation are , is the registration parameter to be optimized;

[0111] Define the objective function of gradient descent For reference image The image to be registered The difference after affine transformation, using the sum of squared differences As a measure of the objective function, the specific formula is:

[0112] ,

[0113] in, Represents the reference image and the image to be registered after affine transformation The overlapping area between them is the set of pixel positions containing valid intensity values ​​after affine transformation. and Respectively represent the images to be registered after affine transformation and reference image In pixel coordinates The strength of the place;

[0114] Therefore, the image registration problem is transformed into finding the objective function The optimal affine transformation parameters that are minimized are ;

[0115] Gradient descent method is used to gradually optimize the registration parameters , the optimization rule is:

[0116] ,

[0117] in, represents the update step size, represents the number of iterations in the optimization process, and in this embodiment the initial parameters of the underlying Set as the identity variable, that is ;

[0118] Update the registration parameters repeatedly , until the number of iterations exceeds 500 or the difference between two iterations is less than the threshold When , the iteration stops, and the That is, the optimal registration parameter obtained by the gradient descent method;

[0119] Therefore, the multi-view heterospectral image sequence go through The affine transformation becomes the registration of heterospectral image sequences .

[0120] In a specific embodiment, step 3 generates a sequence of 6 heterospectral registration images by using a trained continuous learning generative adversarial network based on parameter merging elastic weights. Converted into a fused image containing richer information , the specific steps are as follows:

[0121] Step 301: First, for the first round of fusion task, two registered heterospectral images are and Enter the first generator of the continuous learning generative adversarial network Perform fusion and output the fusion intermediate results , where each generator of the continuous learning generative adversarial network has the same architecture, such as Figure 3 As shown, a generator is divided into two branches, which process two input images respectively. Each branch includes a layer with a kernel size of The convolutional layer and the three-layer kernel size are Each convolution layer in each branch establishes a short-distance direct connection with the subsequent convolution layer in a feedforward manner. All convolution layers use the LeakyReLU function as the activation function. Finally, the outputs of the two branches are connected in series, and the sizes of the two input convolution kernels are both , the activation function is LeakyReLU and Tanh convolutional layer for dimensionality reduction, the output generator The fusion result ;

[0122] Step 302: Next, for Round fusion task, the fusion intermediate result of the previous round and the new heterospectral registration image Enter the new generator Perform fusion and output a new round of fusion intermediate results ;

[0123] Similarly, step 301 is repeated 4 times in a sequential processing manner, so that 6 registered heterospectral images are obtained. Input into 5 generators respectively, and finally output the fused image (Right now ).

[0124] The basic architecture and pre-training process of the continuous learning generative adversarial network based on parameter merging elastic weights are as follows:

[0125] The overall architecture of the network is as follows Figure 4 As shown in the figure, in each fusion task, a discriminator is used to establish an adversarial relationship with a unique generator. All fusion tasks are connected together in a sequential training manner, and a parameter merging elastic weight mechanism is introduced to avoid the catastrophic forgetting problem caused by sequential training.

[0126] The specific implementation process of the parameter merging elastic weight mechanism is as follows:

[0127] Given The data of the fusion task is A small part of the data in the fusion task is used for Sort the parameter weights in the fusion tasks;

[0128] The regularization term is used to protect the parameters in the trained fusion task. The regularization term can achieve that the parameters with larger weights have smaller changes in subsequent training, ensuring that subsequent training will not have a significant impact on the previously trained fusion task.

[0129] like Figure 5 As shown, The specific confrontation process of the fusion task is as follows:

[0130] To the generator Input single channel real image pair and , train the generator Generate single channel fused image ;

[0131] Direction Discriminator Input single channel real image pair and Merged dual-channel image , train the discriminator Output its true degree evaluation value ;

[0132] Direction Discriminator Input two single-channel fusion images Merged dual-channel image , train the discriminator Output its true degree evaluation value ;

[0133] Generator Continuously learn how to generate sufficiently realistic fusion images , and the discriminator Continuously learn how to improve the accuracy of evaluating the degree of authenticity, thereby forming a set of adversarial relationships. During the adversarial process, the probability distribution divergence between the fused image and the real image pair will become smaller at the same time. Therefore, the process of optimizing the objective function is defined as:

[0134] min G max D E [ log D ( I real ) ] + E [ log( 1 − D ( I fake )) ] ,

[0135] in, represents the expectation operation, Represents the true degree evaluation value of the discriminator output.

[0136] For the loss function of the generative adversarial network , divided into generator loss and the discriminator loss ,Right now , and The specific expression is as follows:

[0137] Generator loss function The fusion loss of the current image fusion task and avoid the loss of catastrophic forgetting Composition, that is ;

[0138] in, is a hyperparameter, indicating the relative importance of the current task. represents the adversarial loss of deceiving the discriminator, which is defined as: L F adv = E [ log( 1 − D ( I fake ) ) ] , Represents the content loss of constraining the similarity between the fusion image and the real image in content. The content loss is composed of the structural similarity loss and the maximum gradient loss Two parts, using weight To control the trade-off between the two, ;

[0139] In order to constrain the similarity between the fused image and the real image, is used to model the distortion as a combination of three different factors: brightness, contrast, and structure. The loss expression is as follows:

[0140] ,

[0141] In the above formula, and The real images and fused image The image block, represents the average value, represents the standard deviation, parameter Used to make the measurement value relatively stable, and finally get The expression is:

[0142] ,

[0143] In addition, if only Content loss can cause texture details to be lost (at this time) or neutralized (at this time), so the maximum gradient loss is needed. To solve the above problem, the specific expression is:

[0144] ,

[0145] In the above formula, and Respectively represent the height and width of the fused image, It is the gradient with the largest absolute value in the corresponding area in the gradient map of the real image. The specific expression is:

[0146] ,

[0147] in, is a non-negative number approaching 0. For rounding operation, Used to get the maximum value of corresponding positions in two matrices. and Represents the real image and Gradient map of .

[0148] In the generator loss, EWC loss is also added As a regular term to avoid catastrophic forgetting, the specific formula is as follows:

[0149] ,

[0150] Among them, the parameter value in the current task The parameter values ​​in the previous task The squared distance between is used to preserve what the network has learned from the previous task. Indicates parameters, is the Fisher information matrix The diagonal terms can be approximated by calculating the square of the gradient with respect to the data of the previous task, which is specifically expressed as:

[0151] F i = E [( − ∂ ∂ θ ∗ L G ∗ ) 2 | θ ∗ ] ,

[0152] The discriminator in the adversarial network has the function of distinguishing the fused image from the two real images at the same time. Calculate the JS divergence between the distributions to identify whether the input is unrealistic, so that the fused image has enough realism and information to match the real distribution , the discriminator loss function The specific expression is:

[0153] L D = E [ − log ( D ( I real ) ) ] + E [ − log ( 1 − D ( I fake ) ) ] ,

[0154] The above is the total loss function of the continuous learning adversarial generation network A complete analysis of the adversarial generation network can be used to obtain the final clear fusion image. .

[0155] In a specific embodiment, step 4 specifically includes the following steps:

[0156] Step 401: Use the RGB encoder to encode the clear fused image obtained in step 3 Perform four downsampling encodings to obtain encoding results of four different scales , which is convenient for subsequent extraction of multi-scale features of the image;

[0157] Step 402: extracting and integrating multi-scale features from the encoding result using a multi-scale feature fusion module (MFFM);

[0158] The specific architecture of the multi-scale feature fusion module is as follows: Figure 6 As shown in the figure, it includes hole convolution layers of different scales. The introduction of hole convolution layers can effectively increase the receptive field of some parameters and obtain richer multi-scale information.

[0159] Will The encoding results of four different scales are passed through the MFFM module to obtain the corresponding four multi-scale feature maps. ;

[0160] Step 403: using an adaptive point sampling conversion module to extract global features and local features of the target object, and aggregating the two;

[0161] This module is the core module of the target prediction model, which mainly consists of four parts: global extractor, local extractor, aggregator and correlation graph generator;

[0162] The global extractor is mainly responsible for framing the approximate target area from the input features. It does this by The masked area in is pooled globally to extract the global features of the target object based on the semantic context. The specific implementation of the global extractor is as follows:

[0163] First, separate each multi-scale feature map of the input Each channel of No. The channel is defined as ,in and represent The height and width of

[0164] Secondly, the inter-channel Softmax operation is used to generate the approximate target region of each channel f s k ∈ [ 0 , 1 ] H × W , represents the approximate area of ​​the target object;

[0165] Next, is a weighted mask for multi-scale feature maps Perform global weighted average pooling operation to obtain the global template ,Right now ;

[0166] Finally, the approximate target area corresponding to each channel The resulting global template Merge to get the final global template block .

[0167] The local extractor is mainly responsible for extracting detailed local information and significant features of the target object from the variability sampling points. Sampling only useful information can improve the computational efficiency of the model. Its specific implementation is as follows:

[0168] First, the input multi-scale feature map Split into Block, of which A block is defined as ;

[0169] Second, in each block Uniform initialization A reference point is input into the offset encoder for offset processing; the offset encoder contains two convolutional layers, after which GeLu and Tanh are used as activation functions respectively. After passing through the offset encoder, the relative change of each reference point is obtained;

[0170] Finally, each reference point is moved according to the encoder result, and bilinear interpolation is applied to the 4 adjacent pixels to sample the local features. The resulting partial template is defined as , the local template obtained for each block Merge to get the final local template block .

[0171] The aggregator is mainly responsible for aggregating the generated local features and global features. The aggregator is based on the input global template and partial templates The size and relationship of are designed to ensure that the model pays attention to the fine structure of the boundary while taking into account the global location information of the target object. The specific implementation is as follows:

[0172] First, we use the multi-head attention module MHA to enhance Internal correlation and Internal relevance;

[0173] Secondly, for , perform attention pooling operations along two dimensions, along the length The direction operation can obtain the local features within the block , along the length The direction operation can obtain the local features between blocks ;

[0174] Next, , and Through the multi-layer perceptron module MLP, and Respectively Perform matrix multiplication and Softmax activation to generate two correlation score graphs and ; The two correlation score graphs are respectively and After the MLP operation, the results are matrix multiplied to obtain two types of aggregate features. and ;

[0175] Finally, the MLP layer is used to aggregate the two types of features and Fusion is performed to obtain the final aggregator output result .

[0176] The correlation graph generator is mainly responsible for generating relevant features from the aggregator output results. Its specific implementation is as follows:

[0177] Will Each feature of is used as a kernel with size The convolution kernel of the initial input multi-scale feature map Perform convolution;

[0178] For including characteristic , the convolution operation generates relevant features , the relevant features With multi-scale feature maps Merge and pass the kernel size The convolution layer can obtain the final output feature of the adaptive point sampling conversion module ;

[0179] Input four multi-scale feature maps to the adaptive point sampling conversion module respectively , we can get the corresponding four aggregation features .

[0180] Step 404: predicting the target boundary using a boundary decoder based on a feature pyramid;

[0181] The decoder is specifically implemented as follows: four aggregate features Through The convolutional layer and upsampling layer of , get the features of the same size and merge them, and then pass them to Convolutional layer and Sigmoid layer to generate a single-channel boundary prediction map .

[0182] Step 405: Use the boundary fusion module (BFM) to fuse the output result of the boundary decoder with the four aggregate features to generate a boundary fusion feature, which is specifically implemented as follows:

[0183] First, the boundary prediction map generated by the boundary decoder is input to the BFM module and an aggregate feature , after the resolution of the two is adjusted to be consistent, multiply and pass The convolutional layer obtains ;

[0184] Secondly, Perform global weighted average pooling and multi-layer perceptron operations, activate with Sigmoid function, and generate attention vectors ;

[0185] Next, we transform the vector With the matrix Perform matrix multiplication to extract boundary-guided global context information ;

[0186] Finally, the global context information guided by the boundary With aggregate features Add and pass Convolutional layer, generating boundary fusion features .

[0187] Step 406: The boundary fusion features obtained in the previous step are sequentially reduced in dimension and matrix added along the upsampling order, the global information and local details are integrated, the overall trend of the image is identified, and the sparse supervision signal representing the target boundary area is captured to obtain the final target area prediction map. .

[0188] The above is the target detection method used in this embodiment, in which the parameters used in the network architecture need to be obtained through supervised training in advance. , divided into hidden target mask loss and boundary mapping loss , the specific expression is as follows:

[0189] ,

[0190] Among them, the hidden target mask loss Weighted binary cross entropy loss is applied and weighted IOU loss , boundary mapping loss Binary cross entropy loss is applied ;

[0191] Therefore, the bionic compound eye multi-spectral imaging device can be used to locate the position area of ​​hidden targets in harsh environments.

[0192] The method of the present invention collects a multi-view heterospectral image sequence through a bionic compound eye multispectral imaging device, and finally realizes the function of hidden target detection in a harsh environment. The method includes steps such as structural consistency enhancement, pixel-level image registration, heterospectral image fusion, and hidden target regional positioning. The relative significance of the inherent edge structure of the multi-view heterospectral image sequence is used for enhancement, which can significantly improve the accuracy of pixel-level image registration, obtain an aligned heterospectral image sequence, and then perform heterospectral image fusion through continuous learning generative adversarial network to generate a fused image containing rich information. Finally, an adaptive point sampling network is used to realize regional positioning of hidden targets, thereby realizing rapid positioning of targets in harsh environments. The present invention provides an effective and accurate method for detecting targets in harsh environments based on a bionic compound eye multispectral target detection system, which solves the problem of low accuracy or even failure of traditional target detection in harsh environments, and has high engineering application value.

[0193] Embodiment 2:

[0194] This embodiment is a bionic compound eye multi-spectral target detection system for harsh environmental conditions, including:

[0195] An adjustable bionic compound eye multispectral imaging device is used to be carried on various mobile devices such as drones and robots, and to reach and shoot in harsh environments through mobile devices, including a heterospectral image synchronization acquisition module, an edge microprocessor module, and a power supply module, wherein the heterospectral image synchronization acquisition module is composed of 5 high-definition visible light cameras with interchangeable filter bands and 1 infrared thermal imaging camera, and is used to obtain a heterospectral image sequence consisting of visible light imaging images of 5 filter bands and 1 infrared thermal imaging image;

[0196] The pixel-level structural consistency enhancement module is used to perform an overall inherent edge structure strength consistency enhancement transformation on the heterospectral image sequence extracted by the channel, so as to obtain a multi-view heterospectral image sequence with high pixel-level structural consistency;

[0197] A pixel-level image registration module is used to perform pixel-level image registration on heterospectral image sequences with strong inherent edge structure strength consistency to obtain a pixel-aligned heterospectral image sequence;

[0198] Image fusion module, used to fuse pixel-aligned heterospectral image sequences into a clear image of the harsh environment that integrates all spectral information;

[0199] The image feature extraction module is used to collect multi-scale feature maps for clear imaging, perform global and local feature extraction, and then use an aggregator to fuse features and finally generate an aggregated feature map;

[0200] The target area segmentation module is used to combine the generated aggregate features for upsampling, calculate the saliency score of the clear image, generate boundary fusion features, and finally output the target area prediction map.

[0201] In this embodiment, the implementation method of each module is as shown in the above embodiment and will not be elaborated in detail.

[0202] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0203] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0204] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0205] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0206] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present invention and the claims, which all fall within the protection of the present invention.

Claims

1. A bionic compound eye multispectral target detection method for harsh environments, characterized by: The following steps are involved: Step 1: Use a bionic compound eye multispectral imaging device to photograph a target area with a harsh environment, and obtain a multi-view and heterospectral image sequence consisting of visible light imaging images of five filter bands and one infrared thermal imaging image; Step 2: Perform pixel-level structural consistency enhancement on the multi-view heterospectral image sequence collected in step 1. Then, perform an affine transformation on the multi-view heterospectral image sequence based on its structural similarity. Then, perform pixel-level image registration on the heterospectral image sequence after affine transformation using the sum of squared differences of the images as a metric to obtain a pixel-aligned image sequence of six spectral segments. Step 3: Fuse the image sequences of the six spectral segments obtained in step 2 to obtain a clear image in a harsh environment; Step 4: Using the adaptive point sampling conversion model, the sparse supervision signal of the target boundary area of ​​the image obtained in step 3 is captured from the encoding features to quickly locate the position of the hidden target; Step 2, in which pixel-level structural consistency enhancement is performed on the multi-view heterogeneous image sequence, specifically includes the following steps: Step 201: Unify the multi-view and heterospectral image sequences collected in step 1 into a single-channel image. Infrared thermal imaging images are single-channel and do not require processing. Visible light imaging images are three-channel, and the original visible light imaging images collected need to be converted from RGB space to YCbCr space. The YCbCr color model is a non-absolute color model, in which the Y channel represents brightness information, i.e., structural details and brightness changes, while the Cb and Cr channels represent chrominance information, i.e., image color and saturation. The Cb channel represents the difference between blue and brightness, and the Cr channel represents the difference between red and brightness. The value ranges of the three channels are: Y∈[0, 255], Cb, Cr∈[-128, 127], respectively. Perform channel extraction to extract the Y channel representing structural details and brightness changes for subsequent processing. The specific conversion formula from RGB space to YCbCr space is: Step 202: Using the relative significance of the inherent edge structure, perform an overall inherent edge structure strength consistency enhancement transformation on the channel-extracted heterospectral image sequence I. The steps are as follows: 202a. A set of channel-extracted spectral image sequences I contains 6 images from different perspectives I i (i∈{1, 2, ..., 6}), let the neighborhood window N of pixel p p The size of image I is 3×3. i The gradient between the pixel in and the pixel q is defined as δ(p,q)=|I i (p)-I i (q)|,q∈N p ; Calculate each image I i Each pixel is respectively associated with its neighborhood window N p The gradient δ(p,q) between the included pixels q; 202b. Calculate each image I i (i∈{1, 2, ..., 6}) Gradient-intensity correlation index at any pixel, This indicator is defined as in, represents the intensity average of 9 pixels in the neighborhood window of pixel p, 0.5 is the empirical observation value of the symmetry axis of the image gradient-intensity correlation prior distribution of the enhanced transformation, and c is the gradient-intensity correlation index is the overall size control parameter of , α is the rate control parameter at which the gradient-intensity correlation distribution decays downward from the peak of the central symmetry axis, and β is the scale factor of the gradient-intensity correlation distribution; 202c. The gradient δ(p, q) and the gradient-intensity correlation index calculated according to steps 202a and 202b The original heterospectral image sequence I is transformed into a heterospectral image sequence S with enhanced structural consistency. For each image I i (i∈{1, 2, ..., 6}), the transformation result of any pixel is defined as: Where N represents the number of pixels contained in the neighborhood window; The gradient-intensity correlation index Substituting the definition of , we can get the complete form of the inherent edge structure strength consistency enhancement transformation S i (p): According to the above formula, each spectrum image I extracted by the channel i (i∈{1, 2, ..., 6}) performs the inherent edge structure strength consistency enhancement transformation to obtain the transformation result S i (i∈{1, 2, ..., 6}); In step 202b, the gradient-intensity correlation index corresponding to each image is calculated It is necessary to use the optimal inherent edge structure consistency enhancement transformation parameters c, α, β pre-trained by the differential evolution algorithm; The affine transformation in step 2 and pixel-level image registration of the affine transformed heterospectral image sequence specifically include the following steps: 203a. For the 6 images S contained in the sequence S i (i∈{1, 2, ..., 6}), select one of them as the reference image S R , the remaining 5 images are images to be registered S Fj (j∈{1, 2, ..., 5}); 203b. Any image to be registered S Fj (j∈{1, 2, ..., 5}) and the reference image S R When performing registration, the gradient descent method is used to search for the optimal registration parameters Make use of The registered image obtained by affine transformation will set the objective function J SSD Minimize, optimal registration parameters The calculation process is as follows: Image to be registered S Fj The pixel of , the process of affine transformation is expressed as: Among them, the coordinates of pixel are (x, y) T , pixel, the coordinates after affine transformation are (u, v) T , is the registration parameter to be optimized; Define the objective function J of gradient descent as the reference image S R With the image to be registered S Fj The difference after affine transformation is calculated using the sum of squared differences J SSD As a measure of the objective function, the specific formula is: in, Denotes the reference image S R and the image to be registered S after affine transformation Fj The overlapping area between them is the set of pixel positions containing valid intensity values ​​after affine transformation. and S′ R (p) respectively represent the image to be registered S′ after affine transformation Fj and the reference image S′ R The intensity at pixel coordinate p; Therefore, the gradient descent method is used to find the objective function J SSD Image registration can be achieved by minimizing the optimal affine transformation parameters, that is, Step 4 specifically includes: Step 401: Use an RGB encoder to perform four downsampling encoding on the fused image M obtained in step 3 to obtain encoding results E1, E2, E3, and E4 at four different scales, which facilitate the subsequent extraction of multi-scale features of the image. Step 402: Utilize a multi-scale feature fusion module (MFFM module) to extract and integrate multi-scale features from the encoding results: the encoding results of four different scales E1, E2, E3, and E4 are respectively passed through the MFFM module to obtain four corresponding multi-scale feature maps F1, F2, F3, and F4; Step 403: Utilize the adaptive point sampling conversion module to extract the global features and local features of the target object and aggregate them. The adaptive point sampling conversion module is the core module of the target prediction model and includes four parts: a global extractor, a local extractor, an aggregator, and a correlation graph generator. The global extractor is responsible for framing the approximate target region from the input features by im Global average pooling is applied to the masked area in (im∈{1, 2, 3, 4}) to extract the global features of the target object based on the semantic context. The specific implementation of the global extractor is as follows: First, separate each multi-scale feature map F of the input im (im∈{1,2,3,4})∈R C×H×W For each channel, F im The kth channel of is defined as f c k ∈R H×W , where H and W represent F im The height and width of , R represents the set of real numbers; Secondly, the inter-channel Softmax operation is used to generate the approximate target area of ​​each channel The region representing the target object; Next, approximate the target area is a weighted mask for the multi-scale feature map F im Perform global weighted average pooling operation to obtain the global template C represents the number of channels, that is, Where GAP(·) represents the global maximum pooling operation, Represents the multi-scale feature map F im Approximate target area f s k A set of, where k represents the multi-scale feature map F im kth (k=0, 1, ...C) channel; Finally, the approximate target region f corresponding to each channel is s k The obtained global template Merge to get the final global template block T g ∈R C×C ; The local extractor is responsible for extracting detailed local information and salient features of the target object from the variability sampling points, sampling only useful information to improve the computational efficiency of the model. Its specific implementation is as follows: First, the input multi-scale feature map F im Split into N p ×N p blocks, where the zth block is defined as Second, in each block Initialize N uniformly r ×N r Reference points are input into the offset encoder for offset processing; the offset encoder contains two convolutional layers, after which GeLu and Tanh are used as activation functions respectively. After passing through the offset encoder, the relative change of each reference point is obtained; Finally, each reference point is moved according to the encoder result, and bilinear interpolation is applied to the 4 adjacent pixels to sample local features. The resulting partial template is defined as The local template obtained for each block Merge to get the final local template block The aggregator is responsible for aggregating the generated local features and global features. The aggregator is based on the input global template T g and the local template T l The size and relationship of the design are as follows: First, the multi-head attention module MHA is used to enhance T g Internal correlation and T l Internal correlation; Secondly, for Perform attention pooling operations along two dimensions, along the length N p ×N p The direction operation obtains the local features within the block Along the length N r ×N r The direction operation obtains the local features between blocks Next, T g 、T l inter With T l intra Through the multi-layer perceptron module MLP, T l inte r and T l intra Respectively in T g Perform matrix multiplication and Softmax activation to generate two correlation score maps and The two correlation score graphs are respectively l inter and T l intra The results after the MLP operation are matrix multiplied to obtain two types of aggregate features. and Finally, the MLP layer is used to aggregate the two types of features and Fusion is performed to obtain the final aggregator output result T a ∈R C×L : The correlation graph generator is responsible for generating relevant features from the aggregator output results. Its specific implementation is as follows: Output the aggregator result T a ∈R C×C Each feature of is used as a convolution kernel with a kernel size of 1×1 to transform the multi-scale feature map F of the initial input i Perform convolution; For T containing C features a , the convolution operation will generate relevant features C a ∈R C×H×W , the relevant feature C a With multi-scale feature map F i Merge and pass through the convolution layer with a kernel size of 1×1 to obtain the final output feature of the adaptive point sampling conversion module Input four multi-scale feature maps F into the adaptive point sampling conversion module respectively im (im∈{1, 2, 3, 4}), the corresponding four aggregation features can be obtained Step 404: predicting the object boundary using a boundary decoder based on a feature pyramid; The boundary decoder based on the feature pyramid is specifically implemented as follows: four aggregated features The features of the same size are obtained and merged through the 3×3 convolution layer and the upsampling layer respectively, and then passed to the 1×1 convolution layer and the Sigmoid layer to generate a single-channel boundary prediction map E. pred ; Step 405: Use the boundary fusion module (BFM) to fuse the output of the boundary decoder with the four aggregate features to generate a boundary fusion feature. The specific implementation is as follows: First, the boundary prediction map E generated by the boundary decoder is input to the BFM module pred and an aggregate feature After the resolutions of the two are adjusted to be consistent, they are multiplied and passed through a 1×1 convolution layer to obtain the matrix F m ; Secondly, for F m Perform global weighted average pooling and multi-layer perceptron operations, activate with Sigmoid function, and generate attention vector f a ; Next, vector f a With the matrix F m Perform matrix multiplication to extract the boundary-guided global context information F G ; Finally, the boundary-guided global context information F G With aggregate features Add and pass through 1×1 convolution layer to generate boundary fusion features Step 406: The boundary fusion features obtained in the previous step are sequentially reduced in dimension and matrix added along the upsampling order, the global information and local details are integrated, the overall trend of the image is identified, and the sparse supervision signal representing the target boundary area is captured to obtain the final target area prediction image I. pred .

2. The bionic compound eye multispectral target detection method for harsh environments according to claim 1, characterized in that: Step three includes the following steps: The image sequence B of the six spectral segments obtained in step 2 is converted into a fused image I by using the trained continuous learning generative adversarial network based on parameter merging elastic weights. G , the steps are as follows: Step 301: For the first round of fusion tasks, two registered heterogeneous images B1 and B2 are input into the first generator G1 of the continuous learning generative adversarial network for fusion, and a fusion intermediate result M1 is output. Each generator of the continuous learning generative adversarial network has the same architecture. A generator is divided into two branches, which process two input images respectively. Each branch includes a convolution layer with a kernel size of 5×5 and three convolution layers with a kernel size of 3×3. Each convolution layer in each branch establishes a short-distance direct connection with the subsequent convolution layer in a feedforward manner. All convolution layers use the LeakyReLU function as the activation function. Finally, the outputs of the two branches are connected in series, and two convolution layers with a kernel size of 1×1 and an activation function of LeakyReLU and Tanh are input for dimensionality reduction. The fusion result M1 of generator G1 is output. Step 302: For the wth (w∈{2, 3, 4, 5})th round of fusion task, the fusion intermediate result M of the previous round is w-1 and the new heterospectral registration image B w+1 Input the new generator G w Perform fusion and output a new round of fusion intermediate result M w ; Similarly, step 302 is repeated 4 times in a sequential processing manner, so that 6 registered heterogeneous images B i (i∈{1, 2, ..., 6}) are input into 5 generators respectively, and the final output is the fused image M, namely M5.

3. The bionic compound eye multispectral target detection method for harsh environments according to claim 1, characterized in that: Step 2 includes the step of removing image noise using Gaussian filtering before performing pixel-level structural consistency enhancement on the collected multi-view heterogeneous image sequence.

4. A bionic compound eye multispectral target detection system for harsh environments, characterized by: The system is used to run the bionic compound eye multispectral target detection method for harsh environments as described in any one of claims 1 to 3, and the system includes: An adjustable bionic compound-eye multispectral imaging device, a heterospectral image synchronous acquisition module, an edge-end microprocessor module, and a power supply module are used to be carried on various mobile devices such as drones or robots and reach and capture images in harsh environments through the mobile devices. The heterospectral image synchronous acquisition module is composed of five visible light cameras with interchangeable filter bands and one infrared thermal imaging camera, and is used to obtain a heterospectral image sequence consisting of visible light imaging images of the five filter bands and one infrared thermal imaging image. The edge-end microprocessor module is embedded with a pixel-level structure consistency enhancement module, a pixel-level image registration module, an image fusion module, an image feature extraction module, and a target area segmentation module, wherein: The pixel-level structural consistency enhancement module is used to perform an overall inherent edge structure strength consistency enhancement transformation on the heterospectral image sequence extracted through the channel, so as to obtain a multi-view heterospectral image sequence with high pixel-level structural consistency; A pixel-level image registration module is used to perform pixel-level image registration on heterospectral image sequences with strong inherent edge structure strength consistency to obtain pixel-aligned heterospectral image sequences; Image fusion module, used to fuse pixel-aligned heterospectral image sequences into a clear image of the harsh environment that integrates all spectral information; The image feature extraction module is used to collect multi-scale feature maps for clear imaging, perform global and local feature extraction, and then use an aggregator to fuse features and finally generate an aggregated feature map; The target region segmentation module is used to combine the generated aggregate features for upsampling, calculate the saliency score of the clear image, generate boundary fusion features, and finally output the target region prediction map.

Citation Information

Patent Citations

  • Water surface target motion detecting method simulating compound eye visual mechanism and polarization imaging

    CN103295221A

  • Registration method based on multispectral and multimodal image consistency enhancement network

    CN113838104A

  • Multi-spectral image automatic registration method based on probe element directional angle model

    CN115984340A

  • Defect point cloud data reconstruction method based on learnable K near point sampling

    CN116597071A

  • Visible light and infrared thermal imaging image registration method based on graph neural network

    CN116681742A