A gait stability evaluation method based on wearable acceleration sensors

: In this study, an accurate tool is provided for the evaluation of the effect of joint motion effect on gait stability. This quantitative gait evaluation method relies exclusively on the analysis of data acquired using acceleration sensors. First, the acceleration signal of lower limb motion is collected dynamically in real-time through the acceleration sensor. Second, an algorithm based on improved dynamic time warping (DTW) is proposed and used to calculate the gait stability index of the lower limbs. Finally, the effects of different joint braces on gait stability are analyzed. The experimental results show that the joint brace at the ankle and the knee reduces the range of motions of both ankle and knee joints, and a certain impact is exerted on the gait stability. In comparison to the ankle joint brace, the knee joint brace inflicts increased disturbance on the gait stability. Compared to the joint motion of the braced side, which showed a large deviation, the joint motion of the unbraced side was more similar to that of the normal walking process. In this paper, the quantitative evaluation algorithm based on DTW makes the results more intuitive and has potential application value in the evaluation of lower limb dysfunction, clinical training and rehabilitation.


Introduction
The walking ability of humans integrates functions of the nervous, musculoskeletal and physiological brace systems as well as their coupling [1].Thus, human upright walking is a continuous and variable complex process requires constant stability.Gait is a comprehensive characteristic of human walking behavior, influenced in varying degrees by changes of human physiological function, pathology and even mental state [2].Due to this importance, gait analysis has been widely applied.For example, gait can represent the characteristics of human identity information.Combining gait analysis with other forms of identity recognition will make significant contributions in areas such as privacy protection and public safety [3,4].In addition, the reflection of gait on human health and pathological characteristics makes studying participants' basic lower limb function crucial for developing and improving clinical evaluation systems [5].Among a range of features that describe gait, the stability of leg walking has been shown to be an important measure which allows distinguishing healthy and pathological features [6][7][8].Therefore, in recent years, the use of gait stability for disease evaluation and postoperative recovery is being reported in increasing frequency [9,10].
Gait signals are usually derived through kinematic and bioelectrical signal recording, videos and images.In addition, there have been several advanced sensors that can improve the fidelity in data collection, but have not yet been applied and validated in gait analysis [11][12][13][14][15]. Analysis systems proposed in the past are not suitable for routine clinical use due to their harsh application conditions and cumbersome process [16][17][18].Observation scales are also widely used in gait assessment, but their use often depends on the subjective judgment of clinicians and cannot be used to quantify the walking status of lower limbs [19,20].In order to solve the above problems, wearable sensors have been widely used in various studies in recent years to evaluate gait during lower limb movement [21,22].Among these sensors, the acceleration sensor is widely used in the evaluation of lower limb motion because of its advantages in the continuous modal acquisition of human motion information [23][24][25].Studies have shown that wearable sensors are quite suitable for evaluating temporal and spatial parameters of human gait during activities of daily living.In recent years, gait evaluation methods based on wearable sensors have been proved to be reliable [26][27][28].
Salatino et al. [29] used wearable acceleration sensors to study the influence of Down's syndrome on lower limb joint movement during walking.The study revealed that patients with Down syndrome have limited range of motion in the lower extremity joints, leading to walking instability.Johansson et al. [30] used triaxial accelerometers to assess the fall risk of elderly participants during walking, and their study showed that elderly women walk more erratically and have a higher risk of falling than men.Nelm et al. [31] used a triaxial accelerometer to evaluate lower extremity kinematic stability before and after hip arthroplasty.Their approach helps identify significant improvements in lower extremity movement stability after hip replacement surgery.Tamburini et al. [32] studied the influence of different environments on gait stability based on inertial sensors.The results of the study showed that for healthy adults, the experimental environment and test conditions had an effect on the gait variability index but no significant effect on the stability index.Additionally, in some studies, inertial sensors assessed gait performance in Parkinson's patients [33][34][35].With the above study, it was found that that gait parameters included the coefficient of variation [36], step length, step width, time interval between two steps, joint angles as well as the nonlinear features [37], and we have studied gait events with the linear and nonlinear features in our previous work [16].In current gait analysis, linear features are as the main indicators for evaluating stability levels due to their convenience and intuitiveness, but these are often not sufficient to account for the stability of the human body in a continuous walking state, which may lead to the neglect of some data during the analysis process.These methods cannot provide behavioral information about other joints or quantitative information for complex lower extremity movements, because they cannot capture spatiotemporal complex gait cycles [38].Considering the linear and nonlinear relationships of parameters, many deep learning methods of data processing have achieved success in different fields for situations involving a large number of different data types, as well as the parameter distribution differences [39][40][41][42][43].In the current gait analysis field, a large number of machine learning methods have been developed to deal with different gait research problems.For gait feature extraction and classification, artificial neural network (ANN), deep neural network (DNN), extreme learning machine (ELM), transformer and other methods have been proved to be effective [44][45][46].However, there are few quantitative evaluation methods for gait.Other common quantitative gait evaluation methods include the autocorrelation function method [47] and the similarity evaluation method based on the nearest neighbor analysis in terms of the Euclidean distance [48].These methods can only be used for stability evaluation through distance calculation on sequences of equal length.However, when the human body is walking, not only the duration of each step may differ from that of other steps, but also duration of adjacent gait cycles shows variation.Therefore, it is difficult to calculate the difference between two gait motion samples using Euclidean distance-based methods.
Considering the above problems, in this paper a new quantitative analysis method is proposed for the assessment of lower extremity motor stability.Through the use of dynamic programming for sequence alignment and thus minimization of the effects of time axis lag and distortion caused by velocity changes, dynamic time warping (DTW) can be used to analyze any data that are transformed into a linear representation.The DTW algorithm was first mainly used for template matching of video, audio and image data, and now its application in the field of sound recognition is very mature [49].Due to the characteristics and advantages of DTW, many researchers have recently begun to apply the DTW algorithm to human movement assessment and rehabilitation physiotherapy guidance.Semblantes et al. [50] used the DTW algorithm and dichotomy to distinguish whether an action is correct.Su et al. [51] used the DTW algorithm to classify a patient's performance into three levels: poor, good and excellent, through the calculation of the minimum cumulative distance between the measured object and the measurement template.The above methods focus on evaluating actions subjectively or qualitatively and the results obtained using the DTW algorithm are not converted into quantitative scores.Minsu Jang et al. [52] used the DTW algorithm combined with the LMA (laban movement analysis) evaluation method to convert the Laban movement analysis.Osgouei et al. [53] proposed an evaluation method based on DTW algorithm using Kinect camera to quantitatively evaluate the effect of rehabilitation exercise.
The evaluation of gait state is of great significance in clinical diagnosis and rehabilitation, and a method that is more conducive to promotion and application is urgently needed.Therefore, gait analysis through wearable acceleration sensors with lower cost and more convenient application, is an important field in current gait research.In addition, to improve the feasibility of wearable accelerometers in potential clinical gait evaluation, we propose a quantitative gait stability evaluation method.The contributions are summarized as follows.
1).The DTW algorithm is proposed to be used for the evaluation of the gait stability based on wearable acceleration sensors.
2).The normal and abnormal gait signals of healthy subjects are compared and gait metrics are obtained.
3).The theoretical and experimental results show that this study provides a quantifiable method for gait stability evaluation, which can obtain more intuitive quantitative scores.The remaining chapters are organized as follows.Section 2 describes the proposed method, Section 3 is the experimental results and discussion, and the conclusion is drawn in Section 4.

Methods
For the experiments of this paper, acceleration sensors were used to collect acceleration signals from participants during the various parts of the experiment.A joint brace was used to limit the movement of the joint to simulate the symptoms of decreased joint range of motion.In order to reduce the signal noise and the collected data's quality for subsequent processing, a smoothing function is first introduced to for wavelet-based de-noising.Then, the normal walking data are used to establish the stride template, and the walking data after the stride template has been established and the joints have been braced are matched using the DTW algorithm depending on the experimental requirements.After that, the data processed using the DTW algorithm are introduced sequentially into the stability measurement equation to obtain the measurement index.Finally, the experimental data and stability measurement results are discussed and analyzed.Figure 1 shows the research process and method.

Experiment preparation
In this study, a walking experiment was used in gait evaluation.During the experiment, the triaxial acceleration sensor was fixed on the back waist, left and right hip joints, left and right knee joints and left and right ankle joints of the eight participants.The acceleration sensors transmitted data to the computer through Bluetooth for processing.The triaxial acceleration sensors we selected from Delsys company with a sampling frequency set to 150 Hz.In addition, a treadmill as well as knee and ankle braces were used for this experiment.Figure 2 shows the joint brace and triaxial accelerometer.
We used a comparative experimental method between the normal group and the abnormal group to conduct a 2-minute walking test (2MW).The average preferred walking speed (PWS) [54] was set as the walking speed on the treadmill.The experiment was conducted under the following conditions: Normal walking, walking with knee brace on unilateral side and walking with an ankle brace on the unilateral side.All the experiments were repeated three times for each of the eight participants.

Experiment steps
In this study, a comparison experiment between normal walking and walking with a joint brace was performed.The subject fixed the triaxial acceleration sensors at the corresponding joints.First, multiple groups of normal walking signals were acquired to establish the stride templates.After that, the participants were braced at the joints to simulate the gait instability caused by the influence of joints, and the walking experiment was repeated.The accelerometer transmitted data to the computer via Bluetooth for data processing.

Preprocessing of acceleration signal
When acquiring the gait acceleration data, the accelerometer and the acquisition box communicate through Bluetooth connection.The process is easily affected by external power frequency noise, high frequency interference, human tremor and other inherent and environmental factors.This noise disturbance is tangled with the acceleration signal of gait motion, causing partial distortions to the collected signal.Therefore, in order to reduce environmental and human factors interference, the wavelet threshold de-noising algorithm [55] was utilized to filter the noise from the data.

Deviation correction of acceleration signal
The measurement errors of three-axis accelerometer mainly include heating and noise errors, accelerometer installation errors and non orthogonal errors between axes.In order to reduce these errors, various errors are compensated and corrected to improve accuracy.In the actual experiment, due to the wearing position and other factors, there is a certain angle between the vertical axis direction of the accelerometer and the gravity acceleration direction.The three axes of the three-axis accelerometer are respectively represented by x , y , z , and their corresponding acceleration values are x a , y a and z a .Assume that the included angle between the gravity direction and the xy plane of the acceleration sensor is  (pitch angle), and the projection of the gravity acceleration direction on the xy plane forms an angle  (roll angle) with the x -axis of the sensor, where ' j g is the projection of the gravity acceleration on the xy plane.As shown in Figure 3, the relationship between the gravity acceleration direction and the position of the three-axis accelerometer.
When measuring the acceleration values in three directions of the three-axis acceleration sensor at rest are jx a , jy a , jz a and the gravitational acceleration g is known.
2 2 ' cos The included angles  and  can be calculated by the Eqs (2) and (3).It can be obtained that the actual acceleration values x A , y A , z A are, sin cos sin cos cos sin sin cos sin sin cos cos sin cos cos where x A is the acceleration in the direction of the coronal axis, y A is the acceleration in the direction of the sagittal axis, and z A is the acceleration in the direction of gravity.

Wavelet threshold de-noising
Wavelet threshold functions mainly include soft threshold functions, hard threshold functions and soft-hard compromise functions.Soft threshold functions are generally continuous, but there is a constant deviation which directly affects the reconstructed signal's approximation degree of the original one.Hard threshold methods are better than soft ones in the mean variance sense.However, the filtered signal will produce additional oscillations and jump points, thus disturbing the smoothness of the original signal.Although the soft and hard threshold compromise functions offer some improvements over the respective methods, they only reduce the bias in the soft threshold but do not eliminate it completely.To overcome the shortcomings of the above threshold functions, a smoothness function is introduced to improve them as follows,  .However, it also increases the computational complexity.

Division of step and establishment of average step
Converting human gait into specific data for analysis based in basic characteristics, such as step and stride, can be achieved through data analysis.Therefore, it is significant to measure the gait characteristic parameters of human walking quantitatively so as to analyze human gait motion.During walking, the linear length of the same foot from the beginning of contact with the ground to the next contact with the ground is called stride.Gait characteristic parameters, such as stride and step length, can be calculated using the autocorrelation of acceleration [56].
A piecewise linear interpolation algorithm [57] was used to calculate the average stride length, at each joint, during normal walking for all participants.The method of piecewise interpolation as follows: First, the interpolation interval is divided into several small segments, and low-order interpolation is applied on each segment.Next, the interpolation polynomials at each small segment are stitched together as an interpolation function on the entire interval.
The length of the interpolation interval is   1, N , where N is the sampling length of stride S .

The interpolation interval is divided into
where each segment is denoted by The interpolation node is selected according to the following rule, 0 ) When the interpolation node set is 0 1 2 s  , the interpolation nodes are set to q s and 1 q s  regardless if s exceeds q s or not.

Dynamic time warping algorithm
The dynamic time warping algorithm is a method used to measure the similarity of the time series, which can minimize the effects of hysteresis and distortion caused by different speed.Compared with the deep neural network model, DTW does not need a large amount of early data for training, and consumes less resources in computing, which is more in line with the requirements of real-time [53,58].In addition, the algorithm principle of DTW makes it more applicable when there is a reference template, which is consistent with the experiment used in this study.
During human walking, the acceleration signal is a periodic signal with the time elapsing.Within a gait cycle, its feature points are a two-dimensional sequence composed of time series and amplitude series.Therefore, in order to better measure the similarity between samples, we improved the DTW algorithm using two-dimensional sequence distance, and optimized the quantitative evaluation algorithm for similarity calculation.
If the time of the sample is denoted as t X , t Y and the amplitude is a X , a Y , the sample sequence is, (( (1), (1)),..., ( ( ), ( )) (( (1), (1)),..., ( ( ), ( )) The lengths of the two stride sequences X and Y are m and n , respectively.The single-point distance between i x and i y of the sequences X and Y is used to formulate a distance matrix W with a size of m n  .The specific expression is, Point ( , ) w i j in the distance matrix W corresponds to the Euclidean distance between each point i x and i y .The corresponding points act as similarity metrics between each point of sequence X and each point of sequence Y , with smaller distances corresponding the higher similarity degrees.The Euclidean distance equation between the two-dimensional sequences X and Y is, Next, the global cost function D is derived, where element ( , ) d i j represents the cumulative distance and is expressed as follows.
For the first row, For the first column, For the remaining elements, the cumulative distance ( , ) , ] j m  can be expressed as follows.The cumulative distance ( , ) d i j is the current grid point distance ( , ) w i j , that is, the sum of the Euclidean distance between points i x and j y , and the cumulative distance of the smallest element to that point, ( , ) min{ , , } The dynamic regularization path P is the mapping relationship between the representative sequences X and Y , The best path is the path that minimizes the cumulative distance.The path can be obtained through dynamic programming.The k th element along this path is denoted as k w , where 1,..., k K  and max( , ) The DTW algorithm imposes certain restrictions on the routing path P , that is, the path be established, as long as the following three conditions are met.
(1) Boundary conditions Any two sequences may change, but the regular path P must start from the lower left corner In the calculation process of the path, the points on the path cannot jump and can be matched only along adjacent points.
(3) Monotonic constraint For two points 1 = ( ', ') The points on the cumulative distance matrix ( , ) d i j must proceed monotonically with time.

Stability measure
The cumulative distance tan Dis ce d of shortest path in the DTW algorithm is considered a stability criterion, as lower values of this parameter value correspond to better gait stability.However, this parameter is not intuitive and illustrative.In this study, a normalized distance is defined within the range of 0% to 100% for the shortest path cumulative distance, where values closer to 100% indicate stronger walking stability, and the lower values represent worse stability.The key is to determine the threshold of the stability level u d .The stability index equation is as follows,   where K is the path length of the minimum distance accumulated through the DTW,   , w i j is the Euclidean distance corresponding to the path in the distance matrix W and tan Dis ce d is the minimum cumulative distance.Determining the stability level threshold u d is the key to determine whether the stability measure index can measure action stability accurately.If the threshold value is too small, the error will be amplified, while values too large will result in a lack of differentiation between stability levels.u d can be obtained from Eq (22), where L is the number of dimensions contained in a sequence of samples, and u w is the Euclidean distance between the upper and lower Euclidean distance.Then, Eq (22) is substituted into Eq (21) to obtain the stability measure,

Experimental signal acquisition
To understand the effect of the decreased joint range of motion on gait stability, a walking experiment was selected as the evaluation method used to limit the main joints (the knee and ankle joints are often used as the major joints for gait analysis [59]) to simulate the symptoms of decreased joint mobility due to pathological reasons.Eight healthy adults (age 23 3   years) were selected for the experiment.All participants had no neurological or orthopedic disease, neither had they suffered a fall in year preceding the experiment or had knee or ankle surgery in the past three years, so as to minimize the impact of external factors on the experiment.
We conduct the two-minute walking test (2MW), it is widely used in medical gait analysis.To reduce the disturbance caused by walking speed, the average preferred walking speed (PWS) [54] of the eight participants was selected for all subsequent test conditions.It was finally determined that the experiment would be carried out at a uniform velocity of 1.34m/s.In addition, in order to rule out the influence of some unexpected factors on the experimental results, before the start of the experiment, the participants were asked to adapt to walking with joint braces on the treadmill (the joint braces were limited to the main force leg and the main force legs of all participants was the right one), until they were familiar with the experimental specifications.
Before the start of the experiment, the equipment was checked and corrected.When the experiment started, the eight participants maintained a constant PWS of 1.34 m/s on the treadmill.Experiments were performed under the following conditions: Normal walking, walking with knee brace on unilateral side and walking with ankle brace on the unilateral side.Acceleration data on the left and right sides of the participants' back waist, hip joints and knee joints were collected, and data collection was carried out for each test condition.All experiments were repeated three times for each of the eight participants, and the completion of each group of experiments required a five-minute interval before the initiation of the next.The accelerometer transmitted data to the computer via Bluetooth for data processing.

Dataset description
The work includes gait data of the same task in different states, which is used to verify the measurement method proposed in this paper.The data set contains gait signal data of eight different subjects in the laboratory.The acceleration sensors placed on the subjects' seven parts are used to record the acceleration data of three different walking states (normal, right knee joint brace, left knee joint brace).

Dataset validation
The benchmark datasets (MHEALTH, KFall) have been widely used in gait research with the standard time series dataset (UCR) [60][61][62].The relevant comparison of datasets is listed in Table 1.These datasets have rich activity categories and data volumes, but they are usually used for the task classification.In the later research, we used our dataset in the research of DTW based evaluation method to realize the quantitative evaluation of abnormal state and normal state.

Signal de-noising
In this study, acceleration sensors were used to collect the signals of the participants during walking, and then the DTW algorithm was used to process the signals.However, the DTW algorithm is sensitive to noise due to its operation characteristics and this noise would have a significant impact on the results without de-noising.Therefore, this study focuses on the DTW algorithm and introduces an improved smoothing function for de-noising optimization [55].Figure 4 shows the acceleration signal before and after filtering at the knee joint.It is evident that the acceleration signal before filtering contains substantial noise but the de-noising effect of the improved wavelet threshold is ideal, and the acceleration curve after de-noising is smoother than that before.

Stride division and acceleration trajectory
The gait has continuity and repetition, with a certain periodicity.The process cycle from a heel landing to the same heel landing again is called a complete gait cycle.In this paper, the piecewise linear function algorithm is used to average the acceleration trajectories of ten consecutive gait cycles at each joint of the participants.Figure 5 shows the Z-axis acceleration trajectories of different joints.The gait has continuity and repetition, with a certain periodicity.The process cycle from a heel landing to the same heel landing again is called a complete gait cycle.In this paper, the piecewise linear function algorithm is used to average the acceleration trajectories of ten consecutive gait cycles at each joint of the participants.Figure 5 shows the Z-axis acceleration trajectories of different joints.

Dynamic time warping optimal path
When different joints are braced, the cumulative distance of the shortest path at each joint of the left and right legs is shown in Table 2. Figure 6 shows the shortest path cumulative distance at the left and right foot joints braced by different joints.Table 2 and Figure 6 show that, in the case of normal walking, the tan Dis ce d at the hip, knee and ankle joints is smaller, while under the brace of the knee joint, compared to normal walking, the tan Dis ce d at the hip, knee and ankle joints is significantly higher.3.
Figure 7 illustrates the shortest path cumulative distance tan Dis ce d at each of a unilateral leg, under the different joint braces.Figure 7 and Table 3 show that, with the ankle joint brace, the tan Dis ce d of the unbraced leg, which resembles normal walking process, is shorter than that of the braced leg, while it is the longest at the ankle joint of the braced leg.With the knee joint brace, the tan Dis ce d of the unbraced leg is shorter than that of the braced leg, while the tan Dis ce d at the knee joint of the braced leg appears to be the longest.

Stability measurement results and analysis
The DTW algorithm allows us to assess quantitatively the size of each gait cycle and of different stages of the same gait cycle.In this study, it was used to evaluate the stability of bilateral lower limbs and the joints of the single leg under different joint braces (unbraced, ankle and knee brace), to study the influence of joint activities on lower limb gait stability.The three different bracing conditions (normal walking, ankle brace and knee brace) were compared.Based on the data distribution of the eight participants over ten consecutive gait cycles, the gait stability of the lower limbs on both sides that between the lower limbs on unilateral side, as well as the average stride length were derived.The results after data normalization are shown in Tables 4 and 5, which list the mean and standard deviation of the bilateral stride stability metrics of the lower limbs braced by different joints.

Measurement of bilateral lower limb gait stability
The mean and standard deviation of the gait stability metrics during normal walking were 91.56 ± 1.08%, 92.13 ± 1.39 and 89.51 ± 2.13%.These figures indicate that gait stability during normal walking is good, and the disturbance of the joints to the gait movement is very small, so the stability index of normal gait is a high score.
When the ankle joint was braced, the gait stability index at the ankle joint decreased from 89.51% to 78.24% during normal walking, a decrease of 11.27 percentage points (pp).The stability index at the hip joint decreased from 91.26% to 81.28% during normal walking, which represents a decrease of 10.28 pp.The stability index at the knee joint decreased from 92.13% to 88.15% during normal walking, i.e., by 3.98 pp.This shows that the decrease of ankle joint mobility caused by the ankle joint brace caused a certain disturbance to normal walking, while the ankle joint mobility decreased and gait stability deteriorated.With the knee joint brace, the stability index at the knee joint decreased from 92.13% to 67.32% during normal walking, a decrease of 24.81 pp.At the hip joint, the stability index decreased from 91.26% to 76.58% during normal walking, a decrease of 14.98 pp, and from 89.51% to 69.15% at the ankle joint, namely 20.36 pp.These figures indicate that the decrease in the range of motion of the knee joint caused by the knee joint brace has a greater impact on gait stability, and in addition to the disturbance of the stability of the knee joint itself, the stability of the hip and ankle joints was also greatly affected.The above data show that the decrease in joint range of motion caused by bracing the joints will inevitably lead to gait instability, which also results in a decrease in the corresponding stability index.These changes can be seen more clearly through the quantitative stability measure metrics (shown in Figure 8).In a study of patients with knee arthritis by Sharon et al. [63], it was shown that patients with arthritis exhibited greater joint stiffness during walking than healthy individuals, and that increased joint stiffness may affect gait instability.Ro et al. [64] also pointed out in the quantitative assessment of gait after total knee arthroplasty that postoperative knee adduction moment and changes in knee flexion angle are the more obvious features.In each braced joint, the stability index decrease was the most pronounced, indicating that joint brace had a direct impact on the normal function of the joint and consequently affecting the stability of the entire lower limb.In addition, compared with normal walking, the knee joint brace caused greater disturbance to the gait stability, indicating that the knee joint has a stronger impact on the overall motion than the ankle joint.Under the ankle and knee joints were braced, the average value of the gait stability index, at the unbraced joint was more than 85%.Compared to the unbraced side, the standard deviation and average value of gait stability index of the right hip, knee and ankle on the knee-braced leg were 73.34 ± 4.41%, 66.71 ± 6.71% and 72.48 ± 4.62%, while the mean and standard deviation of the gait stability index of right hip, right knee and right ankle, on the ankle-braced leg were 76.53 ± 3.61%, 78.34 ± 2.81% and 72.43 ± 4.79%.
Under the ankle joint brace, the mean value of the gait stability index at the right ankle was the smallest, which was 72.43%, indicating that the ankle joint brace caused the greatest disturbance to the ankle joint.Under the knee joint brace, the mean value of the stability index of the right knee was the smallest at 66.71 ± 6.71%, indicating that the knee joint brace caused the greatest disturbance to the knee joint.It can be seen from the above data combined with Figure 9 that the motion of the joints on the braced side is quite different to normal walking due to joints' limited range of motion, while the motion of the joints on the unbraced side is closer to that of normal walking.It can be seen that the joint brace leads to asymmetric movements on both sides during walking, resulting in a decrease in gait stability.This again confirms Ro et al.'s conclusion that the most significant difference in gait characteristics before and after surgery is bilateral symmetry [64].In addition, the corresponding joints that were braced (for example, the braced right knee and the unbraced left knee) had the largest index difference, once again verifying the impact of decreased joint mobility on joint stability.Compared with the joint motion of the other bracing sides, the deviation of the joint motion at the knee joint was the largest.In combination with the above experiments, the DTW algorithm is sensitive to small changes such as amplitude, which also enables even similar joint activities to obtain small difference measurements.Therefore, the quantitative gait evaluation method based on DTW cannot only distinguish the instability degree of different motion states, but also make the influence degree of each joint show obvious differences.For potential applications, it allows doctors to have accurate evaluation values in clinical diagnosis, which is of great significance for early clinical diagnosis of diseases with corresponding symptoms, as well as tracking and quantitative evaluation of the target site when recovering after surgery.

Limitations
In this study, normal individuals were selected as subjects to verify the feasibility of the DWT evaluation method.The limitation is the absence of data on patients with clinical or pathological cases, which may affect the diversity evaluation of subjects and the system's operational robustness.In addition, joint braces were conducted only on two major lower limb joints in the simulation of unstable gait, which may overlook other factors (including joints and muscle strength).These limitations curtail the broader impact and adoption of the proposed methodology for clinical settings, and require further research before the proposed evaluation methods can be used for disease diagnosis.

Conclusions
In order to accurately quantify the effect of joint motion on gait stability during walking, a DTW-based gait stability evaluation algorithm is proposed.Wearable sensors were used to collect acceleration signals at various joints, and an innovative calculation method of the stability metric index was used to quantify the data processed by DTW algorithm into an intuitive percentage score.In this paper, the improved DTW-based gait stability evaluation method provided effective information for the impact of joint motion on gait stability, and was validated experimentally through the comparison of participants under normal and braced-joint conditions.The proposed method does not rely on the subjective evaluation of experts and a large number of early trainings and can be applied to gait abnormality detection and limb rehabilitation monitoring.The limitations of this study, such as clinical trials on real pathological cases and other factors that affect gait parameters, need to be further studied.In future work, patients with lower limb pathological diseases or individuals with a history of lower limb diseases can be considered as subjects to determine differences in disease assessment and evaluate the impact of more factors, and to improve the effectiveness of the study and operational robustness with AI technology.In summary, our proposed gait evaluation method based on wearable acceleration sensor signals has potential importance for evaluating lower limb dysfunction, clinical training and rehabilitation.

Use of AI tools declaration
The authors declare they have not used Artificial Intelligence (AI) tools in the creation of this article.

Figure 1 .
Figure 1.Research process and method.

Figure 3 .
Figure 3.The relationship between the gravity acceleration direction and the position of the three-axis accelerometer.

.
is the wavelet coefficient after threshold processing; jk T is the k -th high frequency wavelet coefficient component threshold in the j -th layer; jk  is the k -th high frequency coefficient in the j -th layer; and  is a constant with The addition of the cubic equation of one variable tangent to two straight lines, namely to jk j non-smooth hard threshold function and eliminates the problem of constant deviation at

1 w
of the grid and end at the upper right corner k w . in the regular path, the following must hold:

Figure 4 .
Figure 4. Original and filtered acceleration signal at the knee joint.

Figure 6 .
Figure 6.Shortest path's cumulative distance at the left and right foot joints.

Figure 7 .
Figure 7. Cumulative shortest path distance at each joint of a single leg (WA: Waist; LH: Left hip; RH: Right hip; LK: Left knee; RK: Right knee; LA: Left ankle; RA: Right ankle)

Figure 8 .
Figure 8. Numerical distribution of stability metrics under different joint braces.

Figure 9 .
Figure 9. Numerical distribution of stability metrics under different joint braces.

Table 1 .
Comparison of multiple gait related datasets.

Table 2 .
Cumulative distance of the shortest path at the left and right foot joints for different joint braces.

Table 3 .
Shortest path cumulative distance of left and right foot joints for different joint braces.

Table 4 .
Mean and standard deviation of stability indexes of lower limb joints under different joint brace (%).

Table 5
lists the mean and variance of the unilateral stride stability metrics of lower limbs braced at different joints.

Table 5 .
Mean value and standard deviation of gait stability index at each joint of left and right feet under different joint brace (%).