| Literature DB >> 34838066 |
Gaurav Shalin1, Scott Pardoel1, Edward D Lemaire2, Julie Nantel3, Jonathan Kofman4.
Abstract
BACKGROUND: Freezing of gait (FOG) is a walking disturbance in advanced stage Parkinson's disease (PD) that has been associated with increased fall risk and decreased quality of life. Freezing episodes can be mitigated or prevented with external intervention such as visual or auditory cues, activated by FOG prediction and detection systems. While most research on FOG detection and prediction has been based on inertial measurement unit (IMU) and accelerometer data, plantar-pressure data may capture subtle weight shifts unique to FOG episodes. Different machine learning algorithms have been used for FOG detection and prediction; however, long short-term memory (LSTM) deep learning methods hold an advantage when dealing with time-series data, such as sensor data. This research aimed to determine if LSTM can be used to detect and predict FOG from plantar pressure data alone, specifically for use in a real-time wearable system.Entities:
Keywords: Deep learning; Detection; Freezing of gait; Long short-term memory; Parkinson’s disease; Plantar pressure; Prediction
Mesh:
Year: 2021 PMID: 34838066 PMCID: PMC8626900 DOI: 10.1186/s12984-021-00958-5
Source DB: PubMed Journal: J Neuroeng Rehabil ISSN: 1743-0003 Impact factor: 4.262
Fig. 1F-Scan system: a single plantar pressure insole sensor, b sensors worn in shoes, and c plantar pressure sample frame (kPa); dark blue indicates zero pressure
Fig. 2Walking Path
Fig. 3PD participant turning in a narrow hallway while holding a tray with a cup. Assistant follows for safety
LSTM Network configurations
| Hyperparameter | Values tested |
|---|---|
| Number of LSTM layers | 1, 2, 3, 4, 5 |
| Number of units in each LSTM layer | 16, 32, 64 |
| Constant learning rate | 0.1, 0.01, 0.001, 0.0001 |
Learning rate decay with a decay rate (decay rate, initial learning rate) | (0.5, 0.005), (0.75, 0.001) |
Learning rate decreases in discrete steps (initial learning rate) | Decreases to half every 5 epochs (0.01) |
Fig. 4Hyperparameter tuning of the LSTM network architecture
Best performing LSTM network configurations for FOG detection
| Network or training parameter | Values / Options |
|---|---|
| LSTM layers (units in each LSTM layer) | 2 layers (16 units) and 3 layers (32 units) |
| Initial learning rate | 0.01 |
| Learning rate decay | Decreases to half, every 5 epochs |
| Optimizer | Adam optimizer |
| Loss function | Cross entropy loss function |
| Batch size | 1 |
| Training epochs | 30 |
Freeze episode count and duration for each participant
| Participant | Most affected side | Number of FOG episodes | Mean (SD) FOG duration (s) | Total FOG duration (s) |
|---|---|---|---|---|
| 1 | Right | 49 | 0.69 (0.26) | 34.05 |
| 2 | Left | 35 | 2.64 (1.61) | 92.35 |
| 3 | Left | 14 | 1.06 (0.53) | 14.88 |
| 4 | Left | 0 | – | – |
| 5 | Right | 0 | – | – |
| 6 | Left | 10 | 4.23 (3.80) | 42.29 |
| 7 | Right | 221 | 1.52 (1.48) | 336.20 |
| 8 | Right | 24 | 1.51 (1.05) | 36.16 |
| 9 | Left | 9 | 0.75 (0.35) | 6.74 |
| 10 | Left | 0 | – | – |
| 11 | Right | 0 | – | – |
FOG detection model training data provided by each participant following data balancing
| Participant | Number of training instances | Number of datapoints in Non-FOG class | Number of datapoints in FOG class |
|---|---|---|---|
| 1 | 49 | 3432 | 3454 |
| 2 | 35 | 9253 | 9270 |
| 3 | 14 | 1492 | 1502 |
| 6 | 10 | 4235 | 4240 |
| 7 | 221 | 30,246 | 37,132 |
| 8 | 24 | 3381 | 3886 |
| 9 | 9 | 680 | 683 |
FOG Detection: One-freezer-held-out cross validation for the 2-layer LSTM model (16 units per LSTM layer)
| Participant held out | FOG data | Non-FOG data | Sensitivity (%) | Specificity (%) | Precision (%) | F1 score |
|---|---|---|---|---|---|---|
| 1 | 3454 | 82,943 | 83.0 | 92.5 | 31.6 | 0.46 |
| 2 | 9270 | 110,130 | 77.2 | 90.3 | 40.0 | 0.53 |
| 3 | 1502 | 142,157 | 72.5 | 92.8 | 9.6 | 0.17 |
| 6 | 4240 | 191,309 | 85.9 | 90.2 | 16.3 | 0.27 |
| 7 | 33,841 | 159,787 | 77.4 | 89.5 | 61.0 | 0.68 |
| 8 | 3640 | 101,415 | 86.2 | 81.2 | 14.1 | 0.24 |
| 9 | 683 | 141,373 | 92.2 | 89.8 | 4.2 | 0.08 |
| Mean (SD) | 82.1 ± 6.2 | 89.5 ± 3.6 | 25.3 ± 18.6 | 0.35 ± 0.20 |
FOG Detection: One-freezer-held-out cross validation for the 3-layer LSTM model (32 units per LSTM layer)
| Participant held out | FOG data | Non-FOG data | Sensitivity (%) | Specificity (%) | Precision (%) | F1 score |
|---|---|---|---|---|---|---|
| 1 | 3454 | 82,943 | 83.6 | 86.3 | 20.2 | 0.33 |
| 2 | 9270 | 110,130 | 83.5 | 90.1 | 41.5 | 0.55 |
| 3 | 1502 | 142,157 | 71.7 | 92.0 | 8.6 | 0.15 |
| 6 | 4240 | 191,309 | 86.9 | 90.7 | 17.2 | 0.29 |
| 7 | 33,841 | 159,787 | 77.1 | 89.2 | 60.1 | 0.68 |
| 8 | 3640 | 101,415 | 87.6 | 74.7 | 11.1 | 0.20 |
| 9 | 683 | 141,373 | 93.6 | 88.6 | 3.8 | 0.07 |
| Mean (SD) | 83.4 ± 6.7 | 87.4 ± 5.4 | 23.2 ± 18.8 | 0.32 ± 0.20 |
FOG detection latency (average and standard deviation) in one-freezer-held-out cross validation with the 2-layer LSTM model. A negative freeze detection latency means that the freeze was detected before the true freeze onset
| Participant held out | Freezes correctly detected | Freezes not detected | Average FOG detection latency (s) |
|---|---|---|---|
| 1 | 49 | 0 | − 0.23 ± 0.55 |
| 2 | 35 | 0 | 0.02 ± 0.17 |
| 3 | 14 | 0 | 0.08 ± 0.25 |
| 6 | 9 | 1 | − 0.04 ± 0.36 |
| 7 | 204 | 17 | 0.10 ± 0.32 |
| 8 | 23 | 1 | − 0.55 ± 0.85 |
| 9 | 9 | 0 | − 0.47 ± 0.74 |
| Total | 343 | 18 |
FOG Detection: One-freezer-held-out cross validation using the 2-layer LSTM model on only active states and on both active and inactive states
| Participant held out | Only active states | Both active and inactive states | ||
|---|---|---|---|---|
| Sensitivity (%) | Specificity (%) | Sensitivity (%) | Specificity (%) | |
| 1 | 79.2 | 95.8 | 83.0 | 92.5 |
| 2 | 77.2 | 96.8 | 77.2 | 90.3 |
| 3 | 72.5 | 93.6 | 72.5 | 92.8 |
| 6 | 85.9 | 94.8 | 85.9 | 90.2 |
| 7 | 77.9 | 92.3 | 77.4 | 89.5 |
| 8 | 86.2 | 84.2 | 86.2 | 81.2 |
| 9 | 92.2 | 95.4 | 92.2 | 89.8 |
| Mean ± SD | 81.6 ± 6.3 | 93.3 ± 4.0 | 82.1 ± 6.2 | 89.5 ± 3.6 |
Active states include walking and turning but exclude standing
Percentage of time frozen in one-freezer-held-out cross validation with the 2-layer LSTM model for FOG detection
| Participant held out | True positive | True negative | False positive | False negative | Model time frozen (%) | True time frozen (%) |
|---|---|---|---|---|---|---|
| 1 | 2868 | 76,729 | 6214 | 586 | 10.5 | 4.0 |
| 2 | 7154 | 99,394 | 10,736 | 2116 | 15.0 | 7.8 |
| 3 | 1089 | 131,869 | 10,288 | 413 | 7.9 | 1.0 |
| 6 | 3642 | 172,641 | 18,668 | 598 | 11.4 | 2.2 |
| 7 | 26,201 | 143,062 | 16,725 | 7640 | 22.2 | 17.5 |
| 8 | 3137 | 82,302 | 19,113 | 503 | 21.2 | 3.5 |
| 9 | 630 | 126,898 | 14,475 | 53 | 10.6 | 0.5 |
| Mean ± SD | 14.1 ± 5.2 | 5.2 ± 5.5 |
FOG Prediction: One-freezer-held-out cross validation with the 2-layer LSTM model after 4 training epochs
| Participant held out | Sensitivity (%) | Specificity (%) | Precision (%) | F1 score |
|---|---|---|---|---|
| 1 | 82.5 | 60.2 | 15.3 | 0.26 |
| 2 | 62.7 | 83.9 | 36.0 | 0.46 |
| 3 | 68.1 | 71.8 | 4.8 | 0.09 |
| 6 | 78.8 | 88.6 | 18.4 | 0.30 |
| 7 | 84.1 | 71.6 | 54.6 | 0.66 |
| 8 | 90.8 | 74.4 | 17.7 | 0.30 |
| 9 | 92.6 | 83.4 | 5.2 | 0.10 |
| Mean ± SD | 79.9 ± 10.3 | 76.3 ± 9.0 | 21.7 ± 16.5 | 0.31 ± 0.19 |
FOG Prediction: One-freezer-held-out cross validation with the 3-layer LSTM model after 3 training epochs
| Participant held out | Sensitivity (%) | Specificity (%) | Precision (%) | F1 score |
|---|---|---|---|---|
| 1 | 67.4 | 90.3 | 37.6 | 0.48 |
| 2 | 52.8 | 88.6 | 40.2 | 0.46 |
| 3 | 57.6 | 75.2 | 4.6 | 0.09 |
| 6 | 80.4 | 86.3 | 16.0 | 0.27 |
| 7 | 72.9 | 80.2 | 59.9 | 0.66 |
| 8 | 81.0 | 76.7 | 17.4 | 0.29 |
| 9 | 95.4 | 71.2 | 3.1 | 0.06 |
| Mean ± SD | 72.5 ± 13.6 | 81.2 ± 6.8 | 25.5 ± 19.4 | 0.33 ± 0.20 |
FOG detection: One-freezer-held-out cross validation for the 2-layer LSTM model with and without most frequent freezer
| With P07’s data in training set | Without P07’s data in training set | |||
|---|---|---|---|---|
| Held out participant | Sensitivity (%) | Specificity (%) | Sensitivity (%) | Specificity (%) |
| 1 | 83.0 | 92.5 | 42.2 | 93.8 |
| 2 | 77.2 | 90.3 | 82.3 | 90.0 |
| 3 | 72.5 | 92.8 | 61.1 | 95.0 |
| 6 | 85.9 | 90.2 | 63.5 | 94.4 |
| 8 | 86.2 | 81.2 | 81.4 | 85.8 |
| 9 | 92.2 | 89.8 | 92.4 | 87.4 |
| Mean ± SD | 82.8 ± 6.4 | 89.5 ± 3.9 | 70.5 ± 16.7 | 91.1 ± 3.6 |
FOG detection: One-freezer-held-out cross validation for the 3-layer LSTM model with and without most frequent freezer
| With P07’s data in training set | Without P07’s data in training set | |||
|---|---|---|---|---|
| Held out participant | Sensitivity (%) | Specificity (%) | Sensitivity (%) | Specificity (%) |
| 1 | 83.6 | 86.3 | 71.3 | 93.1 |
| 2 | 83.5 | 90.1 | 63.8 | 91.4 |
| 3 | 71.7 | 92.0 | 60.1 | 94.3 |
| 6 | 86.9 | 90.7 | 78.1 | 92.8 |
| 8 | 87.6 | 74.7 | 88.2 | 79.5 |
| 9 | 93.6 | 88.6 | 99.7 | 86.8 |
| Mean ± SD | 84.5 ± 6.6 | 87.1 ± 5.8 | 76.9 ± 13.7 | 89.7 ± 5.1 |
Computer memory requirement of different models
| Model | Computer memory requirement (KB) |
|---|---|
| SVM [ | 1600 |
| SVM [ | 1490 |
| 1D CNN [ | 145 |
| New 2-layer LSTM | 51 |