Personnel identity verification method and system based on AI glasses
By dynamically adjusting the video frame extraction interval and model switching of the AI glasses, combined with cloud verification, the problem of heat accumulation in AI glasses under high load operation was solved. This achieved efficient management of device thermal throttling and computing resources, extended the continuous operation time of the device, and ensured verification accuracy.
Patent Information
- Application Number
- CN202611396979.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-09
- Publication Date
- 2026-11-27
AI Technical Summary
Existing AI glasses-based identity verification systems are prone to heat buildup under high load, triggering thermal throttling protection mechanisms and affecting the continuity of security checks and user experience.
By dynamically adjusting the video frame extraction interval and switching the lightweight model, combined with cloud verification, the device achieves thermal throttling and motion state-driven reallocation of computing resources, reducing the load and uploading degraded or high-frequency data packets. The cloud performs identity verification and returns the results.
It effectively solves the problem of heat and power consumption imbalance in wearable devices under high load operation, reduces the risk of device thermal shutdown, extends continuous operation time, and ensures verification accuracy and user experience.
Smart Images

Figure CN123182283A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image processing technology, and more specifically, to a method and system for verifying the identity of persons based on AI glasses. Background Technology
[0002] Currently, wearable mobile verification systems based on AI glasses are gradually being applied in the field of personnel identity verification at civil aviation airports. These systems are typically worn by security personnel and use a first-person perspective camera to capture video streams in real time. They also perform computationally intensive tasks such as target detection, facial recognition, and feature extraction on the device itself (locally on the AI glasses) to achieve real-time identity verification in mobile scenarios.
[0003] However, existing technical solutions generally face the problem of thermal and power consumption runaway caused by continuous high load operation on the edge in actual engineering deployments: fixed frame-skipping inference strategies lead to thermal accumulation runaway. Existing solutions typically preset a fixed frame-skipping inference frequency (such as processing 15 or 30 frames per second) on the edge and continuously run the Neural Processing Unit (NPU) at full load to perform object detection and feature extraction tasks. AI glasses are limited by the size constraints of lightweight wearable devices, and their heat dissipation structure is extremely limited, making it difficult to effectively dissipate the heat generated by the NPU core under continuous high load. After the device runs continuously for several minutes, the NPU core temperature is very likely to exceed the safe operating threshold of the chip design (such as 45°C), triggering the chip's built-in thermal throttling protection mechanism. Once in thermal throttling state, the system is forced to drastically reduce the computing frequency or even shut down, causing the verification operation to be interrupted, seriously affecting the continuity of security inspection work and user experience. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide a method and system for verifying the identity of persons based on AI glasses to at least partially improve the above-mentioned problems.
[0005] To achieve the above objectives, the technical solutions adopted in the embodiments of the present invention are as follows: In a first aspect, embodiments of the present invention provide a method for verifying the identity of persons based on AI glasses, including: The AI glasses continuously capture video streams and acquire first state data and second state data of the AI glasses; the first state data is used to characterize the thermal state of the AI glasses, and the second state data is used to characterize the motion state of the AI glasses. When the first state data exceeds the first preset threshold, or the second state data exceeds the second preset threshold, the video frame extraction interval is dynamically extended from the first frequency to the second frequency, the face feature extraction network deployed on the edge is suspended, a lightweight target detection model is executed, a downgraded data packet is output, and the downgraded data packet is uploaded to the cloud. When the first state data does not exceed the first preset threshold and the second state data does not exceed the second preset threshold, the face feature extraction network is activated to extract face feature vectors from valid frames and crop the region of interest of the person to obtain high-frequency data packets, and the high-frequency data packets are uploaded to the cloud. The cloud platform performs identity verification based on the high-frequency data packet or the downgraded data packet, and sends the verification result back to the AI glasses.
[0006] Optionally, the step of obtaining the downgraded data packet includes: The AI glasses perform frame sampling at the second frequency to acquire the current frame image; The lightweight target detection model is executed on the current frame image to detect and output a person coordinate bounding box and the corresponding edge tracking ID; Based on the person's coordinate bounding box, the region of interest of the person is cropped from the current frame image to form a full-body ROI image; Obtain the current location coordinates; The personnel coordinate bounding box, the full-body ROI image, the positioning coordinates, and the timestamp of the current frame are associated and encapsulated to generate the downgraded data packet.
[0007] Optionally, the step of obtaining the edge tracking ID includes: Acquire sensor parameters for the current frame image and the previous frame image; the sensor parameters include at least the triaxial angular velocity data of the inertial measurement unit; Based on the three-axis angular velocity data, extract the yaw rate of change and pitch rate of change of the device between two consecutive frames; Based on the yaw rate of change and pitch rate of change, and combined with the camera intrinsic parameter matrix, calculate the global pixel translation vector on the image plane; When performing Kalman filter prediction, the global pixel translation vector is superimposed on the prediction coordinates of the previous frame to obtain the compensated prediction coordinates of the current frame. Based on the compensated predicted coordinates and the personnel coordinate bounding boxes output by the lightweight target detection model, the intersection-union ratio (IU / R) is calculated, and inter-frame data association is performed according to the IU / R. The tracking ID corresponding to the successfully associated bounding box is determined as the edge tracking ID.
[0008] Optionally, the high-frequency data packet acquisition step includes: The AI glasses perform frame sampling at the first frequency to acquire the current frame image; Perform target detection on the current frame image to identify at least one person target in the current frame image; Using the facial feature extraction network, facial feature vectors are extracted from targets that meet preset conditions among the at least one person target; Based on the facial feature vector, and combined with the inter-frame data association between the current frame detection box and the historical frame tracking box, the edge tracking ID of the person target that meets the preset conditions in the current frame is obtained. Based on the personnel target that meets the preset conditions, the region of interest of the personnel is cropped from the current frame image to obtain a full-body ROI image; Obtain the current location coordinates; The facial feature vector, the full-body ROI image, the location coordinates, and the timestamp of the current frame are associated and encapsulated to generate the high-frequency data packet.
[0009] Optionally, the step of obtaining the edge tracking ID includes: Acquire sensor parameters for the current frame image and the previous frame image; the sensor parameters include at least the triaxial angular velocity data of the inertial measurement unit; Based on the three-axis angular velocity data, extract the yaw rate of change and pitch rate of change of the device between two consecutive frames; Based on the yaw rate of change and pitch rate of change, and combined with the camera intrinsic parameter matrix, calculate the global pixel translation vector on the image plane; When performing Kalman filter prediction, the global pixel translation vector is superimposed on the prediction coordinates of the previous frame to obtain the compensated prediction coordinates of the current frame. The intersection-union ratio (IUU) is calculated based on the compensated predicted coordinates and the bounding box of the personnel coordinates output by the lightweight target detection model, and the feature similarity between the face feature vector and the historical feature vector of the corresponding personnel target in the previous frame is also calculated. Based on the intersection-union ratio and the feature similarity, cascade matching is performed, and the tracking ID corresponding to the successfully matched bounding box is determined as the end-side tracking ID.
[0010] Optionally, the cloud performs identity verification based on the high-frequency data packet or the downgraded data packet, and sends the verification result back to the AI glasses, including: Lightweight visual attribute classification is performed on the full-body ROI images in the high-frequency data packets or the degraded data packets to determine the target personnel category; Based on the current region's dynamic verification strategy, determine whether the target personnel category matches the current verification strategy; If there is no match, early termination will be triggered, and the current target data will be discarded; If a match is found, then according to the target personnel category, face comparison and recognition are performed on the target data that matches the current verification strategy in the corresponding identity database to obtain the candidate face identity and the corresponding first confidence level. Furthermore, based on the target personnel category, pedestrian re-identification is performed on the target data matching the current verification strategy in the corresponding identity database to obtain human candidate identities and corresponding second confidence levels; Arbitration decisions are made based on the first confidence level and the second confidence level to generate the final identity verification result; The final identity verification result is sent back to the AI glasses.
[0011] Optionally, performing face comparison and recognition on the target data matching the current verification strategy includes: If the target data is the high-frequency data packet, then the facial feature vector in the high-frequency data packet is directly extracted, and cosine similarity retrieval is performed in the cloud vector database to output the candidate facial identity and the corresponding first confidence score. If the target data is the downgraded data package, then the cloud-based face recognition model is invoked to extract the face feature vector from the full-body ROI image in the downgraded data package, and cosine similarity retrieval is performed in the vector database on the cloud side to output the face candidate identity and the corresponding first confidence score.
[0012] Optionally, performing pedestrian re-identification on the target data matching the current verification strategy includes: Extract the full-body ROI image and location coordinates of the target person from the high-frequency data packet or the downgraded data packet; The full-body ROI image of the target person is input into a global feature encoding network to extract the global re-identification vector of the target person. Obtain the global re-identification vector, historical observation location, and historical observation timestamp of registered personnel in the cloud-based database; Using the positioning coordinates as the current observation position, and combining the historical observation positions and timestamps of the registered personnel, a spatiotemporal reachability constraint is constructed with a preset maximum physical movement speed. Registered personnel who do not meet the spatiotemporal reachability constraint are eliminated to obtain candidate registered personnel. Perform posture determination on the candidate registrants and remove those with abnormal postures; The query global re-identification vector is compared with the multi-template feature map of the finally retained candidate registrants using k-NN similarity, and the human candidate identity and the corresponding second confidence score are output.
[0013] Optionally, the step of executing the arbitration decision based on the first confidence level and the second confidence level includes: If the first confidence level exceeds the first preset threshold and the face candidate identity is consistent with the human body candidate identity, it is determined to be a high reliability match, and the face candidate identity or the human body candidate identity is used as the final identity verification result. If the first confidence level is lower than the second preset threshold or no valid face is detected, and the second confidence level exceeds the third preset threshold, then the human candidate identity is accepted as the final identity verification result. If the second confidence level is lower than the fourth preset threshold or pedestrian re-identification fails, and the first confidence level exceeds the first preset threshold, then the face candidate identity is accepted as the final identity verification result. If the face candidate identity is inconsistent with the human body candidate identity, and the difference between the first confidence level and the second confidence level is less than the fifth preset threshold, then a modal conflict pending identifier is generated as the final identity verification result.
[0014] Secondly, embodiments of the present invention provide a personnel identity verification system, including AI glasses and a cloud platform; The AI glasses include: The video capture module is used to continuously capture video streams; A state perception module is used to acquire first state data and second state data of the AI glasses; the first state data is used to characterize the thermal state of the AI glasses, and the second state data is used to characterize the motion state of the AI glasses. The scheduling and processing module is used to dynamically extend the video frame extraction interval from a first frequency to a second frequency when the first state data exceeds a first preset threshold or the second state data exceeds a second preset threshold, suspend the face feature extraction network deployed on the end side, execute a lightweight target detection model, and output a downgraded data packet; when the first state data does not exceed the first preset threshold and the second state data does not exceed the second preset threshold, the face feature extraction network is activated to extract face feature vectors from valid frames and crop the region of interest of the person, and output a high-frequency data packet; The first communication module is used to upload the downgraded data packet or the high-frequency data packet to the cloud and receive the verification result returned by the cloud. The cloud includes: The second communication module is used to receive the downgraded data packet or the high-frequency data packet uploaded by the AI glasses, and to send the verification result back to the AI glasses; The identity verification module is used to perform identity verification based on the high-frequency data packet or the downgraded data packet and generate the verification result.
[0015] This invention provides a personnel identity verification method and system based on AI glasses. Through a multi-dimensional state-aware scheduler configured on the device side, it acquires NPU core temperature (representing thermal state) and IMU data (representing motion state) in real time. When either state exceeds a preset threshold, it automatically lengthens the frame extraction interval, suspends the facial feature extraction network, and switches to a lightweight detection model. When the state returns to normal, it automatically resumes high-frequency feature extraction. This achieves millisecond-level reallocation of computing resources driven by both device thermal throttling and motion mode. It proactively reduces the load to avoid thermal shutdown and extend continuous operation time when the device is on the verge of overheating or engaging in ineffective motion, while ensuring verification accuracy is not compromised when the state recovers. This effectively solves the problem of computing power and power consumption imbalance under continuous high-load operation of wearable devices.
[0016] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 A flowchart illustrating a method for verifying the identity of persons based on AI glasses, provided in an embodiment of the present invention; Figure 2 A flowchart illustrating the steps for obtaining a downgraded data packet according to an embodiment of the present invention; Figure 3 A flowchart illustrating the steps for acquiring high-frequency data packets according to an embodiment of the present invention; Figure 4 This is a schematic flowchart of S14 provided in an embodiment of the present invention; Figure 5 This is a schematic structural block diagram of a personnel identity verification system provided in an embodiment of the present invention.
[0019] Icons: 20 - Personnel identity verification system; 21 - AI glasses; 211 - Video acquisition module; 212 - Status perception module; 213 - Scheduling and processing module; 214 - First communication module; 22 - Cloud; 221 - Second communication module; 222 - Identity verification module. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0021] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.
[0022] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this invention, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0023] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0024] The following is an exemplary description of the personnel identity verification method based on AI glasses provided in an embodiment of the present invention. See also... Figure 1 The method includes, for example Figure 1 The following steps are described: S11: The AI glasses continuously collect video streams and acquire first state data and second state data of the AI glasses; the first state data is used to characterize the thermal state of the AI glasses, and the second state data is used to characterize the motion state of the AI glasses.
[0025] In this embodiment of the invention, the AI glasses are worn by airport security personnel. Their front-facing RGB camera continuously captures a first-person perspective video stream at a preset frame rate (e.g., 30 frames per second). Simultaneously, the AI glasses' built-in sensor system acquires two types of state data in real time: the first state data characterizes the thermal state of the AI glasses, which can be the temperature of the NPU core, read by a thermistor or on-chip temperature sensor deployed near the NPU chip; the second state data characterizes the motion state of the AI glasses, and may include triaxial acceleration data collected by the built-in Inertial Measurement Unit (IMU).
[0026] To ensure the real-time performance and accuracy of subsequent status assessments, video frames and sensor data are synchronized at the microsecond level based on hardware timestamps, so that each frame can correspond to the NPU temperature and IMU motion data at the same moment.
[0027] S12: When the first state data exceeds the first preset threshold, or the second state data exceeds the second preset threshold, the video frame extraction interval is dynamically increased from the first frequency to the second frequency, the face feature extraction network deployed on the terminal is suspended, the lightweight target detection model is executed, the downgraded data packet is output, and the downgraded data packet is uploaded to the cloud.
[0028] The device is equipped with a multi-dimensional state-aware scheduler, which evaluates the working status of the AI glasses at preset clock cycles (e.g., every 500 milliseconds). When the scheduler determines that the first state data exceeds the first preset threshold, it indicates that the AI glasses are currently in an overheating risk state; when the scheduler determines that the second state data exceeds the second preset threshold, it indicates that the wearer is currently in a state of high-frequency walking or violent shaking, and the proportion of motion-blurred frames in the captured image is high, which does not meet the conditions for high-precision facial feature extraction.
[0029] When any of the above conditions are met, the scheduler triggers a degradation mode. In degradation mode, the video frame extraction interval is dynamically increased from a first frequency to a second frequency. For example, the first frequency is 2 frames / time (i.e., 1 frame is extracted for processing every 2 frames), and the second frequency is 5 frames / time (i.e., 1 frame is extracted for processing every 5 frames) to reduce the computational load on the edge. At the same time, the scheduler suspends the face feature extraction network deployed on the edge. This network is a lightweight neural network containing an inverted residual structure and global deep convolutional layers. It has a relatively large number of parameters and is computationally intensive, and stops its feature extraction inference on video frames.
[0030] In degraded mode, the edge device executes only a lightweight object detection model. This model has far fewer parameters than a face feature extraction network (for example, less than 2M parameters), and is used solely to detect human targets from the current frame image and output basic detection data containing human coordinate bounding boxes. Based on this basic detection data, the edge device further generates degraded data packets and uploads them to the cloud via a wireless network. The size of the degraded data packets is smaller than that of the data packets generated in high-frequency mode, thereby reducing the computational load on the edge device and also reducing uplink transmission bandwidth usage.
[0031] S13: When the first state data does not exceed the first preset threshold and the second state data does not exceed the second preset threshold, activate the face feature extraction network, extract face feature vectors from the valid frames and crop the regions of interest of the people, obtain high-frequency data packets, and upload the high-frequency data packets to the cloud.
[0032] When the scheduler determines that the first state data does not exceed the first preset threshold and the second state data does not exceed the second preset threshold, that is, the AI glasses are in normal thermal state and the wearer is in a stationary or stable walking state, the scheduler resumes the high-frequency mode.
[0033] In high-frequency mode, the scheduler activates the face feature extraction network deployed on the edge. For each valid frame acquired, the network performs face feature extraction on the person target that meets the preset conditions in the current frame image, outputs a 128-dimensional L2 normalized face feature vector, and simultaneously crops the region of interest image of the person where the target is located from the current frame image.
[0034] Subsequently, the facial feature vectors and the cropped region of interest images are associated and encapsulated to obtain high-frequency data packets, which are then uploaded to the cloud via a wireless network. Because the high-frequency data packets contain facial feature vectors already extracted on the device side, the cloud can directly use them for identity vector retrieval without additional feature extraction calculations, thereby reducing the cloud's computing load and end-to-end verification latency.
[0035] S14: The cloud verifies identity based on high-frequency data packets or downgraded data packets and sends the verification results back to the AI glasses.
[0036] An identity verification server is deployed on the cloud side, which maintains a communication connection with the AI glasses via a wireless network (such as 5G or airport Wi-Fi). After receiving the data packets uploaded from the device, the cloud first parses the data packets to identify whether they are high-frequency or downgraded data packets, and then adopts the corresponding verification strategy based on the type of data packet.
[0037] After verification is completed in the cloud, the verification results (such as identity ID, name, access permissions, etc.) are transmitted back to the AI glasses via wireless network. After receiving the verification results, the AI glasses can use its Augmented Reality (AR) display module to overlay the corresponding verification mark in the field of vision of the security personnel, thus completing the closed-loop operation from data collection to identity confirmation.
[0038] This method uses a dynamic computational offloading mechanism driven by edge state perception to automatically degrade the device to reduce power consumption and heat generation when the device overheats or the wearer is exercising vigorously. When the state is normal, it automatically resumes high-frequency feature extraction to ensure verification accuracy. This effectively balances the contradiction between computing power, power consumption and verification performance of wearable devices under continuous operation conditions, significantly reduces the risk of device thermal shutdown and extends continuous operation time.
[0039] In one alternative implementation, see [link to implementation details]. Figure 2 The steps for obtaining the downgraded data packet include: S121: The AI glasses perform frame sampling at a second frequency to acquire the current frame image.
[0040] In degraded mode, the AI glasses perform frame sampling at a second frequency. For example, the second frequency is 5 frames / time, that is, the AI glasses extract 1 frame as the current frame image for processing every 5 frames of images captured. Compared with the first frequency in high-frequency mode (such as 2 frames / time), the frame sampling interval is dynamically lengthened, thereby reducing the load frequency of image acquisition and processing on the edge.
[0041] S122: Perform a lightweight object detection model on the current frame image, detect and output a person coordinate bounding box and the corresponding edge tracking ID.
[0042] The current frame image acquired in S121 is input into the lightweight object detection model for forward inference. This lightweight object detection model has fewer parameters than a face feature extraction network (for example, fewer than 2M parameters), has low computational complexity, and is suitable for edge resource constraints in degraded mode.
[0043] The lightweight object detection model performs object detection on the current frame image and outputs the bounding box of the person target in the image. This bounding box identifies the position and range of the person target in the image in the form of a rectangle. At the same time, for each detected person target, a corresponding edge tracking ID (TID) is assigned or maintained.
[0044] It should be noted that in degraded mode, the lightweight object detection model outputs a person coordinate bounding box in each processing frame. This bounding box corresponds to the person target with the highest confidence (such as the highest score or the highest confidence threshold) in the current frame, rather than outputting all detected targets. This "single target output" strategy is compatible with the low power consumption goal of degraded mode, further reducing the amount of data processing on the edge.
[0045] In degraded mode, the method of obtaining the edge tracking ID may include steps S1221 to S1225.
[0046] S1221: Obtain sensor parameters for the current frame image and the previous frame image; the sensor parameters include at least the triaxial angular velocity data of the inertial measurement unit.
[0047] To maintain the continuity of the edge tracking ID in degraded mode, the system needs to use the device's physical motion information for inter-frame target association. Specifically, the system acquires the sensor parameters corresponding to the current frame and the previous frame, including at least the three-axis angular velocity data output by the AI glasses' built-in IMU. The IMU's sampling rate can be set to 100Hz to ensure sufficient temporal resolution with the video frame rate.
[0048] S1222: Based on the three-axis angular velocity data, extract the yaw rate of change and pitch rate of change of the device between two consecutive frames.
[0049] Based on the acquired IMU three-axis angular velocity data, the rate of change of the device's rotation in three-dimensional space between two consecutive frames is extracted. The rate of change of the device's yaw angle around the Z-axis is also extracted. (Characterizing the angular velocity of the wearer's head turning left and right) and the rate of change of pitch angle around the X-axis or Y-axis. (This represents the angular velocity of the wearer's head as it rotates up and down).
[0050] For example, the rate of change of yaw angle and the rate of change of pitch angle can be directly determined by the angular velocity values output by the gyroscope channel of the IMU. If the video frame rate is 30 frames per second, then the time difference between two consecutive frames... The time window is approximately 33 milliseconds. Integrating the angular velocity within this time window will yield the angular change between two frames.
[0051] S1223: Calculate the global pixel translation vector on the image plane based on the yaw rate of change and the pitch rate of change, combined with the camera intrinsic parameter matrix.
[0052] Since the rotation of the AI glasses wearer's head causes the camera image to shift as a whole, in order to compensate for the interference of this physical motion on target tracking, the system inversely maps the rotational physical quantity in three-dimensional space onto the two-dimensional image plane.
[0053] Based on the yaw angle change rate extracted from S1222 With pitch angle change rate Combined with the intrinsic parameter matrix of the AI glasses camera (including horizontal focal length) With vertical focal length ), calculate the global pixel translation vector on the image plane The calculation formula is as follows:
[0054]
[0055] in, This represents the time difference between two consecutive frames. The formula is based on a pinhole camera model with a small-angle approximation, mapping angular velocity in physical space to pixel displacement on the image plane. This represents the overall pixel offset of the image in the horizontal direction. This represents the overall pixel offset of the image in the vertical direction. This global pixel translation vector reflects the overall motion of the image caused by the wearer's head rotation, providing a physical prior for subsequent tracker prediction corrections.
[0056] S1224: When performing Kalman filter prediction, the global pixel translation vector is superimposed on the prediction coordinates of the previous frame to obtain the compensated prediction coordinates of the current frame.
[0057] In degraded mode, a Kalman filter is used on the edge for inter-frame tracking of personnel targets. , representing the center coordinates, aspect ratio, height, and corresponding rate of change of the target bounding box, respectively.
[0058] During the prediction step of the Kalman filter, the target position of the current frame is first predicted based on the state of the previous frame, and then the global pixel translation vector calculated in S1223 is used. Forced overlay onto the predicted coordinates, i.e.:
[0059]
[0060] in, The original prediction center coordinates of the Kalman filter. The superimposed physical compensation is used to determine the predicted coordinates. This superposition operation enables the predicted bounding box to adaptively follow the physical deflection of the device head, significantly narrowing the initial deviation between the predicted bounding box and the actual detection box.
[0061] S1225: Based on the compensated predicted coordinates and the bounding boxes of personnel coordinates output by the lightweight target detection model, calculate the intersection-union ratio (IU / R), and perform inter-frame data association based on the IU / R. The tracking ID corresponding to the successfully associated bounding box is determined as the edge tracking ID.
[0062] After obtaining the compensated predicted coordinates of the current frame, the compensated predicted bounding box is matched with the personnel coordinate bounding box output by the lightweight target detection model in S122.
[0063] The Intersection over Union (IoU) ratio between the compensated predicted bounding box and the actual detected bounding box is calculated. This ratio is the ratio of the intersection area to the union area of the two bounding boxes. The closer the IoU value is to 1, the higher the overlap between the two bounding boxes, and the higher the confidence of the association.
[0064] Since the facial feature extraction network is suspended in degraded mode, the edge device cannot extract appearance features for appearance similarity matching. Therefore, it relies solely on the compensated IoU for inter-frame data association. When the IoU between the compensated predicted bounding box and a certain detection box exceeds a preset threshold (for example, IoU > 0.5), it is determined that the two correspond to the same person target. The detection box is then associated with the corresponding tracking target in the previous frame, and the tracking ID corresponding to the successfully associated bounding box is determined as the edge tracking ID for the current frame. If there is no person coordinate bounding box in the current frame whose IoU with the predicted box exceeds the threshold, target tracking is determined to be interrupted, and the corresponding edge tracking ID is released.
[0065] In degraded mode, due to the existence of the IMU physical compensation mechanism, even in the absence of visual features, pure kinematic correlation can still maintain the continuity of the edge tracking ID to a certain extent, effectively suppressing identity jumps caused by rapid head rotation.
[0066] S123: Based on the bounding box of the person's coordinates, crop the region of interest of the person from the current frame image to obtain a full-body ROI image.
[0067] After obtaining the bounding box of the person's coordinates in S122, the corresponding image patch is extracted from the original image of the current frame using this bounding box as the region of interest (ROI) image for the person. In degraded mode, this ROI is a full-body image, i.e., an overall image containing the person's head, torso, and limbs. The full-body ROI image will be uploaded to the cloud for use by a backup model in the cloud for pedestrian re-identification or facial feature supplementation.
[0068] S124: Obtain the current location coordinates.
[0069] The AI glasses obtain the device's current spatial location through a built-in positioning module. The positioning coordinates can be obtained through Wi-Fi RTT ranging, Bluetooth beacon, or indoor positioning systems, such as the three-dimensional spatial coordinates inside an airport terminal. These coordinates will serve as input data for subsequent cloud-based spatiotemporal topology pruning to determine the physical reachability of the target personnel.
[0070] S125: Associate and encapsulate the personnel coordinate bounding box, full-body ROI image, positioning coordinates, and the timestamp of the current frame to generate a downgraded data packet.
[0071] The personnel coordinate bounding box and edge tracking ID output in S122, the full-body ROI image cropped in S123, the positioning coordinates obtained in S124, and the hardware timestamp of the current frame are associated and assembled, and binary serialization encoding is performed according to the preset data format (for example, using the Protobuf protocol) to generate a downgraded data packet.
[0072] In one alternative implementation, see [link to implementation details]. Figure 3 The steps for obtaining high-frequency data packets include: S131: The AI glasses perform frame sampling at the first frequency to obtain the current frame image.
[0073] In high-frequency mode, the AI glasses perform frame sampling at a first frequency. For example, the first frequency is 2 frames / sampling, meaning that the AI glasses extract one frame from every two captured images and process it as the current frame. Compared to the second frequency in degraded mode (e.g., 5 frames / sampling), the high-frequency mode has a higher frame sampling density, providing more sufficient inter-frame information for subsequent facial feature extraction.
[0074] S132: Perform target detection on the current frame image to identify at least one person target in the current frame image.
[0075] The current frame image acquired in S131 is input into the object detection model for forward inference. In high-frequency mode, due to sufficient computing resources on the edge, an object detection network with a larger number of parameters than the lightweight object detection model can be used to output all detectable personnel targets in the current frame image, with each personnel target corresponding to a personnel coordinate bounding box. Unlike the degraded mode, which only outputs a single target, the high-frequency mode can detect multiple targets simultaneously, providing more comprehensive information for subsequent main target selection and feature extraction.
[0076] S133: Using a face feature extraction network, extract face feature vectors from at least one person target that meets preset conditions.
[0077] After identifying multiple people in the current frame image, each target needs to be filtered to determine the verification subject for the current frame. The Euclidean distance from the center point of each candidate face bounding box to the center of the image is obtained. The score for each target is calculated using the comprehensive scoring formula, along with the pixel area S of each bounding box. The candidate target with the highest score is selected as the target that meets the preset conditions. The comprehensive scoring formula can be:
[0078] in, and These are the maximum distance and area values among all candidate targets in the current frame, respectively.
[0079] For targets that meet preset conditions, forward inference is performed using an activated face feature extraction network. This face feature extraction network is a lightweight convolutional neural network, which, for example, includes an inverted residual structure and a global deep convolutional layer, and is compressed using INT8 quantization to adapt to edge deployment. The network outputs a 128-dimensional L2-normalized face feature vector of the target. This feature vector has high discriminative power and can be directly used for 1:N cosine similarity retrieval on the cloud side, as well as for inter-frame tracking and association in S134.
[0080] S134: Based on the facial feature vector, and combined with the inter-frame data association between the current frame detection box and the historical frame tracking box, obtain the edge tracking ID of the person target that meets the preset conditions in the current frame.
[0081] For the personnel targets that meet the preset conditions, a corresponding TID is assigned or maintained for each. In high-frequency mode, the method for obtaining the edge tracking ID is described in steps S1341 to S1346.
[0082] S1341: Obtain sensor parameters for the current frame image and the previous frame image; the sensor parameters include at least the triaxial angular velocity data of the inertial measurement unit.
[0083] S1342: Based on the three-axis angular velocity data, extract the yaw rate of change and pitch rate of change of the device between two consecutive frames.
[0084] S1343: Calculate the global pixel translation vector on the image plane based on the yaw rate of change and the pitch rate of change, combined with the camera intrinsic parameter matrix.
[0085] S1344: When performing Kalman filter prediction, the global pixel translation vector is superimposed on the prediction coordinates of the previous frame to obtain the compensated prediction coordinates of the current frame.
[0086] Steps S1341 to S1344 are the same as steps S1221 to S1224, and will not be repeated here.
[0087] S1345: Calculate the intersection-union ratio (IU) based on the compensated predicted coordinates and the bounding boxes of the personnel coordinates output by the lightweight target detection model, and calculate the feature similarity between the face feature vector and the historical feature vector of the corresponding personnel target in the previous frame.
[0088] In high-frequency mode, both kinematic matching and appearance matching calculations are performed simultaneously.
[0089] In terms of kinematic matching, the IoU between the compensated predicted bounding box obtained in S1344 and the bounding boxes of each person's coordinates output by the target detection model in S132 is calculated.
[0090] In terms of appearance matching, the facial feature vectors extracted in S133 are used to calculate the feature similarity between the facial feature vectors of each person target in the current frame and the historical feature vectors of the corresponding person target in the previous frame. For example, this feature similarity can be obtained by calculating the cosine similarity between two 128-dimensional L2 normalized feature vectors. The closer the cosine similarity is to 1, the more similar the two feature vectors are, and the higher the probability that they belong to the same person.
[0091] S1346: Perform cascaded matching based on crossover ratio and feature similarity, and determine the tracking ID corresponding to the successfully matched bounding box as the end-side tracking ID.
[0092] Based on the IoU and feature similarity calculated in S1345, cascaded matching is performed to determine the edge tracking ID of each personnel target.
[0093] Personnel detection boxes with an IoU exceeding a first preset threshold (for example, IoU>0.5) are used as candidate matching sets. Based on this, "high confidence" tracking targets that have been continuously tracked for multiple frames are matched, and then "low confidence" targets are matched to avoid the ID of a stable tracking target being preempted by a newly emerging target.
[0094] For each bounding box in the candidate set, a comprehensive matching score is calculated between it and the corresponding tracking target. This comprehensive matching score is obtained by weighted fusion of motion matching score and appearance matching score. For example, the comprehensive matching score can be calculated using a weighted sum: Comprehensive Score = w_motion × IoU + w_appearance × Feature Similarity, where w_motion and w_appearance are preset weight coefficients. When the comprehensive score exceeds a preset matching threshold, the bounding box is considered to have successfully matched the tracking target.
[0095] For a successfully matched detection box, the edge tracking ID corresponding to that detection box is determined as the edge tracking ID carried over from the target in the previous frame, thereby realizing the inter-frame transfer and maintenance of tracking IDs. For a failed detection box, a new edge tracking ID is assigned to it as the newly appeared person target.
[0096] S135: Based on the personnel target that meets the preset conditions, crop the region of interest of the personnel from the current frame image to obtain a full-body ROI image.
[0097] After identifying the main target that meets the preset conditions, the corresponding image patch is extracted from the current frame image using the bounding box of the target's personnel coordinates as the cropping region. This region of interest is a full-body ROI image, that is, an overall image containing the person's head, torso, and limbs.
[0098] S136: Obtain the current location coordinates.
[0099] S137: Associate and encapsulate the facial feature vector, the full-body ROI image, the location coordinates, and the timestamp of the current frame to generate a high-frequency data packet.
[0100] The facial feature vector extracted in S133, the full-body ROI image cropped in S135, the positioning coordinates obtained in S136, the end-side tracking ID output in S134, and the hardware timestamp of the current frame are associated and assembled, and binary serialization encoding is performed according to the preset data format to generate high-frequency data packets.
[0101] After receiving the data packets uploaded from the endpoint, the cloud needs to perform differentiated verification processing based on the data packet type and the current scenario policy. Since high-frequency data packets and downgraded data packets differ in their data composition, the cloud needs to adopt different processing strategies for different types of data packets. Simultaneously, the cloud also needs to perform pre-filtering based on the current region's security management policy, executing face comparison and pedestrian re-identification only on targets requiring verification through two independent pipelines. Optionally, see [link to relevant documentation]. Figure 4 S14 may include the following steps: S141: Perform lightweight visual attribute classification on full-body ROI images in high-frequency or degraded data packets to determine the target personnel category.
[0102] After receiving high-frequency or downgraded data packets uploaded from the endpoint, the cloud first parses the data packets and extracts the full-body ROI image. Subsequently, the cloud calls a lightweight visual attribute classifier to perform classification and inference on the full-body ROI image.
[0103] This lightweight visual attribute classifier is a pre-trained binary or multi-class neural network model with a small number of parameters and fast inference speed, capable of determining the attributes of a single frame image within milliseconds. The classifier identifies visual attributes such as clothing and accessories worn by individuals in a full-body ROI image. For example, it detects whether the ROI contains reflective vests, ground staff ID cards, uniforms, or other identifying marks, quickly determining whether the target person is categorized as "staff" or "passenger."
[0104] S142: Based on the current region's dynamic verification strategy, determine whether the target personnel category matches the current verification strategy.
[0105] Extract the location coordinates or area label of the AI glasses' current location from the data packet (such as "T3 Terminal B21 Boarding Gate"), and retrieve the dynamic verification policy for the corresponding area from the cloud-based policy database.
[0106] Dynamic verification policies can be flexibly configured according to the security management needs of different areas of the airport. For example, in the passenger boarding gate area, the policy can be configured to "verify passengers only"; in the staff passage area, the policy can be configured to "verify staff only"; and in the mixed area, the policy can be configured to "verify all personnel". In addition, the policy database also supports time-based regional verification task scheduling, such as setting a specific boarding gate to execute a specific verification policy during a specific time period.
[0107] Cross-validate the target personnel category determined in S141 with the dynamic verification strategy of the current area to determine whether the target personnel category belongs to the object category that needs to be verified in the current scenario.
[0108] S143: If there is no match, early termination is triggered, and the current target data is discarded.
[0109] If the judgment result of S142 is that the target personnel category does not match the current area verification strategy (for example, a staff member is detected at the boarding gate for "passengers only", or a passenger is detected at the staff channel for "staff only"), the system triggers the early termination mechanism.
[0110] S144: If a match is found, then according to the target personnel category, perform face comparison and recognition on the target data that matches the current verification strategy in the corresponding identity database to obtain the candidate face identity and the corresponding first confidence level. Furthermore, based on the target personnel category, pedestrian re-identification is performed on the target data matching the current verification strategy in the corresponding identity database to obtain human candidate identities and corresponding second confidence levels.
[0111] If the judgment result of S142 is that the target personnel category matches the current area verification strategy, then the current target data is allowed to enter the concurrent multicast bus.
[0112] The concurrent multicast bus utilizes a zero-copy mechanism to synchronously distribute the memory pointers of the target data to two parallel processing pipelines: the face comparison pipeline (Route A) and the pedestrian re-identification pipeline (Route B). The two pipelines operate independently and perform concurrent computations without interference. The face comparison pipeline focuses on facial feature matching, while the pedestrian re-identification pipeline focuses on global human body feature matching. This concurrent design ensures optimal verification coverage across various poses, including frontal greetings, side-face occlusion, and long-distance back-facing situations.
[0113] This includes performing face comparison and recognition on the target data that matches the current verification strategy, including: If the target data is a high-frequency data packet, the facial feature vector in the high-frequency data packet is directly extracted, and cosine similarity retrieval is performed in the cloud vector database to output the candidate facial identity and the corresponding first confidence score.
[0114] If the target data is a downgraded data package, the cloud-based face recognition model is invoked to extract the face feature vector from the full-body ROI image in the downgraded data package. Cosine similarity retrieval is then performed in the vector database on the cloud side to output the candidate face identity and the corresponding first confidence score.
[0115] The face comparison pipeline receives target data from the concurrent multicast bus and adopts differentiated processing strategies based on the data packet type.
[0116] If the target data is a high-frequency data packet, the facial feature vector already contained in the high-frequency data packet (i.e., the 128-dimensional L2 normalized feature vector extracted on the device side) is directly extracted, and a 1:N cosine similarity retrieval is performed in the vector database in the cloud. This vector database uses an efficient approximate nearest neighbor index (exemplarily built based on the HNSW algorithm), which can achieve millisecond-level retrieval in a database of millions of entries. After the retrieval, the system sorts the faces from high to low according to their cosine similarity and outputs the candidate identity of the face with the highest similarity and its corresponding first confidence score. This confidence score is the highest cosine similarity value in the retrieval results.
[0117] If the target data is a downgraded data packet, then because the face feature extraction network is suspended on the edge in downgrade mode, the data packet does not contain face feature vectors. The backup lightweight face recognition model deployed on the cloud side is invoked to extract the face region from the full-body ROI image in the downgraded data packet, and forward inference is performed on this face region to extract the face feature vector. Subsequently, the system uses this feature vector to perform the same 1:N cosine similarity retrieval in the cloud-side vector database, outputting the candidate face identity and its corresponding first confidence score.
[0118] This includes performing pedestrian re-identification on target data that matches the current verification strategy, including: S1441: Extract the full-body ROI image and location coordinates of the target person from high-frequency data packets or degraded data packets.
[0119] First, two key data items are extracted from the received data packet: one is the full-body ROI image of the target person, which serves as the visual input for subsequent feature extraction; the other is the target person's current location coordinates, which serve as the location basis for subsequent spatiotemporal pruning.
[0120] S1442: Input the full-body ROI image of the target person into the global feature encoding network to extract the query global re-identification vector of the target person.
[0121] The full-body ROI image is input into a global feature encoding network for forward inference. This global feature encoding network is exemplified as a Transformer encoder based on a multi-head self-attention mechanism, which can effectively extract global visual features from the full-body ROI image regarding clothing color, texture, style, and human body structure (including body shape, posture, etc.).
[0122] The global feature encoding network outputs a high-dimensional global re-identification vector (exemplarily 512-dimensional), which serves as the "query vector" for the current target person and is used for subsequent comparison with the feature vectors of registered persons in the database. This query vector is independent of and does not replace the 128-dimensional face feature vector output by the edge-side face feature extraction network, serving two different pipelines: face comparison and pedestrian re-identification.
[0123] S1443: Obtain the global re-identification vector of registered personnel in the cloud-based database, as well as their historical observation location and timestamp.
[0124] The cloud-based database stores the following information for each registered user: the user's global re-identification vector (pre-stored, extracted from the full-body ROI image at registration via the same global feature encoding network), and the user's most recently observed spatial location. and the corresponding observation timestamp .
[0125] S1444: Using the positioning coordinates as the current observation position, combined with the historical observation positions and timestamps of the registered personnel, a spatiotemporal accessibility constraint is constructed with a preset maximum physical movement speed. Registered personnel who do not meet the spatiotemporal accessibility constraint are eliminated to obtain candidate registered personnel.
[0126] The current positioning coordinates extracted from S141 are used as the current observation position. Using the current time as At the preset maximum physical movement speed Construct spatiotemporal reachability determination conditions:
[0127] in, For the historical observation positions of registered personnel, For the corresponding historical observation timestamp, This represents the spatial distance between the current location and historical locations (e.g., Euclidean distance can be used). The preset maximum physical movement speed of personnel within the terminal (for example, ).
[0128] The meaning of this judgment condition is: if the registered person's historical observation position With the current query position The distance between them is greater than the maximum physical movement speed. Time difference If the maximum distance that can be reached is within the specified range, then it is physically impossible for the registered person to move from the historical location to the current location, which falls under the category of "absolutely unreasonable candidate in space".
[0129] For registrants who meet the above inequality conditions, a hard filter mask is generated to remove them from the current search pool; for registrants who do not meet the conditions, they are retained as candidate registrants and proceed to subsequent processing stages.
[0130] S1445: Perform posture determination on candidate registrants and remove candidate registrants with abnormal postures.
[0131] Perform posture determination on the candidate registrants retained in S1444. Obtain the shoulder key point coordinates for each candidate registrant and calculate the left shoulder ordinate. The vertical coordinate of the right shoulder The absolute value of the difference, divided by the shoulder width. The following geometric constraint formula shall be used for determination:
[0132] When the ratio is less than 0.6, the target posture is determined to be a normal standing posture (front or near front); when the ratio is greater than or equal to 0.6, the target is determined to be in an abnormal posture such as severely bent over or tilted to the side.
[0133] Candidate registrants with abnormal postures (i.e., those who do not meet the above geometric constraints) are removed from the search pool, and only candidate registrants with normal postures are retained.
[0134] S1446: Perform k-NN similarity comparison between the query global re-identification vector and the multi-template feature map of the finally retained candidate registrants, and output the human candidate identity and the corresponding second confidence score.
[0135] The global re-identification vector extracted in S1442 is compared with the multi-template feature map of the candidate registrants finally retained in S1445 for similarity.
[0136] The cloud-based database maintains a multi-template feature map for each registered user, which contains multiple feature centroids (template vectors) of the same user from different perspectives (such as front, side, and back). During the comparison phase, the cosine similarity between the query vector and each template vector of each candidate registered user is calculated, and the highest value is taken as the similarity score between the candidate registered user and the current query target.
[0137] Subsequently, using the k-Nearest Neighbor (k-NN) strategy, all candidate registrants are sorted from highest to lowest similarity score, and the identity of the most similar candidate and its corresponding second confidence score are output. This second confidence score is the highest similarity score in the search results.
[0138] S145: Execute the arbitration decision based on the first and second confidence levels to generate the final identity verification result.
[0139] In S144, after the face comparison pipeline and the pedestrian re-identification pipeline independently output the candidate face identity and its corresponding first confidence score, and the candidate human identity and its corresponding second confidence score, respectively, the outputs of the two pipelines need to be fused for decision-making. The fusion decision includes: If the first confidence level exceeds the first preset threshold and the face candidate identity is consistent with the human candidate identity, it is determined to be a high reliability match, and the face candidate identity or the human candidate identity is used as the final identity verification result. If the first confidence level is lower than the second preset threshold or no valid face is detected, and the second confidence level exceeds the third preset threshold, then the human candidate identity will be accepted as the final identity verification result. If the second confidence level is lower than the fourth preset threshold or pedestrian re-identification fails, and the first confidence level exceeds the first preset threshold, then the candidate face identity will be accepted as the final identity verification result. If the face candidate identity is inconsistent with the human body candidate identity, and the difference between the first confidence level and the second confidence level is less than the fifth preset threshold, then a modal conflict pending label is generated as the final identity verification result.
[0140] When the first confidence level exceeds a first preset threshold (exemplarily 0.85), and the face candidate identity and the body candidate identity point to the same globally unique identifier, the arbitrator determines it as a high-reliability match. At this point, the two independent pipelines of face and person re-identification corroborate each other, both providing high-confidence identity determinations with consistent conclusions, resulting in extremely high reliability after fusion. The arbitrator outputs either the face candidate identity or the body candidate identity as the final identity verification result.
[0141] When the first confidence level is lower than the second preset threshold or no valid face is detected (for example, the target is wearing a mask or facing away from the camera, causing the face comparison pipeline to be unable to extract valid features), but the second confidence level exceeds the third preset threshold, it indicates that the pedestrian re-identification pipeline has provided a stable and reliable identity determination. The arbitrator accepts the human candidate identity as the final identity verification result, realizing a smooth downgrade confirmation in faceless scenarios.
[0142] Conversely, when the second confidence level is lower than the fourth preset threshold or pedestrian re-identification fails (for example, severe occlusion of human features in dense crowds causes pedestrian re-identification pipeline to be lost), but the first confidence level exceeds the first preset threshold, the arbitrator accepts the candidate face identity as the final identity verification result.
[0143] When the face candidate identity and the body candidate identity are inconsistent (i.e., the two pipelines point to different known identities), and the absolute difference between the first confidence level and the second confidence level is less than the fifth preset threshold (exemplarily 0.1), it indicates that both pipelines have a high degree of certainty but their conclusions contradict each other, and the arbitrator cannot make a decision on its own. In this case, a "modal conflict - pending" flag is generated as the final identity verification result, and an alarm is sent to the AI glasses via WebSocket to prompt security personnel to intervene manually or re-collect the data at a closer distance. The fifth preset threshold is used to measure the closeness of the confidence levels of the two pipelines. When the difference is less than this threshold, it indicates that the confidence levels of the two pipelines are similar, and a reliable decision cannot be made based on the level of confidence.
[0144] If the face candidate identity and the human candidate identity are inconsistent, and the difference between the first confidence level and the second confidence level is greater than or equal to the fifth preset threshold, the arbitrator will accept the one with the higher confidence level as the final identity verification result. That is: if the first confidence level is significantly higher than the second confidence level, the face candidate identity will be accepted; if the second confidence level is significantly higher than the first confidence level, the human candidate identity will be accepted. This branch design ensures that when both pipelines provide identities but there is a discrepancy, a reasonable priority selection can be made based on the reliability of the confidence levels.
[0145] S146: Send the final identity verification result back to the AI glasses.
[0146] The final identity verification result generated in S145 is encapsulated into a JSON format message and pushed to the AI glasses via a WebSocket downlink channel. For example, the message may contain fields such as global PID, name, and business status code.
[0147] After receiving the message, the AI glasses display the verification mark overlaid in the security personnel's field of vision using the Augmented Reality (AR) display module. Different visualization methods are used for different verification results: for example, for high-reliability access targets, a solid 3D bounding box with constant brightness and a personnel attribute panel are drawn; for downgraded confirmation targets, a dashed bounding box is drawn with low-frequency breathing flashing; for modal conflict targets requiring verification, a double-layered thickened border is drawn and a high-frequency warning flashing is triggered to prompt security personnel to intervene manually.
[0148] The pedestrian re-identification pipeline is also equipped with a three-stage associative decision state machine to handle the identity lifecycle of the target person. This state machine is located after the k-NN multi-template similarity comparison. Based on the output of human candidate identities and second confidence scores, it executes differentiated decision logic according to the target's identity binding status.
[0149] If the target person has been bound to a globally unique identifier (i.e., the edge tracking ID has been mapped to the cloud-side PID), proceed to the state maintenance phase. For targets with bound identities, extract the global re-identification vector of the current frame. Calculate its relationship with historical feature vectors The cosine similarity is calculated. If the cosine similarity is greater than a first threshold (e.g., 0.85), and the intersection-over-union (IoU) ratio between the bounding boxes of the people coordinates in the current frame and the previous frame is less than a second threshold (e.g., 0.5), then the multi-template feature map of the target is updated according to the following weighted fusion formula:
[0150] This is the updated feature vector after fusion.
[0151] If the target person is not bound to a globally unique identifier (i.e., the current target is a newly emerging tracking target), proceed to the identity verification stage. A sliding window of length 6 is used to count the highest k-NN votes for 6 consecutive frames. If the highest votes for 6 consecutive frames all point to the same candidate identity, and the average similarity of these 6 frames is greater than a third threshold (for example, 0.90), then the target is determined to be the candidate identity, and the formal mapping and binding operation from TID to a globally unique identifier is performed.
[0152] If a target person fails to match any known identity in the cloud database within a preset observation window, the adaptive registration phase begins. The observation window length is dynamically adjusted based on the target person's spatial location in the image: if the target is located in the central area of the image (key monitoring area), a first observation window length (exemplarily 20 frames) of no-match observation period is required before a new globally unique identity can be assigned and an initial feature map can be established; if the target is located in the edge area of the image (passing area), registration can be completed with only a second observation window length (exemplarily 10 frames), where the first observation window length is longer than the second observation window length.
[0153] Through the aforementioned three-stage state machine, this invention achieves a systematic balance among the three objectives of template stability, binding reliability, and registration sensitivity, further ensuring the high stability of continuous identity verification.
[0154] Furthermore, embodiments of the present invention also provide a personnel identity verification system, see [link to relevant documentation]. Figure 5 The personnel identity verification system 20 includes AI glasses 21 and cloud 22; AI Glasses 21 includes: The video acquisition module 211 is used to continuously acquire video streams.
[0155] The state perception module 212 is used to acquire first state data and second state data of the AI glasses; the first state data is used to characterize the thermal state of the AI glasses, and the second state data is used to characterize the motion state of the AI glasses.
[0156] The scheduling and processing module 213 is used to dynamically extend the video frame extraction interval from the first frequency to the second frequency when the first state data exceeds the first preset threshold or the second state data exceeds the second preset threshold, suspend the face feature extraction network deployed on the end side, execute the lightweight target detection model, and output downgraded data packets; when the first state data does not exceed the first preset threshold and the second state data does not exceed the second preset threshold, activate the face feature extraction network, extract face feature vectors from the effective frames and crop the region of interest of the person, and output high-frequency data packets.
[0157] The first communication module 214 is used to upload downgraded data packets or high-frequency data packets to the cloud and receive the verification results returned by the cloud.
[0158] Cloud 22 includes: The second communication module 221 is used to receive downgraded data packets or high-frequency data packets uploaded by the AI glasses and send the verification results back to the AI glasses.
[0159] The identity verification module 222 is used to perform identity verification based on high-frequency data packets or downgraded data packets and generate verification results.
[0160] In summary, the personnel identity verification method and system based on AI glasses provided by this invention achieves sub-second end-to-end response by dynamically unloading computation driven by edge state perception, real-time monitoring of NPU temperature and IMU motion data, and automatically lengthening the frame extraction interval, suspending the face feature extraction network and switching to a lightweight detection model when the device overheats or the wearer is exercising vigorously. High-frequency feature extraction is restored when normal operation resumes, effectively solving the problem of thermal shutdown due to continuous high load on wearable devices and extending continuous operation time. Addressing the pain point of first-person perspective tracking, the IMU angular velocity is mapped to pixel translation vectors in real time and injected into Kalman filter prediction. Combined with appearance and kinematic cascade matching in high-frequency mode or pure IoU association in degraded mode, identity jumps are significantly suppressed without increasing the complexity of the visual model. In the cloud, spatiotemporal topology pruning is used to construct a dynamic mask based on the maximum movement speed of the person to eliminate physically unreachable candidates. In the dual-path concurrent verification architecture, face comparison and pedestrian re-identification proceed independently. A confidence arbitration mechanism makes decisions separately in dual-path consensus, single-path degradation, or conflict scenarios. A front-end policy gateway preemptively terminates invalid targets, ensuring optimal verification across all poses. Simultaneously, a three-stage state machine is used, employing a 95%:5% conservative weighting and IoU update lock to suppress template degradation. A 6-frame sliding window reduces the probability of misbinding to one in a million, and the registration observation window is adaptively adjusted according to the target location, achieving a systematic balance between template stability, binding reliability, and registration sensitivity.
[0161] In the embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative; for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0162] In addition, the functional modules in the various embodiments of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0163] If the functionality is implemented as a software module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a computer-readable storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0164] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
[0165] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the invention can be implemented in other specific forms without departing from its spirit or essential characteristics. Therefore, the embodiments should be considered in all respects as exemplary and non-limiting, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be included within the present invention. No reference numerals in the claims should be construed as limiting the scope of the claims.
Claims
1. A method for verifying personnel identity based on AI glasses, characterized in that, include: The AI glasses continuously collect video streams and acquire first and second state data of the AI glasses. The first state data is used to characterize the thermal state of the AI glasses, and the second state data is used to characterize the motion state of the AI glasses; When the first state data exceeds the first preset threshold, or the second state data exceeds the second preset threshold, the video frame extraction interval is dynamically extended from the first frequency to the second frequency, the face feature extraction network deployed on the edge is suspended, a lightweight target detection model is executed, a downgraded data packet is output, and the downgraded data packet is uploaded to the cloud. When the first state data does not exceed the first preset threshold and the second state data does not exceed the second preset threshold, the face feature extraction network is activated to extract face feature vectors from valid frames and crop the region of interest of the person to obtain high-frequency data packets, and the high-frequency data packets are uploaded to the cloud. The cloud platform performs identity verification based on the high-frequency data packet or the downgraded data packet, and sends the verification result back to the AI glasses.
2. The method according to claim 1, characterized in that, The steps for obtaining the downgraded data packet include: The AI glasses perform frame sampling at the second frequency to acquire the current frame image; The lightweight target detection model is executed on the current frame image to detect and output a person coordinate bounding box and the corresponding edge tracking ID; Based on the person's coordinate bounding box, the region of interest of the person is cropped from the current frame image to form a full-body ROI image; Obtain the current location coordinates; The personnel coordinate bounding box, the full-body ROI image, the positioning coordinates, and the timestamp of the current frame are associated and encapsulated to generate the downgraded data packet.
3. The method according to claim 2, characterized in that, The steps for obtaining the edge tracking ID include: Acquire sensor parameters for the current frame image and the previous frame image; the sensor parameters include at least the triaxial angular velocity data of the inertial measurement unit; Based on the three-axis angular velocity data, extract the yaw rate of change and pitch rate of change of the device between two consecutive frames; Based on the yaw rate of change and pitch rate of change, and combined with the camera intrinsic parameter matrix, calculate the global pixel translation vector on the image plane; When performing Kalman filter prediction, the global pixel translation vector is superimposed on the prediction coordinates of the previous frame to obtain the compensated prediction coordinates of the current frame. Based on the compensated predicted coordinates and the personnel coordinate bounding boxes output by the lightweight target detection model, the intersection-union ratio (IU / R) is calculated, and inter-frame data association is performed according to the IU / R. The tracking ID corresponding to the successfully associated bounding box is determined as the edge tracking ID.
4. The method according to claim 1, characterized in that, The high-frequency data packet acquisition step includes: The AI glasses perform frame sampling at the first frequency to acquire the current frame image; Perform target detection on the current frame image to identify at least one person target in the current frame image; Using the facial feature extraction network, facial feature vectors are extracted from targets that meet preset conditions among the at least one person target; Based on the facial feature vector, and combined with the inter-frame data association between the current frame detection box and the historical frame tracking box, the edge tracking ID of the person target that meets the preset conditions in the current frame is obtained. Based on the personnel target that meets the preset conditions, the region of interest of the personnel is cropped from the current frame image to obtain a full-body ROI image; Obtain the current location coordinates; The facial feature vector, the full-body ROI image, the location coordinates, and the timestamp of the current frame are associated and encapsulated to generate the high-frequency data packet.
5. The method according to claim 4, characterized in that, The steps for obtaining the edge tracking ID include: Acquire sensor parameters for the current frame image and the previous frame image; the sensor parameters include at least the triaxial angular velocity data of the inertial measurement unit; Based on the three-axis angular velocity data, extract the yaw rate of change and pitch rate of change of the device between two consecutive frames; Based on the yaw rate of change and pitch rate of change, and combined with the camera intrinsic parameter matrix, calculate the global pixel translation vector on the image plane; When performing Kalman filter prediction, the global pixel translation vector is superimposed on the prediction coordinates of the previous frame to obtain the compensated prediction coordinates of the current frame. The intersection-union ratio (IUU) is calculated based on the compensated predicted coordinates and the bounding box of the personnel coordinates output by the lightweight target detection model, and the feature similarity between the face feature vector and the historical feature vector of the corresponding personnel target in the previous frame is also calculated. Based on the intersection-union ratio and the feature similarity, cascade matching is performed, and the tracking ID corresponding to the successfully matched bounding box is determined as the end-side tracking ID.
6. The method according to claim 1, characterized in that, The cloud platform performs identity verification based on the high-frequency data packet or the downgraded data packet, and sends the verification result back to the AI glasses, including: Lightweight visual attribute classification is performed on the full-body ROI images in the high-frequency data packets or the degraded data packets to determine the target personnel category; Based on the current region's dynamic verification strategy, determine whether the target personnel category matches the current verification strategy; If there is no match, early termination will be triggered, and the current target data will be discarded; If a match is found, then according to the target personnel category, face comparison and recognition are performed on the target data that matches the current verification strategy in the corresponding identity database to obtain the candidate face identity and the corresponding first confidence level. Furthermore, based on the target personnel category, pedestrian re-identification is performed on the target data matching the current verification strategy in the corresponding identity database to obtain human candidate identities and corresponding second confidence levels; Arbitration decisions are made based on the first confidence level and the second confidence level to generate the final identity verification result; The final identity verification result is sent back to the AI glasses.
7. The method according to claim 6, characterized in that, The step of performing face comparison and recognition on the target data that matches the current verification strategy includes: If the target data is the high-frequency data packet, then the facial feature vector in the high-frequency data packet is directly extracted, and cosine similarity retrieval is performed in the cloud vector database to output the candidate facial identity and the corresponding first confidence score. If the target data is the downgraded data package, then the cloud-based face recognition model is invoked to extract the face feature vector from the full-body ROI image in the downgraded data package, and cosine similarity retrieval is performed in the vector database on the cloud side to output the face candidate identity and the corresponding first confidence score.
8. The method according to claim 6, characterized in that, The step of performing pedestrian re-identification on the target data that matches the current verification strategy includes: Extract the full-body ROI image and location coordinates of the target person from the high-frequency data packet or the downgraded data packet; The full-body ROI image of the target person is input into a global feature encoding network to extract the global re-identification vector of the target person. Obtain the global re-identification vector, historical observation location, and historical observation timestamp of registered personnel in the cloud-based database; Using the positioning coordinates as the current observation position, and combining the historical observation positions and timestamps of the registered personnel, a spatiotemporal reachability constraint is constructed with a preset maximum physical movement speed. Registered personnel who do not meet the spatiotemporal reachability constraint are eliminated to obtain candidate registered personnel. Perform posture determination on the candidate registrants and remove those with abnormal postures; The query global re-identification vector is compared with the multi-template feature map of the finally retained candidate registrants using k-NN similarity, and the human candidate identity and the corresponding second confidence score are output.
9. The method according to claim 6, characterized in that, The step of making an arbitration decision based on the first confidence level and the second confidence level includes: If the first confidence level exceeds the first preset threshold and the face candidate identity is consistent with the human body candidate identity, it is determined to be a high reliability match, and the face candidate identity or the human body candidate identity is used as the final identity verification result. If the first confidence level is lower than the second preset threshold or no valid face is detected, and the second confidence level exceeds the third preset threshold, then the human candidate identity is accepted as the final identity verification result. If the second confidence level is lower than the fourth preset threshold or pedestrian re-identification fails, and the first confidence level exceeds the first preset threshold, then the face candidate identity is accepted as the final identity verification result. If the face candidate identity is inconsistent with the human body candidate identity, and the difference between the first confidence level and the second confidence level is less than the fifth preset threshold, then a modal conflict pending identifier is generated as the final identity verification result.
10. A personnel identity verification system, characterized in that, Including AI glasses and the cloud; The AI glasses include: The video capture module is used to continuously capture video streams; A state perception module is used to acquire first state data and second state data of the AI glasses; the first state data is used to characterize the thermal state of the AI glasses, and the second state data is used to characterize the motion state of the AI glasses. The scheduling and processing module is used to dynamically extend the video frame extraction interval from a first frequency to a second frequency when the first state data exceeds a first preset threshold or the second state data exceeds a second preset threshold, suspend the face feature extraction network deployed on the end side, execute a lightweight target detection model, and output a downgraded data packet; when the first state data does not exceed the first preset threshold and the second state data does not exceed the second preset threshold, the face feature extraction network is activated to extract face feature vectors from valid frames and crop the region of interest of the person, and output a high-frequency data packet; The first communication module is used to upload the downgraded data packet or the high-frequency data packet to the cloud and receive the verification result returned by the cloud. The cloud includes: The second communication module is used to receive the downgraded data packet or the high-frequency data packet uploaded by the AI glasses, and to send the verification result back to the AI glasses; The identity verification module is used to perform identity verification based on the high-frequency data packet or the downgraded data packet and generate the verification result.
