Gait phase estimation method, exoskeleton robot, and computer-readable storage medium

By constructing a multi-scale input tensor and a deep learning model, the problems of inaccurate and non-real-time gait phase estimation of lower limb exoskeleton robots in complex environments are solved. High-precision and highly compliant gait phase estimation is achieved, which can adapt to various gait scenarios and reduce hardware costs.

CN123169060APending Publication Date: 2026-11-27RUIDONG INNOVATION (SHENZHEN) TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing gait recognition technologies cannot achieve high compliance and high-precision continuous phase estimation in complex unstructured environments, resulting in poor compliance of lower limb exoskeleton robots in human-computer interaction. Furthermore, traditional methods suffer from phase drift and synchronization problems when dealing with the phase relationship between the two legs.

Method used

By constructing a multi-scale input tensor containing features of the first and second time scales, and using a deep learning gait phase estimation model, the two-dimensional phase phasors of the left and right legs are predicted respectively. One-dimensional continuous gait phase values ​​are obtained through geometric decoupling of the output branch, breaking the forced coupling constraint of the two-leg phases and adapting to different gait scenarios.

Benefits of technology

It achieves millisecond-level inference on low-computing-power embedded devices, improves the smoothness of human-computer interaction and the accuracy of phase estimation, adapts to complex unstructured environments, and reduces hardware costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123169060A_ABST
    Figure CN123169060A_ABST
Patent Text Reader

Abstract

The application provides a gait phase estimation method, an exoskeleton robot and a computer readable storage medium. The method comprises: acquiring multi-modal sensor time series data of a hip exoskeleton; based on the time series data, constructing a multi-scale input tensor containing first time scale features and second time scale features; inputting the multi-scale input tensor into a gait phase estimation model, and respectively predicting two-dimensional phase phasors of a left leg and a right leg through the gait phase estimation model; and determining one-dimensional continuous gait phase values of the left leg and the right leg according to the two-dimensional phase phasors of the left leg and the right leg. On the one hand, the application completely retains the touch details and step frequency characteristics while reducing the input dimension, realizes millisecond-level inference of a low-power embedded end, and reduces the hardware cost; on the other hand, by outputting one-dimensional continuous phase values, the human-machine interaction flexibility is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of exoskeleton robot control technology, specifically to a gait phase estimation method, an exoskeleton robot, and a computer-readable storage medium. Background Technology

[0002] In the fields of robotics and rehabilitation medicine, lower limb exoskeleton robots serve as important assistive devices. By mimicking the natural movement of the human hip joint, they provide assistive torques for the wearer during walking, effectively reducing metabolic consumption and improving mobility and quality of life. However, to achieve efficient and precise human-machine collaborative assistance, lower limb exoskeleton robots must possess the ability to accurately and in real-time grasp the wearer's current gait phase. Gait phase is a parameter describing the wearer's specific position within a complete gait cycle (0%-100%), and it is crucial for the control system to apply appropriate assistive forces based on the phase curve.

[0003] Currently, gait recognition technology is mainly divided into two categories: deep learning-based discrete motion pattern recognition technology and traditional gait phase estimation algorithms. The first category is discrete motion pattern recognition technology based on deep learning. This technology constructs a deep neural network model to extract and fuse features from data collected by multimodal sensors to identify the wearer's current motion pattern (such as standing, walking, going upstairs, going downstairs, etc.). For example, the Chinese invention patent CN120654202B, "A Method and System for Hip Exoskeleton Motion Pattern Recognition Based on Deep Learning," uses this method. However, this approach mainly outputs discrete motion pattern labels and cannot directly provide the specific percentage position of the wearer's current gait cycle. This makes it difficult for the control system to adjust the assistance level in real time according to human movement, affecting the smoothness of human-computer interaction.

[0004] The second category consists of traditional gait phase estimation algorithms, primarily including Finite State Machines (FSMs) and Adaptive Frequency Oscillators (AFOs). FSMs divide the gait cycle into different states by setting sensor thresholds, while AFOs use mathematical oscillator models to fit the periodic movements of the human leg. However, these methods have significant drawbacks in handling the phase relationship between the two legs: they treat the left and right legs as completely independent systems for independent estimation, ignoring the rhythmic correlation between the two legs during walking, making them susceptible to sensor interference leading to phase drift and affecting gait synchronization.

[0005] In summary, existing gait recognition technologies still have significant shortcomings in achieving high compliance and high-precision continuous phase estimation, and cannot meet the needs of lower limb exoskeleton robots for real-time and accurate gait phase estimation in complex unstructured environments. Summary of the Invention

[0006] This application provides a gait phase estimation method, an exoskeleton robot, and a computer-readable storage medium to address the shortcomings of inaccurate and non-real-time gait phase estimation in existing lower limb exoskeleton robots in complex unstructured environments.

[0007] This application provides a gait phase estimation method, including: Acquire multimodal sensor timing data from the hip exoskeleton; Based on the time-series data, a multi-scale input tensor containing a first time-scale feature and a second time-scale feature is constructed; wherein, the first time-scale feature is used to characterize the instantaneous motion information of the gait, and the second time-scale feature is used to characterize the long-term periodic rhythm information of the gait. The multi-scale input tensor is input into the gait phase estimation model, and the two-dimensional phase phasors of the left and right legs are predicted by the gait phase estimation model. Based on the two-dimensional phase phasors of the left and right legs, the one-dimensional continuous gait phase values ​​of the left and right legs are determined.

[0008] According to the gait phase estimation method provided in this application, the gait phase estimation model includes: a shared co-encoder, a channel attention module, and two parallel geometrically decoupled output branches connected in sequence; The shared co-encoder is used to extract global co-functional features of the two-leg motion from the multi-scale input tensor; the channel attention module is used to dynamically weight the features output by the shared co-encoder in the channel dimension; the two parallel geometrically decoupled output branches are used to output the two-dimensional phase phasor prediction values ​​of the left leg and the right leg, respectively, and the two-dimensional phase phasor prediction values ​​are continuous phasors in two-dimensional geometric space.

[0009] According to a gait phase estimation method provided in this application, the shared co-encoder includes cascaded multi-layer one-dimensional convolutional layers, with each of the one-dimensional convolutional layers followed by a ReLU activation function; The shared co-encoder is used to extract deep features layer by layer from the multi-scale input tensor and fuse the extracted deep features layer by layer into global co-encoder features of bipedal movement.

[0010] According to the gait phase estimation method provided in this application, the channel attention module includes a global average pooling layer, a first fully connected layer, a ReLU activation function, a second fully connected layer, and a Sigmoid activation function; The global average pooling layer is used to compress the feature map output by the shared co-encoder into a channel descriptor along the spatial dimension. The first fully connected layer and the ReLU activation function are used to perform dimensionality reduction and nonlinear transformation on the channel descriptors to obtain the dimensionality-reduced features; The second fully connected layer and the Sigmoid activation function are used to map the dimensionality-reduced features to the weight coefficients of each channel.

[0011] According to the gait phase estimation method provided in this application, the two parallel geometrically decoupled output branches each include at least one fully connected layer, which is used to map the weighted feature map of the channel attention module into two-dimensional phase phasor prediction values ​​of the left leg and the right leg, respectively.

[0012] According to the gait phase estimation method provided in this application, the construction of a multi-scale input tensor including first time-scale features and second time-scale features includes: Data from a first time window and data from a second time window are extracted from the time-series data, respectively, as the first time scale feature and the second time scale feature; wherein, the first time window is smaller than the second time window; The second timescale features are aggregated and compressed, and the aggregated and compressed second timescale features are concatenated with the first timescale features to obtain the multi-scale input tensor.

[0013] According to the gait phase estimation method provided in this application, the aggregation and compression of the second time-scale features includes: The second timescale feature is divided into k consecutive time slices; The data within each time segment is aggregated and compressed using the following formula: in, Indicates the first Compression feature values ​​of each time slice; This indicates the number of sampling points contained in each time slice; Indicates the first time slice within a time slice One original data point; The exponential decay coefficient; This represents the number of time steps from the current time point to the data point.

[0014] According to the gait phase estimation method provided in this application, a unit circle geometric constraint loss is applied at the end of the geometrically decoupled output branch.

[0015] According to the gait phase estimation method provided in this application, the two-dimensional phases of the left and right legs are transformed according to the following formula to obtain the one-dimensional continuous gait phase values ​​of the left and right legs respectively: in, These represent the predicted values ​​of the sine and cosine components of the left leg phase, respectively. These represent the predicted values ​​of the sine and cosine components of the right leg phase, respectively. These are the final output continuous gait phase values ​​for the left and right legs, respectively. It is the arctangent function in the four quadrants; This is a modulo operation.

[0016] According to the gait phase estimation method provided in this application, the channel attention module automatically learns the weight coefficients of each sensor feature channel using global average pooling and a fully connected layer according to the following formula; in, The weight coefficients for each feature channel output by the shared co-encoder, with values ​​ranging from... ; This indicates a global average pooling operation; These are the weights for the fully connected layer. For ReLU functions; For the Sigmoid function; Features of the shared co-encoder output.

[0017] According to the gait phase estimation method provided in this application, the multimodal motion data includes triaxial acceleration and triaxial angular velocity collected by an inertial measurement unit, and joint angle and angular velocity collected by a hip joint motor encoder; The inertial measurement unit is located on the waist back plate of the user and is connected to the processor via an I2C bus, while the motor encoder is connected to the processor via a CAN bus.

[0018] This application also provides a hip exoskeleton robot, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the gait phase estimation method as described above.

[0019] This application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that the computer program, when executed by a processor, implements the gait phase estimation method as described in any of the preceding claims.

[0020] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the gait phase estimation method as described in any of the preceding claims.

[0021] This application provides a gait phase estimation method, an exoskeleton robot, and a computer-readable storage medium. On one hand, by inputting a multi-scale input tensor containing features of a first and second time scale into the gait phase estimation model, this application ultimately obtains one-dimensional continuous gait phase values ​​for the left and right legs. This reduces the input dimensionality while fully preserving ground contact details and gait frequency features, achieving millisecond-level inference on a low-computing-power embedded device and reducing hardware costs. On the other hand, by outputting one-dimensional continuous phase values, this application significantly improves the compliance of human-computer interaction. Attached Figure Description

[0022] Figure 1 This is one of the schematic diagrams of the gait phase estimation method provided in this application; Figure 2 This is a schematic diagram of the gait phase estimation model structure provided in this application; Figure 3 This is the second schematic diagram of the gait phase estimation method provided in this application; Figure 4 This is a schematic diagram of the gait phase estimation device provided in this application; Figure 5 This is a schematic diagram of the hip exoskeleton robot structure provided in this application; Figure 6 A schematic diagram comparing the predicted phase and the true phase of the gait phase estimation model for the left leg provided in this application; Figure 7 A schematic diagram showing the comparison between the predicted phase and the true phase of the gait phase estimation model for the right leg provided in this application. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0024] While existing motion pattern recognition technologies and traditional phase estimation algorithms have addressed the issue of exoskeletons' perception of their environment and state to some extent, they still have the following significant shortcomings in achieving highly compliant, high-precision continuous phase estimation and embedded deployment: Existing technologies (such as CN120654202B) mainly use classification networks to output discrete motion pattern labels (such as walking on flat ground and climbing stairs). However, the gait recognition technology of this scheme can only output motion pattern labels such as walking and climbing stairs, or discrete phase states such as support phase and swing phase divided by finite state machine, and cannot provide specific phase values ​​of 0% to 100% of the gait cycle. This results in the exoskeleton only being able to use on / off or segmented assistance, and poor human-computer interaction compliance.

[0025] Furthermore, the handling of the phase relationship between the two legs is rigid, failing to balance gait frequency coordination and motion independence: existing continuous phase estimation algorithms typically employ two extreme approaches: One method is the independent estimation method, which treats the left and right legs as two completely unrelated systems and calculates them separately. This method ignores the inherent rhythmic correlation between the two legs during walking. When a sensor on one side experiences short-term interference or packet loss, the phase estimation on that side is prone to drift, leading to a loss of gait coordination. Another method is the forced coupling / anti-phase constraint method, which assumes that the two legs maintain a strict 180° phase difference (anti-phase). Although this method ensures synchronization, the actual phase difference between the two legs is not a fixed 180° during turning, starting, crossing obstacles, or asymmetrical gait (such as hemiplegic gait). The forced geometric constraint causes the phase output of the algorithm to be inconsistent with the actual motion state, thus generating incorrect assist torque, resulting in the wearer feeling a noticeable drag or resistance when turning.

[0026] Furthermore, accurate estimation of gait phase depends not only on the current instantaneous motion state (such as the impact when the foot strikes the ground) but also highly on the gait frequency rhythm over a past period (long-term trend). To capture this long-term trend, traditional methods typically require a long input time window (e.g., data from the past 100 frames), leading to a surge in the dimensionality of the neural network input layer and a significant increase in computational load. For resource-constrained embedded microcontrollers, processing high-dimensional long sequence inputs results in excessively high inference latency, failing to meet the millisecond-level real-time control requirements of exoskeleton systems. On the other hand, simply truncating the data to reduce the input length results in the loss of crucial historical gait frequency information, leading to phase tracking lag. Therefore, existing technologies still face a contradiction between long-term feature extraction and embedded computing power. To address this, this application provides a deep learning-based gait phase estimation method to resolve the aforementioned shortcomings of existing technologies.

[0027] like Figure 1 As shown, the gait phase estimation method provided in this application includes the following steps: Step 101: Acquire multimodal sensor timing data of the hip exoskeleton.

[0028] Specifically, time-series data from various types of sensors on the wearable hip exoskeleton are collected, including the triaxial acceleration and triaxial angular velocity of the inertial measurement unit (IMU) on the lumbar backplate, as well as the absolute angle and angular velocity of the encoders of the left and right hip joint actuator motors. All data are collected synchronously at a fixed sampling frequency (e.g., 100Hz) to form the raw time-series observation data.

[0029] The multimodal sensor time-series data collected in this application can comprehensively reflect the multidimensional time-series data of human walking posture and exoskeleton joint motion state.

[0030] Step 102: Based on time-series data, construct a multi-scale input tensor containing first time-scale features and second time-scale features; wherein, the first time-scale features are used to characterize the instantaneous motion information of gait, and the second time-scale features are used to characterize the long-term periodic rhythm information of gait.

[0031] Specifically, this application addresses the dual requirements of gait phase estimation, which requires both instantaneous motion abrupt change information (such as foot impact and microscopic perturbations when crossing obstacles with one leg) and long-term periodic rhythm information (such as the stride frequency of human walking and the overall gait periodic trend). It performs multi-scale splitting and fusion of the original time-series data to construct a multi-scale input tensor that simultaneously contains first-time-scale features (instantaneous motion information) and second-time-scale features (long-term periodic rhythm information).

[0032] The first timescale feature characterizes instantaneous abrupt changes within the gait cycle, such as foot impact, peak hip joint angular velocity, and the critical moments of leg lift / landing. It is the core basis for accurately locating the gait phase (e.g., ground contact = 0%, ground lift = 50%). This application extracts raw time-series data from the current moment and a predetermined number of recent sampling points (e.g., the most recent 10 frames, corresponding to 100ms duration), without compression, directly constructing the first timescale feature matrix to fully preserve microsecond-level instantaneous motion details. This first timescale feature provides a precise positioning anchor point for phase estimation, avoiding phase shifts caused by the loss of instantaneous features.

[0033] The second timescale features characterize the global periodic features of gait, such as cadence (steps per minute), gait cycle length (time per step), and rhythmic correlation of leg movements. These are the core basis for maintaining the stability of phase estimation and avoiding long-term drift. This application selects sampling points from a longer time window in the past (e.g., the past 100 frames, corresponding to a duration of 1000ms), divides them into time slices, and performs weighted aggregation (e.g., exponential weighting, with data closer to the current time having higher weights). This compresses the long sequence into a matrix (e.g., 10 frames) that matches the dimension of the first timescale features, and extracts the long-term periodic rhythm.

[0034] This application concatenates the first time-scale feature matrix and the second time-scale feature matrix in the time dimension to generate a unified multi-scale input tensor. This tensor contains both instantaneous positioning information and long-term circadian rhythm information, and the tensor dimension is controlled by compressing long sequences (e.g., the total dimension is 20 frames), adapting to the computing power of low-power mainframes.

[0035] This application addresses the core contradiction between traditional long-term feature extraction and the limited computing power of embedded systems by extracting and integrating features across multiple time scales while preserving both instantaneous details and long-term rhythms of gait. It achieves a balance between phase estimation accuracy and real-time inference speed, reducing the hardware deployment cost of hip exoskeletons. It ensures feature integrity under low computing power constraints, thereby improving the estimation accuracy of the gait phase estimation model.

[0036] Step 103: Input the multi-scale input tensor into the gait phase estimation model, and predict the two-dimensional phase phasors of the left and right legs respectively through the gait phase estimation model.

[0037] Specifically, this application inputs the constructed multi-scale input tensor into a specially designed gait phase estimation model. The model independently predicts the left and right legs, outputting two-dimensional phase phasors (composed of sin and cosine components) for each leg, instead of directly outputting one-dimensional scalar phase values. Unlike traditional models that output discrete phase labels or single phase values, the model provided in this application outputs continuous phase phasors (in two-dimensional Cartesian coordinates, such as sin and cos components) for the left and right legs, and achieves independent prediction of the left and right leg phases. This breaks the constraint of strong coupling (forced 180° phase reversal) between the two leg phases in traditional methods, and is suitable for asymmetric walking scenarios such as turning, starting, and hemiplegic gait.

[0038] Step 104: Determine the one-dimensional continuous gait phase values ​​of the left and right legs based on the two-dimensional phase phasors of the left and right legs.

[0039] Specifically, traditional methods directly regress the one-dimensional scalar phase value, which introduces mathematical discontinuities at the gait cycle reset point (a jump from 100% to 0%), causing oscillations in the control system. This application addresses this by first outputting a continuous two-dimensional phase phasor (a vector on the unit circle) and then obtaining the one-dimensional phase value through geometric transformation. Since the two-dimensional phasor remains continuous and smooth on the unit circle, it fundamentally eliminates the jump noise at the phase zero-crossing point, ensuring the continuity of the phase value throughout the entire cycle.

[0040] This application utilizes trigonometric geometric relationships to map the two-dimensional phase phasor (continuous and without jumps) output by the model back to a one-dimensional gait phase space, ultimately obtaining continuous gait phase values ​​for the left and right legs in the range of [0,1] (corresponding to gait period 0%~100%). This conversion process ensures the continuity of the phase values ​​throughout the entire period, thereby eliminating the numerical abrupt change problem at the period boundary (100%→0%) of traditional scalar phase estimation.

[0041] The method provided in this application predicts the two-dimensional phase phasors of the left and right legs by inputting a multi-scale input tensor containing first and second time-scale features into a gait phase estimation model, and solves the two-dimensional phase phasors of the left and right legs to obtain one-dimensional continuous gait phase values ​​of the left and right legs. This method can directly provide accurate phase references for the hip exoskeleton assist control system, enabling the system to adjust the assist torque in real time according to the phase curve, replacing the traditional rigid on / off / segmented assist, and significantly improving the smoothness of human-computer interaction.

[0042] Moreover, the method provided in this application constructs a multi-scale input tensor with dual time-scale features. The first time-scale feature fully preserves instantaneous motion change information such as foot impact and single-leg obstacle crossing, while the second time-scale feature accurately extracts long-term periodic rhythm information such as human walking gait frequency and gait cycle. The fusion of the two provides the model with a more comprehensive and accurate feature basis, enabling the model to not only keenly capture the micro-perturbations of gait, but also firmly grasp the overall gait frequency rhythm, thereby improving the accuracy and robustness of phase estimation at the feature level.

[0043] Furthermore, this application directly and independently predicts the phase phasors of the left and right legs through the model, and finally calculates their respective continuous phase values, breaking the forced coupling constraint of the phase of the two legs. It not only preserves the inherent rhythmic relationship of the two legs when walking, but also allows the phase difference of the two legs to change dynamically according to the actual movement state. It perfectly adapts to symmetrical and asymmetrical gait scenarios such as walking on flat ground, turning, crossing obstacles, and hemiplegic gait, and greatly improves the scene adaptability of the hip exoskeleton in complex unstructured environments.

[0044] Furthermore, such as Figure 2 As shown, the gait phase estimation model provided in this application includes: a shared co-encoder, a channel attention module, and two parallel geometrically decoupled output branches connected in sequence; the two parallel geometrically decoupled output branches are: the left leg phase branch and the right leg phase branch.

[0045] The shared coencoder is used to extract global co-operational features of bipedal movement from multi-scale input tensors. As the backbone of the model's feature extraction, it is responsible for extracting global co-operational features containing the rhythm and movement patterns of the entire human body's gait from multi-scale input tensors. Essentially, it is a unified capture and fusion of the common rhythms of left and right leg movements.

[0046] Furthermore, the surface model provided in this application includes a shared co-encoder comprising cascaded multi-layer one-dimensional convolutional layers, each followed by a ReLU activation function. This shared co-encoder is used to extract deep features layer by layer from multi-scale input tensors and fuse the extracted deep features into global co-functional features of the two-leg motion. In this embodiment, the shared co-encoder employs a three-layer cascaded one-dimensional convolutional layer (1D-CNN) + ReLU activation function. Through convolution operations, it fuses the high-frequency detail stream (instantaneous motion information) and low-frequency trend stream (long-term gait rhythm) of the input, forcibly extracting the co-functional association information of the two-leg motion. This avoids the complete independence of the left and right leg phase estimations, ensures strict synchronization of the two legs at the gait frequency level, and fundamentally prevents gait loss caused by unilateral sensor interference (such as packet loss and noise), providing a stable global rhythmic basis for subsequent phase estimation.

[0047] The channel attention module is used to dynamically weight the features output by the shared co-encoder along the channel dimension. This channel attention module adaptively learns the importance weights of each sensor channel (such as the IMU acceleration channel and the motor angle channel), enhances the features of high signal-to-noise ratio channels (such as the motor angle channel), and suppresses the features of high-noise channels (such as the IMU acceleration channel when touching the ground), thereby improving the signal-to-noise ratio of the effective features.

[0048] The channel attention module provided in this application gives the model self-adjustment capabilities. For example, when the IMU data noise surges at the moment the foot touches the ground, it automatically reduces the weight of the IMU feature channels and instead relies on the high-confidence data of the motor encoder; when the motor data is not sensitive to phase changes during the swing period, it increases the weight of the IMU features to ensure the reliability of feature extraction under different working conditions.

[0049] Furthermore, the channel attention module includes a global average pooling layer, a first fully connected layer, a ReLU activation function, a second fully connected layer, and a sigmoid activation function. Specifically, the global average pooling layer compresses the feature map output by the shared co-encoder along the spatial dimension into channel descriptors; the first fully connected layer and the ReLU activation function perform dimensionality reduction and nonlinear transformation on the channel descriptors to obtain dimensionality-reduced features; and the second fully connected layer and the sigmoid activation function map the dimensionality-reduced features to the weight coefficients of each channel.

[0050] Two parallel geometrically decoupled output branches are used to output the continuous phasor predictions of the left and right legs in two-dimensional geometric space, respectively. Based on global collaborative features, they independently regress the phase phasors (two-dimensional Cartesian coordinate form, i.e., sin and cos components) of the left and right legs, respectively, to achieve decoupled prediction of the phase of the two legs and break the geometric constraint of the traditional model that forces a 180° phase reversal.

[0051] Furthermore, each of the two parallel geometrically decoupled output branches includes at least one fully connected layer, used to map the feature map weighted by the channel attention module into two-dimensional phase phasor prediction values ​​for the left and right legs, respectively. In this embodiment of the invention, the two parallel geometrically decoupled output branches employ two parallel fully connected layer branches with identical structures, corresponding to the left and right legs, respectively. Each branch receives the attention-weighted feature map and outputs a two-dimensional phase phasor through mapping by the fully connected layer.

[0052] The method provided in this application firmly anchors the inherent rhythmic association of the two legs' movements by using global collaborative features extracted by a shared encoder, ensuring that the two legs move in unison in symmetrical scenarios such as walking on flat ground, thus avoiding step loss. By using parallel decoupling branches, the left and right leg phases can be output independently, and the phase difference can be dynamically adjusted according to the actual movement state. In asymmetrical scenarios such as turning, starting, and hemiplegic gait, the phase of one leg can break the fixed constraints and make an independent and smooth transition, completely eliminating the dragging feeling or resistance caused by traditional forced coupling, and greatly improving the scene adaptability of the exoskeleton.

[0053] Furthermore, this application constructs a multi-scale input tensor containing first time-scale features and second time-scale features, specifically including: extracting data from the first time window and the second time window from the time-series data, respectively, as the first time-scale features and the second time-scale features; wherein, the first time window is smaller than the second time window; aggregating and compressing the second time-scale features, and concatenating the aggregated and compressed second time-scale features with the first time-scale features to obtain the multi-scale input tensor.

[0054] Specifically, this application extracts the original data from the current moment and the past N sampling points as the first time-scale feature. This first time-scale feature directly corresponds to the instantaneous motion information of gait, such as the impact of the foot hitting the ground and the micromechanical perturbations when crossing obstacles with one leg, and other high-frequency details. It should be emphasized that this application does not compress the first time-scale feature in any way, so as to fully preserve the instantaneous change features of the original data, providing a basis for subsequent models to capture local adaptive motion of one leg.

[0055] This application selects historical data from M sampling points spanning a longer period prior to the current moment as the second time-scale feature. The second time-scale feature corresponds to long-term gait rhythm information, such as the gait frequency and overall trend of the gait cycle, representing macroscopic patterns. Furthermore, the second time window is significantly longer than the first time window, ensuring coverage of historical data across multiple gait cycles and fully capturing long-term gait frequency rhythms.

[0056] Traditional single-sliding-window input methods either truncate the window (retaining only instantaneous features, losing long-term rhythms, leading to phase tracking lag) or retain a long window (high-dimensional data, computationally unsustainable); simply truncating long-term data directly loses gait rhythms, causing phase estimation to easily lose steps. This application addresses this by using dual time-window truncation. The first time-scale feature fully retains instantaneous abrupt changes such as foot impact, while the second time-scale feature retains long-term gait rhythms through exponentially weighted aggregation. The fusion of these two types of features provides the model with sensitive and stable comprehensive data support, significantly improving the accuracy and robustness of phase estimation at the feature level. However, due to the limited computing power of the exoskeleton embedded main control unit (such as ESP32), it cannot process high-dimensional long-sequence data. Yet, long-time-series data is a necessary condition for capturing long-term rhythms. Traditional methods struggle to balance accuracy (requiring long data) and real-time performance (requiring low dimensionality). This application aggregates and compresses the original long-time window data, concatenates it with the original short-time window data, and then inputs it into the model, thereby significantly reducing the computational load and effectively improving the efficiency and accuracy of gait phase estimation.

[0057] Furthermore, the method provided in this application, if lacking multi-scale input, will fail to function due to the limited input features (e.g., without long-term rhythmic features, the shared encoder cannot anchor the stride frequency; without instantaneous features, the decoupled branch cannot respond to local changes). Therefore, this application, through multi-scale input tensors, can provide precisely matched features for each module of the model, further improving the accuracy and efficiency of gait phase estimation.

[0058] Furthermore, the aggregation and compression of the second time-scale features in this application includes: dividing the second time-scale features into k consecutive time slices; and aggregating and compressing the data within each time slice according to the following formula: in, Indicates the first Compression feature values ​​of each time slice; This indicates the number of sampling points contained in each time slice; Indicates the first time slice within a time slice One original data point; The exponential decay coefficient; This represents the number of time steps from the current time point to the data point.

[0059] Specifically, this application addresses the issue that second-time-scale features (long-term window data, such as historical data from the past 100 frames) have high dimensionality and require significant computational power for direct processing. First, the 100 frames of historical data are evenly divided into K consecutive time slices, breaking down a long, lengthy time-series data into multiple short segments. This reduces the complexity of subsequent aggregation calculations while ensuring that each time slice covers the local features of the gait cycle, avoiding the breakage of long-term rhythmic information due to the splitting. Then, weights are assigned based on the distance of the data points from the current moment. The closer the data point is to the current moment, the higher its reference value for estimating the current gait phase, and the greater its weight. Conversely, the farther the data point is, the lower its reference value, and the weight decays exponentially.

[0060] This application employs an exponential weighting method, with high weights for recent data and exponentially decreasing weights for longer-term data. This ensures the dominant role of recent key data while not discarding long-term auxiliary information, effectively improving the stability and accuracy of phase estimation.

[0061] Furthermore, this application applies a unit circle geometric constraint loss at the end of the geometrically decoupled output branch.

[0062] Specifically, this application employs a unit circle geometric constraint loss at the end of the geometrically decoupled output branch. This constraint forces the magnitude of the network output (sin, cos components) to approach 1, causing the phase to rotate continuously in two-dimensional geometric space, fundamentally eliminating the numerical jump problem at periodic boundaries in traditional scalar regression methods. Figure 6 and Figure 7 As shown, where, Figure 6 The blue curve represents the left motor angle, the red curve represents the predicted left leg gait phase, and the red dashed line represents the actual left leg gait phase. Figure 7 The green curve represents the right motor angle, the orange curve represents the predicted right leg gait phase, and the yellow dashed line represents the actual right leg gait phase. Both curves have time on the x-axis and the corresponding motor angle on the y-axis. The predicted curve (solid line) and the actual curve (dashed line) in the figure closely match, with minimal errors at the rising, falling, and peak points. This indicates that the method provided in this application can accurately pinpoint the wearer's real-time position during the gait cycle. It can be clearly observed from the figure that, for both the left and right legs, the predicted phase curve (solid line) remains continuous and smooth throughout the entire gait cycle. Especially at the cycle boundary where the phase value jumps from 1.0 back to 0.0, the predicted curve shows no abrupt changes, oscillations, or spikes. This smooth phase curve directly translates into a smooth output of exoskeleton joint torque, preventing the wearer from experiencing any "stuttering" or "impact" during gait cycle transitions, significantly improving the smoothness of human-computer interaction. If the model directly predicts the two-dimensional phasor without constraints, the output may deviate from the unit circle, causing the trigonometric function mapping relationship between the phasor and the gait phase to fail.

[0063] Furthermore, this application transforms the two-dimensional phase representations of the left and right legs according to the following formula, thereby obtaining the one-dimensional continuous gait phase values ​​of the left and right legs respectively: in, These represent the predicted values ​​of the sine and cosine components of the left leg phase, respectively. These represent the predicted values ​​of the sine and cosine components of the right leg phase, respectively. These are the final output continuous gait phase values ​​for the left and right legs, respectively. It is the arctangent function in the four quadrants; This is a modulo operation.

[0064] The method provided in this application ensures that the continuous gait phase values ​​of the left and right legs do not change abruptly within the [0,1] interval, and the exoskeleton joint torque generation curve is smooth, thereby eliminating the feeling of lag and effectively improving the smoothness of human-computer interaction.

[0065] Furthermore, the channel attention module of this application automatically learns the weight coefficients of each sensor feature channel through global average pooling and a fully connected layer according to the following formula; in, The weight coefficients for each feature channel output by the shared co-encoder, with values ​​ranging from... ; This indicates a global average pooling operation; These are the weights for the fully connected layer. For ReLU functions; For the Sigmoid function, Features of the shared co-encoder output.

[0066] Specifically, due to the significant state-dependent signal-to-noise ratio of multimodal sensor data from the hip exoskeleton, the IMU experiences significant impact noise at the moment of foot contact with the ground, but its high-frequency data can accurately capture instantaneous features such as ground impact. Motor encoder data is insensitive to phase changes during the swing phase, but the joint angle / angular velocity data during the support phase is highly stable. If traditional fixed-weight fusion is used, it is impossible to adjust the sensor confidence level according to the motion state, resulting in high-noise data interfering with effective features or effective data not being fully utilized. This application, however, achieves on-demand weighting by automatically learning channel weights, making the fused features more closely match the current motion state, thus further improving the accuracy of phase estimation.

[0067] Furthermore, the multimodal motion data provided in this application includes triaxial acceleration and triaxial angular velocity acquired by the inertial measurement unit, as well as absolute joint angle and angular velocity acquired by the hip joint motor encoder; the inertial measurement unit is located on the back plate of the user's waist and is connected to the ESP32 processor via the I2C bus, while the motor encoder is connected to the ESP32 processor via the CAN bus.

[0068] Specifically, the triaxial acceleration and triaxial angular velocity collected by the inertial measurement unit can reflect the waist and whole body movement posture and instantaneous impact, while the absolute joint angle and angular velocity of the hip joint motor encoder reflect the local movement state of the hip joint and the force rhythm, thus forming a complementary multi-dimensional data.

[0069] The multimodal data provided in this application fully covers gait information including whole-body posture and local joint movements. It can capture instantaneous features such as foot impact and reflect long-term rhythms of joint movements. It can extract more comprehensive global collaborative features and local detailed features, significantly reduce phase estimation errors, and improve accuracy.

[0070] Example: like Figure 3 As shown, this embodiment provides a deep learning-based spatiotemporal two-dimensional collaborative hip exoskeleton continuous gait phase estimation method, specifically including: Step S1: Synchronous acquisition and normalization of multimodal motion data.

[0071] The main control unit of the hip exoskeleton system (using an ESP32 microcontroller) is connected to the inertial measurement unit (IMU) located on the lumbar backplate via an I2C bus, and to the motor drivers located on the left and right hip joint actuators via a CAN bus. The main control unit operates at a fixed sampling frequency. (100Hz) Simultaneously acquire the following sensor data to construct the original observation vector. : in, This represents the three-axis acceleration acquired by the IMU; This represents the three-axis angular velocities acquired by the IMU; These represent the absolute angles of the left and right hip joints, respectively. These represent the angular velocities of the left and right hip joints, respectively. After acquisition, the vectors are... Perform Z-score standardization, which involves subtracting the preset mean. Divide by the standard deviation Eliminate dimensional differences.

[0072] Step S2: Construct a multi-scale dual-stream temporal pyramid input.

[0073] To simultaneously capture instantaneous motion abrupt changes and long-term step frequency trends, the master control unit performs split processing on the standardized data, constructing a dual-stream input tensor containing both high-frequency and low-frequency streams: Constructing a high-frequency detail stream: capturing the current moment and the past The original data from each sampling point constitutes a high-frequency feature matrix. .

[0074] in, The short-time window length (in this embodiment, it is taken as...) R is a real number used to preserve high-frequency details of the motion. This data stream is not compressed in any way, and its physical significance lies in fully preserving the high-frequency details of the motion (such as the microscopic mechanical perturbation at the moment the foot touches the ground), providing a sensitive local adaptive driving force for the single-leg geometric decoupling branch at the subsequent network output (step S4).

[0075] Constructing low-frequency trend streams: Selecting past trends Historical data of sampling points (of which) ), and divide it into The data is processed in consecutive time slices. An exponentially weighted aggregation is performed on the data within each time slice, calculated using the following formula: in, Indicates the first Compression feature values ​​of each time slice; This indicates the number of sampling points contained in each time slice; Indicates the first time slice within a time slice One original data point; The exponential decay coefficient is 0.7 in this embodiment. This represents the number of time steps from the current time point to the data point. After compression, the low-frequency feature matrix is ​​obtained. ,in The length of the compressed sequence (in this embodiment, it is taken as...) The physical significance of this data stream lies in its ability to significantly reduce the dimensionality of long-term time-series data while extracting macroscopic rhythmic features that include the wearer's overall walking cadence. These features are specifically used to feed the shared collaborative encoder of the subsequent backbone network, ensuring the stability of the basic stride of both legs.

[0076] Feature splicing: and The data is concatenated along the time dimension to generate the final network input tensor. Its dimensions are .

[0077] Step S3: Inference using a 1D-CNN network based on channel attention mechanism.

[0078] The result obtained in step S2 The input is fed into a pre-trained deep neural network model. This model is deployed on an ESP32 processor, and the network's forward propagation process is as follows: Feature extraction: The input tensor is processed through three cascaded one-dimensional convolutional layers (1D-CNN). The formula for each convolutional operation is as follows: in, Indicates the first Feature map output of the layer; and The first Convolutional kernel weights and biases of layers; The activation function is used. This process, as a shared layer, forces the fusion of information from both input streams. In particular, it utilizes the macroscopic rhythms in the low-frequency trend stream to extract the global collaborative features of left and right leg movements, fundamentally preventing gait loss caused by unilateral sensor anomalies.

[0079] Attention Weighted (SE-Block): A lightweight channel attention module for feature map input. First, it compresses the temporal dimension using global average pooling, then generates channel weight vectors through two fully connected layers. : in, These are the weighting coefficients for each feature channel, with values ​​ranging from [value range missing]. ; This indicates a global average pooling operation; These are the weights for the fully connected layer. For ReLU functions; For the Sigmoid function, To share the features output by the co-encoder, the weights are... Multiply back the original feature map to enhance the high signal-to-noise ratio sensor channel.

[0080] Geometric decoupling output: The weighted feature map is input to two parallel fully connected layer branches (i.e., the left leg branch and the right leg branch). At this point, the high-frequency detail flow (micro-perturbation) extracted in step S2 begins to play a decisive role, causing the left and right leg branches to output the left leg phasor according to their respective instantaneous real force states. Measured with the right leg : in, These represent the predicted values ​​of the sine and cosine components of the left leg phase, respectively. These represent the predicted values ​​of the sine and cosine components of the right leg phase, respectively.

[0081] Step S4: Phase geometric manifold solution.

[0082] The main control unit uses trigonometric relationships to map the two-dimensional Cartesian coordinates output by the network back to the one-dimensional phase space. The calculation formula is as follows: in, These are the continuous gait phase values ​​of the left and right legs in the final output, with a value range of [0,1]. It is the arctangent function in the four quadrants; To ensure the phase value is non-negative for modulo operations, the output vector is determined by the unit circle constraint loss introduced during the network training phase. The modulus length always approaches 1, thus ensuring that The numerical continuity of the function throughout the entire period eliminates abrupt changes in the phase boundary.

[0083] The method provided in this application has the following beneficial effects: 1. This invention completely eliminates the numerical abrupt change in gait phase at the cycle boundary, significantly improving the compliance of exoskeleton assistance. Existing technologies typically directly regress scalar phase values, leading to mathematical discontinuities at the gait cycle reset point (i.e., where the phase jumps from 100% to 0%), causing oscillations in the control system. This application transforms discontinuous scalar predictions into continuous two-dimensional vectors by geometrically decoupling the output head and unit circle manifold constraint loss. Prediction: Regardless of the wearer's position in the gait cycle (including the start, middle, or end), the network output remains geometrically smooth. Experimental results show that this method eliminates jump noise at phase zero-crossing points, resulting in a smoother exoskeleton joint torque generation curve and significantly improving the comfort of human-computer interaction.

[0084] 2. This application achieves efficient extraction of long-term temporal features on low-computing-power embedded chips, resolving the contradiction between algorithm accuracy and real-time performance. Traditional methods for capturing long-term gait frequency trends often require high-dimensional, long-term historical data as input, making real-time operation on microcontrollers such as the ESP32 difficult. This application compresses the originally lengthy historical data into an extremely low-dimensional trend stream by inputting a multi-scale input tensor into the gait phase estimation model and using exponential weighted aggregation, then concatenates it with a detail stream that retains instantaneous impact information. This method reduces the amount of network input data by approximately 80% while fully preserving the microsecond-level ground contact features and second-level gait frequency features required for phase estimation. This enables complex deep learning algorithms to be deployed on low-cost embedded terminals with millisecond-level inference speeds, reducing hardware costs.

[0085] 3. Adaptive weighted fusion of heterogeneous sensor data is achieved, enhancing the system's robustness under complex working conditions. Addressing the issues of high noise levels in IMU data at the moment of foot contact and insensitivity to phase changes in motor data during the oscillation phase, this application introduces a lightweight channel attention mechanism (SE-Block), endowing the model with self-adjusting capabilities. This allows the model to dynamically adjust the trust weights of each sensor channel based on the current motion state. When severe impacts or road bumps cause IMU signal distortion, the network automatically suppresses IMU feature channels and relies more on motor encoder data. This dynamic weighting mechanism significantly improves the stability of phase estimation in unstructured terrain (such as gravel roads and speed bumps).

[0086] 4. A spatiotemporal dual-dimensional collaborative mapping mechanism is constructed, completely overcoming the technical bias of exoskeletons in handling complex unstructured gait conditions where high-frequency abrupt changes and low-frequency rhythms are difficult to simultaneously accommodate. Existing technologies typically require compromises between sacrificing computational power to obtain global features or sacrificing flexibility for bi-leg synchronization. This application, however, effectively improves the estimation accuracy and efficiency of the gait phase estimation model by inputting multi-scale data into the model. Comparison Scenario 1: Assume that the model's input only uses a multi-scale input tensor, and the model uses two parallel geometrically decoupled output branches, and no unit circle geometric constraint loss is applied to the end of the geometrically decoupled output branches. In this case, although the high-frequency detail flow keenly captures the micro-perturbations of one leg (such as stepping on gravel or encountering an obstacle with one foot), this local mutation feature will eventually be forcibly averaged at the coupled output end, and the exoskeleton still cannot implement adaptive compliance compensation for one leg.

[0087] Scenario 2: Assume the model uses decoupled geometric output only at the end, but the front end is limited by the computing power of the embedded microcontroller, requiring a truncated input window (discarding long historical data). In this case, although the model allows independent phase output from each leg, it completely loses its grasp of the global macroscopic gait rhythm because the shared co-encoder is not fed by the low-frequency trend flow. During strenuous exercise, the solutions for the left and right legs are prone to phase shifts, leading to complete instability in the leg gait.

[0088] In summary, the method provided in this application, by inputting a multi-scale input tensor containing first and second time-scale features into a gait phase estimation model, can significantly improve the accuracy and efficiency of gait phase estimation, thereby enhancing the compliance and safety of real human-computer interaction.

[0089] like Figure 4 As shown, this application also provides a gait phase estimation device, which includes: Acquisition module 401 is used to acquire multimodal sensor timing data of the hip exoskeleton; The processing module 402 is used to construct a multi-scale input tensor containing first time-scale features and second time-scale features based on time-series data; wherein, the first time-scale features are used to characterize the instantaneous motion information of gait, and the second time-scale features are used to characterize the long-term periodic rhythm information of gait. Prediction module 403 is used to input multi-scale input tensors into the gait phase estimation model, and predict the two-dimensional phase phasors of the left leg and the right leg respectively through the gait phase estimation model; The calculation module 404 is used to determine the one-dimensional continuous gait phase values ​​of the left and right legs based on the two-dimensional phase phasors of the left and right legs.

[0090] Figure 5 This is a schematic diagram of the hip exoskeleton robot provided in this application, as shown below. Figure 5 As shown, the hip exoskeleton robot may include: a processor 510, a communication interface 520, a memory 530, and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other via the communication bus 540. The processor 510 can call logical instructions in the memory 530 to execute a gait phase estimation method, which includes: Acquire multimodal sensor timing data from the hip exoskeleton; Based on time-series data, a multi-scale input tensor containing first-time-scale features and second-time-scale features is constructed; wherein, the first-time-scale features are used to characterize the instantaneous motion information of gait, and the second-time-scale features are used to characterize the long-term periodic rhythm information of gait. The multi-scale input tensor is input into the gait phase estimation model, and the two-dimensional phase phasors of the left and right legs are predicted by the gait phase estimation model. Based on the two-dimensional phase phasors of the left and right legs, the one-dimensional continuous gait phase values ​​of the left and right legs are determined.

[0091] Furthermore, the logical instructions in the aforementioned memory 530 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, 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 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 described in the various embodiments of the present 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.

[0092] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer is able to execute the gait phase estimation methods provided by the above methods.

[0093] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the X-gait phase estimation methods provided by the methods described above.

[0094] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0095] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0096] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A gait phase estimation method, characterized in that, include: Acquire multimodal sensor timing data from the hip exoskeleton; Based on the time-series data, a multi-scale input tensor containing a first time-scale feature and a second time-scale feature is constructed; wherein, the first time-scale feature is used to characterize the instantaneous motion information of the gait, and the second time-scale feature is used to characterize the long-term periodic rhythm information of the gait. The multi-scale input tensor is input into the gait phase estimation model, and the two-dimensional phase phasors of the left and right legs are predicted by the gait phase estimation model. Based on the two-dimensional phase phasors of the left and right legs, the one-dimensional continuous gait phase values ​​of the left and right legs are determined.

2. The gait phase estimation method according to claim 1, characterized in that, The gait phase estimation model includes: a shared co-encoder, a channel attention module, and two parallel geometrically decoupled output branches connected in sequence; The shared co-encoder is used to extract global co-functional features of the two-leg motion from the multi-scale input tensor; the channel attention module is used to dynamically weight the features output by the shared co-encoder in the channel dimension; the two parallel geometrically decoupled output branches are used to output the two-dimensional phase phasor prediction values ​​of the left leg and the right leg, respectively, and the two-dimensional phase phasor prediction values ​​are continuous phasors in two-dimensional geometric space.

3. The gait phase estimation method according to claim 2, characterized in that, The shared co-encoder includes cascaded multi-layer one-dimensional convolutional layers, with each one-dimensional convolutional layer followed by a ReLU activation function; The shared co-encoder is used to extract deep features layer by layer from the multi-scale input tensor and fuse the extracted deep features layer by layer into global co-encoder features of bipedal movement.

4. The gait phase estimation method according to claim 2, characterized in that, The channel attention module includes a global average pooling layer, a first fully connected layer, a ReLU activation function, a second fully connected layer, and a Sigmoid activation function; The global average pooling layer is used to compress the feature map output by the shared co-encoder into a channel descriptor along the spatial dimension; The first fully connected layer and the ReLU activation function are used to perform dimensionality reduction and nonlinear transformation on the channel descriptor to obtain the dimensionality-reduced features; The second fully connected layer and the Sigmoid activation function are used to map the dimensionality-reduced features to the weight coefficients of each channel.

5. The gait phase estimation method according to claim 2, characterized in that, The two parallel geometrically decoupled output branches each include at least one fully connected layer, used to map the weighted feature map of the channel attention module into two-dimensional phase phasor prediction values ​​for the left and right legs, respectively.

6. The gait phase estimation method according to any one of claims 1-5, characterized in that, The construction of a multi-scale input tensor containing first-time-scale features and second-time-scale features includes: Data from a first time window and data from a second time window are extracted from the time-series data, respectively, as the first time scale feature and the second time scale feature; wherein, the first time window is smaller than the second time window; The second timescale features are aggregated and compressed, and the aggregated and compressed second timescale features are concatenated with the first timescale features to obtain the multi-scale input tensor.

7. The gait phase estimation method according to claim 6, characterized in that, The step of aggregating and compressing the second time-scale features includes: The second timescale feature is divided into k consecutive time slices; The data within each time segment is aggregated and compressed using the following formula: in, Indicates the first Compression feature values ​​of each time slice; This indicates the number of sampling points contained in each time slice; Indicates the first time slice within a time slice One original data point; The exponential decay coefficient; The number of time steps from the current time point to the data point; or The two-dimensional phase phasors of the left and right legs are transformed according to the following formula to obtain the one-dimensional continuous gait phase values ​​of the left and right legs respectively: in, These represent the predicted values ​​of the sine and cosine components of the left leg phase, respectively. These represent the predicted values ​​of the sine and cosine components of the right leg phase, respectively. These are the final output continuous gait phase values ​​for the left and right legs, respectively. It is the arctangent function in the four quadrants; This is a modulo operation.

8. The gait phase estimation method according to claim 2, characterized in that, The channel attention module automatically learns the weight coefficients of each sensor feature channel using global average pooling and a fully connected layer according to the following formula; in, The weight coefficients for each feature output by the shared co-encoder, with values ​​ranging from [value range missing]. ; This indicates a global average pooling operation; These are the weights for the fully connected layer. For ReLU functions; For the Sigmoid function, The features output by the shared collaborative encoder.

9. A hip exoskeleton robot, characterized in that, include: The system includes a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the program, implements the gait phase estimation method as described in any one of claims 1 to 8.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the gait phase estimation method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • A deep learning-based hip exoskeleton motion pattern recognition method and system

    CN120654202B