Introduction

Femoroacetabular Impingement (FAI) syndrome is characterized by structural abnormalities of the hip joint, leading to persistent pain and restricted mobility. It is a significant contributor to hip discomfort and early-onset osteoarthritis, particularly in the young and middle-aged population1,2. Given its high prevalence and notable clinical impact3, targeted lower limb rehabilitation is crucial. However, traditional rehabilitation tools, such as crutches and rehabilitation handrails, rely heavily on upper limb strength. The weakness of the upper limbs in patients often results in excessive weight-bearing on the lower limbs, weakening the rehabilitation effect and failing to meet the precise rehabilitation needs of FAI patients.

In contrast, active exoskeleton robots can adapt to environmental changes and effectively assist individuals with lower limb dysfunction in improving mobility, enhancing muscle strength, and maintaining bone density. This technology has made significant progress in the medical field4, with representative products including HAL5, ReWalk6, Honda SMA7, and the lightweight and efficient GEMS II8. The driving technology has evolved from hydraulic/pneumatic systems to electric and intelligent systems, from Hardiman I9 and EXPOS10 to Series Elastic Actuator (SEA) robots11, ultimately achieving mechatronic intelligent control12. These developments provide technical support for precise lower limb rehabilitation. Modern powered exoskeletons are rapidly advancing towards intelligence, lightweight design, and precision.

This study aims to design an intelligent lower limb rehabilitation robot tailored for FAI patients based on OpenSim gait simulation software. On one hand, it will simulate the movement dynamics and gait muscle strength characteristics of FAI patients to explore the efficacy of assistive forces. On the other hand, the integration of sensors will create a specialized gait database for FAI, enhancing the device’s adaptability to individual patient differences.

Lower limb movement mechanism

Gait motion and spatio-temporal characterization

Gait, which describes walking posture, provides insights into body configuration and dynamics. In this study, we will focus on analyzing the sagittal plane13 gait trends of the lower limbs, noting their periodic characteristics during stable walking14. As illustrated in Fig. 1.

Fig. 1
figure 1

Gait analysis.

Gait cycles are defined as the movement from one foot’s heel making contact with the ground to the ground once more, primarily involving two stages: support and swing15. Approximately 60% of the cycle is dedicated to the support phase, which encompasses both single and double-foot support, with the single-foot support being divided into intermediate and final stages. Two instances of bipedal support take place, each constituting roughly 10% of the cycle. The swing stage, constituting roughly 40% of the cycle, spans from toe elevation to heel contact with the ground, segmented into three stages: initial, intermediate, and concluding phases16.

Characterization of hip and knee motion

Fig. 2
figure 2

Skeletal structure of the hip and knee joints.

The fundamental structure of the hip joint, akin to a standard ball and socket joint, is found at the tight junction of the femoral head and the acetabulum17.As illustrated in Fig. 2.

Comprising the distal femur, proximal tibia, and patella, the knee joint is a multifaceted hinge joint. Accurately depicting the movement path of the human lower limb’s gait depends on the coordinated movement of the hip and knee. As depicted in Fig. 3.

Fig. 3
figure 3

Hip/knee movement patterns.

Research on human anatomy18 has meticulously detailed that the hip joint is capable of executing three fundamental types of movement: flexion and extension, which typically span from 0° to 120°; internal and external rotation, ranging approximately from − 45° to 45°; and abduction and adduction, which can vary between − 30° to 30° and − 20° to 20°, respectively. In contrast, the movement pattern of the knee joint is relatively uniform, primarily characterized by its substantial range of flexion and extension, which can reach up to 135° from full extension (0°). This flexibility is vital for facilitating lower extremity activities such as walking and jogging.

Minor movements or degrees of freedom (DOFs) at the hip and knee, such as circumduction or axial rotation beyond the aforementioned ranges, generally exert minimal influence on standard walking and movement patterns, and therefore, they are not typically regarded as primary DOFs in biomechanical analyses. As quantitatively depicted in Table 1, the hip and knee joints exhibit distinct and substantial ranges of motion in every direction of freedom, highlighting the complexity and diversity of human locomotor kinematics.

Table 1 Angles of motion of the hip and knee joints in the walking and running states.

According to the preceding chart, the hip joint predominantly undergoes flexion and extension while walking and running, along with minor abduction, adduction, and rotation. Flexion and extension should be confined to a 60° range, with minimal movement in other directions. Flexion and extension primarily control the knee joint, yet the magnitude is greater, allowing for the disregard of both internal and external rotational movements.

Motion mathematical modeling of intelligent lower limb exoskeleton systems

Modified D-H method of motion model construction

The purpose of analyzing the kinematic model of the lower limb exoskeleton is to determine and scrutinize the operational link between the angles of joints and the spatial locations of moving linkage mechanisms19.Typically, gait analysis occurs in a two-dimensional framework, with all kinematic analysis computations confined to the sagittal plane. For determining kinematics, the MDH (Modified D-H coordinate system) technique was employed. The movement of the human lower extremity is reduced to a sequential linkage of three connecting joints, with the parameters linking these two joints depicted in Fig. 4.

Fig. 4
figure 4

Motion relationship between two rods of improved DH method.

The human lower limb is simplified to a tripartite link as shown in Fig. 5.

Fig. 5
figure 5

Model of human lower limb triple linkage motion.

In Fig. 5:

x0y0,x1y1,x2y2,x3y3——global, Hip joint, Knee joint, Ankle joint coordinate system.

θ1, θ2, θ3——hip, knee, and ankle rotations in the sagittal plane.

L1,L2,L3——thigh, calf, foot segment.

Ψ——Angle between ankle-hip and thigh L1.

φ——Angle between the sole of the foot and x0y0.

P——the sole of the foot.

Positive kinematics analysis of lower limb intelligent lower limb exoskeleton systems

FK involves deducing the end-effector’s movement from the robot’s joint motion, specifically its position and orientation based on joint coordinates.

Table 2 Improved D-H parameters.

In the Table 2:

\(\:{\alpha\:}_{i-1}\)(rad)——Around the\(\:{\:x}_{i-1}\) axis, \(\:{Z}_{i-1}\) rotates to the angle\(\:\:{Z}_{i}\).

\(\:{a}_{i-1}\)(mm)——From the axis, moves the distance to \(\:{Z}_{i}\).

\(\:{d}_{i}\)(mm)—— Along the axis, move the distance to \(\:{x}_{i}\).

\(\:{\theta\:}_{i}\)(°)—— Around the axis, the angle of rotation to \(\:{x}_{i}\).

Table 2’s data is integrated into the transformation matrix equation for the adjacent coordinate system in the enhanced DH parameter approach.

$$\:\begin{array}{c}{}_{i}{}^{i-1}T=Tran{s}_{x}\left({a}_{i-1}\right)Ro{t}_{x}\left({\alpha\:}_{i-1}\right)Tran{s}_{z}\left({d}_{i}\right)Ro{t}_{z}\left({\theta\:}_{i}\right)\\\:=\left[\begin{array}{cccc}\text{cos}\left({\theta\:}_{i}\right)&\:-\text{sin}\left({\theta\:}_{i}\right)&\:0&\:{L}_{i-1}\\\:\text{sin}\left({\theta\:}_{i}\right)\text{cos}\left({\alpha\:}_{i-1}\right)&\:\text{cos}\left({\theta\:}_{i}\right)\text{cos}\left({\alpha\:}_{i-1}\right)&\:-\text{sin}\left({\alpha\:}_{i-1}\right)&\:-{d}_{i}\text{sin}\left({\alpha\:}_{i-1}\right)\\\:\text{sin}\left({\theta\:}_{i}\right)\text{sin}\left({\alpha\:}_{i-1}\right)&\:\text{cos}\left({\theta\:}_{i}\right)\text{sin}\left({\alpha\:}_{i-1}\right)&\:\text{cos}\left({\alpha\:}_{i-1}\right)&\:{d}_{i}\text{cos}\left({\alpha\:}_{i-1}\right)\\\:0&\:0&\:0&\:1\end{array}\right]\end{array}$$
(1)

By substituting the improved parameters in the D-H table into Formula 1, the rotation matrix \(\:{}_{1}{}^{0}T\) can be obtained, which is shown as follows:

$$\:{}_{1}{}^{0}T=\left[\begin{array}{cccc}{cos}{\theta\:}_{1}&\:-{sin}{\theta\:}_{1}&\:0&\:0\\\:{sin}{\theta\:}_{1}&\:{cos}{\theta\:}_{1}&\:0&\:0\\\:0&\:0&\:1&\:0\\\:0&\:0&\:0&\:1\end{array}\right]$$

The transformation matrix (_3^0)T for the whole system is:

$$\:{}_{3}{}^{0}T={}_{1}{}^{0}T{}_{2}{}^{1}T{}_{3}{}^{2}T=\left[\begin{array}{cccc}n1&\:n2&\:0&\:n3\\\:n4&\:n5&\:0&\:n6\\\:0&\:0&\:1&\:0\\\:0&\:0&\:0&\:1\end{array}\right]$$
(2)

(5) The parameters in Eq. 2 are:

$$\:\left\{\begin{array}{c}n1=\text{cos}\left({\theta\:}_{1}+{\theta\:}_{2}+{\theta\:}_{3}\right)\\\:n2=-\text{sin}\left({\theta\:}_{1}+{\theta\:}_{2}+{\theta\:}_{3}\right)\\\:n3={L}_{1}\text{cos}\left({\theta\:}_{1}\right)+{L}_{2}\text{cos}\left({\theta\:}_{1}+{\theta\:}_{2}\right)\\\:n4=\text{sin}\left({\theta\:}_{1}+{\theta\:}_{2}+{\theta\:}_{3}\right)\\\:n5=\text{cos}\left({\theta\:}_{1}+{\theta\:}_{2}+{\theta\:}_{3}\right)\\\:n6={L}_{1}\text{sin}\left({\theta\:}_{1}\right)+{L}_{2}\text{sin}\left({\theta\:}_{1}+{\theta\:}_{2}\right)\end{array}\right.$$
(3)

The information about the position of the endpoint P on the bar 3 is

$$\:\overrightarrow{{P}_{3}}=\left[{L}_{3},\text{0,0}\right]$$
(4)

PX, PY of endpoint P in X0Y0 can be deduced from Eq. 5.

$$\:\left\{\begin{array}{c}{P}_{x}={L}_{1}\text{cos}\left({\theta\:}_{1}\right)+{L}_{2}\text{cos}\left({\theta\:}_{1}+{\theta\:}_{2}\right)+{L}_{3}\text{cos}\left({\theta\:}_{1}+{\theta\:}_{2}+{\theta\:}_{3}\right)\\\:{P}_{y}={L}_{1}\text{sin}\left({\theta\:}_{1}\right)+{L}_{2}\text{sin}\left({\theta\:}_{1}+{\theta\:}_{2}\right)+{L}_{3}\text{sin}\left({\theta\:}_{1}+{\theta\:}_{2}+{\theta\:}_{3}\right)\end{array}\right.$$
(5)

Preceding analysis indicates precise inference of human plantar position/posture from hip/knee movement details.

Inverse kinematics analysis of lower limb intelligent lower limb exoskeleton systems

IK calculates robot’s joint coords based on end-effector’s pos/orient in a triangle formed by thigh, calf to initial endpoints20 (Fig. 6). Cosine theorem aids derivation/analysis (Eq. 6).

$$\:\left\{\begin{array}{c}{x}^{2}+{y}^{2}={{L}_{1}}^{2}+{{L}_{2}}^{2}-2{L}_{1}{L}_{2}\text{cos}\left(\pi\:-{\theta\:}_{2}\right)\\\:{{L}_{2}}^{2}={x}^{2}+{y}^{2}-2\sqrt{{x}^{2}+{y}^{2}}{L}_{1}cos\psi\:\end{array}\right.$$
(6)

In Eq. 6, θ₂ & ψ values are determined, Since θ2 represents the rotation angle of the lower leg joint relative to the thigh joint, with counterclockwise rotation defined as the positive direction, anatomical considerations dictate that θ2 should assume a negative value. θ₁ & θ₃ are then inferred via trigonometric geo relations in Eq. 7.

$$\:\left\{\begin{array}{c}\psi\:=\text{arccos}\left(\frac{{x}^{2}+{y}^{2}+{{L}_{1}}^{2}-{{L}_{2}}^{2}}{2\sqrt{{x}^{2}+{y}^{2}}{L}_{1}}\right)\\\:{\theta\:}_{2}=\text{arccos}\left(\frac{{x}^{2}+{y}^{2}-{{L}_{1}}^{2}-{{L}_{2}}^{2}}{2{L}_{1}{L}_{2}}\right)\\\:{\theta\:}_{1}=arctan\frac{y}{x}-\psi\:\\\:{\theta\:}_{3}=\phi\:-{\theta\:}_{1}-{\theta\:}_{2}\end{array}\right.$$
(7)

L1,L2——The length of the thighs and calves.

θ1, θ2——The rotational angles of the hip joint and knee joint on the sagittal plane.

\(x,y\)——The coordinate position at the end of the ankle.

Ψ——Angle between ankle-hip and thigh L1.

φ——The angle between the foot base and the hip reference coordinate system.

From Eq. 7, analyzing P’s global (x, y) infers joint angles accurately. MATLAB modeled tripartite system, validating FK & IK as shown in Fig. 6.

Fig. 6
figure 6

Matlab triple link motion model.

The model sets the hip joint rotation angle\({\theta _1}= - 20^\circ\),knee joint rotation angle\({\theta _2}=20^\circ\),and ankle joint rotation angle\({\theta _3}= - 25^\circ\). Combined with the characteristic link length parameters\({L_1}=0.5m\),\({L_2}=0.3m\),\({L_3}=0m\), these values are substituted into formula 5 to obtain the coordinate of the end effector\({\text{X}}=0.7698m\),\({\text{Y}}=0.1294m\).This result is consistent with the experimental results\({\text{X}}=0.772m\),\({\text{Y}}=0.127m\), thereby proving the correctness of the model.This methodology ensures precise control over the motion process, thereby facilitating high-precision tracking and adjustment of the motion trajectories of robotic arms or robots.

Structure of intelligent lower limb exoskeleton system

Structural design and optimization

Based on human motion analysis & triple-link lower limb model, we developed an intelligent lower limb exoskeleton robot (Fig. 7).

Fig. 7
figure 7

Intelligent lower limb exoskeleton robot assembly diagram. (1) Weight-bearing backpack (2) Hip joint (3) Knee joint (4) Brushless motor (5) Controller (6) Power supply.

The lower limb exoskeleton robot consists of 5 parts: backpack, hip/knee actuation, control, & power units. STM32F4 drives HT6010-J36 motor for thigh reciprocal/rotational motion (20°-75°) in hip joint. Rotary vice allows inward thigh rotation & abduction. STM32F4 MCU controls motor drive based on sensor signals. Made of lightweight Al alloy 6061 & carbon fiber (Fig. 8).

Fig. 8
figure 8

Hip/knee joint modeling diagram.

Internal limiters in hip joints restrict max rotational angle. Knee joint uses torsion spring for assisted movement.

Control system design

According to Brannstrom’s staging theory21, the rehabilitation process progresses through three sequential phases: the flaccid phase (initial stage) characterized by complete loss of voluntary control in the affected lower limb requiring full external assistance; the spastic phase (intermediate stage) marked by partial voluntary movement control necessitating repetitive gait training with rehabilitation devices to enhance central pattern generation and gradual motor function recovery; and the recovery phase (final stage) featuring significantly reduced spasticity, improved range of motion, and therapeutic focus on muscle strengthening and gait refinement for advanced functional restoration.

Fig. 9
figure 9

Lower limb exoskeleton control block diagram.

As illustrated in Fig. 9.The system employs a hierarchical control architecture comprising supervisory, execution, and sensory layers for multidimensional robotic rehabilitation control. The supervisory layer serves as the central decision-making unit for human-machine interaction and data management, transmitting commands to the execution layer. The execution layer decomposes motion trajectories and drives joint movements using biomechanically-adjusted motion profiles with fuzzy PID control for precise torque/speed regulation. The sensory layer integrates hip/knee position data, plantar pressure, and motor parameters to provide real-time feedback, ensuring training safety and efficacy. This architecture enables intelligent human-robot interaction and novel control methodologies for lower-limb exoskeletons.

Gait simulation experiment of intelligent lower limb exoskeleton system

Simulation and analysis of hip and knee gait based on open sim

OpenSim, an open-source platform, specializes in developing, sharing, & analyzing musculoskeletal & dynamic motion simulations, widely applied in medical device design, orthopedics, & rehab science22.The Open Sim gait simulation process is illustrated in Fig. 10.

Fig. 10
figure 10

Steps of human gait simulation.

This study adopts gait2392 model for lower limb kinematics simulation, with model scaling involving precise mass adjustments23. Figure 11 depicts model adaptation from 1.75 m/75kg to 1.73 m/65kg, with marker points fine-tuned for accuracy. RMS < 0.04 & max error < 0.05 significantly enhance model practicality & precision.

Fig. 11
figure 11

gait2392 model scaling.

Within OpenSim, IK aims to infer joint angles from experimental data24. IK Tool25 loads kinematic data onto the scaled model, accurately replicating experimental body coordinates. This method mirrors joint angle variations. IK analysis, followed by OpenSim’s Plot function, visualizes hip, knee, & ankle angles over time, enabling dynamic angle observation (Fig. 12).

Fig. 12
figure 12

Dynamic variation of lower limb triple joint angles at three seconds.

3-sec IK analysis illustrates hip, knee, & ankle angle dynamics. Sharp markers indicate modeling & placement issues. Static optimization & residual reduction boost precision. By decomposing joint moments into muscle forces & minimizing activations, optimization enhances inverse dynamics26. Residual reduction aims to eliminate non-physical balancing forces stemming from modeling & processing errors27. The algorithm refined IK curves by error elimination. Pre- & post-optimization comparisons (Fig. 13) underscore its impact on precision & reliability.

Fig. 13
figure 13

Comparison of triple joint angles before and after trans-RRA.

The RRA eliminates GRF imbalance, enhancing model dynamic coherence. Post-RRA, joint angle curves refine, aligning with real motion patterns.The 3-second simulation revealed periodic motion patterns in the hip (-28° to 13°) and knee joints (-67° to 3.5°), with the proposed method demonstrating significantly higher precision than conventional tabular estimation approaches, thereby offering more reliable data for robotics research.

Human-machine coupling modeling of intelligent lower limb exoskeleton system

For human-robot model coupling, revising the 2392 model’s source code to incorporate an exoskeleton geometric model is crucial. Integration is facilitated by the bodyset and attach commands28. The integration process is outlined in Fig. 14. Precise adjustments to positional parameters and scaling factors are essential for alignment with human anthropometrics, as shown in Fig. 15.

Fig. 14
figure 14

Exoskeleton right thigh bar coupling code.

Fig. 15
figure 15

Opensim human-machine coupling diagram.

The walking data was input into the human-machine coupling model for simulation verification, and the results are shown in Fig. 16.

Fig. 16
figure 16

Opensim wearable lower extremity intelligent exoskeleton robot walking.

Evaluation of the effectiveness of coupled model muscle control

This study applies CMC to decipher muscle excitation, enabling dynamic musculoskeletal model movements to precisely track predefined kinematic paths under external loads29. Analysis compares muscle force variations in lower limbs during walking (Fig. 17).

Fig. 17
figure 17

Motivational changes in the four muscles of the right leg over three seconds.

As shown in Fig. 17, soleus & gastrocnemius muscles exhibited robust activation during gait, contrasting the strength of biceps femoris & R. gluteus maximus. Figure 18 presents a simulation comparing pre- & post-human usage muscle forces.

Fig. 18
figure 18

Changes in four muscle forces over three seconds before and after wear.

As shown in Fig. 18, the intelligent lower-extremity exoskeleton markedly reduced primary muscle strength, indicating effective force reduction during walking and essential mobility assistance. Pre- vs. post-robot use analysis indicated ~ 60% muscle force reduction.

Research on dynamic simulation of intelligent lower limb exoskeleton system

Construction of human hip and knee joint kinematics function

In OpenSim, IK captured hip & knee joint angle data, transferred to Matlab for curve fitting, elucidating temporal functional relationships. Compared with polynomial interpolation, the eight-term Fourier series demonstrates superior performance in fitting periodic curves, as evidenced by adjusted R² values exceeding 0.99 for all four fitted curves. This indicates excellent model-data agreement, as depicted in Fig. 19.

Fig. 19
figure 19

Fitted functions for right hip and knee joints.

The eight-term Fourier function formula is presented in Eq. 8.

$$\:f\left(x\right)={A}_{0}+\sum\:_{0}^{8}{a}_{i}\text{cos}\left(wx\right)+\sum\:_{0}^{8}{b}_{i}\text{sin}\left(wx\right)$$
(8)

Using the right hip joint as a case study, we present its corresponding fitting function.

$$f\left( {Hip\_R} \right)={A_0}+\mathop \sum \limits_{0}^{8} {a_i}\cos \left( {wx} \right)+\mathop \sum \limits_{0}^{8} {b_i}\sin \left( {wx} \right)$$
(9)

The coefficients are as follows: A0 is -3.079. a0 to a8 are − 0.2911, -1.576, -3.536, 0.2471, 0.794, 0.8891, -0.7193, and 0.5661, respectively. b0 to b8 are − 0.9948, 6.44, 17.61, -5.08, 5.609, 0.4399, 0.3051, and 2.285, respectively. w is 1.651.

The Adjusted R-square method modifies the standard R-square value by incorporating adjustments for sample quantity and the count of independent variables, enhancing the accuracy of the model’s fit30. Research found modified R-squared > 0.99 for all four curves, indicating strong model-data alignment.

Dynamic simulation of intelligent lower limb exoskeleton system

We initialized the system state using the hip and knee joint configurations derived from the fitted function at t = 0 s as the reference starting point. The model was configured with revolute joints at both the hip and knee, while the lumbar segment remained fixed. Under natural gravitational acceleration (g = 9.81 m/s²), we simulated 3 s of dynamic motion and quantitatively analyzed the resulting kinematic variations.(Fig. 20).

Fig. 20
figure 20

Gait progression of the lower-limb exoskeleton (0–3 s).

ADAMS post-processing analyzed hip and knee moment dynamics, validating the method’s effectiveness (Fig. 21). Peak moments were: left hip 65.724 Nm (avg. 7.292 Nm), right hip 59.583 Nm (avg. 10.430 Nm), left knee 16.377 Nm (avg. 5.362 Nm), right knee 23.259 Nm (avg. 7.104 Nm). Max torques were below motor torque, ensuring sufficient power, with max avg. power P = 13.612 W < motor’s rated power. Peak immediate power outputs of left and right hip joints were 88.177 W and 90.645 W, respectively, aligning with motors’ max power (Fig. 22). Avg. The simulation results are consistent with the peak torque of human joints ranging from 60 to 80 NM, and during walking, the peak power is approximately 60 to 150 W.

Fig. 21
figure 21

Time profiles of lower limb joint moments during a gait cycle.

Fig. 22
figure 22

Time profile of hip joint motor power.

Simulation of lower limb exoskeleton control system based on fuzzy PID

Construction of lower limb exoskeleton control simulation system

The lower-limb rehabilitation robot uses a brushless DC (BLDC) motor, comprising three main components: the motor body (stator and rotor), the electronic commutation circuit (logic commutation and position signal units), and position sensors (stator and rotor sensors)31.The system’s equivalent circuit is shown in the Fig. 23.

Fig. 23
figure 23

Y-type brushless motor equivalent circuit diagram.

The mathematical model of the Y-connected brushless DC motor system is represented by its Laplace-transformed transfer function32.

$$G(s)=\frac{{{\omega _r}(s)}}{{{U_d}(s)}}=\frac{{{K_T}}}{{{L_d}J{s^2}+({r_d}J+{L_d}B)s+({r_d}B+{K_e}{K_T})}}$$
(10)

Where:

Ld—Single-phase equivalent inductance,Ld= 2La;

J—Rotor moment of inertia,kgm2;

rd—Equivalent circuit resistance,rd=2R1;

B—Viscous friction coefficient;

KT—Motor torque constant;

Ke—Back electromotive force constant.

The transfer function can be derived from the specific parameters of the brushless motor HT6010-J36.

$$G(s)=\frac{{25}}{{{s^2}+151s+175}}$$
(11)

Tracking experiment of lower limb exoskeleton motion signal based on fuzzy PID

This study employs a seven-level fuzzy set {NB, NM, NS, ZO, PS, PM, PB} to construct a dual-input triple-output fuzzy PID controller based on error E (discretized over [-6,6]) and its rate of change EC. The system utilizes Gaussian membership functions for inputs to achieve rapid response, while adopting triangular membership functions for outputs to ensure regulation precision. Through 49 fuzzy rules, the controller realizes adaptive tuning of PID parameters (Kp, Ki, Kd), with Kp sharing the domain of E, and Ki/Kd linked to EC,As shown in Fig. 24. This hybrid membership function design effectively balances dynamic response speed and steady-state accuracy.

Fig. 24
figure 24

Fuzzy rule design diagram.

As shown in Fig. 25. Based on the above transfer function, a brushless DC motor system was constructed. The tracking performance of the right hip joint position angle and step signals under fuzzy PID and traditional PID control was compared, as shown in the figure, to evaluate the performance of both control strategies33. The simulated right hip joint position function was incorporated into the simulation model, establishing a comparative simulation platform for fuzzy PID and PID control systems.

Fig. 25
figure 25

Lower limb intelligent robot simulation block diagram.

Fig. 26
figure 26

Step response diagram and position tracking diagram.

As shown in Fig. 26.Both conventional and fuzzy PID controllers achieved a 0.06 s settling time. The conventional PID exhibited ~ 5% overshoot, while the fuzzy PID achieved zero overshoot with negligible steady-state error. Though sharing similar rise times (~ 0.04 s), the fuzzy PID demonstrated smoother dynamics by eliminating initial overshoot.

Fig. 27
figure 27

Step response diagram and position tracking diagram.

As shown in Fig. 27 the conventional PID showed ± 5° peak tracking error with 0.05 s phase lag, whereas the fuzzy PID reduced errors to within ± 2° and virtually eliminated lag (< 0.01 s). During rapid transitions (0.8–1.0 s), oscillation amplitudes decreased by > 60%. Results confirm the fuzzy PID’s adaptive tuning enhances nonlinear system precision (60% error reduction) and response (80% lag improvement), proving ideal for high-accuracy motion control.

Simulation experiment of lower extremity exoskeleton motor system

The exoskeleton operating conditions are set for the brushless motor to start and reach a constant speed, with the speed maintained during load increase. A brushless motor control system is built in Simulink, as shown in the Fig. 28. The experiment is set with a rated speed of 50 rpm, and the load is increased from 5 N·m to 10 N·m within 0.04 s.

Fig. 28
figure 28

Torque and speed simulation block diagram.

Fig. 29
figure 29

Torque and speed simulation results.

The results, as shown in the Fig. 29, demonstrate that after fuzzy PID control, the motor torque response is smoother, the speed reaches the rated value faster, and the driving performance is more precise and stable.

Membrane pressure gait sensor system

Structure of membrane pressure gait sensor system

The system utilizes the Gaitboter module from ICC, CAS34 for lower limb gait analysis, incorporating advanced sensor technology (Fig. 30). Core components include thin-film pressure sensors, accelerometers, and gyroscopes34. Eight plantar sensors capture pressure variations, six-axis inertial sensors35track foot speed and angular velocity, and hip and knee sensors collect posture data. MCU and BLE facilitate real-time data reception and processing, ensuring comprehensive gait analysis36.

Fig. 30
figure 30

Gaitboter gait analysis diagrams.

Experimental methods and procedures

To ensure the reliability of gait data, the experiment was conducted in a smooth corridor measuring 12 m in length and 2.2 m in width. Participants included one healthy individual and three patients with lower limb injuries (age 26 ± 5 years, BMI 22.8 ± 1.5) from Peking University Third Hospital. Due to space constraints, the analysis was conducted based on data from one patient.All participants wore standardized plantar pressure shoes and were equipped with 9-axis inertial sensors on their hip/knee joints. Data were processed using a three-dimensional gait analysis system, which synchronously captured dynamic parameters from plantar pressure sensors and pose parameters from joint sensors, ultimately generating a gait database. The database was constructed using extensive clinical experimental data. This study specifically analyzes three representative postoperative patients alongside healthy control subjects, with the experimental results demonstrating gait characteristics typical of normal-stature patients following surgery, thereby ensuring generalizability.

The original clinical data collection protocol was approved by the Medical Ethics Committee of Beijing Chaoyang Hospital. The experimental gait data were sourced from the “Clinical Application of Gait Analysis Technology for Brain Stroke Using Integrated Sound and Motion Sensors” project, with the corresponding ethical approval obtained. Since this study only utilized fully anonymized secondary data without involving new participant interventions, no additional ethical approval was required for the analysis.

Analysis of experimental results

Plantar pressure data analysis

Figure 31 depicts the pressure variation curves within the left and right foot segments of an average individual over 0.8 s during normal walking. In standard walking, the support points are primarily at the heel and toe, with peak pressures denoted as \(\:{P1}_{left}\),\(\:{P2}_{left}\) ,\(\:{P3}_{left}\) and \(\:{P1}_{right}\),\(\:{P2}_{right}\), \(\:{P3}_{right}\)for the left and right heel, mid-foot, and toe, respectively. To evaluate plantar pressure variation, Eq. 10 presents the differential ratio formula for the left foot heel, mid-foot, and toe. Peak pressures for heels, midfeet, and toes are established, and pressure difference weights are computed to assess sole pressure distribution. The auxiliary drive demand is assessed by examining the pressure proportion between left and right foot segments, with a specific formula provided for the left foot heel, midfoot, and toe.

Fig. 31
figure 31

Plantar pressure diagram for normal human walking on legs.

$$\:\left\{\begin{array}{c}{f1}_{left}=\frac{|{P1}_{left}-{P1}_{right}|}{{P1}_{left}}\times\:100\%\\\:{f2}_{left}=\frac{|{P2}_{left}-{P2}_{right}|}{{P2}_{left}}\times\:100\%\\\:{f3}_{left}=\frac{|{P3}_{left}-{P3}_{right}|}{{P3}_{left}}\times\:100\%\end{array}\right.$$
(12)

The left-right foot discrepancy is measured as an f-9fraction compared to a standard value spectrum, with deviations indicating stress that may cause pelvic tilt. A flexible moment-drive is applied to the affected hip motor. Figure 31 compares the plantar pressure curves between three patient groups and healthy subjects.

Fig. 32
figure 32

Comparison of plantar pressure with normal plantar pressure in three groups of patients. (a) Normal human body (b) Patient #1 (c) Patient #2 (d) Patient #3.

Figure 32 shows irregular plantar pressure fluctuations in the patient, with notable heel-midfoot pressure disparity between left & right feet. Outcomes derived using the formula are presented in Table 3.

Table 3 Patient difference percentage table.

Analysis of the data in Table 3 reveals significant abnormalities in the plantar pressure distribution of Patient 1. The differential percentages for the left forefoot (21.7%), midfoot (55.5%), and heel (53.3%) markedly exceed the normal reference values (forefoot: 11.4%; midfoot: 28.6%; heel: 8.5%), while the right midfoot and heel show relatively smaller deviations. This pressure pattern indicates a pronounced bilateral lower-limb load imbalance, with excessive weight-bearing on the left side, suggesting potential left pelvic tilt and compensatory loading on the left limb. Based on these biomechanical characteristics, it is recommended to adjust the lower-limb exoskeleton assistance strategy by enhancing left hip joint torque output and optimizing hip fixation parameters to improve bilateral load distribution.

Hip and knee gait assessment

By utilizing the positional data from the hip/knee sensor, the movement amplitude of the hip/knee joint can be determined in each direction of freedom. To facilitate the analysis, a collection of standard human motion trend data is chosen for comparative purposes, as depicted in Fig. 33.

Fig. 33
figure 33

Normal human hip and knee joint position information.

Analysis of Fig. 33 demonstrates close alignment between measured left/right foot trajectories and reference values, confirming normal gait coordination. Hip extension angles (20° left, 30° right; reference: 40°) showed reduced but physiological ranges, while flexion peaks matched the 40° reference. Knee extension (10° left, 20° right; reference: 30°) exhibited conservative yet functional ranges, with left flexion (60°) matching and right flexion (50°) approaching the reference (60°). These results validate the system’s accuracy in capturing normative gait kinematics within clinically acceptable tolerances. Figure 34 presents hip and knee posture data obtained from a patient at Beijing Third Hospital using the device.

Fig. 34
figure 34

Patient hip and knee position information.

Analysis of Fig. 34 identifies three key gait abnormalities: reduced left hip abduction, elevated right knee valgus, and delayed left knee extension, suggesting gluteal weakness and ligament laxity that compromise stability and load distribution. Corresponding exoskeleton optimizations include: progressive hip abduction assistance for pelvic stability, real-time feedback-controlled valgus damping to prevent overcorrection, and phase-delay compensation algorithms for normalized knee extension timing. These adaptive modifications synchronize with gait cycles to enable precise biomechanical compensation while maintaining na tural movement patterns.

Spatiotemporal parameter analysis of gait

During the Gaitboter study, we collected spatio-temporal walking parameters (Fig. 35). Using these & patient’s lower limb data, joint torsion velocity was recalculated for precise motor speed calibration.

Fig. 35
figure 35

Normal human walking gait data.

The Jacobi matrix inverse calculates theoretical hip joint velocity from foot velocity, establishing a database. Analysis compares patients’ foot speed to database’s velocity, aiding in fine-tuning drive motor speed.

Conclusion

This paper presents a design methodology for a lower limb exoskeleton targeting rehabilitation of patients with movement disorders. Through systematic investigation of dynamic gait mechanisms in lower extremities, a corresponding mathematical model was established and analyzed to develop an intelligent lightweight exoskeleton. Innovatively integrating human biomechanical models with exoskeleton prototypes through the OpenSim platform enabled precise quantification of assistance effects on lower limb muscle groups. A transfer function was derived based on brushless motor kinematic models, with comparative simulations demonstrating superior trajectory tracking performance of fuzzy PID algorithms over classical PID controllers, as evidenced by torque and rotational speed curves. The system incorporates thin-film pressure gait sensors for real-time data acquisition, enabling active exoskeleton assistance and intelligent functionality. A comprehensive gait motion database was concurrently established to support adaptive rehabilitation strategies. The proposed framework demonstrates significant potential in enhancing assistive device responsiveness and rehabilitation efficacy through systematic electromechanical integration and data-driven control optimization.