Abstract
Falls are critical events for human health due to the associated risk of physical and psychological injuries. Several fallrelated systems have been developed in order to reduce injuries. Among them, fallrisk prediction systems are one of the most promising approaches, as they strive to predict a fall before its occurrence. A category of fallrisk prediction systems evaluates balance and muscle strength through some clinical functional assessment tests, while other prediction systems investigate the recognition of abnormal gait patterns to predict a fall in real time. The main contribution of this paper is a nonlinear model of user gait in combination with a thresholdbased classification in order to recognize abnormal gait patterns with low complexity and high accuracy. In addition, a dataset with realistic parameters is prepared to simulate abnormal walks and to evaluate fall prediction methods. The accelerometer and gyroscope sensors available in a smartphone have been exploited to create the dataset. The proposed approach has been implemented and compared with the stateoftheart approaches showing that it is able to predict an abnormal walk with a higher accuracy (93.5%) and a higher efficiency (up to 3.5 faster) than other feasible approaches.
1. Introduction
Gait, that is, the manner of walking, is a unique personal trait that recognizes every individual [1]. By revealing the personal trait, gait analysis has numerous applications such as identification, authentication, and action recognition [2–4]. Abnormal gait detection is used in particular in pathological and rehabilitation processes, clinical assessment, automated surveillance, and falling systems [5–7]. In order to decrease fall occurrence and minimize their effects, international organizations advise improving healthcare systems. This study focuses on abnormal gait/walk detection with the goal of predicting a fall risk. Fallrisk prediction out of abnormal gait detection is based on the relation between abnormal gait and risk of fall [8].
Critical consequences of falls include longterm disability, reduced mobility, injury, and even death. Physical injury due to a fall, in particular hip fracture, involves economical effects for the society [9]. Several fall risk factors have been identified but few successful approaches are adopted in real cases. Fallrelated systems can be categorized into three different types: fall detection, prediction, and prevention systems.
Fall detection systems notify a user’s associate (e.g., caregivers or acquaintance) in case of fall occurrence [10–15]. These systems can be used to provide fast help after a fall, but they do not avoid it, so they are less effective than other systems. Several fallrisk prediction systems (FPSs) have been developed to estimate future fall risk through some clinical assessments. These tests often involve questionnaires or functional assessments of posture, gait, cognition, and other risk factors. These clinical assessments are subjective and qualitative and typically use threshold assessment scores to categorize people as fallers and nonfallers. Another kind of FPS aims to identify an abnormal gait pattern in order to estimate the probability of a realtime fall occurrence [16–19]. Realtime systems continuously assess the fall risk while the user is doing its daily activity. Fall prevention systems predict a fall and provide a solution for preventing realtime or future falls [20, 21]. Fall prevention systems are helpful in reducing the financial and health consequences of a fall [22].
Both prediction and prevention systems usually have some fundamental steps in common, in which prediction and prevention terms are interleaved: first, data are collected from sensors and are analyzed to compute the appropriate feature set; then, the risk of a possible fall is evaluated through some classification algorithms. Movement sensors are usually exploited to investigate the extrinsic parameters of a fall. In this study, common sensors, such as accelerometers (for measuring the acceleration) and gyroscopes (for measuring the angular rate around one or more axes of the space) are considered since they are easily accessible and do not disturb the privacy of the user (e.g., camera and sound sensors). The popularity of smartphones, the preciseness of the features extracted from embedded sensors [23–25], and their ability to easily engage to the IoT framework, motivates researchers to exploit smartphones in their studies. Although some studies employ additional sensors [18, 19], they bring inconvenience to the users such as wearing augmented shoes, belts, and so on. So, the proposed model only adopts the embedded sensors (i.e., accelerometer) in a smartphone to be convenient for the users.
Most of the FPSs analyze the user’s posture or gait variables to investigate the characteristics of the movement. They typically exploit heavy mathematics which leads to high computational time. Since the complexity of an algorithm directly affects the performance, the tradeoff between accuracy and complexity is an important consideration. In this paper, a Nonlinear AutoRegressive eXogenous (NARX) walking model is proposed in order to achieve both low complexity and high accuracy. This study is focused on the use of raw accelerometer data for realtime fallrisk prediction to analyze user’s data and assess fall risk during the walk. In the preliminary step, normal walking is modeled and stored based on the user’s acceleration signals out of the NARX identification technique. Then, the system monitors a sliding window of user acceleration and predicts the future behavior of the user gait in real time. If the predicted output can be distinguished from the normal gait pattern through a specified threshold, the system counts the gait as an abnormal walk. Result shows that this approach has higher accuracy up to 2.8% and lower computational time up to 3.5 times in comparison with the stateoftheart approaches. In this study, the proposed method detects an abnormal gait while the user is walking in a normal manner on flat surface with casual footwear. The focus is finding a method with high accuracy and low performance in order to be feasible in real cases.
The remainder of the paper is organized as follows: Related works in the literature and complexities are reviewed in Section 2. The identification techniques are explained in Section 3. Gaitmodeling formulation is presented in Section 4. Finally, some conclusions are written in Section 5.
2. Background and Related Works
FPSs usually consider kinematic fall factors such as velocity, acceleration, tilt, stability, and symmetry. They exploit movement sensors to investigate the kinematic parameters of fall, that is, the characteristics of the movement of the body. Future fallrisk prediction systems estimate the user’s fall risk in an offline test such as Timed Up and Go (TUG), Berg Balance Scale (BBS), Sit To Stand (STS), and OneLeg Stand (OLS) [26–29]. If the fall risk is high, a probable future fall can be prevented through some exercises [30]. Typically, mentioned fall risk tests are applied by experts in clinical environments to evaluate balance and lower limb strength.
In the TUG test, the user is asked to rise from an arm chair, walk three metres away, turn, walk back to the chair, and sit down again. A performance higher than a threshold is identified as high risk of falls. However, the suggested threshold value varies in the literature [29].
The BBS test measures user’s balance by assessing the performance in carrying out a given task. It comprises a set of simple balance tasks. The degree of success in each task is given by a score, and the final measure is the sum of all scores [28].
In the STS test, firstly, the user sits in the middle of a chair, and he/she places his/her hands on the opposite shoulder crossed at the wrists. Then, he/she keeps the feet flat on the floor. Afterwards, he/she rises to a full standing position and then he/she sits back down again. Eventually, this test counts the number of full stands that are completed in 30 seconds. Since slowing of postural movements can be an indicator of the weak lower limb, a low number of full stands shows a high level of fall risk [26].
The OLS test is used to evaluate the user’s balance. The user stands, then he/she raises one leg, with the foot approximately six inches off the ground, keeping the foot raised up for 30 seconds. He/she can sway sidetoside or backandforth while maintaining the oneleg stand position. If a user puts his/her foot down some times during the 30second period, then he/she will fail the test [27].
The drawback of the abovementioned tests is that they demand time and effort. These tests have to be conducted in a supervised environment and may therefore suffer from influences such as the Hawthorne effect, that is, the reaction in which the individual modifies his/her behavior due to his/her awareness of being observed. Unlike the clinical assessment tests, a realtime fall risk is predicted by recognizing an abnormal walking pattern, then the user is alerted [17–19, 31], or an external aid such as a walker or robot is exploited to prevent the fall [20, 21].
In the kinematic analysis of the realtime fallrisk prediction, some approaches detect abnormal gait for predicting a fall risk [17, 32, 33], while others consider the nearfall (i.e., stumble) instances [34]. It is conceivable because the near fall is an indication of a fall. However, a time analysis is missing in order to measure the time between the nearfall detection and the realfall occurrence. This analysis is essential to check the feasibility of performing any recovery mechanisms before the fall occurrence. However, the main features adopted to detect abnormal gait/walk are explained [34]. In the following formulas, indicates the acceleration and , , and refer to its components along the 3 axes.
When a user significantly tilts in a direction, he/she assumes an abnormal posture, which can lead to a fall. The user tilt is evaluated with the combination of a gyroscope and an accelerometer [17].
Hjorth parameters and energy measurements of the tilt vector are computed as features of the user gait. Hjorth parameters are statistical measures of the signal, based on its variance in time domain [35]:(i) indicates the signal power.(ii) shows the smoothness of the signal curve.(iii) measures the irregularities in the frequency domain.
The of the acceleration signal specifies the amount of activity in the vertical and horizontal directions. It estimates the strength of the contact with the floor, so it can be used to recognize an abnormal walk pattern such as stumbling. The energy of the signal is computed as follows:
Accelerationderived features can be used as a nearfall indicator [34]. Several features of the acceleration signal are presented in the following.
Signal magnitude area (SMA) is used to classify the user activities. It is computed aswhere is the monitored interval.
Signal magnitude vector (SMV) specifies the degree of the movement intensity and the resultant of the acceleration signal as follows:where is the number of samples.
The peak and peaktopeak are useful measurements of data changing over time. The peak is the maximum value of the signal over the period of time, and the peaktopeak is the difference between minimum and maximum values of the signal. Moreover, the derivative of the acceleration can be used to indicate the vibration of a user movement. Another feature used in FPSs relies on the relative frequency in data distribution [32].
A cooccurrence matrix is a square matrix that shows the scattering of similar adjacent values at a given offset. Normally, it is applied to the image [36], but its application in fallrisk prediction has been investigated to analyze the acceleration and gyroscope values [32]. Let be the element of the cooccurrence matrix to the sum of all the elements. , , , , and of the cooccurrence matrix [36] are used as features of the user gait [32]:(i)Contrast shows the intensity between a cell and its neighbors:(ii)Homogeneity measures the spatial closeness of the distribution of elements to the diagonal of the cooccurrence matrix:(iii)Correlation shows how a value is related to its neighbors:
where , , and are computed as follows:(iv)Uniformity computes the sum of the squares of the elements:(v)Maximum probability measures the highest value of the cooccurrence matrix.
The principal component analysis is a mathematical procedure based on an orthogonal transformation of data. The output of the transformation from the accelerometer and gyroscope signals is a set of eigenvectors, which can be used as a feature of walking [33].
2.1. Complexity Analysis
The complexity of an algorithm can be presented as a numerical function of the input () to the algorithm. In this section, the time complexity of the fallrisk prediction algorithms (i.e., feature extraction and the classification) are discussed [17, 32–34].
A combination of average, fixed size matrix multiplication, variance, derivative, and trapezoidal rule is used to compute the feature set [17]. The dominant complexity among the mentioned computation is . Moreover, decision tree (DT) is adopted to predict a fall. The complexity of the classification is related to the number of analyzed features: it is plus the complexity of the classification algorithm that depends on the depth of the built tree [37]. In the presented analysis, is the number of features in the decision tree and is the input size of the algorithm.
The best feature set of acceleration signal for abnormal gait detection is extracted from derivative, trapezoidal rule, peaktopeak, and average [34]. Among these computations, peaktopeak exploration has the highest complexity equal to .
The cooccurrence matrix, average, relative frequency, and standard deviation are adopted to compute the feature set and a neural network to detect abnormal walk [32]. The dominant complexity of the feature set extraction is the calculation time for the cooccurrence matrix which is [38], and the complexity of the neural network is , where L is the number of layers and W is the average number of nodes in each layer.
Principal component analysis of the cooccurrence matrix is adopted as a feature set, and random forest classification is exploited to classify the normal and abnormal walks [33]. The classification complexity of this study increases by a factor of m (the number of decision trees in random forest) respecting [17] due to the adoption of random forest classification instead of decision tree.
3. ARX and NARX Identification
An identification technique is commonly used in many engineering areas to build a function that finds a relation between variables in a system. Generally speaking, finding a mathematical model that adequately describes a system is part of the system identification. Most of the physical activities in nature can be described by a dynamic system, where the output depends on the input history. System identification adopts statistical methods to build a mathematical model from measured data of the dynamic system. A threestep procedure is used in preparing the model: firstly collecting data, then building a convenient model, and finally validating the model. In more detail, the mathematical model is based on a function that depends on a set of unknown parameters θ:where represents the input and output history and specifies the coefficient parameters. A model can describe either a linear or nonlinear system. In general, the estimation of nonlinear systems is more complex than linear models due to the complex relation among the variables of the model.
AutoRegressive eXogenous (ARX) is a simple, frequently used identification model based on linear difference equation [39]. It describes the input effects on the process output as follows:where the current output relates to a finite number of past outputs and inputs . The model is thus entirely defined by three integers , , and , where is the number of poles and is the number of zeros, while is the pure timedelay in the system.
NARX is a system identification method for discrete nonlinear systems exploiting past input and output data [40]. The NARX model regresses the next output with the previous values of input and output. The mathematical expression of a NARX model iswhere and represent input and output values of the system at time step t; m and represent the input and output delays, and represents a nonlinear mapping function.where is the set of unknown coefficients , and is a basis function. Every continuous function can be represented as a linear combination of a particular function called basis function. The main problem is finding a good estimation of function with low identification error. Since each estimation has some noise ε, a general equation can be presented as follows:where is the measured output, is a function of , and is the prediction error. Parameter can be estimated by means of the prediction error (PE) method:where and presents the least square. strives to minimize the squares of the errors between real and estimated values. It should be considered that is nonconvex so the solution may be a local optimum instead of the absolute one.
NARX is based on a neural network to approximate the function , as can be seen in Figure 1. The complexity of this part is the same as creating a neural network, but it occurs only once in the training step, and using in real time has a linear complexity.
After preparing an appropriate model, its evaluation is usually done by computing an error over a number of elements, that is, root mean square error (RMSE) and FIT:where is the real system output and is the model output. RMSE measures the error between the measured data and the model. FIT expresses how much the model is fit to the real data. The lowest RMSE and the highest FIT show the best model.
4. Gait Modeling Formulation
In this paper, the proposed fallrisk prediction is formulated in three steps: collecting the input/output data, preparing and training the model of normal walk, and calculating the threshold. In the first step, the collected input/output data must be sufficient and representative, so a design of an effective normal/abnormal walk simulation is mandatory. This requires to find an appropriate definition for the abnormal gait. Gait is a cyclic pattern with several consecutive phases which can be formulated using different models [6, 41, 42]. However, defining a normal and subsequently an abnormal gait can be challenging due to the modification of the gait characteristics with aging, type of footwear, and terrain [43–45]. Moreover, gait definition can be altered according to the gait motion observation method, which can consider foot pressure, images, and acceleration. Generally speaking, abnormal gait is different from the usual one, which depends on the personal physical conditions. Abnormal gait can result from genetic anomalies, chronic disease, multiple sclerosis (MS), Parkinson disease, and stroke. In addition, it can be associated with medical conditions such as diminished strength, limited range of motion, poor posture, decreased sensory perception, deformity, widebased stance, gait variability, stooped postures, freezing of gait, and shuffling gaits [45]. However, an abnormal gait may happen for people with healthy kinematics while doing their daily living activities. A sudden change from normal to abnormal gait can increase the risk of a fall. Detecting such abnormal gaits can help to predict a possible fall. It should be noted that different types of gait behaviors such as running, jumping, and going up/down stairs can be confused with the abnormal gait. Furthermore, typically falls are defined as unintentionally coming down to the floor or lower level [46], and some activities, like standtositting, sitting on a chair, or lying on a bed, can be confused with real falls. Gait classification methods aim to classify the activities and distinguish such confusing motions [47, 48]. Usually, fallrelated studies narrow the monitoring activities under fixed circumstances (e.g., user’s age, footwear, and terrain) and strive to detect the abnormal gait patterns which bring high risk of fall for the users [17–19, 34, 49].
A fall may be due to many factors such as weakness, balance deficit, gait deficit, visual deficit, and mobility limitation. Based on these fall factors, the most frequently used methods to simulate abnormal walks are as follows:(i)Walking with a straightened knee [17–19](ii)Walking with a leg length discrepancy [17–19](iii)Walking on a rough surface [49](iv)Walking through obstacles [34]
In this paper, an abnormal walk is modeled as irregular gaits obtained by walking through obstacles which can cause stepping, tripping, and stumbling. A flat area with different types of obstacles is prepared. Thirtyone users walked through obstacles without looking at them, as shown in Figure 2. Obstacles included empty boxes (height: 37 cm, length: 20 cm, width: 17 cm) and plastic bottles (height: 20 cm and diameter: 6 cm) which were placed 60 cm far from each other. The users in the experiments are with a weight in the range of 50–110 kg and a height in the range of 157–185 cm. Moreover, they are in the range of 18–68 years old without gait disturbances.
Commonly adopted sampling frequencies range from some dozens to hundreds of Hertz such that they are constant and higher than the gait cycle frequency. In this study, the frequency is fixed to 10Hz. Data are collected through MATLAB R2015b. An iPhone 4S smartphone is adopted in the experiments, equipped with STMicro STM33DH 3axis accelerometer and STIMicro AGDI 3axis gyroscope. Since the body center of pressure (COP) reveals several information of user gait, the smartphone is placed on the lower back of the trunk, near the real center of mass (COM) position, assuming that this position moves parallel to the COP, and the same accelerations and positions will be measured [25]. Moreover, threecomponent acceleration vector describes human movement more precisely [50]. Although, in literature, devices are placed on different positions, the provided accuracy is not always the same [51]. Moreover, it might require a dynamic and automatic calibration of the orientation of the device in case of pocket position [52, 53]. In the current system, users can wear the device without paying attention to its orientation since the device is placed in a predefined position.
Each user walks 10 seconds normally and 10 seconds abnormally (i.e., walking through the obstacles) and he/she repeats the experiments 5 times. In the second step, the NARX model is prepared according to [12]. The proposed model has no input and only the acceleration signal is formulated as system output , so every is eliminated. The obtained model iswhere . The sigmoid function is used as a nonlinear basis function (σ). Three samples of normal walk of each user are used to prepare the model. As tuning the parameters of a NARX model is not a straightforward task, further empirical investigation on basis functions and the number of previous data in sliding window (called order) is performed out of a comparative analysis of classification accuracy. Experiments show that 20 basis functions with order equal to 10 achieve higher classification accuracy. Typically, there is a tradeoff in higher number of basis functions and order with the performance of the model, so parameters are tuned precisely in order to achieve a good accuracy with low overhead. If the higher number of order and basis function are adopted, the model requires more computational time to predict the future.
In the third step, to find the appropriate parameter to distinguish normal and abnormal walks, both the and are computed and compared with the prepared model. The result shows that the is more representative to distinguish normal and abnormal walks. Empirical investigation on the threshold shows that the best accuracy is obtained with a threshold set to 0.02. Eventually, the nonlinear threshold model is ready to be used in the real world. When the user walks, the acceleration values in a sliding window with 10 samples (i.e., 1 second) are obtained to predict the next acceleration value. Then, the FIT is computed with a larger sliding window of 50 samples (i.e., 5 seconds): if the computed FIT is higher than the specified threshold (i.e., 0.02), it is counted as an abnormal walk otherwise as a normal one, as reported in Algorithm 1. Figure 3 shows an example of the prediction and FIT sliding windows.

Since the linear identification model has lower overhead than the presented nonlinear one, the same procedure was performed based on the linear ARX model. The result shows that the accuracy of linear regression is lower than the nonlinear one, as can be seen in Figure 4. Therefore, it motivates the use of nonlinear walking model.
In order to evaluate the proposed model with the existing FPSs, described in Section 2, a comparison of accuracy is presented in Table 1. Accuracy of an algorithm computes the number of samples correctly classified. Error rate is the number of wrong classifications. Sensitivity measures the rate of abnormal instances that are correctly identified as abnormal. Specificity measures the rate of normal instances that are correctly identified as normal. Generality is computed as 1−Specificity. 10fold cross validation is adopted in the presented results. As the result shows, the proposed model has the highest accuracy in abnormal walking pattern recognition.
Further experiments are performed to investigate the computational time of different approaches. In the experimental setup, 10800 samples of normal and abnormal walks are given to different methods. The computational overhead including the feature extraction and classification algorithm of each system is measured cumulatively. The result at different samples is presented in Figure 5. The computational overhead of [32, 33] is significantly high due to the cooccurrence matrix features extraction. Profiling on [34] and [17] reveals that the overhead is mainly due to the local peak computation during feature extraction. Majumder et al. [17] have approximately the same computational time as the proposed method due to its simple feature set; however, it has lower accuracy. The proposed model does not extract heavy feature set; consequently, it has low computational time. Computational time also influences the battery life: for example, executing a machine learning algorithm can run at most 3 hours on a commercial smartphone with a fully charged battery [17]. As such, choosing the right algorithm with a minimal number of features would dramatically decrease the usage of processor and would save energy [54].
An important point in a fallrisk prediction system is its detection time, that is, the time between the starting of the abnormal gait and its detection. A short detection time is important to have sufficient time to perform a supportive mechanism for the user. Further analysis on the proposed method shows that this approach can detect abnormal gait in less than a second after its occurrence. The low complexity of the proposed model with sufficient accuracy fits it for devices with limited resources.
5. Conclusion and Future Work
This paper has analyzed various features based on data obtained from the accelerometer and gyroscope extrapolated in fallrisk prediction systems. A NARX model on normal walk is created, and a thresholdbased algorithm is proposed to classify normal and abnormal walks. The main considerations in the proposed model are complexity and accuracy. Furthermore, the fallrisk prediction algorithms have been experimentally evaluated based on accuracy and algorithm complexity. The algorithms have been evaluated with a dataset based on 31 users. Based on the presented results, the proposed model has the lowest computational time with the highest accuracy among the presented fallrisk prediction algorithms, and it is able to detect an abnormal gait in less than one second.
The aim of the present line of work is to eventually make a contribution in a generic fallrisk prediction system. All findings of this paper are considered as the building blocks for the future design. More challenging abnormallike activities consisting in running, jumping, and going up/down will be modeled. In the future work, we plan to recognize the hazardous level of abnormal gait by means of duration and intensity of the abnormality. This would allow proper prevention strategies to avoid serious injuries in case of hazardous situation.
Conflicts of Interest
The authors declare that there are no conflicts of interest.
Acknowledgments
This work was partially supported by the grant “Bando Smart Cities and Communities”, OPLON project (OPportunities for active and healthy LONgevity) funded by the Italian Ministry for University.