A hip exoskeleton motion mode switching and assistance control method based on multi-source confidence and gait phase consistency
By synchronously acquiring the inertia and hip joint data of the hip exoskeleton, calculating confidence and gait phase consistency, the motion mode switching and assist control of the hip exoskeleton are realized. This solves the problems of erroneous assist and mode jitter caused by uncertain classification in the prior art, and improves the safety and response speed of the control.
Patent Information
- Application Number
- CN202611281454.X
- 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
Existing hip exoskeletons, in motion pattern recognition and assist control, suffer from uncertain classification results that are directly used for assist selection, lack kinematic consistency verification, which easily leads to erroneous assist, pattern jitter, and command shock during transitions. Furthermore, when the control task and classification task frequencies are inconsistent, the determinism of the motor closed loop may be compromised.
By synchronously acquiring inertial motion data and left and right hip joint data, calculating the confidence level of multi-source state data and gait phase consistency, setting directional switching conditions and phase alignment, achieving continuous gradual change and safety constraints in the assist curve, and handling abnormal states by combining dual-timescale task isolation classification and control tasks.
It reduces errors caused by uncertain classification, lowers the risk of inconsistent patterns, balances the safety and response speed of switching, and improves the continuity and stability of human-machine collaboration.
Smart Images

Figure CN123169045A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of wearable robots, lower limb exoskeletons, and human-machine collaborative control technology. Specifically, it relates to a method, system, controller, and computer-readable storage medium for reliably switching the motion mode of a hip exoskeleton using inertial motion data, left and right hip joint motion data, motion pattern discrimination scores, and gait phase information, and continuously generating safety assistance commands during the switching process. Background Technology
[0002] Hip exoskeletons can be configured with different assist curves for various movement patterns, such as walking on flat ground, running, uphill, downhill, climbing stairs, cycling, and standing. To enable the exoskeleton to work automatically in natural environments, existing control systems typically use inertial measurement units, joint encoders, plantar pressure sensors, or vision sensors to identify movement patterns and select appropriate assist parameters accordingly.
[0003] Existing motion pattern recognizers often output discrete pattern labels or rely solely on majority voting based on a series of classification results. This approach struggles to distinguish between high-confidence correct recognitions and the highest score reluctantly selected during transitions, easily converting classification uncertainty directly into motor assistance. For actions such as transitioning from flat ground to uphill, entering stairs from flat ground, or walking to standing, transition data often simultaneously contains features of both the source and target patterns, making pattern labels prone to jitter.
[0004] Even if the target mode is correctly identified, directly replacing the assist curve at any control moment can cause abrupt changes in the command value or command rate of change due to differences in phase reference, amplitude, or direction between the old and new modes. The transition risks between different source modes and target modes are not the same. For example, the allowable confirmation speed and assist direction for walking on flat ground uphill should be different from those for walking on flat ground down stairs. Using a uniform threshold makes it difficult to balance response speed and safety.
[0005] Furthermore, motion pattern classification and motor assist control tasks typically run at different frequencies. If the classification results do not include timestamps, sequence numbers, data freshness, and sensor health, the control task may read outdated or inconsistent results; if classification inference blocks the real-time assist task, it may compromise the determinism of the motor closed-loop.
[0006] Therefore, a hip exoskeleton control scheme is needed that allows classification confidence and gait phase consistency to participate in mode switching, and performs phase alignment, continuous gradation, and safety constraints between the old and new assist curves. Summary of the Invention
[0007] The technical problem this invention aims to solve is that existing hip exoskeletons directly use uncertain motion pattern classification results for assist mode selection, and lack candidate mode kinematic consistency verification, mode transition to specific switching conditions and continuous assistance curve transition, which easily leads to erroneous assistance, mode jitter, command impact or use of outdated classification results during natural transitions.
[0008] To address the aforementioned technical problems, this invention provides a method for switching and assisting control of hip exoskeleton movement modes based on multi-source confidence and gait phase consistency. This method simultaneously acquires inertial motion data, left hip joint motion data, and right hip joint motion data, forming multi-source state data with time information.
[0009] Based on multi-source state data, discrimination scores are obtained for multiple candidate motion patterns. Classification confidence is calculated based on at least the difference between the highest and second-highest discrimination scores, and the motion pattern corresponding to the highest discrimination score is identified as a candidate motion pattern. Classification confidence can also be combined with the stability of continuous classification windows, the freshness of classification results, and sensor health.
[0010] The left and right gait phases are obtained based on left and right hip joint motion data, and a gait phase consistency index is obtained based on the phase constraints corresponding to candidate motion patterns. The phase constraints may include the desired left and right phase difference, allowable phase deviation, gait cycle difference, joint motion direction regularity, and joint motion amplitude range.
[0011] The directed switching conditions from the source mode to the target mode are read based on the current motion mode and candidate motion modes. When the classification confidence, gait phase consistency index, condition duration, and allowed gait phase window all meet the directed switching conditions, the transition to the target mode is determined; otherwise, the current motion mode is maintained.
[0012] The directed switching conditions may include a classification confidence entry threshold, a classification confidence exit threshold, a gait phase consistency threshold, a minimum duration, a gait phase window for allowed switching, and a maximum gradation speed. The parameters from source mode a to target mode b can differ from the parameters from target mode b to source mode a to reflect the asymmetry of different transition risks.
[0013] In response to the transition into the mode, the phase offset of the target mode assist curve relative to the current mode assist curve is calculated based on the current gait phase at the transition point, so that at least one of the command value difference and the first rate of change difference between the two curves at the transition start point is reduced.
[0014] By continuously fusing the current mode assist curve and the target mode assist curve after applying phase offset using bounded gradient coefficients with values between 0 and 1, assist commands for the left and right hip joints are generated. The bounded gradient coefficients are increased when the classification confidence and gait phase consistency are stable; the bounded gradient coefficients are frozen when the gait is in the hold range; and the bounded gradient coefficients are retracted at a limited speed when the gait is below the exit condition.
[0015] After applying safety constraints to the left and right hip joint assist commands, the left and right hip joint drive devices are controlled. The safety constraints include at least the command amplitude and command change rate, and may also include joint speed, communication freshness, motor failure, power supply status, user assist intensity, and left and right assist balance constraints.
[0016] When classification confidence decreases, gait phase consistency fails, classification results expire, or sensor health is insufficient, the system will perform one of the following actions based on the risk level: maintain the original mode, reduce the assist limit, freeze gradation, reverse gradation, enter a transparent state, or stop driving. After the serious fault is resolved, continuous and effective feedback must be obtained again and a self-test must be completed before limited recovery can be achieved.
[0017] Preferably, the motion pattern classification task runs at a first frequency, while the assist control task runs at a second frequency higher than the first frequency. The classification task publishes candidate motion patterns, discrimination scores, classification confidence, timestamps, sequence numbers, and sensor health status through an immutable result snapshot, and the assist control task reads this result snapshot non-blockingly.
[0018] The present invention also provides a hip exoskeleton motion mode switching and assistive control system, including a multi-source sensing module, a synchronization and preprocessing module, a motion mode recognition and classification confidence module, a gait phase and consistency module, a mode switching management module, a phase alignment and curve fusion module, a safety envelope module, and a drive execution module, each module being used to implement the above method.
[0019] The present invention also provides a hip exoskeleton controller, including a processor and a memory, wherein the memory stores a computer program that, when executed by the processor, implements the above-described method.
[0020] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the above-described method.
[0021] Compared with the prior art, the present invention has at least the following beneficial effects: it introduces the decision margin, continuous stability and data health of the classifier into physical assist control, reducing the erroneous assist caused by uncertain classification; and it uses left and right gait phase, movement direction, period and amplitude to verify candidate patterns, reducing the risk of inconsistency between classification labels and actual human movement.
[0022] This invention employs different thresholds, durations, and phase windows for high-risk and low-risk transitions by using source-target directional switching conditions. It also uses phase alignment and continuous gradual change to limit sudden changes in command values and rates of change, thereby balancing handover safety, response speed, and continuity of human-machine collaboration.
[0023] This invention isolates classification tasks and real-time control tasks by taking snapshots of results at two time scales, and handles low confidence and abnormal states through hierarchical actions such as hold, freeze, rollback, transparency, and stop, thereby reducing the risks of control blockage, expired data, and transient failures. Attached Figure Description
[0024] Figure 1 This is a schematic diagram of the overall architecture of the hip exoskeleton motion mode switching and assist control system of the present invention.
[0025] Figure 2 This is a flowchart illustrating the hip exoskeleton motion mode switching and assist control method of the present invention.
[0026] Figure 3 This is a schematic diagram of the dual-timescale task and classification result snapshot mechanism of the present invention.
[0027] Figure 4 This is a schematic diagram of the motion mode switching state machine based on the source-target directional switching condition of the present invention.
[0028] Figure 5 This is a schematic diagram illustrating the fusion of the current mode boost curve and the target mode boost curve using phase offset and gradient coefficients, as described in this invention.
[0029] Figure reference numerals: 100-Multi-source sensing module; 110-Inertial measurement unit; 120-Left hip joint feedback unit; 130-Right hip joint feedback unit; 200-Synchronization and preprocessing module; 300-Motion pattern recognition and classification confidence module; 400-Gait phase and consistency module; 500-Mode switching management module; 501-Current mode stable state; 502-Candidate mode confirmation state; 503-Phase alignment transition state; 504-Target mode stable state; 505-Safe output state; 600-Phase alignment and curve fusion module; 700-Safe envelope module; 800-Drive execution module; 810-Left hip joint drive device; 820-Right hip joint drive device; 900-Classification result snapshot. Detailed Implementation
[0030] The embodiments of the present invention will be further described below with reference to the accompanying drawings. It should be understood that the following embodiments are for illustrative purposes only and are not intended to limit the scope of protection of the present invention. Where there is no conflict, the technical features of the various embodiments can be combined with each other.
[0031] like Figure 1 As shown, the hip exoskeleton of this embodiment includes a multi-source sensing module 100, a synchronization and preprocessing module 200, a motion pattern recognition and classification confidence module 300, a gait phase and consistency module 400, a mode switching management module 500, a phase alignment and curve fusion module 600, a safety envelope module 700, and a drive execution module 800. The drive execution module 800 includes a left hip joint drive device 810 and a right hip joint drive device 820.
[0032] The multi-source sensing module 100 includes an inertial measurement unit 110 mounted on the lower back, pelvis, or exoskeleton frame, and a left hip joint feedback unit 120 and a right hip joint feedback unit 130 respectively mounted on the left and right hip joint drive mechanisms. The inertial measurement unit 110 outputs at least three-axis acceleration and three-axis angular velocity, and the left and right hip joint feedback units output joint position and joint velocity, respectively. Optionally, the multi-source sensing module 100 also includes plantar pressure, electromyography, vision, altitude, heart rate, or motor current sensors.
[0033] In the At each classification sampling time, the synchronization and preprocessing module 200 constructs a multi-source state vector: ,in, , , It is a triaxial acceleration. , , For triaxial angular velocity, , The positions of the left and right hip joints. , This corresponds to the joint velocity.
[0034] Each multi-source state vector is accompanied by a timestamp. Serial Number Valid markers for each channel and health The synchronization and preprocessing module 200 performs coordinate system mapping, zero-bias compensation, unit conversion, filtering, timestamp alignment, outlier handling, sampling rate matching, and sliding window buffering. If a channel's data has not been updated within the allowed time, the sequence number has reversed, the rate of change exceeds the physical range, or the verification fails, the channel is marked as invalid and the confidence level for subsequent classification is reduced.
[0035] The motion pattern recognition and classification confidence module 300 performs feature extraction or end-to-end inference on the synchronous window, and outputs the discrimination scores of candidate motion patterns such as walking on flat ground, running, uphill, downhill, climbing stairs, cycling, standing, and walking on uneven surfaces. The classifier can be a linear support vector machine, logistic regression, random forest, lightweight neural network, temporal convolutional network, or model ensemble. This invention does not limit the specific type of classifier.
[0036] Taking linear support vector machines as an example, the first... The discrimination score for each candidate motion pattern is determined according to the following formula: ,in, To standardize the feature vector, and These are the model parameters. The highest discrimination score is denoted as... The second-highest discrimination score is recorded as The fractional interval is determined by the following formula: Discriminant scores are used as ordination margins and are not required to be statistical probabilities themselves.
[0037] Classification confidence can be calculated using the following formula: ;in, The difference between the highest and second-highest discrimination scores. Let f(x) be the fractional interval normalization function. This indicates the degree of consistency among candidate motion patterns in the K most recent classification windows. This indicates the freshness of the classification result relative to the current control time. Indicates the health status of the input sensor. To limit the input values to the closed interval [0,1], to The weights are non-negative and their sum is 1.
[0038] In other implementations, classification confidence may be determined by one or more of classification entropy, voting consistency, model ensemble variance, Mahalanobis distance, out-of-domain detection score, or Bayesian uncertainty; the discrimination score may also be calibrated using temperature scaling, Platt calibration, or ordinal-preserving regression.
[0039] The gait phase and consistency module 400 estimates the normalized gait phase based on the left and right hip joint positions and velocities. , The gait phase is located at Gait phase can be obtained by adaptive oscillators, Hilbert transforms, state machines, phase variable regressors, or periodic template matching, and can be corrected using joint velocity zero crossings, position extrema, left-right reversals, or plantar contact events.
[0040] The gait phase and consistency module 400 also outputs the left and right gait cycles. , Phase reliability. When the phase estimator is not locked during start-up, stop, or non-cyclic movements, the phase reliability is reduced, and discrete phases can be provided by the gait event state machine; the mode switching management module 500 correspondingly extends the confirmation time, restricts entry into standing or transparent modes, or only allows switching in the low-assist zone.
[0041] Targeting candidate motion patterns Pre-set or adaptively set the desired left and right phase difference Allowable phase deviation Allowable period difference Regular joint movement direction and range of motion amplitude The phase difference error and period difference are determined according to the following formulas: ; ;in, To map the phase difference to a phase wrap function within a preset principal value range, This is the function for finding the maximum value.
[0042] In one embodiment, the gait phase consistency index is calculated according to the following formula: ;in, This indicates whether the current direction of movement of the left and right hip joints conforms to the direction rules of the candidate movement pattern. This indicates whether the joint motion amplitude is within a reasonable range for the candidate motion pattern.
[0043] The expected left-right phase difference, allowable phase deviation, allowable period difference, and range of motion amplitude can be updated online based on the user's most recent stable gait cycles. However, the online update rate is lower than the mode switching rate, and upper and lower limits that cannot be exceeded are set to avoid a single abnormal gait from changing the safety boundary.
[0044] like Figure 4 As shown, the mode switching management module 500 maintains the current mode stable state 501, the candidate mode confirmation state 502, the phase alignment transition state 503, the target mode stable state 504, and the safety output state 505. When the system transitions from the current mode stable state 501 to the candidate mode confirmation state 502, it does not immediately change the motion mode actually used to generate the assist command.
[0045] For source mode a and target mode b, the mode switching management module 500 reads the set of directed switching parameters. . Including classification confidence threshold Classification confidence exit threshold Gait phase consistency threshold Shortest duration Allowable switching phase window and maximum gradient speed At least four of them.
[0046] Only when ≥ , ≥ The above conditions must be maintained continuously for no less than [time not specified]. And the current gait phase is located at Only when the time limit is reached is the transition from candidate mode confirmation state 502 to phase alignment transition state 503 allowed. The entry threshold and exit threshold constitute a hysteresis interval to reduce mode jitter.
[0047] and They can differ. For example, a moderate confirmation time can be used when walking on flat ground uphill; a higher classification confidence, higher gait phase consistency, longer duration, and narrower permissible phase window can be used when walking on flat ground down or up stairs; and a faster exit condition can be used when entering a standing or safe output state in any active assist mode.
[0048] like Figure 5 As shown, let the one-sided assist curve of the current mode a be... The assist curve for target mode b is Upon entering phase alignment transition state 503, the current gait phase is used. Based on the preset phase offset set or continuous phase offset interval, search for the phase offset. .
[0049] The phase bias objective function can be determined by the following formula: ;in, and Non-negative weights The current gait phase at the start of the mode transition. and Let represent the first derivatives of the corresponding assist curves with respect to the gait phase. smallest Determined as the optimal phase offset The left-right phase relationship, the peak position of the target mode, and human comfort constraints can also be added to the objective function.
[0050] After phase alignment is completed, generate the assist command according to the following formula: ;in, This provides assist commands to the fused hip joint. To boost the curve of the current model, To assist the target pattern curve, For gait phase, The phase offset is used to minimize the objective function. This is a bounded gradient coefficient between 0 and 1. It can be set separately for the left and right sides. and And limit the difference between the two to avoid an imbalance in the left and right assistance.
[0051] The bounded gradient coefficients can be updated according to the following formula: ;in, To limit the input values to the closed interval [0,1], The maximum gradient speed corresponding to the pattern pair. The direction of growth, maintenance, or regression is determined based on classification confidence and gait phase consistency. This represents the time interval between adjacent control cycles. The gradient curve can be linear, sigmoid, or a fifth-order polynomial.
[0052] When α reaches 1 and the target mode remains stable for a preset time, the target mode is set as the current mode and the system enters the target mode stable state 504. α is frozen when the classification confidence is within the maintenance range during the transition period; when the classification confidence falls below the exit threshold or gait phase consistency fails, α is rolled back to 0 at a limited speed, returning to the current mode stable state 501.
[0053] The safety envelope module 700 applies secondary constraints to the fused assist commands. The safety envelope includes at least the maximum assist of the mode, the user-set assist intensity, the maximum motor current or torque, the upper limit of joint speed, and the upper limit of command change rate. It may also include left and right assist balance, communication freshness, drive fault, power supply status, battery temperature, and power limit.
[0054] If the q-axis current is used as the motor control variable, the assist curve is mapped to the q-axis current through calibration coefficients or the motor torque constant, and current limiting, rate of change limiting, and power limiting are implemented after mapping. The safe output can be determined according to the following formula: ;in, Take the minimum value among the mode limit, user limit, motor limit, and health status limit. The rate of change constraint function, This is the boost command before the amplitude limit is applied. The maximum allowable rate of instruction change.
[0055] When the difference between the classification result timestamp and the current control time exceeds the freshness threshold, the input queue continuously overflows, or the sensor health is insufficient, the sensitivity should be reduced. It also prohibits entering new active assist modes. If the underlying motor feedback is normal, the assist limit can be reduced and the current mode can be maintained; if bilateral communication loss, motor failure, or abnormal speed or current occurs, the output will be reduced to zero according to the safety slope and enter the safe output state 505.
[0056] After a serious fault is cleared, the controller continues to query the left and right drive feedback and requires continuous effective feedback to reach a preset number of times and pass a self-test before it can recover from the restricted safety output state 505, without directly restoring the assist current before the fault. The safety output state 505 can be zero torque transparent, low impedance following, q-axis zero current, drive stopped but feedback query continues, or mechanical braking state.
[0057] like Figure 3 As shown, in one embedded embodiment, the inertial measurement and motion pattern classification tasks run at 100Hz, and the assisted control task runs at 200Hz. The classification window includes 256 sampling points and is updated in steps of 20 sampling points. The above frequencies and windows are merely examples and can be adjusted according to the controller's computing power and model training conditions.
[0058] After each inference iteration, the motion pattern classification task writes the candidate motion pattern, the highest and second-highest discrimination scores, classification confidence, timestamp, sequence number, stability marker, and sensor health status into a new classification result snapshot (900), and then publishes it via atomic pointers or double buffering. The assisted control task only reads the fully published snapshots and does not wait for feature extraction or model inference.
[0059] like Figure 2 As shown, the method in this embodiment includes steps S101 to S110: initializing the controller, model, and safety parameters; synchronously acquiring and preprocessing multi-source data; calculating the candidate motion pattern discrimination score and classification confidence; estimating the left and right gait phases and gait phase consistency; determining the directional switching conditions; performing phase alignment; continuously fusing the new and old assist curves; and finally outputting the left and right hip joint drive commands through the safety envelope.
[0060] Taking the transition from walking on flat ground to walking uphill as an example, when the uphill mode consistently becomes the highest-scoring mode, Exceeding the entry threshold for walking uphill from flat ground, and with the left and right gait phase difference, movement direction, and period satisfying the uphill mode constraints and continuously reaching [the threshold]. At this point, the system enters phase alignment transition state 503. The controller searches for the optimal phase offset for the uphill assist curve. and from It begins to change gradually, in and Increase when conditions are continuously met Until the uphill mode is stable and effective.
[0061] Taking walking on flat ground to enter the staircase as an example, the transition to the staircase... , and It can be set to parameters higher than those for walking on flat ground and entering an uphill section, and is only allowed before and after the start of the swing phase. The internal structure begins to change gradually. Even if the classifier continuously outputs the "climbing stairs" label, the system will still maintain the flat ground walking mode as long as the phase or direction of movement of the left and right hip joints has not yet met the "climbing stairs" constraint.
[0062] when If the sensor data is still valid, and the score has been increased to the midpoint between 0 and 1 while the highest and second-highest discrimination scores are close, then freeze the data. or reduce The growth rate; if If it falls further below the exit threshold, then... The rollback speed continuously returns to 0. Because the rollback process still uses curve fusion, the target mode assist will not suddenly disappear.
[0063] For example, the classification confidence entry threshold and exit threshold can be set to 0.65 and 0.45, respectively; the gait phase consistency threshold can be set to 0.60 to 0.80; the shortest pattern duration can be set to 0.4 seconds to 1.2 seconds; the curve transition time can be set to 0.3 seconds to 1.0 seconds; and the maximum freshness of the classification result can be set to 0.3 seconds to 0.6 seconds. These values are merely the initial range calibrated by the controller and do not constitute a limitation of the present invention.
[0064] This invention is not limited to bilateral hip exoskeletons, but can also be applied to hip, knee, ankle, or multi-joint exoskeletons, as well as rehabilitation training, weight-bearing enhancement, or elderly mobility aids. Any implementation of this invention's technical concept is permitted as long as the candidate motion pattern only enters curve phase alignment and continuous fusion after both classification confidence and motion phase consistency satisfy the directed switching condition.
[0065] The above method can be implemented by a processor executing a program in memory. The processor can be a microcontroller, digital signal processor, system-on-a-chip, or other processing device with real-time control capabilities. The memory can be flash memory, random access memory, or other non-volatile storage media.
Claims
1. A method for switching motion modes and providing assistive control of a hip exoskeleton based on multi-source confidence and gait phase consistency, applied to a hip exoskeleton with a left hip joint drive device and a right hip joint drive device, characterized in that, include: Simultaneously acquire inertial motion data, left hip joint motion data, and right hip joint motion data to form multi-source state data with time information; Based on the multi-source state data, the discrimination scores of multiple candidate motion patterns are obtained, and the classification confidence is obtained at least based on the difference between the highest discrimination score and the second highest discrimination score. The motion pattern corresponding to the highest discrimination score is then determined as a candidate motion pattern. The left and right gait phases are obtained based on the left and right hip joint motion data, and a gait phase consistency index is obtained based on the phase constraints corresponding to the candidate motion modes. The directed switching conditions from the source mode to the target mode are read based on the current motion mode and the candidate motion modes. When the classification confidence, the gait phase consistency index, the condition duration, and the allowed gait phase window simultaneously satisfy the directed switching conditions, a mode transition is determined; otherwise, the current motion mode is maintained. In response to entering the mode transition, the target mode assist curve is calculated based on the current gait phase at the time of entering the mode transition. A phase offset relative to the current mode assist curve is used, and the current mode assist curve and the target mode assist curve after applying the phase offset are continuously fused using bounded gradient coefficients to generate left hip joint assist commands and right hip joint assist commands; safety constraints, including at least command amplitude and command change rate, are applied to the left hip joint assist commands and right hip joint assist commands, and the left hip joint drive device and right hip joint drive device are controlled; and when the classification confidence or the gait phase consistency index decreases during the mode transition, the bounded gradient coefficients are frozen or rolled back at a limited speed, or the hip exoskeleton is brought into a safe output state.
2. The hip exoskeleton motion mode switching and assist control method according to claim 1, characterized in that, The inertial motion data includes triaxial acceleration and triaxial angular velocity. The left hip joint motion data and right hip joint motion data include joint position and joint velocity, respectively. The time information includes timestamp and sequence number. The multi-source status data also includes valid markers for each data channel and sensor health status. When data is not updated within the allowed time, the sequence number goes backward, the rate of change exceeds the preset physical range, or the verification fails, the corresponding data channel is marked as invalid.
3. The hip exoskeleton motion mode switching and assist control method according to claim 1, characterized in that, The classification confidence level is determined according to the following formula: ;in, The difference between the highest and second-highest discrimination scores. Let f(x) be the fractional interval normalization function. For the stability of candidate motion patterns in a continuous classification window, To determine the data freshness of the classification results relative to the current control time, For sensor health, To limit the input values to the closed interval [0,1], to The weights are non-negative and their sum is 1.
4. The hip exoskeleton motion mode switching and assist control method according to claim 1, characterized in that, The gait phase consistency index is determined by at least two of the following: left and right gait phase difference error, left and right gait cycle difference, hip joint movement direction consistency, and hip joint movement amplitude consistency; wherein, the expected left and right phase difference, allowable phase deviation, allowable cycle difference, joint movement direction rule, and joint movement amplitude range are set for different candidate movement modes respectively.
5. The hip exoskeleton motion mode switching and assist control method according to claim 1, characterized in that, The directed switching conditions from source mode a to target mode b include at least four of the following: classification confidence entry threshold, classification confidence exit threshold, gait phase consistency threshold, minimum duration, gait phase window for allowed switching, and maximum gradient speed, and at least one parameter of source mode a to target mode b is different from the corresponding parameter of target mode b to source mode a.
6. The hip exoskeleton motion mode switching and assist control method according to claim 1, characterized in that, The phase offset is obtained by searching within a preset set of phase offsets or a continuous interval of phase offsets, minimizing the objective function formed by the difference in command value and the difference in first-order rate of change between the current mode boost curve and the target mode boost curve at the mode transition start point; and then fusing the two boost curves according to the following formula: ;in, This provides assist commands to the fused hip joint. To boost the curve of the current model, To assist the target pattern curve, For gait phase, The phase offset is used to minimize the objective function. The bounded gradient coefficient is defined as having a value between 0 and 1.
7. The hip exoskeleton motion mode switching and assist control method according to claim 1, characterized in that, The motion pattern classification task runs at a first frequency, and the assist control task runs at a second frequency higher than the first frequency. The motion pattern classification task publishes candidate motion patterns, discrimination scores, classification confidence, timestamps, and sensor health through immutable result snapshots. The assist control task reads the immutable result snapshots non-blockingly and prohibits entry into new active assist modes when the immutable result snapshots exceed a freshness threshold.
8. A hip exoskeleton motion mode switching and assist control system, characterized in that, It includes a multi-source sensing module, a synchronization and preprocessing module, a motion pattern recognition and classification confidence module, a gait phase and consistency module, a mode switching management module, a phase alignment and curve fusion module, a safety envelope module, and a drive execution module for driving the left and right hip joints. Each module is configured to: obtain candidate motion patterns, classification confidence, and gait phase consistency indices based on inertial motion data with time information and left and right hip joint motion data; enter mode transition only when the classification confidence and gait phase consistency indices meet the directed switching conditions from the current motion pattern to the candidate motion pattern; perform phase alignment and continuous fusion of the current mode assist curve and the candidate motion pattern assist curve; and output left and right hip joint assist commands within the safety envelope.
9. A hip exoskeleton controller, comprising a processor and a memory, characterized in that, The memory stores a computer program, which, when executed by the processor, causes the processor to implement the hip exoskeleton motion mode switching and assist control method as described in any one of claims 1 to 7.
10. A 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 hip exoskeleton motion mode switching and assist control method as described in any one of claims 1 to 7.
