Abstract
Diabetes is a metabolic disease that affects millions of people each year. It is associated with an increased likelihood of vital organ failures and decreased quality of life. Early detection and regular monitoring are crucial for managing diabetes. Remote patient monitoring can facilitate effective intervention and treatment paradigms using current technology. This work proposes an end‐to‐end remote monitoring framework for automated diabetes risk prediction and management, using personal health devices, smart wearables and smartphones. A support vector machine was developed for diabetes risk prediction using the Pima Indian Diabetes Database, after feature scaling, imputation, selection and augmentation. This work achieved the performance metrics of accuracy, sensitivity and specificity scores at 83.20%, 87.20% and 79% respectively through the tenfold stratified cross validation method, which is competitive with existing methods. Patients can use multiple healthcare devices, smartphones and smartwatches to measure vital parameters, curb the progression of diabetes and close the communication loop with medical professionals. The proposed framework enables medical professionals to make informed decisions based on the latest diabetes risk predictions and lifestyle insights while attaining unobtrusiveness, reduced cost, and vendor interoperability.
1. INTRODUCTION
Diabetes is a metabolic disorder that causes a lack or resistance to insulin, which is a hormone critical for the regulation of blood sugar levels. The common symptoms are polyuria, polydipsia, rapid weight loss, vision blurriness and fatigue [1]. This leads to severe complications like strokes, blindness, miscarriages and organ failures. The World Health Organization in 2014 reported that approximately 422 million people worldwide have diabetes, and estimates 1.6 million deaths directly caused by the disease [2]. Medical guidelines recommend the need for early diagnosis to identify risk‐prone people and for patients to proactively self‐monitor their lifestyle to mitigate risk factors [3]. Remote patient monitoring (RPM) can help prevent the staggering number of deaths caused by diabetes by means of early detection and timely warnings to the patient and medical professionals. RPM reduces the need for regular checkups, gauge continuous treatment effectiveness and allow intervention techniques for alerting professionals, thereby enhancing the quality of life for patients.
Traditional methods of chronic disease management use rule‐engines or score estimations for diabetes risk identification, which are not as effective as machine learning techniques in detecting patient health conditions [4]. Recent developments in machine learning and feature engineering [5], [6], present new possibilities to improve early diagnosis and treatment outcomes of chronic diabetes patients. Recent studies in diabetes management presented the most common types of systems, which are insulin self‐management apps, wearable blood glucose monitors, automated SMS risk alerts and virtual diagnostician coaching [3]. Su [7] surveyed methods in literature to prove the efficacy of RPM techniques for diabetes management, and showed that self monitoring and regular intervention led to reduction of patient glucose levels. One of the major limitations in existing systems arises from isolated diabetes prediction models that do not interact with real patients or their data. Notably, there is also a lack of unified healthcare device vendor‐independent frameworks that can obtain multi‐faceted patient readings to enable easy monitoring and management [8].
The American Diabetes Association (ADA) states the frequency of personal health device use is one of the most important factors for lowering diabetes risks in patients [9]. Vhaduri et al. [10], reinforce the argument that continuous glucose monitoring with personal health devices in diabetes management can aid in early diagnosis. In their study, they discuss the importance data driven adherence analysis in algorithms to positively affect behaviours of chronic diabetic patients. Regular patient adherence to personal health devices or smart wearables is proportional to their perceived value of observable insights from the collected data. Merely viewing the accumulated information on a portal is not sufficient for the patients to continue using these devices. By incorporating medical professionals into the system, where they also receive timely and accurate alerts about the patients' state, actionable decisions can be made to improve disease outcomes. This reveals the importance of the monitoring devices, and the pertinence of data driven predictions in healthcare contexts. There is an increasing volume of physiological data that is being collected from off‐the‐shelf wearables and general purpose smartphones by entities such as Google, Apple and Fitbit. The growing popularity of mainstream wearable technology like smartwatches, fitness trackers and wrist bands can enable the transition of RPM from being used solely in ambulatory settings, to regular environments.
This work proposes an automated smart health monitoring framework for diabetes prediction and management by the implementation of supervised machine learning (ML) algorithms and seamless integration of multiple healthcare devices and consumer devices. The system makes live predictions based on the patient vital signs such as blood glucose and blood pressure to notify medical professionals for intervention. The medical professionals are provided holistic view of the patient lifestyle metrics such as physical activity levels and caloric expenditure through a dashboard to assist them in making informed decisions for diabetes treatment and management. Only minimal patient‐side interaction is needed in terms of setting up, as they only have to use their healthcare devices and the proposed framework can automatically retrieve vital data and provide predictions.
The main contributions of this paper are mentioned as follows:
Develop an automated remote monitoring framework that consolidates patient vital data from different multi‐vendor personal health devices, smartphones and smartwatches to enhance diagnostic decision making.
Integrate a machine learning model within framework and use a subset of the data collected to provide live diabetes risk predictions.
Leverage the ability of machine learning predictions to generate timely alerts for medical professionals and provide associated vital patient data.
This paper is organised as follows, Section 2 presents existing approaches, Section 3 discusses the methodology of ML algorithms, Section 4 describes the implementation of the proposed framework, Section 5 presents the results and discussion of ML models, and Section 6 concludes this work.
2. LITERATURE REVIEW
Malasinghe et al. [1] surveyed the most recent glucose monitoring methods and reported that closed‐loop systems where the feedback mechanism provided immediate intervention to patients were the most effective in diabetes control and management. It was also noted that most existing frameworks were unable to combine multiple devices together, which introduces concerns of privacy and interoperability when new devices need to be added or health readings need to be obtained. Aburukba et al. [11] proposed a brokering framework for RPM that integrates multiple cloud health providers and utilised a custom rule engine to provide timely intervention to patients. This study addressed the limitations caused by healthcare device vendor interoperability concerns and data security to integrate the user vital measurements such as blood glucose, blood pressure and blood oxygen saturation from multiple devices operated by different vendors into a unified platform.
Chatrati et al. [12] presented a smart home health monitoring system that uses patient blood pressure and glucose readings at home and notifies healthcare providers if abnormalities in hypertension and diabetes levels are detected. They leveraged a combination of conditional decision‐making, and ML approaches such as support vector machines (SVM), k‐nearest nNeighbours (k‐NN), decision tree (DT), logistic regression (LR) and discriminant analysis (DA) to analyse the manual patient measurement inputs into the system. The algorithms achieved accuracy measures of 75%, 74%, 66.1%, 74.5% and 74.7% respectively. Sonar et al. [13] developed four algorithms: DT, naive Bayes (NB), SVM and artificial neural networks for the prediction of diabetes, and achieved accuracy measures of 74%, 80%, 82% and 82% respectively. Al Zebari [14] et al. utilised a series of ML methods for prediction of diabetes such as DT, LR, DA, SVM, k‐NN and their variants. tenfold cross‐validation was used for evaluation and the average prediction accuracy measures were recorded. The best performing method was LR with an accuracy score of 77.7% and the poorest performing method was coarse Gaussian SVM. Saha [15] implemented ML techniques such as neural network (NN), SVM, and Random Forest for diabetes prediction. Preprocessing methods of imputation, scaling, data normalisation and principle component analysis was applied. The NN was the best performing model with configuration parameters of 100 epochs and ten batch size. It achieved an accuracy measure of 80.4%. Wei [16] employed a Deep NN for the prediction of diabetes and attained an overall accuracy measure of 77.86%. Scaling was applied for preprocessing, and the configuration parameters of ReLU activation function, Nadam optimiser, 100 epochs and ten batch size were used. tenfold cross validation technique was also applied for evaluation.
There are a few promising smart healthcare monitoring frameworks focusing on relating machine learning techniques with physiological data, to actively improve health outcomes through recommendations or alerting medical professionals. Ali et al. [17] presents an ensemble deep learning model that automatically recommends a diet plan or activities according to the condition of a patient suffering from chronic heart disease. They used a feature fusion method to combine patient physiological data from wearable sensors and electronic medical records. Recently, it has been shown that even patient social media posts in conjunction with sentiment analysis can be used for the early detection of diseases, primarily mental health [18]. In [19], smartphones, wearable sensors, social networks and electronic medical records have been used to develop a prewarning system for various diseases such as diabetes, mental health and blood pressure,. This system relies on Big Data analytic engines based on data mining, ontologies, and deep learning to classify the health conditions. Ontologies can be used provide semantic knowledge about concepts in a particular domain to data driven solutions. In [20], a type 2 fuzzy ontology aided recommendation system was implemented to recommend medical prescriptions and diet recommendations by estimating patient risk factors using wearable sensors.
The proposed framework combines multiple ideas partially present in other studies, and incorporates the element of user‐friendliness by requiring minimal additional input from the patient. Most existing works focus on collecting vital patient information using multiple sensors and limited medical devices or predicting diabetes outcomes from electronic medical records and public datasets. Machine learning models developed to this end have considerably high performance, but they are limited as the models are never tested in real‐life scenarios with real patient data. It is also observed that stand‐alone sensors, or custom devices are used to acquire physiological data from patients. In real scenarios, it is not practical to equip patients with multiple sensors and custom wearables for continuous monitoring. Patients would typically utilise multiple healthcare devices, often manufactured by different vendors to measure vital signs. To the best of the authors' knowledge, there is a clear need for a system that can scale horizontally without interoperability concerns between different vendor devices, while providing the intelligence required for early diabetes risk detection. With the proposed framework in this work, the wealth of data obtained from personal health devices and consumer wearables can be used to generate machine learning based diabetes risk predictions.
3. METHODOLOGY
The proposed framework aims to consolidate patient data from personal health devices and consumer wearables, provide early detection of diabetes risk, and keep medical professionals updated with the latest information. The components of the system and their flow are presented in Figure 1.
The static user profile information obtained are height, weight, age, and gender. The continuously monitored user vitals obtained are heart rate, blood oxygen, perfusion index, systolic blood pressure (mmHG), diastolic blood pressure (mmHg), glucose level (mg/dL), medication status (pills taken/pills not taken), step count, calories, total activity duration and types of activity performed. A mobile application was developed to act as a gateway to consolidate the one‐time authentication information for the different vendor cloud services, and transmit this information to the server. The primary advantage of the proposed system is that user do not have to enter their user data explicitly as the mobile application directly connects to the respective vendor cloud platforms and extracts the vitals measured by the devices. The vendor cloud services in this work are Google Fit [37], which stores the data acquired from the smartphone, smartwatch and iHealth API [36], which stores the data acquired from the iHealth medical devices. An API is an Application Programming Interface that enables communication between different software intermediaries and end‐devices. The server visualises the user vitals obtained from the multiple devices on a medical professionals or caregiver's web portal, and also provides preliminary intelligent predictions about the diabetic condition of the user.
The nodes that constitute the system are listed below, and described further in Section 4.
Sensing node: Physiological patient data is acquired from personal health devices, smartphones and smartwatches.
Integration and visualisation node: Patient data from multiple sources are consolidated and made accessible through a web portal.
Prediction node: A machine learning model generates diabetes predictions using a subset of the patient data collected.
The proposed pipeline for the implementation of machine learning models in the prediction node is depicted in Figure 2. First, imputation is performed to account for missing data, and this is followed by feature scaling to standardise the range of the dataset values. Feature selection methods are applied to remove redundant features that do not contribute highly to the prediction outcome during training and enhance overall model fidelity. To rectify class imbalances, an oversampling method is used to synthesize strongly similar samples of the minority class in the data augmentation step. Finally, the binary classifiers are fit with the data during the k‐fold cross validation step, where all samples are used for both training, validation and testing, thereby producing a more robust classifier.
3.1. Dataset
The dataset used in this work is the PIMA Indian Diabetes Database accessed from the University of California, Irvine ML repository [21]. The dataset has a sample size of patients, each patient with nine feature attributes. The patients are all females between the ages of 21 to 81 and their data was collected by the National Institute of Diabetes, Digestive and Kidney Diseases. The eight continuous numeric attributes are number of pregnancies, glucose level (mg/dL), diastolic blood pressure (mmHg), skin fold thickness (mm), body mass index (BMI), serum insulin level (mU/mL), age (years) and a diabetes hereditary factor pedigree function. The final attribute is the target variable that denotes the diabetes prediction class, where a categorical value of 1 indicates presence of diabetes, and the categorical value of 0 indicates the absence of diabetes.
3.2. Feature scaling
Out of the 768 patient samples, five had a glucose level of 0, 11 had a BMI of 0, 28 had a diastolic blood pressure of 0, 192 had a skin thickness of 0 and 140 had an insulin level of 0. Domain knowledge concurs that it is not possible for patients to have 0 values in these physiologically pertinent variables. To ensure the randomly missing values do not affect the quality of the patterns mined by the ML models, a suitable imputation technique must be used [22].
With randomised clinical trial datasets, the multivariate imputation by chained equations (MICE) method [23] has been shown to be highly efficient for handling missing data, under the general assumption of the data being either missing at random, or missing completely at random [24]. MICE iteratively estimates values for missing data for each specified feature using the other corresponding features as predictors. A strong correlation between the features of a dataset, and a robust prediction strategy allows for better imputed value estimates. In this work, the MICE approach was utilised with a decision tree regression model to impute missing values and convergence was reached after five iterations.
Standardisation is a scaling technique where the values are centred around the mean with a unit standard deviation. This means that the mean is 0 and the distribution has a unit standard deviation. Since outliers will not be affected by standardisation, no outliers are lost. This aids in faster convergence during training [22].
3.3. Feature selection
Feature selection reduces the computational complexity of prediction algorithms by the removal of non‐informative or redundant input features from the dataset. This reduces the uncertainty in prediction and increases the overall effectiveness of the model.
In this work, three types of feature selection techniques are considered and tested for each prediction model, which are the chi‐squared test, extremely randomised trees classifier (extra trees), and least absolute shrinkage and selection operator (LASSO).
Chi‐squared test is a non parametric statistical measure to test the correlation between two variables [25]. The method generates a value that quantifies the dependence between the input features and the output to be predicted. The higher the value, the stronger is the correlation between the input feature and output feature, and features with values lower than a critical value is discarded. The numerical values of the features in this dataset were discretised based on their frequency of occurrence, as the chi squared method performs on categorical data.
Extra trees fits a number of randomised decision trees on the various subsets of the entire dataset [26]. The input variables and cut‐off values are selected randomly to split a node in the tree construction process, such that they are completely independent from the output variable. Each tree leads to a different model, trained with subsets of features, and the algorithm ranks the importance of the contributing features according to a threshold measure called the Gini index.
LASSO is a L1 regularisation technique used for feature selection to simplify the interpretation of the dataset [27]. In this method, regression analysis is performed to estimate parameters and select models simultaneously, thereby reducing the variability of the features by shrinking coefficients of the non‐correlating features to 0.
Table 1 presents the most important features selected by each of the methods respectively, with their ranking measures. The chi‐squared test uses the chi‐score, Extra trees uses the Gini index, and LASSO uses coefficients of regression. The features of glucose, insulin, BMI and age consistently ranked high in importance and were selected by each of the applied techniques. After experimentation with the features, it was found the removal of skin fold thickness and diabetes pedigree features improved the overall performance of the model.
TABLE 1.
Features | Chi‐squared test | Extra trees | LASSO |
---|---|---|---|
# of pregnancies | 111.52 | 0.102 | 0.0 |
Glucose | 1437.40 | 0.220 | 0.0062 |
Blood pressure | 53.66 | 0.087 | 0.0 |
Skin fold thickness | 143.69 | 0.092 | 0.0 |
Insulin | 6882.18 | 0.137 | 0.0003 |
BMI | 109.12 | 0.128 | 0.0005 |
Age | 181.30 | 0.125 | 0.0002 |
Diabetes pedigree | 5.39 | 0.106 | 0.0 |
3.4. Data augmentation
The dataset was shown to have data imbalances, with the majority of samples belonging to the non‐diabetes class at . The number of diabetes class samples were . To reduce the biases in the created models, the synthetic minority over‐sampling technique (SMOTE) is used [28]. SMOTE is an oversampling technique that increases the number of minority class samples in the dataset, by generating new samples from existing minority class samples. The approach generates new minority class samples that are not duplicates, but convex combinations of two or more randomly chosen neighbouring data samples in the feature space. The application of SMOTE to clinical datasets improve model performance by reducing the negative effects of imbalanced data is observed in recent literature [29]. SMOTE is only applied on the training/validation split of the data samples so that the model sees equal numbers of both class types, and the test split is not modified. The number of samples of the non‐diabetes class after augmentation is .
3.5. Machine learning
The ML algorithms implemented for binary prediction of the two outcomes diabetes and non‐diabetes, are the k‐NN, LR, Gaussian NB, and SVM‐RBF.
3.5.1. k‐nearest neighbours
k‐NN [30] is defined a lazy, non‐parametric supervised learning algorithm that stores all dataset instances and classifies new unknown instances by majority vote of their nearest instance neighbours. This algorithm has a high convergence speed and simplicity. A similarity measure, such as distance in an ‐dimensional space between each instance decides which class the instance is assigned to. The most popular similarity measure used is the Euclidean distance between two instances. If , then an instance is assigned to the class of two of its nearest neighbours, where the computed Euclidean distances between the instances are the lowest. Equation (1) denotes the Euclidean distance between two points and and is the total number of data instances. In this work, was selected through experimentation to yield the best performance.
(1) |
3.5.2. Logistic regression
LR [31] is a statistical analysis technique in which one or more independent input variables predicts the probability of occurrence of a binary output variable. It is an extended case of the classic linear regression where there is one independent variable and one dependent variable. The algorithm estimates the relationship between the input and output variables by means of a best fit model and is described by Equation (2).
(2) |
Given data , and weights , the probability model defines as the prediction class outcome, where indicates absence or presence of diabetes. If total number of training instances are , then is the ith input instance and the optimum weights of are found by minimising the negative log‐likelihood function described by Equation (3).
(3) |
3.5.3. Gaussian Naive‐Bayes
NB [32] is a prediction technique based on the Bayes theorem of probability and assumes strong, or naive, independence between the feature attributes of the data. The Bayes theorem defined by Equation (4) is used to find the probability of an output prediction category using the input feature attributes for instances in the training set. is the probability of event A given event B has occurred, is probability of event B given event A has occurred, and and is probability for events A and B respectively.
(4) |
In this work, the feature values are continuous data, hence a Gaussian distribution is applied. This is shown by Equation (5), where is the probability, and are the parameterising mean and variance of all the quantitative attributes, and are the ith attribute and value of all the data instances, is the class label and is the outcome of presence of diabetes or absence of diabetes.
(5) |
3.5.4. Support vector machines
SVM [33] is a supervised ML algorithm that performs prediction by optimally separating the data instances linearly with the help of support vectors. In binary prediction, the algorithm plots each data instance as a point in ‐dimensional space, where is the number of feature attributes, and creates two maximum‐margin hyperplanes which provides the largest separation between the training instances of the identified classes. The data instances closest to the hyperplanes are called support vectors, and new instances are assigned to a class based on their relative distance to the hyperplanes. To predict outcomes of non‐linear data with SVM by mapping input features into a higher‐dimensional feature space, the radial basis kernel [33] is applied in this work to yield the SVM‐RBF. Equation (6) defines the minimising function that is used to find the optimum hyperplane margins and its constraints. is a normal, is a threshold and is the feature vector corresponding to each data instance.
(6) |
4. IMPLEMENTATION
This section discusses the prototype implementation of the RPM framework that deploys live ML models for diabetes prediction and providing intervention to users and medical professionals. Since the focus of this work is on integrating a diabetes prediction model and leveraging user acquired data to make predictions for enabling lifestyle management, the proposed system is based on the cloud based brokering framework that integrates multiple health cloud platforms and devices, a system introduced by Aburukba et al. [11]. The devices used in this work are the Samsung Note 8 smartphone [34], a Huawei GT 2 smartwatch [35], iHealth blood pressure monitor, iHealth glucometer and iHealth pulse oximeter [36].
Figure 3 shows the high‐level architecture of the platform, where user data is integrated from smartwatches and medical devices via a smartphone and transmitted to a RESTful server.
4.1. Sensing node
This node comprises of the devices that actively and passively collects user data. The user initially inputs their static profile information. Active collection is enabled by the iHealth devices, where the user measures their vitals of glucose levels, blood pressure and blood oxygen saturation. Passive collection is enabled by the smartwatch and the smartphone, where the smartphone automatically tracks their steps, caloric expenditure, and activity type and duration. The iHealth vitals are automatically synced with the iHealth vendor cloud when a user takes a measurement using the glucometer, blood pressure monitor or pulse oximeter, and users can access this information by signing into their respective vendor‐specific web portal or mobile application. The data collected from each of the iHealth devices, for a single volunteer subject in this work is presented in Figure 4.
Smartphones and smartwatches with Android operating system utilises the available device sensors on each particular device to automatically collect and aggregate activity data and shows the fitness history to users via the Google Fit web portal or mobile application. The Google vendor API leverages the sensors of gyroscope and accelerometer for both smartphones and smartwatches, and the additional heart rate sensor on smartwatches to track movements, activities, heart rates and also estimates calories burned and count of steps. The data tracked by the Google Fit application for the subject in this work is presented in Figure 5.
The server in the proposed framework is able to retrieve all the patient data from iHealth and Google every 1 h by connecting to the respective vendor cloud using RESTful principles without requiring user intervention except for a one‐time credential authentication. In order for the system to connect to the iHealth API or the Google Fit API, authentication using the OAuth protocol is required [38]. OAuth 2.0 authorization protocol is the industry standard in authorization for web, desktop and mobile applications. This is the security protocol used for both the Google services, and iHealth API data interfacing. To mitigate the intrusiveness of prompting to authenticate themselves with the portal every time a medical professional or caregiver wants to monitor their data, a one‐time authentication technique is followed. The user logs into their iHealth account and Google account through the framework web portal at the time of initial registration to authorise access vendor cloud API permissions to the framework. This one‐time two‐step process is presented to the user on the web portal and they do not have to perform this action repeatedly. The web portal allows for the user input of optional variables such as skin fold thickness, number of pregnancies, and pre‐exising medical conditions if required. The unique user authentication token for each vendor API is obtained by the server and stored. The server connects to the respective vendor cloud API and automatically renews the token before its expiry dates to keep the token consistently updated. This is achieved by the setting up of a server‐side automated routine that triggers a token refresh function defined by the expiry parameters of each vendor API token.
4.2. Integration and visualisation node
The purpose of this node is to control the flow of data from the sensing node to the prediction node, address incomplete or duplicate data while providing medical professionals and the opportunity to observe the daily vitals and activity of users. To ensure security and interoperability, the cloud NoSQL database Google Firestore was used to establish communication of monitored data and authentication token between the mobile devices and the server. Using a trusted intermediary such as Google Firestore, auto‐managed cloud service allows the system to become relatively more secure than if security rules were custom implemented and deployed. The features of data syncing, backup and scaling is also obtained. The web portal was designed using HTML, CSS and Javascript using a front‐end framework VueJS. The portal is asynchronous in nature, therefore changes in user data are reflected on the portal immediately when viewed by medical professionals.
The list of available patient data in this framework and their respective sources are presented in Table 2. The server calculates the derived metrics by using the other variables that have already been collected, such as age, gender, height, and weight. The server aggregates readings on a daily basis, and orders the user data chronologically even within the day using the timestamp of data acquisition. Additionally, metrics such as total daily energy expenditure (TDEE), basal Metabolic rate (BMR) and BMI, are calculated to provide a holistic monitoring ability to the medical professionals.
TABLE 2.
Data | Source |
---|---|
Height | Smartphone, smartwatch |
Weight | Smartphone, smartwatch |
Age | Smartphone, smartwatch |
Step count | Smartphone, smartwatch |
Total activity duration | Smartphone, smartwatch |
Activity type | Smartphone, smartwatch |
Calories | Smartphone, smartwatch |
Glucose level | Glucometer |
Medication status | Glucometer |
Heart rate | Smartwatch, BP monitor, pulse oximeter |
Systolic BP | BP Monitor |
Diastolic BP | BP Monitor |
Blood oxygen saturation | Pulse oximeter |
Perfusion index | Pulse oximeter |
BMI | Derived |
BMR | Derived |
TDEE | Derived |
VO2Max | Derived |
Diabetes risk | Predicted |
For heart rate, maximum, average and minimum values are also estimated. The intention behind increasing the number parameters that can be derived from the acquired data is to facilitate the implementation of multiple predictive and monitoring techniques for accessible diabetic user lifestyle management.
Figure 6 and Figure 7 shows the medical history of the volunteer subject vitals for maximum heart rate, average heart rate, minimum heart rate, TDEE, BMI, BMR, blood oxygen saturation with their respective timestamps of acquisition. It also shows the history user vitals for systolic blood pressure, diastolic blood pressure, calories, total activity, number of steps taken, type of activity detected by smartphone/smartwatch, glucose level, pill and food status with the respective timestamps of acquisition. Prediction of diabetes is based on ML algorithms and a supplementary threshold based on user vitals. The input features extracted from the user measurements are the continuously monitored values of glucose. Age is updated based on their date of birth details provided through Google Fit. Serum insulin levels are a static value based on their last medical checkup with the provision to add any future devices that is capable of monitoring this value for improved reflection of patient states.
All the user vitals and measurements on the portal are updated automatically, provided that users adhere to regular use of their iHealth devices and smartphones. Experimental evidence shows that the development of diabetes can be delayed or even prevented if appropriate lifestyle changes are implemented [39]. Any auxiliary readings to be measured such as blood pressure, blood oxygen or activity metrics are automatically retrieved by the system and consolidated as part of the same session, during the same day. There can be multiple sessions with a unique ID per timestamp. The time window defining a session is 1 h as well, and isolated values if obtained are aggregated at the end of the day in accordance with the timestamp. This is done for harmonisation of user measurements, therefore medical professionals can see the effects of multiple factors that can lead to a positive diabetes class prediction by the system. The patient is required to take glucose measurements with the iHealth device as per the conditions based on the requirements of medical professionals. The conditions are before food; before pill, after food; before pill and after food; after pills.
Cloud privacy issues are a potential threat despite the resilient infrastructure of commercial cloud providers such as Google. To address this potential problem, a system generated hashed user ID is used to keep track of user data on cloud services. The hash function used the user metadata of patient profiles as key inputs and produced a 128 bit hash. The hashing function and key attributes were stored and made available only on the patient device and the doctor's system. Additional concerns of security are currently beyond the scope of this work. The holistic monitoring in the portal reflect factors relating to diet management, exercise, vital tracking and efficacy of pharmacological treatment. This can enhance the overall treatment process as medical professionals have these data conveniently available for risk stratification and making informed decisions.
4.3. Prediction node
In this node, the best performing ML algorithm among the four tested models is implemented for prediction of diabetes based on a subset collected user data. Figure 6 presents the machine learning diabetes prediction for subject in this work as “no likelihood of diabetes onset” based on the latest collected information from the framework. A new prediction is generated each time the respective predictor variables of glucose level, BMI, age, number of pregnancies, blood pressure and insulin are jointly updated. Alerts are provided to the medical professionals via the portal if there are multiple repeated diabetes positive results in a short time period for a single user from the models to enable actionable intervention from the professional side. This approach in addition to the other user vitals will allow the medical professionals to immediately identify the impact of risk factors such as low activity levels, weight gain, higher blood pressure, heart rates, glucose levels on the user's overall health.
5. RESULTS AND DISCUSSION
5.1. Experiment setting
The proposed framework was implemented on a workstation with Windows OS, an Intel Kabylake 2.80GHz processor (i7‐7700HQ) and 16 GB of RAM. The Python programming language was used for developing a Flask server to support the proposed framework and to develop the ML algorithms used in the prediction node. Additionally the Numpy and Pandas module was used for data pre‐processing and feature selection while the scikit‐learn module was used for configuring the ML algorithms [40].
5.2. Performance evaluation
The stratified k‐fold cross validation strategy was adopted to validate the performance variability of the model, and in this work. In each of the ten iterations, 3/5 parts of the data is used for training, 1/5 parts of the data is used for validation, and 1/5 of the data is used for testing. The final performance of the model is measured as the aggregate of results obtained on the testing set. To avoid data leakage and minimise model overfitting, MICE and SMOTE were only applied only the training and validation sets.
The performance measures considered for evaluating the ML models are accuracy, sensitivity and specificity and they are calculated by the formulas in Equation (7). These measures of diagnostic performance are selected as per standard ML assessment criteria in literature [41]. In this work, True positives (TP) are the number correct diabetes predictions, True negatives (TN) are the number of correct non‐diabetes predictions, false positives (FP) are the number of wrong diabetes predictions and false negatives (FN) are the number of wrong non‐diabetes predictions.
(7) |
Tables 3 and 4 summarise the best performing models along with their respective hyperparameters, which were identified using the GridSearch algorithm. The reported measures are the aggregates after performing stratified fivefold cross validation.
TABLE 3.
Model | Parameters | Acc% | Sen% | Sp% |
---|---|---|---|---|
k‐NN | k = 5, weights=uniform | 73.16 | 55.60 | 82.06 |
LR | C=1, tol=0.0001, reg=L2 | 76.40 | 49.63 | 90.80 |
NB | smoothing=0.000000001 | 75.5 | 61.0 | 82.80 |
SVM‐RBF | C=100, g=0.6 | 76.80 | 55.23 | 88.40 |
TABLE 4.
Model | Parameters | Acc% | Sen% | Sp% |
---|---|---|---|---|
k‐NN | k = 7, weights=uniform | 79.80 | 87.20 | 72.40 |
LR | C=1, tol=0.0001, reg=L2 | 73.30 | 70.20 | 76.40 |
NB | smoothing=0.000000001 | 73.10 | 66.60 | 77.60 |
SVM‐RBF | C=5, g=0.4 | 83.20 | 87.30 | 79.00 |
There is a significant difference between in the sensitivity measures after performing feature selection and data augmentation. Training the model on the dataset without any preprocessing techniques as in Table 3 shows that there is high specificity in detecting cases that are not diabetes, however has a very low chance of detecting any diabetes cases. High sensitivity is pertinent as the system where this model is deployed is required to identify users who are at risk of developing diabetes for timely intervention. Therefore the trade‐off with higher diagnostic specificity for higher diagnostic sensitivity in this case can be justified.
Table 4 shows that the SVM‐RBF model achieves the highest accuracy, sensitivity and specificity. From these measures, the SVM‐RBF model can be considered as the best performing model in this work with the k‐NN being relatively close in performance. It is likely that more complex models such as ensemble models may be required for this particular dataset to effectively capture the underlying patterns.
Figure 8 demonstrates the comparative results of the ML models with the respect to the performance measures.
5.3. Comparative study
Table 5 shows recent ML approaches in literature for prediction of diabetes using the PIMA Indian Diabetes Database. Only the performance measure of accuracy was consistent across the surveyed literature, as sensitivity, specificity or similar measures were not always reported.
TABLE 5.
The results obtained in this work are competitively similar to the works reported previously. The primary contribution of the paper is the novel approach for data acquisition from personal health devices and consumer smart devices, and its subsequent use for predicting diabetes risk. By closing the loop between disparate medical sensing device data, general purpose devices and isolated machine learning models, the aim is to present an alternate methodology for a smart healthcare monitoring and management system for chronic diabetes. A well‐known dataset is used, as it is considered a standard for diabetes prediction, and because all its predictor features can be obtained from easily accessible healthcare devices and ubiquitously present smartphones. This reduces friction when models trained on this dataset are to be used in practical scenarios. After an initial authorization step, the user is not required to manually input their vitals into the system, but can benefit from alerts regarding their diabetic state. Although clinical studies aimed at diagnosing diabetes has been growing recently, studies predicting the risk of developing diabetes is limited in an end‐to‐end system. Most of the existing works do not discuss the role of the developed model as part of framework where it can bridge the gap between patients and medical professionals, and as such is limited in their applicability and accessibility. This work is also one of the first automated diabetes management systems to provide an expanded view of all factors related to the physiological states of users, while having provisions for real‐time detection. The consolidation of information from multiple devices solves vendor interoperability issues, and relevant information about users is made available to medical professionals.
The main limitations of this work arise due to the narrow scope of the dataset and small‐scale testing of the entire system. The dataset included only samples of women of Pima Indian descent, thereby introducing gender and ethnicity bias. While these attributes were not selected as features in the feature selection step for training our model, underlying association may lower generalisability. Consequently, this system was tested only with two female volunteers and one medical supervisor, and had achieved expected results (i.e. one case of diabetes and one case of non‐diabetes). A longitudinal study with a larger cohort will be the focus of a follow up research, and its details are beyond the scope of this work, which presents initial implementation results of a complete system.
6. CONCLUSION
This paper proposed a framework that automates diabetes detection and alerts medical professionals for timely intervention. The developed system integrated multiple healthcare devices and consumer devices using cloud principles and provided the acquired readings to medical professionals for enabling improved diagnostic decision making. Four supervised ML algorithms were implemented, and the best performing one was deployed on the proposed framework. This was experimentally revealed to be the SVM‐RBF, which achieved an accuracy of 83.20 %, sensitivity of 87.20%, and specificity of 79%. The major contribution of this work is the implementation of a diabetes prediction model into an RPM framework that is modular, multi‐faceted, and requiring minimal patient interaction with the platform. The system is vendor‐independent and interoperable to ensure eventual addition of new prediction models and personal health care devices for improving patient outcomes. Future research directions involve conducting a longitudinal study with a larger cohort of patients and subsequent testing of the system with integration of additional devices and patient information.
ACKNOWLEDGMENT
This research was funded by the American University of Sharjah FRG grant FRG17‐R‐20.
Ramesh, J. , Aburukba, R. , Sagahyroon, A. : A remote healthcare monitoring framework for diabetes prediction using machine learning. Healthc. Technol. Lett. 8, 45–57 (2021). 10.1049/htl2.12010
REFERENCES
- 1. Malasinghe, L.P. , Ramzan, N. , Dahal, K. : Remote patient monitoring: a comprehensive study. J. Ambient Intell. Hum. Comput. 10(1), 57–76 (2019) [Google Scholar]
- 2. Diabetes . https://www.who.int/news‐room/fact‐sheets/detail/diabetes. Accessed 29 June 2020.
- 3. Shan, R. , Sarkar, S. , Martin, S.S. : Digital health technology and mobile devices for the management of diabetes mellitus: state of the art. Diabetologia 62(6), 877–887 (2019) [DOI] [PubMed] [Google Scholar]
- 4. Bruen, D. et al.: Glucose Sensing for Diabetes Monitoring: Recent Developments. Sensors (Basel) 17(8), (2017) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5. Onan, A. , Korukoǧlu, S. : A feature selection model based on genetic rank aggregation for text sentiment classification. J. Inf. Sci. 43(1), 25–38 (2017) [Google Scholar]
- 6. Onan, A. : Two‐stage topic extraction model for bibliometric data analysis based on word embeddings and clustering. IEEE Access 7, 145614–145633 (2019) [Google Scholar]
- 7. Su, D. , et al.: Diabetes management through remote patient monitoring: The importance of patient activation and engagement with the technology. Telemedicine J. e‐Health 25(10), 952–959 (2018) [DOI] [PubMed] [Google Scholar]
- 8. Chaki, J. et al.: Machine learning and artificial intelligence based Diabetes Mellitus detection and self‐management: A systematic review. J. King Saud Univ. ‐ Comput. Inf. Sci. (2020), 10.1016/j.jksuci.2020.06.013 [DOI] [Google Scholar]
- 9. Fleming, G.A. , et al.: Diabetes digital app technology: Benefits, challenges, and recommendations. A consensus report by the european association for the study of diabetes (EASD) and the american diabetes association (ADA) diabetes technology working group. Diabetes Care 43(1), 250–260 (2020) [DOI] [PubMed] [Google Scholar]
- 10. Vhaduri, S. , Prioleau, T. : Adherence to personal health devices: A case study in diabetes management. In: Proceedings of the 14th EAI International Conference on Pervasive Computing Technologies for Healthcare, pp. 62–72. ACM Press, New York: (2020) [Google Scholar]
- 11. Aburukba, R. et al.: Brokering services for integrating health cloud platforms for remote patient monitoring. In: 2018 IEEE 20th International Conference on e‐Health Networking, Applications and Services (Healthcom), pp. 1–6. IEEE, Piscataway, NJ: (2018) [Google Scholar]
- 12. Chatrati, S.P. et al.: Smart home health monitoring system for predicting type 2 diabetes and hypertension. J. King Saud Univ. ‐ Comput. Inf. Sci. (2020). 10.1016/j.jksuci.2020.01.010 [DOI] [Google Scholar]
- 13. Sonar, P. , JayaMalini, K. : Diabetes prediction using different ML approaches. In: 2019 3rd International Conference on Computing Methodologies and Communication, pp. 367–371. IEEE, Piscataway, NJ: (2019) [Google Scholar]
- 14. Al‐Zebari, A. , Sengur, A. : Performance comparison of ML techniques on diabetes disease detection. In: 2019 1st International Informatics and Software Engineering Conference, pp. 1–4. IEEE, Piscataway, NJ: (2019) [Google Scholar]
- 15. Saha, P.K. , Patwary, N.S. , Ahmed, I. : A widespread study of diabetes prediction using several ML techniques. In: 2019 22nd International Conference on Computer and Information Technology, pp. 1–5. IEEE, Piscataway, NJ: (2019) [Google Scholar]
- 16. Wei, X. Zhao , and Miao, C. : A comprehensive exploration to the ML techniques for diabetes identification. In: 2018 IEEE 4th World Forum on Internet of Things, pp. 291–295. IEEE, Piscataway, NJ: (2018) [Google Scholar]
- 17. Ali, F. , et al.: A smart healthcare monitoring system for heart disease prediction based on ensemble deep learning and feature fusion. Information Fusion 63, 208–222 (2020) [Google Scholar]
- 18. Onan, A. : A fuzzy‐rough nearest neighbor classifier combined with consistency‐based subset evaluation and instance selection for automated diagnosis of breast cancer. Expert Syst. Appl. 42(20), 6844–6852 (2015) [Google Scholar]
- 19. Ali, F. , et al.: An intelligent healthcare monitoring framework using wearable sensors and social networking data. Future Gener. Comput. Syst. 114, 23–43 (2021) [Google Scholar]
- 20. Ali, F. , et al.: Type‐2 fuzzy ontology–aided recommendation systems for IoT–based healthcare. Comput. Commun. 119, 138–155 (2018) [Google Scholar]
- 21. Zehra, A. , Asmawaty, T. , Aznan, M.A.M. : A comparative study on the pre‐processing and mining of Pima Indian Diabetes Dataset. In: 3rd International Conference on Software Engineering & Computer Systems, pp. 1–10. UMP Institutional Repository, Pahang: (2013) [Google Scholar]
- 22. Onan, A. : Sentiment analysis on product reviews based on weighted word embeddings and deep neural networks. Concurrency and Computation: Practice and Experience e5909 (2020). 10.1002/cpe.5909 [DOI]
- 23. van Buuren, S. , Groothuis‐Oudshoorn, K. : MICE: Multivariate imputation by chained equations in R. J. Statistical Software 45(1), 1–67 (2011) [Google Scholar]
- 24. Jakobsen, J.C. , et al.: When and how should multiple imputation be used for handling missing data in randomised clinical trials – a practical guide with flowcharts. BMC Med. Res. Method. 17(1), 162 (2017) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25. Liu, H. , Setiono, R. : Chi2: Feature selection and discretization of numeric attributes. In: Proceedings of 7th IEEE International Conference on Tools with Artificial Intelligence, pp. 388–391. IEEE, Piscataway, NJ: (1995) [Google Scholar]
- 26. Geurts, P. , Ernst, D. , Wehenkel, L. : Extremely randomized trees. Mach. Learn. 63(1), 3–42 (2006) [Google Scholar]
- 27. Tibshirani, R. : Regression shrinkage and selection via the lasso. J. R. Stat. Soc.: Series B (Methodological) 58(1), 267–288 (1996) [Google Scholar]
- 28. Chawla, N.V. , et al.: SMOTE: Synthetic minority over‐sampling technique. J. Artificial Intell. Res. 16, 321–357 (2002) [Google Scholar]
- 29. Alghamdi, M. , et al.: Predicting diabetes mellitus using SMOTE and ensemble machine learning approach: The Henry Ford Exercise Testing (FIT) project. PLoS One 12(7), e0179805 (2017) [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30. Guo, G. et al.: KNN model‐based approach in prediction. In: On The Move to Meaningful Internet Systems 2003: CoopIS, DOA, and ODBASE, pp. 986–996. Springer, Berlin, Heidelberg: (2003) [Google Scholar]
- 31. McCullagh, P. : Generalized Linear Models. Routledge, New York, NY: (2018) [Google Scholar]
- 32. Lewis, D.D. : Naive (Bayes) at forty: The independence assumption in information retrieval. In: Machine Learning: European Conference on Machine Learning, pp. 4–15. Springer, Berlin, Heidelberg: (1998) [Google Scholar]
- 33. Cortes, C. , Vapnik, V. : Support‐Vector Networks. ML 20(3), 273–297 (1995) [Google Scholar]
- 34. Specifications – Samsung Galaxy Note8. The Official Samsung Galaxy Site. https://www.samsung.com/global/galaxy/galaxy‐note8/specs/. Accessed 7 July 2020.
- 35. Huawei watch GT, long battery‐life, built‐in GPS smartwatch‐Huawei UAE. https://consumer.huawei.com/ae‐en/wearables/watch‐gt/. Accessed 7 July 2020.
- 36. Liao, D. : Health Official Site for No Touch Thermometer, PPEs, Facial Masks, Smart Blood Pressure Monitor, Glucose Meter, Scale & More, iHealth® Official Site for Personal Health Management. https://ihealthlabs.com/. Accessed 29 June 2020.
- 37. Google Fit, Google Fit . https://www.google.com/fit/. Accessed 29 June 2020.
- 38. OAuth 2.0 – OAuth . https://oauth.net/2/. Accessed 23 Oct 2020.
- 39. Tuomilehto, J. , et al.: Prevention of Type 2 Diabetes Mellitus by Changes in Lifestyle among Subjects with Impaired Glucose Tolerance. N. Engl. J. Med. 344(18), 1343–1350 (2001) [DOI] [PubMed] [Google Scholar]
- 40. Raschka, S. , Mirjalili, V. : Python ML: ML and Deep Learning with Python, scikit‐learn, and TensorFlow, 2nd Edition, 2nd ed. Packt Publishing, Birmingham: (2017) [Google Scholar]
- 41. Wong, H.B. , Lim, G.H. : Measures of Diagnostic Accuracy: Sensitivity, Specificity, PPV and NPV. Proceedings of Singapore Healthcare 20(4), 316–318 (2011) [Google Scholar]