 Research Article
 Open access
 Published:
Forecasting onedayforward wellness conditions for communitydwelling elderly with single lead short electrocardiogram signals
BMC Medical Informatics and Decision Making volume 19, Article number: 285 (2019)
Abstract
Background
The accelerated growth of elderly population is creating a heavy burden to the healthcare system in many developed countries and regions. Electrocardiogram (ECG) analysis has been recognized as effective approach to cardiovascular disease diagnosis and widely utilized for monitoring personalized health conditions.
Method
In this study, we present a novel approach to forecasting onedayforward wellness conditions for communitydwelling elderly by analyzing single lead short ECG signals acquired from a stationbased monitoring device. More specifically, exponentially weighted movingaverage (EWMA) method is employed to eliminate the highfrequency noise from original signals at first. Then, FisherYates normalization approach is used to adjust the selfevaluated wellness score distribution since the scores among different individuals are skewed. Finally, both deep learningbased and traditional machine learningbased methods are utilized for building wellness forecasting models.
Results
The experiment results show that the deep learningbased methods achieve the best fitted forecasting performance, where the forecasting accuracy and F value are 93.21% and 91.98% respectively. The deep learningbased methods, with the merit of nonhandcrafted engineering, have superior wellness forecasting performance towards the competitive traditional machine learningbased methods.
Conclusion
The developed approach in this paper is effective in wellness forecasting for communitydwelling elderly, which can provide insights in terms of implementing a costeffective approach to informing healthcare provider about health conditions of elderly in advance and taking timely interventions to reduce the risk of malignant events.
Background
The social and economic implications of aging population are becoming increasingly apparent in many countries and regions over the worldwide [1, 2]. Take Hong Kong for instance, the proportion of elderly aged 65 and over is projected to rise from 15% in 2014 to 36% in 2064 [3]. Since healthcare expenses increase significantly on average at the end of elderly people’s life, it is a heavy burden for local government and families to undertake the expenditures of medical services [4]. Fortunately, healthcare platforms can mitigate this kind of problems to a large degree, which provide daily healthcare monitoring services for elderly people via wearable and portable medical devices [5–7]. Most of them are centering on realtime monitoring rather than longterm forecasting for wellness conditions. However, longterm forecasting for wellness conditions has great potential in term of informing the associated healthcare provider about health conditions of elderly in advance and taking necessary interventions to reduce the possibility of malignant events. Therefore, developing an effective longterm forecasting method for wellness conditions of elderly has great significance in improving elderly care services.
In the past decades, many healthcare platforms for wellness monitoring have been developed, mainly including chronic diseases monitoring [5, 6, 8–10], cardiovascular diseases [11, 12], and general wellness monitoring [13–16]. He et al. [5, 6] proposed a sixlayer healthcare cloud platform which collected physiological signals and vital signs from elderly and gave out a health evaluation report about hypertension, diabetes, and arrhythmias. Kara et al. [8] proposed a remote realtime health monitoring system. This system could provide heart conditions monitoring service and mitigate the problem of low doctortopatient ratio. Paradiso et al. [11] proposed a health monitoring system called WEALTHY which monitors individuals affected by cardiovascular diseases. Kailas et al. [13] proposed a general wellness system which could enable healthcare professionals to master the wellness conditions by comprehensive realtime patient data. These healthcare platforms aforementioned process physiological data and vital signs online or offline in the backend, and deliver the corresponding healthcare reports of wellness conditions to the medical provider and cared individuals in real time or at fixed time. Thanks to the development of information technologies, these platforms become more and more stable and could provide more healthcare monitoring services. However, current healthcare platforms still have great deficiencies in forecasting longterm wellness conditions of elderly individuals. Therefore, researchers shifted their focus from healthcare monitoring to wellness conditions forecasting. Yu et al. [3] proposed a personalized healthcare monitoring platform to forecast onedayforward wellness conditions for elderly. Integrating wearable data and vital signs from an allinone stationbased monitoring device, they took advantage of machine learning tools to predict personal wellness conditions for elderly. However, their forecasting model is a highly personal datadependent which could not provide an instant wellness forecasting service for other individuals.
Electrocardiogram (ECG) with the noninvasive and costeffective merits is widely utilized to monitor heart health conditions such as atrial fibrillation [17], myocardial ischemia [18], and hypokalemia [19]. Due to the advanced technology of internet of things (IOT), singlelead ECG signals can be acquired conveniently by wearable/portable monitoring devices without the limits of time and locations [20]. In this study, we propose a onedayforward forecasting method of wellness condition for communitydwelling elderly based on single lead short ECG signals. The proposed method mainly consists of exponentially weighted movingaverage (EWMA) [21, 22] as a filter to remove highfrequency noises, FisherYates normalization [3, 23] to mitigate the skewness of selfevaluated wellness scores, model selection based on deep learning and machine learning methods. Finally, the best fitted model validated by the visualization of learned features can be deployed into a healthcare platform to provide a forecasting wellness condition service.
The main contributions of this study are summarized as follows:
We propose a novel framework using single lead ECG signals for forecasting onedayforward wellness conditions of communitydwelling elderly using short ECG signals.
FisherYates normalization is utilized to adjust the selfevaluated wellness score distribution among different individuals.
Based on deep learning and traditional machine learning methods, extensive wellness forecasting models are built and the best fitted forecasting model is selected for feature analysis and discussion of performance enhancement through the EWMA.
The proposed framework can provide insights in terms of implementing a costeffective approach to informing health conditions of elderly in advance and taking timely interventions to reduce the risk of malignant events.
The rest of this paper is organized as follows. The related work of forecasting methods is summarized in “Related work” section. In “Methods” section, both deep learningbased and traditional machine learningbased methods for forecasting elderly wellness conditions are described in detail. In “Results” section, experimental results are presented and the best forecasting model based on performance is selected. Feature visualization and optimization schemes are discussed in “Discussion” section. Finally, the conclusion is drawn in the last section.
Related work
In this section, we review forecasting methods for temporal data particularly with applications to healthcare domain. These forecasting methods can be divided into two main categories: (i) traditional machine learningbased methods and (ii) deep learningbased methods.
For traditional machine learningbased forecasting methods, two representative approaches are support vector machine (SVM) and artificial neural network (ANN). Wu et al. [24] employed SVM to predict heart failure more than six months via vast electronic health records (EHR). The highest value of area under curve (AUC) for SVM is around 0.75. Santillana et al. [25] utilized the SVM to forecast estimates of influenza activity in America. Yu et al. [3] used the SVM to predict onedayforward wellness conditions for elderly and achieved the forecasting accuracy of around 60%. Meanwhile, the ANN also obtained widely application in health care domain. Suryadevara et al. [26] took advantage of the ANN to forecast the behavior and wellness of elderly and deployed it into a healthcare prototype system. Srinivas et al. [27] employed the ANN to predict heart diseases like chest pain, stroke and heart attack. The prediction performances of these traditional machine learningbased methods are difficult to meet the precisely forecasting demands of elderly. So, researchers shifted their attention to cuttingedge deep learningbased forecasting methods.
In recent years, deep learningbased methods like recurrent neural network (RNN) has been achieved a big success in natural language processing, speech recognition, and machine translation [28–31]. Researchers also attempted to solve the problems in healthcare domain using these cuttingedge approaches [32–34]. Ma et al. [32] proposed an endtoend simple recurrent neural network to model the temporality and high dimensionality of sequential EHR data to predict patients’ future health information. The experimental results based on two real world EHR datasets showed that their model improved the prediction accuracy significantly. Choi et al. [33] explored recurrent neural network whether improving initial diagnosis of heart failure compared to traditional machine learningbased approaches. Experimental results proved that recurrent neural network could leverage the temporal relations and improved the prediction performance of incident heart failure. Choi et al. [34] also proposed an interpretable forecasting model based on recurrent neural network. This deep model was tested on a large EHR dataset and demonstrated its superior prediction performance. Therefore, two popular deep learningbased approaches called long shortterm memory network (LSTM) [35, 36] and bidirectional long shortterm memory network (BiLSTM) [37] are utilized to forecast onedayforward wellness conditions for elderly in this study. Meanwhile, two traditional machine learningbased methods of SVM and ANN are also employed for model selection.
Methods
Figure 1 shows the whole pipeline of the proposed framework for forecasting onedayforward wellness conditions of elderly. The proposed framework mainly consists of data preprocessing stage and model selection stage. More specifically, to eliminate the influence of highfrequency noise and skewness distribution, EWMA [21, 22] and FisherYates normalization methods [3, 23] are employed in the procedure of data preprocessing. Meanwhile, to obtain a superior forecasting performance of onedayforward wellness conditions, the stateoftheart methods including deep learningbased and traditional machine learningbased methods are investigated for model selection. The details of these approaches are elaborated as follows.
Problem Formulation
The task of this study is based on single lead short ECG signals to build a prediction model to forecast onedayforward wellness conditions for elderly population. The input to the prediction model is an ECG signal \(x_{i} = \left [x^{1}_{i}, x^{2}_{i}, \cdots, x^{n}_{i}\right ]\) with the length of n, where \(x^{j}_{i}\) is the jth element in the ith ECG signal. Health index (HI) as the output consists of five health status categories from poor to excellent, and the corresponding score of HI is from 1 to 5. The HI scores as the ground truth are not suitable as the outputs of the prediction model directly since the HI scores are selfevaluated and subjective, which lead to serious skewness distribution. Therefore, the HI scores are preprocessed by FisherYates normalization technique[3] which will be introduced in detail in the subsequent section. After FisherYates normalization, the normalised HI scores y are dichotomized into better wellness condition (y=0) and worse wellness condition (y=1) based on a threshold value 0 (an example refers to Table 1). Therefore, the problem of this study is transformed into a classification problem. For a single instance in the training course, given training set X={x_{1},x_{2},⋯,x_{m}} and ground truth wellnes condition set Y={y_{1},y_{2},⋯,y_{m}}, the forecasting model aims to minimize the crossentropy objective function as follows:
where y_{i} is the groundtruth label, \(\hat {y_{i}}\) is the predicted label, and m is the size of training set.
Data preprocessing
Filtering
ECG signals acquired by a portable monitoring device are often contaminated by variety of noises. The EWMA [38] as a lowpass filter is utilized to cancel the highfrequency noise. The EWMA is a moving average with exponential diminishing with time, which is somewhat related to the number of points in a moving average. The EWMA can be defined as:
where EWMA_{t} is the output of the tth time point with the window size n of a moving average. \(\alpha = \frac {2}{1 + n}\), which indicates the rate of weight decline. n refers to the number of points in a moving average. x_{i} is the ith point in the window. As shown in Eq. 2, one can observe that recent points in a moving average have higher weighting, far previous points have almost no weight. As the number of points in a moving average increases, the EWMA filter can produce a smoother signal with larger response lag. In this study, n is set to a popular value 40 in time series domain. An ECG signal was sampled out from training set to cancel highfrequency noise with the EWMA. As shown in Fig. 2, the ECG signal through EWMA filtering has reduced random noise greatly, which is helpful for improving forecasting performance of subsequent classifiers.
Segmentation
The length of input ECG signals acquired from elderly nursing center varies from 20 seconds to 25 seconds. However, most of deep learningbased and traditional machine learningbased methods require fixed input length. In this study, an ECG signal is segmented into segments of 5 seconds long with stride 1 second [17], which includes about 4 to 9 heartbeats. Take a 20secondlong ECG signal for example, this signal can be segmented into 15 5secondlong ECG signals with aforementioned scheme. It can greatly increase the size of training set, which would enhance the forecasting performance of deep learningbased methods.
Normalization
The amplitude of ECG signals vary largely from different individuals, even for the same individual with different time. In practice, normalization for input data help machine learning methods to converge quickly, particularly for deep learningbased methods [17]. Regarding the ground truth selfevaluated HI scores, different elderly may provide different HI score even if they have the similar feeling of wellness condition. Using a normalization scheme are necessary to balance the bias of subjective feeling. In this study, minmax normalization technique is used for normalizing input ECG signals as well as FisherYates normalization technique [3] for ground truth label HI.
Minmax normalization: this technology is one kind of common used statistic normalizing tools, which maps all of the values into range [0,1]. The minmax normalization can be defined as:
$$ X_{new} = \frac{X  X_{min}}{X_{max}  X_{min}} $$(3)where X_{new} means the output of minmax normalization. X_{min} means the minimum value of the input ECG signal. X_{max} means the maximum value of the ECG signal.
FisherYates normalization: generally, FisherYates normalization has intrinsic ability to remove the skewness of original data, which is pretty appropriate for HI transformation. Suppose x_{ij} is HI score of the ith day of the jth elderly. Let r_{ij} be the rank of the ith score among the assessment course of the jth elderly, 1≦i≦I and 1≦j≦P. Then x_{ij} can be replaced by Ψ^{−1}(.), which is defined as:
$$ FY_{norm} (x_{ij}) = \varPsi^{1}\left(\frac{r_{ij}}{I + 1}\right) $$(4)where FY_{norm} is an array of FisherYates normalization scores. To simplify the problem of forecasting onedayforward wellness condition, the FY_{norm} scores of HI are mapped into binary values 0 and 1. More specifically, FY_{norm} scores greater than 0 are mapped as value 0 representing better wellness condition, otherwise as value 1 representing worse wellness condition. As shown in Table 1, it is an instance of health index vs. FisherYates normalization score from an elderly. Since the recruited elderly only gave three of selfevaluated health index, this example presents the corresponding FisherYates normalization scores and binary wellness conditions. One can observe that HI score 3 and 4 are mapped as worse condition as well as HI score 5 are mapped as better condition after FisherYates normalization. By means of this process, Fig. 3 shows that the skewness in HI scores is almost removed.
Classification methods
In this study, the problem of forecasting onedayforward wellness conditions can be transformed into a typical binary classification problem by shifting HI score onedayahead for each elderly. Since the input ECG signal is a sequence, we utilize both deep learningbased and traditional machine learningbased methods for forecasting onedayforward wellness conditions by using short ECG signals. The deep learningbased methods used are LSTM and BiLSTM. Meanwhile, the employed traditional machine learningbased methods include ANN and SVM. These methods have been widely applied in healthcare domain in recent published literature, which are described in detail as follows:
Deep Learningbased methods

LSTM: the LSTM is a special kind of recurrent neural network, which is proposed to solve the problem of gradient dispersion in the traditional recurrent neural network (RNN). The LSTM is different from the RNN mainly in that it adds memory cells (also named LSTM units) with three gates to the algorithm to judge whether the information is useful or not. These three gates are the input gate, the forget gate, and the output gate, which enable the LSTM units to read, write, reset, and update historical information over long distance. As shown in Fig. 4, when a piece of information enters the LSTM unit, the input gate determines how much information of the input is updated into the memory cell. And the forget gate controls how much information kept for memory cell. Only a part of historical memory information that is helpful for final task will be left, the rest parts of historical memory information are discarded through the forget gate. The output gate, the control mechanism like the input gate and forget gate, determines how much information in the memory cell outputs. These three control gates employ individual sigmoid function with a range between 0 and 1 to mimic the gate open and close, which means how much percentage of information is kept for next process. The gate techniques empower the LSTM the capability of learning hidden pattern from a longterm sequence. Figure 5 shows the architecture of the LSTM we employ in this study. More specifically, an ECG signal with fixed length is segmented into T sequences, each sequence x_{t} is fed into one LSTM unit. For a LSTM unit in each time step of the input ECG signal, it can be defined as the following functions:
$$\begin{array}{*{20}l} i_{t} &= \phi (W_{ii} \cdot x_{t} + b_{ii} + W_{hi} \cdot h_{t1} + b_{hi}) \end{array} $$(5)$$\begin{array}{*{20}l} f_{t} &= \phi (W_{if} \cdot x_{t} + b_{if} + W_{hf} \cdot h_{t1} + b_{hf}) \end{array} $$(6)$$\begin{array}{*{20}l} o_{t} &= \phi (W_{io} \cdot x_{t} + b_{io} + W_{ho} \cdot h_{t1} + b_{ho}) \end{array} $$(7)$$\begin{array}{*{20}l} \tilde{c}_{t} &= \tanh(W_{i\tilde{c}} \cdot x_{t} + b_{i\tilde{c}} + W_{h\tilde{c}} \cdot h_{t1} + b_{h\tilde{c}}) \end{array} $$(8)$$\begin{array}{*{20}l} c_{t} &= f_{t} \cdot c_{t1} + i_{t} \cdot \tilde{c}_{t} \end{array} $$(9)$$\begin{array}{*{20}l} h_{t} &= o_{t} \cdot \tanh(c_{t}) \end{array} $$(10)where c_{t} is the cell neuron at time t, h_{t} is the hidden neuron at time t, h_{t−1} is the hidden neuron at time t−1, and i_{t}, f_{t}, o_{t}, \(\tilde {c}_{t}\) are the input gate, forget gate, output gate, and cell neuron, respectively. W and b are the connected weights and bias among the input, cell neuron, and hidden neuron. ϕ(·) is a sigmoid function. As for the final output wellness condition y, it can be obtained via a Softmax function of the last output neuron h_{T} of the LSTM, which can be described as follows:
$$ y = Softmax(h_{T}) $$(11) 
BiLSTM: the BiLSTM is a variant from the LSTM which is widely used in processing sequence data. To capture the global pattern in a longterm sequence, the BiLSTM has two hidden layers to store history information from opposite directions to the same output. Figure 6 show the architecture of the BiLSTM network unrolled along the time axis. Like the LSTM, the BiLSTM also has three of input gate, forget gate, and output gate in each LSTM unit which are described in the previous section. In this study, we concatenate the last hidden neuron from both forward propagation and backward propagation layers as the concatenated hidden neuron h_{con}. Subsequently, a Softmax layer is connected to forecast the wellness condition. These can be described from the following functions:
$$\begin{array}{*{20}l} h_{con} &= Concatenate(h_{Tforeward}, h_{1backward}) \end{array} $$(12)$$\begin{array}{*{20}l} y &= Softmax(h_{con}) \end{array} $$(13)where h_{T−foreward} is the last hidden neuron in the forward propagation hidden layer, h_{1−backward} is the last hidden neuron in the backward propagation hidden layer, and y is onedayforward wellness condition.
Traditional machine learningbased methods

ANN: the ANN is a simulated biological neural networks formed by several very simple processing hidden units connected with each other in some way. The ANN model consists of a large volume of hidden units. Each unit represents a specific output function called activation function. Each connection between two hidden units represents a weighted value of the signal passing through the connection, called a weight w, which is equivalent to the memory of the artificial neural network. Figure 7 shows a simple architecture of the ANN with an input layer, a hidden layer, and an output layer. The ANN is suitable for regression and classification problem and can be described as follows:
$$\begin{array}{*{20}l} h_{i} &= \sigma\left(\sum_{j=1}^{n} w_{ji}^{l=1} \cdot x_{i} + b_{i}^{l=1}\right) \end{array} $$(14)$$\begin{array}{*{20}l} y_{i} &= \sum_{j=1}^{m} w_{ji}^{l=2} \cdot h_{i} + b_{i}^{l=2} \end{array} $$(15)where h_{i} is the ith hidden unit, \(w_{ji}^{l}\) is the lth layer weight from the ith unit in the l−1th layer such as input unit to the jth unit in the lth unit such as hidden unit, \(b_{i}^{l}\) is the ith correponding bias in the lth layer. Function σ is the activation function sigmoid. y_{i} is the ith output unit of onedayforward wellness condition in this study. n is the input size and m is the number of hidden units.

SVM: the SVM is a generalized supervised linear classifier that carries out binary classification. Its decision boundary is the maximummargin hyperplane that is solved for learning samples. Given training set D={(x_{1},y_{1}),(x_{2},y_{2}),(x_{3},y_{3}),⋯,(x_{n},y_{n})}, y_{i}∈{−1,1}, the hyperplane as shown in Fig. 8 can be described in equation as follows:
$$ W^{T} \cdot x + b = 0 $$(16)where x_{i} refers to ECG segment, y_{i} refers to wellness condition which has two categories: y_{i}=1 represents worse wellness condition and y_{i}=−1 represents better wellness condition. W is the normal vector, which determines the direction of the hyperplane, and b is the displacement, which determines the distance between the hyperplane and the origin. The objective of SVM is to maximize the margin L between two support hyperplanes, which can be described as follows:
$$\begin{array}{*{20}l} &Max \quad L = \frac{2}{\parallel W \parallel} \end{array} $$(17)$$\begin{array}{*{20}l} & \quad s.t. \quad y_{i} \cdot (W^{T}x_{i} + b) \geq 1, i = 1, 2, 3, \cdots n \end{array} $$(18)The SVM uses hinge loss function to calculate empirical risk and has added regularization term into the solving system to optimize structural risk, which is a classifier with sparsity and robustness. The SVM can conduct nonlinear classification through kernel method, which is one of the common kernel learning methods. In this study, we use the widely used kernel function radial basis function (RBF) as the SVM kernel function, which can be described as:
$$ k\left(x_{1}, x_{2}\right) = exp \left(\frac{\parallel x_{1}  x_{2} \parallel^{2}}{2\sigma^{2}}\right) $$(19)where X is the input, and σ is the standard deviation to control the shape of mapping features.
Classification performance metrics
All of the forecasting models are tested on the independent data set and evaluated by a set of classification performance metrics, which are critical important to assess the forecasting models’ performance [3]. In this study, the classification performance metrics mainly consist of Recall (REC for short), Precision (PRE for short), false prediction rate (FPR for short), and overall accuracy (ACC for short). A metric of a test’s accuracy called Fscore also be used as a tradeoff evaluation score between recall REC and precision PRE. These performance metrics can be defined as:
where TP refers to the number of correctly predicted entries with worse wellness condition. TN refers to the number of correctly predicted entries with better wellness condition. FP refers to the number of wrong predicted entries with worse wellness condition. FN refers to the number of wrong predicted entries with better wellness condition. In addition to the aforementioned performance metrics, the value of area under receiver operating characteristic curve (AUC for short) is also employed to measure the advantage and disadvantage of forecasting models in this study. According to the definition, the AUC value can be obtained by summing the area of each part under the receiver operating characteristic curve.
Results
Experimental environment
All the experiments in this study run on a powerful computing server equipped with four 4core Intel(R) Xeon W2102 CPUs at 2.90GHz, 64 GB memories, and two 128core NVIDIA GP104GL (Quadro P5000) GPUs at 1.73Hz. A prevailing linux system Ubuntu 16.04.6 LTS is installed in the computing server, with a deep learning framework Pytorch 1.0.1 for deep neural networks training and testing.
Data source
In this study, eleven elderly persons (age: 76 ±7.8 and gender: 9 females and 2 males) were recruited from an elderly nursing home of Hong Kong for wellness condition evaluation. All participants gave their written informed consent. The data collection period lasted for three months. During this period, all the participants were invited to join the daily noninvasive assessments with a commercial healthcare monitoring device TeleMedCare [39]. The TeleMedCare is a stationbased healthcare monitoring device, which can acquire elderly vital signs like systolic blood pressure, diastolic blood pressure, single lead ECG signals. The length of collected ECG signals with sampling frequency 500 Hz is from 20 to 25 seconds. Meanwhile, a 5point selfevaluated scoring system was utilized to assess wellness conditions of the participants according to a tailormade questionnaires [40]. As shown in Table 2, each subject was requested to selfevaluated wellness conditions and gave out the appropriate associated HI score immediately when the TeleMedCare completed their physiological data collection. In order to guarantee the data quality, the process of data collection were done under the guidance of trained and qualified research staffs at the elderly nursing center around 11 am during the assessment period. Due to personal affairs of elderly subjects like ill in hospital during the course of assessment, the associated vital signs and physiological data were missed. Excluding aforementioned missing observations, total 383 including ECG signals and HI scores can be used for wellness forecasting model.
Classification performance
In this section, 10fold cross validation is utilized to evaluate the forecasting models’ performance. We implement the forecasting models of onedayforward wellness conditions based on both deep learningbased methods and traditional machine learningbased methods with grid search scheme to obtain the optimized parameters. For the ANN model, there are two superior parameters of hidden size h and learning rate η to optimize. In order to obtain the best forecasting performance of the ANN, we take advantage of grid search technique to choose the optimized hidden size, which ranges from 100 to 1000 with an increase step of 10. The initial learning rate η_{0} is set to 0.01, which decays automatically by a factor 0.1 every 100 epochs. The total iterated epochs N are set to 500 in this paper. As for the SVM model, we also tune two superior parameters of penalty parameter C and kernel coefficient Γ ranging from 10^{−8} to 10^{8} with a 10 times increase step. While the optimized superior parameters of LSTM and BiLSTM are the same, which consist of the learning rate η, hidden size h, and input size h. The learning rate η_{0} is set to 0.6 and decays automatically when the error loss ε has stopped improving every 10 epochs. The learning rate is reduced to η times a factor f which is set to 0.1. With respect to the optimized experimental model configuration, please refer to Table 3.
As shown in Table 4, one can see that the deep learningbased models outperform the traditional machine learningbased models significantly. Specifically, the deep learningbased models achieve over the accuracy of 90% while the traditional machine learningbased models obtain the accuracy not over than 57%. The BiLSTM with the capability of memorizing historic information achieves the best forecasting performance with the recall of 92.51%, precision of 91.48%, accuracy of 93.21%, and F score of 91.98%. The LSTM also has the ability to memorize the historic information in sequence obtaining the accuracy of 90.85%, which is about 3% lower than that of the BiLSTM. The cause may lie in that the BiLSTM could capture the global information of sequences by concatenating two opposite directional information during the training stage. At the same time, we draw a figure of receiver operating characteristic curve for the best fitted forecasting model selection. As shown in Fig. 9, the traditional machine learningbased methods of the ANN and SVM perform almost the same, the AUC (area under the curve) values are around 0.6. While, the deep learningbased methods could achieve over the AUC value of 0.9. It obviously demonstrates that the deep learningbased forecasting models for onedayforward wellness conditions outperform the traditional machine learningbased models via using single lead short ECG signals.
Discussion
The best fitted forecasting model BiLSTM is selected to discuss from learned features and performance enhancement via filtering with the EWMA in this section.
Feature visualization
The learned features are extracted from the concatenated hidden layer of the BiLSTM based on the independent test data set. The size of the concatenated layer is 512, which is composed by two final hidden units in the opposite directional network. In order to present the learned information in a scatter plot, the dimension of learned features is reduced from 512 to 2 via the principle component analysis (PCA) method. The top two extracted principle components occupy over 98% of explained variance ratio. As shown in Fig. 10, blue points represent the better condition while the red points represent the worse points. One can see that two classes of wellness conditions can be separated linearly. It means that the BiLSTM with the ability to capture global information of an ECG signal can well solve the problem of forecasting wellness condition for communitydwelling elderly.
Classification performance enhancement with the EWMA
It is well known for us that noises can greatly reduce the performance of forecasting models. It is necessary to utilize a filter to remove noises from ECG signals, where may be contaminated by artifact, baseline wandering, and so on. After spectrum analysis, the noises in the ECG signals we used are mainly on high frequency, which can be shown in Fig. 2. Therefore, a filter EWMA widely applied in temporal sequential data is utilized to cancel highfrequency noises in ECG signals with the window size of 40. As shown in Fig. 11, the forecasting accuracy is vibrated around 50% until around 50 iterated epochs of the BiLSTM for original ECG signals and around 100 iterated epochs of the BiLSTM for ECG signals through the EWMA filtering. As shown in the training stage of the BiLSTM, we know that all of the training data are categorized into either class of better condition or class of worse condition. It means there is just a little difference between these two categories, which result in dramatic vibration of prediction performance in initial iterated epochs due to small parameter changes of the BiLSTM. It also demonstrates the powerful learning capability to forecast the wellness conditions for elderly. The prediction performance of the BiLSTM could meet the requirements in elderly care to avoid malignant events.
Conclusion
In this study, we develop an approach to onedayforward wellness forecasting for communitydwelling elderly via ECG signals analysis and modeling. The EWMA approach is employed to eliminate the influence of highfrequency noise from original ECG signals. Meanwhile, the FisherYates normalization method is used to mitigate the skewness of selfevaluated wellness scores. To obtain the best fitted forecasting model for communitydwelling elderly, deep learningbased methods (LSTM and BiLSTM) and traditional machine learningbased methods (ANN and SVM) are utilized to predict the onedayforward wellness conditions of elderly. The experiment results show that the deep learningbased methods outperform the stateoftheart traditional machine learningbased methods. The BiLSTM achieves the best fitted forecasting performance, whose recall, precision, false prediction rate, accuracy and F score are 92.51%, 91.48%, 6.26%, 93.21%, and 91.98%, respectively. Meanwhile, visualization for the concatenated layer of the BiLSTM shows that the onedayforward wellness conditions can be separated linearly. The best fitted BiLSTM with limited parameters could be deployed and validated on a healthcare platform. This study provides insights in terms of implementing a costeffective approach to informing healthcare providers about health conditions of elderly in advance and taking timely interventions to reduce the risk of malignant events.
Availability of data and materials
Not applicable.
Abbreviations
 ANN:

Artificial neural network
 AUC:

Area under curve
 BiLSTM:

Bidirectional long shortterm memory network
 ECG:

Electrocardiogram
 EHR:

Electronic health records
 EWMA:

Exponentially weighted movingaverage method
 HI:

Health index
 IOT:

Internet of things
 LSTM:

Long shortterm memory network
 RBF:

Radial basis function
 RNN:

Recurrent neural network
 ROC:

Receiver operating characteristic curve
 SVM:

Support vector machine
References
Kashnitsky I, de Beer J, van Wissen L. Decomposition of regional convergence in population aging across Europe. Genus. 2017; 73(1):2.
Yan E, Chan KL, Tiwari A. A systematic review of prevalence and risk factors for elder abuse in Asia. Trauma, Violence, & Abuse. 2015; 16(2):199–219.
Yu L, Chan WM, Zhao Y, Tsui KL. Personalized health monitoring system of elderly wellness at the community level in Hong Kong. IEEE Access. 2018; 6:35558–67.
Stearns SC, Norton EC. Time to include time to death? The future of health care expenditure predictions. Health Econ. 2004; 13(4):315–27.
He C, Fan X, Li Y. Toward ubiquitous healthcare services with a novel efficient cloud platform. IEEE Trans Biomed Engineer. 2012; 60(1):230–4.
Fan X, He C, Cai Y, Li Y. HCloud: A novel applicationoriented cloud platform for preventive healthcare. In: 4th IEEE International Conference on Cloud Computing Technology and Science Proceedings. Taipei: IEEE: 2012. p. 705–10.
Manogaran G, Varatharajan R, Lopez D, Kumar PM, Sundarasekar R, Thota C. A new architecture of Internet of Things and big data ecosystem for secured smart healthcare monitoring and alerting system. Future Gen Comput Syst. 2018; 82:375–87.
Kakria P, Tripathi N, Kitipawang P. A realtime health monitoring system for remote cardiac patients using smartphone and wearable sensors. Int J Telemed Appl. 2015; 2015:8.
Etemadi M, Inan OT, Heller JA, Hersek S, Klein L, Roy S. A wearable patch to enable longterm monitoring of environmental, activity and hemodynamics variables. IEEE Trans Biomed Circ Syst. 2015; 10(2):280–8.
Sabesan S, Sankar R. Improving longterm management of epilepsy using a wearable multimodal seizure detection system. Epilepsy Behav. 2015; 46:56–7.
Paradiso R, Loriga G, Taccini N. A wearable health care system based on knitted integrated sensors. IEEE Trans Informa Technol Biomed. 2005; 9(3):337–44.
Lan M, Samy L, Alshurafa N, Suh MK, Ghasemzadeh H, MacabascoO’Connell A, et al. Wanda: An endtoend remote health monitoring and analytics system for heart failure patients. In: Proceedings of the conference on Wireless Health. San Diego: ACM: 2012. p. 9–17.
Kailas A, Chong CC, Watanabe F. From mobile phones to personal wellness dashboards. IEEE Pulse. 2010; 1(1):57–63.
Mattila E, Pärkkä J, Hermersdorf M, Kaasinen J, Vainio J, Samposalo K, et al. Mobile diary for wellness management—results on usage and usability in two user studies, Vol. 12; 2008. pp. 501–12.
Huh J, Le T, Reeder B, Thompson HJ, Demiris G. Perspectives on wellness selfmonitoring tools for older adults. Int J Med Informa. 2013; 82(11):1092–103.
Suryadevara NK, Mukhopadhyay SC. Wireless sensor network based home monitoring system for wellness determination of elderly. IEEE Sensors J. 2012; 12(6):1965–72.
Fan X, Yao Q, Cai Y, Miao F, Sun F, Li Y. Multiscaled fusion of deep convolutional neural networks for screening atrial fibrillation from single lead short ECG recordings. IEEE J Biomed Health Informa. 2018; 22(6):1744–53.
Acharya UR, Fujita H, Oh SL, Hagiwara Y, Tan JH, Adam M. Application of deep convolutional neural network for automated detection of myocardial infarction using ECG signals. Informa Sci. 2017; 415:190–8.
Levis JT. ECG diagnosis: hypokalemia. Permanente J. 2012; 16(2):57.
Yang Z, Zhou Q, Lei L, Zheng K, Xiang W. An IoTcloud based wearable ECG monitoring system for smart healthcare. J Med Syst. 2016; 40(12):286.
Hunter JS. The exponentially weighted moving average. J Quality Technol. 1986; 18(4):203–10.
Murray NB, Gabbett TJ, Townshend AD, Blanch P. Calculating acute: chronic workload ratios using exponentially weighted moving averages provides a more sensitive indicator of injury likelihood than rolling averages. Br J Sports Med. 2017; 51(9):749–54.
Zhang Y. Data normalization and clustering for big and small data and an application to clinical trials: Rutgers UniversityGraduate SchoolNew Brunswick; 2015. Available: https://doi.org/doi:10.7282/T3X068WQ.
Wu J, Roy J, Stewart WF. Prediction modeling using EHR data: challenges, strategies, and a comparison of machine learning approaches. Med Care. 2010; 48(6):106–13.
Santillana M, Nguyen AT, Dredze M, Paul MJ, Nsoesie EO, Brownstein JS. Combining search, social media, and traditional data sources to improve influenza surveillance. PLoS Comput Biol. 2015; 11(10):1–15.
Suryadevara NK, Mukhopadhyay SC, Wang R, Rayudu R. Forecasting the behavior of an elderly using wireless sensors data in a smart home. Engineer Appl Artif Intell. 2013; 26(10):2641–52.
Srinivas K, Rao GR, Govardhan A. Analysis of coronary heart disease and prediction of heart attack in coal mining regions using data mining techniques. In: 2010 5th International Conference on Computer Science & Education. Hefei: IEEE: 2010. p. 1344–9.
Graves A, Mohamed Ar, Hinton G. Speech recognition with deep recurrent neural networks. In: 2013 IEEE international conference on acoustics, speech and signal processing. Vancouver, BC: IEEE: 2013. p. 6645–9.
Sak H, Senior A, Rao K, Irsoy O, Graves A, Beaufays F, et al. Learning acoustic frame labeling for speech recognition with recurrent neural networks. In: 2015 IEEE international conference on acoustics, speech and signal processing (ICASSP). Brisbane, QLD: IEEE: 2015. p. 4280–4.
Wu Y, Schuster M, Chen Z, Le QV, Norouzi M, Macherey W, et al. Google’s neural machine translation system: Bridging the gap between human and machine translation. arXiv. 2016. Available: https://arxiv.org/abs/1609.08144.
Luong MT, Pham H, Manning CD. Effective approaches to attentionbased neural machine translation. arXiv. 2015. Available: https://arxiv.org/abs/1508.04025.
Ma F, Chitta R, Zhou J, You Q, Sun T, Gao J. Dipole: Diagnosis prediction in healthcare via attentionbased bidirectional recurrent neural networks. In: Proceedings of the 23rd ACM SIGKDD international conference on knowledge discovery and data mining. Halifax, NS: ACM: 2017. p. 1903–11.
Choi E, Schuetz A, Stewart WF, Sun J. Using recurrent neural network models for early detection of heart failure onset. J Am Med Informa Assoc. 2016; 24(2):361–70.
Choi E, Bahadori MT, Sun J, Kulas J, Schuetz A, Stewart W. Retain: An interpretable predictive model for healthcare using reverse time attention mechanism. In: Advances in Neural Information Processing Systems. Barcelona: NIPS: 2016. p. 3504–12.
Schuster M, Paliwal KK. Bidirectional recurrent neural networks. IEEE Trans Signal Process. 1997; 45(11):2673–81.
Sak H, Senior A, Beaufays F. Long shortterm memory recurrent neural network architectures for large scale acoustic modeling. In: Fifteenth annual conference of the international speech communication association. Singapore: INTERSPEECH: 2014. p. 338–42.
Graves A, Jaitly N, Mohamed Ar. Hybrid speech recognition with deep bidirectional LSTM. In: 2013 IEEE workshop on automatic speech recognition and understanding. Olomouc: IEEE: 2013. p. 273–8.
Demosthenous P, Nicolaou N, Georgiou J. A hardwareefficient lowpass filter design for biomedical applications. Paphos: IEEE; 2010. pp. 130–3.
Sparks R, Celler B, Okugami C, Jayasena R, Varnfield M. Telehealth monitoring of patients in the community. J Intell Syst. 2016; 25(1):37–53.
Carlson D, Brent D. An inventory of evidence–based health and Wellness assessments for community dwelling Older adults. California: Dominican University of California; 2014. Available: https://doi.org/10.33015/dominican.edu/2014.OT.02.
Acknowledgments
The authors would like to thank Dr. Fan Xu at City University of Hong Kong for helpful discussions on ECG signal filtering techniques.
Funding
This work was supported in part by the RGC ThemeBased Research Scheme under Grant T32102/14N, National Natural Science Foundation of China under Grant 71420107023 and CityU Grant No. 9610406. Any the design of the study, data collection, analysis, and interpretation of data expressed in this publication are those of the author(s) and do not necessarily reflect the views of the funding grants (71420107023 and 9610406).
Author information
Authors and Affiliations
Contributions
XF designed this study and performed corresponding data analysis experiments; YZ guided the project and revised the writing of the final manuscript; HW conducted data collection from health center; KT was responsible for concept study. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Ethics approval and consent to participate
The research involving patient data described in this paper were approved by the City University of Hong Kong Review Board. (IRB number: 32201803_02). All participants gave their written informed consent.
Consent for publication
Not Applicable.
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.
About this article
Cite this article
Fan, X., Zhao, Y., Wang, H. et al. Forecasting onedayforward wellness conditions for communitydwelling elderly with single lead short electrocardiogram signals. BMC Med Inform Decis Mak 19, 285 (2019). https://doi.org/10.1186/s1291101910128
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s1291101910128