A human motion posture recognition method, device, medium and equipment

By adaptively fusing visual and inertial data, the accuracy and robustness issues of human motion posture recognition in occluded scenarios are solved, and stable posture recognition is achieved under occlusion conditions.

CN123182291APending Publication Date: 2026-11-27GUANGZHOU BAOLUN ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611282415.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-24
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies cannot accurately and efficiently identify human movement postures in occluded and complex scenarios. Visual solutions lack redundant data sources, have poor robustness, and lack adaptive mechanisms.

Method used

By fusing visual perception data and inertial perception data, and through adaptive threshold and weight allocation, joint-level soft switching and weighted fusion are achieved to ensure the accuracy and continuity of posture recognition under occlusion conditions.

Benefits of technology

Maintaining accurate recognition of human movement postures under occlusion and complex scenarios improves robustness and reliability, and avoids misjudgment and data breakage caused by occlusion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182291A_ABST
    Figure CN123182291A_ABST
Patent Text Reader

Abstract

The application discloses a human motion posture recognition method and device, medium and equipment, and belongs to the motion posture recognition field. The application obtains visual data and inertial data of a target human body, respectively performs posture estimation and posture solving, and obtains visual confidence and inertial confidence of each joint. For any joint, the visual confidence of the joint is compared with an adaptive threshold value thereof, when being lower than the threshold value, a first fusion weight of a visual mode and a second fusion weight of an inertial mode are respectively determined according to the visual confidence and the inertial confidence of the joint, the first joint angle and the second joint angle of the joint are weighted and fused based on the two weights, a target joint angle is obtained, and then action stage recognition is performed according to the target joint angles of the joints, so that an action stage recognition result of the target human body is obtained. The application effectively solves the problem that the prior art cannot accurately and efficiently recognize the motion posture of the human body.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of motion posture recognition, and more particularly to a method, device, medium, and equipment for human motion posture recognition. Background Technology

[0002] Human motion posture recognition technology has been widely applied in sports training, rehabilitation medicine, and human-computer interaction in recent years. Current mainstream AI human motion analysis systems generally rely on monocular or multi-view RGB cameras to acquire human images and use deep learning models such as MediaPipe, OpenPose, and YOLOv8-pose to detect and track key points on the human body. These systems capture the positional coordinates of key points on the human skeleton and then calculate motion indicators such as joint angles and the number of movements, and have seen initial applications in scenarios such as school physical fitness tests, posture correction, and online fitness.

[0003] However, vision-based human pose estimation methods face significant challenges in practical applications. Sports movements (such as pull-ups, push-ups, and badminton swings) often involve limb overlap, occlusion of body parts, and mutual occlusion between the human body and exercise equipment (such as horizontal bars, chairs, and rackets). When key body parts (such as elbows, wrists, and knees) are occluded or in a state of motion blur, the confidence of keypoints output by visual algorithms drops sharply, and data may even be lost entirely. Research indicates that occlusion and crowded scenes remain major issues affecting the performance of human pose estimation models. Lightweight models like MediaPipe show significant performance degradation in complex poses or occlusion conditions, and OpenPose also performs poorly in occluded or multi-person scenarios. This directly leads to errors in joint angle calculations or interruptions in motion counting, severely impacting the accuracy and reliability of motion analysis.

[0004] On the other hand, pure vision-based solutions lack any redundant data sources for supplementation or verification when occlusion occurs. The inherent limitations of a single sensor result in poor system robustness—the entire analysis system fails when the camera's field of view is limited, lighting conditions change, or the target is occluded. In recent years, some research has begun to explore fusing inertial measurement units (IMUs) with visual data to improve the robustness of pose estimation. However, existing fusion schemes are mostly simple data stitching or model cascading, lacking an adaptive fusion mechanism based on real-time confidence levels of each modality. These shortcomings prevent current technologies from accurately and efficiently identifying human motion postures. Summary of the Invention

[0005] This invention provides a method, device, medium, and equipment for recognizing human movement postures, in order to solve the problem that existing technologies cannot accurately and efficiently recognize human movement postures.

[0006] Firstly, this application provides a method for recognizing human motion postures, including: Acquire multi-source sensory data of the target human body; the multi-source sensory data includes visual sensory data and inertial sensory data, the visual sensory data is acquired by a preset image acquisition device, and the inertial sensory data is acquired by a preset inertial measurement device worn on the limbs of the target human body; The visual perception data is used to estimate the posture, thereby obtaining the position coordinates of each joint of the target human body and the visual confidence level corresponding to each position coordinate; the inertial perception data is used to calculate the posture, thereby obtaining the joint angle of each joint and the inertial confidence level corresponding to each joint angle. For any joint, the visual confidence score of that joint is compared with the preset adaptive threshold of that joint. When the visual confidence of a joint is lower than its adaptive threshold, the first fusion weight of the visual modality and the second fusion weight of the inertial modality corresponding to the joint are determined according to the visual confidence and the inertial confidence of the joint, respectively. Based on the first fusion weight and the second fusion weight corresponding to the joint, the first joint angle of the joint inferred from the visual perception data and the second joint angle of the joint inferred from the inertial perception data are fused to obtain the target joint angle of the joint. Based on the target joint angles of each joint, the motion phase is identified to obtain the motion phase identification result of the target human body.

[0007] This application achieves complementarity between visual and inertial modalities at the data source level by acquiring visual and inertial perception data of the target human body. Visual perception data is used to estimate the position coordinates of each joint and their corresponding visual confidence scores, while inertial perception data is used to calculate the joint angles of each joint and their corresponding inertial confidence scores. This allows the same joint to have quantifiable reliability characteristics in both modalities. Furthermore, for any joint, by comparing its visual confidence score with its corresponding adaptive threshold, differentiated judgments can be made based on the differences in occlusion susceptibility across different body parts. When the visual confidence score falls below the adaptive threshold, data fusion for that joint is triggered, rather than uniformly processing all joints or blindly switching data sources. This preserves high-precision visual inference results on joints with reliable visual data and initiates data fusion on joints with unreliable visual data. Inertial data supplementation is used. Furthermore, upon triggering fusion, a first fusion weight for the visual modality and a second fusion weight for the inertial modality are determined based on the visual confidence and inertial confidence of the joint, respectively. The first and second joint angles of the joint are then fused based on these two weights. This allows the weight allocation to dynamically change according to the actual reliability of each modality for the joint at the current moment; the lower the visual confidence, the higher the inertial modality weight, and vice versa. This achieves adaptive soft switching and weighted fusion of two heterogeneous data sources at the joint level, avoiding angle jumps and data breaks caused by hard switching. Finally, action phase recognition is performed based on the target joint angles of each joint. Since the target joint angles can remain continuous and stable even when occlusion occurs, the action phase recognition results will not be misjudged or interrupted due to the loss of visual key points. Therefore, this application can maintain accurate recognition of human motion posture even when the camera's field of view is limited or human key points are occluded, effectively improving the robustness and reliability of posture recognition in occluded scenarios.

[0008] Furthermore, the acquisition of multi-source sensory data of the target human body specifically includes: The system acquires continuous video frames of the target human body using a preset image acquisition device, extracts the timestamp of each frame in the continuous video frames, and performs scale normalization processing on each frame to obtain visual perception data. First acceleration data and first angular velocity data are collected by a first inertial measurement device pre-set on the proximal limb of the target human body, and second acceleration data and second angular velocity data are collected by a second inertial measurement device pre-set on the distal limb of the target human body. The first acceleration data, the first angular velocity data, the second acceleration data, and the second angular velocity data are used as initial inertial sensing data. Using the exposure time of the image acquisition device as the reference clock, the initial inertial sensing data is resampled using an interpolation method to align with the timestamp of the visual sensing data, thus obtaining the inertial sensing data.

[0009] This application employs dual inertial measurement units (IMUs) at both the proximal and distal ends to collect acceleration and angular velocity data of the limbs on both sides of a joint. This allows the motion state of the limbs on both sides of the joint to be perceived independently, providing a raw data foundation containing the relative motion relationship of the limbs for subsequent joint angle calculation via dual-end attitude difference. Simultaneously, using the exposure time of the image acquisition device as a reference clock, the inertial measurement data is resampled using interpolation to ensure strict alignment with the timestamp of the visual data. This ensures that each set of visual and inertial data participating in subsequent fusion precisely corresponds to the same physical moment in the time dimension, avoiding timing misalignment issues caused by asynchronous sampling frequencies or start-up time deviations between the two sensors. This ensures that the data from both modalities reflect the true posture state of the target human body at the same moment during subsequent confidence comparison and angle fusion. Therefore, this application can guarantee precise alignment of the visual and inertial modalities in the time dimension at the data source level, providing an accurate temporal matching basis for subsequent joint-level confidence comparison and angle fusion.

[0010] Furthermore, the attitude calculation of the inertial sensing data to obtain the joint angles of each joint and the corresponding inertial confidence level for each joint angle specifically involves: For any joint, a first spatial attitude angle is calculated using a preset complementary filtering fusion algorithm based on a first inertial measurement device worn on the proximal limb of the joint, and a second spatial attitude angle is calculated using a preset complementary filtering fusion algorithm based on a second inertial measurement device worn on the distal limb of the joint. The joint angle of the joint is calculated based on the difference between the first spatial attitude angle and the second spatial attitude angle. Calculate the variance of the acceleration amplitude of the inertial sensing data, and determine the inertial confidence level of the joint based on the variance of the acceleration amplitude.

[0011] This application equips each joint with a first inertial measurement unit (IMU) worn on the proximal limb and a second IMU worn on the distal limb, and calculates the first and second spatial attitude angles using complementary filtering fusion algorithms, respectively. This ensures that the spatial orientation of each limb can achieve stable output by combining the advantages of static drift-free accelerometers and fast dynamic response of gyroscopes, providing accurate basic attitude data for subsequent joint angle calculations. Based on this, the joint angle is obtained by calculating the difference between the first and second spatial attitude angles at the same joint, which can offset common errors introduced by overall body tilt or equipment installation deviations. The error component ensures that the calculated joint angles only reflect the relative rotation of the joint itself, thus improving the measurement accuracy of joint angles in dynamic motion scenarios. Simultaneously, the inertial confidence level of a joint is determined by calculating the variance of the acceleration amplitude of the inertial sensing data. Since the variance of the acceleration amplitude is negatively correlated with the inertial confidence level, the inertial confidence level automatically decreases when the accelerometer saturates due to violent limb movement or vibration. This provides a quantitative measure of the reliability of the current inertial data for the subsequent fusion process, avoiding attitude estimation bias caused by using unreliable inertial data with high weights during fusion. Therefore, this application can accurately calculate the joint angles of each joint and their corresponding inertial confidence levels, providing a reliable inertial data foundation and quality measurement basis for subsequent joint-level confidence comparison and adaptive fusion.

[0012] Furthermore, the preset adaptive threshold is determined in the following way: Based on human anatomy, the joints of the target human body are divided into multiple preset joint groups, and a basic threshold is set for each joint group. The average visual confidence score of all joints within the 20 consecutive frames collected before the current moment is calculated and used as the environmental reference value. For any joint, an adaptive threshold is determined based on the base threshold of the joint group to which the joint belongs and the environmental reference value.

[0013] This application divides joints into multiple joint groups based on human anatomy and sets a basic threshold for each group. This allows different parts to be assigned different judgment criteria due to differences in appearance characteristics and occlusion susceptibility. Rigid trunk points, due to their obvious appearance characteristics and minimal occlusion, are assigned a higher threshold, while easily occluded hinge points, due to frequent flexion and extension and susceptibility to occlusion by the torso or instruments, are assigned a lower threshold. This avoids the problem of frequent false triggering of fusion when using a uniform threshold to make indiscriminate judgments on all joints, as the confidence level of the elbow joint is naturally lower than that of the head. It also avoids the problem of improperly discarding valid head data when lowering the global threshold to accommodate hinge points. At the same time, the application calculates the average visual confidence of all joints within the 20 consecutive frames acquired before the current moment. As an environmental reference value, the adaptive threshold determination process can perceive the impact of global environmental factors such as current lighting conditions and shooting angle on the overall confidence of visual detection. When environmental factors cause a general decrease in global confidence, the threshold automatically decreases; when environmental conditions are favorable, the threshold automatically recovers. This avoids unnecessary fusion triggering due to fixed thresholds caused by environmental changes or rejection of valid visual data due to excessively high thresholds. Based on this, for any joint, the adaptive threshold is determined jointly by the base threshold of the group to which the joint belongs and the environmental reference value. This allows the thresholds of each joint within the same group to fluctuate synchronously with the overall confidence level of the current environment, preserving the differentiated judgment criteria between individual parts while achieving dynamic adaptation of the threshold to environmental changes. Therefore, this application can generate adaptive thresholds for each joint that match its actual working conditions, based on the occlusion sensitivity of different joints and the current environmental conditions, improving the accuracy of triggering fusion judgment conditions and environmental adaptability.

[0014] Furthermore, each joint group includes a rigid backbone point group, an end-effector movement point group, and an easily obstructed hinge point group; The rigid trunk point grouping includes joints corresponding to the head, shoulders, and hips; The end-effector grouping includes joints corresponding to the wrist and ankle, and the easily obscured hinge point grouping includes joints corresponding to the elbow and knee joints. The base threshold of the easily obscured hinge point group is lower than the base threshold of the rigid trunk point group and also lower than the base threshold of the end motion point group.

[0015] This application categorizes joints into rigid trunk point groups, end-effector motion point groups, and easily occluded hinge point groups, and sets differentiated base thresholds based on the anatomical characteristics and occlusion susceptibility of each group. This allows different types of joints to be distinguished from each other on the basis of visual confidence determination. The rigid trunk point group includes joints corresponding to the head, shoulder, and hip. These joints have obvious appearance features and are rarely occluded. Setting a higher base threshold means that fusion is only triggered when the visual confidence drops to a relatively low level, thereby maximizing the preservation of high-precision inference results of visual data in an effective state and avoiding unnecessary fusion errors introduced by inertial data. The end-effector motion point group includes joints corresponding to the wrist and ankle. These joints have fast movement speeds and are prone to motion blur, but are relatively occluded. The system has a relatively small number of joints, and a moderate base threshold is set to ensure timely supplementation with inertial data when confidence decreases due to motion blur. This avoids relying solely on visual results when visual data is unreliable due to an excessively low threshold. The easily occluded hinge point group includes joints corresponding to the elbow and knee joints. These joints are frequently occluded by the torso or machinery during flexion and extension, resulting in naturally low visual confidence. Setting a base threshold lower than the previous two groups prevents fusion from being easily triggered when the visual confidence of these joints is not high but still within its normal fluctuation range. This avoids the premature replacement of usable visual data with inertial data due to frequent false triggers of fusion, which would lead to a decrease in attitude estimation accuracy. It also ensures timely inertial compensation when these joints are severely occluded and their confidence drops below the threshold. Therefore, this application can establish differentiated confidence judgment criteria based on the inherent differences in occlusion susceptibility of each joint, improving the matching degree between the fusion triggering conditions and the actual working conditions of each joint.

[0016] Furthermore, the first fusion weight of the visual modality and the second fusion weight of the inertial modality corresponding to the joint are determined based on the visual confidence and the inertial confidence of the joint, respectively. Based on the first and second fusion weights corresponding to the joint, the first joint angle inferred from the visual perception data and the second joint angle inferred from the inertial perception data are fused to obtain the target joint angle of the joint. Specifically: Obtain the preset visual modality base weights and inertial modality base weights; The product of the visual confidence of the joint and the basic weight of the visual modality is used as the initial fusion weight of the visual modality, and the product of the inertial confidence of the joint and the basic weight of the inertial modality is used as the initial fusion weight of the inertial modality. The initial fusion weights of the visual modality and the initial fusion weights of the inertial modality are normalized. The normalized initial fusion weights of the visual modality are used as the first fusion weights of the visual modality corresponding to the joint, and the normalized initial fusion weights of the inertial modality are used as the second fusion weights of the inertial modality corresponding to the joint. The fused joint angle of the joint is obtained by adding the product of the first fusion weight of the joint and the first joint angle and the product of the second fusion weight of the joint and the second joint angle. The fused joint angle is input as an observation value to a preset Kalman filter for time-series smoothing, and the smoothed joint angle output by the Kalman filter is taken as the target joint angle of the joint.

[0017] This application obtains preset visual modality and inertial modality base weights, and then normalizes the visual and inertial confidence scores of the joint by multiplying them by their respective base weights. This ensures that the fusion weights of the visual and inertial modalities inherit the reliability comparison of the two modalities under default conditions reflected by the preset base weights, and also dynamically change with the actual confidence scores of each modality for the joint at the current moment—the fusion weights of the visual modality adaptively decrease when the visual confidence score decreases, and the fusion weights of the inertial modality adaptively increase when the inertial confidence score increases. This achieves continuous soft switching of data source contribution at the joint level, avoiding angle jumps caused by hard switching. Based on this, the product of the first fusion weight of the joint and the first joint angle is multiplied by the second fusion weight of the joint and the second joint angle. The product of the joint angles is added together to obtain the fused joint angle, making the fused angle closer to the data source provided by the modality with higher confidence at the current moment. This effectively utilizes the advantage of visual data having better accuracy when confidence is high and the stable and continuous compensation capability of inertial data when visual failure occurs, realizing adaptive weighted integration of two heterogeneous data sources. At the same time, normalization processing ensures that the fusion result will not deviate from the reasonable angle range due to improper weight allocation. Furthermore, the fused joint angle is used as the observation value input to a preset Kalman filter for temporal smoothing. Since the Kalman filter can use the optimal estimate value of the previous moment to correct the observation value of the current moment, it effectively suppresses the drastic fluctuations that may occur in the angle of a single frame at the beginning or end of occlusion, so that the output angle remains smooth and continuous in the time dimension. Therefore, this application can obtain continuous, smooth and stable joint angle output during the dynamic change of confidence in each modality, avoiding attitude jitter caused by abrupt changes in the data source due to occlusion state.

[0018] Secondly, this application provides a human motion posture recognition device. The human motion posture recognition device includes: The acquisition module is used to acquire multi-source sensory data of the target human body; the multi-source sensory data includes visual sensory data and inertial sensory data, the visual sensory data is acquired by a preset image acquisition device, and the inertial sensory data is acquired by a preset inertial measurement device worn on the limbs of the target human body; An estimation module is used to perform attitude estimation on the visual perception data to obtain the position coordinates of each joint of the target human body and the visual confidence level corresponding to each position coordinate; and to perform attitude calculation on the inertial perception data to obtain the joint angle of each joint and the inertial confidence level corresponding to each joint angle. The comparison module is used to compare the visual confidence of any joint with a preset adaptive threshold for that joint. The fusion module is used to determine the first fusion weight of the visual modality and the second fusion weight of the inertial modality corresponding to the joint based on the visual confidence and the inertial confidence of the joint when the visual confidence of the joint is lower than the adaptive threshold of the joint. Based on the first fusion weight and the second fusion weight corresponding to the joint, the first joint angle inferred from the visual perception data and the second joint angle inferred from the inertial perception data are fused to obtain the target joint angle of the joint. The recognition module is used to identify the action stage based on the target joint angle of each joint, and obtain the action stage recognition result of the target human body.

[0019] This application acquires multi-source sensory data, including visual and inertial modalities, through an acquisition module, providing two heterogeneous data sources as input for subsequent processing. An estimation module performs pose estimation on the visual sensory data to obtain the position coordinates and visual confidence scores of each joint, while simultaneously performing pose calculation on the inertial sensory data to obtain the joint angles and inertial confidence scores of each joint. This allows both the visual and inertial modalities to output quantifiable pose information and their corresponding reliability characteristics at the joint level. Based on this, a comparison module compares the visual confidence score of each joint with its adaptive threshold, enabling the determination of trigger fusion to be performed independently at the joint level, rather than applying a uniform judgment standard to all joints or blindly switching data sources. This preserves visual inference results on joints with reliable visual data and... Fusion is triggered individually at unreliable joints. When the visual confidence of any joint is lower than its adaptive threshold, the fusion module determines the first fusion weight of the visual modality and the second fusion weight of the inertial modality based on the visual and inertial confidence of the joint, respectively. Based on these two weights, the first and second joint angles of the joint are fused to obtain the target joint angle. This allows the weight allocation to dynamically change according to the actual reliability of each modality at the current moment, achieving adaptive soft switching and weighted fusion of two heterogeneous data sources at the joint level. Finally, the recognition module performs action stage recognition based on the target joint angles of each joint to obtain the action stage recognition result. Since the target joint angle can remain continuous and stable even when occlusion occurs, it can still be filled in by inertial data, and the stage recognition result will not be misjudged or interrupted due to the loss of visual key points. Therefore, this application can still maintain accurate recognition of human motion posture even when the camera's field of view is limited or human key points are occluded, effectively improving the robustness and reliability of posture recognition in occluded scenarios.

[0020] Thirdly, this application provides a computer-readable storage medium comprising a stored computer program, wherein, when the computer program is executed, it controls the device containing the computer-readable storage medium to perform the human motion posture recognition method as described above. Its beneficial effects are the same as those of the human motion posture recognition method provided in the first aspect of this application.

[0021] Fourthly, this application provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement any of the human motion posture recognition methods described in the first aspect. Attached Figure Description

[0022] Figure 1 : A schematic flowchart of an embodiment of the human motion posture recognition method provided in this application; Figure 2 : A schematic diagram of an embodiment of the human motion posture recognition device provided in this application. Detailed Implementation

[0023] 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. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0024] Example 1 Please refer to Figure 1 In order to solve the problem that existing technologies cannot accurately and efficiently identify human movement postures, this invention provides a human movement posture recognition method, including steps S01-S05.

[0025] S01: Acquire multi-source sensory data of the target human body; the multi-source sensory data includes visual sensory data and inertial sensory data, the visual sensory data is acquired by a preset image acquisition device, and the inertial sensory data is acquired by a preset inertial measurement device worn on the limbs of the target human body; As a preferred embodiment of this invention, the acquisition of multi-source sensory data of the target human body specifically includes: Continuous video frames of a target human body are acquired using a pre-set image acquisition device. This device can be a monocular RGB camera or a binocular RGB camera, positioned at the front, side, or other viewpoints that capture the complete posture of the target human body. The image acquisition device acquires continuous video frames of the target human body performing its movements at a preset frame rate (e.g., 30 frames / second). For each acquired frame, the corresponding timestamp is extracted, and the frame is scaled to a preset uniform size. The pixel values ​​of each channel are mapped from an integer range to a floating-point range. The processed image data is then used as visual perception data.

[0026] Simultaneously, inertial measurement units (IMUs) worn on the target human limbs collect inertial sensing data. For any joint of the target human body, a first IMU worn on the proximal limb of that joint collects first acceleration and first angular velocity data, and a second IMU worn on the distal limb of that joint collects second acceleration and second angular velocity data. For example, taking elbow joint monitoring in a pull-up scenario: the proximal first IMU is fixed to the lateral aspect of the upper arm, near the biceps brachii, to sense changes in the upper arm's posture in space; the distal second IMU is fixed to the lateral aspect of the forearm, near the ulna, to sense changes in the forearm's posture in space. Both IMUs synchronously collect data at the same preset sampling frequency (e.g., 100Hz) and transmit it in real time to the edge computing host via Bluetooth Low Energy or 2.4G wireless protocol. Each IMU is a six-axis IMU unit, containing a three-axis accelerometer and a three-axis gyroscope, where the three-axis accelerometer is used to collect acceleration data of the limb in three orthogonal directions in space (denoted as a). x a y a z The three-axis gyroscope is used to collect angular velocity data (denoted as ω) of the limb in three orthogonal directions around space. x ω y ω z The inertial measurement unit (IMU) synchronously acquires data at a preset sampling frequency (e.g., 100Hz), and uses the acquired first acceleration data, first angular velocity data, second acceleration data, and second angular velocity data as initial inertial sensing data. The IMU can be in the form of a smart wristband, dedicated armband, or knee brace, and is secured to the limb using Velcro or elastic straps to ensure no relative slippage occurs during vigorous movement.

[0027] Because the image acquisition device and the inertial measurement device use different clock sources and sampling frequencies, the data acquired by the two are not naturally aligned on the time axis. If the misaligned data is used directly for subsequent processing, the fusion result will deviate from the actual physical process due to the inconsistent time reference. Therefore, using the exposure time of the image acquisition device as the reference clock, an interpolation method is used to resample the initial inertial sensing data to align with the timestamp of the visual sensing data. Specifically, for the exposure time t_v corresponding to each frame of the image, the two sampling times t_i and t_{i+1} adjacent to the exposure time are located in the time series of the initial inertial sensing data, where t_i≤t_v≤t_{i+1}, and then the inertial data value corresponding to the exposure time is calculated using a linear interpolation formula. Taking acceleration data as an example, the interpolation formula is: a(t_v)=a(t_i)+[a(t_{i+1})-a(t_i)]×[(t_v-t_i) / (t_{i+1}-t_i)]. Angular velocity data is interpolated in the same way. After the above interpolation processing, each frame of visual perception data has a set of inertial perception data that is strictly time-aligned with it. This set of aligned data is used as the final inertial perception data, thereby ensuring that each subsequent set of data involved in processing corresponds to the same physical moment.

[0028] Preferably, a zero-bias correction step is performed before the inertial measurement unit (IMU) formally acquires motion data. After system startup, the IMU acquires measurement data in the first 200 frames of stationary states, calculating the average value of the accelerometer measurements for each axis as the static zero-bias value for acceleration and the average value of the gyroscope measurements for each axis as the static zero-bias value for angular velocity. During subsequent real-time acquisition, the static zero-bias value of the corresponding axis is subtracted from the acceleration and angular velocity measurements of each frame to eliminate the influence of systematic sensor bias on measurement accuracy. Simultaneously, since the first and second IMUs involved in the same joint are located on different limb segments of the same target human body, the attitude calculations of the two IMUs must be unified to the same reference coordinate system before calculating the joint angle in subsequent steps. This ensures that the calculated difference accurately reflects the relative rotation of the joint itself, rather than a false angle deviation introduced by the inconsistency in the coordinate system.

[0029] S02: Perform posture estimation on the visual perception data to obtain the position coordinates of each joint of the target human body and the visual confidence level corresponding to each position coordinate; perform posture calculation on the inertial perception data to obtain the joint angle of each joint and the inertial confidence level corresponding to each joint angle. In a preferred embodiment of this invention, the step of performing posture estimation on the visual perception data to obtain the position coordinates of each joint of the target human body and the visual confidence level corresponding to each position coordinate; and performing posture calculation on the inertial perception data to obtain the joint angles of each joint and the inertial confidence level corresponding to each joint angle, specifically: In one specific implementation, the process of pose estimation for visual perception data is as follows: Preprocessed visual perception data is input into a pre-defined pose estimation model. This model can be a deep learning-based human pose estimation network such as MediaPipe, OpenPose, or YOLOv8-pose. These models are pre-trained based on sample images labeled with human joint coordinates and are capable of frame-by-frame keypoint detection of the target human body in the input image. The pose estimation model detects multiple joints of the target human body and outputs the position coordinates (x, y) of each joint in image space, where x represents the horizontal position of the joint in the image, and y represents the vertical position of the joint in the image. Simultaneously, the pose estimation model outputs a detection confidence score for each joint's position coordinates. This confidence score ranges from 0 to 1, reflecting the model's degree of certainty regarding the predicted joint position coordinates. This confidence score is significantly affected by factors such as occlusion and motion blur—the confidence score decreases when the joint is occluded or in a rapid motion state. The detection confidence score of the pose estimation model for the position coordinates of each joint is used as the visual confidence score of that joint.

[0030] On the other hand, the specific process of attitude calculation from inertial sensing data is as follows: First, zero-bias correction is performed on the inertial sensing data. After the system starts, measurement data from each inertial measurement device in the first 200 frames of stationary state are collected. The average value of the accelerometer measurements for each axis is calculated as the static zero-bias value of acceleration for each axis, and the average value of the gyroscope measurements for each axis is calculated as the static zero-bias value of angular velocity for each axis. During real-time acquisition, for any inertial measurement device, the static zero-bias value of acceleration for each corresponding axis is subtracted from the real-time acquired three-axis acceleration measurements to obtain the corrected acceleration data (denoted as a). x a y a z The real-time acquired triaxial angular velocity measurements are subtracted from the static zero bias value of the angular velocity for each corresponding axis to obtain the corrected angular velocity data (denoted as ω). x ω y ω z After the above corrections, the static attitude angles of the limb where the inertial measurement device is located are calculated using the corrected acceleration data. In static or low-speed motion scenarios, the accelerometer measures the components of gravitational acceleration along the three axes of the inertial measurement device. Therefore, the pitch and roll angles can be calculated using the three-axis gravitational acceleration components in the corrected acceleration data. The calculation formula is as follows: Where a x a y a z To correct the triaxial readings (in g) of the acceleration data, the pitch angle is... acc and roll angle acc These represent the tilt angles of the limbs in the sagittal and coronal planes, respectively. Simultaneously, the dynamic attitude angles are calculated by integrating the triaxial angular velocities over time using corrected angular velocity data. This involves accumulating the angular velocity data over time to obtain the angle change. The specific calculation formula is as follows: In the formula, w(t) is the angular velocity value at the current moment. This represents the sampling time interval.

[0031] Based on this, the static attitude angles and dynamic attitude angles of the same inertial measurement device are fused using complementary filtering. The fusion formula for complementary filtering is: in, The complementary filter coefficients (ranging from 0.92 to 0.98) determine the weight of the gyroscope integration. The closer the value is to 1, the more the system trusts the gyroscope (good dynamic response), and the smaller the value is, the more the system trusts the accelerometer (static accuracy). This fusion strategy combines the advantages of the accelerometer's static drift-free operation and the gyroscope's fast dynamic response, ultimately obtaining the spatial attitude angles of the limbs where each inertial measurement device is located.

[0032] After obtaining the spatial attitude angles of the limbs where each inertial measurement device (ITM) is located, for any joint of the target human body, the joint angle is calculated based on the difference between the first spatial attitude angle calculated by the first ITM worn on the proximal limb of the joint and the second spatial attitude angle calculated by the second ITM worn on the distal limb of the joint. Specifically, taking the elbow joint as an example, the pitch angle calculated by the first ITM worn on the upper arm is denoted as θ_proximal, and the pitch angle calculated by the second ITM worn on the forearm is denoted as θ_distal. After the two ITMs perform attitude calculations in the same reference coordinate system, the joint angle of the elbow joint in the sagittal plane (flexion and extension direction) is θ_joint = θ_distal - θ_proximal. Similarly, the joint angle in the coronal plane (left-right swing direction) can also be calculated. For any joint, the joint angles on one or more planes of the joint are calculated using the above dual-inertial measurement device difference method.

[0033] In addition, the inertial confidence level corresponding to each joint angle needs to be determined. Specifically, the variance of the acceleration amplitude in the inertial sensing data corresponding to that joint is calculated, which reflects the severity of signal fluctuations in the time domain. The formula for calculating the acceleration amplitude is: Among them, a x a y a z To calibrate the triaxial readings of acceleration data, the variance of the acceleration amplitude from the most recent 20 consecutive frames is calculated, using the current moment as a reference. A larger variance indicates more intense limb movement or greater vibration noise, correspondingly reducing the reliability of the inertial measurement data. Therefore, the inertial confidence level of the joint is determined based on this variance—variance and inertial confidence level are negatively correlated; that is, a larger variance results in lower inertial confidence level, and a smaller variance results in higher inertial confidence level. in, The variance of the acceleration amplitude in the most recent 20 frames. Furthermore, to ensure the stability and physical plausibility of the attitude calculation results, the calculated joint angles are smoothed and physiologically constrained. For angle smoothing, the moving average of the most recent five frames is used to eliminate the influence of instantaneous noise on the angle output. For physiological constraint verification, if the calculated joint angle exceeds the normal physiological range of human activity (e.g., the elbow joint exceeds the range of 0° to 150°), the frame is marked as low confidence so that the subsequent fusion module can process it accordingly. In addition, a zero-velocity correction step is performed: when a limb is detected to be stationary (i.e., the acceleration variance is less than a preset threshold), the gyroscope integral drift is forcibly returned to zero to prevent the accumulation of errors from affecting the accuracy of the attitude calculation.

[0034] S03: For any joint, compare the visual confidence of the joint with the preset adaptive threshold of the joint. In a preferred embodiment of this invention, the step of comparing the visual confidence level of any joint with a preset adaptive threshold for that joint specifically involves: In one specific implementation, before comparing the visual confidence score of each joint with its adaptive threshold, it is necessary to first determine the adaptive threshold for each joint. Since the probability and degree of occlusion of different joints in the target human body vary significantly during movement—for example, the elbow and knee joints are prone to overlapping with the torso or other limbs during flexion and extension, while the head, shoulders, and other parts have distinct appearance features and are rarely occluded—applying a uniform judgment criterion to all joints would lead to inaccurate judgments. Therefore, this application adopts an adaptive threshold determination strategy based on joint grouping and global environment perception.

[0035] Specifically, the target human body's joints are first divided into several pre-defined joint groups based on anatomical characteristics. Each joint group includes at least a rigid trunk point group, an end-effector point group, and an easily occluded hinge point group. The rigid trunk point group includes joints corresponding to the head, shoulders, and hips. These joints have distinctive appearances and are rarely completely occluded during movement, resulting in high stability for the pose estimation model. The end-effector point group includes joints corresponding to the wrists and ankles. These joints move at relatively high speeds, are prone to motion blur, but experience relatively less occlusion. The easily occluded hinge point group includes joints corresponding to the elbows and knees. These joints are easily occluded by the torso or sports equipment during flexion and extension. After grouping the joints, a base threshold T_base is set for each joint group. The specific value of the baseline threshold was determined through offline experimental statistics—500 to 1000 frames of labeled data of the target action were collected, and the visual confidence of each joint in each frame was compared with its manual annotation of "actual usability". A receiver operating characteristic (ROC) curve was plotted, and the confidence corresponding to the maximum Youden index was selected as the baseline threshold for that joint group. In practical applications, an optional experimental method is as follows: using pull-ups as the target action, 800 frames of image data including both occluded and unoccluded elbow joints were collected. The visual keypoints of each joint were labeled frame by frame to determine if they could be used to accurately calculate the angle. The labeling results were compared with the visual confidence and an ROC curve was plotted. Based on the differences in keypoint characteristics among different groups, the baseline thresholds for each group were set to different values: the baseline threshold for the rigid trunk point group was set to 0.75, the baseline threshold for the distal end motion point group was set to 0.65, and the baseline threshold for the easily occluded hinge point group was set to between 0.50 and 0.55. The base threshold for easily occluded hinge point grouping is lower than that for rigid trunk point grouping and also lower than that for end motion point grouping. This ensures that easily occluded joints will not frequently trigger fusion when the confidence level is in its normal low range, thus avoiding premature introduction of inertial data and loss of visual data accuracy.

[0036] Meanwhile, to perceive the impact of global environmental factors such as changes in illumination and shooting angle on the overall confidence of visual detection, the average visual confidence of all joints within the 20 consecutive frames collected before the current moment is calculated and used as the environmental reference value C_env. This environmental reference value reflects the overall reliability of the visual perception data at the current moment—when environmental factors cause a general decrease in global confidence, the environmental reference value decreases accordingly; when environmental conditions are good, the environmental reference value remains at a high level.

[0037] For any joint, the adaptive threshold T_adaptive of this joint is jointly determined based on the base threshold T_base of the joint group to which this joint belongs and the environmental reference value C_env. The specific determination method is as follows: first obtain the reference average confidence C_ref under standard lighting conditions (which can be pre-determined by counting the average visual confidence under normal lighting conditions, for example, set to 0.85), then calculate the environmental compensation coefficient α, whose calculation formula is: α=C_env / C_ref. This coefficient reflects the overall impact of current environmental conditions on visual confidence relative to standard lighting conditions—the smaller the coefficient, the more unfavorable the current environment is for visual detection. Next, the base threshold of this joint is adaptively corrected according to the environmental compensation coefficient, and the correction formula is: T_adaptive=T_base×α+T_base×(1-α)×β, where β is the adaptive intensity coefficient with a value range of 0.5 to 0.7, used to control the degree of influence of environmental factors on threshold correction. When the environmental reference value is lower than the standard reference value, the environmental compensation coefficient is less than 1, and the adaptive threshold decreases accordingly, thereby avoiding frequent triggering of unnecessary fusion when the visual confidence generally decreases due to environmental factors such as lighting; when the environmental reference value is equal to or close to the standard reference value, the environmental compensation coefficient approaches 1, and the adaptive threshold approaches the base threshold of this joint, maintaining the original judgment benchmark.

[0038] On this basis, for any joint of the target human body, obtain the visual confidence C_vis of this joint and compare it with the adaptive threshold T_adaptive of this joint. If C_vis≥T_adaptive, it indicates that the visual detection result of the current joint is credible, then the visual data is fully trusted, and the first joint angle inferred from the visual perception data of this joint is directly used as the output angle of this joint without triggering fusion; if C_vis<T_adaptive, it indicates that the visual detection result of the current joint is unreliable, and the data fusion process is triggered.

[0039] S04: When the visual confidence of this joint is lower than the adaptive threshold of this joint, the first fusion weight of the visual modality and the second fusion weight of the inertial modality corresponding to this joint are respectively determined according to the visual confidence of this joint and the inertial confidence of this joint, and based on the first fusion weight and the second fusion weight corresponding to this joint, the first joint angle of this joint inferred from the visual perception data and the second joint angle of this joint inferred from the inertial perception data are fused to obtain the target joint angle of this joint; In a preferred embodiment of this example, when the visual confidence of the joint is lower than the adaptive threshold of the joint, a first fusion weight of the visual modality and a second fusion weight of the inertial modality corresponding to the joint are determined according to the visual confidence and the inertial confidence of the joint, respectively. Based on the first fusion weight and the second fusion weight corresponding to the joint, the first joint angle of the joint inferred from the visual perception data and the second joint angle of the joint inferred from the inertial perception data are fused to obtain the target joint angle of the joint. Specifically: In one specific implementation, when the visual confidence of a certain joint is lower than the adaptive threshold of that joint, it indicates that the prediction result of the posture estimation model for the position coordinates of that joint is unreliable. At this time, the data fusion process is triggered to use inertial sensing data to fill in the posture of the joint.

[0040] First, obtain the preset base weights for the visual modality and the inertial modality. The visual modality base weight is denoted as w_v_base, and the inertial modality base weight is denoted as w_i_base. These represent the baseline proportions of the visual and inertial modalities in the fusion process under default conditions. In one optional implementation, both the visual and inertial modality base weights are set to 0.5, indicating that when the confidence levels of the two modalities are the same, their contributions to the fusion result are equal. However, it should be noted that the above values ​​are only examples and can be adaptively adjusted according to the specific scenario and sensor characteristics in practical applications.

[0041] Then, based on the visual confidence C_vis and inertial confidence C_imu of the joint, the initial fusion weights for the visual modality and the inertial modality are calculated respectively. Specifically, the product of the visual confidence C_vis of the joint and the visual modality base weight w_v_base is used as the initial fusion weight for the visual modality, and the product of the inertial confidence C_imu of the joint and the inertial modality base weight w_i_base is used as the initial fusion weight for the inertial modality. The calculation formulas for this process are: w_v_init = C_vis × w_v_base, w_i_init = C_imu × w_i_base. Through the above calculations, the initial fusion weights simultaneously reflect the preset base weights and the actual reliability of each modality for the joint at the current moment—when the confidence of a certain modality is high, the initial fusion weight of that modality increases accordingly; conversely, the initial fusion weight of that modality decreases accordingly.

[0042] Since the initial fusion weights of the visual modality and the inertial modality, when not normalized, have numerical ranges depending on their respective confidence levels, their weighted sum may not equal a preset constant. Therefore, normalization is necessary. The normalization process ensures that the sum of the initial fusion weights of the visual modality and the inertial modality equals a set constant (e.g., 1), thereby guaranteeing that the fused angle always falls within a reasonable range. The normalization formulas are: w_v_norm = w_v_init / (w_v_init + w_i_init), w_i_norm = w_i_init / (w_v_init + w_i_init).

[0043] Where w_v_norm is the normalized visual modality weight, and w_i_norm is the normalized inertial modality weight, and their sum equals 1. The normalized visual modality weight is used as the first fusion weight of the visual modality corresponding to this joint, denoted as w_v_final; the normalized inertial modality weight is used as the second fusion weight of the inertial modality corresponding to this joint, denoted as w_i_final. Through the above normalization process, the fusion weights of the two modalities are constrained to the same numerical scale, and their sum is always equal to 1, avoiding the weight distribution imbalance caused by inconsistent confidence numerical scales.

[0044] After obtaining the first and second fusion weights for the joint, the first and second joint angles are weighted and fused. The first joint angle θ_v is the angle value inferred from visual perception data, which can be obtained by geometric calculation of the joint angle from the keypoint coordinates output by the attitude estimation model. The second joint angle θ_i is the angle value deduced from inertial perception data, which is obtained by differential calculation of the joint angle from the dual inertial measurement devices after the aforementioned complementary filtering fusion. The formula for weighted fusion is: θ_fused = w_v_final × θ_v + w_i_final × θ_i. Through the above weighted summation, the fused joint angle is closer to the data source provided by the modality with higher confidence at the current moment—when the visual confidence is high, the fusion weight of the visual modality dominates, and the fused angle mainly reflects the visual inference result; when the visual confidence is low and the inertial confidence is high, the fusion weight of the inertial modality dominates, and the fused angle mainly reflects the inertial inference result. This weighted fusion mechanism realizes adaptive soft switching between two heterogeneous data sources at the joint level, avoiding the angle jump caused by hard switching.

[0045] Furthermore, to suppress potential noise and jitter in the single-frame fusion result, the aforementioned fused joint angle θ_fused is input as an observation value to a preset Kalman filter for temporal smoothing. The Kalman filter is a recursive filter that uses the state equation of a linear system to optimally estimate the system state based on the system's input and output observation data. In this application, the Kalman filter smooths the input fused joint angle. Its basic principle is: using the optimal estimate from the previous time step to make a priori prediction of the fused joint angle at the current time step, and then combining this with the current observation value (i.e., θ_fused) to weighted correct the predicted value, thus obtaining the posterior estimate for the current time step. Because the Kalman filter continuously updates the estimation error covariance during the recursive process, it can adaptively adjust the filtering gain according to the relative magnitude of observation noise and process noise, thereby effectively suppressing high-frequency noise while preserving the true attitude change. After temporal smoothing by the Kalman filter, the smoothed joint angle output by the filter is taken as the target joint angle, denoted as θ_target. The target joint angle remains smooth and continuous over time, effectively avoiding pose jitter caused by sudden changes in the data source due to occlusion, thus improving the stability and visual appeal of the pose recognition results.

[0046] The visual confidence score and inertial confidence score of each joint at the current moment are obtained, and the maximum value is taken as the overall confidence score. The overall confidence score characterizes the overall reliability of the fusion result at the current moment. The formula for calculating the overall confidence score is: C_total = max(C_max_vision, C_max_imu), where C_total represents the overall confidence score, C_max_vision represents the maximum visual confidence score among all joints of the target human body at the current moment, and C_max_imu represents the maximum inertial confidence score among all joints of the target human body at the current moment. The overall confidence level is compared with a preset confidence threshold (e.g., 0.6): when the overall confidence level is greater than or equal to the threshold, it indicates that at least one data source has a high degree of reliability at the current moment, the credibility of the fusion result meets the requirements, and the target joint angle of each joint is output as a valid result; when the overall confidence level is lower than the threshold, it indicates that the confidence levels of both the visual modality and the inertial modality are low, the credibility of the fusion result is insufficient, and a prompt message is issued to the user interface to suggest that the user check the wearing status of the inertial measurement device or adjust the shooting conditions of the image acquisition device.

[0047] S05: Based on the target joint angles of each joint, the motion phase is identified to obtain the motion phase identification result of the target human body.

[0048] In a preferred embodiment of this invention, the step of identifying the action phase based on the target joint angles of each joint to obtain the action phase identification result of the target human body specifically involves: In one specific implementation, the process of identifying the movement stage based on the target joint angles of each joint is as follows: This identification process is based on the temporal characteristics of inertial sensing data, without relying on complex neural network models. It makes a comprehensive judgment by extracting the temporal statistical features of the acceleration signal and combining them with the target joint angles, making it suitable for real-time operation on edge computing devices. Its core principle lies in the fact that sports movements have obvious periodic patterns, and the inertial measurement signals corresponding to different movement stages (such as the rising stage, peak stage, descent stage, and stationary stage) exhibit distinguishable temporal characteristic patterns. By extracting these features and setting judgment rules, rapid identification of the movement stage can be achieved.

[0049] Specifically, the triaxial acceleration data in the inertial sensing data is first preprocessed. For each frame, the composite acceleration amplitude of the triaxial acceleration data in that frame is calculated. The formula for calculating the composite acceleration amplitude A is: A = √(a x ² +a y ² + a z ²), where a x a y a z These are the components of the corrected acceleration data in three orthogonal directions. Then, a low-pass filter is applied to the synthesized acceleration amplitude to remove high-frequency noise components. In one optional implementation, a Butterworth low-pass filter with a cutoff frequency of 20Hz is used to filter the data, preserving the motion-related dominant frequency components and suppressing high-frequency vibration noise. Subsequently, a sliding window is used to segment the filtered synthesized acceleration amplitude into frames. The window length and step size of the sliding window can be set according to the actual sampling frequency and motion characteristics. For example, when the sampling frequency of the inertial measurement device is 100Hz, the window length can be set to 50 frames (i.e., 0.5 seconds), and the step size can be set to 10 frames (i.e., 0.1 seconds), thereby segmenting the continuous acceleration signal into frames at fixed time intervals to obtain multiple signal windows for feature extraction.

[0050] For the acceleration signal within the sliding window corresponding to the current time, extract the time-domain features within that window. The extracted time-domain features include at least the mean, variance, peak value, and zero-crossing rate.

[0051] Specifically, the formulas for calculating the mean, variance, peak value, and zero-crossing rate are as follows: Where N is the current sliding window length, i.e., the number of acceleration amplitude frames contained within the window, and i is the sequence number of the frame within the window. Let μ be the acceleration amplitude of the i-th frame within the window, and μ be the average acceleration amplitude of all frames within the window, used to characterize the overall level of the acceleration signal within the window; The variance of the acceleration amplitude within the window is used to characterize the degree of fluctuation of the acceleration signal relative to the mean within the window. The larger the variance, the more intense the limb movement.

[0052] The zero-crossing rate (ZCR) characterizes the frequency at which an acceleration signal crosses its mean within a window, where {1} is an indicator function that takes a value of 1 when the condition within the parentheses is true and a value of 0 when it is false. This represents the deviation of the acceleration amplitude in the i-th frame from the mean. It indicates the deviation of the acceleration amplitude of the previous frame from the mean. When the two signs are opposite, it means that the acceleration signal crosses the mean between the two adjacent frames. The higher the zero-crossing rate, the more frequent the signal oscillation, and the higher the degree of rapid alternation of the action.

[0053] These features each reflect the characteristics of the signal in different dimensions: the mean is the average level of acceleration within the window, reflecting the overall acceleration baseline of the limb in the current time period; the variance reflects the degree of fluctuation of the acceleration amplitude within the window relative to the mean, characterizing the intensity of the limb movement; the peak value is the maximum value of acceleration within the window, reflecting the peak force state reached by the limb during the movement; the zero-crossing rate is the frequency at which the acceleration signal crosses its mean within the window, reflecting the rapid alternation and oscillation characteristics of the movement.

[0054] Based on this, the action stage is determined according to the extracted temporal features. The determination process uses a preset dual-threshold decision tree, which contains multiple decision branches, each corresponding to an action stage. For the current window, the extracted temporal features are compared with multiple preset decision thresholds to determine the action stage corresponding to the current moment. Specifically, let the mean acceleration amplitude of the current window be μ, the variance be σ², the peak value be P, and the zero-crossing rate be ZCR. The decision thresholds are: lower mean threshold T_mean_low, upper mean threshold T_mean_high, upper variance threshold T_var, positive angular velocity threshold T_omega_pos, negative angular velocity threshold T_omega_neg, upper peak value threshold T_peak, and zero-crossing rate threshold T_zcr. The judgment logic is as follows: When the mean is less than or equal to the lower threshold of the mean and the variance is less than or equal to the upper threshold of the variance, the current moment is judged to be in the static or bottom phase, indicating that the limb is in the intermittent period of the movement or the lowest point of the movement, and the limb is almost still; when the mean is greater than the upper threshold of the mean and the angular velocity is positive, the current moment is judged to be in the rising phase, indicating that the limb is exerting force to move upward; when the mean is less than or equal to the upper threshold of the mean and the angular velocity is negative, the current moment is judged to be in the falling phase, indicating that the limb is falling downward; when the peak value is greater than the upper threshold of the peak value and the zero-crossing rate is less than or equal to the zero-crossing rate threshold, the current moment is judged to be in the peak holding phase, indicating that the limb has reached the highest point of the movement, the acceleration peak appears but the signal change rate decreases. The above judgment thresholds are predetermined through offline calibration experiments, and different threshold groups can be preset according to different movement types (such as pull-ups, push-ups, squats, etc.).

[0055] To further improve the accuracy of action phase recognition, temporal features can be combined to verify and correct the judgment results, preventing misjudgments caused by fluctuations in single-frame features. For example, a finite state machine constraint can be introduced to force action phases to cyclically transition according to a set physiological sequence: from the stationary phase to the rising phase, then to the peak phase, then to the falling phase, and finally back to the stationary phase. Direct jumps from the rising phase to the falling phase or vice versa are not allowed. If the algorithm output violates this sequence, state preservation or interpolation correction is triggered. Another example is the introduction of a minimum duration constraint: each action phase must last at least a preset number of frames (e.g., 5 frames) to be considered a valid output; phase judgments shorter than this threshold are considered noise and ignored. Furthermore, the zero-crossing rate can be used to assist in distinguishing between active force exertion and passive inertial motion: in the rising phase, the limb actively exerts force, and the acceleration signal exhibits low-frequency, high-amplitude characteristics, with a low zero-crossing rate; in the falling phase, the limb passively falls under the influence of gravity, and the acceleration signal exhibits high-frequency, low-amplitude characteristics, with a high zero-crossing rate. The zero-crossing rate can effectively distinguish between the two. In one alternative implementation, the action phase recognition result can also be cross-validated with the visual counting result. When the inertial sensing data identifies that the current phase is rising while the visual counting shows that the action has not started, the recognition result of the inertial sensing data is trusted first, and the visual and inertial data fusion decision mechanism is further intervened. When the inertial sensing data identifies that the current phase is stationary while the visual system detects a large movement of key points, it is determined to be a visual false detection and the recognition result of the inertial sensing data is used as the standard for correction.

[0056] Finally, by combining the above judgment and verification results, the action stage label corresponding to the current frame is determined. This action stage label includes at least an ascent stage and a descent stage; in an optional implementation, it may also include a stationary stage and a peak hold stage. The target joint angles of each joint and the action stage label of the current frame are combined as the output action stage recognition result. The target joint angles are used to represent the spatial quantization information of the current posture, and the action stage label is used to represent the temporal position information of the current posture within the complete action cycle. This achieves a complete process of accurately identifying the current stage of the target human body's motion from inertial sensing data, combined with target joint angles, providing a structured posture analysis basis for subsequent motion scoring, motion counting, and other higher-level applications.

[0057] Example 2 Please refer to Figure 2 This is a human motion posture recognition device provided in the embodiments of this application.

[0058] In this embodiment, the human motion posture recognition device includes an acquisition module 10, an estimation module 20, a comparison module 30, a fusion module 40, and a recognition module 50.

[0059] The acquisition module 10 is used to acquire multi-source sensory data of the target human body; the multi-source sensory data includes visual sensory data and inertial sensory data, the visual sensory data is acquired by a preset image acquisition device, and the inertial sensory data is acquired by a preset inertial measurement device worn on the limbs of the target human body; The estimation module 20 is used to perform attitude estimation on the visual perception data to obtain the position coordinates of each joint of the target human body and the visual confidence level corresponding to each position coordinate; and to perform attitude calculation on the inertial perception data to obtain the joint angle of each joint and the inertial confidence level corresponding to each joint angle. The comparison module 30 is used to compare the visual confidence of any joint with a preset adaptive threshold for that joint. The fusion module 40 is used to determine the first fusion weight of the visual modality and the second fusion weight of the inertial modality corresponding to the joint based on the visual confidence and the inertial confidence of the joint when the visual confidence of the joint is lower than the adaptive threshold of the joint. Based on the first fusion weight and the second fusion weight corresponding to the joint, the first joint angle inferred from the visual perception data and the second joint angle inferred from the inertial perception data are fused to obtain the target joint angle of the joint. The recognition module 50 is used to identify the action stage based on the target joint angle of each joint, and obtain the action stage recognition result of the target human body.

[0060] For ease of description and brevity, the embodiments of the device of the present invention include all the implementation methods described in the above embodiments of the human motion posture recognition method, and will not be repeated here.

[0061] Example 3 This application provides a computer-readable storage medium, which includes a stored computer program, wherein the computer program controls the device where the computer-readable storage medium is located to execute the human motion posture recognition method when it is running. The human motion posture recognition method, when implemented as a software functional unit and used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.

[0062] Example 4 This embodiment provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements any one of the human motion posture recognition methods as described in Embodiment 1.

[0063] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that 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 for those skilled in the art.

Claims

1. A method for recognizing human movement postures, characterized in that, include: Acquire multi-source sensory data of the target human body; The multi-source sensing data includes visual sensing data and inertial sensing data. The visual sensing data is acquired by a preset image acquisition device, and the inertial sensing data is acquired by a preset inertial measurement device worn on the limbs of the target human body. The visual perception data is used to estimate the pose, and the position coordinates of each joint of the target human body and the visual confidence level corresponding to each position coordinate are obtained. The attitude calculation is performed on the inertial sensing data to obtain the joint angles of each joint and the inertial confidence level corresponding to each joint angle; For any joint, the visual confidence score of that joint is compared with the preset adaptive threshold of that joint. When the visual confidence of a joint is lower than its adaptive threshold, the first fusion weight of the visual modality and the second fusion weight of the inertial modality corresponding to the joint are determined according to the visual confidence and the inertial confidence of the joint, respectively. Based on the first fusion weight and the second fusion weight corresponding to the joint, the first joint angle inferred from the visual perception data and the second joint angle inferred from the inertial perception data are fused to obtain the target joint angle of the joint. Based on the target joint angles of each joint, the motion phase is identified to obtain the motion phase identification result of the target human body.

2. The human motion posture recognition method according to claim 1, characterized in that, The acquisition of multi-source sensory data of the target human body specifically includes: The system acquires continuous video frames of the target human body using a preset image acquisition device, extracts the timestamp of each frame in the continuous video frames, and performs scale normalization processing on each frame to obtain visual perception data. First acceleration data and first angular velocity data are collected by a first inertial measurement device pre-set on the proximal limb of the target human body, and second acceleration data and second angular velocity data are collected by a second inertial measurement device pre-set on the distal limb of the target human body. The first acceleration data, the first angular velocity data, the second acceleration data, and the second angular velocity data are used as initial inertial sensing data. Using the exposure time of the image acquisition device as the reference clock, the initial inertial sensing data is resampled using an interpolation method to align with the timestamp of the visual sensing data, thus obtaining the inertial sensing data.

3. The human motion posture recognition method according to claim 1, characterized in that, The process of performing attitude calculation on the inertial sensing data to obtain the joint angles of each joint and the corresponding inertial confidence level for each joint angle is as follows: For any joint, a first spatial attitude angle is calculated using a preset complementary filtering fusion algorithm based on a first inertial measurement device worn on the proximal limb of the joint, and a second spatial attitude angle is calculated using a preset complementary filtering fusion algorithm based on a second inertial measurement device worn on the distal limb of the joint. The joint angle of the joint is calculated based on the difference between the first spatial attitude angle and the second spatial attitude angle. Calculate the variance of the acceleration amplitude of the inertial sensing data, and determine the inertial confidence level of the joint based on the variance of the acceleration amplitude.

4. The human motion posture recognition method according to claim 1, characterized in that, The preset adaptive threshold is determined in the following way: Based on human anatomy, the joints of the target human body are divided into multiple preset joint groups, and a basic threshold is set for each joint group. The average visual confidence score of all joints within the 20 consecutive frames collected before the current moment is calculated and used as the environmental reference value. For any joint, an adaptive threshold is determined based on the base threshold of the joint group to which the joint belongs and the environmental reference value.

5. The human motion posture recognition method according to claim 4, characterized in that, Each joint group includes a rigid backbone point group, an end-effector point group, and an easily obscured hinge point group. The rigid trunk point grouping includes joints corresponding to the head, shoulders, and hips; The end-effector grouping includes joints corresponding to the wrist and ankle, and the easily obscured hinge point grouping includes joints corresponding to the elbow and knee joints. The base threshold of the easily obscured hinge point group is lower than the base threshold of the rigid trunk point group, and also lower than the base threshold of the end motion point group.

6. The human motion posture recognition method according to claim 1, characterized in that, The first fusion weight of the visual modality and the second fusion weight of the inertial modality corresponding to the joint are determined based on the visual confidence and the inertial confidence of the joint, respectively. Then, based on the first and second fusion weights corresponding to the joint, the first joint angle inferred from the visual perception data and the second joint angle inferred from the inertial perception data are fused to obtain the target joint angle. Specifically: Obtain the preset visual modality base weights and inertial modality base weights; The product of the visual confidence of the joint and the basic weight of the visual modality is used as the initial fusion weight of the visual modality, and the product of the inertial confidence of the joint and the basic weight of the inertial modality is used as the initial fusion weight of the inertial modality. The initial fusion weights of the visual modality and the initial fusion weights of the inertial modality are normalized. The normalized initial fusion weights of the visual modality are used as the first fusion weights of the visual modality corresponding to the joint, and the normalized initial fusion weights of the inertial modality are used as the second fusion weights of the inertial modality corresponding to the joint. The fused joint angle of the joint is obtained by adding the product of the first fusion weight of the joint and the first joint angle and the product of the second fusion weight of the joint and the second joint angle. The fused joint angle is input as an observation value to a preset Kalman filter for time-series smoothing, and the smoothed joint angle output by the Kalman filter is taken as the target joint angle of the joint.

7. A human motion posture recognition device, characterized in that, include: The acquisition module is used to acquire multi-source sensory data of the target human body; The multi-source sensing data includes visual sensing data and inertial sensing data. The visual sensing data is acquired by a preset image acquisition device, and the inertial sensing data is acquired by a preset inertial measurement device worn on the limbs of the target human body. The estimation module is used to perform pose estimation on the visual perception data to obtain the position coordinates of each joint of the target human body and the visual confidence level corresponding to each position coordinate; The attitude calculation is performed on the inertial sensing data to obtain the joint angles of each joint and the inertial confidence level corresponding to each joint angle; The comparison module is used to compare the visual confidence of any joint with a preset adaptive threshold for that joint. The fusion module is used to determine the first fusion weight of the visual modality and the second fusion weight of the inertial modality corresponding to the joint based on the visual confidence and the inertial confidence of the joint when the visual confidence of the joint is lower than the adaptive threshold of the joint. Based on the first fusion weight and the second fusion weight corresponding to the joint, the first joint angle inferred from the visual perception data and the second joint angle inferred from the inertial perception data are fused to obtain the target joint angle of the joint. The recognition module is used to identify the action stage based on the target joint angle of each joint, and obtain the action stage recognition result of the target human body.

8. The human motion posture recognition device according to claim 7, characterized in that, The acquisition of multi-source sensory data of the target human body specifically includes: The system acquires continuous video frames of the target human body using a preset image acquisition device, extracts the timestamp of each frame in the continuous video frames, and performs scale normalization processing on each frame to obtain visual perception data. First acceleration data and first angular velocity data are collected by a first inertial measurement device pre-set on the proximal limb of the target human body, and second acceleration data and second angular velocity data are collected by a second inertial measurement device pre-set on the distal limb of the target human body. The first acceleration data, the first angular velocity data, the second acceleration data, and the second angular velocity data are used as initial inertial sensing data. Using the exposure time of the image acquisition device as the reference clock, the initial inertial sensing data is resampled using an interpolation method to align with the timestamp of the visual sensing data, thus obtaining the inertial sensing data.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device containing the computer-readable storage medium to perform the human motion posture recognition method as described in any one of claims 1 to 6.

10. A terminal device, characterized in that, The method includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor, when executing the computer program, implements the human motion posture recognition method as described in any one of claims 1 to 6.