Method and system for gait detection of a person

11540748 · 2023-01-03

Assignee

Inventors

Cpc classification

International classification

Abstract

A method of detecting gaits of an individual with a sensor worn by the individual. The sensor includes an accelerometer and a processing unit. The method includes obtaining an signal representing one or more sensor acceleration values; sampling the signal to obtain a sampled signal; segmenting the sampled signal into windows to obtain a segmented acceleration signal; extracting a feature set from the segmented acceleration signal; determining a probability value, for a respective window, n, where n is a positive integer greater than zero, the probability value giving an estimated probability value of gait occurrence for the individual during the respective window; modifying the estimated probability value by using a histogram of previously detected gait durations to obtain a modified probability value; and determining, based on the modified probability value, and by using a determination threshold whether or not the respective window represents gait occurrence.

Claims

1. A method of detecting gaits of an individual by using a gait detection sensor mounted on a wristwatch and worn by the individual, the gait detection sensor comprising an accelerometer and processing circuitry, the method comprising: obtaining, by the accelerometer of the gait detection sensor, an acceleration signal representing one or more sensor acceleration values; sampling, by the processing circuitry of the gait detection sensor, the acceleration signal to obtain a sampled acceleration signal; segmenting, by the processing circuitry of the gait detection sensor, the sampled acceleration signal into a given number of windows of a given duration to obtain a segmented acceleration signal; extracting, by the processing circuitry of the gait detection sensor, a feature set from the segmented acceleration signal, the feature set characterising the acceleration signal; determining, by the processing circuitry of the gait detection sensor, a probability value using a trained probability estimator using the extracted feature set, for a respective window, n, where n is a positive integer greater than zero, the probability value giving an estimated probability value of gait occurrence for the individual during the respective window; modifying, by the processing circuitry of the gait detection sensor, the estimated probability value by using a histogram of previously detected gait durations to obtain a modified probability value; determining, by the processing circuitry of the gait detection sensor, based on the modified probability value, and by using a determination threshold whether or not the respective window represents gait occurrence; and displaying the gait occurrence or non-gait occurrence on the wristwatch, wherein the modified probability value is obtained as:
P.sub.T[n]=min(max(P.sub.Bayes[n]+ψ{tilde over (P)}.sub.q[n]=q[n−1]d[n−1],0),1), where P.sub.Bayes[n] is the estimated probability value of gait occurrence for the individual during the respective window, {tilde over (P)}.sub.q[n]=q[n−1]d[n−1] is a probability with a range smaller than 1 of having the same gait activity in window n as in the previous window n−1, d denotes activity duration, q denotes activity type, and ψ = { + 1 , q = gait - 1 , q = nongait .

2. The method according to claim 1, wherein the probability estimator comprises a Bayes estimator.

3. The method according to claim 1, wherein the extracted feature set comprises at least one of the following feature categories: intensity of the acceleration signal, periodicity of the acceleration signal, posture of the individual at a sensor location, and noisiness of the acceleration signal, and at least one of the feature categories comprises one or more biomechanical features.

4. The method according to claim 3, wherein the one or more biomechanical features comprise at least one of the following features: intensity of acceleration norm, mean of acceleration norm, maximum peak of normalised autocorrelation function of acceleration norm, peak-to-peak value of normalised autocorrelation function of acceleration norm, maximum peak of spectrum of acceleration norm, sharpness of maximum peak of spectrum of acceleration norm, step frequency of gait, posture of the individual at a sensor location, ratio of energy of high to low frequencies of acceleration norm, zero crossing rate of mean-removed acceleration norm, spectral edge frequency of acceleration norm, randomness score of acceleration norm, and kurtosis of acceleration norm.

5. The method according to claim 1, wherein the segmented acceleration signal comprises three substantially orthogonal acceleration components (A.sub.z [n], A.sub.y [n], A.sub.z [n]).

6. The method according to claim 1, further comprising training the probability estimator by using a training data set prior to determining the estimated probability value.

7. The method according to claim 1, wherein the accelerometer is worn on a wrist of the individual.

8. The method according to claim 1, wherein the determination is made based on the acceleration signal from a single accelerometer only.

9. A method of detecting gaits of an individual by using a gait detection sensor mounted on a wristwatch and worn by the individual, the gait detection sensor comprising an accelerometer and processing circuitry, the method comprising: obtaining, by the accelerometer of the gait detection sensor, an acceleration signal representing one or more sensor acceleration values; sampling, by the processing circuitry of the gait detection sensor, the acceleration signal to obtain a sampled acceleration signal; segmenting, by the processing circuitry of the gait detection sensor, the sampled acceleration signal into a given number of windows of a given duration to obtain a segmented acceleration signal; extracting, by the processing circuitry of the gait detection sensor, a feature set from the segmented acceleration signal, the feature set characterising the acceleration signal; determining, by the processing circuitry of the gait detection sensor, a probability value using a trained probability estimator using the extracted feature set, for a respective window, n, where n is a positive integer greater than zero, the probability value giving an estimated probability value of gait occurrence for the individual during the respective window; modifying, by the processing circuitry of the gait detection sensor, the estimated probability value by using a histogram of previously detected gait durations to obtain a modified probability value; determining, by the processing circuitry of the gait detection sensor, based on the modified probability value, and by using a determination threshold whether or not the respective window represents gait occurrence; and displaying the gait occurrence or non-gait occurrence on the wristwatch, wherein if the modified probability value, P.sub.T [n], is determined to be in an ambiguous zone, such that a≤P.sub.T [n]≤(1−a), then the processing circuitry checks a period duration between a last non-ambiguous window, m, and a next non-ambiguous window, k, such that m<n<k, in the non-ambiguous window P.sub.T[n]>1−a, or P.sub.T[n]<a, then if k−m+1≤b, where b is a positive integer, then the determination threshold is changed from 0.5 to 1−mean(P.sub.T [m<n<k]).

10. The method according to claim 9, wherein a is between 0.1 and 0.3, while b is between 5 and 15.

11. The method according to claim 9, wherein if the condition k−m+1≤b is not fulfilled, the determination threshold is set to 0.5+c for gait occurrence, and is set to 0.5−c for non-gait occurrence such that gait is determined to occur if P.sub.T[n] >(0.5+c), while non-gait is determined to occur if P.sub.T[n]<(0.5−c), and for (0.5−c)≤P.sub.T [n]≤(0.5+c), the last non-ambiguous determination is assigned to window n.

12. The method according to claim 11, wherein c is between 0.02 and 0.2.

13. The method according to claim 10, wherein a is between 0.15 and 0.25.

14. The method according to claim 10, wherein b is between 8 and 12.

15. The method according to claim 12, wherein c is between 0.05 and 0.15.

16. A gait detection sensor for detecting gaits of an individual mounted on a wristwatch and worn by the individual, the gait detection sensor comprising: an accelerometer configured to obtain an acceleration signal representing one or more sensor acceleration values; and processing circuitry configured to sample the acceleration signal to obtain a sampled acceleration signal, segment the sampled acceleration signal into a given number of windows of a given duration to obtain a segmented acceleration signal, extract a feature set from the segmented acceleration signal, the feature set characterising the acceleration signal, detect a probability value, by using a trained probability estimator using the extracted feature set, for a respective window, n, where n is a positive integer greater than zero, the probability value giving an estimated probability value of gait occurrence for the individual during the respective window, modify the estimated probability value by using a histogram of previously detected gait durations to obtain a modified probability value, and detect, based on the modified probability value, and by using a determination threshold whether or not the respective window represents gait occurrence, the gait occurrence or non-gait occurrence being displayed on the wristwatch, wherein the modified probability value is obtained as:
P.sub.T[n]=min(max(P.sub.Bayes[n]+ψ{tilde over (P)}.sub.q[n]=q[n−1]d[n−1],0),1), where P.sub.Bayes[n] is the estimated probability value of gait occurrence for the individual during the respective window, {tilde over (P)}.sub.q[n]=q[n−1]d[n−1] is a probability with a range smaller than 1 of having the same gait activity in window n as in the previous window n−1, d denotes activity duration, q denotes activity type, and ψ = { + 1 , q = gait - 1 , q = nongait .

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) Other features and advantages of the invention will become apparent from the following description of a non-limiting example embodiment, with reference to the appended drawings, in which:

(2) FIG. 1 is a simplified block diagram illustrating an example gait detection sensor system according to an embodiment of the present invention;

(3) FIG. 2 schematically illustrates how wrist posture may be defined in the context of the present invention;

(4) FIG. 3 is a graph illustrating definitions for temporal-based probability modification, which is used in the process of detecting gaits according to the present invention;

(5) FIG. 4 is a graph illustrating definitions for smart decision making, which may be used in the process of detecting gaits according to the present invention; and

(6) FIG. 5 is a flow chart summarising the method steps of an example process of detecting gaits according to the present invention.

DETAILED DESCRIPTION OF THE INVENTION

(7) An embodiment of the present invention will now be described in detail with reference to the attached figures. The invention will be described in the context of a gait detection system using a wrist accelerometer. However, the teachings of the invention are not limited to this environment or application. For instance, the accelerometer does not have to be wrist-worn. Identical or corresponding functional and structural elements which appear in different drawings are assigned the same reference numerals. As utilised herein, “and/or” means any one or more of the items in the list joined by “and/or”. As an example, “x and/or y” means any element of the three-element set {(x), (y), (x, y)}. In other words, “x and/or y” means “one or both of x and y.” As another example, “x, y, and/or z” means any element of the seven-element set {(x), (y), (z), (x, y), (x, z), (y, z), (x, y, z)}. In other words, “x, y and/or z” means “one or more of x, y, and z.” Furthermore, the term “comprise” is used herein as an open-ended term. This means that the object encompasses all the elements listed, but may also include additional, unnamed elements. Thus, the word “comprise” is interpreted by the broader meaning “include”, “contain” or “comprehend”.

(8) FIG. 1 shows a block diagram of the proposed sensor system 1, also referred to simply as a sensor. The sensor system is in this example designed to be wrist-worn. The sensor 1 of FIG. 1 shows six functional blocks or units as explained later in more detail, namely an accelerometer 3, a segmentation unit 5, a feature extraction unit 7, a probability estimator 9, which in this example is a Bayes estimator, a temporal-based probability modification unit 11 and a smart decision making unit 13. Instead of using a Bayes estimator as the probability estimator, it would be possible to use any suitable probability estimator instead, such as a decision tree, an artificial neural network, a support vector machine etc. Furthermore, it is to be noted that the operation of these functional units could be integrated into fewer than six units. For example, the different functionalities of these blocks could all be integrated into the accelerometer 3, which in this example is configured to measure accelerations in a three-dimensional (3D) space. The measured 3D accelerometer signal (A.sub.x,A.sub.y,A.sub.z) from the accelerometer is fed into the segmentation unit 5, which is configured to sample and segment the accelerometer signal. The segmented signal is then fed into the feature extraction unit 7, which is arranged to extract relevant features from the segmented accelerometer signal. A feature vector H[n] (where n denotes a window number resulting from the segmentation) is then fed into the Bayes estimator 9, which is arranged to estimate the probability of gait occurrence P.sub.Bayes[n], and which is trained by at least some of the extracted features and their corresponding labels (gait occurrence or non-gait occurrence) from a training data set. In estimation and decision theory, a Bayes estimator or a Bayes action is an estimator or decision rule, which minimises the posterior expected value of a loss function (i.e. the posterior expected loss). Equivalently, it can be considered to maximise the posterior expectation of a utility function. An alternative way of formulating an estimator within Bayesian statistics would be maximum a posteriori estimation. An estimator can be understood to be a rule for calculating an estimate of a given quantity based on observed data. Thus, the rule (the estimator), the quantity of interest (the estimand) and its result (the estimate) can be distinguished.

(9) The Bayes estimator is advantageously trained prior to applying the algorithm proposed below. For the training, another algorithm and sensor are advantageously used than the ones proposed in the present invention. The training data are collected from a group of individuals, such that the Bayes estimator may then be trained by following the principles of cross-validation, for instance.

(10) The probability of gait occurrence P.sub.Bayes[n] is then fed into the temporal-based probability modification unit 11, which is configured to utilise temporal information of past detected activities, in this example from the training data set to modify the gait occurrence probability based on the histogram of gait durations in real-life situations. In this context by a histogram may be understood an estimate of probability distribution for gate duration or non-gate duration. The resulting probability value P.sub.T[n] is then fed into the smart decision making unit 13, which is configured to give a classification or label “gait” or “non-gait” using a smart rule according to the probability resulted from the previous steps. In the following, a more detailed description of the data processing steps is provided.

(11) Segmentation

(12) The segmentation unit 5 first samples the received continuous time domain acceleration signal. It is to be noted that the various acceleration signals are advantageously sampled by using the same sampling frequency, for example between 100 Hz and 1000 Hz. In this specific example, a sampling frequency of 200 Hz is used. Then, the segmentation unit 5 employs a moving window with a given time duration, in this specific example with a duration of 6 seconds, with a given time overlap, in this specific example with a 5-second overlap, to generate segmented wrist acceleration signals (A.sub.x[n],A.sub.y[n],A.sub.z[n]), where n refers to a window number. It was experimentally found out that the window length of 6 seconds optimises the performance. The window length is thus advantageously between 1 seconds and 10 seconds or more specifically between 4 seconds and 8 seconds. This amount of data is short enough to have required time resolution and long enough to have sufficient data for frequency analysis.

(13) Feature Extraction

(14) A number of features were defined or identified based on biomechanics of wrist movements, such as intensity, periodicity, posture, and noisiness, to highlight intrinsic differences between gait and non-gait bouts from a wrist movement point of view. Least absolute shrinkage and selection operator (LASSO) feature selection method according to “J. Tang, S. Alelyani, and H. Liu, “Feature Selection for Classification: A Review,” Data Classif. Algorithms Appl., p. 37, 2014” was used to specify the best possible feature set to optimise the performance on the training dataset. Interestingly, LASSO selected a set of features which covers all biomechanical criteria (i.e. intensity, periodicity, posture, noisiness) used to define features. Totally, 13 features were chosen in the four categories as follows:

(15) Intensity-based features: One key difference between gait and non-gait periods is the intensity of the wrist acceleration signal. In order to extract this information, the following features were computed:

(16) NI[n]: This is the intensity of acceleration norm calculated according to Equation 1.

(17) NI [ n ] = log 10 ( 1 N .Math. i = 1 N SA [ f i ] ) , ( 1 )
where SA[f.sub.i] is the amplitude of spectrum acceleration norm computed according to Equations 2 and 3. In order to estimate the spectrum, N-point Fast Fourier Transform (FFT) with Blackman windowing was used, where N is the number of samples within a time window (i.e. N=1200 in the present case). Moreover, f.sub.i refers to frequency resolution of the method which is shown in Equation 4. A logarithmic function was used in order to shorten the range of this feature, as well as heavy tail of its histogram, which is proper for further Bayesian modelling.
SA[f]=|FFT(A[n])|  (2)
A[n]=√{square root over (A.sub.x[n].sup.2+A.sub.y[n].sup.2+A.sub.z[n].sup.2)}  (3)
f.sub.i={0,0.17,0.34, . . . ,100}1≤i≤1200  (4)

(18) MeanA[n]: This is mean value of acceleration norm within a time window.

(19) Periodicity-based features: Considering the cyclic nature of the gait, 5 features related to the periodicity of acceleration signals was included as follows:

(20) NACFmax[n]: Autocorrelation function of acceleration norm computed and normalised to the first sample (i.e. sample of zero lag). Then, its maximum peak, NACFmax, excluding the zero lag sample, was reported for each window. This feature may thus be called maximum peak of normalised autocorrelation function of acceleration norm.

(21) NACFp2p[n]: This feature is the peak-to-peak value of maximum peak and valley of the normalised autocorrelation function, excluding the zero lag sample. In other words, this feature is peak-to-peak value of normalised autocorrelation function of acceleration norm.

(22) SAmax[n]: Normalised spectrum of acceleration norm (NSA) was estimated using SA[f.sub.i] according to Equation 5 and its maximum peak amplitude was computed as SAmax[n]. This feature is thus maximum peak of spectrum of acceleration norm.

(23) N S A [ f i ] = S A [ f i ] Σ j = 1 N SA [ f i ] ( 5 )

(24) DomSAmax[n]: A score was designed which showed how much the maximum peak of NSA was sharp compared to its neighbouring samples. This score can be called a sharpness of the maximum peak of NSA. This feature was computed according to Equation 6, where f.sub.max, f.sub.max−1 and f.sub.max+1 refer to the frequencies of maximum peak of NSA, a sample before and after, respectively. This feature is thus sharpness of maximum peak of spectrum of acceleration norm.

(25) DomSAmax [ n ] = N S A .Math. f max .Math. Σ f = { f mαx - 1 , f max , f max + 1 } N S A [ f ] ( 6 )

(26) Cad[n]: Not only the periodicity of the signal, but also the value of the period itself is an important piece of information to distinguish between gait and non-gait periods. Generally, stride frequency (i.e. fundamental frequency of the gait signal) is bounded in a short range around 1 Hz (i.e. between 0.3 Hz and 2.5 Hz). The fundamental frequency of acceleration signal was computed using the algorithm presented in “B. Fasel et al., “A wrist sensor and algorithm to determine instantaneous walking cadence and speed in daily life walking,” Med. Biol. Eng. Comput., vol. 55, pp. 1773-1785, 2017”. This feature is thus cadence or step frequency (steps/min) of gait.

(27) Posture-based features: During gait (i.e. running or walking), the wrist generally has a specific predictable posture, while during non-gait periods, the posture is mainly unpredictable and irregular. Consequently, extracting information about the posture of the wrist should be useful for gait bouts detection. We defined 0 as the angle between y-axis of the accelerometer on the wrist and the global horizontal plane <x.sub.Global,y.sub.Global> (the plane made by x and y axes of the global coordinate system and perpendicular to the gravity vector, see FIG. 2). By assuming that the sensor can only turn around the wrist, y-axis of the sensor was almost aligned with the longitudinal axis of the wrist. According to FIG. 2 and if the dynamic acceleration of the wrist movement remains low, the projection of gravity vector on y-axis of accelerometer and the plane defined by x-axis and z-axis of the sensor (<x, z> are:
A.sub.y[n]=g sin(θ[n])  (7)
A.sub.<x,z>[n]=√{square root over (A.sub.x[n].sup.2+A.sub.z[n].sup.2)}=g cos(θ[n]),  (8)
where g denotes the gravity acceleration, and A.sub.<x,z>[n] is the amplitude of resultant acceleration vector on the plane <x, z> for window n. Consequently, the angle θ[n] can be estimated through Equation 9.

(28) θ [ n ] = arctan ( A y [ n ] A x [ n ] 2 + A z [ n ] 2 ) ( 9 )
The proposed postured-based feature, i.e. the posture of the wrist, is defined as:
WristPost[n]=mean(sin(θ[n]))  (10)

(29) Noisiness-based features: In gait, acceleration signal is pseudo-cyclic with energy mostly in the low frequency band, while in non-gait periods the signal is rather random and erratic with energy distributed in a larger frequency band. Therefore, like signal-to-noise ratio (SNR), the gait/non-gait power ratio is expected to be higher during gait than non-gait periods. Consequently, several features were devised to capture information about the level of “noise” (i.e. non-gait period) in the signal (i.e. gait period). These features are as follow:

(30) HLR[n]=high to low frequency ratio: We defined the ratio between the intensities present at high frequencies and at low frequencies as a feature according to Equation 11. The frequency threshold was experimentally set to 3.5 Hz to optimise the performance However, it is possible to use another frequency threshold instead. The threshold is advantageously between 1 Hz and 10 Hz or more specifically between 2 Hz and 5 Hz. This feature is thus high to low frequencies ratio of energy of acceleration norm.

(31) H L R [ n ] = Σ f i 3.5 Hz SA [ f i ] Σ 0 < f i < 3.5 Hz SA [ f i ] ( 11 )

(32) ZCR[n]: Zero crossing rate should be higher in acceleration norm during non-gait period due to noisy and erratic nature of wrist movements. First, mean value of the acceleration norm within the time window was removed. Then, any linear trends in the resulted signal were discarded, for instance by using “deterend” function in MATLAB®. Eventually, the number of zero crosses was counted as feature ZCR[n]. This feature is thus zero crossing rate of mean-removed acceleration norm.

(33) SEF[n]: As it is shown in Equation 12, spectral edge frequency estimates the frequency where a (%) of the energy of the signal is observed below that frequency “J. C. Drummond, C. A. Brann, D. E. Perkins, and D. E. Wolfe, “A comparison of median frequency, spectral edge frequency, a frequency band power ratio, total power, and dominance shift in the determination of depth of anesthesia,” Acta Anaesthesiol. Scand., vol. 35, no. 8, pp. 693-699, 1991”. We found that α=70(%) provided the best performance in the present application. This feature may be called spectral edge frequency of acceleration norm.

(34) SEF [ n ] = min f i ( .Math. "\[LeftBracketingBar]" .Math. j = 1 i NSA [ f i ] - 100 .Math. "\[RightBracketingBar]" ) ( 12 )

(35) RandA[n]: By assuming that the wrist acceleration signal is less random during gait than non-gait periods, we defined RandA[n] feature according to an autocorrelation-based test presented in “P. J. Brockwell, R. A. Davis, and M. V. Calder, Introduction to time series and forecasting, vol. 2. Springer, 2002” to measure how much the signal is random. According to this test, if a time series comes from a stationary random process (which is almost the case for acceleration norm of non-gait periods within a short window of 6 seconds), samples of autocorrelation of the time series will be mainly bounded between ±1.96/√{square root over (N)} thresholds where N is the number of samples within a time window (i.e. 1200). We defined RandA[n] as the percentage of autocorrelation samples outside the range of ±1.96/√{square root over (N)}. The higher the value of RandA[n] is, the less random the signal is. This feature may thus be defined as randomness score of acceleration norm.

(36) KurtosisA[n]: Kurtosis is a well-known tool to measure how much the distribution of data is outlier-prone “P. H. Westfall, “Kurtosis as peakedness, 1905-2014. RIP,” Am. Stat., vol. 68, no. 3, pp. 191-195, 2014”. We hypothesized that the acceleration norm of non-gait periods contains more outliers than gait due to higher randomness of the signal. Therefore, the kurtosis of the acceleration norm within a time window was computed as a feature.

(37) Eventually, for each time window n, H[n] was built as the feature vector including all selected features. However, it would be possible to include in the feature vector only some of the above features or even some other features in addition or instead.

(38) Bayes Estimator

(39) The probability of gait occurrence for each window was estimated by using the Bayes estimator according to Equation 13:

(40) P Bayes [ n ] = P G | H [ n ] = P G P H [ n ] | G P G P H [ n ] | G + P N G P H [ n ] | NG , ( 13 )
where P.sub.G|H[n] is the probability of gait occurrence condition on the observed feature vector, H[n]. In addition, P.sub.H[n]|G and P.sub.H[n]|NG are probabilities of occurrence of having H[n] in gait (G) class and non-gait (NG) class, respectively. Furthermore, P.sub.G and P.sub.NG are respectively prior probabilities of gait and non-gait happening. We considered multivariate multinomial distributions (“mvmn” in MATLAB®) for the Bayes estimator. Furthermore, in order to manage the intrinsic imbalances of samples between gait and non-gait periods (in real-world situations, non-gait samples are relatively more frequent than gait ones), we took advantage of Laplace smoothing parameter, “A. Y. Liu and C. E. Martin, “Smoothing multinomial naïve bayes in the presence of imbalance,” in International Workshop on Machine Learning and Data Mining in Pattern Recognition, 2011, pp. 46-59”, in computation of the prior probabilities as follows:

(41) P G = N G + l N G + N N G + 2 l ( 14 ) P N G = N N G + l N G + N N G + 2 l , ( 15 )
where N.sub.NG, and N.sub.G are the total number of samples or windows observed for non-gait and gait periods. 1 is a smoothing parameter fixed empirically to (N.sub.G−N.sub.NG)/10.

(42) Temporal-Based Probability Modification

(43) We took advantage of information of past detected activities to increase the certainty of the decision made for the current activity. As shown in FIG. 3, let us define q[n−1] and d[n−1] as the type and the duration of the last activity, respectively, detected up to window n−1 (i.e. the last activity was started from window n−d[n−1] and lasted up to window n−1 included) and P.sub.q[n]=q[n−1]|d[n−1] denotes the probability of having the same activity in window n (i.e. q[n]=q[n−1]) as in the previous window, knowing the type (q[n−1]) and duration (d[n−1]) of the last activity. To this end, two exponential functions (see Equations 16 and 17) were fitted into probability density functions of duration of gait and non-gait bouts in daily life, obtained from the training session of the method. Parameters (i.e. β.sub.G, γ.sub.G, τ.sub.G, etc.) in Equations 16 and 17 are thus obtained from the respective histogram of gait durations and non-gait durations, respectively. Then, since the probability given by Bayes (P.sub.Bayes) was generally more reliable than P.sub.q[n]=q[n−1]|d[n−1] due to using several features obtained from the acceleration signal, the modification effect of P.sub.q└n┘=q└n−1┘|d[└n−1┘] was reduced by mapping that into a shorter range of [0.05, 0.20] (experimentally adjusted) by using Equation 18 to obtain {tilde over (P)}.sub.q└n┘=q└n−1┘|d└n−1┘. However, another suitable range could be used instead. Eventually, the modified probability of gait occurrence (P.sub.T) of time window n was computed by using Equation 19, where “min-max” function was used to limit the probability to the range of [0,1].
P.sub.q[n]=G|d[n−1]=β.sub.Ge.sup.−τ.sup.G.sup.(d└n−1┘+1)+γ.sub.Ge.sup.−ρ.sup.G.sup.(d└n−1┘+1)  (16)
P.sub.q[n]=NG|d[n−1]=β.sub.NGe.sup.−τ.sup.NG.sup.(d[n−1]+1)+γ.sub.NGe.sup.−ρ.sup.NG.sup.(d[n−1]+1)  (17)
{tilde over (P)}.sub.q[n]=q[n−1]d[n−1]=0.15P.sub.q[n]=q[n−1]d[n−1]+0.05  (18)
P.sub.T[n]=min(max(P.sub.Bayes[n]+ψ{tilde over (P)}.sub.q[n]=q[n−1]d[n−1],0),1),  (19)
where ψ was defined as follows:

(44) ψ = { + 1 , q = G - 1 , q = NG ( 20 )

(45) Smart Decision Making

(46) When P.sub.T[n] is far enough from 0.5, it is easy to decide if the activity of the window n is gait or not. However, making the decision is challenging when P.sub.T[n] is close to 0.5, which can happen in the proximity of transients between the activities since a part of the feature window is gait and the other part is non-gait. Consequently, the following algorithm was designed to make a smart decision based on P.sub.T[n]. If P.sub.T[n]<0.3 and P.sub.T[n]>0.7, the decisions were N.sub.G and G, respectively. Here, the decision refers to the label L [n] for the current window n. These windows can be called reliable windows. On the other hand, if 0.3≤P.sub.T[n]≤0.7 (called ambiguous windows or uncertainty zone), then we checked the period, or more specifically its duration, between the last and next reliable windows. For instance, for ambiguous window n, windows m and k are the last and next reliable windows, respectively (m<n<k, see FIG. 4). If k−m+1≤10, then the threshold of decision making was changed from conventional 0.5 to 1−mean(P.sub.T[m<n<k]). Otherwise, decisions were G and N.sub.G if P.sub.T[n]>0.6 or P.sub.T[n]<0.4, respectively and for 0.4≤P.sub.T[n]≤0.6, the last reliable decision was assigned to window n (i.e. L[n]=L[m]). It is to be noted that other suitable parameter values could be used instead of the above parameter values. The algorithm below briefly explains the procedure of the proposed smart decision making.

(47) TABLE-US-00001 START IF P.sub.T[n] > 0.7, THEN L[n] = G IF P.sub.T[n] < 0.3, THEN L[n] = NG IF 0.3 ≤ P.sub.T[n] ≤ 0.7, THEN IF k − m + 1 ≤ 10, THEN IF L[m] = L[k], THEN L[n] = L[m] = L[k] ELSE, THEN IF P.sub.T[n] > 1 − mean(P.sub.T[m < n < k]), THEN L[n] = G ELSE, THEN L[n] = NG ELSE IF k − m + 1 > 10 IF P.sub.T[n] > 0.6, THEN L[n] = G ELSE IF P.sub.T[n] < 0.4, THEN L[n] = NG ELSE L[n] = L[m] END

(48) The above process is summarised in the flow chart of FIG. 5. In step 101, the accelerometer 3 takes measurements to obtain one or more acceleration signals, which are continuous signals in the time domain. In step 103, the segmentation unit 5 samples these continuous time domain signals and in step 105 segments them. In step 107, the feature extraction unit 7 extracts a set of feature vectors from the segmented acceleration signal for a respective window. In step 109, the Bayes estimator 9 uses the extracted feature set and determines a gait probability occurrence value for the respective window. In step 111, the temporal-based probability modification unit 11 modifies the probability value obtained in step 109 to improve the precision of the probability value. In step 113, the smart decision making unit 13 labels the modified probability value obtained in step 111. The modified probability value is labelled either as “gait” or “non-gait”. It is to be noted that the smart decision making unit 13 is optional and the label could be derived from the modified probability value directly for instance so that a (modified) probability value greater than 0.5 would be interpreted as “gait”, while other probability values would be labelled as “non-gait”.

(49) The principles of an accurate and precise window-based algorithm were explained above to recognise gait bouts and estimate their duration using a single low-power accelerometer mounted on the wrist in unsupervised real-world situations. Probability density functions of the biomechanically-derived features (according to i.e. intensity, periodicity, posture, and noisiness) illustrate a high ability for the selected features to distinguish between gait and non-gait bouts. The LASSO scores show that NACFmax, SAmax, NI and WristPost are among the best or meaningful features in this application. In addition, the periodicity was a better criterion for distinguishing between gait and non-gait bouts.

(50) Using only one low-power accelerometer, optimising features computation and using some implementation techniques, an optimised implementation of the proposed sensor showed a very low power consumption (135.5 mAh per year) in real-world conditions. The implemented method offers around one year of continuous effective measurement of gait with a primary normal battery cell (250 mAh). This is a great advantage since many medical and sport applications crucially need long-term measurements of physical activities in real-life situations. The simplicity of the proposed method and its low computation time (1 ms per window) offers the possibility of a real-time and on-board analysis of physical activities which provides the possibility of generating real-time feedback that can be important in many applications, such as intervention programs.

(51) The proposed method, validated in unsupervised daily situations over young and elderly people, offers a high potential to be used in clinical settings for the monitoring of patients with activity restrictions due to diseases. As an example, the system may be used among a large population of older adults to analyse the effect of various factors such as aging, obesity, and frailty on the quality and quantity of physical activities in daily life situations. More importantly, the proposed method can be used as a primary stage for many algorithms in the analysis of physical activities, where accurate detection of gait bouts is needed, such as gait cadence estimation, and gait speed estimation.

(52) To conclude, the present invention in the above example presented an accurate and precise method for detection of gait bouts in free-living situations. Biomechanically-derived features were integrated with a naïve Bayes classifier followed by two physically-meaningful post-classification steps to deal with the difficulties posed by challenging movements of the wrist in real-world situations. Such a wrist-based, low-power, and calibration-free (no calibration phase is needed for sensor-to-body alignment) system offers a versatile measurement tool with high usability and autonomy, perfect for long-term monitoring of physical activities in free-living situations. In addition, the simplicity of the proposed method and being real-time allows implementing the method inside a wristwatch, which protects privacy of the user. This also provides the possibility of giving online meaningful feedback to the user in daily life to promote a more active life-style.

(53) While the invention has been illustrated and described in detail in the drawings and foregoing description, such illustration and description are to be considered illustrative or exemplary and not restrictive, the invention being not limited to the disclosed embodiment. Other embodiments and variants are understood, and can be achieved by those skilled in the art when carrying out the claimed invention, based on a study of the drawings, the disclosure and the appended claims.

(54) In the claims, the word “comprising” does not exclude other elements or steps, and the indefinite article “a” or “an” does not exclude a plurality. The mere fact that different features are recited in mutually different dependent claims does not indicate that a combination of these features cannot be advantageously used. Any reference signs in the claims should not be construed as limiting the scope of the invention.