Abstract
Gait event detection is a crucial step towards the effective assessment and rehabilitation of motor dysfunctions. Recently, the continuous wavelet transform (CWT) based methods have been increasingly proposed for gait event detection due to their robustness. However, few investigations on determining the appropriate mother wavelet with proper selection criteria have been performed, especially for hemiplegic patients. In this study, the performances of commonly used mother wavelets in detecting gait events were systematically investigated. The acceleration signals from the tibialis anterior muscle of both healthy and hemiplegic subjects were recorded during ground walking and the two core gait events of heel strike (HS) and toe off (TO) were detected from the signal recordings by a CWT algorithm with different mother wavelets. Our results showed that the overall performance of the CWT algorithm in detecting the two gait events was significantly different when using various mother wavelets. By using different wavelet selection criteria, we also found that the accuracy criteria based on time-error minimization and F1-score maximization could provide the appropriate mother wavelet for gait event detection. The findings from this study will provide an insight on the selection of an appropriate mother wavelet for gait event detection and facilitate the development of adequate rehabilitation aids.
Keywords: gait event detection, hemiplegic gait, appropriate mother wavelet, acceleration signal, wavelet-selection criteria
1. Introduction
Gait disorders are usually associated with an ageing population as well as stroke survivors with hemiplegia, thus leading to both a reduced quality of life and an increased mortality rate. The detection of gait events or gait characteristics is essential to numerous applications including the development of control mechanisms in drop foot correction devices [1,2,3,4,5], human activity recognition for healthcare [6,7], motor recovery assessments for effective rehabilitation strategies [1,8], especially for patients with lower limb motor dysfunction following a severe stroke. Heel strike (HS) and toe off (TO) are regarded as two core gait events in a normal gait cycle, which provide information on the swing, stance, and stride gait parameters. Hence, it is essential to develop an effective algorithm for the accurate detection of HS and TO gait events.
With the rapid development of wearable electronic devices, inertial sensors such as accelerometers are fast becoming widely used in gait analysis due to their portable, low-power consumption, and low-cost characteristics. In this regard, various algorithms aiming at gait event detection based on acceleration signals have been proposed in the recent years. In previous studies [4,9,10,11], a number of proposed algorithms have attempted to detect gait events based on a peak detection approach that integrates a filtering technique to the acceleration signal based on a set of predefined thresholds in the time domain. However, prior knowledge of the optimal thresholds is relatively difficult to adapt to different subjects in a real-world environment. Also, some attempts have been made to utilize machine learning algorithms for gait event detection via classification models especially with labelled datasets [12]. Note that such machine learning based approaches are limited because their operational procedures are driven by black-box models. Thus, it is difficult for developers and clinicians to truly understand the mechanism of gait event detection that often hinders proper interpretation for practical applications [9,13,14]. By exploiting the limitations of the above described threshold-based approaches and machine learning based methods [1,8], continuous wavelet transform (CWT) based methods have been considered as an alternative solution. By simultaneously providing a signal’s information in the time and frequency domains through a series of decomposition and reconstruction operation, the wavelet transform method has been utilized as an effective tool in various fields, such as signal de-noising [15], speech/signal processing and evaluation [16,17,18], and health threatening illness diagnosis [19]. In the aspect of gait research, CWT based methods have been proven to offer a time-frequency representation with the capability to capture and analyze varying frequencies of acceleration signals, be adaptive to irregular acceleration patterns even in the presence of frequency variations, as well as to attenuate inherent noise and baseline drift [20]. Considering these advantages, wavelet transforms are being increasingly used and have been reported to have good results particularly for gait event detection [13,20,21,22,23,24,25,26,27,28].
Table 1 summarizes the recently proposed CWT-based methods for detecting gait events, in which different mother wavelets were used in those previous studies. Note that the selection of an appropriate mother wavelet has been stated as a central and open question in the application of wavelet transforms for gait signal analysis [29]. Thus, finding an appropriate mother wavelet for gait events detection could be a crucial step, which would benefit coefficient reconstruction and feature extraction from the signal in time and frequency domains. Meanwhile, in other research domains such as signal de-noising, several mother wavelet selection criteria have been investigated based on some qualitative or quantitative approaches [15,17,30,31,32,33]. Apart from the fact that the quantitative method has been strongly advocated, mother wavelet selection based on accuracy driven criteria has attracted a lot of research attention in the recent years due to its simplicity and reliability [30]. However, how to determine the appropriate mother wavelet in gait event detection was rarely reported in the previous studies, so the criteria for the mother wavelet selection is still lacking. Additionally, while most of the previous studies concentrated on the gait analysis of healthy subjects and Parkinson’s disease (PD) patients, as showed in Table 1, few studies have been conducted to detect the gait events for hemiplegic patients who often suffer from gait disorders.
Table 1.
Ref. | Subject | Sensor Position | Sensor Type | Wavelet | Detected Gait Parameters |
---|---|---|---|---|---|
[13] | Healthy subjects | Left and right ankles | Tri-axial accelerometer | Morlet (morl) | HS and TO events |
[20] | Healthy subjects | Waist | Tri-axial accelerometer | Gaussian (gaus1) | HS and TO events |
[21] | Healthy subjects | Ankle, thigh, waist, chest, upper arm and wrist | Tri-axial accelerometer | Morlet (morl) | HS and TO events |
[22] | Parkinson’s disease (PD) patients | Lower back | Tri-axial accelerometer | Gaussian (gaus1) | HS and TO events |
[24] | Healthy subjects | Foot, ankle, shank and waist | Tri-axial accelerometer | Daubechies (db2) | HS and TO events |
[26] | Healthy subjects | Tibialis anterior muscle of the lower leg | Tri-axial accelerometer | Morlet (morl) | HS and TO events |
[27] | Parkinson’s disease (PD) patients | Shank, thigh and lower back | Tri-axial accelerometer | Daubechies (db4) | Freezing of gait |
Towards determining an appropriate mother wavelet on gait event detection for both healthy subjects and hemiplegic patients, this study firstly constructed a general CWT algorithm. Secondly, we investigated the performance of 32 commonly applied mother wavelets in the recognition of two important gait events (HS and TO) using the acceleration signals obtained from 16 participants (including healthy subjects and hemiplegic patients) during level ground walking. By comparing the performance of different mother wavelets based on both accuracy (time-error, F1-score) and quantitative criteria (cross-correlation coefficient, energy-to-Shannon entropy ratio), the appropriate mother wavelet would be obtained. In this paper, the remaining part is organized as follows. Section 2 describes the improved general CWT algorithm and the criteria for selecting the appropriate mother wavelet. Section 3 presents the experimental results for gait event detection amongst the different mother wavelets and the different wavelet selection criteria in both healthy subjects and hemiplegic patients. Section 4 presents the discussion, and finally Section 5 concludes the work.
2. Materials and Methods
2.1. Subjects Information and Experimental Procedure
A total of 16 subjects (13 healthy subjects and 3 hemiplegic patients) participated in this study for the analysis of their gait events. The 13 healthy subjects consisted of seven males and six females with an age range of 20 to 35 years, a height of 1.55 to 1.78 m, and a weight of 47 to 78 kg. The three post-stroke patients were composed of two males and one female with an age range of 44 to 59 years, a height of 1.63 to 1.71 m, and a weight of 54 to 78 kg. For the recruitment of healthy subjects, a preliminary assessment was conducted to ensure that they had no physical problems that might affect their gait patterns. For the recruitment of hemiplegic patients, the following four inclusion criteria were ensured: They had a unilateral hemiplegia after stroke, were able to walk at least 10 m independently without any help or assistive devices after motor rehabilitation treatment, were not diagnosed with other diseases that might affect their walking patterns, and were able to understand and cooperate with the experimental protocols. With these criteria, three patients who have been diagnosed with cerebral ischemic stroke were recruited from Guangzhou Panyu Central Hospital. Each patient’s lower extremity motor functional level was evaluated using the Brunnstrom stage assessment method, which was used to reflect post-stroke motor recovery stage in clinical settings [34]. The clinical and demographic details of the hemiplegic subjects are summarized in Table 2. All the subjects gave the written informed consent to participate in the study and also provided the permission for the publication and educational purposes of their data/photographs. The experimental protocol of the study was approved by the Ethics Committee for Human Research, Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences.
Table 2.
No. | Age | Height (cm) | Weight (kg) | State of Illness | Brunnstrom Stage (Lower Limb) | Diagnosis | Symptom |
---|---|---|---|---|---|---|---|
1 | 59 | 163 | 78 | 12 months | V | Cerebral Ischemic Stroke | Left limb hemiplegia |
2 | 44 | 171 | 54 | 6 months | IV | Cerebral Ischemic Stroke | Right limb hemiplegia |
3 | 53 | 167 | 61 | 7 months | IV | Cerebral Ischemic Stroke | Right limb hemiplegia |
In the experiments, a wireless tri-axial accelerometer sensor (Delsys Inc., Natick, MA, USA) was attached to the tibialis anterior muscle of the right leg of each healthy subject and the paretic leg of each hemiplegic patient. As a reference for the ground true values of HS and TO, two force sensing resistor (FSR) sensors (Delsys Inc., Natick, MA, USA) were used to record the foot-switch signals of the right foot for comparison. To be precise, the two FSR sensors were placed under the toe and heel of each subject, respectively. The FSR and acceleration signals were concurrently recorded using a commercial data acquisition system (Delsys Inc., Natick, MA, USA) and transmitted wirelessly to a computer system for storage. To ensure high quality signal recordings, a bandage (Kindmax Inc., Irvine, CA, USA) was used to firmly fix the sensors to the leg so as to minimize their displacement and vibration during walking. A diagram showing the experimental setup is presented in Figure 1. During the experiments, each subject was instructed to walk continuously along a 10 m pathway on level ground at their preferred speed (regarded as the norm). The subjects repeatedly walked from one side of the pathway to another side, and then made a U-turn to walk back for around one minute. Both the FSR and acceleration signals were simultaneously sampled at a rate of 148.15 Hz and then the acquired signals were analyzed using an offline MATLAB R2018b programming tool.
2.2. CWT Based Gait Event Detection Algorithm
A cycle of human gait can be divided into a sequence of repeated events and phases. More specifically, one gait cycle consists of stance and swing phases. The HS and TO events mark the beginning of stance and swing phases, respectively. In this case, it is obvious that the occurrence frequency of the two gait events (HS and TO) is twice of one gait cycle. This time-frequency relationship between the gait event and the gait cycle through the CWT can be used to detect gait events [13]. Moreover, it should be noted that the human gait is chaotic in nature in the real-world environment [35]. Thus, continuous wavelet transform methods have been proven to be robust and stable in several previous studies in effectively detecting gait events in practical applications that may be subject to various disturbances [13,20,21,22,26,28]. Here we propose a general CWT algorithm for the detection of two gait events (HS and TO), which is a combination of the methods in the two previous studies by Minh H. Pham et al. [22] and Siddhartha Khandelwal et al. [13].
The operational procedure of the general CWT based gait event detection algorithm is presented in Figure 2. Here the components of the tri-axially recorded acceleration signals from the anterior-posterior (AP) axis during level ground walking were used for the analysis of gait events [22,36]. In order to improve the quality of the AP signal recordings, the algorithm began with a pre-processing of the AP acceleration signals that were composed of three sequential procedures. Firstly, a linear de-trending algorithm was adopted to reduce the effect of noise and interference on the AP signal baseline. Secondly, a low-pass filtering at 10 Hz with a second-order Butterworth filter was used to remove the high-frequency interferences from the AP signals. Finally, the AP signals were smoothed by integration using the inbuilt function in MATLAB called cumtrapz, where the approximation of the cumulative integral of each sampling points along the time intervals was calculated.
After the AP acceleration signal preprocessing, the time-frequency analysis was performed to track the inherent gait events as well as gait cycles. The CWT of a discrete time signal with equal time spacing is defined as the inner product of with a scaled and translated mother wavelet as expressed in Equation (1).
(1) |
where denotes the wavelet transform, is the wavelet scaling factor, is the localized time index, and the (*) indicates the complex conjugate. Detailed definitions of different mother wavelets () and the prescription of wavelet selection criteria are presented in Section 2.4. The range of scales for CWT analysis [1, ] was chosen using the frequency scale relationship of the chosen wavelet [26], which is presented in Equation (2).
(2) |
where is the central frequency of the wavelet, is the data sampling frequency, and is the gait frequency. Since the healthy subjects usually walk at an average speed of 1.5 m/s, a minimum gait frequency of 0.5 Hz was utilized in this study as the norm [26]. In the experiments, the hemiplegic subjects walked with an average speed of around 0.7–0.8 m/s. Thus, a minimum gait frequency of 0.25 Hz was assumed for the hemiplegic subjects.
Given a mother wavelet, the corresponding frequency scale can be calculated by Equation (2) for CWT analysis, and then the CWT coefficients can be obtained by Equation (1). As a typical example, Figure 3 graphically demonstrates the CWT plots of the acceleration signals during walking from one healthy subject (Figure 3a) and one hemiplegic subject (Figure 3b), where two mother wavelets (“db6” and “morl”) were adopted for comparison. It was obvious from Figure 3 that the frequency of gait events underlying the corresponding scales is approximately two times of gait cycles. To distinguish the gait event and the gait cycle, the scale-dependent energy density spectrum was computed based on the obtained CWT coefficients by using Equation (3).
(3) |
where is the total number of wavelet coefficients and is the 2-D wavelet energy density function that measures the total energy distribution of the signal associated with the scale. The peaks in represent the dominant energy scales that contribute most to the signal’s energy in the spectral domain [13]. Typically, two distinct spectral energy peaks can be obtained from the above computed parameter and the corresponding peak scales have a ratio of two due to the frequency relationship between the gait event and the gait cycle. Since the candidate scales of gait events and gait cycles were found from the peaks of , the peaks were stored as the set of local maxima points {(,), }; where is the scale corresponding to a peak value of and is the total number of peaks. Afterwards, the following three possible cases were checked to determine the scale of the associated gait cycle and gait event in the energy density spectrum.
Case I: If there was only a single peak () in the energy density spectrum, then the dominant spectral scale was tracked as the cycle scale using and the event scale was tracked using the relationship.
Case II: If there were two dominant peaks () in the energy density spectrum, then the cycle scale was tracked using and the event scale was tracked using the () relationship.
Case III: If there were more than two peaks () in the energy density spectrum, then the ratio of any two consecutive (neighboring) peaks denoted as ( was checked with the relaxed spectral relationship that to attenuate interferences in the signal and manage the occurrence of low frequency [14]. Thus, the two latest peaks that satisfied the above condition were tracked as the dominant peaks using the and () relationships.
Based on the conditions specified in Cases I–III, the scales of gait event and gait cycle were determined with the associated CWT coefficients ( and as shown in Equations (4) and (5).
(4) |
(5) |
After de-trending both the above temporal signals ( and ), the gait cycle bounds could be defined as the maximum points of , which marked the beginning of each gait cycle. Within every gait cycle, the HS event was defined as the first local minima of and TO event was defined as the second local maxima of the further differentiated . An illustration of the temporal representation of HS and TO gait event detection based on the proposed general CWT algorithm is illustrated in Figure 4.
2.3. Verification of the CWT Based Gait Event Detection Algorithm
As a direct measure of pressure distribution under the foot during walking, the FSR method is commonly used as the gold standard for gait event detection in previous gait literatures [8]. Thus, the FSR method was utilized as the reference method to evaluate the performance of the proposed CWT based gait event detection method in our study. In the FSR method, the HS and TO events were detected by a set of threshold values. The threshold value for the detected HS event was calculated as 5% of the maximum heel FSR amplitude at the foot force increasing stage. Meanwhile, the threshold value for the detected TO event was calculated as 5% of the maximum toe FSR amplitude at the foot force decreasing stage. Detailed description is provided in previous literatures [26,37]. It should be noted that the heel and toe FSR signals of each subject were collected simultaneously with the walking acceleration signals through a pair of FSR sensors, which was described in the experimental procedure (see Section 2.1).
In this study, the time-error and F1-score were utilized as the metrics to assess the gait event detection performances, which were commonly adopted in the previous gait literatures [13,20,38]. It is worthy to note that the gait events detected with the FSR recordings were used as the reference events for each subject. And the gait events detected by using the proposed general CWT method based on the AP acceleration signals were designated as the estimated events. Time-error, a measure of the time agreement between the reference events and the estimated events, was utilized to assess the time accuracy among the correctly detected gait events when the proposed method was applied. The time-errors of the estimated HS and TO gait events, designated as and , respectively, were defined as the following Equations (6) and (7):
(6) |
(7) |
where and represent the time indexes of the estimated HS and TO gait events via the CWT-based algorithm, and and represent the time indexes of the reference HS and TO gait events via the FSR method, respectively.
In cases of possibly missed and wrongly detected gait events, the F1-score was adopted as a measure of the precision and recall of the gait event detection, which is calculated as follows:
(8) |
where denotes Precision and denotes Recall, which are computed as Equations (9) and (10), respectively:
(9) |
(10) |
where denotes the true positives, denotes false negatives, and denotes false positives. Note that in the context of this study, actually represented the number of correctly estimated gait events, denoted the number of unidentified/missed gait events, and represented the number of wrongly estimated gait events.
2.4. Appropriate Mother Wavelet Selection
Considering the fact that mother wavelet selection plays an important role in the overall performance of CWT based algorithms, there is a need for an effective means of determining the appropriate mother wavelet especially in the context of gait event detection for hemiplegic patients. In order to determine an appropriate mother wavelet, we systematically investigated the performance of 32 commonly applied mother wavelets in detecting gait events using the measures of both accuracy and quantitative criteria. The targeted mother wavelet functions included ten Daubechies (db1–db10), five Coiflets (coif1–coif5), seven Symlets (sym2–sym8), eight Gaussian (gaus1–gaus8), one Morlet (morl), and one Meyer (meyr). Table 3 briefly summarizes the definitions and main properties of the investigated wavelet families in this study.
Table 3.
Wavelet Family | Order N | Orthogonality | Symmetry | Explicit Expression |
---|---|---|---|---|
Haar | db 1 | Orthogonal | Symmetric | |
Daubechies | db 2–10 | Orthogonal | Asymmetric | No |
Coiflets | coif 1–5 | Orthogonal | Near symmetric | No |
Symlets | sym 2–8 | Orthogonal | Near symmetric | No |
Gaussian | gaus 1–8 | No | Symmetric | |
Morlet | morl | No | Symmetric | |
Meyer | meyr | No | Symmetric |
is the order of the mother wavelet. is the mother wavelet function if the wavelet has the explicit expression. is the wavelet central frequency, denotes the time, and denotes the frequency.
Generally, the basic properties of each mother wavelet, such as the orthogonality and symmetry, are considered in order to help select the appropriate mother wavelet in the first step. The orthogonality characteristics can ensure that the signal will not be decomposed into overlapping sub-frequency bands. Symmetry property can help avoid phase distortion, which is mainly concerned in the wavelet-based filtering operation because the mother wavelet can be served as a linear phase filter. As pointed out in [30], there is possibly more than one mother wavelet sharing similar fundamental properties. Thus, the selection of an appropriate mother wavelet cannot solely rely on the basic properties of the wavelets. Besides, the visual similarity generally applied in the optimal mother wavelet selection is also reported to be not always proper for all wavelet-based processing [30,31]. Additionally, the wavelet selection that is based on accuracy related to specific application is more recommended [30]. In this case, both accuracy (time-error, F1-score of the gait event detection) and quantitative (cross-correlation coefficient, energy-to-Shannon entropy ratio) criteria were investigated to search for an effective mother wavelet associated with HS and TO event detection for healthy and hemiplegic subjects. For the accuracy criteria, kindly note that the definition of time-error and F1-score can be referred in Section 2.3.
For the quantitative criteria, cross-correlation coefficient (Xcorr) and energy-to-Shannon entropy ratio (ESER) metrics were applied to evaluate the performances of the 32 mother wavelets in gait event detection in this study. Note that they were two commonly used quantitative wavelet selection criterion in various applications such as signal de-noising, signal processing/decoding, and vibration signal analysis [15,17,39]. In the cross-correlation measure, the cross-correlation coefficient () between the recorded acceleration signal () and a specific mother wavelet () was obtained and utilized to quantify the performance of the mother wavelet () in detecting the associated gait events [31,32]. It is noteworthy that the higher the absolute , the stronger the correlation will be and a value of 0 indicates that the two variables are linearly independent. The cross-correlation coefficient is computed using the formula in Equation (11).
(11) |
In the energy-to-Shannon entropy ratio () measure, the goal is to obtain a mother wavelet that provides the maximum energy, and at the same time minimum Shannon entropy associated with the wavelet coefficients [39]. Thus, the energy-to-Shannon entropy ratio is computed using the formula in Equation (12).
(12) |
where the energy associated with scale was computed using Equation (3) and the Shannon entropy was defined as the Equation (13).
(13) |
where is the energy probability distribution of each wavelet coefficient and is computed using the formula in Equation (14). represents the wavelet transform of the signal associated with the scale, which was defined in Equation (1). represents the energy density spectrum which is computed based on the above mentioned CWT coefficients and was defined in Equation (3). is the total number of wavelet coefficients. Specifically, if = 0, then = 1.
(14) |
In summary, the mother wavelet that provides the maximum F1-score, , and as well as the minimum time-error is generally considered to be the most appropriate mother wavelet for gait event detection.
2.5. Statistical Analysis
Statistical tests were conducted using a SPSS 21 software package to further validate the findings of the study. Specifically, the most appropriate mother wavelets among the healthy and hemiplegic subjects were determined by evaluating the total time-error, F1-score, , and of the HS and TO events between the proposed general CWT algorithm and the FSR method through one-way ANOVA. Afterwards, a post-hoc comparison was performed based on Duncan’s test, and the significance level was set to p < 0.05 for all the analysis.
3. Results
3.1. Appropriate Mother Wavelet Selection Based on Accuracy Criteria
The gait event detection results for the healthy and hemiplegic subjects using the two accuracy criteria, the time-error and F1-score measures for mother wavelet selection, are presented as follows. Figure 5 presents the averaged time-errors associated with HS and TO estimated gait events for the healthy and hemiplegic subjects across the 32 mother wavelets. Notably, the lower the time-error value is, the higher the time-agreement with the FSR reference is. It can be seen from Figure 5a that the “sym2”, “db7”, and “db6” mother wavelets achieved a relatively lower averaged time-error value of 0.06 ± 0.03 s, 0.09 ± 0.07 s, and 0.10 ± 0.03 s, respectively, for the total of the estimated HS and TO gait events over all the healthy subjects in comparison to the other mother wavelets. Meanwhile, “db6”, “sym5”, and “db5” achieved a lower averaged time-error value of 0.18 ± 0.05 s, 0.21 ± 0.07 s, and 0.26 ± 0.07 s for gait event detection over all the hemiplegic participants, respectively, as shown in Figure 5b. Note that using the “db6” mother wavelet, the averaged time-error values were lowest over the hemiplegic participants (Figure 5b) and were relatively lower over the healthy subjects (Figure 5a). These findings suggest that the “db6” is an appropriate mother wavelet in gait event detection for both healthy and hemiplegic subjects.
As a comparison, Figure 6 plots the Bland–Altman time agreements between the reference gait events and the estimated gait events, where the sample points were obtained from the time-error values of the healthy (Figure 6a) and hemiplegic subjects (Figure 6b) when using the appropriate mother wavelet “db6” and one previously used wavelet “gaus1” in another study [15], respectively. Note that the absolute value of time-errors is presented in Figure 5, whereas the true value of the time agreement is plotted in Figure 6. Here a negative time-error value corresponds to a time-delay in the estimated gait events with respect to the FSR reference gait events, and a positive value means a time-advance. We can see from Figure 6 that for the healthy subjects, the mother wavelet “db6” had a mean time-error of −0.06 s with a 95% confidence interval (CI) of [−0.12, −0.01] for HS gait event detection and −0.02 s [−0.19, 0.14] for TO gait event detection. While using the mother wavelet “gaus1”, the mean time-error of 0.16 s [−0.23, 0.55] was achieved for HS gait event detection and 0.12 s [−0.20, 0.44] for TO gait event detection. For the hemiplegic subjects, the “db6” mother wavelet achieved a mean time-error of −0.04 s [−0.11, 0.02] for HS gait event detection and 0.18 s [−0.01, 0.37] for TO gait event detection, whereas the “gaus1” mother wavelet achieved a mean time-error of −0.08 s [−1.30, 1.20] for HS gait event detection and −0.21 s [−1.40, 0.95] for TO gait event detection. Thus, the performances of “db6” were rather good in comparison to “gaus1” for both the healthy and the hemiplegic subjects.
Figure 7 shows the averaged HS and TO gait event detection results obtained by using the F1-score criterion across all the 32 mother wavelets. The vertical dotted line indicates the standard deviation. It can be observed from Figure 7 that four of all the mother wavelets, “sym5”, “db5”, “db6”, and “sym7” achieved relatively higher average F1-scores (1.00 ± 0.01, 0.99 ± 0.02, 0.99 ± 0.02, and 0.99 ± 0.02 across the healthy subjects (blue line), respectively). For the hemiplegic patients (red line), “db5”, “db6”, and “morl” mother wavelets achieved higher averaged F1-scores (0.98 ± 0.02, 0.98 ± 0.03, and 0.98 ± 0.02, respectively). Note that “db5” and “db6” mother wavelets are more stable with relatively high F1-scores for both the healthy and hemiplegic subjects, indicating that the two mother wavelets would be the appropriate mother wavelets for the accurate detection of gait events in comparison to the other mother wavelets regardless of the status of the subject.
Furthermore, when using the different mother wavelets, the ANOVA analysis of the time-errors (Figure 5) between the FSR reference events and the estimated gait events was significantly different (p < 0.001) for both healthy and hemiplegic subjects. This statistical result suggests that the time-error should be a proper criterion for selection of an appropriate mother wavelet in gait event detection for all the subjects. Meanwhile, the ANOVA analysis of the F1-scores (Figure 7) was significantly different for the hemiplegic subjects (p < 0.01) and was not significantly different for the healthy subjects (p > 0.05). This suggested that the F1-score could also be used as a criterion for the selection of an appropriate mother wavelet in gait event detection for hemiplegic subjects, but probably not for healthy subjects.
3.2. Appropriate Mother Wavelet Selection Based on Quantitative Criteria
Additionally, the detection of gait events was also performed using two quantitative criteria, the cross-correlation coefficient and the energy-to-Shannon entropy ratio measures, to obtain an appropriate mother wavelet. The analysis results of the mother wavelets based on the cross-correlation coefficient criterion for gait event detection are presented in Figure 8. It can be seen from Figure 8a that amongst the Daubechies family, “db2” and “sym2” achieved the highest average correlation coefficient of 0.34 between the acceleration and the underlying mother wavelet followed by “gaus1” in the Gaussian family with an average value of 0.33. In other words, the “db2”, “sym2”, and “gaus1” mother wavelets have high similarity with the anterior-posterior acceleration signals from which the participants’ gaits were detected. Meanwhile, we found that “db3”, “sym3”, and “gaus3” achieved the best correlation coefficients between the acceleration and the underlying mother wavelet function in their respective categories for the hemiplegic patients (Figure 8b).
The analysis results of mother wavelet characteristics based on the energy-to-Shannon entropy ratio criterion for gait event detection are presented in Figure 9. It can be observed that the average energy-to-Shannon entropy ratios for most of the investigated mother wavelets lies in the range of −0.15 to −0.13 with the “morl” mother wavelet achieving the highest ratio for healthy subjects (blue line). On the other hand, except for the “morl” mother wavelet that also provided the highest average energy-to-Shannon entropy ratio across the hemiplegic subjects (red line), the other mother wavelets had the average energy-to-Shannon entropy ratios that were in the range of −0.16 to −0.14. Although the “morl” mother wavelet function achieved a relatively higher mean energy-to-Shannon entropy ratio, however there was no significant difference between the “morl” and the other investigated mother wavelet functions based on ANOVA statistical analysis (p > 0.05).
4. Discussion
Although several CWT-based algorithms have been proposed for gait event detection, the validation of such algorithms especially on hemiplegic patients and the investigation into an appropriate mother wavelet selection has rarely been conducted to date. Thus, there is a need to embark on the current study. This study systematically investigated different wavelet selection criteria across the 32 commonly applied mother wavelets towards obtaining the appropriate mother wavelet required for consistently accurate gait event detection especially for hemiplegic patients. The mother wavelets were individually incorporated into a proposed general CWT algorithm for the recognition of HS and TO gait events, and the algorithm was validated with datasets from hemiplegic patients as well as healthy subjects.
It should be noted that the proposed general CWT algorithm showed a good performance for HS and TO gait event detection in terms of consistently achieving high accuracy and low time-error particularly when the appropriate mother wavelet was applied to both healthy and hemiplegic subjects. The gait event detection results for the healthy subjects were observed to be comparatively stable and consistent with that reported in previous studies which utilized only a specific single mother wavelet [13,22,26]. Interestingly, we also found that the validation results of the estimated gait events for the hemiplegic subjects were observed to be consistent with the results obtained for healthy subjects. One possible reason is due to the use of time-frequency analysis and the domain knowledge about gait events and gait cycles. Since functional gait after stroke is usually affected by spasticity, muscle weakness, and balance disorder [40], hemiplegic gait is often characterized by reduced speed, cadence, stride length and joint angular excursions, and asymmetry in temporal and spatial domains [41]. In addition, limb circumduction is clearly observed on the hemiplegic subjects during walking due to the increased lateral displacement of the foot during the swing in the paretic limb [41], and these factors may increase the complexity of recognizing the gait patterns of hemiplegic patients. However, with the proposed CWT algorithm that incorporates time-frequency information, the gait events of both hemiplegic and healthy subjects can be adequately identified as shown in Figure 3. Therefore, the CWT based algorithm that integrates the optimal wavelet function shows its robustness in HS and TO event detection, which indicates its superiority with no need to readjust the thresholds in comparison with some purely data-driven approaches that are often dependent on threshold and parameter tuning. Hence, this again proves the potential of applying an appropriate mother wavelet to the proposed general CWT algorithm for gait event detection in real-life applications.
When considering the selection of the appropriate mother wavelet, the criteria based on some accuracy and quantitative measures were investigated. For the accuracy-based criteria, time-error and F1-score measures were applied to evaluate the performance of a range of mother wavelets employed by the proposed CWT algorithm to detect the HS and TO gait events. From the analysis results, we found that the “db6” mother wavelet achieved relatively higher F1-scores and yielded the lowest average time-error values for both healthy and hemiplegic subjects. The possible reason is that the “db6” mother wavelet provide the most precise scale for CWT based gait event detection in comparison to the other 31 analyzed mother wavelets. With respect to the quantitative-based criteria, the cross-correlation coefficient (Xcorr) and energy-to-Shannon entropy ratio (ESER) were investigated to check whether the above two metrics could be considered as effective wavelet selection criteria for the appropriate mother wavelet in detecting gait events. Since the CWT are essentially based on finding the correlation between the analyzed signal (the acceleration signal) and the shifted/scaled mother wavelet, it is obvious that an initial criterion for appropriate wavelet selection could be the cross-correlation (Xcorr) that reflects the similarity. However, we found that the results of cross-correlation (Xcorr) analysis were not consistent with the actual performances of HS and TO gait event detection in both healthy subjects and hemiplegic patients. This may be due to the fact that cross-correlation (Xcorr) is only appropriate for those wavelet-based processing methods based on the resemblance between signals and mother functions [31], but not for our models which extract and distinguish the feature points based on the frequency relationship of the signal itself. After investigating the correlation between the wavelet and the analyzed signal (Xcorr), we also wanted to check if there were significant differences that exist in the wavelet coefficients themselves by using different mother wavelets for CWT. Which is to say, the energy concentration and entropy that reflects information lost were integrated to check whether the energy-to-Shannon entropy ratio (ESER) could be considered as one of the effective wavelet selection criteria. As pointed out in the previous study [42], maximization of time/frequency energy concentration, minimization of the bias, and the unique relationship that exists between scale and frequency contribute to desirable continuous analytic wavelets. However, we also found that the results of the ESER analysis across different mother wavelets had no significant difference, which might not be appropriate for the wavelet selection in our study. In other words, the results of the ESER analysis revealed that the energy concentration and entropy distribution were almost the same across different mother wavelets in the aspect of gait event detection. Therefore, the accuracy-based criteria including time-error and F1-score is suggested as effective wavelet selection criteria in the context of gait event analysis.
Despite the interesting findings observed in this study, there are still some limitations that should be addressed in the future work. For instance, the proposed general CWT algorithm was validated using the dataset from post-stroke hemiplegic patients who were said to be in stages V and IV according to the Brunnstrom assessment scale, excluding patients with severe stroke (perhaps in stages II and III on the Brunnstrom assessment scale). Therefore, there is need to conduct further studies with this population since they have the most drop foot issues, and their gait patterns maybe somewhat different from those in stages V and IV considered in the current study. Besides that, different sensor placement configuration as well as different walking terrains would normally influence gait patterns in real-life applications. In the future, we would further investigate the performances of different mother wavelets in the presence of both factors, and perhaps make adjustment, if necessary, to the mother wavelet selection criteria examined in this study.
5. Conclusions
While CWT based gait analysis methods have been widely adopted in previous studies, their performances in gait event detection when using different mother wavelets have rarely been studied, especially in hemiplegic patients. In this study, different mother wavelets and wavelet selection criteria were systematically investigated by using acceleration signals recorded from both hemiplegic and healthy subjects. The experimental results demonstrated that an overall significant difference in performance of the CWT algorithm was observed when using different mother wavelet functions for detecting HS and TO gait events, which suggested the need for this study. Additionally, we found that the accuracy criteria based on time-error minimization and F1-score maximization led to the realization of an appropriate mother wavelet named as “db6” which achieved the highest detection accuracy with lowest detection time-error for both hemiplegic and healthy subjects. The outcomes of this study may provide an insight on mother wavelet selection criteria for gait event analysis especially in hemiplegic patients, and may ultimately facilitate the practical development of rehabilitation devices or strategies for them.
Acknowledgments
The authors would thank the staffs at the CAS Key Lab of Human-Machine Intelligence-Synergy Systems of Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences (CAS), and Guangzhou Panyu Central Hospital for their support in data acquisition.
Author Contributions
Conceptualization, H.Z., N.J., Z.H., and G.L.; investigation, N.J., H.Z., K.G., L.X., and G.L.; methodology, N.J. and H.Z.; software, N.J.; validation, N.J.; patients’ recruitment, K.G. and Z.H.; data collection, N.J., K.G, and Z.H.; data analysis, N.J., H.Z., O.W.S., and Z.H.; data interpretation, K.G. and G.L.; writing—original draft preparation, N.J.; writing—review and editing, G.L., L.X., N.J., and O.W.S.; supervision, G.L. and L.X.; funding acquisition, G.L. and Z.H.
Funding
The work was supported in part by the National Natural Science Foundation of China under Grant (#U1613222, #61773110), Shenzhen Science and Technology Plan Project (#JCYJ20160331174854880, #JCYJ20160331185848286), Science and Technology Program of Guangzhou (#201803010093), and Fundamental Research Funds for the Central Universities Grant (#N181906001).
Conflicts of Interest
The authors declare no conflict of interest.
References
- 1.Cui C., Bian G.B., Hou Z.G., Zhao J., Su G., Zhou H., Peng L., Wang W. Simultaneous Recognition and Assessment of Post-Stroke Hemiparetic Gait by Fusing Kinematic, Kinetic, and Electrophysiological Data. IEEE Trans. Neural Syst. Rehabil. Eng. 2018;24:856–864. doi: 10.1109/TNSRE.2018.2811415. [DOI] [PubMed] [Google Scholar]
- 2.Lyons G.M., Sinkjaer T., Burridge J.H., Wilcox D.J. A review of portable FES-based neural orthoses for the correction of drop foot. IEEE Trans. Neural Syst. Rehabil. Eng. 2002;10:260–279. doi: 10.1109/TNSRE.2002.806832. [DOI] [PubMed] [Google Scholar]
- 3.Kotiadis D., Hermens H.J., Veltink P.H. Inertial Gait Phase Detection for control of a drop foot stimulator Inertial sensing for gait phase detection. Med. Eng. Phys. 2010;32:287–297. doi: 10.1016/j.medengphy.2009.10.014. [DOI] [PubMed] [Google Scholar]
- 4.Rueterbories J., Spaich E.G., Andersen O.K. Gait event detection for use in FES rehabilitation by radial and tangential foot accelerations. Med. Eng. Phys. 2014;36:502–508. doi: 10.1016/j.medengphy.2013.10.004. [DOI] [PubMed] [Google Scholar]
- 5.Skelly M.M., Chizeck H.J. Real-time gait event detection for paraplegic FES walking. IEEE Trans. Neural Syst. Rehabil. Eng. 2002;9:59–68. doi: 10.1109/7333.918277. [DOI] [PubMed] [Google Scholar]
- 6.Damasevicius R., Vasiljevas M., Salkevicius J., Wozniak M. Human Activity Recognition in AAL Environments Using Random Projections. Comput. Math. Methods Med. 2016:4073584. doi: 10.1155/2016/4073584. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Mannini A., Sabatini A.M. Machine Learning Methods for Classifying Human Physical Activity from on-Body Accelerometers. Sensors. 2010;10:1154–1175. doi: 10.3390/s100201154. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Lopezmeyer P., Fulk G.D., Sazonov E.S. Automatic Detection of Temporal Gait Parameters in Poststroke Individuals. IEEE Trans. Inf. Technol. Biomed. 2011;15:594–601. doi: 10.1109/TITB.2011.2112773. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Sant’Anna A., Wickström N. A symbol-based approach to gait analysis from acceleration signals: Identification and detection of gait events and a new measure of gait symmetry. IEEE Trans. Inf. Technol. Biomed. 2010;14:1180–1187. doi: 10.1109/TITB.2010.2047402. [DOI] [PubMed] [Google Scholar]
- 10.Bejarano N.C., Ambrosini E., Pedrocchi A., Ferrigno G., Monticone M., Ferrante S. A Novel Adaptive, Real-Time Algorithm to Detect Gait Events from Wearable Sensors. IEEE Trans. Neural Syst. Rehabil. Eng. 2015;23:413–422. doi: 10.1109/TNSRE.2014.2337914. [DOI] [PubMed] [Google Scholar]
- 11.Encarna M.A.M., Idsart K., Erik A., Stefan W., Martijn N., Van L.R.C., Van D.J.H. A novel accelerometry-based algorithm for the detection of step durations over short episodes of gait in healthy elderly. J. Neuroeng. Rehabil. 2016;13:38. doi: 10.1186/s12984-016-0145-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Williamson R., Andrews B.J. Gait event detection for FES using accelerometers and supervised machine learning. IEEE Trans. Rehabil. Eng. 2000;8:312–319. doi: 10.1109/86.867873. [DOI] [PubMed] [Google Scholar]
- 13.Khandelwal S., Wickstrom N. Gait Event Detection in Real-World Environment for Long-Term Applications: Incorporating Domain Knowledge into Time-Frequency Analysis. IEEE Trans. Neural Syst. Rehabil. Eng. 2016;24:1363–1372. doi: 10.1109/TNSRE.2016.2536278. [DOI] [PubMed] [Google Scholar]
- 14.Lai D.T., Begg R.K., Palaniswami M. Computational intelligence in gait research: A perspective on current applications and future challenges. IEEE Trans. Inf. Technol. Biomed. 2009;13:687–702. doi: 10.1109/TITB.2009.2022913. [DOI] [PubMed] [Google Scholar]
- 15.Singh B.N., Tiwari A.K. Optimal selection of wavelet basis function applied to ECG signal denoising. Digit. Signal Process. 2006;16:275–287. doi: 10.1016/j.dsp.2005.12.003. [DOI] [Google Scholar]
- 16.Shadevsky A., Petrovsky A. Bio-inspired voice activity detector based on the human speech properties in the modulation domain. In: Saeed K., Pejas J., editors. Information Processing and Security Systems. Springer Science Business Media, Inc.; New York, NY, USA: 2005. pp. 43–54. [Google Scholar]
- 17.Al-Qazzaz N.K., Ali S.H.B.M., Ahmad S.A., Islam M.S., Escudero J. Selection of Mother Wavelet Functions for Multi-Channel EEG Signal Analysis during a Working Memory Task. Sensors. 2015;15:29015–29035. doi: 10.3390/s151129015. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Salyers J.B., Dong Y., Gai Y. Continuous Wavelet Transform for Decoding Finger Movements from Single-Channel EEG. IEEE Trans. Biomed. Eng. 2018 doi: 10.1109/TBME.2018.2876068. [DOI] [PubMed] [Google Scholar]
- 19.Beritelli F., Capizzi G., Sciuto G.L., Napoli C., Wozniak M. A novel training method to preserve generalization of RBPNN classifiers applied to ECG signals diagnosis. Neural Netw. 2018;108:331–338. doi: 10.1016/j.neunet.2018.08.023. [DOI] [PubMed] [Google Scholar]
- 20.Mccamley J., Donati M., Grimpampi E., Mazzà C. An enhanced estimate of initial contact and final contact instants of time using lower trunk inertial sensor data. Gait Posture. 2012;36:316–318. doi: 10.1016/j.gaitpost.2012.02.019. [DOI] [PubMed] [Google Scholar]
- 21.Khandelwal S., Wickström N. Novel methodology for estimating Initial Contact events from accelerometers positioned at different body locations. Gait Posture. 2018;59:278–285. doi: 10.1016/j.gaitpost.2017.07.030. [DOI] [PubMed] [Google Scholar]
- 22.Pham M.H., Elshehabi M., Haertner L., Del D.S., Srulijes K., Heger T., Synofzik M., Hobert M.A., Faber G.S., Hansen C. Validation of a Step Detection Algorithm during Straight Walking and Turning in Patients with Parkinson’s Disease and Older Adults Using an Inertial Measurement Unit at the Lower Back. Front. Neurol. 2017;8:457. doi: 10.3389/fneur.2017.00457. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Glowinski S., Blazejewski A., Krzyzynski T. Human Gait Feature Detection Using Inertial Sensors Wavelets. Wearable Robot. Chall. Trends. 2017;16:397–401. doi: 10.1007/978-3-319-46532-6_65. [DOI] [Google Scholar]
- 24.Aung M.S., Thies S.B., Kenney L.P., Howard D., Selles R.W., Findlow A.H., Goulermas J.Y. Automated detection of instantaneous gait events using time frequency analysis and manifold embedding. IEEE Trans. Neural Syst. Rehabil. Eng. 2013;21:908–916. doi: 10.1109/TNSRE.2013.2239313. [DOI] [PubMed] [Google Scholar]
- 25.Forsman P.M., Toppila E.M., Haeggstrom E.O. Wavelet analysis to detect gait events; Proceedings of the 31st Annual International Conference of the IEEE Engineering in Medicine and Biology Society: Engineering the Future of Biomedicine (EMBC); Minneapolis, MN, USA. 2–6 September 2009; pp. 424–427. [DOI] [PubMed] [Google Scholar]
- 26.Zhou H., Ji N., Samuel O.W., Cao Y., Zhao Z., Chen S., Li G. Towards Real-Time Detection of Gait Events on Different Terrains Using Time-Frequency Analysis and Peak Heuristics Algorithm. Sensors. 2016;16:1634. doi: 10.3390/s16101634. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Saba R., Lockhart T.E. Towards Real-Time Detection of Freezing of Gait Using Wavelet Transform on Wireless Accelerometer Data. Sensors. 2016;16:475. doi: 10.3390/s16040475. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Khandelwal S., Wickström N. Evaluation of the performance of accelerometer-based gait event detection algorithms in different real-world scenarios using the MAREA gait database. Gait Posture. 2016;51:84–90. doi: 10.1016/j.gaitpost.2016.09.023. [DOI] [PubMed] [Google Scholar]
- 29.Chau T. A review of analytical techniques for gait data. Part 2: Neural network and wavelet methods. Gait Posture. 2001;13:102–120. doi: 10.1016/S0966-6362(00)00095-3. [DOI] [PubMed] [Google Scholar]
- 30.Ngui W.K., Leong M.S., Hee L.M., Abdelrhman A.M. Wavelet Analysis: Mother Wavelet Selection Methods. Appl. Mech. Mater. 2013;393:953–958. doi: 10.4028/www.scientific.net/AMM.393.953. [DOI] [Google Scholar]
- 31.Rafiee J., Rafiee M.A., Prause N., Schoen M.P. Wavelet basis functions in biomedical signal processing. Expert Syst. Appl. 2011;38:6190–6201. doi: 10.1016/j.eswa.2010.11.050. [DOI] [Google Scholar]
- 32.Mojsilović A., Popović M.V., Rackov D.M. On the selection of an optimal wavelet basis for texture characterization. IEEE Trans. Image Process. 2000;9:2043–2050. doi: 10.1109/83.887972. [DOI] [PubMed] [Google Scholar]
- 33.Soubra R., Diab M.O., Moslem B. A mother wavelet selection study for vertical ground reaction force signals; Proceedings of the 2nd International Conference on Bio-Engineering for Smart Technologies; Paris, France. 30 August–1 September 2017; pp. 1–5. [Google Scholar]
- 34.Cho K.H., Lee J.Y., Lee K.J., Kang E.K. Factors Related to Gait Function in Post-stroke Patients. J. Phys. Ther. Sci. 2014;26:1941–1944. doi: 10.1589/jpts.26.1941. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Orellana J.N., Sixto A.S., Torres B., Cachadina E.S., Martin P.F., Rosa F.J. Multiscale time irreversibility: Is it useful in the analysis of human gait? Biomed. Signal Process. Control. 2018;39:431–434. doi: 10.1016/j.bspc.2017.08.017. [DOI] [Google Scholar]
- 36.González R.C., López A.M., Rodriguez-Uría J., Alvarez D., Alvarez J.C. Real-time gait event detection for normal subjects from lower trunk accelerations. Gait Posture. 2010;31:322–325. doi: 10.1016/j.gaitpost.2009.11.014. [DOI] [PubMed] [Google Scholar]
- 37.Catalfamo P., Moser D., Ghoussayni S., Ewins D. Detection of gait events using an F-Scan in-shoe pressure measurement system. Gait Posture. 2008;28:420–426. doi: 10.1016/j.gaitpost.2008.01.019. [DOI] [PubMed] [Google Scholar]
- 38.Sprager S., Juric M.B. Robust Stride Segmentation of Inertial Signals Based on Local Cyclicity Estimation. Sensors. 2018;18:1091. doi: 10.3390/s18041091. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39.Yan R. Ph.D. Thesis. University of Massachusetts Amherst; Amherst, MA, USA: May, 2007. Base Wavelet Selection Criteria for Non-Stationary Vibration Analysis in Bearing Health Diagnosis. [Google Scholar]
- 40.Sota K., Uchiyama Y., Ochi M., Matsumoto S., Hachisuka K., Domen K. Examination of factors related to the effect of improving gait speed with functional electrical stimulation intervention for patients with stroke. PM&R. 2018;10:798–805. doi: 10.1016/j.pmrj.2018.02.012. [DOI] [PubMed] [Google Scholar]
- 41.Chen G., Patten C., Kothari D.H., Zajac F.E. Gait differences between individuals with post-stroke hemiparesis and non-disabled controls at matched speeds. Gait Posture. 2005;22:51–56. doi: 10.1016/j.gaitpost.2004.06.009. [DOI] [PubMed] [Google Scholar]
- 42.Lilly J.M., Olhede S.C. Higher-Order Properties of Analytic Wavelets. IEEE Trans. Signal Process. 2009;57:146–160. doi: 10.1109/TSP.2008.2007607. [DOI] [Google Scholar]