# Task-Oriented Intelligent Solution to Measure Parkinson’s Disease Tremor Severity

Authors: Ghayth AlMahadin; Ahmad Lotfi; Marie Mc Carthy; Philip Breedon
Journal: Journal of Healthcare Engineering
 (2021)

---

## Abstract

Tremor is a common symptom of Parkinson’s disease (PD). Currently, tremor is evaluated clinically based on MDS-UPDRS Rating Scale, which is inaccurate, subjective, and unreliable. Precise assessment of tremor severity is the key to effective treatment to alleviate the symptom. Therefore, several objective methods have been proposed for measuring and quantifying PD tremor from data collected while patients performing scripted and unscripted tasks. However, up to now, the literature appears to focus on suggesting tremor severity classification methods without discrimination tasks effect on classification and tremor severity measurement. In this study, a novel approach to identify a recommended system is used to measure tremor severity, including the influence of tasks performed during data collection on classification performance. The recommended system comprises recommended tasks, classifier, classifier hyperparameters, and resampling technique. The proposed approach is based on the above-average rule of five advanced metrics results of four subdatasets, six resampling techniques, six classifiers besides signal processing, and features extraction techniques. The results of this study indicate that tasks that do not involve direct wrist movements are better than tasks that involve direct wrist movements for tremor severity measurements. Furthermore, resampling techniques improve classification performance significantly. The findings of this study suggest that a recommended system consists of support vector machine (SVM) classifier combined with BorderlineSMOTE oversampling technique and data collection while performing set of recommended tasks, which are sitting, stairs up and down, walking straight, walking while counting, and standing.


---

## Body

## 1. Introduction

Parkinson’s disease (PD) is one of the most widespread neurodegenerative disorders affecting more than 10 million globally. The four main motor symptoms of PD are tremor (rhythmic shaking movement), bradykinesia (slowness of movement), rigidity (muscle stiffness), and postural instability (impaired balance) [1]. Tremor defines one-sided, involuntary, rhythmic motions in the limbs, often in the hands. PD tremors can be divided into three types: rest tremor (RT), kinetic tremor (KT), and postural tremor (PT) [2]. The RT takes place at 4–6 Hz in a relaxed and supported limb of 70%–90% of PD patients. The PT arises when a person performs an antigravity position, such as extending arms at a frequency between 6 and 9 Hz. The PT occurs when a person maintains a position against gravity, such as stretching arms at a frequency between 6 and 9 Hz. The KT is a form of tremor that happens at a frequency between 9 and 12 Hz during voluntary gestures such as drawing, writing, or touching of the tip of the nose [2].Currently, Parkinson’s tremor severity is scored based on the Movement Disorders Society’s Unified Parkinson’s Disease Rating Scale (MDS-UPDRS) from 0 to 4 with 0, normal; 1, slight; 2, mild; 3, moderate; and 4, severe [3]. However, The MDS-UPDRS is a subjective assessment that mainly relies on visual observations and on the clinicians’ skills and experience [4]. There is evidence showing that the MDS-UPDRS has high inter- and intrarater variability [5]. Thus, a patient’s tremor could be given a score by one clinician and, at the next visit, evaluated by another clinician and assigned a higher score. In this case, it is difficult to interpret these two different scores, whether symptoms worsen or are due to subjectivity. In addition, the assessment often takes time and involves advanced official training to improve the coherence of data acquisition and interpretation [6].Advances in sensing technologies combined with artificial intelligence (AI), specifically machine learning (ML) techniques, have enabled the development of new approaches for objective assessment of PD motor symptoms [7]. These approaches basically consist of four main steps: data collection, signal processing, features extraction, and classification algorithms. The data collection can be classified according to performed tasks into two main groups: scripted tasks and unscripted tasks [8]. Scripted motor tasks (predefined motor tasks) are performed under supervision in laboratory settings (e.g., Part III of MDS-UPDRS, motor examination, structured Activities of Daily Living (ADL) tasks), while unscripted tasks are ADL performed under free-living conditions without any supervision or instruction.Several objective methods have been proposed for measuring and quantifying PD tremor from data collected during performing scripted and unscripted tasks [9]. For example, Giuffrida et al. [10] used Kinesia™  system (https://glneurotech.com/kinesia/), which is a sensor that integrates accelerometer and gyroscope, for PD tremor severity score assessment. In this study, the data were collected from Kinesia™ system placed on the middle finger of the most affected hand, while the subjects were performing three scripted tasks from Unified Parkinson’s Disease Rating Scale (UPDRS), including rest, postural, and kinetic tremor. This study utilised a multiple linear regression algorithm with coefficient of determination, r2 for evaluation, and achieved r2=0.89 for rest tremor, r2=0.90 for postural tremor, and r2=0.69 for kinetic tremor. Similarly, Niazmand et al. [11] have used data collected from integrated pullover triaxial accelerometers, while subjects performed rest and posture UPDRS motor tasks. The correlation between the measurements from accelerometers and UPDRS scores calculated and achieved 71% sensitivity of detecting tremor and 89% sensitivity of detecting posture tremor.Rigas et al. [12] conducted a study to estimate tremor severity using a set of wearable accelerometers, while subjects were performing ADL tasks. A Hidden Markov Model (HMM) was employed to estimate tremor severity. They have achieved 87% overall accuracy with 91% sensitivity and 94% specificity for tremor 0, 87% sensitivity 82% specificity for tremor 1, 69% sensitivity and 79% specificity for tremor 2, and 91% sensitivity and 83% specificity for tremor 3.Authors in [13] collected triaxial accelerometer data from PD patients using a smartwatch, while they are performing five motor tasks including sitting quietly, folding towels, drawing, hand rotation, and walking. They have used support vector machine (SVM) to predict tremor severity into three tremor levels, 0, 1 and 2, where 2 represents tremor severities 2, 3, and 4. The model achieved 78.91% overall accuracy, 67% average precision, and 79% average recall.A common limitation in most of the previous studies was that the authors did not take into consideration data collection influence on tremor measurement. Moreover, previous studies did not report advanced performance metrics such as sensitivity, specificity, F-score, Area Under the Curve (AUC), and Index of Balanced Accuracy (IBA), which are very important to evaluate classification models, particularly in medicine field where misclassification can lead to unnecessary treatment. In addition, most of the previous studies did not take into consideration imbalanced classes distribution among collected data.An extensive review of the literature showed that only few studies have explored different aspects of tremor measurement. For example, in [14], the authors explored two tasks (standing, sitting) effects on tremor measurement and the correlation with clinical score were 0.70 in case of standing and 0.75 in case of sitting. In [15], authors reported tremor measurement of the left and the right hands and the correlation were 0.88 and 0.77, respectively. In [16], the tremor severity was quantified under two conditions, while patients were on medication and off medication and showed that the correlation with clinical score is higher when patients were on medication (0.779), while it was 0.638 when patients were off medication. This indicates a need to explore different aspects of tremor measurement that might improve the objective evaluation PD tremor.The research to date has tended to focus on proposing a tremor severity classification approach without discrimination tasks effect on classification and tremor severity detection, even though motor examination of PD is a key aspect of tremor assessment [3]. Therefore, in order to propose a recommended system to measure tremor, it is essential to suggest and validate a method that includes a protocol of data collection including tasks where the tremor severity is highly distinguishable besides signal processing, features extraction, and classification algorithms. In addition, it is important to take into consideration a well-known challenge in ML algorithms development in medical applications, which is the issue of imbalanced classes distributions or the inadequacy of a class or some classes in the data, which cause a missclassification that can lead to wrong assessment [17]. Therefore, several methods have been suggested to address the imbalanced data issue [18], and one of these methods is the resampling techniques, which have been shown to be an excellent solution for handling imbalanced data in various applications [19].This study presents a novel comprehensive method to develop and validate a recommended system to measure and quantify PD tremor severity, including recommended tasks for data collection from different sensors, signal processing, robust features extraction, exploring various classifiers with exhaustive hyperparameters tuning with, and without resampling techniques. The development was validated through different metrics such as accuracy, F1-score, geometric mean (G-mean), Index of Balanced Accuracy (IBA), and Area under the Curve (AUC).


## 2. Materials and Methods

To define a recommended system for PD tremor measurement, three main components should be identified, best task, best classifier, and best resampling technique. Figure1 illustrates the proposed framework to find the recommended system(s) to detect tremor severity from four different subdatasets.Figure 1
Proposed framework for tremor severity classification.Four subdatasets were prepossessed independently in the first phase to eliminate reliance on sensor orientation and nontremor data and artefacts. Various time and frequency domains features were extracted from the prepossessed data in the second phase. In the third phase, data was split into training, evaluation, and test subsets. A copy of training data was resampled by six different resampling techniques independently, in the fourth phase. In the fifth phase, two copies of the training data (with resampling and without resampling), and the test data were applied to six different classifiers. The classification results were evaluated by five metrics in the sixth phase. In the seventh phase, the results passed to recommended tasks framework, recommended classifier, and resampling techniques framework. Each step is described in detail in the subsequent sections.The training data60%, test data 25%, and evaluation data 15% were selected randomly from entire dataset and does not belong to specific patients; in other words, the splitting were based on tremor severity of each segmented window. The training and test data were used to evaluate and to identify best classifier and resampling techniques combination (potential recommended systems), while the evaluation data were used to evaluate the identified potential recommended systems as an external dataset.


### 2.1. Dataset

Tremor dataset (it is available athttps://www.michaeljfox.org/news/levodopa-response-study) was taken from Levodopa response trial wearable data from the Michael J. Fox Foundation for Parkinson’s research (MJFF) [20]. The data were collected from 30 PD patients over four days from wearable sensors in both laboratory and home environments using different devices: a Pebble Smartwatch (https://www.fitbit.com/pebble), GENEActiv accelerometer (https://www.activinsights.com/products/geneactiv/), and a Samsung Galaxy Mini smartphone accelerometer. On the first day of data collection, participants came to the laboratory on their regular medication regimen (on medication) and performed set ADL tasks and tasks of motor examination of the MDS-UPDRS [3], which is used to assess motor symptoms. On the second and third days, accelerometers data were collected while participants were at home and performing their usual activities. On the fourth day, the same procedures that were performed on the first day were performed once again, but the participants were off medication for twelve hours. For each task, on the first and the fourth days, symptom severity scores (rated 0-4) were provided by a clinician.The list of tasks performed can be categorised into two groups. The first group includes tasks which involve direct wrist movement, that is, drawing on a paper, writing on a paper, taking a glass of water and drinking, folding a towel, finger to the nose (left and right arms), assembling nuts and bolts, organising sheets in a folder, repeated arm movement (left and right arms), and typing on a computer keyboard. The second group includes tasks that do not involve direct wrist movement which are sitting, standing, walking downstairs, walking upstairs, sit to stand, walking while counting, walking through a narrow passage, and walking straight. In this study, only labelled data was used, which is the data collected on day one and day four from GENEActiv accelerometer and Pebble Smartwatch as shown in Figure2.Figure 2
Tremor datasets.Table1 shows classes (severities) distribution of 103080 instances (windows) segmented from collected data. It is clear how data distribution is skewed towards less severe tremor, and this bias can cause significant changes in classification output. In this situation, the classifier is more sensitive to identifying the majority classes but less sensitive to identifying the minority classes.Table 1
Imbalanced classes (severities) distribution.
Tremor severityGENEActivPebbleTotal(Class)Day 1Day 4Day 1Day 4(n=103080)01884316860193891721572307158456534449144212129122185292113571112757538456761171031741443531159166


### 2.2. Signal Processing

In order to avoid dependency on sensor orientation and processing signal in three dimensions, the first step in this phase is to calculate the vector magnitude of three orthogonal acceleration, namely,AX, AY, and AZ. To keep tremors bands and to eliminate low and high-frequency bands, as suggested by earlier work [2], a band-pass Butterworth filters with cut-off frequencies 3−6 Hz for RT and 6−9 Hz for PT and 9−12 Hz for KT are applied in the second step. The filtered signals were segmented using sliding windows of four seconds length with 50% overlap.


### 2.3. Features Extraction

Different features in time and frequency domains were extracted from three frequency bands,3−6 Hz for RT, 6−9 Hz for PT, and 9−12 Hz for KT, to form a 102 features vector. Frequency domain features were extracted after transforming the signal to frequency domain using Fast Fourier Transform (FFT) according to the following equation:(1)Fk=∑t=0Wl−1ate−j2πkt/Wl,fork=0,…,Wl−1,where Fk complex sequence that has the same dimensions as the input sequence att=0wl and e−j2π/W is a primitive Nth root of unity.The extracted features have been specifically chosen to discriminate tremor severity such as central tendency, dissimilarity, distribution, autocorrelation, dispersion, data shape, stationarity, and entropy. Previous research has established that features such as mean, max, energy, number of peaks, and number of values above and below mean and median are highly correlated with tremor severity [21, 22]. Likewise, tremor severity is highly correlated with signal amplitude [23], as high signal amplitude indicates high tremor MDS-UPDRS score and vice versa.The standard deviation has been chosen to measure signal dispersion as an appropriate way to quantify tremor severity [24]. Skewness and kurtosis have been selected to measure data distribution because tremor signals have higher kurtosis values than nontremor signals [25], while nontremor signals have higher skewness values than tremor signals [21].A prior study has shown that tremor intensity defines the severity of tremor [2], and since tremor severity correlated with frequency subbands or bandwidth spread [11], the Power Spectral Density (PSD) can be used to quantify tremor intensity at different frequencies. Thus, three features have been calculated: fundamental frequency, median frequency, and frequency dispersion. The fundamental frequency, which is the frequency, has the highest power of all the frequencies in the spectrum. The median frequency, which is the frequency, splits the PSD into two equal parts. Frequency dispersion is the width of the frequency band that comprises 68% of the PSD. The difference between the fundamental frequency and the median frequency was taken from previous work as an additional feature since the fundamental frequency of tremors could vary between PD patients [26]. Spectral centroid amplitude (SCA), which is the weighted power distribution, and maximum weighted Power Spectral Density (PSD) have been selected to measure spectral energy distribution [27].The PD tremor is a rhythmic motion, hence autocorrelation and sample entropy features that could measure regularity and complexity in time series data, where tremor motions’ autocorrelation and sample entropy are considerably less than nontremor motions that has been demonstrated by earlier work [28, 29]. The complexity-invariant distance (CID) [30], the sum of absolute differences (SAD) [15], and another complexity features have been used to identify tremor. SAD and CID measures time series complexity based on peaks and valleys, as the more complex signal has more peaks and valleys. Consequently, the tremor signal is more complex because tremor frequency and amplitude are higher than nontremor signal; in other words, the tremor signal has a higher number of peaks and valleys. A list of the extracted features and their descriptions is presented in Table2.Table 2
Extracted features and their descriptions.
FeatureDomainFormulaAbove meanT and FW+:W+=at∈W:at>1/Wl∑t=0WtatBelow meanT and FW−:W−=at∈W:at<1/Wl∑t=0WtatAutocorrelationT and F1/Wl−lsw2∑t=0Wl−lat−a¯at+l−a¯wComplexity-invariant distance (CID)T and F∑t=1Wl−1at−at+12Sample entropyT and FlogeAm+1r/AmrKurtosisT and F1/Wl∑t=0Wlat−a¯w4/sw4SkewnessT and F1/Wl∑t=0Wlat−a¯w3/sw3Standard deviationT and F∑t=0Wlat−a¯w2/Wl−1MaxT and FmaxWlt=0atMeanT and F1/w∑t=0WlatMedianT and Fati:i=WlO+1/2ati+ati+1/2:i=WlE/2Sum of absolute differences (SAD)T and F∑l=0Wiat+1−atEnergyT and F∑t=0Wlat2PeaksTP:P=maxan+m+kk=−nnm=0Wl−2n−1Amplitude of peak PSDFmaxWPSD=maxat∈W1/W∑t=0Wl−1ate−j2πkt/Wl2Median frequencyFfmed:∑f=ftfmedPSD=∑f=fmedfmedPSD=1/2∑f=ftfhPSDFrequency dispersionFfdisp=2fstep:∑fmed+fstepfmed+fstepPSD=68/100∑f=ftfhPSDFundamental frequencyFffund:PSDfund=maxfhflPSDFrequency differenceFfmed−ffundSpectral centroid amplitude (SCA)F∑f=flfhfPSD/∑f=ffhfMaximum weighted PSDFmaxfhflfPSDW+: window subset contains elements above the mean; W−: window subset contains elements below the mean; Wl: window length (number of samples); at: the acceleration at time t; l: the lag. a¯w: window’s samples mean; sw: window’s samples standard deviation; Amr: the probability that two vectors of m points within a one window would match; Am+1r: the probability that two vectors of m+1 points within one window would match; WlO: window length is odd; WlE: window length is even; i: an element position (index) in the window W; n: number of neighbours; an+m+k: the acceleration at a time n+m+k; W: the selected window; e−j2π/Wl: the primitive Nth root of unity; fdis: the dispersion frequency in the selected window; f: frequency bin; fl: the lowest frequency in the selected window; fh: the highest frequency in the selected window; fstep: the range between the median frequency and the lower bound of dispersion frequency, which is equal to the range between median frequency and the higher bound of dispersion frequency, that is, 2fstep is the range between lower and higher bound of of dispersion frequency; PSDfund: the PSD at fundamental frequency.


## 2.1. Dataset

Tremor dataset (it is available athttps://www.michaeljfox.org/news/levodopa-response-study) was taken from Levodopa response trial wearable data from the Michael J. Fox Foundation for Parkinson’s research (MJFF) [20]. The data were collected from 30 PD patients over four days from wearable sensors in both laboratory and home environments using different devices: a Pebble Smartwatch (https://www.fitbit.com/pebble), GENEActiv accelerometer (https://www.activinsights.com/products/geneactiv/), and a Samsung Galaxy Mini smartphone accelerometer. On the first day of data collection, participants came to the laboratory on their regular medication regimen (on medication) and performed set ADL tasks and tasks of motor examination of the MDS-UPDRS [3], which is used to assess motor symptoms. On the second and third days, accelerometers data were collected while participants were at home and performing their usual activities. On the fourth day, the same procedures that were performed on the first day were performed once again, but the participants were off medication for twelve hours. For each task, on the first and the fourth days, symptom severity scores (rated 0-4) were provided by a clinician.The list of tasks performed can be categorised into two groups. The first group includes tasks which involve direct wrist movement, that is, drawing on a paper, writing on a paper, taking a glass of water and drinking, folding a towel, finger to the nose (left and right arms), assembling nuts and bolts, organising sheets in a folder, repeated arm movement (left and right arms), and typing on a computer keyboard. The second group includes tasks that do not involve direct wrist movement which are sitting, standing, walking downstairs, walking upstairs, sit to stand, walking while counting, walking through a narrow passage, and walking straight. In this study, only labelled data was used, which is the data collected on day one and day four from GENEActiv accelerometer and Pebble Smartwatch as shown in Figure2.Figure 2
Tremor datasets.Table1 shows classes (severities) distribution of 103080 instances (windows) segmented from collected data. It is clear how data distribution is skewed towards less severe tremor, and this bias can cause significant changes in classification output. In this situation, the classifier is more sensitive to identifying the majority classes but less sensitive to identifying the minority classes.Table 1
Imbalanced classes (severities) distribution.
Tremor severityGENEActivPebbleTotal(Class)Day 1Day 4Day 1Day 4(n=103080)01884316860193891721572307158456534449144212129122185292113571112757538456761171031741443531159166


## 2.2. Signal Processing

In order to avoid dependency on sensor orientation and processing signal in three dimensions, the first step in this phase is to calculate the vector magnitude of three orthogonal acceleration, namely,AX, AY, and AZ. To keep tremors bands and to eliminate low and high-frequency bands, as suggested by earlier work [2], a band-pass Butterworth filters with cut-off frequencies 3−6 Hz for RT and 6−9 Hz for PT and 9−12 Hz for KT are applied in the second step. The filtered signals were segmented using sliding windows of four seconds length with 50% overlap.


## 2.3. Features Extraction

Different features in time and frequency domains were extracted from three frequency bands,3−6 Hz for RT, 6−9 Hz for PT, and 9−12 Hz for KT, to form a 102 features vector. Frequency domain features were extracted after transforming the signal to frequency domain using Fast Fourier Transform (FFT) according to the following equation:(1)Fk=∑t=0Wl−1ate−j2πkt/Wl,fork=0,…,Wl−1,where Fk complex sequence that has the same dimensions as the input sequence att=0wl and e−j2π/W is a primitive Nth root of unity.The extracted features have been specifically chosen to discriminate tremor severity such as central tendency, dissimilarity, distribution, autocorrelation, dispersion, data shape, stationarity, and entropy. Previous research has established that features such as mean, max, energy, number of peaks, and number of values above and below mean and median are highly correlated with tremor severity [21, 22]. Likewise, tremor severity is highly correlated with signal amplitude [23], as high signal amplitude indicates high tremor MDS-UPDRS score and vice versa.The standard deviation has been chosen to measure signal dispersion as an appropriate way to quantify tremor severity [24]. Skewness and kurtosis have been selected to measure data distribution because tremor signals have higher kurtosis values than nontremor signals [25], while nontremor signals have higher skewness values than tremor signals [21].A prior study has shown that tremor intensity defines the severity of tremor [2], and since tremor severity correlated with frequency subbands or bandwidth spread [11], the Power Spectral Density (PSD) can be used to quantify tremor intensity at different frequencies. Thus, three features have been calculated: fundamental frequency, median frequency, and frequency dispersion. The fundamental frequency, which is the frequency, has the highest power of all the frequencies in the spectrum. The median frequency, which is the frequency, splits the PSD into two equal parts. Frequency dispersion is the width of the frequency band that comprises 68% of the PSD. The difference between the fundamental frequency and the median frequency was taken from previous work as an additional feature since the fundamental frequency of tremors could vary between PD patients [26]. Spectral centroid amplitude (SCA), which is the weighted power distribution, and maximum weighted Power Spectral Density (PSD) have been selected to measure spectral energy distribution [27].The PD tremor is a rhythmic motion, hence autocorrelation and sample entropy features that could measure regularity and complexity in time series data, where tremor motions’ autocorrelation and sample entropy are considerably less than nontremor motions that has been demonstrated by earlier work [28, 29]. The complexity-invariant distance (CID) [30], the sum of absolute differences (SAD) [15], and another complexity features have been used to identify tremor. SAD and CID measures time series complexity based on peaks and valleys, as the more complex signal has more peaks and valleys. Consequently, the tremor signal is more complex because tremor frequency and amplitude are higher than nontremor signal; in other words, the tremor signal has a higher number of peaks and valleys. A list of the extracted features and their descriptions is presented in Table2.Table 2
Extracted features and their descriptions.
FeatureDomainFormulaAbove meanT and FW+:W+=at∈W:at>1/Wl∑t=0WtatBelow meanT and FW−:W−=at∈W:at<1/Wl∑t=0WtatAutocorrelationT and F1/Wl−lsw2∑t=0Wl−lat−a¯at+l−a¯wComplexity-invariant distance (CID)T and F∑t=1Wl−1at−at+12Sample entropyT and FlogeAm+1r/AmrKurtosisT and F1/Wl∑t=0Wlat−a¯w4/sw4SkewnessT and F1/Wl∑t=0Wlat−a¯w3/sw3Standard deviationT and F∑t=0Wlat−a¯w2/Wl−1MaxT and FmaxWlt=0atMeanT and F1/w∑t=0WlatMedianT and Fati:i=WlO+1/2ati+ati+1/2:i=WlE/2Sum of absolute differences (SAD)T and F∑l=0Wiat+1−atEnergyT and F∑t=0Wlat2PeaksTP:P=maxan+m+kk=−nnm=0Wl−2n−1Amplitude of peak PSDFmaxWPSD=maxat∈W1/W∑t=0Wl−1ate−j2πkt/Wl2Median frequencyFfmed:∑f=ftfmedPSD=∑f=fmedfmedPSD=1/2∑f=ftfhPSDFrequency dispersionFfdisp=2fstep:∑fmed+fstepfmed+fstepPSD=68/100∑f=ftfhPSDFundamental frequencyFffund:PSDfund=maxfhflPSDFrequency differenceFfmed−ffundSpectral centroid amplitude (SCA)F∑f=flfhfPSD/∑f=ffhfMaximum weighted PSDFmaxfhflfPSDW+: window subset contains elements above the mean; W−: window subset contains elements below the mean; Wl: window length (number of samples); at: the acceleration at time t; l: the lag. a¯w: window’s samples mean; sw: window’s samples standard deviation; Amr: the probability that two vectors of m points within a one window would match; Am+1r: the probability that two vectors of m+1 points within one window would match; WlO: window length is odd; WlE: window length is even; i: an element position (index) in the window W; n: number of neighbours; an+m+k: the acceleration at a time n+m+k; W: the selected window; e−j2π/Wl: the primitive Nth root of unity; fdis: the dispersion frequency in the selected window; f: frequency bin; fl: the lowest frequency in the selected window; fh: the highest frequency in the selected window; fstep: the range between the median frequency and the lower bound of dispersion frequency, which is equal to the range between median frequency and the higher bound of dispersion frequency, that is, 2fstep is the range between lower and higher bound of of dispersion frequency; PSDfund: the PSD at fundamental frequency.


## 3. Resampling Techniques

This section presents a brief about resampling techniques employed in this study. Resampling methods can be categorised into three groups: oversampling, undersampling, and hybrid (combination of over- and undersampling).


### 3.1. Oversampling Techniques

Oversampling techniques consist of adding samples to the minority classes; in this study, two oversampling techniques were explored as described in the following:(a)
Adaptive Synthetic Sampling Approach (ADASYN) [31] creates samples in the minority classes according to their weighted density. The ADASYN allocates higher weights for instances that are difficult to classify using K-nearest neighbour (K-NN) classifier, where more synthetic samples are created for higher weights classes.(b)
Borderline Synthetic Minority Oversampling (BorderlineSMOTE) [32] identifies decision boundary (borderline) of minority samples and then synthetically generates samples in the minority class based on similarities in feature space along the identified borderline.


### 3.2. Undersampling Techniques

Undersampling techniques work by removing samples from the majority classes. In this study, two undersampling techniques were examined as described in the following:(a)
AllKNN [33] applies K-nearest neighbour (K-NN) classifier on majority class and removes all samples that have at least 1-nearest neighbour in the minority class, in order to make classes more separable(b)
Instance Hardness Threshold (IHT) [34] removes samples from majority classes with high probability of being misclassified


## 3.1. Oversampling Techniques

Oversampling techniques consist of adding samples to the minority classes; in this study, two oversampling techniques were explored as described in the following:(a)
Adaptive Synthetic Sampling Approach (ADASYN) [31] creates samples in the minority classes according to their weighted density. The ADASYN allocates higher weights for instances that are difficult to classify using K-nearest neighbour (K-NN) classifier, where more synthetic samples are created for higher weights classes.(b)
Borderline Synthetic Minority Oversampling (BorderlineSMOTE) [32] identifies decision boundary (borderline) of minority samples and then synthetically generates samples in the minority class based on similarities in feature space along the identified borderline.


## 3.2. Undersampling Techniques

Undersampling techniques work by removing samples from the majority classes. In this study, two undersampling techniques were examined as described in the following:(a)
AllKNN [33] applies K-nearest neighbour (K-NN) classifier on majority class and removes all samples that have at least 1-nearest neighbour in the minority class, in order to make classes more separable(b)
Instance Hardness Threshold (IHT) [34] removes samples from majority classes with high probability of being misclassified


## 4. Hybrid Resampling (Combination of Over- and Undersampling)

The last category has investigated the hybrid approach that combines oversampling and undersampling techniques. This approach basically starts by oversampling minority classes followed by undersampling technique to remove majority classes samples that overlap minority classes samples. In this study, two hybrid techniques were examined as described in the following:(a)
Synthetic Minority Oversampling technique combined with edited nearest neighbour (SMOTEENN) [35] creates samples based on similarities in feature space, followed by edited nearest neighbour (ENN), which removes samples whose class label differs from the class of the majority of their K-nearest neighbours. In this study, 3-nearest neighbour algorithms with ENN are applied.(b)
Synthetic Minority Oversampling technique combined with Tomek link (SMOTETomek) [36] increases the number of minority class instances synthetically, similar to SMOTEENN, followed by Tomek link, which removes Tomek’s link samples, which are pairs samples that belong to different classes and are each other’s 1-nearest neighbours.


### 4.1. Classification and Hyperparameter Optimisation

Six different classifiers have been considered for classification: Artificial Neural Network based on Multilayer Perceptron (ANN-MLP) [37], Random Forest (RF) [38], support vector machine (SVM) [39], decision tree (DT) [40], logistic regression (LR) [41], and K-nearest neighbours (KNN) [42].The six classifiers hyperparameters have been optimised using the Bayesian optimization algorithm [43, 44]. The Bayesian optimization algorithm utilises previous evaluations to predict the next set of hyperparameters that are close to the optimum. Consequently, reducing the number of evaluations requires achieving the best score. In this study, Bayes search method from scikit-optimize [45] has been used with 32 iterations and cross-validation. Table 3 shows hyperparameters search spaces that have explored in this study.Table 3
Classifiers’ hyperparameters search spaces.
ClassifierHyperparameters search spacesANN-MLPbatch_size: [32, 64, 512]Epochs: [200, 300]Neurons: Integer (60, 100)Optimizer: [SGD, RMSprop, Adam, Adadelta, Adagrad, Adamax, Nadam]Activation: [relu, tanh, selu, elu, exponential]KNNn_neighbors: Integer (1, 20)Weights: [Distance, uniform]Algorithm: [Brute, ball_tree, kd_tree]Metric: [Minkowski, euclidean, manhattan]leaf_size: Integer (1, 20)p: Integer(1, 2)RFn_estimators: Integer(10, 250)max_features: Integer(1, 102)max_depth: Integer(5, 100)min_samples_split: Integer(2, 20)min_samples_leaf: Integer(1, 20)Criterion: [gini, entropy]DTmax_features: Integer(1, 102)max_depth: Integer(5, 100)min_samples_split: Integer(2, 20)min_samples_leaf: Integer(1, 20)Criterion: [gini, entropy]LRPenalty: [l2, none]C: [1e − 2, 1e − 1, 1e0, 1e1]Solver: [Newton-cg, lbfgs, sag, saga]max_iter: Integer(1, 1000)SVMC: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]Gamma: [0.1, 0.01, 0.001]Degree: (1, 5)Kernel: [Linear, poly, rbf, sigmoid]


### 4.2. Performance Metrics

Accuracy, precision, sensitivity, and specificity are the most commonly used metrics of classification algorithms performance [46], but such metrics are inadequate to assess classifiers as they are sensitive to data distribution [47]. Thus, metrics such as F1-score and geometric mean (G-mean) are frequently used for evaluating classifiers to balance between sensitivity and precision [17]. However, despite the fact that G-mean and F1-score decrease the effect classes distribution, they do not take into consideration the true negatives and classes contribution to overall performance [48]. Therefore, in addition to these metrics, advanced metrics such as Index of Balanced Accuracy (IBA) [48] and Area under the Curve (AUC) [49] have been used in this study in order to find an optimal system that does not bias to specific classes and does not rely on one metric:(2)accuracy=TP+TNTP+TN+FP+FN,precision=TPTP+FP,sensitivity=TPR=TPTP+FN,specificity=TNR=TNTN+FP,F1−score=2∗precision∗sensitivityprecision+sensitivity,G−mean=sensitivity×specificity,IBAα=1+α⋅TPR−TNR⋅GMean2,where 0≤α≤1. TP, FP, TN, FN, TPR, TNR, and α refer, respectively, to true positive, false positive, true negative, false negative, true positive rate, true negative rate, and weighting factor.


## 4.1. Classification and Hyperparameter Optimisation

Six different classifiers have been considered for classification: Artificial Neural Network based on Multilayer Perceptron (ANN-MLP) [37], Random Forest (RF) [38], support vector machine (SVM) [39], decision tree (DT) [40], logistic regression (LR) [41], and K-nearest neighbours (KNN) [42].The six classifiers hyperparameters have been optimised using the Bayesian optimization algorithm [43, 44]. The Bayesian optimization algorithm utilises previous evaluations to predict the next set of hyperparameters that are close to the optimum. Consequently, reducing the number of evaluations requires achieving the best score. In this study, Bayes search method from scikit-optimize [45] has been used with 32 iterations and cross-validation. Table 3 shows hyperparameters search spaces that have explored in this study.Table 3
Classifiers’ hyperparameters search spaces.
ClassifierHyperparameters search spacesANN-MLPbatch_size: [32, 64, 512]Epochs: [200, 300]Neurons: Integer (60, 100)Optimizer: [SGD, RMSprop, Adam, Adadelta, Adagrad, Adamax, Nadam]Activation: [relu, tanh, selu, elu, exponential]KNNn_neighbors: Integer (1, 20)Weights: [Distance, uniform]Algorithm: [Brute, ball_tree, kd_tree]Metric: [Minkowski, euclidean, manhattan]leaf_size: Integer (1, 20)p: Integer(1, 2)RFn_estimators: Integer(10, 250)max_features: Integer(1, 102)max_depth: Integer(5, 100)min_samples_split: Integer(2, 20)min_samples_leaf: Integer(1, 20)Criterion: [gini, entropy]DTmax_features: Integer(1, 102)max_depth: Integer(5, 100)min_samples_split: Integer(2, 20)min_samples_leaf: Integer(1, 20)Criterion: [gini, entropy]LRPenalty: [l2, none]C: [1e − 2, 1e − 1, 1e0, 1e1]Solver: [Newton-cg, lbfgs, sag, saga]max_iter: Integer(1, 1000)SVMC: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]Gamma: [0.1, 0.01, 0.001]Degree: (1, 5)Kernel: [Linear, poly, rbf, sigmoid]


## 4.2. Performance Metrics

Accuracy, precision, sensitivity, and specificity are the most commonly used metrics of classification algorithms performance [46], but such metrics are inadequate to assess classifiers as they are sensitive to data distribution [47]. Thus, metrics such as F1-score and geometric mean (G-mean) are frequently used for evaluating classifiers to balance between sensitivity and precision [17]. However, despite the fact that G-mean and F1-score decrease the effect classes distribution, they do not take into consideration the true negatives and classes contribution to overall performance [48]. Therefore, in addition to these metrics, advanced metrics such as Index of Balanced Accuracy (IBA) [48] and Area under the Curve (AUC) [49] have been used in this study in order to find an optimal system that does not bias to specific classes and does not rely on one metric:(2)accuracy=TP+TNTP+TN+FP+FN,precision=TPTP+FP,sensitivity=TPR=TPTP+FN,specificity=TNR=TNTN+FP,F1−score=2∗precision∗sensitivityprecision+sensitivity,G−mean=sensitivity×specificity,IBAα=1+α⋅TPR−TNR⋅GMean2,where 0≤α≤1. TP, FP, TN, FN, TPR, TNR, and α refer, respectively, to true positive, false positive, true negative, false negative, true positive rate, true negative rate, and weighting factor.


## 5. Recommended Tasks Framework

A key aspect of a recommended system is to identify the best tasks or activities performed by PD patients to detect tremor severity. Therefore, a recommended tasks framework is proposed, as shown in Algorithm1. The algorithm basically utilise classification performance metrics of different classifiers with and without resampling of different tasks from different datasets to identify best tasks.Algorithm 1:Recommended tasks algorithm.
(1)
counter⟵t(2)
metrics⟵tAccuracy,AUC,G0mean,F10score,IBA(3)
datasets⟵tdatasetI,datasetII,datasetIII,datasetIV,resampled_datasetI,resampled_datasetII,resampled_datasetIII,resampled_datasetIV(4)
tasks⟵drawg,drnkg,fldng,ftnl,ftnr,ntblt,orgpa,raml,ramr,typng,sittg,stndg,strsd,strsu,ststd,wlkgc,wlkgp,wlkgs(5)
task_above_average_counter⟵tlengthtaskslengthtasks(6)
formetric∈metricsdo(7)
fordata set∈data setsdo(8)
sum⟵0(9)
average⟵0(10)
data set_array⟵lengthtaskslengthtasks(11)
fortask∈tasksdo(12)
max⟵0(13)
formetric_value∈metric_valuesdo(14)
ifmetric_value>maxthen(15)
max=metric_value(16)
end if(17)
end for(18)
sum=sum+max(19)
addtask,maxtodata set_array(20)
end for(21)
average=sum/lengthtasks(22)
fortask,max∈data set_arraydo(23)
ifmax>averagethen(24)
task_above_average_counter⟵taskcounter+1(25)
else(26)
task_above_average_counter⟵taskcounter(27)
end if(28)
end for(29)
end for(30)
end forAfter classification, the performance metrics of all datasets were collected separately. After that, the following steps were performed for each collected metric results independently. The highest value of each metric of each task has been identified in two cases, the first case when the dataset was classified without resampling and the second case with resampling. Then, an above-average rule has been applied for each dataset, where the values above average among all tasks have been selected. After that, the number of values above average counted for each task among all datasets.In the final stage, the total number of all counters for all metrics for each task in all datasets was calculated and sorted in the descending order list. The list of tasks is grouped into three groups: recommended, neutral, and not recommended. Each group will contain six tasks from the datasets that have been performed during data collection.


### 5.1. Recommended Classifiers and Resampling Techniques Framework

After identifying the recommended tasks in the previous section, the results are used to identify the recommended classifier(s) and resampling technique(s). Figure3 presents the proposed framework to identify which classifiers, hyperparameters, and resampling techniques that achieved the highest accuracy for each task, and this will produce potential recommended systems that will be evaluated later in the following section (Potential Recommended Systems Evaluation).Figure 3
Recommended classifiers and resampling techniques.The first stage is to highlight the classifier(s) and hyperparameters that achieved the highest accuracy with all resampling techniques, then selecting the most frequent classifier(s) that achieved the highest score. The second stage is to select resampling technique(s) with the highest count with selected classifier(s) in the first stage. If classifiers and resampling techniques were selected more than once in the previous stage, the third stage was applied to filter the results based on the highest validation score and then based on lowest fit time. The potential recommended systems saved for evaluation, which will be explained in the following section.


### 5.2. Potential Recommended Systems Evaluation

A number of saved potential recommended systems will be evaluated to determine the ideal system for deployment. The evaluation process utilised15% of all datasets combined. The recommended system should estimate tremor severity regardless of used data in this study and should work well if the data is collected using the same sensors while subjects are performing the recommended tasks found in this study. Evaluation data was split into two parts, 10% was evaluated through the metrics as described in Performance Metrics section using the saved potential systems, and 5% was split into 20 samples used as external test data to be predicted as patient data.The results of the first part of evaluation data, the10%, were utilised to select top performance models (ideal models), and then the ideal models were tested and validated to predict the 5% external test data. The 5% test data was split into 20 separate samples to predict every sample overall tremor severity by calculating the value at which the probability mass function is the maximum.


## 5.1. Recommended Classifiers and Resampling Techniques Framework

After identifying the recommended tasks in the previous section, the results are used to identify the recommended classifier(s) and resampling technique(s). Figure3 presents the proposed framework to identify which classifiers, hyperparameters, and resampling techniques that achieved the highest accuracy for each task, and this will produce potential recommended systems that will be evaluated later in the following section (Potential Recommended Systems Evaluation).Figure 3
Recommended classifiers and resampling techniques.The first stage is to highlight the classifier(s) and hyperparameters that achieved the highest accuracy with all resampling techniques, then selecting the most frequent classifier(s) that achieved the highest score. The second stage is to select resampling technique(s) with the highest count with selected classifier(s) in the first stage. If classifiers and resampling techniques were selected more than once in the previous stage, the third stage was applied to filter the results based on the highest validation score and then based on lowest fit time. The potential recommended systems saved for evaluation, which will be explained in the following section.


## 5.2. Potential Recommended Systems Evaluation

A number of saved potential recommended systems will be evaluated to determine the ideal system for deployment. The evaluation process utilised15% of all datasets combined. The recommended system should estimate tremor severity regardless of used data in this study and should work well if the data is collected using the same sensors while subjects are performing the recommended tasks found in this study. Evaluation data was split into two parts, 10% was evaluated through the metrics as described in Performance Metrics section using the saved potential systems, and 5% was split into 20 samples used as external test data to be predicted as patient data.The results of the first part of evaluation data, the10%, were utilised to select top performance models (ideal models), and then the ideal models were tested and validated to predict the 5% external test data. The 5% test data was split into 20 separate samples to predict every sample overall tremor severity by calculating the value at which the probability mass function is the maximum.


## 6. Results and Discussions

The section is presented in three parts. The first part will discuss the recommended tasks. The recommended classifiers and resampling techniques are presented in the second part. The third part presents the potential recommended systems and final recommended system.


### 6.1. Recommended Tasks

Table4 shows the results of one metric (accuracy) utilised to identify recommended tasks with resampling and without resampling, the highlighted values are above average among each dataset, while the count above average column shows values that are above average for datasets for each task. Closer inspection of the table shows that resampling techniques improved the accuracy significantly. However, classification accuracy off datasets follows the same trend when they resampled and when they did not resample. The same process has been applied for all metrics (AUC, F1-score, G-mean, and IBA).Table 4
Task highest accuracy of all classifiers and values above average counts.
AccuracyWithout resamplingWith resamplingCount above averageG-1 (%)G-4 (%)P-1 (%)P-4 (%)G-1 (%)G-4 (%)P-1 (%)P-4 (%)drawg66558895939195993drnkg66587279939396970fldng71637580949195960ftnl77766562979695963ftnr53687686909897993ntblt71637175959495960orgpa66756777969896972raml77796859969798944ramr68598285969198994typng77717567969397961sittg787587931009898998stndg726577761009899973strsd948189901001001001008strsu8086901001001001001008ststd8679888110099991007wlkgc76749083989699987wlkgp72738884969798986wlkgs807990889998100998Average7471808197969898G-1: GENEActiv-Day 1; G-4: GENEActiv-Day 4; P-1: Pebble-Day 1; P-4: Pebble-Day 4.Table5 presents the results of above-average count of all metrics and groups the 18 tasks performed during data collection into three groups: recommended, neutral, and not recommended. It can be observed that tasks involving direct wrist movements have the lowest count (not recommended tasks), while tasks not involving direct wrist movements have the highest count (recommended tasks). The neutral tasks have count less than the recommended task but higher than not recommended tasks. A likely explanation is that these tasks do not involve direct wrist movements similar to not recommended task. So, another possible area of future research would be to investigate these tasks in more detail with different patients.Table 5
Tasks of above-average count for all metrics.
TaskCount above averageAccuracyAUCF1-scoreG-meanIBATotalRecommended tasksstrsd8888840sittg8788839strsu8886636wlkgs8886636wlkgc7875532ststd7775430Neutral tasksftnr3646524raml4636524wlkgp6762324ramr4545523stndg3735523ftnl3434418Not recommended taskorgpa2622214drawg3232212typng151119fldng040228drnkg030115ntblt010001Together, these results provide important insights into tasks performed during data collection influence classification performance; therefore, this study presents recommended tasks (stairs down, sitting, stairs up, walking straight, walking while counting, and sit to stand) to be performed to measure tremor through wearable devices.


### 6.2. Recommended Classifiers and Resampling Techniques

The recommended classifier(s) and resampling technique(s) were identified following the framework, which was described in Recommended Classifiers and Resampling Techniques Framework section. Figure4 shows the results of first recommended task (strsd). In the first stage, two classifiers (ANN-MLP and SVM) have the highest count. In the second stage, three resampling techniques (ADASYN, BorderlineSMOT and SMOTETomek) have the highest count with both filtered classifiers in the first stage. In the next stage, SVM achieved the highest validation score 100%. Finally, based on fit time, SVM combined with ADASYN was found to be the best model to classify tremor of strsd task, which is the first potential recommended system. The same procedure applied for all recommended tasks to produce six potential systems is presented in Table 6. What is interesting about the data in this table is that all potential recommended systems include SVM as a classifier. In addition, the most common kernel is “rbf,” except system 4.Figure 4
Recommended classifiers and resampling techniques results (strsd).Table 6
Potential recommended systems.
SystemTaskClassifierResample techniqueValidation score (%)HyperparametersMean fit timeSystem 1strsdSVMADASYN100.00C=10, degree=1, gamma=0.1, kernel=rbf2.549183011System 2sittgSVMADASYN99.47C=6, degree=5, gamma=0.1, kernel=rbf5.469041586System 3wlkgsSVMADASYN98.34C=10, degree=4, gamma=0.1, kernel=rbf4.719249964System 4strsuSVMSMOTETomek100.00C=1, degree=5, gamma=0.001, kernel=linear0.045000315System 5wlkgcSVMSMOTEENN98.46C=10, degree=1, gamma=0.1, kernel=rbf1.642106652System 6ststdSVMBorderlineSMOTE99.14C=3, degree=5, gamma=0.1, kernel=rbf6.840166569These findings suggest that SVM with oversampling and hybrid resampling techniques (ADASYN, BorderlineSMOTE, SMOTETomek, and SMOTEENN) performance is better than other classifiers and resampling techniques that have been examined in this study. However, in order to identify a recommended system, the potential systems were evaluated as discussed in Potential Recommended Systems Evaluation section. The performance of potential systems on the evaluation data (15%) is presented in Table 7. It is apparent from this table that system 6 achieved the highest performance with 98% accuracy, 98% F1-score, 98% G-mean, 97% IBA, and 100% AUC, while systems 4 and 5 achieved worst performance. Systems 1, 2, and 3 performance is lower than system 6 but better than others. Therefore, top 4 systems were evaluated through tremor severity prediction approach utilising the 5% (20 samples) external test data. Table 8 shows the predictions results of all 20 samples of the top 4 systems. Systems 2 and 4 predicted all samples correctly, while systems 1 and 3 misclassified sample 19. System one was not able to classify sample 19 exactly as it gives the same probability for severities 3 and 0, while the actual severity is 3. On the other hand, system 3 classified the same sample as 0. Hence, this study suggests system 6 is a recommended system, since it performed better on evaluation and test data and the second choice is system 2 and then systems 1 and 3, respectively. The confusion matrix and Receiver Operating Characteristic (ROC) curve of the recommended system (System 6) are presented in Figures 5(a) and 5(b), respectively.Table 7
Potential systems performance.
SystemClassifierResample techniqueAccuracy (%)F1-score (%)IBA (%)G-mean (%)AUC (%)System 1SVMADASYN9797969899System 2SVMADASYN9797969899System 3SVMADASYN97979698100System 4SVMSMOTETomek9696949799System 5SVMSMOTEENN9393909599System 6SVMBorderlineSMOTE98989798100Table 8
Top four systems tremor severity predictions.
Sample dataActual severityPredicted severitySystem 1System 2System 3System 6Sample_0100000Sample_0211111Sample_0322222Sample_0433333Sample_0544444Sample_0600000Sample_0711111Sample_0822222Sample_0933333Sample_1044444Sample_1100000Sample_1211111Sample_1322222Sample_1433333Sample_1544444Sample_1600000Sample_1711111Sample_1822222Sample_193(3, 0)3(0)3Sample_2044444The misclassified samples are in bold.Figure 5
Recommended system (system 6) confusion matrix and ROC curve.
(a)(b)


## 6.1. Recommended Tasks

Table4 shows the results of one metric (accuracy) utilised to identify recommended tasks with resampling and without resampling, the highlighted values are above average among each dataset, while the count above average column shows values that are above average for datasets for each task. Closer inspection of the table shows that resampling techniques improved the accuracy significantly. However, classification accuracy off datasets follows the same trend when they resampled and when they did not resample. The same process has been applied for all metrics (AUC, F1-score, G-mean, and IBA).Table 4
Task highest accuracy of all classifiers and values above average counts.
AccuracyWithout resamplingWith resamplingCount above averageG-1 (%)G-4 (%)P-1 (%)P-4 (%)G-1 (%)G-4 (%)P-1 (%)P-4 (%)drawg66558895939195993drnkg66587279939396970fldng71637580949195960ftnl77766562979695963ftnr53687686909897993ntblt71637175959495960orgpa66756777969896972raml77796859969798944ramr68598285969198994typng77717567969397961sittg787587931009898998stndg726577761009899973strsd948189901001001001008strsu8086901001001001001008ststd8679888110099991007wlkgc76749083989699987wlkgp72738884969798986wlkgs807990889998100998Average7471808197969898G-1: GENEActiv-Day 1; G-4: GENEActiv-Day 4; P-1: Pebble-Day 1; P-4: Pebble-Day 4.Table5 presents the results of above-average count of all metrics and groups the 18 tasks performed during data collection into three groups: recommended, neutral, and not recommended. It can be observed that tasks involving direct wrist movements have the lowest count (not recommended tasks), while tasks not involving direct wrist movements have the highest count (recommended tasks). The neutral tasks have count less than the recommended task but higher than not recommended tasks. A likely explanation is that these tasks do not involve direct wrist movements similar to not recommended task. So, another possible area of future research would be to investigate these tasks in more detail with different patients.Table 5
Tasks of above-average count for all metrics.
TaskCount above averageAccuracyAUCF1-scoreG-meanIBATotalRecommended tasksstrsd8888840sittg8788839strsu8886636wlkgs8886636wlkgc7875532ststd7775430Neutral tasksftnr3646524raml4636524wlkgp6762324ramr4545523stndg3735523ftnl3434418Not recommended taskorgpa2622214drawg3232212typng151119fldng040228drnkg030115ntblt010001Together, these results provide important insights into tasks performed during data collection influence classification performance; therefore, this study presents recommended tasks (stairs down, sitting, stairs up, walking straight, walking while counting, and sit to stand) to be performed to measure tremor through wearable devices.


## 6.2. Recommended Classifiers and Resampling Techniques

The recommended classifier(s) and resampling technique(s) were identified following the framework, which was described in Recommended Classifiers and Resampling Techniques Framework section. Figure4 shows the results of first recommended task (strsd). In the first stage, two classifiers (ANN-MLP and SVM) have the highest count. In the second stage, three resampling techniques (ADASYN, BorderlineSMOT and SMOTETomek) have the highest count with both filtered classifiers in the first stage. In the next stage, SVM achieved the highest validation score 100%. Finally, based on fit time, SVM combined with ADASYN was found to be the best model to classify tremor of strsd task, which is the first potential recommended system. The same procedure applied for all recommended tasks to produce six potential systems is presented in Table 6. What is interesting about the data in this table is that all potential recommended systems include SVM as a classifier. In addition, the most common kernel is “rbf,” except system 4.Figure 4
Recommended classifiers and resampling techniques results (strsd).Table 6
Potential recommended systems.
SystemTaskClassifierResample techniqueValidation score (%)HyperparametersMean fit timeSystem 1strsdSVMADASYN100.00C=10, degree=1, gamma=0.1, kernel=rbf2.549183011System 2sittgSVMADASYN99.47C=6, degree=5, gamma=0.1, kernel=rbf5.469041586System 3wlkgsSVMADASYN98.34C=10, degree=4, gamma=0.1, kernel=rbf4.719249964System 4strsuSVMSMOTETomek100.00C=1, degree=5, gamma=0.001, kernel=linear0.045000315System 5wlkgcSVMSMOTEENN98.46C=10, degree=1, gamma=0.1, kernel=rbf1.642106652System 6ststdSVMBorderlineSMOTE99.14C=3, degree=5, gamma=0.1, kernel=rbf6.840166569These findings suggest that SVM with oversampling and hybrid resampling techniques (ADASYN, BorderlineSMOTE, SMOTETomek, and SMOTEENN) performance is better than other classifiers and resampling techniques that have been examined in this study. However, in order to identify a recommended system, the potential systems were evaluated as discussed in Potential Recommended Systems Evaluation section. The performance of potential systems on the evaluation data (15%) is presented in Table 7. It is apparent from this table that system 6 achieved the highest performance with 98% accuracy, 98% F1-score, 98% G-mean, 97% IBA, and 100% AUC, while systems 4 and 5 achieved worst performance. Systems 1, 2, and 3 performance is lower than system 6 but better than others. Therefore, top 4 systems were evaluated through tremor severity prediction approach utilising the 5% (20 samples) external test data. Table 8 shows the predictions results of all 20 samples of the top 4 systems. Systems 2 and 4 predicted all samples correctly, while systems 1 and 3 misclassified sample 19. System one was not able to classify sample 19 exactly as it gives the same probability for severities 3 and 0, while the actual severity is 3. On the other hand, system 3 classified the same sample as 0. Hence, this study suggests system 6 is a recommended system, since it performed better on evaluation and test data and the second choice is system 2 and then systems 1 and 3, respectively. The confusion matrix and Receiver Operating Characteristic (ROC) curve of the recommended system (System 6) are presented in Figures 5(a) and 5(b), respectively.Table 7
Potential systems performance.
SystemClassifierResample techniqueAccuracy (%)F1-score (%)IBA (%)G-mean (%)AUC (%)System 1SVMADASYN9797969899System 2SVMADASYN9797969899System 3SVMADASYN97979698100System 4SVMSMOTETomek9696949799System 5SVMSMOTEENN9393909599System 6SVMBorderlineSMOTE98989798100Table 8
Top four systems tremor severity predictions.
Sample dataActual severityPredicted severitySystem 1System 2System 3System 6Sample_0100000Sample_0211111Sample_0322222Sample_0433333Sample_0544444Sample_0600000Sample_0711111Sample_0822222Sample_0933333Sample_1044444Sample_1100000Sample_1211111Sample_1322222Sample_1433333Sample_1544444Sample_1600000Sample_1711111Sample_1822222Sample_193(3, 0)3(0)3Sample_2044444The misclassified samples are in bold.Figure 5
Recommended system (system 6) confusion matrix and ROC curve.
(a)(b)


## 7. Study Limitations

We acknowledge that this study has a number of limitations. First, the sample size is small and may not be fully representative of the wider PD population. Second, the dataset was collected in one environment. Hence, results may differ if the environment is changed. Third, the recommended systems should be evaluated with different dataset that is collected independently of the used dataset and should be evaluated by different researchers to validate inter- and intrareliability.


## 8. Conclusion and Future Work

The main goal of the current study was to identify task-oriented intelligent solution that can be used to measure tremor severity using wearable devices combined with machine learning techniques. This study has been one of the first attempts to thoroughly examine the influence of tasks performed during data collection on classification performance. Furthermore, a comprehensive approach was used to identify best classifiers, classifiers hyperparameters, and resampling techniques in combination with signal processing and robust features extraction techniques. Different metrics, including accuracy, F1-score, G-mean, IBA, and AUC, have been used to identify the recommended system using a novel algorithm to avoid bias. In general, ADL tasks that involve direct wrist movements are not suitable for tremor severity assessment such as drawing, writing, drinking, folding a towel, typing, organizing sheets in a folder, and assembling nuts and bolts. On the other hand, tasks that do not involve direct wrist movements achieved high performance of tremor severity classification. In addition, resampling techniques can improve classification performance. In this study, the recommended system has been suggested to evaluate tremor severity from data that was collected using two types of wearable devices, while patients are either on medication or off medication. The recommended system consists of three main components, which are classifier, resampling technique, and the tasks to be performed during data collection. The findings of this study suggest that the best system is the SVM classifier combined with BorderlineSMOTE oversampling technique, and the tasks are sitting, stairs up and down, walking straight, walking while counting, and standing. The suggested recommended system has been tested using evaluation data from two wearable devices and achieved98% accuracy, 98% F1-score, 97% IBA, 98% G-mean, and 99% AUC. In addition, it has been tested to predict tremor severity of test data from both wearable devices, and it was able to predict all samples correctly.For future studies, it is suggested to test the recommended system with different datasets and also to explore more ADL tasks and different wearable devices in different environments, including free-living tasks at home.



---

*Source: 9624386-2021-09-10.xml*