Cross-modal pedestrian re-identification method and system based on intermediate modal learning

Through a method based on intermediate modal learning, spatial and channel attention are used to optimize visible and infrared images, combined with dual-branch structure and feature distance constraints, to solve the identification difficulties caused by the difference between visible-infrared modalities in traditional methods, and achieve High-accuracy pedestrian re-identification.

CN118609173AInactive Publication Date: 2024-09-06NANJING UNIV OF INFORMATION SCI & TECH

Patent Information

Application Number
CN202411089728.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

There are differences between visible and infrared modes in traditional pedestrian re-identification technology, which makes it difficult to achieve accurate recognition in environments with poor lighting conditions. Existing methods such as generative adversarial networks lack attention to fine-grained spatial details in the image generation process, affecting detection. Accuracy.

Method used

A cross-modal person re-identification method based on intermediate modal learning is used to optimize visible and infrared images through spatial attention and channel attention, and a dual-branch structure intermediate mode image generator is established, which combines dense connections and gradient operations to extract details. information, and improve the recognition effect through feature distance constraints.

Benefits of technology

It improves the reduction degree and detection accuracy of pedestrian re-identification, reduces the differences between and within modalities, and achieves high-precision cross-modal recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609173A
    Figure CN118609173A
Patent Text Reader

Abstract

The invention provides a cross-modal pedestrian re-identification method and system based on intermediate modal learning. The pedestrian re-identification method comprises the following steps: obtaining a visible light original image and an infrared original image which are paired; extracting intermediate modes of the visible light original image and the infrared original image to obtain a visible light intermediate mode and an infrared intermediate mode; optimizing the visible light original image, the infrared original image, the visible light intermediate mode and the infrared intermediate mode through space attention and channel attention, and outputting an optimization result; and establishing a loss constraint to limit the optimization result, and outputting a recognition result. The invention provides an intermediate modal learning network which is mainly composed of an intermediate modal picture generator, a double attention combination block and a feature loss constraint, and has the characteristics of high precision and high reduction degree.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer vision image retrieval, and in particular to a cross-modal pedestrian re-identification method and system based on intermediate modality learning. Background Art

[0002] Person re-identification is a pedestrian image retrieval task in the field of computer vision, which aims to achieve accurate recognition and association across cameras in different scenarios. Traditional person re-identification tasks only involve visible light modalities, that is, all person images are taken by visible light cameras during the day. Although the images taken by visible light cameras can intuitively present the color, shape and details of scenes and objects, which are more in line with human visual perception, they will have poor effects in environments with poor lighting conditions and it is difficult to capture effective pedestrian appearance information.

[0003] Unlike visible light cameras, infrared cameras can work in low light or even in complete darkness. The image sensor of a visible light camera converts light information into a digital image, usually working in the visible light band of 400 to 700 nanometers. Infrared cameras use infrared sensors or thermal imaging sensors to convert infrared radiation information into visual images, usually working in the thermal infrared band of 8 to 14 microns or the near-infrared band of 700 to 1100 nanometers. Therefore, visible-infrared pedestrian re-identification, which combines the two, has become a mainstream research and has received increasing attention. Visible light images rely on light sources and reflected light when imaging, and the images formed contain rich color information, as well as details such as shape and texture, while infrared images rely on the thermal radiation imaging of the object itself, and the generated images do not contain information such as color, brightness, and temperature. Due to the different imaging principles of the two, the pictures they take inevitably have modal differences. Therefore, the model with super high performance in traditional pedestrian re-identification cannot be directly applied to visible-infrared pedestrian re-identification.

[0004] Early methods generate infrared / visible counterparts for visible / infrared images through generative adversarial networks to reduce the difference between the modalities. However, the generative adversarial network itself has limitations and cannot ensure the quality and diversity of the generated images, which affects the performance of visible-infrared pedestrian re-identification. Given the limitations of generative adversarial networks, some recent methods have designed additional lightweight networks to generate a third modality to bridge the visible and infrared modalities to alleviate the difference between the modalities. However, these methods do not pay enough attention to fine-grained spatial details during the image generation process, resulting in poor accuracy of the final extracted target and cannot be used for practical applications. Summary of the invention

[0005] Purpose of the invention: The purpose of the present invention is to provide a cross-modal pedestrian re-identification method and system based on intermediate modal learning with high restoration degree and high detection accuracy.

[0006] Technical solution: The cross-modal pedestrian re-identification method based on intermediate modality learning described in the present invention includes the following steps: obtaining a pair of visible light original images and infrared original images; extracting the intermediate modality of the visible light original image and the infrared original image to obtain a visible light intermediate modality and an infrared intermediate modality; optimizing the visible light original image, the infrared original image, the visible light intermediate modality, and the infrared intermediate modality through spatial attention and channel attention, and outputting the optimization result; establishing a loss constraint to limit the optimization result, and outputting the recognition result.

[0007] Furthermore, when extracting the intermediate mode, the intermediate mode is output after the encoding process and the decoding process in sequence; a dual-branch structure is adopted in the encoding process, and the dual-branch structure includes a parallel main branch and a sub-branch, and convolution is performed in the main branch by dense connection, and in the sub-branch, the gradient size is calculated by gradient operation; finally, the outputs of the main branch and the sub-branch are fused.

[0008] Furthermore, the decoding process does not include a downsampling operation.

[0009] Furthermore, an intermediate modality image generator is established to extract the intermediate modality; the intermediate modality image generator includes a decoder, a parallel and independent visible light encoder and an infrared encoder; wherein the visible light encoder has the same structure as the infrared encoder, the main branch includes a plurality of convolutional layers with ReLU and ordinary convolutional layers in sequence, the sub-branch includes a gradient operation layer and an ordinary convolutional layer in sequence, and the main branch and the sub-branch are fused and output; the decoder includes a convolutional layer with ReLU, the output result of the visible light encoder is processed and output as a visible light intermediate modality, and the output result of the infrared encoder is processed and output as an infrared intermediate modality.

[0010] Further, specifically, the intermediate modal image generator implements the encoding process according to the following formula: ; In the formula, Represents the main branch, Indicates main; represents a secondary branch, It means secondary; represents the original image, represents the intermediate mode, and , vis means infrared, ir means visible light; Indicates the convolution operation on the original image; Indicates that the gradient operation is performed on the original image; Indicates dense connection; Represents the image information processed by the encoder.

[0011] The intermediate modality image generator implements the decoding process according to the following formula: ; In the formula, represents the visible light intermediate mode generated by the visible light decoder; represents the infrared intermediate modal features generated by the infrared decoder; Indicates ReLU operation; Represents the image information processed by the visible light encoder; Represents the image information processed by the infrared encoder.

[0012] Furthermore, spatial attention and channel attention are fused by establishing an attention combination block, and multiple attention combination blocks are set in sequence; the attention combination block includes a channel attention layer and a spatial attention layer in sequence, and finally outputs an optimization result, which includes multiple target categories.

[0013] Furthermore, the loss constraint includes a feature loss constraint established based on the feature distance, and the specific content of the feature loss constraint is:

[0014] Reducing the characteristic distance between the infrared original image and the visible light intermediate mode, and reducing the characteristic distance between the visible light original image and the infrared intermediate mode;

[0015] Increase the characteristic distance between the visible light original image and the visible light intermediate mode, and increase the characteristic distance between the infrared original image and the infrared intermediate mode;

[0016] Make the feature distance of the same target category smaller than the feature distance of different target categories.

[0017] Furthermore, establishing feature loss constraints includes the following process: calculating the Euclidean distances between the optimized visible light original image, visible light intermediate mode, infrared original image, infrared intermediate mode, and features in various target categories; establishing a total feature loss constraint based on the Euclidean distance, the formula is as follows: ; In the formula, Represents the original visible light image; Represents the original infrared image; It is the intermediate mode of visible light; represents the infrared intermediate mode; represents the characteristic loss constraint on the intermediate modes of visible light; Represents the characteristic loss constraint of the infrared intermediate mode; represents the total feature loss constraint.

[0018] Furthermore, the loss constraints also include identity loss, triple loss, and distribution consistency loss.

[0019] The cross-modal pedestrian re-identification system based on intermediate modality learning described in the present invention includes: a data acquisition and preprocessing module, used to acquire paired visible light original images and infrared original images; an intermediate modality extraction module, used to extract the intermediate modality of the visible light original image and the infrared original image, and obtain the visible light intermediate modality and the infrared intermediate modality; an intermediate modality feature optimization module, used to optimize the visible light original image, the infrared original image, the visible light intermediate modality, and the infrared intermediate modality through spatial attention and channel attention, and output the optimization result; a result output module, used to establish a loss constraint to limit the optimization result, and output the recognition result.

[0020] Beneficial effects: The present invention has the following significant effects: 1. The present invention has a high degree of restoration: The present invention processes images and features from two parallel perspectives, visible light and infrared, improves and optimizes the existing visible-infrared light pedestrian re-identification algorithm, and proposes an intermediate modality learning network mainly composed of an intermediate modality image generator, a dual attention combination block, and a feature loss constraint. Unlike the ordinary mechanism for generating intermediate modalities, the present application does not stack convolutions and channel attention to enhance features and compensate for each other between modalities. The intermediate modality image generator used in the present invention improves the attention to detail information in the image generation process through dense connections and gradient operations, and No downsampling operation is used in the process, and the extracted intermediate mode fully and comprehensively considers the characteristics of the infrared original image and the visible light original image, is closer to the original image, and the feature extraction is more comprehensive and accurate, with a high degree of restoration; 2. High detection accuracy: The present invention proposes an attention combination block to further improve the information of the intermediate mode by modeling the channel correlation and spatial correlation of the features, thereby improving the discrimination and diversity of the modal shared features; in addition, the feature loss constraint is creatively set to constrain the original image and the generated image based on the feature distance, thereby improving the quality of the generated image and reducing the differences between and within the modalities. In general, high-precision effects are achieved on the basis of lightweight. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a flowchart of the pedestrian re-identification method proposed by the present invention;

[0022] Figure 2 It is a structural diagram of the pedestrian re-identification method proposed in the present invention;

[0023] Figure 3 It is a schematic diagram of the structure of the intermediate modal image generator;

[0024] Figure 4 It is a schematic diagram of the structure of the attention combination block;

[0025] Figure 5 It is a schematic diagram of the principle of constructing feature loss constraints;

[0026] Figure 6 This is a flowchart for training a neural network model based on the pedestrian re-identification method. DETAILED DESCRIPTION

[0027] The present invention is further explained below in conjunction with the accompanying drawings and specific implementation methods.

[0028] See also Figure 1 and Figure 2 As shown, the cross-modal pedestrian re-identification method based on intermediate modality learning described in the present invention includes the following steps: obtaining a pair of visible light original images and infrared original images; extracting the intermediate modalities of the visible light original images and the infrared original images to obtain visible light intermediate modalities and infrared intermediate modalities; optimizing the visible light original images, infrared original images, visible light intermediate modalities, and infrared intermediate modalities through spatial attention and channel attention, and outputting optimization results; establishing loss constraints to limit the optimization results, and outputting recognition results.

[0029] See also Figure 3 As shown, when extracting the intermediate mode, the intermediate mode is output after the encoding process and the decoding process in sequence; a dual-branch structure is used in the encoding process, and the dual-branch structure includes a parallel main branch and a secondary branch, and convolution is performed in the main branch by dense connection, and the gradient size is calculated in the secondary branch by gradient operation; finally, the outputs of the main branch and the secondary branch are fused. Wherein, the decoding process does not include a downsampling operation.

[0030] The present invention simultaneously extracts the intermediate modality from the paired visible light original image and infrared image, and establishes an intermediate modality picture generator to extract the intermediate modality; the intermediate modality picture generator includes a decoder, a parallel and mutually independent visible light encoder and an infrared encoder; wherein the visible light encoder has the same structure as the infrared encoder, the main branch includes a plurality of convolutional layers with ReLU and ordinary convolutional layers in sequence, the sub-branch includes a gradient operation layer and an ordinary convolutional layer in sequence, and the main branch and the sub-branch are fused and output; the decoder includes a convolutional layer with ReLU, and the output result of the visible light encoder is processed and output as a visible light intermediate modality, and the output result of the infrared encoder is processed and output as an infrared intermediate modality.

[0031] Specifically, the intermediate modal image generator consists of two encoders with non-shared parameters and a decoder with shared parameters. The encoder encodes the information of different modalities, and the decoder projects the VIS and IR images into a unified space. The encoder adopts a dual-branch structure. The main branch is composed of two 3×3 convolutional layers with ReLU and a 1×1 ordinary convolutional layer in series. The ReLU activation layer is used to enhance the nonlinear ability of the network. Considering the utilization rate of the features extracted by each convolutional layer, dense connections are applied in the main branch. The input of each convolutional layer comes not only from the output of the previous layer, but also from the output of all previous layers. This dense connection method can effectively increase the flow of information and make the network more stable and efficient. The secondary branch uses gradient operation to calculate the gradient size of the feature, and uses a 1×1 convolutional layer to eliminate the channel dimension difference, thereby enhancing the description ability of fine-grained details. Finally, by fusing the outputs of the main branch and the secondary branch, the integration of deep features and fine-grained detail features is achieved. Among them, the intermediate modal image generator implements the encoding process according to the following formula: ; In the formula, Represents the main branch, Indicates main; represents a secondary branch, It means secondary; represents the original image, represents the intermediate mode, and , vis means infrared, ir means visible light; Indicates the convolution operation on the original image; Indicates that the gradient operation is performed on the original image; Indicates dense connection; Represents the image information processed by the encoder;

[0032] The decoder integrates the features of infrared and visible light images through a cascade strategy, and inputs the results into the decoder to achieve feature aggregation and image reconstruction. In this embodiment, the decoder is a 3×3 convolutional layer with a ReLU activation layer. The ReLU activation layer is used to further increase the nonlinear relationship, which can project the VIS and IR images into a unified intermediate modal image space. It is worth noting that the network does not introduce any downsampling to ensure that the size of the generated image is consistent with the original image. The intermediate modal image generator implements the decoding process according to the following formula: ; In the formula, represents the visible light intermediate mode generated by the visible light decoder; represents the infrared intermediate modal features generated by the infrared decoder; Indicates ReLU operation; Represents the image information processed by the visible light encoder; Represents the image information processed by the infrared encoder.

[0033] Afterwards, the generated intermediate modal image and the original image are input into a parallel dual-branch ResNet-50 to process the infrared and visible light images respectively and extract the features of the corresponding images. Among them, the parameters of the first convolution block of each branch are not shared to capture the low-level features specific to the modality, while the parameters of the remaining convolution blocks are shared to learn the modality-shared features. Afterwards, in order to improve the discriminability and diversity of the modality-shared features, attention combination blocks are added in the last four stages. The attention combination block consists of channel attention and spatial attention, wherein the channel attention is used to model channel correlation, and the spatial attention is used to learn the spatial correlation of features. In the present invention, spatial attention and channel attention are fused by establishing an attention combination block, and multiple attention combination blocks are set in sequence; the attention combination block includes a channel attention layer and a spatial attention layer in sequence, and finally outputs an optimization result, which includes multiple target categories.

[0034] See also Figure 4 As shown in the figure, specifically, the attention combination block consists of channel attention and spatial attention, aiming to improve the discriminability and diversity of modality shared features. Among them, channel attention is used to model channel correlation, and spatial attention is used to learn the spatial correlation of features.

[0035] In terms of channel attention, for the original features , first reshape it into ,in Then, and Performing matrix multiplication yields a matrix of size After softmax processing, the channel attention map is compared with the original feature Perform matrix multiplication again to generate a new feature map Finally, With the original features Add together to get the final output , the specific formula is as follows: .

[0036] In terms of spatial attention, we first analyze the output features of channel attention Apply three 1×1 convolutional layers , and , and we get three embeddings: , and ,in Then, The transpose and Perform matrix multiplication to get a size of After softmax processing on the spatial attention map, Perform matrix multiplication again to generate a new feature map Finally, Resize to Again with Add element by element to get the final output , the specific formula is as follows: ; In the formula, Represents the reconstruction function, which aims to transform the size of the feature from Refactored to .

[0037] Finally, a feature loss constraint is applied to the features corresponding to the original and generated images to improve the quality of the generated images and alleviate the differences between the modalities and within the modalities. Figure 5 As shown, the loss constraint includes a feature loss constraint established based on the feature distance. The specific content of the feature loss constraint is set according to three angles, namely:

[0038] Angle 1: Reduce the characteristic distance between the infrared original image and the visible light intermediate mode, and reduce the characteristic distance between the visible light original image and the infrared intermediate mode. This is because the generated intermediate mode image should help reduce the modal difference between the VIS and IR images, so it is necessary to shorten the distance between the intermediate mode image generated by the visible light image and the original infrared image, and also shorten the distance between the intermediate mode image generated by the infrared image and the original visible light image.

[0039] Angle 2: Increase the characteristic distance between the visible light original image and the visible light intermediate mode, and increase the characteristic distance between the infrared original image and the infrared intermediate mode. This is because the generated intermediate mode is used to bridge the visible light and infrared modes, so the generated image should have different modal information from the original image as much as possible, which means that the distance between the generated image and the original image needs to be increased.

[0040] Angle 3: Make the feature distance of the same target category smaller than the feature distance of different target categories. Through the constraints of Angle 1, it shortens the distance between the generated image and the original image, which may cause images of different target categories, that is, identities, to become close. Therefore, it is necessary to keep the intra-class distance smaller than the inter-class distance.

[0041] According to the above description, establishing feature loss constraints includes the following process:

[0042] Calculate the Euclidean distance between optimized visible light original images, visible light intermediate modes, infrared original images, infrared intermediate modes, and features in various target categories;

[0043] The total feature loss constraint is established based on the Euclidean distance. The formula is as follows: ; In the formula, Represents the original visible light image; Represents the original infrared image; It is the intermediate mode of visible light; represents the infrared intermediate mode; represents the characteristic loss constraint on the intermediate modes of visible light; Represents the characteristic loss constraint of the infrared intermediate mode; represents the total feature loss constraint.

[0044] Among them, for the intermediate modal image generated by the visible light VIS original image, the FCL loss is expressed as follows: L ( f vis , f ir , f vis _ a ) = [ D ( f ir j , f vis _ a j ) − D ( f vis j , f vis _ a j ) − D ( f vis j , f vis i )] + ; In the formula, is the Euclidean distance between two features; , represents different target categories, and [ z ] + = max ( z ,0) ; The first term in the above formula corresponds to angle 1, the second term corresponds to angle 2, and the third term corresponds to angle 3.

[0045] Similarly, for the intermediate modality images generated by the infrared IR modality, the FCL loss can be expressed as follows: L ( f ir , f vis , f ir _ a ) = [ D ( f vis j , f ir _ a j ) − D ( f ir j , f ir _ a j ) − D ( f ir j , f ir i )] + .

[0046] The loss constraints established by the present invention also include identity loss, triple loss, and distribution consistency loss. Therefore, the total loss formula is expressed as: ; In the formula, and is a trade-off parameter; The margin parameter in is set to 0.3; make and The modal distribution of is as consistent as possible; indicates identity loss; represents triple loss; represents the distribution consistency loss; represents the feature loss constraint.

[0047] The cross-modal pedestrian re-identification system based on intermediate modality learning described in the present invention includes: a data acquisition and preprocessing module, used to acquire paired visible light original images and infrared original images; an intermediate modality extraction module, used to extract the intermediate modality of the visible light original image and the infrared original image, and obtain the visible light intermediate modality and the infrared intermediate modality; an intermediate modality feature optimization module, used to optimize the visible light original image, the infrared original image, the visible light intermediate modality, and the infrared intermediate modality through spatial attention and channel attention, and output the optimization result; a result output module, used to establish a loss constraint to limit the optimization result, and output the recognition result.

[0048] See also Figure 6 The method process proposed in the present invention is described based on the data set and the neural network model.

[0049] First, obtain the data set. The data set can be directly produced by preprocessing the original image, or it can be produced by preprocessing the existing public data set. The process of making the data set by yourself is as follows: Use the camera to shoot several images of the application scene as the original images to form the data set. Multiple networked cameras form a monitoring network, and all the pedestrian videos captured are stored in the cloud server. Since the existing video monitoring system usually works in dual mode, visible light cameras are used during the day and automatically switch to infrared cameras at night. Therefore, pairs of visible light original images and infrared original images can be directly obtained. The video data is preprocessed in the cloud server, and the SSD algorithm is used to detect pedestrians. Then, the target tracking algorithm is used to obtain a series of pedestrian detection frames. Through data enhancement, they are cropped and unified into a pedestrian video sequence of 512*512 pixels, and flipped horizontally and vertically. Finally, all images are converted into tensor data format, standardized using channel mean and standard deviation, and then the tensor is normalized to between (0,1). These pedestrian data constitute a gallery. Among them, the visible light image and infrared image are represented as and , where C, H, and W represent the number of channels, height, and width of the image, respectively. is the identity label corresponding to the image, that is, the target category, where is the number of identity labels.

[0050] Second, the entire dataset is represented as , which can be further divided into a training set and a test set. Based on the method of the present invention, a cross-modal pedestrian re-identification model is established to sequentially pair original images, extract intermediate modalities, extract features of intermediate modalities and original images, optimize features, perform loss constraints, and output results. At the same time, the training parameters are set and training starts. Forward propagation is performed in the neural network of the cross-modal pedestrian re-identification model to obtain features and predicted labels; then the loss function is calculated and back propagation is performed; finally, the accuracy is calculated in the test set; if the accuracy is high, the model is saved; and one training is completed. After the number of training times is reached, the training ends. Among them, in the training stage, the training data set is used to train and optimize the cross-modal pedestrian re-identification model, and the goal is to make the different modal images of the same pedestrian closer in the feature space, while the images of different pedestrians are farther apart. In the test stage, the trained model is used to extract and measure features of the test data set; then the samples are matched according to the distance or similarity to determine their identity labels; finally, the performance of the model is evaluated by the matching rate.

[0051] In addition, the present invention verifies the accuracy of the method and model proposed in the present invention through public data sets. Two public data sets are used, namely SYSU-MM01 and RegDB. Among them, SYSU-MM01 mainly includes pedestrian images in visible light mode and infrared mode. The data set is collected from 6 cameras, of which 4 are visible light cameras and 2 are infrared cameras. The pictures involve indoor and outdoor environments, and cover multiple perspectives and posture changes, simulating the diversity in real scenes. The data set contains 287,628 RGB images and 15,792 infrared images of 491 pedestrians. The training set contains 34,167 images of 395 people, and the test set includes full search mode and indoor search mode. RegDB contains a total of 4120 visible light images and 4120 thermal images of 412 identities. These images are collected by a visible light camera and an infrared camera. There are 206 pedestrians in the training set and the test set. The clarity of the data set is poor, the posture of the RGB image and thermal image of each identity is corresponding, and the posture of the same identity changes very little. These factors reduce the difficulty of the cross-modal person re-identification task on this dataset.

[0052] Before verification, pre-training is performed first. ResNet-50 is selected as the backbone network and pre-trained on the ImageNet dataset. After the input image is resized to 384×192, data enhancement is performed using methods such as random erasing and random horizontal flipping. In addition, in order to make the training gradient smooth, a warm-up strategy is used. The initial learning rate is set to , increases linearly to within 10 cycles Then, in the 20th epoch, the learning rate is decayed to , which is further attenuated to . Four identities are randomly selected and four VIS images and four IR images are randomly assigned to each identity for training. The SGD optimizer is used for optimization with the momentum parameter set to 0.9. For the margin parameter in the triplet loss, it is set to 0.3.

[0053] During verification, the algorithm of the present invention and other pedestrian re-identification algorithms are applied to the first two public data sets SYSU-MM01 and RegDB according to the pre-trained model for training and recognition, and the recognition results are evaluated. The final evaluation results are shown in Tables 1 and 2.

[0054] Table 1 Accuracy comparison of this algorithm with other person re-identification algorithms on the SYSU-MM01 dataset

[0055] Table 2 Accuracy comparison of this algorithm with other person re-identification algorithms on the RegDB dataset

[0056] In Table 1 and Table 2, the "Method" column indicates the algorithm used. The comparison methods are divided into two categories, namely, image generation-based methods (D2RL, AlignGAN, Hi-CMD, XIV, CMM, GECNet, MID, TSME, FMCNet, MMN) and feature learning-based methods (BDTR, DDAG, AGW, TFCNet, MCLNet, CMTR, SMCL, PMT, DART, DCLNe, MRCN, MAUM). Our work indicates the method proposed by this invention. R-1, R-10, R-20 and mAP are commonly used indicators for evaluating the performance of retrieval systems: R-1 (Rank-1 Accuracy): Rank-1 accuracy refers to the proportion of correct matching results of the query image ranked first in the retrieval library. R-10 (Rank-10 Accuracy): Rank-10 accuracy refers to the proportion of correct matching results of the query image ranked in the top 10 in the retrieval library. R-20 (Rank-20 Accuracy): Rank-20 accuracy refers to the proportion of correct matches of the query image that are ranked in the top 20 in the retrieval library. mAP (Mean Average Precision): Mean average precision refers to the mean of the average precision of all queries. Average precision (AP) is calculated for each query, taking into account the ranking position of all correct matches.

[0057] In Table 1, All-search means that the model needs to search in the entire dataset, which means that the query image can come from any scene (including indoor and outdoor), and the images in the retrieval library can also come from any scene. Indoor-search means that the model only searches in indoor scenes, which means that the query image and the images in the retrieval library are limited to indoor scenes. The comparison results on the SYSU-MM01 dataset show that the Rank-1 / mAP of the intermediate modal learning network in All-search and Indoor-search modes reached 74.65% / 70.07% and 79.42% / 82.27%, respectively. Compared with MMN, the Rank-1 / mAP of the network in the two modes is 4.05% / 3.17% and 3.22% / 2.67% higher, respectively. This shows that the images generated by the intermediate modal learning network are of higher quality and can better bridge visible light and infrared images. Compared with MAUM, the Rank-1 / mAP of the network in the two modes is 2.97% / 1.28% and 2.45% / 0.33% higher, respectively. This proves that the modality-shared features extracted by the intermediate modality learning network are more discriminative and diverse.

[0058] In Table 2, the visible-to-infrared mode means that in this mode, the query image is a visible light image, and the image in the retrieval library is an infrared image. This mode tests the model's ability to convert visible light images to infrared image domains and match them. The infrared-to-visible mode means that in this mode, the query image is an infrared image, and the image in the retrieval library is a visible light image. This mode tests the model's ability to convert infrared images to visible light image domains and match them. Comparative experiments on the RegDB dataset show that the intermediate modality learning network achieves 92.13% / 87.80% and 93.65% / 89.37% Rank-1 / mAP in the two modes, respectively. Compared with MMN, the network's Rank-1 / mAP in the two modes is 0.53% / 3.7% and 6.15% / 8.87% higher, respectively. Compared with MRCN, the network's Rank-1 / mAP in the two modes is 0.73% / 3.2% and 5.35% / 7.47% higher, respectively.

[0059] In addition, the method and system proposed in the present invention can be applied to various scenarios. A specific embodiment of the present invention is described in detail above. It should be understood that the above specific implementation is only used to illustrate the present invention and is not used to limit the scope of the present invention. After reading the present invention, the various equivalent forms of modifications to the present invention by those skilled in the art fall within the scope defined by the claims attached to this application. Since the technical personnel in this technical field can modify and change the concept of the present invention without creative labor, any technical solution obtained through limited logical analysis and reasoning and simple experiments based on the concept of the present invention should be covered within the scope of protection of the present invention.

Claims

1. A cross-modal person re-identification method based on intermediate modality learning, characterized in that: The steps include: Acquire a pair of visible light original images and infrared original images; Extracting the intermediate modes of the visible light original image and the infrared original image to obtain the visible light intermediate mode and the infrared intermediate mode; Optimizing the visible light original image, the infrared original image, the visible light intermediate mode, and the infrared intermediate mode through spatial attention and channel attention, and outputting an optimization result; A loss constraint is established to limit the optimization result, and a recognition result is output; wherein the loss constraint includes a feature loss constraint established based on feature distance.

2. The cross-modal person re-identification method based on intermediate modality learning according to claim 1, characterized in that: When extracting the intermediate mode, the intermediate mode is output after the encoding process and the decoding process in sequence; a dual-branch structure is adopted in the encoding process, and the dual-branch structure includes a parallel main branch and a sub-branch, and convolution is performed in the main branch by dense connection, and in the sub-branch, the gradient size is calculated by gradient operation; finally, the outputs of the main branch and the sub-branch are fused.

3. The cross-modal person re-identification method based on intermediate modality learning according to claim 2, characterized in that: The decoding process does not include a downsampling operation.

4. The cross-modal person re-identification method based on intermediate modality learning according to claim 2, characterized in that: Establishing an intermediate modality image generator to extract the intermediate modality; the intermediate modality image generator includes a decoder, a parallel and mutually independent visible light encoder and an infrared encoder; Among them, the visible light encoder has the same structure as the infrared encoder, both of which include a main branch and a sub-branch; the main branch includes multiple convolutional layers with ReLU and ordinary convolutional layers in sequence, and the sub-branch includes a gradient operation layer and an ordinary convolutional layer in sequence, and the main branch and the sub-branch are fused and output; the decoder includes a convolutional layer with ReLU, and the output result of the visible light encoder is processed and output as a visible light intermediate mode, and the output result of the infrared encoder is processed and output as an infrared intermediate mode.

5. The cross-modal person re-identification method based on intermediate modality learning according to claim 4 is characterized in that: Specifically, the intermediate modal image generator implements the encoding process according to the following formula: ; In the formula, Represents the main branch, Indicates main; represents a secondary branch, It means secondary; represents the original image, represents the intermediate mode, and , vis means infrared, ir means visible light; Indicates the convolution operation on the original image; Indicates that the gradient operation is performed on the original image; Indicates dense connection; Represents the image information processed by the encoder; The intermediate modality image generator implements the decoding process according to the following formula: ; In the formula, represents the visible light intermediate mode generated by the visible light decoder; represents the infrared intermediate modal features generated by the infrared decoder; Indicates ReLU operation; Represents the image information processed by the visible light encoder; Represents the image information processed by the infrared encoder.

6. The cross-modal person re-identification method based on intermediate modality learning according to claim 1, characterized in that: The spatial attention and channel attention are integrated by establishing an attention combination block, and multiple attention combination blocks are set in sequence; the attention combination block includes a channel attention layer and a spatial attention layer in sequence, and finally outputs an optimization result, which includes multiple target categories.

7. The cross-modal person re-identification method based on intermediate modality learning according to claim 1, characterized in that: The specific content of the feature loss constraint is: Reducing the characteristic distance between the infrared original image and the visible light intermediate mode, and reducing the characteristic distance between the visible light original image and the infrared intermediate mode; Increase the characteristic distance between the visible light original image and the visible light intermediate mode, and increase the characteristic distance between the infrared original image and the infrared intermediate mode; Make the feature distance of the same target category smaller than the feature distance of different target categories.

8. The cross-modal person re-identification method based on intermediate modality learning according to claim 7, characterized in that: Establishing feature loss constraints includes the following process: Calculate the Euclidean distance between optimized visible light original images, visible light intermediate modes, infrared original images, infrared intermediate modes, and features in various target categories; The total feature loss constraint is established based on the Euclidean distance. The formula is as follows: ; In the formula, Represents the original visible light image; represents the original infrared image; It is the intermediate mode of visible light; represents the infrared intermediate mode; represents the characteristic loss constraint on the intermediate modes of visible light; Represents the characteristic loss constraint of the infrared intermediate mode; represents the total feature loss constraint.

9. The cross-modal person re-identification method based on intermediate modality learning according to claim 7, characterized in that: The loss constraints also include identity loss, triplet loss, and distribution consistency loss.

10. A cross-modal person re-identification system based on intermediate modality learning, characterized in that: include A data acquisition and preprocessing module is used to obtain pairs of visible light original images and infrared original images; An intermediate mode extraction module is used to extract the intermediate modes of the visible light original image and the infrared original image to obtain the visible light intermediate mode and the infrared intermediate mode; An intermediate modality feature optimization module, for optimizing the visible light original image, the infrared original image, the visible light intermediate modality, and the infrared intermediate modality through spatial attention and channel attention, and outputting an optimization result; The result output module is used to establish loss constraints to limit the optimization results and output the recognition results.

Citation Information

Patent Citations

  • Cross-modal pedestrian re-identification method based on unified intermediate modal

    CN113903053A

  • Cross-modal pedestrian re-identification method and device based on intermediate modal and representation learning

    CN116311384A

  • Multi-modal image fusion method based on high-order degradation model

    CN117197627A

  • Cross-modal pedestrian re-identification method based on foreground segmentation

    CN117351514A

  • Cross-modal pedestrian re-identification method and system for multi-view video monitoring under mine

    CN117746461A

Cited By

  • Visible light and infrared cross-modal pedestrian re-identification method based on intermediate domain

    CN119540987A