Abstract
Gait analysis is widely used for human disability level assessment, physiotherapeutic and medical treatment efficiency analysis. Wearable motion sensors are most widely used gait observation devices today. Automated detection of gait abnormalities, namely incorrect step patterns, would simplify the long term gait assessment and enable usage of corrective measures as passive and active physiotherapeutic assistive devices. Automatic detection of gait abnormalities with wearable devices is a complex task. Support Vector Machines (SVM) driven machine learning methods are quite widely used for motion signals classification. However, it is unknown how well actual implementations work for specific gait deviations of partially disabled people. In this work we evaluate how well SVM method works for detecting specific incorrect step patterns characteristics for the most frequent neuromuscular impairments. F1 score from 66% to 100% were achieved, depending on the gait type. Gait pattern deviations were simulated by the healthy volunteers. Angular speed motion data as an input to SVM was collected with a single Shimmer S3 wearable sensor.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
According to World Health Organisation (WHO) report about one billion persons are affected by neurological disorders worldwide [2]. Neurological diseases ranging from migraine to stroke and Alzheimer are the leading cause of Disability Adjusted Life Years (DALY) loss [8]. For example, there is a high risk of falling down for patients with gait impairments from neurological disease [20, 24]. Therefore it is important to assess neurological disease patient gait deviations and, if possible, correct step patterns using certain assistive devices. It is shown that even simple mechanical devices like ankle-foot orthoses certainly can reduce the risk of falling [27]. However, it is shown that Functional Electrical Stimulation (FES) devices that activate in proper moments corresponding muscles, are more effective for fall prevention [14] and generic gate improvements [16]. Essentially, long term gate deviation analysis and efficient run-time control of FES devices requires automated recognition of “incorrect” steps or other gate deviations. According to our previous research [22] we have concluded that Support Vector Machines (SVM) based methods are most widely used ones for automated gait analysis, followed by Convolutional Neural Networks (CNN). The benefits of SVM include capability to operate with relatively small data sets and high computational efficiency [10, 11]. For human activity recognition has been reported by Almaslukh et al. [1] quite impressive accuracy, close to 97%. There are several other results indicating 90% accuracy, listed in [22]. However, there is a very limited research conducted of analysing how well machine learning methods, particularly SVM, performs in detecting realistic gait deviations, caused by actual neural diseases. Current work focuses on describing test results collected by us in this domain, that are still relying on simulated gait deviations.
Gait of each person is virtually unique. It can be described by a set of parameters such as: step length, length of individual step phases, muscle force and etc. [18]. Especially high variability and deviations from the “normal” gait pattern can be seen in persons gait, who are suffering from neuromuscular diseases [15]. Therefore it is extremely difficult to analyze patients’ gate patterns. Certain diseases cause jumpy gait changes - like freezing episodes of Parkinson Disease (PD) [4], other diseases, like Multiple Sclerosis (MS) may contain long duration relapse episodes with individual impact and have slow progression [23]. From the perspectives of physiotherapists, each person has own “normal” (or target) gate that has to be used as a reference in gate assessment procedure.
Various stationary (3D camera systems), portable (pressure mats) and wearable (motion sensors) instrumental solutions are used for gait analysis. However, wearable motion sensors, containing multidimensional Inertial Motion Units (IMUs), are the most widely used gait assessment devices in the recent years [25]. IMUs are also used for gait assessment of neurological disease patients [12, 19, 21].
Main goal of this research work is to detect abnormality in the gait, caused by some kind of disease, as fast as possible, to prevent person from falling. Current paper proposes analysis of gait using SVM, to classify the normal and abnormal steps. Even if such a full step classification does not solve the main goal, abnormality estimation in the real-time, it will be used as pre-processing stage to produce reference set of good steps for the real-time abnormality detection algorithm. Therefore the current paper proposes time series based “good” and “bad” steps SVM classifier implementation, which is built on the tslearn Python library [26] and applied to the time-series gyroscope gait data, which is different from feature based SVM classification, used in other works. Thus, it is possible to compare achieved results to the feature based approach, found in other works.
This paper consist of 5 sections: after the introductory state-of-art overview in Sect. 2 the motion data collection methodology is described; in Sect. 3 proposed application of the SVM based algorithm implementation, applied to the time-series gait data, is presented; the results are presented in the Subsect. 4 and discussion and conclusion are in the Sect. 5.
2 Gait Data Collection
The fundamental part of each instrumented gait analysis is collection of human walking patterns, which provide relevant information about the gait changes of the subjects. The human gate contains of seven phases [3] (Fig. 1). The ultimate long term goal is to detect deviations of each phase separately for fastest gate corrections. However, current study focuses on classification of whole steps only.
During the current study, Shimmer S3 (Dublin, Ireland) wearable sensors were used for lower limb motion data capture. Sensors were configured to work 256 Hz sampling rate, measurement data was recorded on device’s memory, later modulus was calculated from three-dimensional 16-bit gyroscope signal to reduce the amount of data feed to machine learning algorithm. Two different sensor placements were initially tested (Fig. 2): right below of the knee that is the location of foot drop FES devices directly stimulating the most important lower limb muscles, namely tibialis anterior and fibularis longus, and on forefoot, which is the most widely used placement of inertial sensors for gate cycle monitoring [9]. According to initial visual analysis of recorded signals, forefoot data was selected for the further analysis.
During the data collection, correct (“good”) and incorrect (“bad”) steps were mixed according to following procedure:
-
1.
\(Normal\ gait + one\ abnormal\ step\)
-
2.
\(Normal\ gait + one\ abnormal\ step + normal\ gait\)
-
3.
\(Normal\ gait + N \cdot abnormal\ step + normal\ gait + N \cdot abnormal\ step\), where \(N=0,1,2,3,4\ldots \)
To add more variability to the test data, recording was performed on two types of surfaces: hard and soft (sand) surface. Each recording contains deviations of one specific disability type that is described below. Recordings were annotated using a semiautomatic tool: all correct and incorrect steps were labeled in the data file.
2.1 Data Collection of Simulated Gait Abnormalities
The ultimate goal of present study is to evaluate how well an actual SVM implementation can detect gait deviation caused by neurological impairments. Abnormalities were simulated by 2 healthy persons of different gender, both 23 years old. Simulations were replicating actual patients’ videos and instructions of a professional physiotherapist. The chosen, most frequent, gait abnormalities were following:
-
Steppage gait - seen in patients gait with foot drop (weakness of foot dorsiflexion). This is caused due to an attempt to lift the leg high enough during walking, so that the foot does not drag on the floor [3]. This disability is most widely targeted with foot drop assistive devices.
-
Hemiplegic gait - includes impaired natural swing at the hip and knee with leg circumduction. The pelvis is often tilted upward on the involved side to permit adequate circumduction.
-
Diplegic gait - a specific subcategory of the wide spectrum of motion disorders gathered under the name of cerebral palsy.
-
Ataxic gait - commonly defined as a lack of coordination in body movements or a loss of balance, which is not due to muscle weakness.
-
Parkinsonian gait - is a feature of Parkinson’s disease in later stages. It’s often considered to negatively impact the quality of life more than other Parkinson’s symptoms. Parkinsonian gait is usually small, shuffling steps.
-
Hyperkinetic gait - is seen with certain basal ganglia disorders, including Sydenham’s chorea, Huntington’s Disease, and other forms of chorea, athetosis, or dystonia. The patient will display irregular, jerky, involuntary movements in all extremities. Walking may accentuate their baseline movement disorder [3].
Comparative analysis of applying SVM algorithm to data is in the next section.
3 SVM Performance Assessment
Considering that the SVM is well known in classification applications and, particularly, in gait analysis [1, 5, 13, 17, 28], this method, however, can not be used directly with time series (output of IMU motion sensor), where the input vectors can be of different lengths (feature dimensions). Therefore, time series oriented implementation (tslearn [26]) of the SVM classifier (call it as tsSVM) was selected for the current research work and applied to the human gait steps ensemble extracted from the time series data to classify correct and anomaly (incorrect) steps.
TsSVM implementation uses Global Alignment Kernel (GAK) [6], which allows to apply the SVM classifier to time-series data with different duration of samples.
The GAK is related to the soft-Dynamic Time Warping (soft-DTW) [7] through Eq. (1), which is used to align time series samples in time. In kernel equation, \({\mathbf{x}=(\mathbf{x}_\mathbf{0},\dots ,\mathbf{x}_\mathbf{n-1})}\) and \({\mathbf{y}=(\mathbf{y}_\mathbf{0},\dots ,\mathbf{y}_\mathbf{m-1})}\) are two time series of respective lengths \(\mathbf{n}\) and \(\mathbf{m}\). Hyper-parameter \(\gamma \) is related to the bandwidth parameter \(\sigma \) of GAK through \(\gamma =2\sigma ^2\).
In Eq. (2) soft-DTW could be observed with hyper-parameter \(\gamma \), that controls smoothing of the resulting metric (squared DTW corresponds to the limit case \(\gamma \rightarrow 0\)), where \({(\mathbf{a}_\mathbf{1},\dots ,\mathbf{a}_\mathbf{n})}\) is time series.
The GAK’s smoothing hyper-parameter \(\gamma \) was experimentally chosen depending on the data set to get the best actual performance. Usually it was between 20 and 150. Tslearn toolbox was used to convert one-dimensional magnitude, calculated from gyroscope data from data set into time series with same length. Then data set was divided into training and test sets with proportion of 70% to 30% respectively. After that, training was performed and the following results were achieved.
First some preprocessing was required to be able to use the algorithm. Data was divided into individual steps, using timestamps in labels. After that they were combined into required form and normalized in duration by adding Nan’s to the shorter steps. Then proper hyperparameter \(\gamma \) was chosen by iteration over potential numbers.
4 Results
In proposed approach 3D gyroscope angular velocity data was used as the initial input, which then was transformed into the magnitude time series format. Assuming that gyroscope axes are called gX, gY and gZ, the magnitude is calculated as in Eq. 3, where \(t_i\) is given moment of time, and normalized by Min-max feature scaling 4 for every time series instance:
Calculated gyroscope magnitude time series (Eq. 3) is used as an input for the tsSVM algorithm.
To understand the results lets observe support vectors on Fig. 3 for two classes, they represent common step forms, corresponding to a particular class. For each class support vectors looks similar, only for class 2 excess vectors could be observed, what affects results. Ataxic gait test data set had 14 samples: 6 abnormal steps (positive) and 8 normal steps (negative). After training the SVM on 32 samples, two false positives were detected using test data set (Table 1).
This could have happened due to residual “abnormality” in normal steps following abnormal steps. On the Fig. 8c noisier step could be seen than the step on the Fig. 8a. Similar situation could be observed for steppage gait test 1, where there is to much deviation for normal steps (Fig. 5a and Fig. 5c), what could be considered as data collection error. This leads to misclassification of abnormal steps which result in 0% f1 score (Fig. 4). On the other hand, if normal steps are consistent, as for steppage gait test 2 (Fig. 7), classification of abnormal steps is preformed correctly and f1 score of 100% is achieved (Fig. 6).
Lets have closer look at step shapes. For example on Fig. 8a first peak represents a moment, when toe is starting to move in the end of stance phase (40%–60% of phase on Fig. 1), then it is start of a swing phase, till the second peak (60%–100%), which represents toe movement, to prepare for initial contact and third peak is, when toe lands on the ground flat (0%–20%), after that it is a stance phase between the toe movement (20%–40%). For abnormal step (Fig. 8b) clear separation between peaks is lost. According to description of ataxic gait type, clear swing phase is lost, what could be observed.
As it was mentioned above, on Fig. 8 and Fig. 10 peaks for normal and abnormal gait steps are located differently and have different amplitudes. F1 score for ataxic gait was 80% (Fig. 3) and for diplegic gait it was 100%, (Fig. 9) that shows SVM capability of classifying steps. Good results could be observed also for parkinsonian and hyperkinetic gaits, 93% and 80% respectively, because normal and abnormal steps have very different magnitude and shape. For diplegic gait abnormal step (Fig. 10b) it could be seen, that third peak is unclear, that shows that there is no full contact of toe with ground on that gait type (Figs. 4, 6 and 9).
Also for diplegic gait type it could be observed, that normal steps have more common features and abnormal steps have different number of peaks and magnitude. That helps tsSVM to differentiate them better and gives higher score. Because of the nature of this anomalous gait, several abnormal steps were performed in the row, that means that number of abnormal steps was more than in some other data sets.
Normal and abnormal steps for hemiplegic gait can be observed in the Fig. 12. They have similarly placed local maximums but with different amplitudes. This is due to abnormal movement, mainly affecting upper body, thus sensor have little impact by that movement. Normal steps have some variation, especially after abnormal step. This leads to misclassification and f1 score of 67% (Fig. 11).
5 Discussion and Conclusion
Ready made tsSVM could be well used for step classification, even using rather small amount of training data (tens of steps), as can be seen in results. The issues still occur, when the dataset is too small, and/or major variability in normal steps is present. As mentioned before, this situation is quite likely to appear with actual patient data. Some issues may arise, if gait deviation is happening in the upper part of the body. That would only lead to small deviations in forefoot placed sensor data, and could easily lead to misclassification of steps. A straightforward solution would be to add more body sensors, but that would increase systems cost and significantly reduce comfort of usage of this system. Obtained results could be useful in determining how different gait types abnormalities affect quality of classification of machine learning algorithms. It is clear, that good reference data presence (correct steps) is crucial for SVM, and, most likely for the other ML based classification methods as well.
Type of gait deviation has significant affect on quality of chosen algorithm results. Achieved average step classification accuracy was near to 80%, what is below the numbers published in literature. We assume, that classification performance of real patient data would be even worse. However, besides of performance improvements, with better training data selection and usage, we would develop an algorithm, that can detect anomalies during the gait phases instead of the whole steps. That is crucial to be able to correct gait on basis of needs. In the future we estimate, that applying certain ML techniques, possibly SVM, during the real-time operation of the next generation of FES devices, would make them less intervening and increase patients’ comfort.
In real life human gait steps can not be modelled by using two class classifiers, thus multi-class classifier is crucial to distinguish the abnormal steps, related to some kind of disease, from normal steps. Normal steps could be divided into several classes as well, e.g. normal walking steps, turning steps and etc.
Thus, the further work will be focused on the construction of the multi-class classification algorithm for reference step obtaining. That would be used to develop real-time abnormality detection algorithm, that is able to detect abnormal gait in different contexts.
References
Almaslukh, B.: An effective deep autoencoder approach for online smartphone-based human activity recognition. Int. J. Comput. Sci. Netw. Secur. 17, 160–165 (2017)
Bertolote, J.: Neurological disorders affect millions globally: WHO report. World Neurol. 22(1) (2007)
di Biase, L., et al.: Gait analysis in Parkinson’s disease: an overview of the most accurate markers for diagnosis and symptoms monitoring. Sensors 20(12) (2020). https://doi.org/10.3390/s20123529. https://www.mdpi.com/1424-8220/20/12/3529
Buongiorno, D., Bortone, I., Cascarano, G.D., Trotta, G.F., Brunetti, A., Bevilacqua, V.: A low-cost vision system based on the analysis of motor features for recognition and severity rating of Parkinson’s disease. BMC Med. Inform. Decis. Mak. 19, 1–13 (2019)
Camps, J., et al.: Deep learning for freezing of gait detection in Parkinson’s disease patients in their homes using a waist-worn inertial measurement unit. Knowl.-Based Syst. 139, 119–131 (2018). https://doi.org/10.1016/j.knosys.2017.10.017
Cuturi, M.: Fast global alignment kernels. In: Proceedings of the 28th International Conference on Machine Learning (ICML 2011), pp. 929–936 (2011)
Cuturi, M., Blondel, M.: Soft-DTW: a differentiable loss function for time-series (2018)
Feigin, V.L., et al.: Global, regional, and national burden of neurological disorders during 1990–2015: a systematic analysis for the global burden of disease study 2015. Lancet Neurol. 16(11), 877–897 (2017)
Gil-Castillo, J., Alnajjar, F., Koutsou, A., Torricelli, D., Moreno, J.C.: Advances in neuroprosthetic management of foot drop: a review. J. Neuroeng. Rehabil. 17(1), 1–19 (2020)
Gurchiek, R.D., et al.: Remote gait analysis using wearable sensors detects asymmetric gait patterns in patients recovering from ACL reconstruction. In: 2019 IEEE 16th International Conference on Wearable and Implantable Body Sensor Networks (BSN), pp. 1–4 (2019)
Hsieh, C., Shi, W., Huang, H., Liu, K., Hsu, S.J., Chan, C.: Machine learning-based fall characteristics monitoring system for strategic plan of falls prevention. In: 2018 IEEE International Conference on Applied System Invention (ICASI), pp. 818–821 (2018)
Hsu, W.C., et al.: Multiple-wearable-sensor-based gait classification and analysis in patients with neurological disorders. Sensors 18(10), 3397 (2018)
Huang, J., Stamp, M., Troia, F.D.: A comparison of machine learning classifiers for acoustic gait analysis. In: International Conference on Security and Management, SAM 2018 (2018)
Kluding, P.M., et al.: Foot drop stimulation versus ankle foot orthosis after stroke: 30-week outcomes. Stroke 44(6), 1660–1669 (2013)
Kuusik, A., Gross-Paju, K., Maamägi, H., Reilent, E.: Comparative study of four instrumented mobility analysis tests on neurological disease patients. In: 2014 11th International Conference on Wearable and Implantable Body Sensor Networks Workshops, pp. 33–37. IEEE (2014)
Miller, L., et al.: Functional electrical stimulation for foot drop in multiple sclerosis: a systematic review and meta-analysis of the effect on gait speed. Arch. Phys. Med. Rehabil. 98(7), 1435–1452 (2017)
Murad, A., Pyun, J.Y.: Deep recurrent neural networks for human activity recognition. Sensors 17(11), 2556 (2017)
Murray, M.: Gait as a total pattern of movement. Am. J. Phys. Med. 46(1), 290–333 (1967). http://europepmc.org/abstract/MED/5336886
Pau, M., et al.: Clinical assessment of gait in individuals with multiple sclerosis using wearable inertial sensors: comparison with patient-based measure. Mult. Scler. Relat. Disord. 10, 187–191 (2016)
Pirker, W., Katzenschlager, R.: Gait disorders in adults and the elderly. Wiener klinische Wochenschrift, 129(3), 81–95 (2016). https://doi.org/10.1007/s00508-016-1096-4
Ramdhani, R.A., Khojandi, A., Shylo, O., Kopell, B.H.: Optimizing clinical assessments in Parkinson’s disease through the use of wearable sensors and data driven modeling. Front. Comput. Neurosci. 12, 72 (2018)
Saboor, A., et al.: Latest research trends in gait analysis using wearable sensors and machine learning: a systematic review. IEEE Access 8, 167830–167864 (2020)
Sandroff, B.M., Sosnoff, J.J., Motl, R.W.: Physical fitness, walking performance, and gait in multiple sclerosis. J. Neurol. Sci. 328(1–2), 70–76 (2013)
Stolze, H., Klebe, S., Zechlin, C., Baecker, C., Friege, L., Deuschl, G.: Falls in frequent neurological diseases. J. Neurol. 251(1), 79–84 (2004)
TarniŢă, D.: Wearable sensors used for human gait analysis. Rom. J. Morphol. Embryol. 57(2), 373–382 (2016)
Tavenard, R., et al.: Tslearn, a machine learning toolkit for time series data. J. Mach. Learn. Res. 21(118), 1–6 (2020). http://jmlr.org/papers/v21/20-091.html
Wang, C., Goel, R., Zhang, Q., Lepow, B., Najafi, B.: Daily use of bilateral custom-made ankle-foot orthoses for fall prevention in older adults: a randomized controlled trial. J. Am. Geriatr. Soc. 67(8), 1656–1661 (2019)
Zhen, T., Mao, L., Wang, J., Gao, Q.: Wearable preimpact fall detector using SVM. In: 2016 10th International Conference on Sensing Technology (ICST), pp. 1–6 (2016)
Acknowledgements
This work has been supported by Estonian Research Council, via research grant No PRG424 and from TAR16013 EXCITE “Estonian Centre of Excellence in ICT Research".
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 ICST Institute for Computer Sciences, Social Informatics and Telecommunications Engineering
About this paper
Cite this paper
Rostovski, J., Krivošei, A., Kuusik, A., Ahmadov, U., Alam, M.M. (2022). SVM Time Series Classification of Selected Gait Abnormalities. In: Ur Rehman, M., Zoha, A. (eds) Body Area Networks. Smart IoT and Big Data for Intelligent Health Management. BODYNETS 2021. Lecture Notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering, vol 420. Springer, Cham. https://doi.org/10.1007/978-3-030-95593-9_16
Download citation
DOI: https://doi.org/10.1007/978-3-030-95593-9_16
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-95592-2
Online ISBN: 978-3-030-95593-9
eBook Packages: Computer ScienceComputer Science (R0)