A distributed offline identity information data processing method and system
By performing distributed offline processing of identity feature vectors and protective equipment status tags locally on the construction site terminal, the problem of unstable identity verification caused by network interruption and protective equipment obstruction is solved, and the continuity and availability of the identity verification process at the construction site are realized.
Patent Information
- Application Number
- CN202611637295.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-22
- Publication Date
- 2026-11-20
AI Technical Summary
In construction sites with weak network coverage, scattered construction areas, and high personnel mobility, existing face comparison identity verification solutions that rely on cloud servers cannot operate continuously when the network is interrupted or unavailable for a long time, and they also suffer from poor identity verification stability due to the obstruction caused by protective equipment.
A distributed offline identity information data processing method is adopted. By acquiring identity feature vectors and protective equipment status tags, incremental maintenance and retrieval expansion are performed using faceted spherical indexes and protective equipment status switching association tables. This enables continuous updating and comparison of the identity feature index on the terminal, ensuring the continuity and stability of identity verification.
In construction sites with weak network coverage or intermittent network availability, the continuity and availability of the identity verification process were achieved, the risk of the index structure being affected by misidentified samples was reduced, and the verification capability was improved in scenarios where protective equipment obstructed the view.
Smart Images

Figure CN123138253A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of distributed data processing technology, and in particular to a distributed offline identity information data processing method and system. Background Technology
[0002] Large-scale construction sites (such as hydropower stations, high-speed railways, and bridges) are generally characterized by weak network coverage, dispersed construction areas, and high personnel mobility. Traditional identity verification solutions that rely on cloud servers for real-time facial recognition are difficult to operate stably in such scenarios. Once the network is interrupted, the verification process comes to a standstill, failing to meet the construction site's continuous requirements for personnel access management and special operation qualification verification.
[0003] Meanwhile, the number of construction workers on site changes dynamically with the progress of the project. New workers are registered every day and those leaving are deregistered. If the local retrieval structure is maintained by rebuilding the feature database index, it will bring continuous and unnecessary computing overhead, which is difficult to adapt to the actual conditions of limited computing power of construction site terminal equipment. In addition, construction workers often need to wear protective equipment such as safety helmets and dust masks in different work stages, and the facial area is partially obscured to varying degrees, which also puts forward higher requirements for the stability of identity verification.
[0004] Chinese invention patent application No. 202210570558.8 discloses a face recognition and safety helmet wearing identification method. It realizes the safety supervision of smart construction sites based on the face recognition and safety helmet wearing identification analysis method of MEC edge computing in smart construction sites. However, its face comparison and status detection still rely on the network connection between the on-site equipment and the edge computing platform to complete, and does not solve the problem of continuous availability of identity verification capability under the condition of on-site network interruption or long-term unavailability. Summary of the Invention
[0005] In view of this, the present invention provides a distributed offline identity information data processing method and system, which addresses the technical problem that existing construction site identity verification schemes rely on the network connection between the device and the backend computing node, and the verification capability cannot be continuously available under network interruption or long-term unavailability conditions. The present invention enables the identity feature index to be continuously maintained and retrieved and compared locally on the terminal, ensuring the continuity and stability of the identity verification process in construction site scenarios with weak network coverage or intermittent network availability.
[0006] The technical solution of this invention is implemented as follows: On one hand, the present invention provides a distributed offline identity information data processing method, comprising: S1. Obtain the identity feature vector of the person to be verified and query the status tag of the protective equipment, wherein the identity feature vector is located in a unit spherical distribution; S2. Based on the source type of the identity feature vector, the corresponding cluster update strategy is used to incrementally maintain the faceted spherical index, resulting in a continuously maintained faceted spherical index. S3. Based on the identity feature vector of the registration source to which the cluster belongs in the continuously maintained faceted spherical index and the protective equipment status label, record the association relationship between the clusters to which the same identity belongs in different protective equipment statuses that meets the preset number of times threshold in the protective equipment status switching association table. S4. Based on the query feature vector, perform neighbor cluster expansion in the continuously maintained faceted spherical index; based on the query protective equipment status label, perform status switching expansion in the protective equipment status switching association table; and determine the templates in the clusters obtained by neighbor cluster expansion and status switching expansion as the candidate template set. S5. Compare the query feature vector with the templates in the candidate template set to obtain the identity verification result of the person to be verified.
[0007] Based on the above technical solutions, preferably, step S1 specifically includes: The acquired personnel images are subjected to target region detection to obtain target region images. Key point localization and alignment processing is performed on the target region images to obtain aligned standard target images. A lightweight convolutional neural network is used to extract features from the aligned standard target image to obtain the original feature vector. The original feature vector is then normalized to obtain the identity feature vector distributed on a unit sphere. The protective equipment status is detected in the head and face regions of the target area image to obtain protective equipment status labels.
[0008] Based on the above technical solutions, preferably, step S2 specifically includes: The identity feature vector is matched with the cluster centers in the faceted spherical index, and the identity feature vector is assigned to the corresponding cluster according to the matching result to obtain the cluster to which the identity feature vector belongs. Based on the source type of the identity feature vector, a cluster update strategy corresponding to the source type is selected, and the cluster to which the identity feature vector belongs is incrementally maintained to obtain a continuously maintained faceted spherical index. When the source type is registration source, it is allowed to adjust the cluster structure of the cluster to which the identity feature vector belongs and update the complete statistical information of the cluster to which the identity feature vector belongs; When the source type is online, compare the cluster dispersion before and after merging the identity feature vector. Based on the comparison result, choose to update the skeleton information of the cluster to which the identity feature vector belongs, or only update the statistical information corresponding to the identity to which the identity feature vector belongs.
[0009] Based on the above technical solutions, preferably, the cluster update strategy specifically includes: When the source type is registration source, the identity feature vector is merged into the cluster to which the identity feature vector belongs, the complete statistical information of the cluster to which the identity feature vector belongs is updated, and the cluster center, cluster dispersion and cluster size are refreshed according to the updated complete statistical information to obtain the updated cluster center, updated cluster dispersion and updated cluster size. When the source type is registration source, the cluster structure of the cluster to which the identity feature vector belongs is adjusted according to the updated cluster dispersion and the updated cluster size: when the updated cluster dispersion is greater than the preset splitting threshold, the cluster to which the identity feature vector belongs is split to obtain the split sub-cluster; when the updated cluster size is lower than the preset size lower limit, the cluster to which the identity feature vector belongs is merged into the nearest neighboring cluster with the nearest dot product to obtain the merged cluster. When the source type is online, the cluster dispersion after merging the identity feature vector is calculated based on the complete statistical information of the identity feature vector and the cluster to which the identity feature vector belongs, and the cluster dispersion after merging is obtained. When the source type is online, the cluster dispersion after merging is compared with the cluster dispersion of the cluster to which the identity feature vector belongs: if the cluster dispersion after merging is not greater than the cluster dispersion of the cluster to which the identity feature vector belongs, the skeleton information of the cluster to which the identity feature vector belongs is updated to obtain the updated skeleton information; if the cluster dispersion after merging is greater than the cluster dispersion of the cluster to which the identity feature vector belongs, only the statistical information corresponding to the identity to which the identity feature vector belongs is updated, without changing the skeleton information of the cluster to which the identity feature vector belongs.
[0010] Based on the above technical solutions, preferably, step S3 specifically includes: Based on the cluster to which the identity feature vector of the registration source belongs in the continuously maintained faceted spherical index and the protective equipment status label, the clusters to which the same identity belongs in different protective equipment statuses are associated to obtain the association relationships to be counted. The number of associations is obtained by deduplicating the associations based on identity. Relationships that have reached a preset threshold in the number of associations to be counted are recorded in the protective equipment status switching association table; identity feature vectors from online sources are not written into the protective equipment status switching association table.
[0011] Based on the above technical solutions, preferably, step S4 specifically includes: The images of the personnel to be verified are processed to obtain the query feature vector and the query protective equipment status label; Within the retrieval budget, neighbor cluster expansion is performed in the continuously maintained faceted spherical index based on the query feature vector, and state switching expansion is performed in the protective equipment state switching association table based on the query protective equipment state label, so as to obtain the clusters obtained by neighbor cluster expansion and the clusters obtained by state switching expansion respectively. The clusters obtained from neighbor cluster expansion and the clusters obtained from state switching expansion are merged, and the templates in the merged clusters are determined as the candidate template set.
[0012] Based on the above technical solutions, preferably, the step of performing neighbor cluster exploration in a continuously maintained faceted spherical index based on query feature vectors specifically includes: The query feature vector is matched with the cluster centers in the continuously maintained faceted spherical index to obtain the cluster to which the query feature vector belongs and the second nearest cluster, and the cluster to which the query feature vector belongs is included in the cluster obtained by expanding the neighbor cluster. Based on the cluster size of the cluster to which the query feature vector belongs and the vector sum of the second nearest cluster, the angular displacement exploration range is determined, and the angular displacement exploration range is obtained. The angular gap is calculated based on the query feature vector, the cluster center of the cluster to which the query feature vector belongs, and the cluster center of the next nearest cluster. When the angular gap falls within the angular displacement exploration range, the second nearest cluster and the cluster to which the query feature vector belongs are combined as neighboring clusters for exploration. When the angular gap does not fall within the angular displacement exploration range, the cluster to which the query feature vector belongs is taken as the cluster obtained by the neighboring cluster exploration.
[0013] Based on the above technical solutions, preferably, the step of performing state switching exploration in the protective equipment state switching association table based on querying the protective equipment state label specifically includes: In the protective equipment status switching association table, select the associations that start with the query of the protective equipment status label and have reached the preset number of associations threshold to obtain the associations to be explored. Within the retrieval budget, the clusters pointed to by the associations to be explored are preferentially determined as the clusters obtained by state switching exploration based on the number of associations; If there is no correlation to be expanded in the status switching association table of protective equipment, the cluster obtained by expanding the neighboring cluster will be used as the cluster obtained by expanding the status switching.
[0014] Furthermore, step S5 specifically includes: The similarity between the query feature vector and the templates in the candidate template set is calculated using the dot product operation to obtain the comparison similarity. The maximum similarity is obtained by determining the maximum value among the similarity scores. The maximum similarity is compared with the preset pass threshold and the preset rejection threshold: if the maximum similarity is not lower than the preset pass threshold, the identity verification result is passed; if the maximum similarity is lower than the preset rejection threshold, the identity verification result is rejected; if the maximum similarity is between the preset rejection threshold and the preset pass threshold, the identity verification result is pending review.
[0015] In addition, the present invention also provides a distributed offline identity information data processing system to implement the above-described distributed offline identity information data processing method, comprising: The feature extraction module is used to process the collected personnel images to obtain identity feature vectors and protective equipment status labels distributed on a unit spherical surface. The index maintenance module is used to incrementally maintain the faceted spherical index according to the source type of the identity feature vector and the corresponding cluster update strategy, so as to obtain a continuously maintained faceted spherical index. The association table construction module is used to record the association relationship between the same identity in different protective equipment states that meets a preset number of times threshold in the protective equipment state switching association table, based on the identity feature vector of the registration source to which the cluster belongs in the continuously maintained faceted spherical index and the protective equipment state label. The retrieval expansion module is used to process the image of the personnel to be verified, obtain the query feature vector and the query protective equipment status label, perform neighbor cluster expansion based on the query feature vector in the continuously maintained faceted spherical index, and perform status switching expansion based on the query protective equipment status label in the protective equipment status switching association table. The templates in the clusters obtained by the neighbor cluster expansion and the status switching expansion are determined as the candidate template set. The identity verification module is used to compare the query feature vector with the templates in the candidate template set to obtain the identity verification result of the person to be verified.
[0016] The present invention has the following advantages over the prior art: (1) By incrementally maintaining the faceted spherical index by adopting the corresponding cluster update strategy according to the source type of the identity feature vector, and by combining the protective equipment status switching association table to assist in retrieval expansion, the identity feature index can be continuously adapted and changed locally on the terminal as personnel move, without relying on the real-time connection and full reconstruction of the back-end computing node. Overall, this ensures the continuity and availability of the identity verification process in construction site scenarios with weak network coverage or intermittent network availability.
[0017] (2) Different cluster update strategies are adopted for the identity feature vectors of registered sources and online sources respectively, so as to avoid using samples that may be biased in the verification process to directly change the skeleton structure of the index, thereby reducing the risk of the index structure being shifted due to misidentified samples while maintaining the continuous update capability of the index.
[0018] (3) Based on the cluster to which the identity feature vector of the registration source belongs and the corresponding protective equipment status label, the inter-cluster association relationship of the same identity under different protective equipment statuses is counted after identity deduplication and reaches a preset threshold before being recorded in the protective equipment status switching association table. This ensures that the inter-cluster correspondence reflected in the association table is based on a certain statistical support, reducing misjudgments caused by accidental co-clustering.
[0019] (4) In the retrieval stage of identity verification, the neighbor cluster expansion based on the faceted spherical index and the state switching expansion based on the protective equipment state switching association table are combined to obtain candidate templates in parallel within the retrieval budget. This allows the candidate template set to cover templates in the neighboring regions of the feature space as well as the same identity templates distributed in different clusters due to changes in the state of the protective equipment. This improves the candidate coverage capability of identity verification in the scenario of protective equipment occlusion with limited retrieval overhead. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a flowchart of a distributed offline identity information data processing method according to the present invention; Figure 2 This is a schematic diagram illustrating feature extraction in a distributed offline identity information data processing method according to the present invention; Figure 3 This is a schematic diagram of the cluster update strategy of a distributed offline identity information data processing method according to the present invention; Figure 4 This is a schematic diagram of the structure of a distributed offline identity information data processing method according to the present invention. Detailed Implementation
[0022] The technical solutions of the present invention will be clearly and completely described below with reference to the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0023] like Figure 1 As shown, the present invention provides a distributed offline identity information data processing method, comprising: S1. Obtain the identity feature vector of the person to be verified and query the status tag of the protective equipment, wherein the identity feature vector is located in a unit spherical distribution; Specifically, step S1 includes: The acquired personnel images are subjected to target region detection to obtain target region images. Key point localization and alignment processing is performed on the target region images to obtain aligned standard target images. A lightweight convolutional neural network is used to extract features from the aligned standard target image to obtain the original feature vector. The original feature vector is then normalized to obtain the identity feature vector distributed on a unit sphere. Protective equipment status detection is performed on the head and face regions of the target area image to obtain protective equipment status labels. The value range of these labels includes discrete states such as no protective equipment, wearing a safety helmet, wearing a mask, and wearing both a safety helmet and a mask.
[0024] In one embodiment of the present invention, the acquired personnel image is first subjected to adaptive Gaussian filtering for noise reduction, and then target region detection is performed to locate the target region where the human head and face are located, thereby obtaining the target region image; key point localization is performed on the target region image, and five reference key points are output, namely the center of the eyes, the tip of the nose, and the left and right corners of the mouth, forming a feature point set, and the confidence score corresponding to each key point is also output; the feature point set is compared with a pre-set standard template key point set, and the affine transformation matrix is calculated by the least squares method. This matrix is a 2-row, 3-column matrix. The affine transformation matrix is used to perform an affine transformation on the target region image, and bicubic interpolation is used for resampling to output the aligned standard target image.
[0025] like Figure 2 As shown, in one embodiment of the present invention, a lightweight convolutional neural network after channel pruning and knowledge distillation compression is used as the backbone network to perform forward inference on the aligned standard target image and output a 128-dimensional original feature vector. The original feature vector is subjected to L2 normalization to obtain an identity feature vector distributed on a unit sphere, making the dot product operation equivalent to the cosine similarity calculation. When multiple qualified images are obtained in the same acquisition period, the unit feature vectors corresponding to each frame are averaged and then L2 normalization is performed again. The normalized result is used as the identity feature vector of this acquisition. When only a single frame image is obtained, the unit feature vector corresponding to that frame is directly used as the identity feature vector.
[0026] Among them, the SHA-256 hash value can be calculated on the identity feature vector. This hash value is used for deduplication and integrity verification during the data synchronization process, and is not used as the key value for index retrieval.
[0027] In one embodiment of the present invention, while extracting features, a quality score is calculated by combining key point confidence, image sharpness score, and illumination uniformity score. The image sharpness score can be represented by the Laplacian variance normalized value, and the illumination uniformity score can be represented by the gray-level histogram entropy normalized value. The quality score is calculated using the following formula: ; in, Indicates mass fraction. Indicates the confidence level of key points. Indicates the image sharpness score. This indicates the score for uniformity of illumination. , , These are the weighting coefficients corresponding to key point confidence, image sharpness score, and illumination uniformity score, respectively.
[0028] Records with quality scores below a preset quality threshold are marked as pending additional sampling, and their corresponding identity feature vectors are not included in the faceted spherical index.
[0029] In one embodiment of the present invention, , , The values are 0.4, 0.35, and 0.25, with a preset quality threshold of 0.6.
[0030] In one embodiment of the present invention, the detection of a safety helmet can be achieved based on the HSV threshold segmentation results of common color gamuts of safety helmets and the circular or elliptical contour features of the area above the head; the detection of a face mask can be achieved based on the occlusion ratio and texture flatness of the area below the nose. When no protective equipment is detected, the protective equipment status label is recorded as no protective equipment.
[0031] S2. Based on the source type of the identity feature vector, the corresponding cluster update strategy is used to incrementally maintain the faceted spherical index, resulting in a continuously maintained faceted spherical index. Specifically, step S2 includes: The identity feature vector is matched with the cluster centers in the faceted spherical index, and the identity feature vector is assigned to the corresponding cluster according to the matching result to obtain the cluster to which the identity feature vector belongs. Based on the source type of the identity feature vector, a cluster update strategy corresponding to the source type is selected, and the cluster to which the identity feature vector belongs is incrementally maintained to obtain a continuously maintained faceted spherical index. When the source type is registration source, it is allowed to adjust the cluster structure of the cluster to which the identity feature vector belongs and update the complete statistical information of the cluster to which the identity feature vector belongs; When the source type is online, compare the cluster dispersion before and after merging the identity feature vector. Based on the comparison result, choose to update the skeleton information of the cluster to which the identity feature vector belongs, or only update the statistical information corresponding to the identity to which the identity feature vector belongs.
[0032] Understandably, a faceted spherical index consists of multiple clusters. Each cluster maintains complete statistical information, including the vector sum of all identity feature vectors within the cluster and the number of members. The cluster size is the number of members. The cluster center and cluster dispersion are determined by the complete statistical information. The skeleton information includes the vector sum, the number of members, the cluster center, and the cluster dispersion. The cluster center is obtained by normalizing the vector sum; the cluster dispersion is calculated using the following formula: ; in, Indicates cluster dispersion. This represents the vector sum of the cluster. The cluster size represents the number of members in the cluster. Represents vector sum The L2 norm, i.e., the magnitude. When all vectors within a cluster are identical, =0; the more dispersed the vectors within a cluster are on the unit sphere, the better. The larger.
[0033] like Figure 3 As shown, in one embodiment of the present invention, the cluster update strategy specifically includes: When the source type is registration source, the identity feature vector is merged into the cluster to which the identity feature vector belongs. The complete statistical information of the cluster to which the identity feature vector belongs is updated, and the cluster center, cluster dispersion, and cluster size are refreshed based on the updated complete statistical information, resulting in the updated cluster center, updated cluster dispersion, and updated cluster size: ; ; in, This represents the vector sum of the cluster. This represents the merged identity feature vector. This indicates the number of members in the cluster. Indicates the updated cluster center. This represents the updated cluster dispersion. Represents vector sum The L2 norm; When the source type is registration source, the cluster structure of the cluster to which the identity feature vector belongs is adjusted according to the updated cluster dispersion and the updated cluster size: when the updated cluster dispersion is greater than the preset splitting threshold, the cluster to which the identity feature vector belongs is split to obtain the split sub-cluster; when the updated cluster size is lower than the preset size lower limit, the cluster to which the identity feature vector belongs is merged into the nearest neighboring cluster with the nearest dot product to obtain the merged cluster. When the source type is online, the cluster dispersion after merging the identity feature vectors is calculated based on the complete statistical information of the clusters to which the identity feature vectors belong, and the resulting cluster dispersion is: ; in, Indicates the cluster dispersion after merging. This represents the sum of vectors representing the current cluster to which the identity feature vector belongs. This represents the identity feature vector to be merged. This indicates the current number of members in the cluster to which the identity feature vector belongs. The L2 norm of the vector sum plus the identity feature vector to be incorporated is represented; When the source type is online, the cluster dispersion after merging is compared with the cluster dispersion of the cluster to which the identity feature vector belongs: if the cluster dispersion after merging is not greater than the cluster dispersion of the cluster to which the identity feature vector belongs, the skeleton information of the cluster to which the identity feature vector belongs is updated to obtain the updated skeleton information; if the cluster dispersion after merging is greater than the cluster dispersion of the cluster to which the identity feature vector belongs, only the statistical information corresponding to the identity to which the identity feature vector belongs is updated, without changing the skeleton information of the cluster to which the identity feature vector belongs.
[0034] Understandably, when the total size of the identity feature vectors exceeds the preset indexing threshold, the existing identity feature vectors are clustered on a unit sphere to obtain the initial cluster partitioning of the faceted spherical index. Let... This represents the total size of the identity feature vector. This represents the total number of clusters, where the total number of clusters is: ; in, This indicates rounding up. The cluster center is the normalized result of the sum of the vectors of that cluster.
[0035] If the total size of the identity feature vector is lower than the preset indexing threshold, a hierarchical index will not be built.
[0036] This invention employs different cluster update strategies for the identity feature vectors of registered sources and online sources, avoiding the direct use of samples that may have biases during the verification process to change the skeleton structure of the index. This reduces the risk of the index structure shifting due to misidentified samples while maintaining the index's continuous update capability.
[0037] In one embodiment of the present invention, when the source type is a registered source, if the updated cluster size is lower than a preset lower limit, during merging, the vector sums and member counts of the two clusters are added together, and the resulting vector sums are re-normalized to obtain the cluster center of the merged cluster. When a cluster splits, the original association relationships of the cluster are reassigned to the corresponding sub-clusters after the split according to the endpoints; when a cluster merges, the original association relationships of the two clusters are merged according to the same endpoint rules, and the association count is not recounted due to changes in endpoints.
[0038] In one embodiment of the present invention, the incremental maintenance of the faceted spherical index includes not only adding new data but also deleting new data. When deleting an identity feature vector, if the vector has previously been written into the complete statistical information of its cluster, then... Write back complete statistical information, including This represents the deleted identity feature vector. This represents the vector sum of the cluster. This indicates the number of members in the cluster, and the cluster center and cluster dispersion are updated accordingly. If the vector has not been previously written into the complete statistical information of its cluster, deletion only updates the statistical information of the corresponding identity, without changing the cluster's skeleton information. If the number of members in a cluster decreases to zero after deletion, the cluster and its related relationships are deleted. If the number of members in a cluster is lower than a preset minimum size, the cluster is merged into the nearest neighboring cluster with the closest dot product. During the merge, the vector sums and member counts of the two clusters are added together, and the resulting vector sum is re-normalized to obtain the cluster center of the merged cluster. The preset minimum size can be set according to the ratio of the total number of clusters in the faceted spherical index to the total size of the identity feature vectors. In one embodiment, this ratio can be 0.2 times, that is, if the total size of the identity feature vectors is... The total number of clusters is The preset lower limit of the scale is 0.2.
[0039] Understandably, regardless of whether additions or deletions are made, the faceted spherical index is continuously maintained.
[0040] S3. Based on the identity feature vector of the registration source to which the cluster belongs in the continuously maintained faceted spherical index and the protective equipment status label, record the association relationship between the clusters to which the same identity belongs in different protective equipment statuses that meets the preset number of times threshold in the protective equipment status switching association table. Specifically, step S3 includes: Based on the cluster to which the identity feature vector of the registration source belongs in the continuously maintained faceted spherical index and the protective equipment status label, the clusters to which the same identity belongs in different protective equipment statuses are associated to obtain the association relationships to be counted. The number of associations is obtained by deduplicating the associations based on identity. Relationships that have reached a preset threshold in the number of associations to be counted are recorded in the protective equipment status switching association table; identity feature vectors from online sources are not written into the protective equipment status switching association table.
[0041] Understandably, for each identity feature vector of a registration source, based on the cluster to which it belongs in the continuously maintained faceted spherical index and the protective equipment status label corresponding to the identity feature vector, the clusters to which the identity feature vectors of other protective equipment statuses corresponding to the same registration source belong are checked, and the cluster pairs formed by the clusters to which the same identity belongs in different protective equipment statuses, as well as the corresponding starting protective equipment status and target protective equipment status, are constructed into a countable association relationship.
[0042] This invention, based on the cluster to which the identity feature vector of the registration source belongs and the corresponding protective equipment status label, counts the inter-cluster associations of the same identity under different protective equipment statuses by identity deduplication and only records them into the protective equipment status switching association table after reaching a preset number of times. This ensures that the inter-cluster correspondence reflected in the association table is based on a certain statistical support, reducing misjudgments caused by accidental co-clustering.
[0043] S4. Based on the query feature vector, perform neighbor cluster expansion in the continuously maintained faceted spherical index; based on the query protective equipment status label, perform status switching expansion in the protective equipment status switching association table; and determine the templates in the clusters obtained by neighbor cluster expansion and status switching expansion as the candidate template set. Specifically, step S4 includes: The images of the personnel to be verified are processed to obtain the query feature vector and the query protective equipment status label; Within the retrieval budget, neighbor cluster expansion is performed in the continuously maintained faceted spherical index based on the query feature vector, and state switching expansion is performed in the protective equipment state switching association table based on the query protective equipment state label, so as to obtain the clusters obtained by neighbor cluster expansion and the clusters obtained by state switching expansion respectively. The clusters obtained from neighbor cluster expansion and the clusters obtained from state switching expansion are merged, and the templates in the merged clusters are determined as the candidate template set.
[0044] In one embodiment of the present invention, the image of the person to be verified is processed according to the aforementioned target area detection, key point localization and alignment, feature extraction, normalization, and protective equipment status detection to obtain a query feature vector and a query protective equipment status label. The recognition end can maintain a channel working set with limited capacity, storing the identity of the person whose most recent verification result is passed and a representative vector thereof. The representative vector is preferentially taken from a template of the same type as the query protective equipment status label. The new query feature vector is first calculated with the representative vector in the working set to calculate the dot product. If the maximum dot product is not lower than the preset passing threshold, the identity verification result is directly given, and neighbor cluster expansion and status switching expansion are not performed. If the preset passing threshold is not reached, the following hierarchical retrieval is then performed.
[0045] When the total size of the identity feature vector is less than the preset indexing threshold, a hierarchical index is not built. Instead, the dot product of the query feature vector with each template is calculated. In this case, neighbor cluster expansion and state switching expansion are no longer performed. When the total size of the identity feature vector is not less than the preset indexing threshold, the dot product of the query feature vector with all the normalized cluster centers in the continuously maintained faceted spherical index is calculated. The dot products are sorted from largest to smallest, and the cluster with the largest dot product is taken as the cluster to which the query feature vector belongs.
[0046] Within the retrieval budget, neighbor cluster expansion is performed based on the cluster to which the query feature vector belongs and its second nearest cluster. Simultaneously, state switching expansion is performed in the protective equipment state switching association table based on the query protective equipment status label. These two processes are executed in parallel, yielding clusters obtained from neighbor cluster expansion and state switching expansion, respectively. The clusters obtained from neighbor cluster expansion and state switching expansion are then merged, and all templates contained within the merged cluster are extracted to form the candidate template set. The retrieval budget is the upper limit for the number of probed clusters. The retention order is: the cluster to which the query feature vector belongs, the second nearest clusters obtained from neighbor cluster expansion, and then the clusters obtained from state switching expansion are included in descending order of association count. Clusters exceeding the retrieval budget are not included. When the retrieval budget is exhausted, both neighbor cluster expansion and state switching expansion are truncated within the budget.
[0047] The retrieval budget can be set according to actual usage needs, and this invention does not impose specific limitations on it.
[0048] In one embodiment of the present invention, neighbor cluster exploration is performed in a continuously maintained faceted spherical index based on query feature vectors, specifically including: The query feature vector is matched with the cluster centers in the continuously maintained faceted spherical index to obtain the cluster to which the query feature vector belongs and the second nearest cluster, and the cluster to which the query feature vector belongs is included in the cluster obtained by expanding the neighbor cluster. Based on the cluster size of the cluster to which the query feature vector belongs and the vector sum of the second nearest cluster, the angular displacement exploration range is determined, and the angular displacement exploration range is obtained. Based on the query feature vector, the cluster center of the cluster to which the query feature vector belongs, and the cluster center of the second nearest cluster, the angular gap is calculated, and the formula for calculating the angular gap is: ; The angular displacement exploration range is calculated using the following formula: ; The upper limit of angular displacement β1 of the cluster to which the eigenvector belongs and the upper limit of angular displacement β2 of the second nearest cluster are determined by the following formulas: ; ; When the angular gap is not greater than the angular displacement expansion range, it satisfies the following conditions. ; in, This represents the query feature vector. This indicates the cluster center of the cluster to which the query feature vector belongs. Indicates the cluster center of the second nearest cluster. This represents the dot product between the query feature vector and the cluster center of its corresponding cluster. This represents the dot product of the query feature vector and the second nearest cluster center. The left side represents the angular gap, and the right side represents the angular displacement expansion range. This indicates the upper limit of the angular displacement of the cluster. This represents the current vector sum of the cluster. Represents vector sum L2 norm, This indicates the upper limit of the angular displacement of the cluster to which the queried feature vector belongs. This indicates the upper limit of the angular displacement of the second nearest cluster; When the angular gap falls within the angular displacement exploration range, the second nearest cluster and the cluster to which the query feature vector belongs are combined as neighboring clusters for exploration. When the angular gap does not fall within the angular displacement exploration range, the cluster to which the query feature vector belongs is taken as the cluster obtained by the neighboring cluster exploration.
[0049] Understandably, if the angular gap falls within the angular displacement expansion range, the affiliation between the cluster to which the queried feature vector belongs and the next nearest cluster may be reversed during the incremental maintenance process by the next cluster center update. In this case, the next nearest cluster and the cluster to which the queried feature vector belongs are both considered as clusters obtained through neighbor cluster expansion. If the angular gap does not fall within the angular displacement expansion range, the affiliation is relatively stable, and in this case, only the cluster to which the queried feature vector belongs is considered as a cluster obtained through neighbor cluster expansion.
[0050] In one embodiment of the present invention, the expansion of state switching based on querying the protective equipment status tag in the protective equipment status switching association table specifically includes: In the protective equipment status switching association table, select the associations that start with the query of the protective equipment status label and have reached the preset number of associations threshold to obtain the associations to be explored. Within the retrieval budget, the clusters pointed to by the associations to be explored are preferentially determined as the clusters obtained by state switching exploration based on the number of associations; If there is no correlation to be expanded in the status switching association table of protective equipment, the cluster obtained by expanding the neighboring cluster will be used as the cluster obtained by expanding the status switching.
[0051] Understandably, a relationship includes the initial protective equipment state, the target protective equipment state, and two clusters. The cluster pointed to by the relationship to be expanded is the cluster corresponding to the target protective equipment state. State switching expansion is based on querying the protective equipment state label rather than querying the geometric relationship between the feature vector and the cluster center. Before the identity of the person to be verified is determined, clusters that are geometrically non-adjacent due to changes in protective equipment state can be included in the candidate range. If there is no relationship in the protective equipment state switching relationship table that starts with the queried protective equipment state label and has reached a preset threshold number of associations, the cluster obtained from neighboring cluster expansion is used as the cluster obtained from state switching expansion. This allows state switching expansion to degenerate into the result of neighboring cluster expansion when there is a lack of available relationships, and the construction of the candidate template set is not interrupted due to the lack of corresponding records in the relationship table.
[0052] In the identity verification retrieval stage, this invention combines neighbor cluster expansion based on faceted spherical index with state switching expansion based on protective equipment state switching association table. Candidate templates are obtained in parallel within the retrieval budget, so that the candidate template set can cover templates in the neighboring region of the feature space, as well as the same identity templates distributed in different clusters due to changes in the state of protective equipment. This improves the candidate coverage capability of identity verification in protective equipment occlusion scenarios with limited retrieval overhead.
[0053] S5. Compare the query feature vector with the templates in the candidate template set to obtain the identity verification result of the person to be verified.
[0054] Specifically, step S5 includes: The similarity between the query feature vector and the templates in the candidate template set is calculated using the dot product operation to obtain the comparison similarity. The maximum similarity is obtained by determining the maximum value among the similarity scores. The maximum similarity is compared with the preset pass threshold and the preset rejection threshold: if the maximum similarity is not lower than the preset pass threshold, the identity verification result is passed; if the maximum similarity is lower than the preset rejection threshold, the identity verification result is rejected; if the maximum similarity is between the preset rejection threshold and the preset pass threshold, the identity verification result is pending review.
[0055] Furthermore, a dot product is calculated between each template in the candidate template set and the query feature vector. Since both the query feature vector and the templates in the candidate template set are normalized unit vectors, the dot product result is equivalent to the cosine similarity. This dot product result is used as the alignment similarity of the corresponding template. The alignment similarities of multiple templates corresponding to the same identity can be aggregated according to a preset method, and the maximum value after aggregation is taken as the alignment similarity corresponding to that identity. This maximum alignment similarity is then determined from the alignment similarities corresponding to all candidate identities.
[0056] When the maximum similarity is not lower than the preset pass threshold, the identity verification result is determined to be passed, and the identity information corresponding to the maximum similarity is read; when the maximum similarity is lower than the preset rejection threshold, the identity verification result is determined to be rejected; when the maximum similarity is between the preset rejection threshold and the preset pass threshold, the identity verification result is determined to be pending review, and a prompt is made to conduct manual review or re-collect data. When pending review, the data is not written to the online source template.
[0057] When identity verification is successful, the query feature vector can be written to the channel working set. When identity verification is successful and the following online supplementary conditions are met simultaneously, the query feature vector can be written to the template set as an online source, and the faceted spherical index is incrementally maintained according to the aforementioned cluster update strategy: the query protective equipment status label is stable; the number of templates for the identity in the corresponding status of the query protective equipment status label has not reached the upper limit; if there is already a template in that status, the dot product of the query feature vector and the existing template in the same status is lower than the preset diversity threshold. When the upper limit is exceeded, the online source template with the lowest quality score in the same status is first eliminated; if there is no online source template, the registered source template with the lowest quality score is then eliminated, and the vector sum and member count are rewritten according to whether the eliminated template had written complete statistical information at the time of deletion. The writing of online sources is not recorded in the protective equipment status switching association table. If the identity already has a registered source template in the protective equipment status, it will not be written to the online source template again.
[0058] This invention incrementally maintains the faceted spherical index by adopting a corresponding cluster update strategy based on the source type of the identity feature vector, and combines it with the protective equipment status switching association table to assist in retrieval expansion. This enables the identity feature index to continuously adapt and change locally on the terminal as personnel move, without relying on the real-time connection and full reconstruction of the backend computing node. Overall, this ensures the continuity and availability of the identity verification process in construction site scenarios with weak network coverage or intermittent network availability.
[0059] like Figure 4As shown, in one embodiment of the present invention, the method of collecting personnel images can be implemented through a data acquisition device. The data acquisition device is used to collect multi-angle images of various protective equipment states during personnel entry registration. The identity feature vector and protective equipment state label obtained from feature extraction and protective equipment state detection processing are marked as the registration source. During the registration process, two types of images can be collected for the same person: one without protective equipment and one wearing a safety helmet. When conditions permit, images of the person wearing a mask, or wearing both a safety helmet and a mask, can be further collected. All types of images are written into a faceted spherical index according to the registration source and participate in the construction of the protective equipment state switching association table.
[0060] The process of collecting and comparing images of personnel to be verified can be independently executed by the recognition devices deployed at various entrances to the construction site. These devices have built-in local databases and vector calculation areas, allowing verification to be completed locally even during network interruptions, based on the synchronized faceted spherical index and protective equipment status switching association table, without relying on real-time communication with the server. If the identity verification result is successful and the corresponding identity feature vector meets the aforementioned online supplementation conditions, the identity feature vector can be marked as an online source, and incremental maintenance can be completed locally at the recognition device according to the aforementioned cluster update strategy.
[0061] The server is used to maintain data copies of personnel information and templates. After receiving the registration source data uploaded by the collection terminal, it performs data entry, determines the cluster affiliation according to the aforementioned cluster update strategy, and maintains the protective equipment status switching association table according to the aforementioned association relationship rules. Data synchronization between the server and the identification terminal can adopt an incremental method based on change type. After marking the change type and version number for changes such as addition, modification, and deletion, the data is sent to the identification terminal. After receiving the data, the identification terminal updates its local faceted spherical index and protective equipment status switching association table accordingly. There is no need to rebuild the entire data, so that the identity feature index can maintain consistency with the server data under intermittent network availability conditions.
[0062] The present invention will be described in detail with reference to the following specific embodiments: Example 1: Full Deployment and Offline Verification Implementation Taking a hydropower project construction site as an example, the implementation steps are as follows: (1) Deploy the identity information management application and configure the database on the server side. The collection terminal is installed at the on-site registration point. The identification terminal is deployed at the channel entrance and completes the initialization of the local database and vector calculation area. The three terminals are physically separated, and the identification terminal can verify without relying on the real-time link with the server.
[0063] (2) The acquisition unit registered each of the 500 construction workers on site. At least two types of images were collected for each worker: one without protective equipment and one wearing a safety helmet. If conditions permitted, images of workers wearing masks and simultaneously wearing both a safety helmet and a mask were also collected. Each image underwent adaptive Gaussian filtering for noise reduction, target region detection, 5 keypoint localization, and affine transformation alignment. The input was then processed by a lightweight convolutional neural network compressed through channel pruning and knowledge distillation, outputting a 128-dimensional original feature vector, which was then L2 normalized to obtain an identity feature vector located on a unit sphere. Protective equipment status labels were detected in parallel. Quality scores were calculated based on... Calculations are performed, and records with a value below 0.6 are marked as awaiting supplementary collection and not entered into the database. Qualified records are marked as the registration source. When multiple frames are qualified within the same collection period, the unit vectors of each frame are averaged and then L2 normalized. SHA-256 is calculated for the unit feature vectors, used only for synchronous deduplication and integrity verification, and not as a search key. For 500 people, assuming two types of protective equipment status, approximately 1000 identity feature vectors are obtained.
[0064] (3) The server assigns each identity feature vector to the corresponding cluster of the faceted spherical index according to the registration source, updates the complete statistical information, and allows adjustment of the cluster structure. The clusters to which the same identity belongs under different protective equipment states form a countable association relationship, and the count is deduplicated according to identity; the association count reaches 2 times and is recorded in the protective equipment state switching association table. After the identification terminal connects to the network, it pulls the registration data, sufficient statistics of the faceted spherical index, and association table according to the change type and version number. The total size of the template M=1000, which is lower than the preset index building threshold of 5000, so no hierarchical index is built.
[0065] (4) Patrol personnel enter a construction site without network access. The identification terminal collects images of the personnel to be verified, and feature extraction and protective equipment status detection are performed in parallel. Feature extraction takes no more than 30ms, and the query feature vector q and the query protective equipment status label are obtained. First, a dot product is performed with a channel working set with a capacity of 50. When the maximum dot product is not lower than the preset passing threshold of 0.62, it is directly judged as passing, and the working set is refreshed. When the working set is not matched, since M is less than 5000, a dot product is performed on all templates in the memory computing area, without going through neighbor cluster expansion and state switching expansion. The maximum similarity is 0.71, not lower than 0.62, and the verification result is passing. The corresponding identity information is output, and the representative vector is written into the working set. In this query, the protective equipment status is wearing a safety helmet. There is already a registered source template for this identity and status in the database, so it will not be written into the online source.
[0066] (5) If the same person who just passed through appears again in the same channel, the work set is hit, the dot product is 0.74, which is not less than 0.62, so the person passes directly without a full table comparison.
[0067] Example 2: Implementation of Incremental Data Synchronization Coupled with Spherical Statistics Taking the field of Example 1 as an example, the implementation steps are as follows: (1) Ten new construction workers entered the site. The data acquisition terminal collected images of two types based on the registered source: those without protective equipment and those wearing safety helmets, resulting in 20 identity feature vectors and corresponding protective equipment status tags. The certificate status of three other on-site personnel was updated; only the personnel information was changed, not the vectors. Two other personnel left the site, and all their templates were deleted. After the inspection, the identification terminal reconnected to the network, carrying the device identifier and the last synchronization version number to initiate incremental synchronization.
[0068] (2) The server packages the data according to the change type: 20 registration source templates are newly added, 3 personnel information are modified, and the templates for departing personnel are deleted, along with sufficient statistics of the affected clusters and changes to the related table edges. Since the fragmentation threshold is not exceeded, it is packaged into one incremental packet, and the global SHA-256 is calculated before being sent. Compared to the full distribution of approximately 1000 templates locally in Implementation Example 1, this time only changes are transmitted, reducing the transmission volume by more than 90%, and synchronization is completed in seconds.
[0069] (3) After verifying the consistency of the summary at the identification end, the change is implemented according to the change type. For newly added registration source templates: the dot product with the center of each cluster is used to assign them to the cluster with the largest dot product, and so on. Update to complete statistics and then refresh. ; Where S is the cluster vector sum, x is the identity feature vector of the merged cluster, n is the number of members, C is the cluster center, and ρ is the cluster dispersion. Let ρ be the L2 norm of the vector sum. After the update, clusters with ρ greater than the preset splitting threshold are subjected to local spherical bisection; clusters with fewer than 0.2×M / K members are merged into the nearest neighboring cluster with the dot product. New clusters with the same identity across different protective equipment states are counted as associations based on identity deduplication, and those reaching 2 are written into the association table. When deleting a departing personnel template, if the vector has been written into complete statistical information, then... The system refreshes C and ρ; if the number of members decreases to 0, the cluster and its associations are deleted. Modifying the certificate status does not change the skeleton information. Online sources do not write to the association table.
[0070] (4) After synchronization is completed, the identification terminal performs another offline inspection. The local template, faceted spherical index, and protective equipment status switching association table are consistent with the server, covering the addition of 10 people and deletion upon departure, without the need for a full index rebuild.
[0071] Example 3: Implementation of Large-Scale Faceted Spherical Indexing and Dual-Channel Probing Taking a large-scale hydropower project cluster as an example, with a total local template size of M=100000, the implementation steps are as follows: (1) If M exceeds the preset indexing threshold of 5000, construct a faceted spherical index. (Total number of clusters) ; Each cluster maintains a vector sum S, the number of members n, and the cluster center. Cluster dispersion Registered sources allow for increased dispersion and split clusters; online sources are only allowed if cluster dispersion is incorporated. ; The skeleton information is updated only if ρ'≤ρ; otherwise, only the identity statistics information is updated.
[0072] (2) A person wearing a safety helmet enters the passage. Feature extraction takes no more than 30ms, and q and the protective equipment status label (wearing a safety helmet) are obtained. Working set not found. The dot product of q and the centers of 317 unit clusters is calculated. The cluster with the largest dot product is the corresponding cluster c1, and the second largest is the next nearest cluster c2. The default probe set only contains c1.
[0073] (3) Neighboring cluster exploration: The cluster to which it belongs is relatively large. =280, upper limit of angular displacement β1=arctan(1 / 280)≈0.0036rad; the next nearest cluster is a sub-cluster. =12, β2=arctan(1 / 12)≈0.0831rad, angular displacement expansion range β1+β2≈0.0867rad. The measured arccos(q·C2)-arccos(q·C1)=0.051rad falls within this range, so c2 and c1 are included together as neighboring clusters for expansion. Large clusters are hardly expanded, while small clusters are automatically widened, without using the fixed point product difference independent of cluster size.
[0074] (4) State switching expansion and neighbor cluster expansion are performed in parallel. There are 3 edges in the association table that start with "wearing a safety helmet" and have an association count of no less than 2. The corresponding clusters are selected in descending order of association count. The retrieval budget Pmax=6, and the retention order is: c1, c2 obtained from neighbor cluster expansion, and then the cluster obtained from state switching expansion. Clusters exceeding 6 are discarded. The templates in the merged clusters form a candidate template set. In this embodiment, |P|=6.
[0075] (5) The number of alignments is estimated as the sum of the number of alignments at the cluster center and the number of alignments of templates within the candidate cluster. When only the cluster to which the candidate cluster belongs is explored, the number of alignments is approximately: Second-rate; When dual-channel probe is extended and |P|=6, the approximate value is: Each time, the number of times is far less than the total of 100,000 times in the entire database.
[0076] The default path is reduced to approximately 1 / 158 of the entire table, and the double-expansion approach is reduced to approximately 1 / 45 of the entire table. Candidate templates are multiplied by q, and the maximum value is taken based on identity. The maximum similarity is 0.68, and verification is passed if it is not lower than the passing threshold of 0.62. The preset rejection threshold is 0.50; values between 0.50 and 0.62 are considered pending review and are not included in the online source.
[0077] (6) Compare the same formula when M=80000: The default scan count is approximately K+M / K≈566 scans, double expansion scan count is approximately K+6M / K≈1979 scans, and the full table count is 80,000 scans. Fixed detection of 3 clusters, or creating four sets of sub-indexes based on protective equipment status and then scanning all abnormal clusters, results in a higher number of comparisons than on-demand expansion scans. The working set capacity is 50. When the same person reappears briefly, the working set is searched first; if the hit rate is 0.62, the hierarchical search is not performed.
[0078] Example 4: Implementation of Multi-Device Breakpoint Resumption and Index Consistency Taking a hydropower project with three identification terminal devices (device A, device B, and device C) as an example, the implementation steps are as follows: (1) The server had approximately 2,000 construction workers, each with two types of registration source templates. The local template scale was approximately 4,000, still below 5,000. All three devices were in full table scanning mode. The three devices were offline for one week. During this period, the server added 150 people (approximately 300 registration source templates), modified the certificate information of 50 people, deleted the templates of 10 people, and wrote back the S, n, C, ρ and related table edges of the affected clusters accordingly. The total changes were recorded as an incremental package.
[0079] (2) Device A connects to the network first. Incremental packets are fragmented into 100 fragments per fragment, each fragment containing a sequence number and a fragment summary. After Device A receives the first two fragments, the network is interrupted, and the received sequence number is recorded. After the network is restored, the next fragment is transmitted. After all fragments are received, the global SHA-256 is checked. If they match, the local template, complete statistical information, and protective equipment status switching association table are updated according to the change type: new additions are written according to the update strategy of the registered source cluster, and deletions are determined by whether complete statistical information has been written before, which determines whether S and n are written back. The association count decreases with deletion, and when it decreases to 0, the edge is deleted. Synchronization is completed in seconds.
[0080] (3) Device B then connects to the network. During synchronization, one digest verification fails, and the digest is immediately retransmitted. The remaining digests are normal, and the landing rules are the same as those of device A.
[0081] (4) If device C fails to connect to the network, the consecutive failure count is incremented by 1, and the local data of the previous version is retained for offline verification. The next network connection will be automatically retried; when the number of failures reaches the alarm threshold, the management terminal will be notified. Before the incremental data is supplemented, the verification of device C is still based on the old faceted spherical index and related table, and the working mode is not interrupted.
[0082] (5) After equipment A and B are replenished, if the subsequent warehouse size exceeds 5000, then proceed according to... A faceted spherical index is constructed, and retrieval switches to the corresponding cluster with dual-channel expansion. Prior to this, all three devices used full-table dot product, which was parallel to large-scale hierarchical retrieval and not a prerequisite for each other. Incremental synchronization only transmits changes, reducing the transmission volume by more than 90% compared to full-scale distribution.
[0083] This invention also provides a distributed offline identity information data processing system for implementing the distributed offline identity information data processing method described above, comprising: The feature extraction module is used to process the collected personnel images to obtain identity feature vectors and protective equipment status labels distributed on a unit spherical surface. The index maintenance module is used to incrementally maintain the faceted spherical index according to the source type of the identity feature vector and the corresponding cluster update strategy, so as to obtain a continuously maintained faceted spherical index. The association table construction module is used to record the association relationship between the same identity in different protective equipment states that meets a preset number of times threshold in the protective equipment state switching association table, based on the identity feature vector of the registration source to which the cluster belongs in the continuously maintained faceted spherical index and the protective equipment state label. The retrieval expansion module is used to process the image of the personnel to be verified, obtain the query feature vector and the query protective equipment status label, perform neighbor cluster expansion based on the query feature vector in the continuously maintained faceted spherical index, and perform status switching expansion based on the query protective equipment status label in the protective equipment status switching association table. The templates in the clusters obtained by the neighbor cluster expansion and the status switching expansion are determined as the candidate template set. The identity verification module is used to compare the query feature vector with the templates in the candidate template set to obtain the identity verification result of the person to be verified.
[0084] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A distributed offline identity information data processing method, characterized in that, include: S1. Obtain the identity feature vector of the person to be verified and query the status tag of the protective equipment, wherein the identity feature vector is located in a unit spherical distribution; S2. Based on the source type of the identity feature vector, the corresponding cluster update strategy is used to incrementally maintain the faceted spherical index, resulting in a continuously maintained faceted spherical index. S3. Based on the identity feature vector of the registration source to which the cluster belongs in the continuously maintained faceted spherical index and the protective equipment status label, record the association relationship between the clusters to which the same identity belongs in different protective equipment statuses that meets the preset number of times threshold in the protective equipment status switching association table. S4. Based on the query feature vector, perform neighbor cluster expansion in the continuously maintained faceted spherical index; based on the query protective equipment status label, perform status switching expansion in the protective equipment status switching association table; and determine the templates in the clusters obtained by neighbor cluster expansion and status switching expansion as the candidate template set. S5. Compare the query feature vector with the templates in the candidate template set to obtain the identity verification result of the person to be verified.
2. The distributed offline identity information data processing method as described in claim 1, characterized in that: Step S1 specifically includes: The acquired personnel images are subjected to target region detection to obtain target region images. Key point localization and alignment processing is performed on the target region images to obtain aligned standard target images. A lightweight convolutional neural network is used to extract features from the aligned standard target image to obtain the original feature vector. The original feature vector is then normalized to obtain the identity feature vector distributed on a unit sphere. The protective equipment status is detected in the head and face regions of the target area image to obtain protective equipment status labels.
3. The distributed offline identity information data processing method as described in claim 1, characterized in that: Step S2 specifically includes: The identity feature vector is matched with the cluster centers in the faceted spherical index, and the identity feature vector is assigned to the corresponding cluster according to the matching result to obtain the cluster to which the identity feature vector belongs. Based on the source type of the identity feature vector, a cluster update strategy corresponding to the source type is selected, and the cluster to which the identity feature vector belongs is incrementally maintained to obtain a continuously maintained faceted spherical index. When the source type is registration source, it is allowed to adjust the cluster structure of the cluster to which the identity feature vector belongs and update the complete statistical information of the cluster to which the identity feature vector belongs; When the source type is online, compare the cluster dispersion before and after merging the identity feature vector. Based on the comparison result, choose to update the skeleton information of the cluster to which the identity feature vector belongs, or only update the statistical information corresponding to the identity to which the identity feature vector belongs.
4. The distributed offline identity information data processing method as described in claim 3, characterized in that: The cluster update strategy specifically includes: When the source type is registration source, the identity feature vector is merged into the cluster to which the identity feature vector belongs, the complete statistical information of the cluster to which the identity feature vector belongs is updated, and the cluster center, cluster dispersion and cluster size are refreshed according to the updated complete statistical information to obtain the updated cluster center, updated cluster dispersion and updated cluster size. When the source type is registration source, the cluster structure of the cluster to which the identity feature vector belongs is adjusted according to the updated cluster dispersion and the updated cluster size: when the updated cluster dispersion is greater than the preset splitting threshold, the cluster to which the identity feature vector belongs is split to obtain the split sub-cluster; when the updated cluster size is lower than the preset size lower limit, the cluster to which the identity feature vector belongs is merged into the nearest neighboring cluster with the nearest dot product to obtain the merged cluster. When the source type is online, the cluster dispersion after merging the identity feature vector is calculated based on the complete statistical information of the identity feature vector and the cluster to which the identity feature vector belongs, and the cluster dispersion after merging is obtained. When the source type is online, the cluster dispersion after merging is compared with the cluster dispersion of the cluster to which the identity feature vector belongs: if the cluster dispersion after merging is not greater than the cluster dispersion of the cluster to which the identity feature vector belongs, the skeleton information of the cluster to which the identity feature vector belongs is updated to obtain the updated skeleton information; if the cluster dispersion after merging is greater than the cluster dispersion of the cluster to which the identity feature vector belongs, only the statistical information corresponding to the identity to which the identity feature vector belongs is updated, without changing the skeleton information of the cluster to which the identity feature vector belongs.
5. The distributed offline identity information data processing method as described in claim 1, characterized in that: Step S3 specifically includes: Based on the cluster to which the identity feature vector of the registration source belongs in the continuously maintained faceted spherical index and the protective equipment status label, the clusters to which the same identity belongs in different protective equipment statuses are associated to obtain the association relationships to be counted. The number of associations is obtained by deduplicating the associations based on identity. Relationships that have reached a preset threshold in the number of associations to be counted are recorded in the protective equipment status switching association table; identity feature vectors from online sources are not written into the protective equipment status switching association table.
6. The distributed offline identity information data processing method as described in claim 1, characterized in that: Step S4 specifically includes: The images of the personnel to be verified are processed to obtain the query feature vector and the query protective equipment status label; Within the retrieval budget, neighbor cluster expansion is performed in the continuously maintained faceted spherical index based on the query feature vector, and state switching expansion is performed in the protective equipment state switching association table based on the query protective equipment state label, so as to obtain the clusters obtained by neighbor cluster expansion and the clusters obtained by state switching expansion respectively. The clusters obtained from neighbor cluster expansion and the clusters obtained from state switching expansion are merged, and the templates in the merged clusters are determined as the candidate template set.
7. A distributed offline identity information data processing method as described in claim 6, characterized in that: The process of expanding neighbor clusters in a continuously maintained faceted spherical index based on query feature vectors specifically includes: The query feature vector is matched with the cluster centers in the continuously maintained faceted spherical index to obtain the cluster to which the query feature vector belongs and the second nearest cluster, and the cluster to which the query feature vector belongs is included in the cluster obtained by expanding the neighbor cluster. Based on the cluster size of the cluster to which the query feature vector belongs and the vector sum of the second nearest cluster, the angular displacement exploration range is determined, and the angular displacement exploration range is obtained. The angular gap is calculated based on the query feature vector, the cluster center of the cluster to which the query feature vector belongs, and the cluster center of the next nearest cluster. When the angular gap falls within the angular displacement exploration range, the second nearest cluster and the cluster to which the query feature vector belongs are combined as neighboring clusters for exploration. When the angular gap does not fall within the angular displacement exploration range, the cluster to which the query feature vector belongs is taken as the cluster obtained by the neighboring cluster exploration.
8. The distributed offline identity information data processing method as described in claim 7, characterized in that: The step of expanding the state switching search in the protective equipment state switching association table based on querying the protective equipment state label specifically includes: In the protective equipment status switching association table, select the associations that start with the query of the protective equipment status label and have reached the preset number of associations threshold to obtain the associations to be explored. Within the retrieval budget, the clusters pointed to by the associations to be explored are preferentially determined as the clusters obtained by state switching exploration based on the number of associations; If there is no correlation to be expanded in the status switching association table of protective equipment, the cluster obtained by expanding the neighboring cluster will be used as the cluster obtained by expanding the status switching.
9. A distributed offline identity information data processing method as described in claim 1, characterized in that: Step S5 specifically includes: The similarity between the query feature vector and the templates in the candidate template set is calculated using the dot product operation to obtain the comparison similarity. The maximum similarity is obtained by determining the maximum value among the similarity scores. The maximum similarity is compared with the preset pass threshold and the preset rejection threshold: if the maximum similarity is not lower than the preset pass threshold, the identity verification result is passed; if the maximum similarity is lower than the preset rejection threshold, the identity verification result is rejected; if the maximum similarity is between the preset rejection threshold and the preset pass threshold, the identity verification result is pending review.
10. A distributed offline identity information data processing system, characterized in that, The system is used to implement a distributed offline identity information data processing method as described in any one of claims 1-9, comprising: The feature extraction module is used to process the collected personnel images to obtain identity feature vectors and protective equipment status labels distributed on a unit spherical surface. The index maintenance module is used to incrementally maintain the faceted spherical index according to the source type of the identity feature vector and the corresponding cluster update strategy, so as to obtain a continuously maintained faceted spherical index. The association table construction module is used to record the association relationship between the same identity in different protective equipment states that meets a preset number of times threshold in the protective equipment state switching association table, based on the identity feature vector of the registration source to which the cluster belongs in the continuously maintained faceted spherical index and the protective equipment state label. The retrieval expansion module is used to process the image of the personnel to be verified, obtain the query feature vector and the query protective equipment status label, perform neighbor cluster expansion based on the query feature vector in the continuously maintained faceted spherical index, and perform status switching expansion based on the query protective equipment status label in the protective equipment status switching association table. The templates in the clusters obtained by the neighbor cluster expansion and the status switching expansion are determined as the candidate template set. The identity verification module is used to compare the query feature vector with the templates in the candidate template set to obtain the identity verification result of the person to be verified.
Citation Information
Patent Citations
Face recognition and safety helmet wearing recognition method
CN114863534A
