A visible-infrared cross-modal ship re-identification method and device and storage medium

By using a visible-infrared cross-modal ship re-identification method, which dynamically adjusts the feature fusion weights using convolutional neural networks and attention models, the problem of decreased accuracy in cross-modal ship re-identification is solved, and accurate identification is achieved in different environments.

CN118196728BActive Publication Date: 2026-11-20NANJING UNIV OF INFORMATION SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410380774.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-31
Publication Date
2026-11-20
Estimated Expiration
2044-03-31

AI Technical Summary

Technical Problem

Existing cross-modal ship re-identification methods suffer from decreased accuracy when dealing with differences in viewpoint, attitude, scale, and spectral camera imaging, and cannot effectively eliminate mixed differences.

Method used

A visible-infrared cross-modal ship re-identification method is adopted. Image features are extracted through convolutional neural networks, and the weights in feature fusion are dynamically adjusted by combining an attention model and a dynamic weight generation module. Environmental weather information is used to optimize feature fusion.

Benefits of technology

It enables more accurate ship identification in different environments, improves identification accuracy and system adaptability, and can better focus on ship feature-related areas, thereby improving identification accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118196728B_ABST
    Figure CN118196728B_ABST
Patent Text Reader

Abstract

The application discloses a visible-infrared cross-modal ship re-identification method and device and a storage medium. The method comprises the following steps: performing feature extraction on acquired visible light ship images and infrared ship images, and acquiring visible image features and infrared image features; inputting the visible image features and the infrared image features into an attention model to obtain refined visible image features and infrared image features; inputting the refined visible image features, the infrared image features and pre-extracted environmental weather information into a dynamic weight generation module to obtain dynamic weights; and performing weighted fusion on the visible image features and the infrared image features through the generated dynamic weights to obtain fusion features and complete ship re-identification. According to the relative importance of visible light and infrared images under different scene environments, the application can dynamically adjust the weight in feature fusion, and more accurate ship identification can be realized under different environmental weather conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a visible-infrared cross-modal ship re-identification method, device, and storage medium, belonging to the field of ship re-identification technology. Background Technology

[0002] Ship re-identification in cross-modal scenarios currently faces multiple challenges. Besides addressing appearance differences caused by variations in viewpoint, attitude, and scale, it also needs to cope with modal differences resulting from imaging variations by different spectral cameras. Current cross-modal re-identification methods primarily treat modal differences as part of appearance differences, attempting to reduce mixed differences using feature-level constraints commonly employed in single-modal re-identification. However, when both types of differences exist simultaneously, feature-level constraints alone cannot effectively eliminate mixed differences, leading to a decrease in the accuracy of existing single-modal re-identification methods in cross-modal scenarios. Summary of the Invention

[0003] The purpose of this invention is to overcome the shortcomings of the prior art and provide a visible-infrared cross-modal ship re-identification method, device and storage medium, which can dynamically adjust the weights in feature fusion according to the relative importance of visible light and infrared images in different scene environments, and achieve more accurate ship identification under different environmental and weather conditions.

[0004] To achieve the above objectives, the present invention is implemented using the following technical solution:

[0005] In a first aspect, the present invention provides a visible-infrared cross-modal ship re-identification method, comprising:

[0006] Feature extraction is performed on the acquired visible light and infrared ship images to obtain visible image features and infrared image features;

[0007] The visible image features and infrared image features are input into the attention model to obtain the refined visible image features and infrared image features.

[0008] The refined visible image features, infrared image features, and pre-extracted environmental weather information are input into the dynamic weight generation module to obtain dynamic weights.

[0009] By using generated dynamic weights to weight and fuse visible image features and infrared image features, a fused feature is obtained, thus completing the ship re-identification.

[0010] Furthermore, the step of extracting features from the acquired visible light and infrared ship images to obtain visible image features and infrared image features includes:

[0011] Visible light ship images and infrared ship images are input into a convolutional neural network F-CNN, which includes three convolutional layers and two max pooling layers.

[0012] Parallel convolutions are performed after the second convolutional layer using 3×3 and 5×5 convolutional kernels respectively, resulting in Conv(3,1) and Conv(3,2);

[0013] The obtained Conv(3,1) and Conv(3,2) are concatenated, and the dimension of the Conv3 convolutional layer is reduced by MaxPooling2. A ReLU activation function is set in each convolutional layer, and the corresponding feature vectors are obtained through F-CNN, which are represented as follows:

[0014] F r,i =F.CNN(X) r,i (1)

[0015] Among them, X r,i F represents visible and infrared images. r,i This represents the visible and infrared image features extracted by the convolutional neural network.

[0016] Furthermore, the step of inputting visible image features and infrared image features into the attention model to obtain refined visible image features and infrared image features includes:

[0017] F r,i It is represented in the form of H*W*C, where C is the number of channels of the feature, and W and H represent the width and height of the feature;

[0018] Both average pooling and max pooling layers are applied to feature F. r,i Above, obtain 1×1×C channel attention description features;

[0019] The two channel description features are input into a multilayer perceptron with hidden layers for nonlinear transformation. The calculation process is as follows:

[0020]

[0021]

[0022] in It is the output characteristic after pooling operation and nonlinear transformation;

[0023] The MLP output is normalized using the softmax function to obtain the final attention weight vector.

[0024] The attention weights are summed with the pooled features to obtain the refined feature F'. r,iThe calculation process for attention weights and refined features is as follows:

[0025]

[0026] Among them, F' r,i These are the refined features obtained. Softmax represents the Softmax function, and * indicates element-wise multiplication.

[0027] Furthermore, the process of inputting the refined visible image features, infrared image features, and pre-extracted environmental weather information into the dynamic weight generation module to obtain dynamic weights includes:

[0028] The environmental weather information T is extracted. The environmental weather conditions T include brightness, saturation, and chromaticity, and its formula is as follows:

[0029] T=[V1,H1,S1,V2,H2,S2,……,V n H n ,S n (5)

[0030] Among them, V n H represents the brightness of the nth pixel. n S represents the saturation of the nth pixel. n This represents the chromaticity of the nth pixel, where n is the number of pixels in the image;

[0031] Visible image features F' r Infrared image feature F' i The environmental and weather features T are concatenated to form a feature vector, which is then passed through the hidden layer of the neural network to output Y, as shown in the following formula:

[0032] Y = [F' r ,F' i [T] (6)

[0033] Among them, F' r ,F' i S represents the connected visible image features, infrared image features, and environmental weather features;

[0034] Both max pooling and average pooling layers are applied to feature Y to obtain channel descriptors. A multilayer perceptron (MLP) is then used to process the channel descriptors after pooling operations, performing a nonlinear transformation. Subsequently, a sigmoid activation function is applied to obtain the dynamic weights W, as shown in the following formula:

[0035] W=δ(MLP(AvgPool(Y))+MLP(MaxPool(Y))) (7)

[0036] Where W is the output weight vector, and δ represents the Sigmoid function.

[0037] Furthermore, the weighted fusion of visible image features and infrared image features using generated dynamic weights to obtain fused features includes:

[0038] The features of the visible and infrared images are weighted and fused using the generated dynamic weights W to obtain the final fused features, which are represented as follows:

[0039] F'=W*F' r +(1-W)*F' i (8)

[0040] Where F' represents the generated fusion feature.

[0041] In a second aspect, the present invention provides a visible-infrared cross-modal ship re-identification device, comprising:

[0042] The feature extraction module is used to extract features from the acquired visible light ship images and infrared ship images to obtain visible image features and infrared image features;

[0043] The adjustment module is used to input visible image features and infrared image features into the attention model to obtain refined visible image features and infrared image features;

[0044] The input module is used to input the refined visible image features, infrared image features, and pre-extracted environmental weather information into the dynamic weight generation module to obtain dynamic weights.

[0045] The weighted fusion module is used to perform weighted fusion of visible image features and infrared image features through generated dynamic weights to obtain fused features and complete ship re-identification.

[0046] Thirdly, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the preceding methods.

[0047] Fourthly, the present invention provides a computer device / equipment / system, comprising:

[0048] Memory, used to store computer programs / instructions;

[0049] A processor for executing the computer program / instructions to implement the steps of any of the preceding methods.

[0050] Fifthly, the present invention provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the steps of any of the methods described above.

[0051] Compared with the prior art, the beneficial effects achieved by the present invention are as follows:

[0052] 1. This invention provides a visible-infrared cross-modal ship re-identification method, device and storage medium, which can dynamically adjust the weights in feature fusion according to the relative importance of visible light and infrared images in different scene environments. This intelligent weight adjustment mechanism makes the system more adaptive and can achieve more accurate ship identification under different environmental and weather conditions.

[0053] 2. Features of visible and infrared ship images are extracted using a dual-stream symmetric feature extraction module. This method can selectively extract features from both visible and infrared ship images, thereby extracting image features with higher recognition accuracy.

[0054] 3. An attention mechanism is introduced into multimodal feature fusion, enabling the system to focus more on regions or features that are more critical to the ship identification task during the fusion stage. By adaptively adjusting the attention distribution, the system can focus more on regions in the image related to ship features, improving the efficiency of utilizing key information and further enhancing recognition accuracy. Attached Figure Description

[0055] Figure 1 This is a structural diagram of visible-infrared cross-modal ship re-identification based on feature fusion technology;

[0056] Figure 2 This is a flowchart of the visible-infrared cross-modal ship re-identification process based on feature fusion technology. Detailed Implementation

[0057] The present invention will be further described below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and should not be used to limit the scope of protection of the present invention.

[0058] Example 1

[0059] This embodiment introduces a visible-infrared cross-modal ship re-identification method, including:

[0060] Feature extraction is performed on the acquired visible light and infrared ship images to obtain visible image features and infrared image features;

[0061] The visible image features and infrared image features are input into the attention model to obtain the refined visible image features and infrared image features.

[0062] The refined visible image features, infrared image features, and pre-extracted environmental weather information are input into the dynamic weight generation module to obtain dynamic weights.

[0063] By using generated dynamic weights to weight and fuse visible image features and infrared image features, fused features are obtained, thus completing the ship re-identification.

[0064] The visible-infrared cross-modal ship re-identification method provided in this embodiment involves the following steps in its application process:

[0065] 1. Feature Extraction

[0066] Step 1: Extract visible and infrared image features using a convolutional neural network (F-CNN). The feature extraction network mainly consists of three convolutional layers and two max-pooling layers. After the second convolutional layer, parallel convolutions are performed using 3×3 and 5×5 kernels respectively, resulting in Conv(3,1) and Conv(3,2).

[0067] Step 2: Concatenate the obtained Conv(3,1) and Conv(3,2), reduce the dimension of the Conv3 convolutional layer using Max Pooling2, and apply the ReLU activation function after each layer. Obtain the corresponding feature vectors using F-CNN, represented as follows:

[0068] F r,i =F.CNN(X) r,i (1)

[0069] Among them, X r,i F represents visible and infrared images. r,i This represents the visible and infrared image features extracted by the convolutional neural network.

[0070] 2. Attention Optimization

[0071] Step 1: Place F r,i This is expressed in the form H*W*C, where C is the number of channels in the feature, and W and H represent the width and height of the feature. Both average pooling and max pooling layers are applied to feature F. r,i The channel attention description features of 1×1×C are obtained in this way.

[0072] Step 2: Input the features from these two channels into a multilayer perceptron (MLP) with hidden layers for nonlinear transformation, where r is the compression ratio. The calculation process is as follows:

[0073]

[0074]

[0075] in It is the output feature after pooling operation and nonlinear transformation.

[0076] Step 3: Normalize the output of the MLP using the softmax function to obtain the final attention weight vector.

[0077] Step 4: Finally, perform a weighted summation of the attention weights and the pooled features to obtain the refined feature F'. r,i The calculation process for attention weights and refined features is as follows:

[0078]

[0079] Among them, F' r,i These are the refined features obtained. Softmax represents the Softmax function, and * indicates element-wise multiplication.

[0080] 3. Cross-modal feature fusion with dynamic weights

[0081] Step 1: Using visible image features and infrared image features F' r,i The environmental weather condition T is used as input to obtain the dynamic weight generation module. The environmental weather condition T includes brightness, saturation, and chroma. These features can be directly extracted from the HSV image without the need for additional sensors or data sources. In the HSV color space, the brightness value V, saturation S, and chroma H can be directly extracted from the channel values ​​of each pixel and combined into a feature vector, as shown in the following formula:

[0082] T=[V1,H1,S1,V2,H2,S2,……,V n H n ,S n (5)

[0083] Among them, V n H represents the brightness of the nth pixel. n S represents the saturation of the nth pixel. n This represents the chromaticity of the nth pixel, where n is the number of pixels in the image.

[0084] Visible image features F' r Infrared image feature F' i The environmental and weather features T are concatenated to form a feature vector, which is then passed through the hidden layer of the neural network to output Y, as shown in the formula below.

[0085] Y = [F' r ,F' i [T] (6)

[0086] Among them, F' r ,F' i S represents the connected visible image features, infrared image features, and environmental weather features.

[0087] Step 2: Apply both max pooling and average pooling layers to feature Y to obtain channel descriptors. Use a multilayer perceptron (MLP) to process the channel descriptors after pooling operations, performing a non-linear transformation. Then, process them using a sigmoid activation function to obtain the final fusion weights. The formula is shown below:

[0088] W=δ(MLP(AvgPool(Y))+MLP(MaxPool(Y))) (7)

[0089] Where W is the output weight vector, and δ represents the Sigmoid function.

[0090] Step 3: The features of the visible and infrared images are weighted and fused using the generated weights to obtain the final vector representation, achieving dynamic cross-modal feature fusion for scene awareness. The fused feature representation is as follows:

[0091] *F'=W*F' r +(1-W)*F' i (8)

[0092] Where F' represents the generated fusion feature.

[0093] This embodiment uses a dual-stream symmetric feature extraction module to extract image features, improving the recognition accuracy of image features. An attention mechanism is introduced to improve the system's efficiency in utilizing key information. Through cross-modal feature fusion with dynamic weights, the system's adaptability and robustness are effectively improved, ensuring accurate ship identification even in variable maritime environments.

[0094] Example 2

[0095] This embodiment provides a visible-infrared cross-modal ship re-identification device, including:

[0096] The feature extraction module is used to extract features from the acquired visible light ship images and infrared ship images to obtain visible image features and infrared image features;

[0097] The adjustment module is used to input visible image features and infrared image features into the attention model to obtain refined visible image features and infrared image features;

[0098] The input module is used to input the refined visible image features, infrared image features, and pre-extracted environmental weather information into the dynamic weight generation module to obtain dynamic weights.

[0099] The weighted fusion module is used to perform weighted fusion of visible image features and infrared image features through generated dynamic weights to obtain fused features and complete ship re-identification.

[0100] Example 3

[0101] This embodiment provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the methods described above.

[0102] Example 4

[0103] This embodiment provides a computer device / equipment / system, including:

[0104] Memory, used to store computer programs / instructions;

[0105] A processor for executing the computer program / instructions to implement the steps of any of the preceding methods.

[0106] Example 5

[0107] This embodiment provides a computer program product, including a computer program / instructions that, when executed by a processor, implement the steps of any of the methods described above.

[0108] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

[0109] Those skilled in the art will understand that embodiments of this disclosure can be provided as methods, systems, or computer program products. Therefore, this disclosure can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this disclosure can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0110] This disclosure is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0111] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0112] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0113] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this disclosure and not to limit its protection scope. Although this disclosure has been described in detail with reference to the above embodiments, those skilled in the art should understand that after reading this disclosure, they can still make various changes, modifications or equivalent substitutions to the specific implementation of the invention, but these changes, modifications or equivalent substitutions are all within the protection scope of the pending claims.

Claims

1. A visible-infrared cross-modal ship re-identification method, characterized in that, include: Feature extraction is performed on the acquired visible light and infrared ship images to obtain visible image features and infrared image features; The visible image features and infrared image features are input into the attention model to obtain the refined visible image features and infrared image features. The refined visible image features, infrared image features, and pre-extracted environmental weather information are input into the dynamic weight generation module to obtain dynamic weights, including: The environmental weather information T is extracted. The environmental weather conditions T include brightness, saturation, and chromaticity, and its formula is as follows: in, This represents the brightness of the nth pixel. This represents the saturation of the nth pixel. This represents the chromaticity of the nth pixel, where n is the number of pixels in the image; Visible image features Infrared image features The environmental and weather features T are concatenated to form a feature vector, which is then passed through the hidden layer of the neural network to output Y, as shown in the following formula: in, This represents the connected visible image features, infrared image features, and environmental / weather features; Both max pooling and average pooling layers are applied to feature Y to obtain channel descriptors. A multilayer perceptron (MLP) is then used to process the channel descriptors after pooling operations, performing a nonlinear transformation. Subsequently, a sigmoid activation function is applied to obtain the dynamic weights W, as shown in the following formula: Where W is the output weight vector, It represents Sigmoid; The visible image features and infrared image features are weighted and fused using generated dynamic weights to obtain fused features, thus completing ship re-identification, including: The features of the visible and infrared images are weighted and fused using the generated dynamic weights W to obtain the final fused features, which are represented as follows: in, These are the generated fusion features.

2. The visible-infrared cross-modal ship re-identification method according to claim 1, characterized in that, The step of extracting features from the acquired visible light and infrared ship images to obtain visible image features and infrared image features includes: Visible light ship images and infrared ship images are input into a convolutional neural network F-CNN, which includes three convolutional layers and two max pooling layers. Parallel convolutions are performed after the second convolutional layer using 3×3 and 5×5 convolutional kernels respectively, resulting in Conv(3,1) and Conv(3,2); The obtained Conv(3,1) and Conv(3,2) are concatenated, and the dimension of the Conv3 convolutional layer is reduced by Max Pooling2. A ReLU activation function is set in each convolutional layer, and the corresponding feature vectors are obtained through F-CNN, which are represented as follows: in, Representing visible and infrared images, This represents the visible and infrared image features extracted by the convolutional neural network.

3. The visible-infrared cross-modal ship re-identification method according to claim 2, characterized in that, The step of inputting visible image features and infrared image features into the attention model to obtain refined visible image features and infrared image features includes: F r,i It is represented in the form of H*W*C, where C is the number of channels of the feature, and W and H represent the width and height of the feature; Both average pooling and max pooling layers are applied to the features. Above, obtain 1×1×C channel attention description features; The two channel description features are input into a multilayer perceptron with hidden layers for nonlinear transformation. The calculation process is as follows: in , It is the output characteristic after pooling operation and nonlinear transformation; The MLP output is normalized using the softmax function to obtain the final attention weight vector. ; The attention weights are summed with the pooled features to obtain the refined features. The calculation process for attention weights and refined features is as follows: in, These are the refined features obtained. express The function, * indicates element-wise multiplication.

4. A visible-infrared cross-modal ship re-identification device, used to implement the visible-infrared cross-modal ship re-identification method according to any one of claims 1-3, characterized in that, include: The feature extraction module is used to extract features from the acquired visible light ship images and infrared ship images to obtain visible image features and infrared image features; The adjustment module is used to input visible image features and infrared image features into the attention model to obtain refined visible image features and infrared image features; The input module is used to input the refined visible image features, infrared image features, and pre-extracted environmental weather information into the dynamic weight generation module to obtain dynamic weights. The weighted fusion module is used to perform weighted fusion of visible image features and infrared image features through generated dynamic weights to obtain fused features and complete ship re-identification.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When executed by a processor, the program implements the steps of the method described in any one of claims 1-3.

6. A computer device / equipment / system, characterized in that, include: Memory, used to store computer programs / instructions; A processor for executing the computer program / instructions to implement the steps of the method according to any one of claims 1-3.

7. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method described in any one of claims 1-3.