Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2023 Nov 8;23(22):9040.
doi: 10.3390/s23229040.

Recurrent Neural Network Methods for Extracting Dynamic Balance Variables during Gait from a Single Inertial Measurement Unit

Affiliations

Recurrent Neural Network Methods for Extracting Dynamic Balance Variables during Gait from a Single Inertial Measurement Unit

Cheng-Hao Yu et al. Sensors (Basel). .

Abstract

Monitoring dynamic balance during gait is critical for fall prevention in the elderly. The current study aimed to develop recurrent neural network models for extracting balance variables from a single inertial measurement unit (IMU) placed on the sacrum during walking. Thirteen healthy young and thirteen healthy older adults wore the IMU during walking and the ground truth of the inclination angles (IA) of the center of pressure to the center of mass vector and their rates of changes (RCIA) were measured simultaneously. The IA, RCIA, and IMU data were used to train four models (uni-LSTM, bi-LSTM, uni-GRU, and bi-GRU), with 10% of the data reserved to evaluate the model errors in terms of the root-mean-squared errors (RMSEs) and percentage relative RMSEs (rRMSEs). Independent t-tests were used for between-group comparisons. The sensitivity, specificity, and Pearson's r for the effect sizes between the model-predicted data and experimental ground truth were also obtained. The bi-GRU with the weighted MSE model was found to have the highest prediction accuracy, computational efficiency, and the best ability in identifying statistical between-group differences when compared with the ground truth, which would be the best choice for the prolonged real-life monitoring of gait balance for fall risk management in the elderly.

Keywords: balance control; gait; inertial measurement unit; recurrent neural network.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflict of interest.

Figures

Figure 1
Figure 1
The marker set in (A) anterior and (B) posterior view. The marker positions are anterior superior iliac spines (RASI and LASI), posterior superior iliac spines (RPSI and LPSI), greater trochanters (RTRO and LTRO), mid-thighs (RTHI and LTHI), medial and lateral epicondyles (RMFC, RLFC, LMFC and LLFC), heads of fibulae (RSHA and LSHA), tibial tuberosities (RTT and LTT), medial and lateral malleoli (RMMA, RLMA, LMMA and LLMA), navicular tuberosities (RFOO and LFOO), fifth metatarsal bases (RTOE and LTOE), big toes (RBTO and LBTO) and heels (RHEE and LHEE), and condylar processes of the mandibles (RHead and LHead), acromion processes (RSAP and LSAP), the seventh cervical vertebra (C7), medial and lateral humeral epicondyles (RUM, RRM, LUM and LRM), and ulnar styloids (RUS and LUS) [62,63].
Figure 2
Figure 2
(A) Experimental photo showing a typical subject with a waist-worn IMU stepping on force plates during level walking. The IMU with an embedded coordinate system is also shown in the inlet. The COM–COP vector forms the inclination angles (IA) with the vertical: (B) sagittal IA (α) and (C) frontal IA (β). Mean curves of the IA and their rates of change (RCIA) are also shown. HS: heel-strike; TO: toe-off; CHS: contralateral heel-strike; CTO: contralateral toe-off.
Figure 3
Figure 3
Flowchart of extracting dynamic balance variables from data of a single inertial measurement unit (IMU) with four recurrent neural network models, namely uni-LSTM, bi-LSTM, uni-GRU, and bi-GRU (yellow box). The input data for the models were three-dimensional angular velocities and linear accelerations recorded from the IMU (blue box). The desired outputs of the models were balance variables, namely the IAs and RCIAs in both sagittal and frontal planes (green box). The sensor data and balance variables were normalized to the gait cycle. Each model utilized the normalized IMU data as input and made accurate predictions for the desired IAs and subsequently calculated RCIAs by differentiation of IAs once.
Figure 4
Figure 4
Internal structures of two recurrent neural network (RNN) cells, namely the (A) long short-term memory (LSTM) network and the (B) gated recurrent unit (GRU) [73,76]. LSTM employs a forget gate (red box) to selectively eliminate irrelevant information from the current inputs (xt) and previous hidden state (ht1). An input gate (blue box) is utilized to update the previous cell state (ct1) to the current cell state (ct), while an output gate (green box) generates the current hidden state (ht) and outputs (yt). GRU simplifies LSTM by reducing the number of gates. GRU integrates a reset gate (purple box) to discard irrelevant information from the previous hidden state (ht1), yielding a modified hidden state. An update gate (yellow box) is used to combine the modified hidden state with the hidden state (ht1) and current inputs (xt) into the current hidden state (ht) and outputs (yt). These structural designs enable RNNs to capture and handle long-term dependencies in time series analysis effectively.
Figure 5
Figure 5
The internal structures of recurrent neural network (RNN) layers, namely the (A) uni-directional and (B) bi-directional layers [77]. The uni-directional layer processes input sequences sequentially, updating hidden states based on previous states. The bi-directional layer enhances this by processing sequences in both directions, combining forward and backwards hidden states. Uni-directional layers capture past information, while bi-directional layers capture dependencies from both past and future contexts.
Figure 6
Figure 6
Effects of loss functions (standard MSE vs. weighted MSE), cell types (LSTM vs. GRU), and flow of information (uni-direction vs. bi-Direction) on the prediction errors (RMSE) of the sagittal and frontal inclination angles (IAs) (A,B) and rates of changes of IAs (RCIAs) (C,D) for the four machine learning models (i.e., uni-LSTM, uni-GRU, bi-LSTM and bi-GRU). Error bars are standard deviations. PL: p-values for loss function factor (i.e., uni-LSTM, uni-GRU, bi-LSTM and bi-GRU); PC: p-values for cell type factor. p-values for the direction factor are all greater than 0.05.
Figure 7
Figure 7
Effects of loss functions (standard MSE vs. weighted MSE), cell types (LSTM vs. GRU), and flow of information (uni-direction vs. bi-Direction) on the rRMSE (relative RMSE) of the sagittal and frontal inclination angles (IAs) (A,B) and rates of changes of IAs (RCIAs) (C,D) for the four machine learning models (i.e., uni-LSTM, uni-GRU, bi-LSTM and bi-GRU). Error bars are standard deviations. PL: p-values for loss function factor (i.e., uni-LSTM, uni-GRU, bi-LSTM and bi-GRU); PC: p-values for cell type factor. p-values for the direction factor are all greater than 0.05.

Similar articles

Cited by

References

    1. Santiago J., Cotto E., Jaimes L.G., Vergara-Laurens I. Fall detection system for the elderly; Proceedings of the 2017 IEEE 7th Annual Computing and Communication Workshop and Conference (CCWC); Las Vegas, NV, USA. 9–11 January 2017; pp. 1–4.
    1. World Health Organization. Ageing, and Life Course Unit . WHO Global Report on Falls Prevention in Older Age. World Health Organization; Geneva, Switzerland: 2008.
    1. Gryfe C., Amies A., Ashley M. A longitudinal study of falls in an elderly population: I. Incidence and morbidity. Age Ageing. 1977;6:201–210. doi: 10.1093/ageing/6.4.201. - DOI - PubMed
    1. Sattin R.W., Huber D.A.L., Devito C.A., Rodriguez J.G., Ros A., Bacchelli S., Stevens J.A., Waxweiler R.J. The incidence of fall injury events among the elderly in a defined population. Am. J. Epidemiol. 1990;131:1028–1037. doi: 10.1093/oxfordjournals.aje.a115594. - DOI - PubMed
    1. Sander R. Risk factors for falls. Nurs. Older People. 2009;21:15. doi: 10.7748/nop.21.8.15.s21. - DOI - PubMed

LinkOut - more resources