Time Series Classification for Predicting Biped Robot Step Viability
Abstract
:1. Introduction
2. Materials and Methods
2.1. Stability Criteria
2.2. Predicted Step Viability
2.3. Dataset Generation
- and ;
- and ;
- and ;
- and ;
- and .
2.4. Classifier
2.5. Model Restrictions: Time Series Selection
- Applicability (usability): If the implementation is too complicated and requires a lot or resources (time, memory, energy), it is not an acceptable solution. This is what happens with PSV criterion, while theoretically solve the stability prediction problem, it can not be used in practice. This fact also limits the use of deep learning approaches, since we do not have a huge amount of data and the neural network architecture should not be very complicated either.
- Interpretability: It must be interpretable, i.e., we need to provide a clear connection between the performance of the model and the variables that are commonly used to understand the stability of a biped robot. This is the same that providing a classifier that can be interpretable in terms of intuitive human gait experience. For example, a model that is able to predict that the robot will fall because the angle between the trunk and the vertical is too large is preferable to other more sophisticated, but less intuitive, models. In summary, the most data comprehensive the classifier is, the more likelihood that it could be accepted in the robot industrial community.
- Fast: it must be able to work in real time.
- Simple: It is preferable if it can work with few variables. Related to previous property, considering a real robot case with different sensors and actuators, we want to limit the dependency of the classifier from failures of any of these sensors as much as possible, so the predictor can work in hardware failure situations. When training the classifier, we can use the relative importance of each feature in the predictive power of the model to reduce the dimension of the classifier, speeding up its calculations and reducing the amount of consumed resources during deployment in real robots. If the sensors that fail are the ones that we are using, we can always expand the classifier to include other variables with the obvious corresponding performance reduction.
- The trunk inclination given by the angle in Figure 2.
- The height of the global center of mass represented by the variable .
- The coordinates of the swing leg, denoted by .
2.6. Feature Engineering
2.6.1. Statistical Features
- Mean ():
- Variance ():
- Skewness ():
- Kurtosis ():
- Minimum (min):
- Maximum (max):
- 10% quantile ():
2.6.2. Temporal Features
- Length (N): duration of the time series in samples, i.e., the duration of the step.
- Number of peaks with support two, i.e., it is considered a peak if it is higher than both its two preceding and two succeeding neighbors ():
- Number of crossings of the mean value (): the number of times the time series crosses the mean value:
- Maximum length of time series segments where consecutive samples are greater than the mean value ():
- Maximum length of consecutive samples where the values are smaller than the mean value ():
- Average of the absolute first differences of the time series ():
- Average value over the autocorrelation function for different lags ():
2.6.3. Advanced Features
- Time Reversal Asymmetry Statistic (): Measures the asymmetry in the time series when reversed, which can indicate non-linear dynamics. There are different implementations of this idea. We use the following one and calculate two values and :
- statistic (): A higher order autocovariance (a generalization of linear autocovariance introducing more than one lag to capture higher order dependencies). We use the values for and .
- Correlation dimension () measures the dimensionality of the space that the data occupies (low-dimensional chaotic systems or higher-dimensional stochastic processes). It is estimated as the slope of the log-log plot of the correlation integral vs. :
- Hurst exponent (H). This indicates if the time series is purely random, trending, or rather mean reverting (long term memory). It is estimated as the slope of the log-log plot of the range rescaled by the standard deviation vs. time:White noise has , while time series with mean-reverting characteristics (increase in the value is likely to be followed by a decrease and vice versa, i.e., negative dependencies) have and for those that exhibit some positive dependency on previous values.
- Detrended Fluctuation Analysis () is another measure of long term dependencies that tries to avoid false correlations appearing in non stationary processes (unlike the Hurst exponent, which always indicates long-term correlations for any non-stationary process). Once again, we have to estimate a logarithmic relationship, in this case between the overall fluctuation function for different length segments s:The value of the estimated exponent is associated with the nature of the time series, e.g., for anti-correlated (large values are more likely to be followed by small values and vice versa) ones, for white noise (uncorrelated time series), for long range correlations (long term memory), and for non-stationary time series with a trend.
2.7. Feature Importance
3. Results
3.1. Performance Metrics
3.2. Feature Importance
3.3. Low Dimensional Classifiers
4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Goswami, A. Postural Stability of Biped Robots and the Foot-Rotation Indicator (FRI) Point. Int. J. Robot. Res. 1999, 18, 523–533. [Google Scholar] [CrossRef]
- Pratt, J.; Tedrake, R. Velocity-Based Stability Margins for Fast Bipedal Walking. In Fast Motions in Biomechanics and Robotics: Optimization and Feedback Control; Diehl, M., Mombaur, K., Eds.; Springer: Berlin/Heidelberg, Germany, 2006; pp. 299–324. [Google Scholar] [CrossRef]
- Al-Shuka, H.F.N.; Corves, B.; Zhu, W.H.; Vanderborght, B. Multi-level control of zero-moment point-based humanoid biped robots: A review. Robotica 2016, 34, 2440–2466. [Google Scholar] [CrossRef]
- Park, J.; Kim, K. Biped robot walking using gravity-compensated inverted pendulum mode and computed torque control. In Proceedings of the Proceedings. 1998 IEEE International Conference on Robotics and Automation (Cat. No.98CH36146), Leuven, Belgium, 20 May 1998; Volume 4, pp. 3528–3533. [Google Scholar] [CrossRef]
- Bae, H.; Oh, J.H. Biped robot state estimation using compliant inverted pendulum model. Robot. Auton. Syst. 2018, 108, 38–50. [Google Scholar] [CrossRef]
- Rossi, L.F.; Parik-Americano, P.; Simões, I.; Forner-Cordero, A. Predicted Step Viability: A stability criterion for biped gait. J. Braz. Soc. Mech. Sci. Eng. 2019, 41, 548. [Google Scholar] [CrossRef]
- Zaroug, A.; Garofolini, A.; Lai, D.T.H.; Mudie, K.; Begg, R. Prediction of gait trajectories based on the Long Short Term Memory neural networks. PLoS ONE 2021, 16, e0255597. [Google Scholar] [CrossRef]
- Justa, J.; Smidl, V.; Hamáček, A. Deep Learning Methods for Speed Estimation of Bipedal Motion from Wearable IMU Sensors. Sensors 2022, 22, 3865. [Google Scholar] [CrossRef]
- Carpentier, J.; Budhiraja, R.; Mansard, N. Learning Feasibility Constraints for Multi-contact Locomotion of Legged Robots. In Proceedings of the Robotics: Science and Systems (RSS), Cambridge, MA, USA, 12–16 July 2017. [Google Scholar] [CrossRef]
- Saveriano, M.; Abu-Dakka, F.J.; Kramberger, A.; Peternel, L. Dynamic movement primitives in robotics: A tutorial survey. Int. J. Robot. Res. 2023, 42, 1133–1184. [Google Scholar] [CrossRef]
- T., S.; Sivakumar, P.B. Human Gait Recognition and Classification Using Time Series Shapelets. In Proceedings of the 2012 International Conference on Advances in Computing and Communications, Chennai, India, 3–5 August 2012; pp. 31–34. [Google Scholar] [CrossRef]
- Fawaz, H.I.; Forestier, G.; Weber, J.; Idoumghar, L.; Muller, P.A. Deep learning for time series classification: A review. Data Min. Knowl. Discov. 2019, 33, 917–963. [Google Scholar] [CrossRef]
- Hwang, S.H.; Sun, D.I.; Han, J.; Kim, W.S. Gait pattern generation algorithm for lower-extremity rehabilitation–exoskeleton robot considering wearer’s condition. Intell. Serv. Robot. 2021, 14, 345–355. [Google Scholar] [CrossRef]
- Parik-Americano, P.; Igual, J.; Driemeier, L.; Becman, E.C.; Forner-Cordero, A. Biped Gait Stability Classification Based on the Predicted Step Viability. Biomimetics 2024, 9, 265. [Google Scholar] [CrossRef]
- Elhasairi, A.; Pechev, A. Humanoid Robot Balance Control Using the Spherical Inverted Pendulum Mode. Front. Robot. AI 2015, 2, 21. [Google Scholar] [CrossRef]
- Ott, C.; Roa, M.A.; Hirzinger, G. Posture and balance control for biped robots based on contact force optimization. In Proceedings of the 2011 11th IEEE-RAS International Conference on Humanoid Robots, Bled, Slovenia, 26–28 October 2011; pp. 26–33. [Google Scholar] [CrossRef]
- Ramos, O.; Santos, J. Viability of Nonlinear Control for Biped Locomotion. J. Robot. Auton. Syst. 2004, 48, 221–234. [Google Scholar]
- Vukobratovic, M.; Juricic, D. Contribution to the synthesis of biped gait. IEEE Trans. Biomed. Eng. 1969, 16 1, 1–6. [Google Scholar] [CrossRef]
- Gonçalves, J.; Zampieri, D. Recurrent Neural Network Approaches for Biped Walking Robot Based on Zero Moment Point Criterion. J. Braz. Soc. Mech. Sci. Eng. 2003, 25, 69–78. [Google Scholar] [CrossRef]
- Mikolajczyk, T.; Mikoajewska, E.; Al-Shuka, H.F.N.; Malinowski, T.; Kodowski, A.; Pimenov, D.Y.; Paczkowski, T.; Hu, F.; Giasin, K.; Mikołajewski, D.; et al. Recent Advances in Bipedal Walking Robots: Review of Gait, Drive, Sensors and Control Systems. Sensors 2022, 22, 4440. [Google Scholar] [CrossRef]
- Wisse, M.; Feliksdal, G.; Frankenhuyzen, J.V.; Moyer, B. Passive-Based Walking Robot. IEEE Robot. Autom. Mag. 2007, 14, 52–62. [Google Scholar] [CrossRef]
- Forner-Cordero, A.; Koopman, H.; van der Helm, F. Mechanical model of the recovery from stumbling. Biol. Cybern. 2004, 91, 212–220. [Google Scholar] [CrossRef]
- Hof, A. The ‘extrapolated center of mass’ concept suggests a simple control of balance in walking. Hum. Mov. Sci. 2008, 27, 112–125. [Google Scholar] [CrossRef]
- Koolen, T.; De Boer, T.; Rebula, J.; Goswami, A.; Pratt, J. Capturability-based analysis and control of legged locomotion, Part 1: Theory and application to three simple gait models. Int. J. Robot. Res. 2012, 31, 1094–1113. [Google Scholar] [CrossRef]
- Kotsiantis, S.B.; Kotsiantis, P.E.K.; Kanellopoulos, D. Data Preprocessing for Machine Learning and Data Mining; Springer: Cham, Switzerland, 2021; Volume 1, pp. 127–154. [Google Scholar]
- Chevallereau, C.; Abba, G.; Aoustin, Y.; Plestan, F.; Westervelt, E.; Canudas-De-Wit, C.; Grizzle, J. RABBIT: A testbed for advanced control theory. IEEE Control Syst. Mag. 2003, 23, 57–79. [Google Scholar] [CrossRef]
- Breiman, L. Random forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef]
- Geurts, P.; Ernst, D.; Wehenkel, L. Extremely randomized trees. Mach. Learn. 2006, 63, 3–42. [Google Scholar] [CrossRef]
- Strobl, C.; Boulesteix, A.L.; Zeileis, A.; Hothorn, T. Bias in random forest variable importance measures: Illustrations, sources and a solution. BMC Bioinform. 2007, 8, 25. [Google Scholar] [CrossRef] [PubMed]
- Molnar, C. Interpretable Machine Learning: A Guide for Making Black Box Models Explainable; Chapin Hall: Chicago, IL, USA, 2022; Available online: https://christophm.github.io/interpretable-ml-book/ (accessed on 30 October 2024).
- Fisher, A.; Rudin, C.; Dominici, F. All models are wrong, but many are useful: Learning a variable’s importance by studying an entire class of prediction models simultaneously. J. Mach. Learn. Res. 2019, 20, 1–81. Available online: https://pmc.ncbi.nlm.nih.gov/articles/PMC8323609/ (accessed on 30 October 2024).
- Jolliffe, I. Principal Component Analysis, 2nd ed.; Springer: New York, NY, USA, 2002; Available online: https://link.springer.com/book/10.1007/b98835 (accessed on 30 October 2024).
- Wisse, M.; Schwab, A.L.; van der Linde, R.Q.; van der Helm, F.C. How to keep from falling forward: Elementary swing leg action for passive dynamic walkers. IEEE Trans. Robot. 2005, 21, 393–401. [Google Scholar] [CrossRef]
Index | |||
---|---|---|---|
1 and 5 | 2 and 4 | 3 | |
mass (m) | kg | kg | kg |
length (l) | m | m | m |
Inertia (I) | 4.34 kg·cm2 | 8.74 kg·cm2 | 141.48 kg·cm2 |
distance (c) | m | m | m |
11.3 N·m |
Metric | Statistical | Temporal | Advanced | Initial |
---|---|---|---|---|
Balanced Accuracy | 0.8838 | 0.8795 | 0.8790 | 0.7853 |
Precision | 0.8834 | 0.8845 | 0.8828 | 0.7356 |
Recall | 0.8842 | 0.8730 | 0.8740 | 0.8905 |
F1 Score | 0.8838 | 0.8787 | 0.8784 | 0.8057 |
Specificity | 0.8832 | 0.8860 | 0.8840 | 0.6800 |
NPV | 0.8841 | 0.8746 | 0.8752 | 0.8613 |
ROC AUC | 0.9526 | 0.9502 | 0.9552 | 0.8556 |
Average Precision | 0.9532 | 0.9517 | 0.9569 | 0.8155 |
Metric | Statistical | Temporal | Advanced | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
MDI | Perm. | ET | PCA | MDI | Perm. | ET | PCA | MDI | Perm. | ET | PCA | |
Balanced Accuracy | 0.8484 | 0.8550 | 0.8566 | 0.8006 | 0.8484 | 0.8550 | 0.8566 | 0.7863 | 0.8484 | 0.8550 | 0.8566 | 0.8014 |
Precision | 0.8543 | 0.8538 | 0.8672 | 0.8141 | 0.8543 | 0.8538 | 0.8672 | 0.7921 | 0.8543 | 0.8538 | 0.8672 | 0.8011 |
Recall | 0.8400 | 0.8568 | 0.8423 | 0.7793 | 0.8400 | 0.8568 | 0.8423 | 0.7763 | 0.8400 | 0.8568 | 0.8423 | 0.8018 |
F1 Score | 0.8471 | 0.8553 | 0.8545 | 0.7963 | 0.8471 | 0.8553 | 0.8545 | 0.7841 | 0.8471 | 0.8553 | 0.8545 | 0.8014 |
Specificity | 0.8568 | 0.8533 | 0.8710 | 0.8220 | 0.8568 | 0.8533 | 0.8710 | 0.7963 | 0.8568 | 0.8533 | 0.8710 | 0.8010 |
NPV | 0.8426 | 0.8562 | 0.8467 | 0.7883 | 0.8426 | 0.8562 | 0.8467 | 0.7806 | 0.8426 | 0.8562 | 0.8467 | 0.8016 |
ROC AUC | 0.9282 | 0.9316 | 0.9321 | 0.8799 | 0.9282 | 0.9316 | 0.9321 | 0.8707 | 0.9282 | 0.9316 | 0.9321 | 0.8891 |
Average Precision | 0.9286 | 0.9306 | 0.9343 | 0.8867 | 0.9286 | 0.9306 | 0.9343 | 0.8771 | 0.9286 | 0.9306 | 0.9343 | 0.8910 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Igual, J.; Parik-Americano, P.; Becman, E.C.; Forner-Cordero, A. Time Series Classification for Predicting Biped Robot Step Viability. Sensors 2024, 24, 7107. https://doi.org/10.3390/s24227107
Igual J, Parik-Americano P, Becman EC, Forner-Cordero A. Time Series Classification for Predicting Biped Robot Step Viability. Sensors. 2024; 24(22):7107. https://doi.org/10.3390/s24227107
Chicago/Turabian StyleIgual, Jorge, Pedro Parik-Americano, Eric Cito Becman, and Arturo Forner-Cordero. 2024. "Time Series Classification for Predicting Biped Robot Step Viability" Sensors 24, no. 22: 7107. https://doi.org/10.3390/s24227107
APA StyleIgual, J., Parik-Americano, P., Becman, E. C., & Forner-Cordero, A. (2024). Time Series Classification for Predicting Biped Robot Step Viability. Sensors, 24(22), 7107. https://doi.org/10.3390/s24227107