Cross-modal small-stock crowd re-identification method and device based on weak supervision fusion strategy
Through weakly supervised fusion strategies and unsupervised suppression learning, advanced features of cross-modal small crowds are extracted, which solves the problems of dependence on annotation information and the impact of illumination changes in the existing technology, and achieves high-accuracy identification of small crowds around the clock. and modality-invariant feature extraction.
Patent Information
- Application Number
- CN202410642573.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-06
AI Technical Summary
Existing cross-modal small group crowd re-identification methods rely heavily on supervised learning of annotation information, resulting in high costs and over-fitting problems, especially in all-weather scenarios where it is difficult to effectively handle illumination changes and modal differences.
Using a method based on weakly supervised fusion strategy, pedestrian features are extracted through pre-trained CNN deep learning neural network, cross-modal group member similarity inequality is constructed, and cosine similarity and maximum group similarity strategies are combined to achieve cross-modal small shares Advanced feature similarity measure for crowd images and decoupling modality-invariant group features in an unsupervised suppression stage.
It reduces the dependence on tags, improves the accuracy of cross-modal group matching, can effectively identify small groups of people in all-weather scenarios, reduces the impact of illumination changes on feature directions, and adapts to changes in the number of people.
Smart Images

Figure CN118609157A
Abstract
Description
Technical Field
[0001] The present application relates to the field of small group crowd identification, and in particular to a cross-modal small group crowd re-identification method and device based on a weakly supervised fusion strategy. Background Art
[0002] Existing cross-modal visible-near infrared re-identification research is mainly aimed at single pedestrian re-identification. Pedestrian re-identification aims to solve the association and matching of target pedestrians across cameras and scenes, and has important applications in intelligent video surveillance systems. In recent years, the focus of pedestrian re-identification has gradually shifted from an ideal environment with simple background and good lighting to an open environment that is more in line with actual scenes, including lighting changes, low resolution, occlusion, clothing changes, cross-modality, etc., which makes pedestrians of the same identity show huge differences in different pictures, bringing challenges to the pedestrian re-identification task. Cross-modal pedestrian re-identification usually includes pedestrian re-identification based on four types of heterogeneous information: visible-near infrared, visible-depth map, visible-sketch map, and image-text. Analyzing visible light images together with near-infrared images can take into account the advantages of visible light texture detail information and thermal radiation information, and also enable intelligent surveillance systems to operate in all-weather scenarios. Visible-near infrared pedestrian re-identification (VI-ReID) aims to retrieve pedestrian images of the same identity captured by visible and infrared cameras. While signals from different modalities bring more available information, they also bring challenges to cross-modal matching. The key to cross-modal matching is to learn consistent features to connect the two modalities. Existing methods to solve cross-modal domain differences include: methods based on generative adversarial networks (GANs), or converting known modality images into images of another modality, and obtaining retrieval results through bidirectional constraints between cross-modalities (as recorded in reference [2]). This method successfully reduces modality differences, but due to the lack of visible light-infrared image pairs, the generated cross-modal images will be accompanied by some noise. Another method is to map the image features of different modalities into the same feature space for modal alignment (as recorded in reference [9]), but due to the large domain difference between cross-modal images, it is difficult to directly project cross-modal images into a common space.
[0003] In real-life scenarios, people tend to travel together in small groups of 2-6 people, which has led to the study of small group re-identification (G-ReID). It is generally believed that when the common people in two group images exceed 60%, the two group images can be considered to belong to the same group category (as recorded in reference
[10] ). Therefore, in addition to the challenges of traditional pedestrian re-identification, small group re-identification also faces the challenges of changes in group members and layout. Small group re-identification can also further improve the performance of pedestrian re-identification. Specifically, pedestrians walking together are easily blocked by their companions, which is not conducive to the extraction of appearance features. If the appearance features of companions are used as retrieval clues for the target pedestrian, the accuracy of pedestrian re-identification results can be improved. The current mainstream method of small group re-identification regards the group as a whole and extracts global or semi-global features that are sensitive to group layout and member changes (as recorded in reference
[10] ). This method of extracting global features still regards small group re-identification as an extension of pedestrian re-identification and does not make full use of the contextual information in the group image.
[0004] With the rise of deep learning, the method of extracting pedestrian features has also shifted from manual extraction methods to deep learning methods. To solve the problem of image classification composed of multiple targets, such as 3D point cloud classification, the element arrangement invariant method of the target set can be used (such as described in references [6] and
[11] ), or a graph network can be used (such as described in references [5] and [8]). These methods provide ideas for constructing the relationship between small groups of people and pedestrian members. However, most deep learning-based methods rely on individual labels to train deep learning networks for feature extraction. Fully supervised training methods require a lot of manpower for labeling, which is time-consuming and costly, and puts pressure on the re-identification of small groups of people.
[0005] Existing research on small group crowd re-identification mainly focuses on visible light scenes during the day. There are few studies on cross-modal visible light-near infrared small group crowds including night time. A recent literature [7] proposed a cross-modal small group crowd re-identification method based on group distance metric learning. This method initially achieved the effect of cross-modal re-identification, but it is heavily dependent on supervised learning of annotated information. The annotation cost is very high and it is prone to overfitting. In addition, the distance metric used uses Euclidean distance and does not consider the impact of illumination changes on feature directions. Therefore, it is urgent to construct a cross-modal small group crowd re-identification method that does not rely on annotated information to achieve the purpose of all-weather group retrieval.
[0006] The prior art documents are as follows: Reference [1]: Xu, K., Hu, W., Leskovec, J., Jegelka, S.: How powerful are graph neural networks? In: International Conference on Learning Representations (2019) Reference [2]: Ye, M., Wang, Z., Lan, X., Yuen, P.C.: Visible thermal person re-identification via dual-constrained top-ranking. In: IJCAI. vol. 1, p. 2 (2018) Reference [3]: Fei, J., Zhu, Z., Liu, W., Deng, Z., Li, M., Deng, H., Zhang, S.: Dumlp-pin: a dual-mlp-dot-product permutation-invariant network for set feature extraction. In: Proceedings of the AAAI conference on artificial intelligence. vol. 36, pp. 598–606 (2022) Reference [4]: Murphy, R., Srinivasan, B., Rao, V., Riberio, B.: Janossy pooling: Learning deep permutation-invariant functions for variable-size inputs. In: International Conference on Learning Representations (ICLR 2019) (2019) Reference [5]: Yang, M., Wang, R., Shen, Y., Qi, H., Yin, B.: Breaking the expression bottleneck of graph neural networks. IEEE Transactions on Knowledge and Data Engineering 35(6), 5652–5664 (2023) Reference [6]: Lee, J., Lee, Y., Kim, J., Kosiorek, A., Choi, S., Teh, Y.W.: Set transformer: A framework for attention-based permutation-invariant neural networks. In: International conference on machine learning. pp. 3744–3753. PMLR (2019) Reference [7]: Xiong, J., Lai, J.: Similarity metric learning for rgb-infrared group re-identification. In: Proceedings of the IEEE / CVF Conference on Computer Vision and Pattern Recognition. pp. 13662–13671 (2023) Reference [8]: Yang, M., Wang, R., Shen, Y., Qi, H., Yin, B.: Breaking the expression bottleneck of graph neural networks. IEEE Transactions on Knowledge and Data Engineering 35(6), 5652–5664 (2023) Literature [9]: Wu, Q., Dai, P., Chen, J., Lin, CW, Wu, Y., Huang, F., Zhong, B., Ji, R.: Discover cross-modality nuances for visible-infraredperson re-identification. In: Proceedings of the IEEE / CVF Conference on Computer Vision and Pattern Recognition. pp. 4330–4339 (2021) Literature
[10] : Yan Y, Qin J, Ni B, et al. Learning multi-attention contextgraph for group-based re-identification[J]. IEEE transactions on pattern analysis and machine intelligence, 2020, 45(6): 7001-7018. Literature
[11] : Zaheer M, Kottur S, Ravanbakhsh S, et al. Deep sets[J]. Advances in neural information processing systems, 2017, 30. Summary of the invention The purpose of the present invention is to provide a cross-modal small group of people re-identification method and device based on a weak supervision fusion strategy in order to solve the problem that the existing cross-modal small group of people re-identification methods are heavily dependent on supervised learning of labeled information.
[0007] The above-mentioned purpose of the present application is achieved through the following technical solutions: S1: Obtain cross-modal small-group crowd images and perform pedestrian detection to obtain pedestrian images; annotate the weakly supervised identity information of the crowd and pedestrians in the cross-modal small-group crowd images; S2: Extract pedestrian features from pedestrian images through a pre-trained CNN deep learning neural network; S3: Construct inequalities for similarity of cross-modal group members; S4: Based on the cosine similarity and inequality of pedestrian features, the primary feature similarity of cross-modal small group crowd images is constructed; S5: Measuring the high-level feature similarity of cross-modal small-group crowd images through the maximum group similarity strategy and primary feature similarity; S6: In the pre-trained CNN deep learning neural network, an unsupervised suppression method is used to integrate the group member association module, and combined with high-level feature similarity, the cross-modal invariant group features are decoupled to achieve cross-modal visible light-near infrared small group identity recognition.
[0008] Optionally, step S1 includes: Defining a small crowd dataset for cross-modal visible-near infrared scenes ,as follows:
[0009] in represents a subset of visible light images; represents a subset of infrared images; represents a union; represents a cross-modal small group of people image, Represents the first members; represents the weakly supervised identity information of cross-modal small group crowd image annotation, which consists of crowd identity and pedestrian identity It consists of two parts; Pedestrian detection is performed on members of the cross-modal small crowd images in the small crowd dataset using the YOLOv3 pedestrian detector; Label the pedestrian identities of the members in the detected cross-modal small-group crowd images and define the labels of the cross-modal small-group crowd images ; represents the first labeled The pedestrian identities of each member; According to the identity of the crowd, the small group of crowd data sets are divided into training sets and test sets according to the preset ratio; Take cross-modal small-group crowd images of nighttime near-infrared scenes as the query set , taking cross-modal small-group crowd images of daytime visible light scenes as the search set .
[0010] Optionally, step S2 includes: Extract pedestrian features of all members in pedestrian images through pre-trained CNN deep learning neural network ; Defining a query set Query group images in Pedestrian feature set , Indicates the number of members in the query group image; Defining a search collection Search group images in Pedestrian feature set , Indicates the number of members in the search group image; Define query group image The overall characteristics are expressed as , search for group images The overall characteristics are expressed as ,in and Respectively represent the query group images Crowd identity and search for group images identity of the population.
[0011] Optionally, step S3 includes: According to the principle that the similarity of group characteristics of the same population identity is greater than the similarity of group characteristics of different population identities, the following inequality of cross-modal group member similarity is constructed:
[0012] in Indicates similarity, Indicates group image Pedestrian identity In the figure, pedestrian labels member characteristics.
[0013] Optionally, the primary feature similarity is as follows:
[0014] in, Represents the cosine similarity calculation function.
[0015] Optionally, step S5 includes: The relationship between high-level feature similarity and primary feature similarity is as follows:
[0016] The arrangement method , express The set of all possible permutations of the members in; Indicates query group images A set of pedestrian features; Indicates search group image A set of pedestrian features; Assuming that the number of people varies in the cross-view scenario, let , for each query group image Each pedestrian feature is arranged in the search group image Select M member elements with similarity greater than a preset threshold from the pedestrian feature set to form a subset ,but and The high-level feature similarity between is expressed as follows:
[0017] The arrangement method , express The set of all possible permutations of the M member elements in; For the remaining member elements, add a group member change measurement item It is used to measure the impact of unequal number of people on group identity matching. It is expressed as:
[0018] in and express and The pair of elements with the largest cosine similarity between them, at this time and The high-level feature similarity of is expressed as: .
[0019] Optionally, step S6 includes: For a small cross-modal crowd image containing M pedestrians , and its pedestrian features are expressed as , There is no particular order of elements in ; Define the intra-group adjacency distance of each member as follows:
[0020] According to members The intra-group neighbor distance to other members , define the intra-group distance vector of members as:
[0021] The row vector Expanded to each member, forming a group interaction matrix of M row vectors ,as follows:
[0022] Defining members The average feature distance , used to measure the global interaction relationship between members:
[0023] The average feature distance Sorting is performed in ascending order to decouple the cross-modal invariant group features and realize cross-modal visible light-near infrared small group identity recognition.
[0024] An electronic device includes a processor, a memory, a user interface and a network interface, wherein the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device performs a cross-modal small-group crowd re-identification method based on a weakly supervised fusion strategy.
[0025] A computer-readable storage medium stores instructions, and when the instructions are executed, a cross-modal small-group crowd re-identification method based on a weakly supervised fusion strategy is executed.
[0026] The beneficial effects of the technical solution provided by this application are: 1. A weakly supervised visible-near infrared small group crowd re-identification (G-ReID) method based on enhancement-inhibition two-stage learning (BIF) is proposed. In the enhancement stage of the algorithm, in the group feature learning stage, a weakly supervised method that is independent of the order of pedestrian feature input is adopted to achieve enhanced learning of group single-person features; in the inhibition stage of the algorithm, a fixed modality-invariant feature, that is, the height difference sorting of group members, is used for unsupervised learning, avoiding excessive reliance on labels, and at the same time mining the member interaction information that is not affected by modality changes in small group crowd re-identification, improving the accuracy of cross-modal group matching.
[0027] 2. The maximum similarity of pedestrians between groups is obtained through cosine similarity, thereby measuring the difference in feature directions affected by modal illumination changes, avoiding the influence of illumination changes on the direction of feature vectors in cross-modal visible light-near infrared re-identification scenarios.
[0028] 3. Add a group member change measurement item To measure the impact of unequal number of people on crowd matching and provide more fine-grained similarity features to cope with changes in the number of people in a group. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The present application will be further described below with reference to the accompanying drawings and embodiments, in which: Figure 1 is a step diagram of a cross-modal small group crowd re-identification method based on a weakly supervised fusion strategy in an embodiment of the present application; Figure 2It is a principle block diagram of a cross-modal small group crowd re-identification method based on a weakly supervised fusion strategy in an embodiment of the present application; Figure 3 It is a schematic diagram of the electronic device structure of the cross-modal small group crowd re-identification method based on the weak supervision fusion strategy in the embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to have a clearer understanding of the technical features, purposes and effects of the present application, the specific implementation methods of the present application are now described in detail with reference to the accompanying drawings.
[0031] The embodiments of the present application provide a cross-modal small-group crowd re-identification method based on a weakly supervised fusion strategy.
[0032] Please refer to Figure 1 , Figure 1 : is a step diagram of a cross-modal small group crowd re-identification method based on a weakly supervised fusion strategy in an embodiment of the present application, including: S1: Obtain cross-modal small-group crowd images and perform pedestrian detection to obtain pedestrian images; annotate the weakly supervised identity information of the crowd and pedestrians in the cross-modal small-group crowd images; Step S1 includes: Defining a small crowd dataset for cross-modal visible-near infrared scenes ,as follows:
[0033] in represents a subset of visible light images; represents a subset of infrared images; represents a union; represents a cross-modal small group of people image, Represents the first members; represents the weakly supervised identity information of cross-modal small group crowd image annotation, which consists of crowd identity and pedestrian identity It consists of two parts; Pedestrian detection is performed on members of the cross-modal small crowd images in the small crowd dataset using the YOLOv3 pedestrian detector; Label the pedestrian identities of the members in the detected cross-modal small-group crowd images and define the labels of the cross-modal small-group crowd images ; Represents the first annotated image in a small cross-modal crowd The pedestrian identities of each member; According to the identity of the crowd, the small group of crowd data sets are divided into training sets and test sets according to the preset ratio; Take cross-modal small-group crowd images of nighttime near-infrared scenes as the query set , taking cross-modal small-group crowd images of daytime visible light scenes as the search set .
[0034] Specifically, the cross-modal visible light-near infrared (RGB-IR) small group crowd re-identification task is to match the identities of small groups of people in visible light and near infrared scenes with non-overlapping fields of view. Each subset in the training set and test set contains the assigned crowd identity. All daytime visible light and nighttime near-infrared images.
[0035] S2: Extract pedestrian features from pedestrian images through a pre-trained CNN deep learning neural network; Step S2 includes: Extract pedestrian features of all members in pedestrian images through pre-trained CNN deep learning neural network ; Defining a query set Query group images in Pedestrian feature set , Indicates the number of members in the query group image; Defining a search collection Search group images in Pedestrian feature set , Indicates the number of members in the search group image; Define query group image The overall characteristics are expressed as , search for group images The overall characteristics are expressed as ,in and Respectively represent the query group images Crowd identity and search for group images identity of the population.
[0036] S3: Construct inequalities for similarity of cross-modal group members; Step S3 includes: According to the principle that the similarity of group characteristics of the same population identity is greater than the similarity of group characteristics of different population identities, the following inequality of cross-modal group member similarity is constructed:
[0037] in Indicates similarity, Indicates group image Pedestrian identity In the figure, pedestrian labels member characteristics.
[0038] Specifically, the role of this inequality is to compare the similarity between the member features of the two to-be-matched groups, so that the member features of the same pedestrian identity are more similar and the member features of different pedestrian identities are more different during training, thereby training a robust member feature expression. The cross-modal group members are the small groups of people in the visible light scene and the small groups of people in the near-infrared scene.
[0039] S4: Based on the cosine similarity and inequality of pedestrian features, the primary feature similarity of cross-modal small group crowd images is constructed; The primary feature similarity is as follows:
[0040] in, Represents the cosine similarity calculation function.
[0041] Specifically, since cosine similarity is not affected by the scale of the features, it is less sensitive to cross-modal illumination changes than traditional metrics such as Euclidean distance. It can also measure the directional differences of feature vectors and has relatively little impact on noise and outliers. It is usually suitable for information retrieval tasks with high-dimensional features.
[0042] S5: Measuring the high-level feature similarity of cross-modal small-group crowd images through the maximum group similarity strategy and primary feature similarity; Step S5 includes: The relationship between high-level feature similarity and primary feature similarity is as follows:
[0043] The arrangement method , express The set of all possible permutations of the members in; Indicates query group images A set of pedestrian features; Indicates search group image A set of pedestrian features; Assuming that the number of people varies in the cross-view scenario, let , for each query group image Each pedestrian feature is arranged in the search group image Select M member elements with similarity greater than a preset threshold from the pedestrian feature set to form a subset ,but and The high-level feature similarity between is expressed as follows:
[0044] The arrangement method , express The set of all possible permutations of the M member elements in; For the remaining member elements, add a group member change measurement item It is used to measure the impact of unequal number of people on group identity matching. It is expressed as:
[0045] in and express and The pair of elements with the largest cosine similarity between them, at this time and The high-level feature similarity of is expressed as: .
[0046] Specifically, Indicates and The minimum member cosine distance metric is left The similarity of the members is used to balance and Cardinality mismatch problem. If the query group image and the search group image are from a small group of people with the same identity, there is always a permutation that can accurately match each member. Even if the group members change to only 60% of the members are the same, that is, the minimum threshold of the same population set in the literature is reached, the MGS similarity of people with the same identity is still greater than that of the mismatched population. After obtaining the feature similarity of the group images, according to the relationship between the number of people in the cross-modal group image pairs to be matched, the present invention proposes a group maximum similarity strategy (Most Group Similarity, MGS) to measure the high-level feature similarity of cross-modal groups, called MGS similarity. Specifically, in order to avoid the generation of group features affected by the order in which pedestrian features are input into the pre-trained CNN deep learning neural network, the present invention further proposes a method for maintaining unchanged feature arrangement. This method calculates the similarity of cross-modal small group crowd images by finding the most similar pedestrian feature pairs between two groups, which can avoid the ambiguity caused by the order of pedestrian feature input due to feature aggregation. Conventional feature aggregation methods will cause the same crowd features obtained by aggregation to correspond to a variety of different pedestrian member combinations, which will be affected by the order of pedestrian feature input and cause ambiguity. The MGS similarity calculation method proposed in the present invention traverses the most similar member feature pairs between crowds, thereby achieving the effect of unchanged pedestrian feature arrangement and avoiding the influence of the order in which pedestrian features are input into the pre-trained CNN deep learning neural network.
[0047] S6: In the pre-trained CNN deep learning neural network, the group member association module is integrated into the unsupervised suppression method, and the high-level feature similarity obtained by the enhancement strategy (steps S1 to S5) is combined to decouple the cross-modal invariant group features and realize the cross-modal visible light-near infrared small group identity recognition.
[0048] Step S6 includes: For a small cross-modal crowd image containing M pedestrians , and its pedestrian features are expressed as , There is no particular order of elements in ; Define the intra-group adjacency distance of each member as follows:
[0049] According to members The intra-group neighbor distance to other members , define the intra-group distance vector of members as:
[0050] The row vector Expanded to each member, forming a group interaction matrix of M row vectors ,as follows:
[0051] Defining members The average feature distance , used to measure the global interaction relationship between members:
[0052] The average feature distance Sorting is performed in ascending order to decouple the cross-modal invariant group features and realize cross-modal visible light-near infrared small group identity recognition.
[0053] Specifically, according to the formula , we can obtain the intra-group interaction information of each group member in the cross-modal small group crowd image in the cross-modal scenario. The intra-group interaction information reflects the inherent attributes of the group members, such as height, body shape, and closeness distance. The distance of these inherent attributes does not change with the change of the image modality. Therefore, the average feature distance By sorting in ascending order, we can decouple the group features that are invariant across modalities and use them to identify small groups of people across modalities.
[0054] Specifically, due to the noise of member changes and repetitions in the crowd, and the fact that the identity labels of the crowd are all manually labeled, there are inevitably labeling errors, so the labeling information of the crowd is noisy, so the label-based reinforcement learning in the first stage of the present invention (step S1-step S5) is weakly supervised learning. Because labels are noisy, over-reliance on label learning in cross-modal scenarios will lead to overfitting and ambiguity, resulting in too large intra-class distances of different modalities and misidentification. Therefore, the second stage of the present invention adopts an unsupervised method to suppress excessive reliance on labels and decouple the inherent information of the modality, such as the height difference ranking of members.
[0055] In the inhibition-based learning phase, for the feature set learned under weak supervision, the real labels are not used, but the group member association module of the group members is used to focus on the inherent information of modality invariance, such as the height difference ranking of group members, so as to obtain a more optimized group modality invariance. The present invention adopts this unsupervised method to suppress excessive reliance on labels, decouple the inherent information of modality invariance to suppress overfitting and recognition ambiguity.
[0056] Experimental data set: The small group crowd dataset is the CM-Group dataset, which is a large-scale cross-modal visible light-near infrared dataset with 427 groups and 1013 pedestrians, totaling 30,946 group images. These group images are collected from 6 non-overlapping cross-view cameras, including 3 near-infrared and visible light scenes. The dataset is divided into training and test sets in a 1:3 ratio. Its training set has 107 groups and 233 pedestrians; the test set has 320 groups and 780 pedestrians. The experimental evaluation indicators use the common mean average precision (mAP) and cumulative matching features (CMC) indicators. CMC consists of Rank-n indicators, among which the first hit rate Rank-1 is the most important.
[0057] Experimental results: Specifically, the experimental results of the present invention are compared with the existing methods (as shown in Table 1). The test results in the actual data set are better than all recent methods, and the Rank1 and mAP performance are significantly improved by 18.46% and 17.78% respectively compared with the best recent CPM method. Table 1 shows the experimental results (%) of the present invention on the CM-Group cross-modal visible-near infrared data set, where S and W represent supervised and unsupervised learning, respectively.
[0058] Table 1
[0059] In the above table, the GIN method is the GIN method described in the literature [1].
[0060] The DeepSets method is the DeepSets method described in the literature
[11] .
[0061] The DuMLP method is the DuMLP method described in the literature [3].
[0062] The Janossy method is the Janossy method described in the literature [4].
[0063] The ExpC-1 method marked as S is the ExpC-1 method described in the literature [5].
[0064] The ST method is the ST method described in the literature [6].
[0065] The CPM method is the CPM method described in the literature [7].
[0066] The ExpC-1 method marked as W is the ExpC-1 method described in the literature [8].
[0067] The MPANet method is the MPANet method described in the literature [9].
[0068] The Relabel method is the Relabel method described in the literature [7].
[0069] The RAM method is the RAM method described in the literature [7].
[0070] The present application also discloses an electronic device. Figure 3 , Figure 3 The electronic device 500 may include: at least one processor 501 , at least one network interface 504 , a user interface 503 , a memory 505 , and at least one communication bus 502 .
[0071] The communication bus 502 is used to realize the connection and communication between these components.
[0072] The user interface 503 may include a display screen, and the optional user interface 503 may also include a standard wired interface or a wireless interface.
[0073] The network interface 504 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0074] The above are only exemplary embodiments of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.
[0075] This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art not described in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A cross-modal small group crowd re-identification method based on weak supervision fusion strategy, characterized in that: The method comprises the following steps: S1: Obtain cross-modal small-group crowd images and perform pedestrian detection to obtain pedestrian images; annotate the weakly supervised identity information of the crowd and pedestrians in the cross-modal small-group crowd images; S2: Extract pedestrian features from pedestrian images through a pre-trained CNN deep learning neural network; S3: Construct inequalities for similarity of cross-modal group members; S4: Based on the cosine similarity and inequality of pedestrian features, the primary feature similarity of cross-modal small group crowd images is constructed; S5: Measuring the high-level feature similarity of cross-modal small-group crowd images through the maximum group similarity strategy and primary feature similarity; S6: In the pre-trained CNN deep learning neural network, an unsupervised suppression method is used to integrate the group member association module, and combined with high-level feature similarity, the cross-modal invariant group features are decoupled to achieve cross-modal visible light-near infrared small group identity recognition.
2. The cross-modal small group crowd re-identification method based on weak supervision fusion strategy as claimed in claim 1, characterized in that: Step S1 includes: Defining a small crowd dataset for cross-modal visible-near infrared scenes ,as follows: in represents a subset of visible light images; represents a subset of infrared images; represents a union; represents a cross-modal small group of people image, Represents the first members; represents the weakly supervised identity information of cross-modal small group crowd image annotation, which consists of crowd identity and pedestrian identity It consists of two parts; Pedestrian detection is performed on members of the cross-modal small crowd images in the small crowd dataset using the YOLOv3 pedestrian detector; Label the pedestrian identities of the members in the detected cross-modal small-group crowd images and define the labels of the cross-modal small-group crowd images ; represents the first labeled The pedestrian identities of each member; Take cross-modal small-group crowd images of nighttime near-infrared scenes as the query set , taking cross-modal small-group crowd images of daytime visible light scenes as the search set .
3. A cross-modal small group crowd re-identification method based on weak supervision fusion strategy as claimed in claim 2, characterized in that: Step S2 includes: Extract pedestrian features of all members in pedestrian images through pre-trained CNN deep learning neural network ; Defining a query set Query group images in Pedestrian feature set , Indicates the number of members in the query group image; Defining a search collection Search group images in Pedestrian feature set , Indicates the number of members in the search group image; Define query group image The overall characteristics are expressed as , search for group images The overall characteristics are expressed as ,in and Respectively represent the query group images Crowd identity and search for group images identity of the population.
4. The cross-modal small group crowd re-identification method based on weak supervision fusion strategy as claimed in claim 3, characterized in that: Step S3 includes: According to the principle that the similarity of group characteristics of the same population identity is greater than the similarity of group characteristics of different population identities, the following inequality of cross-modal group member similarity is constructed: in Indicates similarity, Indicates group image Pedestrian identity In the figure, pedestrian labels member characteristics.
5. The cross-modal small group crowd re-identification method based on weak supervision fusion strategy as claimed in claim 4, characterized in that: The primary feature similarity is as follows: in, Represents the cosine similarity calculation function.
6. A cross-modal small group crowd re-identification method based on weak supervision fusion strategy as claimed in claim 5, characterized in that: Step S5 includes: The relationship between high-level feature similarity and primary feature similarity is as follows: The arrangement method , express The set of all possible permutations of the members in; Indicates query group images A set of pedestrian features; Indicates search group image A set of pedestrian features; Assuming that the number of people varies in the cross-view scenario, let , for each query group image Each pedestrian feature is arranged in the search group image Select M member elements with similarity greater than a preset threshold from the pedestrian feature set to form a subset ,but and The high-level feature similarity between is expressed as follows: The arrangement method , express The set of all possible permutations of the M member elements in; For the remaining member elements, add a group member change measurement item It is used to measure the impact of unequal number of people on group identity matching. It is expressed as: in and express and The pair of elements with the largest cosine similarity between them, at this time and The high-level feature similarity of is expressed as: 。 7. The cross-modal small group crowd re-identification method based on weak supervision fusion strategy as claimed in claim 6, characterized in that: Step S6 includes: For a small cross-modal crowd image containing M pedestrians , and its pedestrian features are expressed as , There is no particular order of elements in ; Define the intra-group adjacency distance of each member as follows: According to members The intra-group neighbor distance to other members , define the intra-group distance vector of members as: The row vector Expanded to each member, forming a group interaction matrix of M row vectors ,as follows: Defining members The average feature distance , used to measure the global interaction relationship between members: The average feature distance Sorting is performed in ascending order to decouple the cross-modal invariant group features and realize cross-modal visible light-near infrared small group identity recognition.
8. An electronic device, characterized in that: The electronic device comprises a processor (501), a memory (505), a user interface (503) and a network interface (504), wherein the memory (505) is used to store instructions, the user interface (503) and the network interface (504) are used to communicate with other devices, and the processor (501) is used to execute the instructions stored in the memory (505) so that the electronic device executes the method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed by a computer, the method steps according to any one of claims 1 to 7 are executed.
Citation Information
Cited By
Weak supervision text-pedestrian image matching method based on local and global dual-granularity identity association
CN120894739A
Video visible light-infrared pedestrian re-identification method based on human body analysis
CN120953562A
Cross-modal small-strand pedestrian re-identification method based on optimal subset learning
CN122135306A
A cross-modal small-group pedestrian re-identification method based on optimal subset learning
CN122135306B
