Cargando…
Gait Trajectory Prediction on an Embedded Microcontroller Using Deep Learning
Achieving a normal gait trajectory for an amputee’s active prosthesis is challenging due to its kinematic complexity. Accordingly, lower limb gait trajectory kinematics and gait phase segmentation are essential parameters in controlling an active prosthesis. Recently, the most practiced algorithm in...
Autores principales: | , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
MDPI
2022
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9654157/ https://www.ncbi.nlm.nih.gov/pubmed/36366139 http://dx.doi.org/10.3390/s22218441 |
_version_ | 1784828860166045696 |
---|---|
author | Karakish, Mohamed Fouz, Moustafa A. ELsawaf, Ahmed |
author_facet | Karakish, Mohamed Fouz, Moustafa A. ELsawaf, Ahmed |
author_sort | Karakish, Mohamed |
collection | PubMed |
description | Achieving a normal gait trajectory for an amputee’s active prosthesis is challenging due to its kinematic complexity. Accordingly, lower limb gait trajectory kinematics and gait phase segmentation are essential parameters in controlling an active prosthesis. Recently, the most practiced algorithm in gait trajectory generation is the neural network. Deploying such a complex Artificial Neural Network (ANN) algorithm on an embedded system requires performing the calculations on an external computational device; however, this approach lacks mobility and reliability. In this paper, more simple and reliable ANNs are investigated to be deployed on a single low-cost Microcontroller (MC) and hence provide system mobility. Two neural network configurations were studied: Multi-Layered Perceptron (MLP) and Convolutional Neural Network (CNN); the models were trained on shank and foot IMU data. The data were collected from four subjects and tested on a fifth to predict the trajectory of 200 ms ahead. The prediction was made for two cases: with and without providing the current phase of the gait. Then, the models were deployed on a low-cost microcontroller (ESP32). It was found that with fewer data (excluding the current gait phase), CNN achieved a better correlation coefficient of 0.973 when compared to 0.945 for MLP; when including the current phase, both network configurations achieved better correlation coefficients of nearly 0.98. However, when comparing the execution time required for the prediction on the intended MC, MLP was much faster than CNN, with an execution time of 2.4 ms and 142 ms, respectively. In summary, it was found that when training data are scarce, CNN is more efficient within the acceptable execution time, while MLP achieves relative accuracy with low execution time with enough data. |
format | Online Article Text |
id | pubmed-9654157 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2022 |
publisher | MDPI |
record_format | MEDLINE/PubMed |
spelling | pubmed-96541572022-11-15 Gait Trajectory Prediction on an Embedded Microcontroller Using Deep Learning Karakish, Mohamed Fouz, Moustafa A. ELsawaf, Ahmed Sensors (Basel) Article Achieving a normal gait trajectory for an amputee’s active prosthesis is challenging due to its kinematic complexity. Accordingly, lower limb gait trajectory kinematics and gait phase segmentation are essential parameters in controlling an active prosthesis. Recently, the most practiced algorithm in gait trajectory generation is the neural network. Deploying such a complex Artificial Neural Network (ANN) algorithm on an embedded system requires performing the calculations on an external computational device; however, this approach lacks mobility and reliability. In this paper, more simple and reliable ANNs are investigated to be deployed on a single low-cost Microcontroller (MC) and hence provide system mobility. Two neural network configurations were studied: Multi-Layered Perceptron (MLP) and Convolutional Neural Network (CNN); the models were trained on shank and foot IMU data. The data were collected from four subjects and tested on a fifth to predict the trajectory of 200 ms ahead. The prediction was made for two cases: with and without providing the current phase of the gait. Then, the models were deployed on a low-cost microcontroller (ESP32). It was found that with fewer data (excluding the current gait phase), CNN achieved a better correlation coefficient of 0.973 when compared to 0.945 for MLP; when including the current phase, both network configurations achieved better correlation coefficients of nearly 0.98. However, when comparing the execution time required for the prediction on the intended MC, MLP was much faster than CNN, with an execution time of 2.4 ms and 142 ms, respectively. In summary, it was found that when training data are scarce, CNN is more efficient within the acceptable execution time, while MLP achieves relative accuracy with low execution time with enough data. MDPI 2022-11-03 /pmc/articles/PMC9654157/ /pubmed/36366139 http://dx.doi.org/10.3390/s22218441 Text en © 2022 by the authors. https://creativecommons.org/licenses/by/4.0/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/). |
spellingShingle | Article Karakish, Mohamed Fouz, Moustafa A. ELsawaf, Ahmed Gait Trajectory Prediction on an Embedded Microcontroller Using Deep Learning |
title | Gait Trajectory Prediction on an Embedded Microcontroller Using Deep Learning |
title_full | Gait Trajectory Prediction on an Embedded Microcontroller Using Deep Learning |
title_fullStr | Gait Trajectory Prediction on an Embedded Microcontroller Using Deep Learning |
title_full_unstemmed | Gait Trajectory Prediction on an Embedded Microcontroller Using Deep Learning |
title_short | Gait Trajectory Prediction on an Embedded Microcontroller Using Deep Learning |
title_sort | gait trajectory prediction on an embedded microcontroller using deep learning |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9654157/ https://www.ncbi.nlm.nih.gov/pubmed/36366139 http://dx.doi.org/10.3390/s22218441 |
work_keys_str_mv | AT karakishmohamed gaittrajectorypredictiononanembeddedmicrocontrollerusingdeeplearning AT fouzmoustafaa gaittrajectorypredictiononanembeddedmicrocontrollerusingdeeplearning AT elsawafahmed gaittrajectorypredictiononanembeddedmicrocontrollerusingdeeplearning |