Next Article in Journal
Emotional Effects in Object Recognition by the Visually Impaired People in Grocery Shopping
Previous Article in Journal
Solutions of Detour Distance Graph Equations
Previous Article in Special Issue
Investigating the Impact of Information Sharing in Human Activity Recognition
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Gait Trajectory Prediction on an Embedded Microcontroller Using Deep Learning

1
Mechanical Engineering Department, College of Engineering and Technology, Cairo Campus, Arab Academy for Science, Technology and Maritime Transport (AASTMT), Cairo 11757, Egypt
2
Faculty of Engineering, German International University, Cairo, Egypt
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(21), 8441; https://doi.org/10.3390/s22218441
Submission received: 26 August 2022 / Revised: 20 September 2022 / Accepted: 27 October 2022 / Published: 3 November 2022

Abstract

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.
Keywords: gait trajectory prediction; deep learning; MLP; CNN; embedded system; microcontroller; TensorFlow Lite micro; ESP32 gait trajectory prediction; deep learning; MLP; CNN; embedded system; microcontroller; TensorFlow Lite micro; ESP32

Share and Cite

MDPI and ACS Style

Karakish, M.; Fouz, M.A.; ELsawaf, A. Gait Trajectory Prediction on an Embedded Microcontroller Using Deep Learning. Sensors 2022, 22, 8441. https://doi.org/10.3390/s22218441

AMA Style

Karakish M, Fouz MA, ELsawaf A. Gait Trajectory Prediction on an Embedded Microcontroller Using Deep Learning. Sensors. 2022; 22(21):8441. https://doi.org/10.3390/s22218441

Chicago/Turabian Style

Karakish, Mohamed, Moustafa A. Fouz, and Ahmed ELsawaf. 2022. "Gait Trajectory Prediction on an Embedded Microcontroller Using Deep Learning" Sensors 22, no. 21: 8441. https://doi.org/10.3390/s22218441

APA Style

Karakish, M., Fouz, M. A., & ELsawaf, A. (2022). Gait Trajectory Prediction on an Embedded Microcontroller Using Deep Learning. Sensors, 22(21), 8441. https://doi.org/10.3390/s22218441

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop