A person re-identification method based on complementary features of data samples
By adopting the method of complementary features of data samples in the pedestrian re-identification system, using the interaction between the server and local terminals and the cloud database, segmentation processing and feature fusion, the high misjudgment rate and data problems of the pedestrian re-identification algorithm in the existing technology are solved. It solves the large-volume problem and achieves efficient and accurate pedestrian recognition.
Patent Information
- Application Number
- CN202410910441.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-07-09
AI Technical Summary
The difference in distribution between training data and actual application scenarios and data bias in existing pedestrian re-identification algorithms lead to high misjudgment rates, and the large amount of data results in low recognition efficiency. How to improve the accuracy and system adaptability of pedestrian re-identification.
Using a method based on the complementary characteristics of data samples, through the interaction of servers, local terminals and cloud databases, data samples are segmented and processed, and similarity pairing and feature fusion of indexing vectors and fuzzy vectors are used to generate rich representation data for matching and Update to reduce storage pressure and recognition misjudgment rate.
It improves the accuracy and system adaptability of pedestrian re-identification, reduces the storage pressure and recognition misjudgment rate of cloud databases, and ensures the timeliness and accuracy of pedestrian characterization data.
Smart Images

Figure CN118470751B
Abstract
Description
Technical Field
[0001] The present invention relates to data recognition, and in particular to a pedestrian re-identification method based on complementary features of data samples. Background Art
[0002] At present, pedestrian re-identification mainly relies on the data collected in the database in the early stage as the unique ID for identity recognition and recording, so as to track people and analyze their behavior through identification means. With the significant progress of related technologies in recent years, the amount of data that can be identified has gradually increased, but the improvement of its recognition performance mainly lies in the optimization of recognition algorithms. In the process of recognition through existing algorithms, the data characteristics of samples usually cannot cover a wider area, and the technology for obtaining sample data for analysis is usually related data obtained from a wide range of people.
[0003] On the one hand, existing person re-identification algorithms mainly rely on training data to learn feature matching rules. If there is a difference in distribution between the training data set and the actual application scenario, or the training samples themselves are not sufficient to cover all possible changes in reality, the generalization ability of the algorithm will be limited. When the acquired data is combined with the algorithm, it may not be able to correctly identify and match the data with the existing database ID, and it is also prone to misjudgment.
[0004] On the other hand, during the algorithm's recognition process, if there is bias in the training data set, such as too many samples of a certain type of pedestrian, the model may show a high misjudgment rate when facing uncommon types of pedestrians. In addition, the quality of the data set also directly affects the quality of the trained model. If external data is directly introduced, considering the large amount of data association, it may cause the amount of data processed by the algorithm to surge, making the current recognition efficiency more dependent on computer performance. Therefore, it is worth studying how to perform efficient data processing and storage based on data samples to improve the accuracy of pedestrian recognition and the adaptability of the system. Summary of the invention
[0005] The purpose of the present invention is to provide a pedestrian re-identification method based on complementary features of data samples, in the hope that in the recognition process of the existing algorithm, external data can be directly introduced, which may cause a large amount of data correlation and lead to a surge in the amount of data processed by the algorithm.
[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0007] A pedestrian re-identification method based on complementary features of data samples, the method is used for processing and identification in conjunction with data representations of a cloud database, and comprises the following steps: S100, setting a server, a local terminal and a cloud database, wherein a plurality of pedestrian IDs and data representations of corresponding pedestrian IDs are set in the cloud database; the server is signal-connected to the cloud database and the local terminal respectively.
[0008] S200, the server configures an initial time period, and the local area terminal acquires sample data in the initial time period to obtain a first data sample and a second data sample; wherein the first data sample is reference data and includes an indexing vector, and the second data sample is training data and includes multiple fuzzy vectors; the first data sample and the second data sample are segmented to obtain a plurality of first data streams and a plurality of second data streams, so as to select valid data from the first data sample and the second data sample and reduce unnecessary associated data.
[0009] S300, the server encodes each first data stream, obtains the indexing vector in the first data stream, obtains the fuzzy vector in the second data stream, matches the fuzzy vector with the indexing vector based on similarity, and integrates them into a data collection, and uses the same encoding for the second data stream and the first data stream in the data collection.
[0010] S400, perform feature fusion on the second data stream in the data collection to obtain a first fused feature; combine the indexing vector in the data collection with the first fused feature to obtain first representation data; the server inputs the first representation data into the cloud database to match it with the data representation; wherein, if a matching result is found in the cloud database, the server retrieves the corresponding pedestrian ID in the cloud database for time tagging; wherein, if no matching result is found in the cloud database, execute S500.
[0011] S500, characterization fusion; the server is configured with a time period T1, the local terminal acquires continuous data samples within the time period T1, obtains a plurality of second characterization data, fuses different second characterization data to obtain a new data characterization, and stores the new data characterization in the cloud database through the server and establishes a unique pedestrian ID.
[0012] The technical concept is to form an interactive and data storage architecture through servers, local terminals and cloud databases. The server is used to segment the data of the corresponding local terminal and match the specific data after segmentation (related data is required). On the one hand, the segmented data is processed by fusion features, and the indexing vector and fuzzy vector are similarly associated to obtain representation data, which is matched with the pedestrian ID and its corresponding data representation stored in the cloud database; on the other hand, data is input and accessed through the server, and on the basis of the associated data, the continuous associated data acquisition is further optimized, and the acquired associated data is integrated into the representation data for updating, and the server is used to process the data of the corresponding local terminal and store the processed data in the cloud database, which can effectively reduce the storage pressure of the cloud database. Therefore, by segmenting the data processing and setting up a matching mechanism, by matching the existing data representation, and by generating new data representations through feature fusion technology, it is possible to effectively deal with newly emerged or previously unidentified pedestrian data, and ensure that the pedestrian representation data provided has high timeliness and accuracy.
[0013] A further technical solution is that, based on S300, the above-mentioned server configures the number N of second data streams in the verification data collection. When the number of second data streams integrated in the data collection is less than N, the above-mentioned server configures the time period T2. The above-mentioned server controls the local terminal in the time period T2 and repeats S300 until the number of second data streams in the data collection is greater than or equal to N; wherein N is a natural number, used to represent the reference number of second data streams in the data collection.
[0014] A further technical solution is that the similarity between the fuzzy vector and the indexed vector in the above data collection is greater than 85%; wherein the similarity calculation formula between the fuzzy vector and the indexed vector is:
[0015]
[0016] Where S is the similarity between the fuzzy vector and the index vector; n is the number of elements in the fuzzy vector; i is the number of elements in the index vector; is the magnitude of the indexed vector; is the modulus of the fuzzy vector. and The calculation formula is:
[0017] ;
[0018] In the formula, Represent each component of the blur vector in the second data stream respectively.
[0019] ;
[0020] In the formula, Respectively represent each component of the indexed vector in the first data stream.
[0021] A further technical solution is that it also includes step S600, the server configures time period T3, the local terminal obtains sample data in time period T3 and obtains a third data sample and a fourth data sample, the third data sample and the fourth data sample repeat steps S200 to S300 to obtain a second fusion feature and a third characterization data; the third characterization data is matched with the cloud database; when no matching result is found in the query library, S500 is executed; when a matching result is found in the cloud database, the corresponding pedestrian ID is obtained from the cloud database.
[0022] A further technical solution is that the server configures a similarity threshold range; extracts a valid feature vector from the data representation of the corresponding pedestrian ID, obtains a P value for similarity between the second fused feature and the valid feature vector; if the P value is within the threshold range, the server fuses the second fused feature with the data representation of the corresponding pedestrian and updates it to the corresponding pedestrian ID; if the P value is greater than the upper limit of the set threshold range, it indicates that the match is correct, and the server retrieves the corresponding pedestrian ID in the cloud database for time tagging. If the P value is less than the lower limit of the threshold range, it indicates that the match fails, and S400 is executed again.
[0023] A further technical solution is that the above P value is a similarity score, and the P value is calculated as follows:
[0024]
[0025]
[0026] Where, L(A, B) is the distance between the matching elements of the second fusion feature and the effective feature vector; R is the sensitivity coefficient; A is the vector of the second fusion feature; is the i-th element in the vector of the second fusion feature; B is a valid feature vector in data representation; Corresponding to the effective feature vector in data representation The matching elements of .
[0027] A further technical solution is that when the second fused feature is fused with the data representation of the corresponding pedestrian, the server sets the weight of the second fused feature to Q1 and the weight of the data representation to Q2. The second fused feature is fused with the data representation of the corresponding pedestrian to obtain a new data representation F, where the calculation formula of F is:
[0028]
[0029] In the formula, Q1>Q2, and Q2+Q1=1; A and B are the vector of the second fusion feature and the feature vector corresponding to A in the data representation, respectively, and the data representation F is updated to the corresponding pedestrian ID.
[0030] Preferably, when the first characterization data is input into the cloud database, the server timestamps the first characterization data; when the third characterization data is matched with the characterization data in the cloud database, the third characterization data is timestamped; the server obtains a time difference parameter between the time stamp of the first characterization data and the stamping time of the third characterization data; configures the time difference value of the server, and executes S200 if the time difference parameter is greater than the update time difference.
[0031] Preferably, the data samples acquired by the local area terminal for sample data acquisition are posture profile data.
[0032] Preferably, the data sample acquired by the local area terminal is image data.
[0033] Preferably, the local area terminal is a plurality of data acquisition devices, and the local area terminal includes a first data acquisition device and a second data acquisition device; wherein the resolution of the first data acquisition device is higher than that of the second data acquisition device; a triangular identification area is set, and the center point and three vertices of the identification area are respectively provided with the first data acquisition device and the second data acquisition device; the first data acquisition device and the second data acquisition device are both connected to the same server, and the server controls the first data acquisition device and the second data acquisition device to respectively acquire data sample data.
[0034] A further technical solution is to set a coordinate system in the identification area, place a second data acquisition device in the identification area, obtain the straight-line distance between the target and the three second data acquisition devices, and use the straight-line distance to calculate the distances from the target to the second data acquisition devices respectively, thereby determining the coordinates of the target in the identification area;
[0035] The calculation formula for determining the target coordinates is as follows:
[0036]
[0037] Where A1, A2 and A3 are the straight-line distances from the target to the three second data acquisition devices, respectively.
[0038] In the formula, and are the two-dimensional coordinates of the first and second data acquisition devices, respectively;
[0039] In the formula, and are respectively the two-dimensional coordinates of the second second data acquisition device;
[0040] In the formula, and are respectively the two-dimensional coordinates of the third second data acquisition device;
[0041] Where X and Y are the two-dimensional coordinates of the target.
[0042] Compared with the prior art, the present invention has at least one of the following beneficial effects:
[0043] The present invention can utilize a simplified framework of servers, local terminals, and cloud databases, which is conducive to building the needs of specific person re-identification based on the existing system, thereby facilitating centralized management and rapid access to data based on the storage of pedestrian IDs and their corresponding data representations in the existing cloud database.
[0044] The present invention collects pedestrian data samples through a local terminal within a set initial time period, and segments these samples to generate multiple first data streams as reference data and second data streams as training data, and integrates the segmented data by using the indexing vector of the first data stream and the fuzzy vector of the second data stream. When the server processes the sample data of the local terminal, it can better associate the segmented data, thereby selectively integrating them, greatly reducing the processing volume of related data.
[0045] The present invention also introduces a feature encoding and similarity matching mechanism, extracts the indexing vector in the first data stream and the fuzzy vector in the second data stream through the encoding process, performs similarity pairing, and integrates them into a data collection, thereby determining the association processing between the segmented data. More importantly, based on the data collection, the fuzzy vector in the data collection is used to generate a new fusion feature through feature fusion technology, and combined with the indexing vector to generate richer and more accurate representation data, so that the data representation is matched in the cloud database with diversity. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a schematic diagram of the step framework of the present invention. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0048] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. in a certain working state. If the specific posture changes, the directional indication will also change accordingly. In the present invention, unless otherwise clearly specified and limited, the term "connection" and the like should be understood in a broad sense. For example, "connection" can be an electrical signal connection or a signal connection; it can also be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0049] If there are descriptions involving "first", "second", etc. in the embodiments of 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 technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the meaning of "and / or" appearing in the full text includes three parallel schemes. Taking "A and / or B" as an example, it includes scheme A, or scheme B, or a scheme that satisfies both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0050] refer to Figure 1 As shown, one embodiment of the present invention is a pedestrian re-identification method based on complementary features of data samples, which is used for processing and identification in conjunction with data representation of a cloud database. When data representation is performed through a cloud database, the cloud database can be used to store and read data representations to ensure sufficient data sources. Secondly, the huge amount and diversity of data contained in the cloud database maintains a high level of data proofreading and recognition.
[0051] The pedestrian re-identification method comprises the following steps: S100, setting a server, a local terminal and a cloud database, wherein a plurality of pedestrian IDs and data representations of the corresponding pedestrian IDs are set in the cloud database; the server is respectively connected to the cloud database and the local terminal by signal. The server is used as a central node to cooperate with the cloud database for data interaction, and the local terminal is used as an execution end, so as to facilitate data synchronization and task allocation.
[0052] Among them, considering the interaction delay between the cloud database and the server that rely on network connection access, the connection method between the above cloud database and the server usually adopts multi-network interaction, such as a combination of wired connection and wireless connection.
[0053] In order to reduce the shielding risk during the interaction between the cloud database and the server, if necessary, multiple gateway devices are set up between the cloud database and the server, and the gateway devices are used to form a link, and the network delay is selected through the gateway device. Among them, the gateway device can be an existing repeater, and the gateway device is identified by setting the corresponding device code. Each gateway device input and output are marked with a device code. For example, the server signal is transmitted from gateway device A to gateway device B, and then transmitted to the cloud database by gateway device B.
[0054] For reference, when gateway device A outputs a transmission signal with device code to gateway device B, gateway device B sends a feedback signal to gateway device A after receiving the corresponding signal, which is recorded by gateway device A. In order to reduce the risk of data loss of gateway devices, an auxiliary server is also provided between the cloud database and the server. The auxiliary server is connected to the gateway device in a one-way manner, and the gateway device sends information to the auxiliary server in a time-sharing manner to record the transmission signal and feedback signal sent or received.
[0055] Among them, the cloud database is based on the existing cloud computing platform. Its cloud database has the advantage of elastic resource allocation. It can easily expand the system's processing capacity according to demand to cope with the needs of large traffic. In addition, the cloud database can continuously learn new sample data to facilitate the maintenance and update of system data. Avoiding the deployment of large-scale computing resources and storage resources locally, it effectively reduces equipment investment and operation and maintenance costs.
[0056] The pedestrian re-identification method comprises the following step S200: the server configures an initial time period, the local area terminal acquires sample data in the initial time period, and obtains a first data sample and a second data sample. The first data sample and the second data sample are used to obtain multiple data samples, so as to complement feature data.
[0057] For reference, using multiple data samples can obtain data features with a high proportion in the data, and use the data features with a high proportion as indexes for classification and screening, so that the amount of data processing can be reduced during data screening, thereby better verifying the pedestrian data, which is conducive to improving the accuracy of re-identification in the later stage.
[0058] Among them, the first data sample is the benchmark data and includes the indexing vector, and the second data sample is the training data and includes multiple fuzzy vectors; the first data sample and the second data sample are obtained in the initial time period; on the one hand, the indexing vector is used as a reference standard, and the fuzzy vector is used as a comparison sample and is used to compare with the benchmark vector, so that different data samples can make full use of different times and environments to obtain more dimensional data approximations and differences, which is conducive to increasing the diversity and richness of features.
[0059] By simultaneously collecting the first data sample as the reference data and the second data sample as the training data, and encoding and verifying the indexing vector in the first data sample and the fuzzy vector in the second data sample, it is beneficial to obtain the high-proportion vectors in the second data sample and the first data sample, so that in the fast matching process, the high-proportion vectors are used as the indexes for search and comparison, which can effectively reduce the data processing volume and improve the efficiency and accuracy of re-identification.
[0060] The first data sample and the second data sample are segmented to obtain a plurality of first data streams and a plurality of second data streams; the segmentation process is mainly used to segment the high-proportion vectors in the first and second data samples and obtain more refined data units. The data units form a plurality of first data streams and a plurality of second data streams.
[0061] Since both the first data stream and the second data stream are cut into shorter data segments, and the first data stream contains an indexing vector, which is used as a benchmark for the data stream, and the second data stream contains a fuzzy vector, which is used to be aggregated with the first data stream.
[0062] The above-mentioned pedestrian re-identification method includes the following step S300, the server encodes each first data stream, obtains the indexing vector in the first data stream, and obtains the fuzzy vector in the second data stream, wherein the encoding process of the first data stream mainly converts the indexing vector into a comparable and processable form; and pairs the fuzzy vector with the indexing vector by similarity.
[0063] The matching process is: obtain a first data stream and corresponding multiple second data streams through high-proportion vectors, compare each indexing vector in the first data stream with each fuzzy vector in the second data stream, determine the similarity, integrate the first data stream and the second data stream with higher similarity into a data collection, and use the same encoding for the second data stream and the first data stream in the data collection.
[0064] Among them, the first data stream and the second data stream in the same data collection use the same encoding method, which is convenient for subsequent targeted extraction through high-proportion vectors, and at the same time, data with higher consistency can be selected through encoding when obtaining data that is helpful for subsequent data processing.
[0065] The above-mentioned pedestrian re-identification method includes the following step S400, which is to further extract features from the data collection on the basis of S300 for fusion, so as to facilitate matching with the data in the cloud database, and to fuse the features of the second data stream in the data collection to obtain a first fusion feature; and to select a second data stream other than the indexing vector from the data collection for feature fusion. The fuzzy vectors in different data streams are synthesized into a comprehensive feature representation as the first fusion feature, and the first fusion feature is combined with the data feature vector with higher similarity in the second data stream.
[0066] The indexing vector in the data collection is combined with the first fused feature to obtain the first representation data; by combining the indexing vector in the data collection with the first fused feature, a first representation data is generated as a new feature representation, so as to generate stable and distinguishing feature data that can represent the identity of the pedestrian.
[0067] The server inputs the first characterization data into the cloud database for matching with the data characterization; the first characterization data is input into the cloud database for matching. Since the cloud database contains the characteristic characterization data of known pedestrians and the corresponding pedestrian ID, it is determined by matching whether there is a correlation between the first characterization data and the characterization data stored in the database. If there is correlation data, it means that the matching result is obtained, otherwise, the matching result is not obtained.
[0068] If a match is found in the cloud database, the server will retrieve the corresponding pedestrian ID from the cloud database and time-stamp it. A match indicates that the pedestrian has been successfully identified. The server will retrieve the corresponding pedestrian ID and time-stamp the identification event to record the moment of identification.
[0069] If no matching result is found in the cloud database, it means that the identity of the pedestrian is not recognized, and S500 is executed.
[0070] The pedestrian re-identification method includes the following step S500, characterization fusion; the server configures the time period T1, the local terminal acquires continuous data samples within the time period T1, obtains multiple second characterization data, fuses different second characterization data to obtain new data characterization, and stores the new data characterization in the cloud database through the server and establishes a unique pedestrian ID. This step is used to collect the second characterization data multiple times, perform data fusion, and store the fused data characterization in the cloud database and associate it with the unique pedestrian ID. The server first configures a set time period T1, and the time period T1 is a continuous time period. The time period is the time for the local terminal to continuously acquire continuous data samples from the pedestrian. The local terminal works continuously within the time period T1 to obtain multiple second characterization data. The second characterization data comes from the continuous data at different time points in the time period T1. By fusing the second characterization data acquired at different time points, a new, more accurate and stable fused data characterization is formed, and the fused new data characterization is uploaded and stored in the cloud database through the server, and a unique pedestrian ID is assigned to this data characterization. This pedestrian ID will serve as a unique identification identifier.
[0071] It should be noted that the second characterization data may also be obtained through the collaborative work of different sensors.
[0072] Based on the above embodiment, another embodiment of the present invention is that the above pedestrian re-identification method also includes in S300, which is a verification step, and the above server configures the verification data collection to verify the number of second data streams N. Since N represents the reference number of second data streams, by ensuring that the number of second data streams in the data collection reaches a sufficient reference amount N, the accuracy and reliability of pedestrian re-identification are guaranteed. The server first determines a reference value N as the minimum number that the second data stream in the data collection should reach. N is a preset natural number. After the server executes step S300, the server checks the number of second data streams that have been integrated in the data collection to determine whether the second data streams in the data collection are less than N.
[0073] When the number of second data streams integrated in the data collection is less than N, the server configures time period T2, controls the local area terminal in time period T2, and repeats S300 until the number of second data streams in the data collection is greater than or equal to N; wherein N is a natural number.
[0074] When the number of second data streams in the data collection is less than N, the server sets a new time period T2. During this time period, the server controls the local terminal to collect data to obtain more second data streams. The server cyclically executes step S300 in time period T2, obtains the second data stream again, and performs encoding and similarity pairing until the number of second data streams in the data collection is greater than or equal to N. This is performed multiple times in a cyclic manner until a sufficient amount of data is accumulated.
[0075] Based on the above embodiment, another embodiment of the present invention is that the similarity between the fuzzy vector and the index vector in the above data collection is greater than 85%; wherein the similarity calculation formula between the fuzzy vector and the index vector is:
[0076] ;
[0077] Where S is the similarity between the fuzzy vector and the index vector; n is the number of elements in the fuzzy vector; i is the number of elements in the index vector; is the magnitude of the indexed vector; is the modulus of the fuzzy vector;
[0078] in, and The calculation formula is:
[0079] ;
[0080] In the formula, Respectively represent each component of the blur vector in the second data stream;
[0081] ;
[0082] In the formula, Respectively represent each component of the indexed vector in the first data stream.
[0083] By setting the similarity between the fuzzy vector and the indexing vector in the data collection to be greater than 85%, the screening threshold of the similarity is raised, thereby ensuring that the effective match between the fuzzy vector in the second data stream and the indexing vector in the first data stream is highly similar, objectively reducing the probability of false matching.
[0084] Since there is a lot of vector data, by limiting the high similarity, some noise data can be effectively filtered out, reducing the amount of analysis in the subsequent data processing flow. The above similarity calculation ensures that the two vectors represent the same pedestrian with high confidence, so that subsequent analysis and processing can be carried out in the hope of efficiently utilizing resources and improving processing speed. If necessary, this method is conducive to combining existing model algorithms, deepening the amount of data analyzed, and improving processing speed, especially in the later stage of model training for large-scale application scenarios, which has good adaptability.
[0085] Based on the above embodiment, another embodiment of the present invention is that the method further includes S600, the above server configures the time period T3, and sets a new time period T3 through the server for further collecting the time window of the data sample, and the local terminal obtains and obtains the third data sample and the fourth data sample in the time period T3 sample data, wherein the third data sample and the fourth data sample are similar data samples obtained after the first data sample and the second data sample are processed and analyzed. The third data sample and the fourth data sample are mainly used to obtain the change information of the sample data.
[0086] The third data sample and the fourth data sample repeat steps S200 to S300 to obtain the second fused features and the third characterization data; the third characterization data is matched with the cloud database to determine the new data sample and fused features for data change.
[0087] For reference, the third and fourth data samples are segmented to obtain a plurality of third data streams and a plurality of fourth data streams, the third data streams and the fourth data streams are encoded, the feature vectors therein are obtained, the fuzzy vectors are matched with the indexing vectors by similarity, and integrated into a new data collection. The fuzzy vectors in the data streams in the data collection are feature fused to obtain a second fused feature, and then the indexing vectors are combined with the second fused feature to obtain the third representation data.
[0088] The third characterization data is matched with the characterization data in the cloud database.
[0089] When a matching result is found in the cloud database, the corresponding pedestrian ID is obtained from the cloud database, thereby obtaining the pedestrian information. When no matching result is found in the query library, indicating that no similar pedestrian appears, S500 is executed to create pedestrian data.
[0090] Based on the above, a preferred implementation is that the server configures a similarity threshold range and uses it to determine the accuracy of feature vector matching. The threshold range is usually composed of an upper limit parameter and a lower limit parameter, and a valid feature vector is extracted from the data representation of the corresponding pedestrian ID, and a P value similar to the second fused feature and the valid feature vector is obtained.
[0091] If the P value is within the threshold range, the server will fuse the second fused feature with the data representation of the corresponding pedestrian and update it to the corresponding pedestrian ID; when the similarity value is within the threshold range, the system can continuously optimize the feature representation of the pedestrian through feature fusion and data update.
[0092] If the P value is greater than the upper limit of the set threshold range, it means that the match is correct. The above server retrieves the corresponding pedestrian ID in the cloud database for time stamping; for matches above the upper limit of the threshold, time stamping is performed directly to reduce unnecessary repeated calculations and improve the processing efficiency of the system.
[0093] If the P value is less than the lower limit of the threshold range, it indicates that the matching fails. In order to correct the error, S400 is executed again, that is, the data collection and processing steps are re-executed to re-perform the recognition.
[0094] Based on the above, a preferred implementation is that the above P value is a similarity score, and the P value is calculated as follows:
[0095] ;
[0096] ;
[0097] Where, L(A, B) is the distance between the matching elements of the second fusion feature and the effective feature vector; R is the sensitivity coefficient; A is the vector of the second fusion feature; is the i-th element in the vector of the second fusion feature; B is a valid feature vector in data representation; Corresponding to the effective feature vector in data representation The matching elements of .
[0098] The similarity score P value is used to quantify the matching degree and reliability between the second fusion feature and the effective feature vector, and can filter and process data efficiently. By calculating the distance L(A, B), the difference between the two vectors in the feature space can be accurately evaluated. The sensitivity coefficient R is introduced to adjust the sensitivity of the match. The larger the R, the stronger the upper threshold of the match. The smaller the R parameter setting, the more flexible the match is, so as to meet the needs of different application scenarios and enhance the adaptability and robustness of the system in different environments.
[0099] Based on the above embodiment, another embodiment of the present invention is that when the above second fusion feature is fused with the data representation of the corresponding pedestrian, the second fusion feature is used as a new feature, and the above server sets the weight of the second fusion feature to Q1, and sets the weight of the data representation to Q2. By setting different weights Q1 and Q2, a balance point is found between the second fusion feature and the existing data representation, which can not only take advantage of the second fusion feature, but also maintain the stability of the existing data representation. Through weighting, a reasonable combination is obtained when the new and old features are replaced, which helps to gradually optimize and improve the data representation of the pedestrian ID and improve the recognition accuracy of the subsequent system. After the above second fusion feature is fused with the data representation of the corresponding pedestrian, a new data representation F is obtained, where the calculation formula of F is:
[0100] ;
[0101] In the formula, Q1>Q2, and Q2+Q1=1; A and B are the vector of the second fusion feature and the feature vector corresponding to A in the data representation, respectively, and the data representation F is updated to the corresponding pedestrian ID.
[0102] In the fusion process, Q1>Q2 means that new feature data is given more importance, but Q2+Q1=1 means that Q2+Q1 is the relative proportional weight influence.
[0103] Based on the above embodiment, another embodiment of the present invention is that in order to ensure that the timeliness of the data is valid, when the first characterization data is input into the cloud database, the above server will time-mark the first characterization data, and the server will time-mark the data and record the data collection and upload time;
[0104] When the third characterization data is matched with the characterization data in the cloud database, the third characterization data is time-stamped, and the server time-stamps the third characterization data.
[0105] The above-mentioned server obtains the time difference parameter between the time stamp of the first characterization data and the marking time of the third characterization data; the server obtains the time stamp of the first characterization data and the time stamp of the third characterization data, calculates the time difference between the two, and obtains the time difference parameter, and the time difference parameter is the time difference recorded between the time stamp of the third characterization data and the time stamp of the first characterization data.
[0106] Configure the server's time difference value, and set an update time difference through the server. The value of the update time difference indicates that if the server believes that the time difference between two data exceeds this threshold, the data needs to be updated. If the time difference parameter is greater than the update time difference, S200 is executed. The time interval is too long and the data needs to be re-collected and processed. By adding the time mark and the calculation of the time difference parameter, the timeliness of the pedestrian re-identification system and the accuracy of data update are improved.
[0107] This method confirms the timeliness of data through time stamping, so that when the data is too old, an update strategy can be introduced to ensure that the data representation used by the cloud database has iteration and update capabilities.
[0108] Based on the above embodiments, another embodiment of the present invention is that the data sample acquired by the above-mentioned local area terminal for sample data acquisition is posture profile data, wherein the posture profile data can be obtained through dimensional data of the sensor, wherein the posture profile data generally includes position and angle information and profile information; this method is mainly used for data suitable for motion analysis and motion capture.
[0109] It should be noted that in this method, the control of restricted areas, such as people in the monitored area need to wear specific clothes and move in specific areas. Recognition is performed through posture profile data. Compared with image processing that focuses on the confirmation of color, brightness, and texture, the recognition method of posture profile data is more about the recognition of target spatial information, and focuses more on analyzing dynamic characteristics such as human movements and gait.
[0110] Based on the above embodiment, another embodiment of the present invention is that the data sample acquired by the above local area terminal for sample data acquisition is image data; this method can be applicable to living communities. Since the population in living communities is relatively fixed, this method can better record the activities of outsiders.
[0111] The above-mentioned local area terminal is a plurality of data acquisition devices, and the above-mentioned local area terminal includes a first data acquisition device and a second data acquisition device; wherein, the resolution of the above-mentioned first data acquisition device is higher than that of the second data acquisition device; a triangular recognition area is set, and the first data acquisition device and the second data acquisition device are respectively set at the center point and three vertices of the recognition area; by setting up a triangular layout in the recognition area, the first data acquisition device is installed at the center point, and the second data acquisition device is distributed at the three vertices, and this distribution method is beneficial to achieving comprehensive coverage of the recognition area and reducing blind spots for the triangular area.
[0112] The first data acquisition device and the second data acquisition device are both connected to the same server, and the server controls the first data acquisition device and the second data acquisition device to acquire data samples respectively. By deploying the first data acquisition device and the second data acquisition device with different resolutions, the deployment resources can be effectively reduced, wherein the high-resolution first data acquisition device is used to selectively acquire high-definition images, and the second data acquisition device provides overlay low-resolution image data.
[0113] A further technical solution is to set a coordinate system in the identification area, place a second data acquisition device in the identification area, obtain the straight-line distance between the target and the three second data acquisition devices, and use the straight-line distance to calculate the distances from the target to the second data acquisition devices respectively, thereby determining the coordinates of the target in the identification area;
[0114] The first data acquisition device and the second data acquisition device can be set up using triangulation technology. By setting infrared sensors in the corresponding areas of the first data acquisition device and the second data acquisition device, the position of the target in two-dimensional or three-dimensional space can be calculated. The calculation formula for determining the target coordinates is as follows:
[0115]
[0116] Where A1, A2 and A3 are the straight-line distances from the target to the three second data acquisition devices, respectively.
[0117] In the formula, and are the two-dimensional coordinates of the first and second data acquisition devices, respectively;
[0118] In the formula, and are respectively the two-dimensional coordinates of the second second data acquisition device;
[0119] In the formula, and are respectively the two-dimensional coordinates of the third second data acquisition device;
[0120] Where X and Y are the two-dimensional coordinates of the target.
[0121] The precise location of the target is determined by measuring the distance from three or more known locations to the target location. In two-dimensional space, each measured distance corresponds to the radius of a circle, and the center of the circle is located at the location of the data acquisition device. The target location is the point where three or more such circles intersect. By calculating the X and Y parameters, the coordinates of the unknown target are obtained. It should be noted that there may be measurement errors in the measurement of distances. Therefore, when the above coordinates have no solution, it usually means that the locations of the three data acquisition devices are too close or collinear, and it is mainly used to limit the conclusion of the approximate range of the target area.
[0122] The "one embodiment", "another embodiment", "embodiment", "preferred embodiment" and the like mentioned in this specification refer to the specific features, structures or characteristics described in conjunction with the embodiment as included in at least one embodiment generally described in this application. The same expression appearing in multiple places in the specification does not necessarily refer to the same embodiment. Further, when a specific feature, structure or characteristic is described in conjunction with any embodiment, it is claimed that the realization of such feature, structure or characteristic in conjunction with other embodiments also falls within the scope of the present invention.
[0123] Although the present invention is described herein with reference to a number of illustrative embodiments of the present invention, it will be appreciated that those skilled in the art may devise many other modifications and implementations that fall within the scope and spirit of the principles disclosed herein. More specifically, within the scope of the present disclosure, drawings, and claims, a variety of variations and modifications may be made to the components and / or layout of the subject combination layout. In addition to the variations and modifications made to the components and / or layout, other uses will also be apparent to those skilled in the art.
Claims
1. A pedestrian re-identification method based on complementary features of data samples, which is used to process and identify data represented by a cloud database, and is characterized in that: The steps include: S100, setting a server, a local terminal and a cloud database, wherein a plurality of pedestrian IDs and data representations of the corresponding pedestrian IDs are set in the cloud database; the server is signal-connected to the cloud database and the local terminal respectively; S200, the server configures an initial time period, and the local area terminal acquires sample data in the initial time period to obtain a first data sample and a second data sample; The first data sample is the reference data and includes the indexing vector, and the second data sample is the training data and includes a plurality of fuzzy vectors; Segmenting the first data sample and the second data sample to obtain a plurality of first data streams and a plurality of second data streams; S300, the server encodes each first data stream, obtains the indexing vector in the first data stream, obtains the fuzzy vector in the second data stream, matches the fuzzy vector with the indexing vector based on similarity, and integrates them into a data collection, and uses the same encoding for the second data stream and the first data stream in the data collection; S400, performing feature fusion on the second data stream in the data collection to obtain a first fusion feature; The indexing vector in the data collection is combined with the first fusion feature to obtain first representation data; the server inputs the first representation data into the cloud database to match it with the data representation; If a match is found in the cloud database, the server retrieves the corresponding pedestrian ID from the cloud database for time stamping; If no matching result is found in the cloud database, S500 is executed; S500, characterization fusion; the server configures a time period T1, the local terminal acquires continuous data samples within the time period T1, obtains multiple second characterization data, fuses different second characterization data to obtain a new data characterization, and stores the new data characterization in the cloud database through the server and establishes a unique pedestrian ID.
2. The method for person re-identification based on complementary features of data samples according to claim 1, characterized in that: In S300, the server configures and verifies the number N of second data streams in the data collection. When the number of second data streams integrated in the data collection is less than N, the server configures the time period T2. The server controls the local terminal in the time period T2 and repeats S300 until the number of second data streams in the data collection is greater than or equal to N; wherein N is a natural number.
3. The method for person re-identification based on complementary features of data samples according to claim 1, characterized in that: The similarity between the fuzzy vector and the indexed vector in the data collection is greater than 85%; wherein the similarity calculation formula between the fuzzy vector and the indexed vector is: ; Where S is the similarity between the fuzzy vector and the index vector; n is the number of elements in the fuzzy vector; i is the number of elements in the index vector; is the magnitude of the indexed vector; is the modulus of the fuzzy vector; in, and The calculation formula is: ; In the formula, Respectively represent each component of the blur vector in the second data stream; ; In the formula, Respectively represent each component of the indexed vector in the first data stream.
4. The method for person re-identification based on complementary features of data samples according to claim 1, characterized in that: The method further includes S600, wherein the server configures a time period T3, the local terminal acquires sample data in the time period T3 and obtains a third data sample and a fourth data sample, and the third data sample and the fourth data sample repeat steps S200 to S400 to obtain a second fusion feature and a third representation data; and the third representation data is matched with the data in the cloud database; When no matching result is found in the query library, S500 is executed. When a matching result is found in the cloud database, the corresponding pedestrian ID is obtained from the cloud database.
5. The method for person re-identification based on complementary features of data samples according to claim 4, characterized in that: The server configures a similarity threshold range; extracts a valid feature vector from the data representation corresponding to the pedestrian ID, obtains a P value of the similarity between the second fusion feature and the valid feature vector, and performs matching; If the P value is within the threshold range, the server fuses the second fused feature with the data representation of the corresponding pedestrian and updates it to the corresponding pedestrian ID; If the P value is greater than the upper limit of the set threshold range, it means that the match is correct, and the server retrieves the corresponding pedestrian ID in the cloud database for time stamping; If the P value is less than the lower limit of the threshold range, it means that the match has failed, and the data collection and processing steps are re-executed to re-identify.
6. The method for person re-identification based on complementary features of data samples according to claim 5, characterized in that: The P value is a similarity score, and the P value is calculated as follows: ; ; Where, L(A, B) is the distance between the matching elements of the second fusion feature and the effective feature vector; R is the sensitivity coefficient; A is the vector of the second fusion feature; is the i-th element in the vector of the second fusion feature; B is a valid feature vector in data representation; Corresponding to the effective feature vector in data representation The matching elements of .
7. The method for person re-identification based on complementary features of data samples according to claim 6, characterized in that: When the second fused feature is fused with the data representation of the corresponding pedestrian, the server sets the weight of the second fused feature to Q1 and sets the weight of the data representation to Q2. The second fused feature is fused with the data representation of the corresponding pedestrian to obtain a new data representation F, where the calculation formula of F is: ; In the formula, Q1>Q2, and Q2+Q1=1; A and B are the vector of the second fusion feature and the feature vector corresponding to A in the data representation, respectively, and the data representation F is updated to the corresponding pedestrian ID.
8. The method for person re-identification based on complementary features of data samples according to claim 4, characterized in that: When the first characterization data is input into the cloud database, the server time-marks the first characterization data; when the third characterization data is matched with the data characterization in the cloud database, the third characterization data is time-marked; the server obtains a time difference parameter between the time mark of the first characterization data and the mark time of the third characterization data; configures the time difference value of the server, and executes S200 if the time difference parameter is greater than the update time difference.
9. The method for person re-identification based on complementary features of data samples according to claim 1, characterized in that: The data samples acquired by the local area terminal for sample data acquisition are image data.
10. The method for person re-identification based on complementary features of data samples according to claim 1, characterized in that: The data samples acquired by the local terminal for sample data acquisition are posture profile data.
