Abstract
Background:
Freezing of gait (FOG) is a commonly observed motor symptom for patients with Parkinson's disease (PD). The symptoms of FOG include reduced step lengths or motor blocks, even with an evident intention of walking. FOG should be monitored carefully because it not only lowers the patient's quality of life, but also significantly increases the risk of injury.
Introduction:
In previous studies, patients had to wear several sensors on the body and another computing device was needed to run the FOG detection algorithm. Moreover, the features used in the algorithm were based on low-level and hand-crafted features. In this study, we propose a FOG detection system based on a smartphone, which can be placed in the patient's daily wear, with a novel convolutional neural network (CNN).
Methods:
The walking data of 32 PD patients were collected from the accelerometer and gyroscope embedded in the smartphone, located in the trouser pocket. The motion signals measured by the sensors were converted into the frequency domain and stacked into a 2D image for the CNN input. A specialized CNN model for FOG detection was determined through a validation process.
Results:
We compared our performances with the results acquired by the previously reported settings. The proposed architecture discriminated the freezing events from the normal activities with an average sensitivity of 93.8% and a specificity of 90.1%.
Conclusions:
Using our methodology, the precise and continuous monitoring of freezing events with unconstrained sensing can assist patients in managing their chronic disease in daily life effectively.
Introduction
Parkinson's disease (PD) is a chronic neurological disorder affecting 10 million people worldwide. 1 The disease results from the loss of dopamine-producing nerve cells in the basal ganglia. 2 PD impairs the motor functions of patients and has few symptoms, including tremors, bradykinesia, rigidity, postural instability, and the freezing of gait (FOG). FOG is a frequently observed gait disturbance among PD patients. The motor symptom of FOG is defined as a profound decrease in the step length or an inability to walk. 3 Freezing events occur occasionally and intermittently, lasting for a few seconds to minutes, when patients attempt to start walking, turning, or entering doors. 4 FOG during walking restricts daily activities and increases the risk of falling, which can cause personal limitations and various health problems. 5
FOG can be monitored conventionally by motor examination in outpatient clinics; however, going to a hospital is cumbersome at times due to distance and mobility impairments. This results in infrequent symptom measurements and improper treatment. With rapid technological development, the telemonitoring of FOG events is possible, with sensors near the patients. The feasibility of FOG event detection has been investigated in many studies utilizing wearable sensors, such as force-sensitive shoe insoles, 6 video cameras with 3D markers, 7 and inertial sensors. 8 –18 Among them, the accelerometer and gyroscope have been intensively studied because of their low cost and compact size that enables easy wearing. However, patients had to attach several sensors to the body and another computing device was needed to run the detection algorithm; hence, they were not practical for real-life application.
To address these issues, a smartphone as a sensing device was suggested as a solution for FOG detection, in recent studies. 19,20 The accelerometer and gyroscope, which can measure user motion, are embedded in the smartphone. Smartphones have practical and economic advantages over the other sensors because additional hardware is not needed owing to a penetration rate of more than 80% in advanced economies. 21 The smartphone can be used as a computing device to run the FOG detection algorithm. In addition, as people always carry Internet-connected smartphones in daily life, unconstrained and cumulative monitoring is possible.
The detection algorithm is a crucial component for adopting the technology-based service. To achieve similar or better performances with a single device, the development of sophisticated method is essential. However, the algorithms investigated in previous literature have several limitations. Many of these studies have identified freezing symptoms by establishing specific thresholds, which can discriminate them from normal walking. 8,9,19 This method is manual and subject dependent; therefore, it prevents the algorithm from adding complexity above a certain degree, to offer a better performance. Furthermore, the features used in previous studies are based on domain-specific knowledge; hence, the determination of the discriminative features in such a handcrafted method is limited. In addition, previous reports 9,20 have already proved that a classifier using common features exhibited varied performances, based on the patients' walking and freezing styles. As these issues can adversely affect the performance, another methodology for detecting the FOG is required.
Convolutional neural networks (CNNs), which are driving the artificial intelligence boom, of late, are the key to solving the abovementioned problems. CNN extracts the best discriminative features and learns the concepts automatically by applying convolution filters to raw data, instead of using predesigned “shallow” features. 22 It is suitable, if the detection algorithm is developed, without prior knowledge of individual data. As the CNN framework exploits several neural network layers, which can extract the features from raw sensor signals, it can effectively learn the various, complex walking styles of patients. This structure has not only outperformed many of the established methods, but has also demonstrated the results surpassing human-level performance in image classification 23 and speech recognition. 24
In this study, we present a system that can remotely monitor the FOG events of PD patients, using sensors embedded in a single smartphone. We collected the movements of PD patients from a smartphone located in their trouser pockets, in a natural position. The measured signals were transferred to a remote server and saved as 2D images, which enable the CNN to learn the classification of FOG patterns. CNN was used to classify walking and freezing events with a high accuracy, through validation. To evaluate our approach objectively, the performance of the proposed structure was compared with the results in previous literature.
Materials and Methods
Data Collection
The walking data of PD patients was collected from Android smartphones (Nexus 5; Google, Inc.); the system was equipped with internal sensors, a tri-axial accelerometer, and a gyroscope. Each sensor has measurement ranges of ±2 G and ±250 °/s, respectively. Motion signals were sampled at a rate of ∼200 Hz, the fastest sampling mode supported by the mobile OS. During the experiment, videos were recorded using another smartphone (Galaxy S5; Samsung Electronics, Inc.) for freezing assessment and posterior referral review. Two more smartphones were attached to the patient to compare the detection performances, according to the measurement positions. To synchronize the time differences across the devices, custom applications that can allow socket communication were developed. Server and client applications were installed in all the smartphones. The smartphone recording the video sends trigger messages, which activate the motion sensors automatically in the devices, while recording. The collected data on the smartphone were transferred to a remote server that can perform the classification task using our suggested algorithm through Wi-Fi.
Experimental Setup
Thirty-two PD patients (20 males, 12 females) participated in this study voluntarily. All the participants wore their daily clothes during the experiments. To measure the movements of the patients, a smartphone was casually located in the trouser pocket, as usually placed. The trouser pocket of each patient was sufficiently tight, which did not affect the measurements significantly. The other smartphones were located at the lower limbs to compare the performances with those of previous studies. The most common placement for the sensors was on the ankle, where the smartphone was attached using an elasticized armband. We also attached another smartphone on the lateral side of the waist with a belt clip.
The experiments were carried out in a hospital corridor. Initially, the subjects were made to sit on a chair, after which they were made to walk 3 m along the taped line on the floor. They turned around at the end of the line and returned to the original position. After walking, the patients were asked to perform additional tasks, such as turning around, and opening and entering doors, to provoke a FOG. All the procedures were performed twice to acquire sufficient data and their average duration was 153 s. The overview of the experimental protocols is described graphically in Figure 1. The study was approved by the Seoul National University Hospital Ethics Committee and written informed consent was obtained.

Overview of the experimental environment. The smartphones were placed in the patient's pocket and attached additionally to the ankle and the waist for reference. Another smartphone videorecorded the entire experiment, controlling the start and stop of all the smartphones with a Wi-Fi connection.
Algorithm
The measured walking data were segmented into 2.5-s windows and transformed into the frequency domain using discrete Fourier Transform for utilizing the gait frequency information. A specialized CNN structure was designed to detect FOG patterns. We could determine the optimal architecture, consisting of two convolution layers with 20 convolution filters, through parameter optimization processes. The network was trained with walking data and the corresponding annotations of experienced doctors. Detailed explanation on the training and establishment of the CNN structure is presented in the Appendix.
Evaluation
The entire data were divided into 90% for training and 10% for the test dataset. A 10-fold cross-validation was performed using the training data for performance comparison. To determine the best model configuration, a single-number evaluation metric is required. An F1-score was selected for considering both the precision and the recall [F1-score = 2 (precision recall)/(precision + recall)]. The sensitivity and specificity were also computed on a test set to compare the classification results with those in previous literature. Several machine learning classifiers, listed in Table 2 were also tested to verify the effectiveness of the CNN. All features used in literature for training conventional classifiers are shown in Table 1.
Shallow Features Used in Previous Studies for FOG Detection
FFT, fast Fourier transform; FOG, freezing of gait.
Results
Dataset
Seventeen out of the 32 patients exhibited freezing symptoms during the experiments in the clinic. A total of 110 FOG episodes were observed with an average duration of 57.8 s. The total number of labeled images was 5,839 and freezing episodes accounted for 41.7%, when a 2.5 s window size was used.
Classification Result
Table 2 lists the comparative results between our CNN approach and a few other machine learning classifiers with shallow features (Table 1), presented in literature. The CNN diagnosed the FOG patterns with a sensitivity of 93.8% and a specificity of 90.1%. Compared with our approach, the other conventional classifiers showed significantly lower F1 scores.
Performance Comparison Between the Convolutional Neural Network Architecture and the Machine Learning Classifiers with Shallow Features
CNN, convolutional neural network.
We have referred to the recent comprehensive review 25 on FOG detection and have summarized the comparative statistics with the previous studies, in Table 3. The type of sensors used for gathering the movements of the patients and their measured positions are listed. In the table, the sensitivity and specificity are presented with the classification metrics, as in most studies.
Comparison of Our Proposed Solution with the Methods Suggested in Previous Literature
EMG, electromyography; IMU, inertial measurement unit.
We compared the performances between the measurement positions, for comparison with previous studies. Table 4 presents the FOG pattern classification results, when the smartphone is placed at different locations. We obtained an F1-score of 90.2% with the smartphone in the pocket, which is the most convenient placement. For reference, when we tested the detection accuracies at the ankle and waist, the average F1-scores were 87.8% and 90.5%, respectively.
Classification Results of the 10-Fold Cross-Validation at Different Measurement Sites
Discussions
In this study, we proposed a novel single smartphone-based system to monitor the walking status of PD patients remotely. We applied the CNN-based method to the data collected from the internal sensors of a single smartphone, casually placed in the pocket of a PD patient simulating daily life motions. The measured signals were transformed into images containing frequency components for training and testing the CNN structure. This study significantly improved the convenience, as the smartphone was placed casually in the patient's pocket, unlike most previous studies, which utilized and fixed many sensors artificially. We applied the CNN algorithm, which extracts discriminative features automatically from raw data, to analyze various types of walking signals. In addition, the approach can classify symptoms with a high accuracy, owing to its immense learning capacity. To verify the effectiveness of our system, we extensively compared our performance with the previously reported results.
Our system suggested the use of the CNN algorithm to detect freezing events, using the walking data acquired from a smartphone. Previous studies were mainly conducted in two ways: Most of them 8,9,13,14,19 manually designed the fixed-threshold algorithms; the methods detected FOG events, when some of the features exceeded a certain threshold. Another strategy for FOG detection was to use machine learning classifiers. 11,12 However, both approaches require a manual feature extraction process, by observing the raw signals acquired from sensors. These methods cannot achieve full performance and applied to many patients because researcher intervention is needed.
The proposed CNN architecture automatically finds the optimal parameters directly from the raw data of each patient, as shown in the successful applications, in image recognition. 22,26 To examine the performance of the CNN in FOG detection, we tested machine learning algorithms with shallow features, on the same dataset. In Table 2, the CNN sensitivity was 20% or higher than that of the Random Forest, which showed the highest accuracy among the classifiers. As per these results, the recognition performance of the deep learning approach outperforms conventional algorithms. In addition, it can adapt to various types of patient data and remotely distributed with minimal researcher intervention.
We also compared the configuration of our system with those in previous studies. The type and number of sensors, and their placement, in literature, are summarized in Table 3. Many studies 9,12,13 attached several sensors to the body for detecting freezing events, causing discomfort to the patient, in daily life. However, we demonstrated a superior sensitivity over most of those results, even when only a single device was used. Recent studies have considered the convenience of patients; hence, the use of a single sensor is being investigated. In 14,19 FOG detection was possible using a sensor, but it was fixed at the ankle and waist as in previous studies, which is not a natural position. Some researchers 18 explored the use of a smart watch that can monitor the motion of the wrist naturally, but it is impractical for usage in daily life because of its degraded and inconsistent specificity.
As described in Table 3, previous studies explored various sensor positions for FOG detection. To evaluate the effect of the sensor positions, we tested the classification performance of the smartphone located in the pocket, using simultaneously collected data at the ankle and waist, during the experiment. Each row in Figure 2 represents the acceleration and gyroscope signals collected using smartphones attached to the abovementioned locations. The walking-signal measurements were sufficiently robust to detect the changes in signal shapes, when the patient experienced a freezing event, even when the smartphone was placed in the pocket. From Table 4, the smartphone in the pocket shows comparable classification results over other positions. The waist position presented a slightly better accuracy than that of the pocket case. This is understandable because acceleration at the waist level can measure the movement of the torso, close to the center of mass of the human body. As a result, it is the common location adopted by systems based on a single accelerometer in human activity recognition (HAR). 27 –29 Moreover, some researchers, who studied FOG detection, 13 recommended the waist position as a configuration because it shows robust performance. Nonetheless, the most convenient placement for smartphone sensing is the pocket because it can be located naturally. Unlike other wearable sensors, a smartphone is carried by people and this contributes to the acceptance of the walking activity monitoring. Furthermore, it is always connected to the Internet; hence, the progress of the disorder can be tracked quantitatively, by communicating information remotely between patients and doctors.

Y-axis acceleration signals (left side) and X-axis angular velocity signals (right side) measured from each body position from patients who experienced freezing of gait. Normal walking and freezing-of-gait events were performed on the sections colored gray and black, respectively.
FOG detection with a smartphone is a promising approach because it can increase the frequency of monitoring without burdening professional resources. However, the cost of training and testing the detection algorithm was too high to be performed on a smartphone; hence, the results were calculated using a remote server and transferred to the device. In future, a mobile application that performs all the processes using a single smartphone must be developed. Moreover, the proposed architecture should be tested with a large cohort dataset of the motion of PD patients, to generalize our results for unseen patient data in telemonitoring. Thereby, the program can be widely distributed and the feasibility of home monitoring in daily life, investigated.
Footnotes
Acknowledgment
This work was supported by grant no. 3420140050 from the SNUH Research Fund and the National Research Foundation of Korea (NRF) grant funded by the Korea government (MSIP) (No. NRF-2017R1A5A1015596).
Disclosure Statement
No competing financial interests exist.
