Introduction

Parkinson’s disease (PD) is a prevalent neurological disorder characterized by progressive degeneration of dopaminergic and other subcortical neurons1. Besides a flexed posture, tremor at rest, rigidity, akinesia (bradykinesia) and postural instability, motor blocks (i.e., complete inability to move) which most commonly affect the patients’ legs during walking, are common negative effects of PD. Freezing of motor blocks (also known as freezing of gait, FoG) is one particularly challenging aspect of PD. It typically manifests as a sudden and transient inability to initiate the next step, and becomes increasingly common as PD progresses2. Freezes typically last only a few seconds, up to one minute3,4, and can lead to falls5. Multiple occurrences of FoG throughout a day, not only cause persistent physical risk but also reduce overall quality of life for those who are affected6.

Early prediction of FoG attacks before they occur7, allows for timely intervention before the event to prevent the freeze from occurring8. Wearable sensors have been used to detect and predict FoG with the ultimate aim of preventing freezes and reducing their effects using gait monitoring and assistive devices. Such wearable sensors are vital for FoG detection and prediction; see reviews e.g.9,10 and references therein.

Compared to FoG detection, studies of FoG prediction are relatively few11. Most of the previous studies focus on the construction of selected time-frequency features and the use of machine learning technology11,12,13,14 to identify the pre-FoG stage, and also utilizing deep learning11,15,16,17 for PD diagnosis and classification. While deep learning has demonstrated improved accuracy in diagnosing PD over traditional machine learning algorithms, it currently cannot accurately diagnose and classify PD in real time, as these models tend to be computationally expensive and require large amounts of processing power11,15,18,19. Another limitation of current deep-learning-based FoG prediction approaches is that due to the black box property of the deep neural network, the learned feature maps and the classification boundaries are hard to interpret11.

A popular alternative to machine learning and deep learning is dynamic mode decomposition (DMD)20,21, which directly approximates the system dynamics observed from time series. DMD provides an appealingly simple yet powerful tool for inferring a local model near steady states and extracting features of inherent dynamic systems from data, thus providing greater flexibility and accuracy in dealing with nonlinear and high-dimensional real-time data21,22,23. So far, DMD has been used for the characterization and quantification of underlying physical mechanisms as well as for the prediction of future system states in various fields, such as fluid flow24, power systems25, wind farm control26, and influenza epidemics27.

In this manuscript, we explore a DMD-based approach to understand the inherent dynamic difference between normal and abnormal gaits. If a segment of time series data can be accurately reconstructed by DMD, then the underlying dynamics can be captured and analyzed through the DMD triple. To facilitate the classification of gaits, we introduce a DMD triple index to distinguish between normal and abnormal gaits. Furthermore, from the time evolution of the DMD triple index, we are able to predict the onset of FoG early on using patient-dependent thresholds of the triple index.

Dynamic mode decomposition

In this section, we present the theory of dynamic mode decomposition22,28 together with delay embedding29 that approximates the underlying dynamics of time series as a linear system.

Assume that the data \(\left\{ x_0, x_1, \ldots , x_n\right\}\) are equally spaced in time from \(t=0\) to \(t=n\), where each \(x_i\in \mathbb {C}^m\) is a \(m-\)dimensional complex vector. Arrange the data into two matrices

$$\begin{aligned} \begin{aligned}&X_0:=\left[ \begin{array}{llll} x_0&x_1&\cdots&x_{n-1} \end{array}\right] \in \mathbb {C}^{m \times n}, \\&X_1:=\left[ \begin{array}{llll} x_1&x_2&\cdots&x_n \end{array}\right] \in \mathbb {C}^{m \times n}. \end{aligned} \end{aligned}$$

and postulate that the data have been generated by a discrete-time linear time-invariant system \(x_{t+1}=Ax_t, t=0,1, \ldots , n-1\), i.e, \(X_1=AX_0\).

The economic-size Singular Value Decomposition(SVD) of \(X_0\) reads as

$$\begin{aligned} \mathop {X_0}\limits _{m\times n}=\mathop {U}\limits _{m\times r}\cdot \mathop {\Sigma }\limits _{r\times r}\cdot \mathop {V^{*}}\limits _{r\times n} \end{aligned}$$

where r is the rank of the matrix \(X_0\). The standard DMD algorithm provides an optimal representation matrix \(K\in \mathbb {C}^{r \times r}\) of the matrix A on the basis spanned by the proper orthogonal decomposition modes of \(X_0\), i.e., \(A\approx UKU^*\). The optimal matrix K reads as \(K=U^*X_1V\Sigma ^{-1}\) which minimizes the Frobenius norm of the difference between \(X_1\) and \(AX_0\) with \(A=UKU^*\) and \(X_0=U\Sigma V^*\).

Thus, the dynamics in the r-dimensional subspace is determined by the matrix K, i.e., \(y_{t+1}=K y_t, ~y_t\in \mathbb {C}^{r}\).

If K has a full set of linearly independent unit-length eigenvectors \(\{z_1, \ldots ,\ z_r\}\), with corresponding eigenvalues \({\mu _1,\ \ldots ,\ \mu _r}\), then it can be decomposed into a diagonal coordinate form:

$$\begin{aligned} K=[z_1,\ \ldots ,\ z_r]\begin{bmatrix} \mu _1& 0 & 0\\ 0& \ddots & 0\\ 0& 0 & \mu _r \end{bmatrix}\left[ \begin{array}{c} w_1^*\\ \vdots \\ w_r^* \end{array}\right] :=ZD_{\mu }W^*, \end{aligned}$$

where \(w_i\) are eigenvectors of \(K^*\) with corresponding eigenvalues \(\bar{\mu _i}\) and scaled so that \(w^*_i z_j=\delta _{ij}\). Here, an asterisk denotes the complex-conjugate-transpose of a vector (matrix). Thus, the time evolution \(y_t=ZD^t_{\mu }W^* y_0=\sum _{i=1}^{r}z_i\mu _i^t w_i^* y_0\).

The matrix U can map \(y_t\) to a higher dimensional space \(\mathbb {C}^{m}\) via \(x_t\approx Uy_t\). Denote the amplitude \(\alpha _i=w^*_iy_0\), DMD modes \(\phi _i=Uz_i\) and spectrum \(s_i=\ln {\mu _i}\). Then we have the time evolution

$$\begin{aligned} x_t\approx Uy_t=\sum _{i=1}^{r}Uz_i\mu _i^t w_i^*y_0=\sum _{i=1}^r\alpha _i \phi _i e^{s_it}, \quad t\in \{0,\ \ldots ,r-1\} \end{aligned}$$
(1)

or in matrix form

$$\begin{aligned} \overbrace{[x_0,\ x_1,\ \ldots ,x_{n-1}]}^{X_0} \approx \overbrace{[\phi _1,\ \phi _2,\cdots \ \phi _r]}^{\Phi }\overbrace{\begin{bmatrix} \alpha _1 & 0 & 0 & 0\\ 0 & \alpha _2 & 0 & 0\\ 0 & 0 & \ddots & 0\\ 0 & 0 & 0 & \alpha _r \end{bmatrix}}^{D_a:=diag\{\alpha \}} \overbrace{\begin{bmatrix} 1 & e^{s_1} & \cdots & e^{s_1(n-1)}\\ 1 & e^{s_2} & \cdots & e^{s_2(n-1)}\\ \vdots & \vdots & \ddots & \vdots \\ 1 & e^{s_r} & \cdots & e^{s_r(n-1)} \end{bmatrix}}^{V_{\text{ and } }}. \end{aligned}$$
(2)

While minimizing \(\left\| X_0-\Phi D_\alpha V \right\| _F^2\) in the Frobenius norm, the optimal amplitude \(\alpha :=[\alpha _1\ \cdots \ \alpha _r]^{T}\) reads as28

$$\begin{aligned} \alpha _{\textrm{dmd}} = \left( \left( Z^* Z\right) \circ \left( \overline{V_{\text{ and } } V_{\text{ and } }^*}\right) \right) ^{-1} \overline{\operatorname {diag}\left( V_{\text{ and } } V \Sigma ^* Z\right) }. \end{aligned}$$
(3)

DMD with optimal amplitude from Eq. (3) approximates the underling dynamics as a linear evolution form in Eq. (1) or in matrix form in Eq. (2). We refer the triplet \(\{(s_k,\phi _k,\alpha _k)\}_{k=1}^{r}\) as the DMD triple. More details on numerical calculation of the DMD can refer to literature22,28.

Delay embedding

Delay embedding29 is commonly used for low dimensional time series reconstruction. For a time series \(X=(x_t,x_{t+1},\ldots ,x_{t+m-1})\) where \(x_i\) is a low dimensional vector in \(\mathbb {R}^k\), applying a delay-embedding of embedding time \(\tau\) gives the Hankel matrix

$$\begin{aligned} \mathbb {X} = \begin{bmatrix} x_t & x_{t+1} & \cdots & x_{t+m-\tau }\\ x_{t+1} & x_{t+2} & \cdots & x_{t+m-\tau +1}\\ \ldots & \ldots & \ddots & \ldots \\ x_{t+\tau -1} & x_{t+\tau } & \cdots & x_{t+m-1} \end{bmatrix} \end{aligned}$$
(4)

The first and the last \(m-\tau\) columns of \(\mathbb {X}\) are treated as two matrices \(X_{0,1}\) respectively when applying the above DMD.

Results

Time series reconstruction and prediction

In this manuscript, we use the published 3-D acceleration data30. In this section, we examine the DMD and the optimal delay embedding time for time series reconstruction. We compare the reconstruction performance with traditional methods using principal component analysis (PCA) and independent component analysis (ICA).

The vertical direction has been reported to have the highest variance and has been used successfully for prediction and classification in 3D coordinate systems measuring the force and moment during freezing of gait events31. Figure 1 shows an example of the temporal evolution of vertical acceleration at the ankle. By principal component analysis (PCA), similarly, we find that the vertical and forward ankle accelerations are the principal components. Reconstruction errors for the acceleration data using PCA and ICA are shown in Fig. 2a.

Figure 1
figure 1

Illustration of the vertical accelerations at ankle (other accelerations at different position/direction are not shown). Normal gait is shown in blue while freezing is shown in red. Note that data are shifted to have a mean of zero.

Figure 2
figure 2

a Reconstruction error (mean±sem) \(RecErr^{(2)}(X)\) of each patient using DMD, ICA, and PCA respectively. b Mean reconstruction error \(RecErr^{(2)}(X)\) in association with different embedding times. Reconstruction length (RL) is indicated for each curve. The second component is used for error calculation (see Materials and Methods for details).

To better reconstruct the data, we apply DMD in conjunction with time delay embedding. We enrich measurements \(x_t\) with time-shifted copies of itself, which are also known as delay coordinates. From Fig. 2b we find using a delay embedding time \(\tau =RL/10\) (i.e., one 10th of the reconstruction length RL) is optimal for data reconstruction. Moreover, in conjunction with the optimal delay embedding time, DMD using only the vertical ankle acceleration data shows better performance in data reconstruction compared to PCA and ICA, as shown in Fig. 2a.

Next, we test whether using all the 9-dimensional data can enhance the performance in data reconstruction. Figure 3a shows that the DMD using all 9-dimensional data outperforms the reconstruction using only the vertical ankle acceleration coordinate. In the following, we use all 9-dimensional data for DMD calculations.

We further test whether the DMD can accurately predict the time series for the near future. We show in Fig. 4 an example of DMD prediction and in Fig. 3b the error of the predicted time series for 100 steps forwards compared to the original data.

So far, the DMD with optimal delay embedding can reconstruct and predict acceleration signals. In the following section, we use the DMD triple to analyze normal and abnormal gaits.

Figure 3
figure 3

a The reconstruction error between real data and data approximated from DMD using the single component \(X^{(2)}\) (the ankle vertical direction, black bar) or 9 components X (grey bars). Each grey bar shows the error \(RecErr^{(i)}(X)\) computed for each \(i-\)th component from DMD reconstruction using all 9 components as input. b The prediction error \(PreErr^{(i)}(X)\) between real data and predicted data from DMD using all 9 components as input. Each grey bar shows the error for each \(i-\)th component comparison.

Figure 4
figure 4

Illustration of the time series reconstructed (dashed line) and predicted (solid red line) from DMD calculations. The first 13 s are excluded in the plot for visualization effect.

DMD triple of (ab)normal gaits

When segments of acceleration data are accurately reconstructed and predicted by DMD with small errors, the local time evolution can be effectively approximated and analyzed using the linear system derived from the DMD triple. In this section, we compare the DMD triple \(\{(s_k,\phi _k,\alpha _k)\}\) between normal and abnormal segments that are well approximated by DMD.

Figure 5 shows one example of the DMD triple. Each value in the amplitude vector reflects the contribution of the corresponding mode throughout the entire time series. A larger amplitude indicates a more pronounced impact of that mode on the system’s behavior. From Fig. 5a, we see that normal gaits have relatively larger amplitude, in particular the maximum of the amplitude. Moreover, there are relatively few large amplitudes for both normal and abnormal gaits, suggesting that the system dynamics can be approximated via a few important modes. Thus, we consider the maximal amplitude \(a=\max _j\{|a_j|\}\) as an indicator of the overall characteristics of the amplitude. Statistically, over all segments considered, normal gaits have significantly larger maximal amplitude a than abnormal gaits have (t-test, \(p<0.05)\)). Figure 5b shows the \(L^{\infty }\) norm of each mode in one DMD triple. It is noticeable that the mode norm is relatively stable for both normal and abnormal gaits and overall the mode norm in normal gaits is slightly larger than that in abnormal gaits. We consider the average of the mode norms \(m=\frac{1}{n}\sum _{j=1}^{n}\Vert \phi _j\Vert _{\infty }\) as an indicator for overall mode norms. Figure 5c shows that the spectrum between normal and abnormal gaits is not very distinct. Furthermore, from Fig. 5d, both normal and abnormal gaits have almost zero in the real part of the spectrum and the imaginary part spans over a similar range.

Figure 5
figure 5

Illustration of DMD triple for one normal and one abnormal gait. a All the amplitudes \(a_j\) in a descending order. b The \(L^{\infty }\) norm for each mode vector \(\phi _j\). c All the norms of spectra \(s_j\) while d The spectra in the complex plane. Note that the real parts of the spectra for both normal and abnormal gaits are close to zero. We remark here that modes and spectra are reordered according to amplitudes. Note that complex values of DMD triple may occur in the numerical calculation, norm of complex values are used in the plots.

The dynamics for (ab)normal states among different patients could be different, and we consider all selected segments for individual patients for analysis. Figure 6a, b show the overall mode norm m and the amplitude indicator a for all segments considered in one patient. Consistent with Fig. 5, normal gaits have a higher overall maximal amplitude and an overall mode norm compared to abnormal gaits. To distinguish between normal and abnormal gaits using the DMD triple, we introduce a triple index calculated as \(TI=ma\) (see Materials and Methods). From Fig. 6c, we can see that normal gaits have a relatively larger TI than abnormal gaits for the same patient, and the triple indexes between normal and abnormal gaits are well separated by a threshold obtained using the support vector machine (SVM) method32. Thus, we have patient-specific thresholds of TI separating normal and abnormal gaits for individual patients.

Figure 6
figure 6

Illustrations of triple index and threshold identification in one patient. a The maximal amplitude \(a=\max _j\{|a_j|\}\) for both normal and abnormal gaits. b The average of mode norms \(m=\frac{1}{n}\sum _j\Vert \phi _j\Vert _{\infty }\). c The triple index \(TI=ma\) with a threshold (solid black line) identified via SVM and the corresponding upper and lower margins (blue and red dashed lines).

Classification and prediction of FoG

In this section, we test the patient-specific thresholds obtained above to predict and classify FoG for all individual patients.

We use long continuous time-series segments that encompass at least 150 data points of normal data (which are necessary to appropriately compute the DMD triple for normal gaits), followed by abnormal data. We calculate the time evolution of the triple index using a moving window of 25 step size and a fixed reconstruction length of 150 step size; see Fig. 7 for two examples. Once the triple index is lower than the threshold obtained for the patient, we consider that gait freezing occurs. The triple index may fluctuate around the threshold. To better identify the freezing of gait from the changes of triple index over time, we consider that freezing is predicted in advance if the triple index at the actual medically identified transition time is smaller than the corresponding threshold (the specific gap is at least 0.5). We further calculate the time interval from the actual transition time to its closest time when the triple-index curve intersects with the threshold. Using this approach, among all potential segments, we can predict FoG early on for \(81.97\%\) of all possible segments, with an average early prediction time \(6.13\pm 0.82~s~(n=50)\). This early prediction time is better than the published 1–5 s33,34,35,36,37; see Table 1. We observe that, in certain instances, our predicted freezing time may slightly lag behind the actual transition time. However, those delay prediction times (\(1.03 \pm 0.26~s~(n=11)\)) are small.

For the classification performance using the triple index, we calculate the proportion of time points where the relationship between the triple index and the threshold line matches the classification in the original data, i.e., higher than the threshold is identified as normal while lower than the threshold is identified as abnormal (freezing). Our approach gives FoG classification accuracy of \(86.5\%\), sensitivity of \(88.1\%\), and specificity of \(87.9\%\). This is comparable to the performance reported, though not better than the best performance reported; see Table 1.

Figure 7
figure 7

The time evolution of triple index used to predict FoG in two patients. The red star indicates the predicted transition time to freeze and its time distance to the red lines (the transition time from normal to abnormal gait in the original data) gives the early prediction time. The blue line indicates the triple index threshold obtained between normal and abnormal gaits.

Table 1 Comparison of performance with other methods reported using the same original dataset30. Note that the values from other methods are sourced from corresponding original papers.

Considering that patients may interrupt their movements during experiments, identifying FoG from these stopping events can also be beneficial. Our proposed DMD triple index can identify FoG from stopping events if an appropriate threshold can be obtained. For example, in one patient (Fig. 8a, b) with all possible time segments analyzed, we achieved classification with 67.2% accuracy, 76.6% sensitivity, and 58.4% specificity. However, the triple indexes can be similar between FoG and stopping events; see Fig. 8c. In this case, the triple index fails to identity FoG from stopping events; see Fig. 8d for example.

Figure 8
figure 8

a and c The triple index with thresholds (red and black solid lines) and corresponding upper and lower margins (dashed lines) identified via SVM between normal and abnormal gaits as well as between abnormal and stopping events in two patients respectively. b and d show the time evolution of the triple index with thresholds (red and blue lines) obtained from (a) and (c) for two patients respectively. Blue vertical lines are the transition times in the original data.

Materials and methods

Dataset description

The acceleration FoG dataset used in this manuscript was published previously30. 3D acceleration data were captured by three wearable wireless acceleration sensors positioned on the ankle, thigh, and hip at 64 Hz of patients with a history of FoG. Patients were tested in the morning during the OFF stage of the medication cycle and asked to perform basic walking tasks designed to represent different aspects of daily walking.

Preprocess of the data

For a time series segment, its time average is subtracted before applying a delay-embedding dynamic mode decomposition. More precisely, suppose a time series \(X=(x_{0}, x_{1}, \ldots ,x_{n-1})\) of n data points, where each data point \(x_i\in \mathbb {R}^{k}\) is a \(k-\)dimensional vector. We adjust it by subtracting its time average and denote the adjusted time series as \(X'=(x'_0,x'_1,\ \cdots , x'_{n-1})\) where \(x_j'=x_j-\frac{1}{n}\sum _{i=0}^{n-1}{x_i}\).

ICA and PCA reconstruction

ICA reconstruction of acceleration data is performed using the fastica algorithm38 with three components of the largest weight norm, while the PCA reconstruction method is performed using the three most significant principal components.

DMD reconstruction and prediction

We combine delay embedding with DMD. More precisely, we use the Hankel matrix \(\mathbb {X}\) in Eq. (4) as an input to calculate the DMD triple \(\{(s_k,\phi _k,\alpha _k)\}_{k=1}^{r}\) and then use Eq. (2) to calculate the time evolution of signals \(\tilde{x}_t\) as

$$\begin{aligned} \begin{aligned} \begin{bmatrix} \tilde{x}_0 & \tilde{x}_{1} & \cdots & \tilde{x}_{n-\tau }\\ \tilde{x}_{1} & \tilde{x}_{2} & \cdots & \tilde{x}_{n-\tau +1}\\ \ldots & \ldots & \ddots & \ldots \\ \tilde{x}_{\tau -1} & \tilde{x}_{\tau } & \cdots & \tilde{x}_{n-1} \end{bmatrix} =[\phi _1,\ \phi _2,\cdots \ \phi _r]\begin{bmatrix} \alpha _1 & 0 & \cdots & 0\\ 0 & \alpha _2 & \cdots & 0\\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \cdots & \alpha _r \end{bmatrix} \begin{bmatrix} 1 & e^{s_1} & \cdots & e^{s_1(n-\tau -1)}\\ 1 & e^{s_2} & \cdots & e^{s_2(n-\tau -1)}\\ \vdots & \vdots & \ddots & \vdots \\ 1 & e^{s_r} & \cdots & e^{s_r(n-\tau -1)} \end{bmatrix} \end{aligned} \end{aligned}$$
(5)

We calculate the average of \(\tilde{x}_t\) from the above matrix with the same subscription along the antidiagonal and denote its average as \(\hat{x}_t\) as the eventual predicted signal at time t.

Error calculation

The error of the eventual output time evolution \(\hat{X}=[\hat{x}_0,\hat{x}_1,\hat{x}_2,\ldots ,\hat{x}_{n-1}]\) from DMD compared with the original data \(X'=(x'_0,x'_1,\ \cdots \,x'_{n-1})\) (with mean subtracted) for each component i is calculated as

$$\begin{aligned} error^{(i)}(X',\hat{X})=\frac{MAE(X'^{(i)},\hat{X}^{(i)})}{|{X'}_{0.85}^{(i)}-{X'}_{0.15}^{(i)}|} \end{aligned}$$

where \(X'^{(i)}\) represents the i-th row of matrix \(X'\), \({X'}_{0.85}^{(i)}\) and \({X'}_{0.15}^{(i)}\) refers to the 85th and 15th percentiles of its i-th row. Here \(MAE({X'}^{(i)},\hat{X}^{(i)})\) refers to the mean absolute error. Note that the maximal/minimal signals between different data segments could be largely different, we thus use 85th and 15th percentiles instead of maximum and minimum.

We refer to the error of the reconstructed time series as reconstruction error, denoted as \(RecErr^{(i)}(X)=error^{(i)}(X',X_{rec})\) where \(X_{rec}=[\hat{x}_0,\hat{x}_1,\hat{x}_2,\ldots ,\hat{x}_n]\). Also we refer to the error of predicted time series as the prediction error, denoted as \(PreErr^{(i)}(X)=error^{(i)}(X',X_{pre})\) where \(X_{pre}=[\hat{x}_{n+1},\ldots ,\hat{x}_m]\). In the manuscript, the error \(error^{(2)}\) is mostly used, and we omit the superscript without any ambiguity. We would like to remark that when referring to a single vector component, say \(i-\)th component, we denote the corresponding reconstruction and prediction errors as \(RecErr^{(i)}(X^{(i)})\) and \(PreErr^{(i)}(X^{(i)})\).

Triple index

DMD-based approach outputs the DMD triple \(\{s_k,\phi _k,\alpha _k\}\). We define \(m=\frac{1}{n}\sum _{k=1}^n \Vert \phi _k\Vert _{\infty }\) where \(\Vert \cdot \Vert _{\infty }\) refers to the infinity norm and is calculated as the maximum absolute value of its components and \(a=\max \{|a_1|,|a_2|,\ldots ,|a_n|\}\). We then define triple index \(TI(x) = m\cdot a\). The threshold of triple index differentiating normal and abnormal gaits is obtained by SVM with a linear kernel function.

To appropriately analyze the triple index between normal and abnormal gaits, we choose time series segments with reconstruction and prediction length that are best captured by DMD. More precisely, we split the long time series into segments of length L and use the first part of each segment (at least 200 data points) to calculate the DMD and the last n data points of the segment for DMD prediction. We calculate the prediction error for various L from \(300, 400, \cdots\), up to 2000 and various n from 100 to 500. Note that there are only a small number of abnormal events. In order to obtain reasonable comparable statistics of the DMD triple index between normal and abnormal segments, we choose a similar amount of normal and abnormal segments with small prediction errors. More precisely, the normal segments we selected have prediction errors less than 0.09 while the abnormal ones have prediction errors less than 1.47.

The above process is also used to identify FoG from stopping events in one patient where the triple index can be appropriately obtained through SVM. The time series segments of stopping state we selected have prediction errors less than 0.86 while the abnormal gaits have prediction errors less than 1.47.

Conclusion and discussion

Using DMD together with an optimal delay embedding time, we explore the gait acceleration dynamics underlying time series from patients with FoG. We identified that normal and abnormal gaits differ significantly in amplitudes whereas their spectra are similar. Based on this, we introduce a triple index \(TI=ma\), i.e., the multiplication of the maximal amplitude a and the average of mode norms m. By statistical analysis of the triple index between normal and abnormal gaits, we obtained individual threshold values for each patient. Using these patient-specific thresholds, we successfully classified FoG with an accuracy of 86.5%, a sensitivity of 88.1%, and a specificity of \(87.9\%\). Additionally, we can predict the onsets of FoG events within 6.13 s on average in advance. This prediction time in advance is better than the published early prediction time 1–5 s33,34,35,36,37.

In the triple index \(TI=ma\), a high value of m may indicate that energy is highly concentrated in certain modalities rather than evenly distributed across modalities. This may be due to some specific physiological or pathological conditions. Also, a high amplitude a indicates the presence of dominant modes with corresponding amplitude, which might be associated with the coordination and stability of a healthy gait. In contrast, a low amplitude a in pathological gait might be related to motor impairments leading to gait disharmony and dynamic imbalance, affecting the smoothness and efficiency of walking. Taking together, \(TI=ma\) somehow relates to the maximal signal among the time evolution, which has been considered as one of the features in machine learning methods39. Here using the DMD approach, we simply use TI to identify FoG without referring to other features.

Moreover, this DMD-based approach has the potential to be applied to real-time patient-specific FoG prediction during movement. Once an appropriate threshold of the triple index is identified, one can classify and predict FoG from the evolution of the triple index using a moving window. In this manuscript, a moving window with 0.4 s moving speed was used. A finer moving window could be used to refine the FoG onset time prediction, though this could be computationally heavy.

Identifying FoG from stopping events might also be useful. However, the current triple index based on DMD would fail to identify FoG if the triple indexes are statistically similar between FoG and stopping events. Then, constructions of more complex indexes or features from DMD triplets are necessary to improve the identification of FoG.

Another improvement on this DMD-based approach for real-time application could involve the identification of optimal amount of time series segments required to obtain reliable triple index threshold. Such optimization problem is also critical in machine learning and deep learning methods40.