Appl Clin Inform 2021; 12(01): 001-009
DOI: 10.1055/s-0040-1719043
Research Article

Early Detection of Prediabetes and T2DM Using Wearable Sensors and Internet-of-Things-Based Monitoring Applications

Mirza Mansoor Baig
1   School of Engineering, Computer and Mathematical Sciences, Auckland University of Technology, Auckland, New Zealand
,
Hamid GholamHosseini
1   School of Engineering, Computer and Mathematical Sciences, Auckland University of Technology, Auckland, New Zealand
,
Jairo Gutierrez
1   School of Engineering, Computer and Mathematical Sciences, Auckland University of Technology, Auckland, New Zealand
,
Ehsan Ullah
1   School of Engineering, Computer and Mathematical Sciences, Auckland University of Technology, Auckland, New Zealand
,
Maria Lindén
2   School of Innovation Design and Engineering, Mälardalen University, Västerås, Sweden
› Author Affiliations
 

Abstract

Background Prediabetes and type 2 diabetes mellitus (T2DM) are one of the major long-term health conditions affecting global healthcare delivery. One of the few effective approaches is to actively manage diabetes via a healthy and active lifestyle.

Objectives This research is focused on early detection of prediabetes and T2DM using wearable technology and Internet-of-Things-based monitoring applications.

Methods We developed an artificial intelligence model based on adaptive neuro-fuzzy inference to detect prediabetes and T2DM via individualized monitoring. The key contributing factors to the proposed model include heart rate, heart rate variability, breathing rate, breathing volume, and activity data (steps, cadence, and calories). The data was collected using an advanced wearable body vest and combined with manual recordings of blood glucose, height, weight, age, and sex. The model analyzed the data alongside a clinical knowledgebase. Fuzzy rules were used to establish baseline values via existing interventions, clinical guidelines, and protocols.

Results The proposed model was tested and validated using Kappa analysis and achieved an overall agreement of 91%.

Conclusion We also present a 2-year follow-up observation from the prediction results of the original model. Moreover, the diabetic profile of a participant using M-health applications and a wearable vest (smart shirt) improved when compared to the traditional/routine practice.


Background and Significance

Type 2 diabetes mellitus (T2DM) is a chronic condition (CC) that affects the way the body processes blood sugar (glucose). T2DM is often described as a condition where the human body cannot produce enough insulin, or it resists insulin. T2DM usually develops in adults; however, it is becoming more common in children, and it is linked to obesity, inactivity, eating, and lifestyle. T2DM and its complications consume a large proportion of health budgets and require a vast amount of resources worldwide. Early detection of prediabetes might lead to reverse or a delay on the onset of T2DM. Often T2DM requires continuous monitoring of weight, diet, activity, and physiological parameters (in some cases). Wearable monitoring applications demonstrated a positive impact on the individual's overall health and well-being when used for long-term/chronic care or continuous monitoring.[1] [2] [3] [4]

Smart Patient Monitoring Applications

Wearable/remote monitoring applications are based on an integrated sensor network with Internet connectivity as a medium to transmit data such as vital signs and motion from various sensors to support remote care settings. Long-term condition (LTC) and/or (CC) monitoring applications often integrate mobile and wearable technologies. With its advantages, this approach has enabled innovative healthcare solutions to monitor patients remotely.[5] [6] In ref[7], the researchers have developed a mobile electrocardiogram (ECG) monitoring application backed by radio-frequency identification (RFID) tags to transmit data continuously to a local server. The system depended on the battery life of a mobile phone and RFID tags. Another application for identification of the health conditions, prognosis,[8] is based on fuzzy logic that monitors various signs, symptoms, and disorders. Such applications are depended on a specific use-case and limited in their scalability to holistically manage an LTC/CC due to the limitation in data collection and accuracy of the wearable body sensors.[9] The wearable sensors basically include biopotential sensors, such as ECG, electromyography and electroencephalography sensors; motion sensor units, such as accelerometers and gyroscopes; and environmental sensor units such as video cameras, vital signs monitors (such as heart rate, pulse rate, and temperature), and pressure sensors.[10]

A study proposed wireless wearable T-shirt to monitor the patient's posture during rehabilitation exercise.[11] This device employed manually sewed an enameled copper wire of 1 mm diameter to a T-shirt and constituted the sensor (about 9 cm long and 2.5 cm wide with a total length of 50 cm). The copper wire was stitched with a zigzag pattern on the back and the chest, thus allowing the lengthening of the T-shirt and sensor in the sagittal plane. The study achieved an acceptable outcome in a small setting, but the impedance value of the sensor changed due to different factors such as the relaxation of the T-shirt or skin conductivity variation. The T-shirt with the sewn copper wire was washed (expecting a relaxation) after it was used, but no variation was observed.[12]

Our research was conducted by combing the best-practice knowledge base with the literature analysis related to the designing of the prediabetes and T2DM theory model by emphasizing on the below key points [13] [14] [15] [16] [17]:

  • Detection of prediabetes has proven to delay the onset of T1DM and T2DM.

  • People with diabetes tend to have multiple LTCs over time.

  • Studies found that ethnicity and diabetes are highly correlated.

  • Active and healthy lifestyle tends to support good management of any LTC, particularly diabetes.

  • Common indicators include age, sex, weight, body mass index (BMI), and family history.

A majority of studies have found that an active and healthy lifestyle could help to manage diabetes and could delay the onset of T2DM.[18] [19] [20] [21] Early detection of prediabetes or T2DM has led to delay in the actual onset of diabetes for up to 4 years (with active management and control). A combination of clinical, activity, and demographic data allows the proposed approach to timely detect prediabetes and T2DM earlier than traditional methods.[18] [22] [23] [24] [25]


Market Available Monitoring Devices and Sensors

Wearable sensor/solution requirements were gathered after detailed market analysis for suitable solutions. The search preference was given to user-friendly, all-in-one, wireless devices, and six key areas were identified as must requirements for a successful solution ([Table 1]). These areas include wearable (wireless body-worn sensors and devices), reliable and accurate, real-time transmission, low cost, low maintenance, and usability (user-friendly and timely processing of real-time data).[26] [27] [28] [29]

Table 1

Key capabilities identified for an efficient monitoring system/solution

Categories

Features

Connectivity

Bluetooth (Bluetooth class II, Bluetooth Low Energy [BLE])

Connected via local or broader area network

Reliability

Accurate, validated, and certified as per the national/international standards

Transmission

Wireless—3G, 4G, and wired

Size/power/cost

Small size, portable, and lightweight

Low cost and low maintenance

Active/hybrid power consumption (low energy)

Usability

User friendly

Easy to understand

Simple to operate

Processing

On-chip processing

Cloud processing (with delay)

Real-time processing

Raw data presentation

We used the Hexoskin smart vest[30] [31] [32] [33] for collecting activity data and vital signs. It has integrated sensors for real-time collection of steps, activity as well as ECG, heart rate, and breaths per minute. We combined activity data and vital signs from the wearable vest (Hexoskin[30]) and combined with the participants' demographic information after obtaining ethical approvals (AUTEC: 16/412).

This research aimed to design and develop a clinical decision support system to detect prediabetes and diabetes.[28] The early detection model was based on the local and national guidelines for prediabetes and T2DM. The developed model was uniquely trained and supported with various data, including demographics, activity, and clinical for a deep understanding of all possible contributing factors.[28] The proposed study helps to determine the prediabetes risk factor but not to make an actual diagnosis.



Methodology and Approach

Model Design and Development

A fuzzy inference system was designed and developed to early detect prediabetes and T2DM. The model[28] is based on:

  • Baseline values: We adopted local/ national best practice guidelines for prediabetes and T2DM to set the baseline values for activity data such as daily recommended steps, and age-based activity range. For vital signs (heart rate (HR), blood pressure (BP) measurement, we used the World Health Organization (WHO) guidelines for normal ranges of adults for each parameter, respectively.

  • Weighted parameters: Each parameter was weighted based on age, sex, weight, normal resting HR, and activity levels. We adopted global comparison of prediabetes guidelines and risk measures including BMI, gender, family history, BP, and ethnicity and assigned points for each “Yes” answer and for all “No” answers allocated 0 points.

  • Individualized parameters: Each parameter was then fed into the model to optimize the normal, mean, average, maximum, and minimum values for each individual.


Multimethodological Approach

We adopted the multimethodological approach used in information systems research. The four research phases of this project included observation, theory building, experimentation, and systems development.[34] The following text describes the details of each phase.

Observation: This phase involved reviewing case studies and field studies.[34] This research used the quantitative, experimental research approach to minimize preconceptions because technology-led diabetes self-management interventions have limited literature to support/guide the success or failure of this method. Our review spanned existing literature, programs, technology-led interventions to identify existing facts and establish the research gaps to strengthen our focus on solving technology-led self-management of T2DM. [Figure 1] shows the first phase of the adopted multimethodological approach, including system review and model review to form an accurate observation.

Zoom
Fig. 1 Phase 1 observation of the multimethodological approach to Information Systems Research. LTC, long-term condition.

Theory building: This phase involved the design and development of new concepts and frameworks[34]:

  • 1) Investigation and evaluation of existing best-practice clinical guidelines, national recommendations, and care plans for diabetes

  • 2) Designing the relationship mapping of existing information (clinical interpretation)

  • 3) User engagement and interaction approaches for an effective data collection application

  • 4) Analysis and mapping of best practice/standard clinical guidelines, national recommendations, and care plans for diabetes detection models

  • 5) Review of the existing pre-build models on diabetes as a base threshold for detecting prediabetes

Experimentation: This phase dealt with the design of the experiment in this research and is motivated by the prior theory building (phase 2).[34] For the experimentation, we used the Hexoskin's[30] advanced body sensors vest as a wearable monitoring kit.

System development: An Adaptive Neuro-Fuzzy Inference System (ANFIS) was developed to interpret and detect prediabetes using vital signs and activity data. ANFIS can play an important role in the diagnosis of individualized monitoring instead of threshold-based or age-based detection. The system learns from the normal parameters for each individual using adaptive neuro-fuzzy modelling. The relationship between vital signs and activity data with set pre-diabetic conditions was established by consulting with physicians and related clinical knowledgebases.

System overview: [Figure 2] shows the basic building blocks of the proposed model, including model architecture with activity data, vitals data, and demographic data fed to the knowledge base learning module for processing. The initial learning of the proposed model was based on the activity data, vital signs, and demographic information using the self-learning interpretation engine. The main learning module consists of a medical knowledge base and individualized weighted parameters combined with the national/local diabetes guidelines. We used multiple in-out combinational cross-pattern relationship to best utilize the medical knowledge base with the baseline values for each individual. The BMI was considered as a contributing factor that computed from individual height and weight to train the model.

Zoom
Fig. 2 The key building blocks of the proposed model.

[Figure 3] shows a high-level framework of the interpretation engine and the proposed multilayered outcome for early detection of T2DM and prediabetes. The interpretation engine consists of four key components (individualized monitoring, evidence-based reasoning, weighted parameters, and medical knowledgebase). A multilayer concept has been introduced, as it has the potential of early detection. This mechanism is best utilized in this context by feeding a multiple input–output combinational relationship in real time. [Table 2] shows the global comparison of prediabetes guidelines and risk measures, highlighting the common risk factors adopted to measure the prediabetes in adults.

Zoom
Fig. 3 Framework of interpretation engine using multiple components: individualized monitoring, evidence-based reasoning, knowledge-base, and weighted parameters.
Table 2

Global comparison of prediabetes guidelines and risk measures[11] [12]

Questions

NZ

UK

US

Overweight or obese (BMI)

Check height and weight

Male or female

Inactive

Lifestyle

Activity

Activity/exercise

Family history

High blood pressure

Have given birth to a baby who weighed over 9 pounds (4kg?)

[a]South Asian

✓ (incl. Maori/ Pacific)

✓ (incl. White European)

✓ (incl. Asian American)

a Additional ethnicity included specific to the country's demographic population.


The interpretation of the diagnostic values and the relationship between vital signs, activity data, demographics data, and their clinical interpretation is mapped to the ANFIS rules. Moreover, clinical acceptability of assessment procedures via expert agreement analysis is evaluated. The factors that affect ongoing data collection, barriers to this intervention, accuracy, and the potential for person' self-management were also be measured. A multilayer concept has been introduced, as it has the potential of early detection. This mechanism is best utilized in this context by feeding multiple input–output combinational relationships in real-time. [Table 2] shows the global comparison of prediabetes guidelines and risk measures, highlighting the common risk factors adopted to measure the prediabetes in adults.

Fuzzy rules [ * ] : The below fuzzy logic rules were produced by the original fuzzy model and published [1]. We used the same rules for the fairness of comparisons/outcomes.

  1. If (SEX is male) and (FAMILY is No) and (BMI is Normal) and (AGE is 40-50) and (HR is Normal) and (STEPS is 5000 + ) then (Diagnosis is Normal) (1)

  2. If (SEX is Female) and (FAMILY is No) and (BMI is Normal) and (AGE is 40-50) and (HR is Normal) and (STEPS is 5000 + ) then (Diagnosis is Normal) (1)

  3. If (SEX is male) and (FAMILY is yes) and (BMI is Overweight) and (AGE is 51-60) and (HR is High) and (STEPS is 3001_-_5000) then (Diagnosis is Prediabetes) (1)

  4. If (SEX is male) and (FAMILY is yes) and (BMI is Obese) and (AGE is 51-60) and (HR is Ver_High) and (STEPS is 3001_-_5000) then (Diagnosis is Prediabetes) (1)

  5. If (SEX is male) and (FAMILY is yes) and (BMI is Obese) and (AGE is 61 + ) and (HR is High) and (STEPS is 0-3000) then (Diagnosis is Prediabetes) (1)

  6. If (SEX is Female) and (FAMILY is yes) and (BMI is Obese) and (AGE is 61 + ) and (HR is Ver_High) and (STEPS is 0-3000) then (Diagnosis is Diabetes_Type_2) (1)

  7. If (SEX is male) and (FAMILY is yes) and (BMI is Obese) and (AGE is 61 + ) and (HR is Ver_High) and (STEPS is 0-3000) then (Diagnosis is Diabetes_Type_2) (1)



Evaluations and Results

Data collected using market available wearable vest—{Hexoskin (www.hexoskin.com, Montreal, Canada}[35] as Hexoskin satisfies the project requirements and allows users to download the raw data in machine-readable format. Moreover, the Hexoskin provides users with raw, processed, and/or meaningful data. The access to the application programming interfaces and raw data in machine-readable format enables the healthcare professionals, researchers, and developers to leverage the existing open platform for data mining, machine learning for various clinical, social, behavioral, and physical (activity-related) use-cases and explore the data further for enormous healthcare benefits. Hexoskin vest captures HR, HR variability (allowing to estimate stress and fatigue), HR recovery, ECG, breathing rate (RPM), minute ventilation (L/min), activity intensity, peak acceleration, steps, and cadence. The proposed model was trained and fine-tuned using 36 participant data, containing age, gender, BMI, and any significant medical condition from PhysioNet.[10] For the real-time testing, longitudinal data was collected from two participants over multiple times, activities, and durations after obtaining appropriate ethics approvals (AUTEC: 16/412).

Preprocessing of data: The data analysis tasks performed on the raw data, such as plotting data, computing descriptive statistics, performing linear correlation analysis, data fitting, removing and interpolating missing values, removing outliers, smoothing and filtering, and detrending the data

Sensors details: Analog 256Hz ECG data; Analog dual-channel 128Hz breathing sensors, and Analog 3D 64Hz acceleration. [Table 3] summarizes participants' statistical information for demographic data, vital signs, and activity data and hemoglobin A1c (HbA1c) information including minimum (Min), maximum (Max), and average (AVG) for each parameter.

Table 3

Demographic information, vital signs, activity data, HbA1c, and activity data for the study participants

Data/Participant

Participant 1

Participant 2

Approach

Traditional

Using wearable devices/smart vest

Demographic information

Age—62

Age—55

Sex—male

Sex—female

Weight—79 kg

Weight—62 kg

Height—168 cm

Height—149 cm

Vital signs

Heart rate (Min = 70; Max = 161; AVG = 115)

Heart rate (Min = 64; Max = 144; AVG = 104)

Breathing rate (Min = 9; Max = 33; AVG = 21)

Breathing rate (Min = 10; Max = 42; AVG = 23)

Ventilation (Min = 51; Max = 65; AVG = 32)

Ventilation (Min = 44; Max = 69; AVG = 45)

Activity data

Activity (Min = 0; Max = 1.9; AVG = 0.63)

Activity (Min = 0; Max = 1.1; AVG = 0.55)

Cadence (Min = 51; Max = 243; AVG = 132)

Cadence (Min = 69; Max = 191; AVG = 122)

HbA1c (average values)

87.5 mmol/mol

64 mmol/mol

Steps and stairs

Walking, steps, and stairs

Walking, steps, and stairs

Abbreviations: AVG, average; HbA1c, hemoglobin A1c; Max, maximum; Min, minimum.


We collected 7.25 hours (435 minutes) of data (combined, in multiple sessions over 10 months). We applied 1-minute (60 seconds) sampling window on the 435 samples for moving-window data analysis. The four possible outcome arrangements for an accurate diagnosis are true positive (TP), true negative (TN), false positive (FP), and false negative (FN).

We used Kappa analysis, which measures and allows the agreement between the human expert and the computer system using the TP, TN, FP, and FN measures. The importance of observer reliability lies in the fact that it represents the extent to which the data collected in the study are correct representations of the variables measured.

[Table 4] shows the TP, TN, FP, and FN classifications derived from the expert analysis. [Table 5] shows the Kappa analysis of the whole dataset. The overall Kappa value was K = 0.75, shows the K-values expressed as strength of agreement. The detection model has an accuracy of 91%, sensitivity of 94%, specificity of 90%, and predictability of 72%. The accuracy was calculated using ([TP + TN]/[sum of TP, TN, FP, and FN]), sensitivity as ([TP]/[TP + FN]), specificity as ([TN]/[TN/FP]), and predictability as ([TP]/[TP + FP]).

Table 4

Kappa analysis values for the collected data

Expert (+ve)

Expert (–ve)

Total

System (+ve)

82 (TP)

32 (FP)

114

System (–ve)

5 (FN)

316 (TN)

321

Total

87

348

435

Abbreviations: FN, false negative; FP, false positive; TN, true negative; TP, true positive.


Table 5

Kappa analysis of the whole dataset

Overall agreement

Positive agreement

Negative agreement

Agreement by chance

SE

95% CI for K

Po

Ppos

Pneg

Pe

SE

CI95%

0.91

0.82

0.94

0.64

0.038

0.82 and 0.67

Abbreviations: CI, confidence interval; SE, standard error.


[Figure 4] shows the top five contributing factors for the T2DM for the early detection of prediabetes and T2DM using the originally proposed fuzzy model. Top five contributing factors are age, weight, HbA1c, HR, and activity (daily number of steps). The contributing factors were used in the weighted parameter module of the model.

Zoom
Fig. 4 Top five contributing risk factors. HbA1c, hemoglobin A1c.

[Figure 5] shows the HbA1c trend for two participants from 2016 to 2019. The original study period was from 2016 to 2017 shows participant two in good control of T2DM using the wearable vest, whereas participant one was on the traditional methods of T2DM control. In the follow-up study from 2018 to 2019, participant two ([Table 3]) was much improved and in control (average HbA1c of 64 mmol/mol) when compared with the participant 1 (average HbA1c of 87.5 mmol/mol). The dotted (green) line shows the average T2DM predictions for the entire study period. The dash (purple) line shows the original model's predictions, predicting 2-year T2DM control based on the participant data.

Zoom
Fig. 5 Hemoglobin A1c (HbA1c) trend for the selected participants from 2016 to 2019. Original study period 2016 to 2017 and the follow-up study period is 2018 to 2019.

From both the studies, we found that the participant two used wearable vest, smartwatch, mobile app (including other mHealth apps), motivated in self-learning, active management and found to have reasonable control and maintenance for T2DM.


Discussion and Conclusions

The collected data is mapped against the pre-build T2DM and prediabetes models and approved clinical guidelines. The proposed model is compared with a clinician's finding using “Kappa” analysis. However, the developed model is capable of detecting prediabetes and T2DM with any number of participant data. The model (and its rules engine) will self-learn and continuously tune the model for better accuracy and reliability over some time.

Data analysis of real-time data for individualized and personalized monitoring and early detection (rather than threshold-based limits) using the data clustering approach and weighted parameters mechanism is presented. Moreover, an advanced data analysis technique was applied using the identified clinical programs on the real-time data for detecting prediabetes and T2DM using fuzzy logic-based Adaptive Neuro-Fuzzy Inference model. The developed model is then deployed and compared to test the accuracy and efficiency.[4] [36]

In the 2-year follow-up, we found that the diabetic profile of participant 2 ([Table 3]) was improved and in control (average HbA1c of 64 mmol/mol) when compared with the participant 1 (average HbA1c of 87.5 mmol/mol).[28] The main contributing factors were the visibility of the real-time activity data, motivation to use the smart shirt, access to real-time data via the smartphone app and cloud dashboard, timely feedback, alerts, and notifications. Data analysis was computed on-demand or as a monthly report to keep the participants motived and involved.

With the ever-growing use of smart systems, end-user acceptability is becoming an essential aspect of the design of such systems.[3] [37] [38] The user-awareness, as well as clinician and patient acceptance, are key factors for accepting smart systems in healthcare. Data interoperability is one of the main drawbacks of deployed solutions/systems where users are “constrained” within one application for a task and move between the applications to view/review the patient information.[19] [39] [40] [41] Further improvements are required such as adding diet information, ethnicity, location, socioeconomic status, living status, and other social factors that could have a significant influence on the healthy and active lifestyle for managing T2DM and delaying the prediabetes.[2] [3] [4] [27] [28]


Clinical Relevance Statement

The study found that the diabetic profile of a participant was much improved and in control (average HbA1c of 64 mmol/mol) when compared with the other participant (average HbA1c of 87.5 mmol/mol).


Multiple Choice Questions

  1. What are the two most important factors for managing T2DM?

    • Weight and diet

    • Sleep and rest

    • Salt and sugar

    • Male and female

    Correct Answer: The correct answer is option a.

  2. T2DM is?

    • A LTC

    • A CC

    • A short-term condition

    • A good health condition

    Correct Answer: The correct answer is option a.

  3. What is the early indication of prediabetes?

    • Underweight

    • Overweight

    • Normal weight

    • Healthy weight

    Correct Answer: The correct answer is option b.



Conflict of Interest

None declared.

Acknowledgment

We would like to thank Hexoskin for providing the advanced wearable vest (smart shirt) used in this study for the data collection. Also, we would like to thank clinicians at Auckland District Health Board and Waitemata District Health Board for their clinical advice and support.

Protection of Human and Animals Subjects

The study was performed in compliance with the World Medical Association Declaration of Helsinki on Ethical Principles for Medical Research Involving Human Subjects and was reviewed by the Auckland University of Technology Institutional Review Board.


* FAMILY refers to the family history, STEPS are number of steps per day, and Heart Rate is based on the WHO Adult HR range.



Address for correspondence

Mirza Mansoor Baig, PhD
School of Engineering, Computer and Mathematical Sciences, Auckland University of Technology
Private Bag 92006, Auckland 1142
New Zealand   

Publication History

Received: 07 July 2020

Accepted: 25 September 2020

Article published online:
06 January 2021

© 2021. Thieme. All rights reserved.

Georg Thieme Verlag KG
Rüdigerstraße 14, 70469 Stuttgart, Germany


Zoom
Fig. 1 Phase 1 observation of the multimethodological approach to Information Systems Research. LTC, long-term condition.
Zoom
Fig. 2 The key building blocks of the proposed model.
Zoom
Fig. 3 Framework of interpretation engine using multiple components: individualized monitoring, evidence-based reasoning, knowledge-base, and weighted parameters.
Zoom
Fig. 4 Top five contributing risk factors. HbA1c, hemoglobin A1c.
Zoom
Fig. 5 Hemoglobin A1c (HbA1c) trend for the selected participants from 2016 to 2019. Original study period 2016 to 2017 and the follow-up study period is 2018 to 2019.