Incomplete multimodal person re-identification method and system
By constructing an incomplete multi-modal person re-identification method and system based on mutual learning, and using multi-head cross-attention mechanisms and modal prototypes for feature extraction and compensation, the performance decline of existing technologies under complex lighting conditions and severe weather is solved. and modal missing problems, achieving all-weather pedestrian re-identification capabilities and high-performance recognition effects.
Patent Information
- Application Number
- CN202411031140.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-30
AI Technical Summary
The performance of existing pedestrian re-identification technology declines under complex lighting conditions and severe weather, and it cannot cope with the lack of modalities, making it impossible to achieve all-weather monitoring and tracking.
Construct an incomplete multi-modal pedestrian re-identification method and system based on mutual learning, and construct an incomplete multi-modal pedestrian re-identification method and system based on mutual learning by constructing a pedestrian image data set of paired visible light, near-infrared, and thermal infrared modalities in typical scenes. The re-identification model uses a multi-head cross-attention mechanism and modal prototypes for feature extraction, compensation and fusion to achieve complementary optimization between modalities.
It performs well under complex lighting conditions and bad weather. It can receive any combination of visible light-near infrared-thermal infrared input, solves the problem of missing modalities, provides all-weather pedestrian re-identification capabilities, and improves modal complete and modal missing scenarios. recognition performance.
Smart Images

Figure CN118570878B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image recognition technology, and in particular to an incomplete multimodal pedestrian re-identification method and system. Background Art
[0002] In intelligent surveillance video analysis technology, pedestrian re-identification plays a vital role. It aims to match and identify pedestrian images across the field of view between different surveillance cameras. This means that when a pedestrian disappears from the field of view of one camera and appears in the picture of another camera, the system can still track and identify the pedestrian. This cross-camera pedestrian re-identification technology makes up for the visual limitations of traditional fixed cameras, allowing the surveillance system to more comprehensively monitor and track pedestrian activities in the city, and has a wide range of applications in public safety, intelligent security and other fields.
[0003] However, existing pedestrian re-identification technologies often only focus on visible light images. Their performance often drops significantly under complex lighting conditions and extreme weather conditions, and they cannot meet the needs of actual applications. For example, in a dark environment or when there is thick fog, the quality of visible light imaging is severely impaired, resulting in a sharp drop in recognition accuracy.
[0004] In recent years, some studies have overcome the limitations of a single visible light modality in specific environments by integrating multiple image sources such as visible light (RGB), near infrared (NIR) and thermal infrared (TIR). This type of method makes full use of the complementary characteristics between the modalities and can improve the recognition performance under complex lighting conditions and bad weather. However, in real applications, due to factors such as deployment conditions and equipment damage, there is often a problem of modality loss, which leads to the failure of multimodal pedestrian re-identification methods. In addition, existing methods ignore the complementarity between the complete and missing modalities, and only optimize the complete modal situation, which cannot achieve the optimal effect.
[0005] For example, prior art 1: the invention patent with application number CN116052218B and invention name “A pedestrian re-identification method” discloses:
[0006] (1) Input the pedestrian images in the query library into the pedestrian re-identification neural network model with configured parameters to extract the pedestrian's feature map and feature embedding;
[0007] (2) Determine whether it is the training stage. If so, use the classification task and the measurement task for joint training;
[0008] (3) Measure the similarity between the extracted pedestrian features and the features corresponding to each image in the gallery library;
[0009] (4) Filter out the n smallest elements in each row of the distance matrix as the same type of samples in that row and output them.
[0010] The technical solution of prior art 1 is as follows Figure 1 As shown, the invention adopts the above-mentioned pedestrian re-identification method, and uses CoAtNet-Pro, an improved and enhanced version of CoAtNet based on CNN and Transformer networks, as the backbone network, which improves the model capacity and model learning ability, and without pre-training, it is supplemented by improved triplet loss and tensor space metric functions, etc., showing excellent results and great potential. However, the invention can only receive pedestrian images in a single visible light mode, cannot cope with complex lighting conditions and bad weather, and cannot achieve all-weather application monitoring.
[0011] Prior art 2: The invention patent with application number CN112906605A and invention name “A high-accuracy cross-modal pedestrian re-identification method” discloses:
[0012] (1) Obtain pedestrian video information in a real surveillance environment from the dataset and process it to obtain pedestrian image samples and pedestrian identity information;
[0013] (2) Building a multi-scale dual-stream cross-modal deep network, initializing network parameters, using pedestrian image samples and pedestrian identity information as supervision information, and conducting supervised training on the dual-stream cross-modal deep network;
[0014] (3) The pedestrian target query of interest is used as the input of the two-stream cross-modal deep network, and the two-stream cross-modal deep network will provide a list of pedestrian targets with a high degree of similarity to the query target.
[0015] The technical solution of prior art 2 can not only process heterogeneous sample information of two modalities at the same time and extract the common features of the modalities in the samples, but also form features with more representation capabilities through the fusion of features at the global scale and the local scale. However, due to the existence of modal heterogeneity, semantic alignment between images of different modalities is still difficult. In addition, under complex lighting conditions, such as the nighttime city lighting environment, visible light cameras can still capture a large amount of effective information, but high illumination will seriously affect the imaging quality of near-infrared cameras. Therefore, the invention does not make full use of the complementary information of different modalities, and its application scenarios are still limited.
[0016] Prior art 3: The invention patent with application number CN114694089A and invention name “A novel multi-modal fusion pedestrian re-identification algorithm” discloses:
[0017] (1) Extracting unimodal image features using a method based on the SCA attention mechanism;
[0018] (2) For each modality, horizontal cutting is used to obtain local features, and then cross entropy is used as the loss of a single modality to optimize the network;
[0019] (3) Setting a virtual branch to jointly learn the embedding layer features of the three modal images, achieving information fusion between the modalities, making the features of the three different modalities learn towards a common virtual mean vector, and exiting the virtual branch when the single-modal cross entropy classification loss is small enough; then calculating the difference between the embedding layer features of each modality and the virtual mean, using the cosine distance as the loss function to optimize the network;
[0020] (4) The fused features are obtained by concatenating feature vectors and optimized using cross-modal difficult sample triplet loss and KL divergence loss.
[0021] The technical solution of prior art 3 is as follows Figure 2 As shown, the invention discloses a novel multimodal fusion pedestrian re-identification algorithm, including obtaining pedestrian images containing three modes of RGB, NI and TI; inputting the pedestrian images of the three modes into a pre-trained multimodal fusion pedestrian re-identification network to obtain a predicted classification result; the pedestrian re-identification algorithm based on multimodal fusion integrates the image feature information of the three modes, wherein the network of each mode introduces an attention module to better extract the image feature information, and then enables different modes to learn in a common direction, effectively suppress noise, reduce the difference between modes, and achieve the complementarity of information between modes. Through the cross-modal difficult sample triple loss, the samples of different pedestrians can be pulled apart across modes, and the samples of the same pedestrian can be pulled closer across modes, effectively realizing cross-modal feature clustering. However, the invention requires the simultaneous acquisition of three images of visible light, near infrared, and thermal infrared. When there is a modality missing, the method cannot work properly. Since it is often difficult to simultaneously obtain pedestrian images of three modes in practical applications, the application scenarios of the method are greatly limited. Summary of the invention
[0022] The technical problem to be solved by the embodiments of the present invention is to provide an incomplete multimodal pedestrian re-identification method and system, so that it can perform well under complex lighting conditions and bad weather, support any combination of visible light, near infrared and thermal infrared input, and can operate normally when equipment damage occurs, thereby providing all-weather and all-round protection for urban safety management.
[0023] In order to solve the above technical problems, an embodiment of the present invention proposes an incomplete multimodal person re-identification method, including:
[0024] Dataset construction steps: Construct a pedestrian image dataset of three modal pairs: visible light modality, near infrared modality, and thermal infrared modality in typical scenes;
[0025] Model construction steps: Construct an incomplete multimodal person re-identification model based on mutual learning;
[0026] Training step: constructing a loss function of an incomplete multimodal person re-identification model based on mutual learning, and training the model using the data of the data set to obtain a trained model;
[0027] Identification steps: Input pedestrian images of any combination of visible light mode, near infrared mode, and thermal infrared mode into the trained model, extract the appearance features of the target pedestrian, calculate the similarity with the pedestrian features in the gallery, sort the output results by similarity, and complete pedestrian re-identification.
[0028] Accordingly, an embodiment of the present invention further provides an incomplete multimodal person re-identification system, comprising:
[0029] Dataset construction unit: construct a pedestrian image dataset of three modal pairs: visible light modality, near infrared modality, and thermal infrared modality in typical scenes;
[0030] Model building unit: build an incomplete multimodal person re-identification model based on mutual learning;
[0031] Training unit: constructing a loss function of an incomplete multimodal person re-identification model based on mutual learning, and training the model using the data of the data set to obtain a trained model;
[0032] Recognition unit: Input pedestrian images of any combination of visible light mode, near infrared mode, and thermal infrared mode into the trained model, extract the appearance features of the target pedestrian, calculate the similarity with the pedestrian features in the gallery, output the results in order of similarity, and complete pedestrian re-identification.
[0033] The beneficial effects of the present invention are as follows: the present invention simultaneously utilizes the complementary information in visible light, near infrared, and thermal infrared, overcomes the limitations of a single-modality pedestrian re-identification algorithm in a specific environment, and performs well under complex lighting conditions and inclement weather. The present invention solves the problem of modal missingness that may exist during actual deployment of reasoning. The model can receive any combination of inputs of the above three modalities, and can operate normally when equipment damage and the like occurs. The feature compensation and reorganization module of the present invention can achieve refined compensation for missing modal features and retain complementary information of different modalities. The mutual learning module of the present invention utilizes the complementarity in both modal missing and modal completeness scenarios to optimize the model, thereby improving the performance in both modal completeness and modal missing scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a flow chart of prior art 1.
[0035] Figure 2 It is a flow chart of prior art 3.
[0036] Figure 3 4 is a flow chart of an incomplete multimodal person re-identification method according to an embodiment of the present invention.
[0037] Figure 4 It is a structural block diagram of an incomplete multimodal pedestrian re-identification model based on mutual learning according to an embodiment of the present invention.
[0038] Figure 5 It is a specific training optimization flow chart of the incomplete multimodal pedestrian re-identification model based on mutual learning in an embodiment of the present invention.
[0039] Figure 6 This is a reasoning flowchart of an incomplete multimodal pedestrian re-identification model based on mutual learning according to an embodiment of the present invention, taking the missing visible light modality as an example. DETAILED DESCRIPTION
[0040] It should be noted that, in the absence of conflict, the embodiments in the present application and the features in the embodiments may be combined with each other. The present invention is further described in detail below in conjunction with the drawings and specific embodiments.
[0041] In the embodiments of the present invention, if there are directional indications (such as up, down, left, right, front, back, etc.), they are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0042] In addition, in the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features.
[0043] Please refer to Figure 3 The incomplete multimodal person re-identification method of the embodiment of the present invention includes a data set construction step, a model construction step, a training step and a recognition step.
[0044] Dataset construction steps: Construct a pedestrian image dataset of three modal pairs: visible light, near infrared, and thermal infrared in typical scenarios. In addition to using public data, in order to ensure the effect of actual deployment, it is also necessary to prepare a pedestrian image dataset of visible light-near infrared-thermal infrared pairs in typical scenarios to help model training and result testing.
[0045] As an implementation method, the step of constructing a data set includes:
[0046] Data collection sub-step: Select preset outdoor and indoor environments, and use the camera to capture visible light, near infrared, and thermal infrared images aligned in time and space in different scenes. The different scenes include different lighting conditions (daytime, dusk, night), weather conditions, and ground cover types.
[0047] Target labeling sub-step: Accurately mark the bounding box of pedestrians on the aligned image (automatic labeling can be performed using an existing pedestrian detection algorithm or manual labeling can be performed using a professional labeling tool), and ensure the consistency and accuracy of the labeling to obtain a labeled image.
[0048] Data screening and cleaning sub-step: remove the marked images that do not contain pedestrians, the images whose pedestrian target size is smaller than the preset value (such as less than 50 pixels) or are severely occluded to ensure the validity of the dataset and obtain the pedestrian image dataset; in addition, adjust the sample ratios of different lighting conditions, time periods, number of pedestrians and degree of occlusion according to actual needs to improve the generalization ability of the model.
[0049] Data segmentation sub-step: The entire pedestrian image dataset is divided into training set, validation set and test set to facilitate model training, hyperparameter tuning and performance evaluation.
[0050] Model construction steps: Construct an incomplete multimodal pedestrian re-identification model based on mutual learning. The model receives paired data of visible light, near infrared and thermal infrared during training, and can receive any paired data of the three modalities during reasoning (that is, it can support the situation of modality missing during reasoning). The model simulates various scenarios of modality missing during training, and uses a method based on the attention mechanism to perform refined feature compensation for the features of the missing modality, and optimizes the model by utilizing the feature complementarity in the scenarios of modality completeness and modality missing, thereby improving the recognition effect.
[0051] As an implementation method, Figure 4 As shown, the incomplete multimodal pedestrian re-identification model based on mutual learning includes a multimodal feature extraction module, a feature compensation and recombination module, a fusion module and a mutual learning module.
[0052] Multimodal feature extraction module: includes three groups of feature extractors for extracting features from three-modal images: visible light, near infrared, and thermal infrared. The present invention replicates the infrared image in the channel dimension to obtain a three-channel image. The size of all pedestrian images is fixed at 256×128. The present invention uses the ViT (Vision Transformer) model to extract features from the three-modal images.
[0053] Feature compensation and reorganization module: A set of modal prototypes is introduced for each modality, and the modal prototypes are used to generate the features of the missing modalities for feature compensation. The present invention adopts a customization-based method to compensate for the missing modal features to retain the unique features of different modalities. Specifically, the present invention introduces a set of modal prototypes for each modality to characterize the global information of the modality and guide the mutual conversion between different modalities. The modal prototype can be expressed as , and , modal prototype ,in, , , represent the visible light mode, near infrared mode and thermal infrared mode respectively, represents the prototype of the visible light mode, represents the prototype of the near infrared modality, Represents the prototype of the thermal infrared modality, Indicates the modal prototype corresponding to each token in the RGB modality, Indicates the number of tokens. is the dimension of each token. Using the modality prototype, the present invention can generate features of the missing modality for feature compensation. The modality prototype of the missing modality is used as the , there is a modality feature of the modality as the attention mechanism and , the compensation features of the missing modes can be obtained. The present invention realizes the refined compensation of the missing mode features through feature compensation and reorganization modules, and the mutual learning technology improves the performance in both the mode completeness and mode missing scenarios.
[0054] Fusion module: Multi-modal feature fusion is achieved through a multi-head cross-attention mechanism to promote the alignment of feature spaces of different modalities. The present invention achieves multi-modal feature fusion through a multi-head cross-attention mechanism. Specifically, the present invention uses a cyclic permutation method, using different modal features as queries in each round to fuse features of other modalities (compensatory features are used for missing modalities). In this way, the global features of each modality can interact with the local features of other modalities, perceive the local details of other modalities, and thus promote the alignment of feature spaces of different modalities.
[0055] Mutual learning module: The complementarity of the two scenarios, modality missing and modality complete, is used to optimize the fused features. In the modality missing and modality complete scenarios, the fused features have semantic consistency (both represent the pedestrian category), but their feature distributions are different and complementary. The present invention designs a mutual learning module that uses the complementarity of the two scenarios, modality missing and modality complete, for optimization. In order to improve the complementarity of the two scenarios, modality complete and modality missing, and to prevent the two fused modules from becoming similar quickly during the optimization process, the present invention introduces an average model of the fusion module, whose parameters are is the cumulative average of the network parameters of the corresponding fusion module. Specifically, the parameters of the average model are not updated by the back propagation of the loss function, but after each back propagation of the loss function, the corresponding network parameters are weighted averaged using the following formula:
[0056] ;
[0057] in, and Represent the parameters of the complete fusion module and the missing fusion module respectively, and Represent the parameters of the average complete fusion module and the average missing fusion module, respectively. represents the iteration round, Belongs to Hyperparameters. At initialization, , .
[0058] The two average models, the average complete fusion module and the average missing fusion module, have a cumulative effect in time, and their decoupling is more significant, making their outputs more independent and complementary. In addition, the average model does not involve backpropagation, so there is no need to calculate and store gradients, which will not significantly increase video memory and computational complexity. During testing, only one of the fusion modules needs to be used for inference based on the current modal status, which does not increase the computational complexity of testing compared to the baseline model.
[0059] Training step: constructing a loss function of an incomplete multimodal person re-identification model based on mutual learning, and training the model using the data of the data set to obtain a trained model.
[0060] The loss function of the present invention includes the following four parts: the loss in the modal complete scenario, the regularization loss in the modal missing scenario, the loss of missing modal feature compensation and the mutual learning loss.
[0061] (1) Loss in the modal completeness scenario:
[0062]
[0063] Among them, tri and ce represent triplet loss and cross entropy loss respectively.
[0064] (2) Regularization loss in the modality missing scenario:
[0065] ;
[0066] in, Indicates the number of missing scenes. (Including 3 scenes with one modality missing and 3 scenes with two modalities missing).
[0067] Loss of missing modal feature compensation:
[0068]
[0069] in, represents the compensation characteristic, Indicates the real characteristics. .
[0070] Mutual Learning Loss:
[0071]
[0072] in, and Represent different characteristics.
[0073] The model of the present invention needs to use complete modality data when training, including pedestrian information in three modalities: visible light RGB, near infrared NIR, and thermal infrared TIR. The specific training optimization process is shown in the attached figure. Figure 5 shown.
[0074] When the model of the present invention is inferring, there may be multiple missing modes. It is necessary to select the corresponding feature extractor according to the existing modes and compensate for the missing modes accordingly. Taking the missing visible light mode as an example, the inference process is as shown in the attached figure. Figure 6 shown.
[0075] Identification steps: Input pedestrian images of any combination of visible light mode, near infrared mode, and thermal infrared mode into the trained model, extract the appearance features of the target pedestrian, calculate the similarity with the pedestrian features in the gallery, sort the output results by similarity, and complete pedestrian re-identification.
[0076] The present invention simultaneously utilizes the complementary information in visible light, near infrared, and thermal infrared, and performs well under complex lighting conditions and bad weather. In addition, through the missing modal feature compensation and mutual learning technology, the refined compensation of missing modal features is achieved, improving the performance in both modal completeness and modal missing scenarios.
[0077] Current multimodal pedestrian re-identification methods require complete multimodal data during inference, but due to deployment restrictions and equipment damage, there is often a problem of missing modalities, and this multimodal pedestrian re-identification method fails in this scenario. In addition, existing methods ignore the complementarity between the two cases of complete modalities and missing modalities, and only optimize the case of complete modalities, which cannot achieve the optimal effect. The present invention overcomes the above two difficulties through missing modal feature compensation technology and mutual learning technology, so that the model can achieve better results under any combination of input conditions.
[0078] The incomplete multimodal person re-identification system of the embodiment of the present invention includes:
[0079] Dataset construction unit: construct a pedestrian image dataset of three modal pairs: visible light modality, near infrared modality, and thermal infrared modality in typical scenes;
[0080] Model building unit: build an incomplete multimodal person re-identification model based on mutual learning;
[0081] Training unit: constructing a loss function of an incomplete multimodal person re-identification model based on mutual learning, and training the model using data from the dataset;
[0082] Recognition unit: Input pedestrian images of any combination of visible light mode, near infrared mode, and thermal infrared mode into the trained model, extract the appearance features of the target pedestrian, calculate the similarity with the pedestrian features in the gallery, output the results in order of similarity, and complete pedestrian re-identification.
[0083] As an implementation method, the incomplete multimodal person re-identification model based on mutual learning includes:
[0084] Multimodal feature extraction module: including three groups of feature extractors for extracting features from visible light, near infrared and thermal infrared images respectively;
[0085] Feature compensation and reorganization module: introduce a set of modal prototypes for each mode, and use the modal prototypes to generate the features of the missing modes for feature compensation;
[0086] Fusion module: It realizes multi-modal feature fusion through multi-head cross attention mechanism and promotes the alignment of feature spaces of different modalities;
[0087] Mutual learning module: optimizes the fused features by leveraging the complementarity of the two scenarios: modality missing and modality complete.
[0088] As an implementation mode, the fusion module includes a complete fusion module and a missing fusion module, and the mutual learning module uses the following formula to perform weighted averaging on the network parameters corresponding to the fusion module:
[0089]
[0090] in, and Represent the parameters of the complete fusion module and the missing fusion module respectively, and They represent the parameters of the average complete fusion module and the average missing fusion module, t represents the iteration round, and α is Hyperparameters; at initialization, , .
[0091] As an implementation mode, the data set construction unit includes:
[0092] Data collection subunit: selects preset outdoor and indoor environments, and uses cameras to capture visible light, near infrared, and thermal infrared images aligned in time and space in different scenes, wherein the different scenes include different lighting conditions, weather conditions, and ground cover types;
[0093] Object annotation subunit: accurately mark the bounding box of pedestrians on the aligned image to obtain the labeled image;
[0094] Data screening and cleaning subunit: remove the marked images that do not contain pedestrians, images whose pedestrian target size is smaller than a preset value or images that are severely occluded, and obtain the pedestrian image dataset;
[0095] Data segmentation subunit: The entire pedestrian image dataset is divided into training set, validation set and test set to facilitate model training, hyperparameter tuning and performance evaluation.
[0096] As an implementation mode, the loss function includes the loss in the modality-complete scenario, the regularization loss in the modality-missing scenario, the loss for compensating for the missing modality features, and the mutual learning loss.
[0097] The present invention uses the attention mechanism to make fine compensation for missing modal features, and uses the learning ability of neural networks on the intrinsic distribution of data, and uses its output as a supervisory signal to achieve the distance of semantically consistent features. The present invention overcomes the limitations of single-modality pedestrian re-identification algorithms in specific environments, and performs well under complex lighting conditions and bad weather; in addition, the model can receive any combination of visible light-near infrared-thermal infrared input, and can operate normally when equipment damage occurs, etc., and can provide all-weather, all-round protection for urban safety management.
[0098] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. An incomplete multimodal person re-identification method, characterized in that: include: Dataset construction steps: Construct a pedestrian image dataset of three modal pairs: visible light modality, near infrared modality, and thermal infrared modality in typical scenes; Model construction steps: Construct an incomplete multimodal person re-identification model based on mutual learning; Training step: constructing a loss function of an incomplete multimodal person re-identification model based on mutual learning, and training the model using the data of the data set to obtain a trained model; Identification step: Input pedestrian images of any combination of visible light mode, near infrared mode, and thermal infrared mode into the trained model, extract the appearance features of the target pedestrian, calculate the similarity with the pedestrian features in the library, sort the results by similarity, and complete pedestrian re-identification; The incomplete multimodal person re-identification model based on mutual learning includes: Multimodal feature extraction module: including three groups of feature extractors for extracting features from visible light, near infrared and thermal infrared images respectively; Feature compensation and reorganization module: introduce a set of modal prototypes for each mode, and use the modal prototypes to generate the features of the missing modes for feature compensation; Fusion module: It realizes multi-modal feature fusion through multi-head cross attention mechanism and promotes the alignment of feature spaces of different modalities; Mutual learning module: optimizes the fused features by leveraging the complementarity between the modality missing and modality complete scenarios; The fusion module includes a complete fusion module and a missing fusion module. The mutual learning module uses the following formula to perform weighted average on the network parameters corresponding to the fusion module: ; in, and Represent the parameters of the complete fusion module and the missing fusion module respectively, and They represent the parameters of the average complete fusion module and the average missing fusion module, t represents the iteration round, and α is Hyperparameters; at initialization, , .
2. The incomplete multimodal person re-identification method according to claim 1, characterized in that: The steps of building the dataset include: Data collection sub-step: select preset outdoor and indoor environments, and use cameras to capture visible light, near infrared, and thermal infrared images aligned in time and space in different scenes, wherein the different scenes include different lighting conditions, weather conditions, and ground cover types; Target labeling sub-step: accurately mark the bounding box of pedestrians on the aligned image to obtain a labeled image; Data screening and cleaning sub-step: remove the marked images that do not contain pedestrians, images whose pedestrian target size is smaller than a preset value or images that are severely occluded, and obtain the pedestrian image dataset; Data segmentation sub-step: The entire pedestrian image dataset is divided into training set, validation set and test set to facilitate model training, hyperparameter tuning and performance evaluation.
3. The incomplete multimodal person re-identification method according to claim 1, characterized in that: The loss function includes the loss in the modal complete scenario, the regularization loss in the modal missing scenario, the loss for compensating the missing modal features and the mutual learning loss.
4. An incomplete multimodal person re-identification system, characterized in that: include: Dataset construction unit: construct a pedestrian image dataset of three modal pairs: visible light modality, near infrared modality, and thermal infrared modality in typical scenes; Model building unit: build an incomplete multimodal person re-identification model based on mutual learning; Training unit: constructing a loss function of an incomplete multimodal person re-identification model based on mutual learning, and training the model using the data of the data set to obtain a trained model; Recognition unit: Input pedestrian images of any combination of visible light mode, near infrared mode, and thermal infrared mode into the trained model, extract the appearance features of the target pedestrian, calculate the similarity with the pedestrian features in the library, output the results according to the similarity, and complete the pedestrian re-identification; The incomplete multimodal person re-identification model based on mutual learning includes: Multimodal feature extraction module: including three groups of feature extractors for extracting features from visible light, near infrared and thermal infrared images respectively; Feature compensation and reorganization module: introduce a set of modal prototypes for each mode, and use the modal prototypes to generate the features of the missing modes for feature compensation; Fusion module: It realizes multi-modal feature fusion through multi-head cross attention mechanism and promotes the alignment of feature spaces of different modalities; Mutual learning module: optimizes the fused features by leveraging the complementarity between the modality missing and modality complete scenarios; The fusion module includes a complete fusion module and a missing fusion module. The mutual learning module uses the following formula to perform weighted average on the network parameters corresponding to the fusion module: ; in, and Represent the parameters of the complete fusion module and the missing fusion module respectively, and They represent the parameters of the average complete fusion module and the average missing fusion module, t represents the iteration round, and α is Hyperparameters; at initialization, , .
5. The incomplete multimodal person re-identification system according to claim 4, characterized in that: The dataset building blocks include: Data collection subunit: selects preset outdoor and indoor environments, and uses cameras to capture visible light, near infrared, and thermal infrared images aligned in time and space in different scenes, wherein the different scenes include different lighting conditions, weather conditions, and ground cover types; Object annotation subunit: accurately mark the bounding box of pedestrians on the aligned image to obtain the labeled image; Data screening and cleaning subunit: remove the marked images that do not contain pedestrians, images whose pedestrian target size is smaller than a preset value or images that are severely occluded, and obtain the pedestrian image dataset; Data segmentation subunit: The entire pedestrian image dataset is divided into training set, validation set and test set to facilitate model training, hyperparameter tuning and performance evaluation.
6. The incomplete multimodal person re-identification system according to claim 4, characterized in that: The loss function includes the loss in the modal complete scenario, the regularization loss in the modal missing scenario, the loss for compensating the missing modal features and the mutual learning loss.
