Estimationof Blood Glucosefrom PPGSignalusing Convolutional Neural Network
Estimationof Blood Glucosefrom PPGSignalusing Convolutional Neural Network
net/publication/339290182
CITATIONS READS
16 7,206
6 authors, including:
All content following this page was uploaded by Md. Junaed Al-Hossain on 05 January 2021.
Abstract-The purpose of this paper is to develop a system Noninvasive BG monitoring is a diabetes management
that can measure the blood glucose level in a non-invasive way. approach that allows an in-vivo continuous blood glucose
Since blood glucose is an important indicator of health issues, monitoring while also providing a convenient, and nonintrusive
frequent blood glucose measurement is required by a great
number of people. Non-invasive methods are getting popular measurements technology to patients [6]- [7]. Several noninva-
for such measurements since painful collection of blood is not sive biosensors, based on different measuring approaches such
required. In non-invasive methods, blood glucose level is recorded as reverse iontophoresis [8], combined reverse iontophoresis
by exploiting the relationship of blood glucose level with various and enzyme-based aerometric biosensor [9], Raman Spec-
biological signals and parameters. This paper addresses the troscopy [10], and Near Infrared Spectroscopy (NIRs) [11],
relationship of glucose level with PPG (photoplethysmoram)
signal which can provide information regarding the volume have been proposed. Most of the spectroscopy technique is
of blood flowing in the test region through exposure of that impractical to be used in the clinical practice for development
particular region to infrared light of certain wavelengths. A of portable and handy glucose monitoring device. With respect
dataset has been created by collecting the PPG signal of 30 people to spectroscopy, Infra-red (IR) is less affected by these matters
along with their blood glucose level, measured in invasive way as well as physical conditions. So now-a-days more emphasis
both before and 2 hours after breakfast. A CNN model has been
trained with this dataset to exploit the relationship of glucose is given on sensors based on IR spectroscopy.
level with PPG signal and thus the glucose level of blood have Based on biological parameters of human body closely
been measured. Results obtained from our system have been related with glucose level, in this paper it is tried to develop
compared with corresponding glucose level,recorded in invasive a sensor based glucose measuring device which will measure
way.
body glucose level in non-invasive way. Pulse Oximeter sensor
Index Terms-Non-invasive, Invasive, PPG signal, Deep learn-
ing, Blood glucose. is used for the purpose of recording the change in blood
volume flowing in the fingertip known as photoplethesmogram
1. INTRODUCTION
signal. For machine learning algorithm CNN model has been
used as it can extract various frequency levels which contains
Diabetes is a chronic disease in which the body fails to the necessary information related to the signal [12]. by using
regulate blood glucose concentration in the normal range (5- learn able filters. The goal is to replace the present invasive-
8milimole/litre). This instability can lead to serious problems, glucose measurement with our designed non-invasive glucose
e.g. cardiovascular diseases, kidney failure, blindness, etc. [1]. monitoring device. The device can be afforded by mass people
According to the World Health Organization, the pervasiveness due to its low cost nature. Also it is very easy to use and should
of diabetes was estimated to be 9% around the globe, 4.9 fit to most of the patients finger very easily. The training data is
million deaths were caused by diabetes in 2014 alone. It is taken from the user. The results are compared with the clinical
expected that by 2030, diabetes will use up to 11.6% of the value obtained in an invasive way. However, the estimation
total expenses made in the healthcare domain [2]. There are of blood glucose level is satisfactory for most of the user
two types of diabetes. The cause of type 1 diabetes is not with a low error rate. This work paves the way of monitoring
known and it is not preventable with current knowledge [3]- and preventing diabetes with a non-invasive wearable solution
[4]. Type 2 diabetes results from the bodys ineffective use of considering the cost and portable capability of the system.
insulin. Until recently, this type of diabetes was seen only in Most of the previous methods mentioned before are relatively
adults but it is now also occurring increasingly frequently in more complex than this one.
children [5].
Inspite of being painful, and with the risk of infection, inva- II . BACKGROUND
sive measurement method has been the most widely practiced
method across the world. For decades, various techniques have Studies demonstrating the relation between PPG signal
been attempted for pain-free blood glucose monitoring, includ- and blood glucose level [15] reveals that blood glucose is
ing minimal invasive and non-invasive methods, depending on approximately proportional to blood viscocity and inversely
their transduction mechanism. proportional to blood flow rate i.e, increased blood glucose
For getting glucose level in blood, the absorbance which is TABLE III
DISTRIBUTION OF DATA
mainly due to blood glucose is calculated from AC component
of PPG wave as follows: Range(mmol elL) I Number of data segments
0-5 807
5-10 689
f10D).. = log(l + ~?(ti~) 10-15 435
x ti+l 15++ 276
Where f10D).. is difference between optical densities at time
ti and ti+1, f1!>-. (ti) is the pulsatile component at time ti and
It can be seen from Table III that the data is not uniformly
I(ti+d is the intensity of light at time ti+}.
distributed. The number of data segment for higher blood
III. METHODOLOGY glucose level is relatively low.
The glucose estimation system can be divided into three E. Preprocessing
steps. The process flow is as follows: Before preprocessing data is divided into lOs segment
• Data Acquisition containing 1152 samples and segments with missing data were
• Preprocessing eliminated.Total 360 segments were obtained from the data set
• Blood glucose estimation which was used as training data. Preprocessing step involves
The flow chart of the working mechanism of the overall two steps. They are described in the following:
system is given in Fig 1. • Filtering
This step involves elimination of very low frequency
which was done using a high pass filter with -3dB cutoff
frequency of 4 Hz.
• Eliminating corrupted signals
Corrupted signals were eliminated using different param-
eters extracted from the filtered PPG signal. Different
Fig. 1. Flow Chart of the working mechanism of the overall system measures were used to differentiated between good and
corrupted signal.
54
1) At first, PPG signal was normalized and its first
derivative was determined.
2) From its first derivative negative zero crossing
points were calculated. The points indicates both
the systolic peak and diastolic peak. To find out the Feat.
Ext .
lB 0 6 ----m,.
g ...g
corrupted signals, either systolic peak positions or Block
55
The SparkFun MAX30105 Particle Sensor is a flexible, MSE = it L:~=lIYtarget - Ypredictedl
2
• Arduino
The Arduino is a microcontroller board based on the
Fig. 5. Convergence Curve of Mean Squared Error between target and
ATmega328. It has digital input/output pins (some of estimated Blood Glucose Level
which can be used as PWM outputs and some can be used
as analog inputs), a 16 MHz resonator, a USB connection, After completing the training, we found that training loss
a power jack, an in circuit system programming (ICSP) was 0.16 and validation loss was 0.19. As the validation loss
header, and a reset button. It contains everything needed is slightly greater that the training loss we can say that the
to support the microcontroller. model is a good fit. Total 104 epochs were needed.
B. Software Development The proposed model has been evaluated using mean squared
error (MSE). The prediction curve is given below:
• Tera-term & Arduino
With finger tip on the pulse oximeter or ppg sensor the
Predict ion Curve
required training set data has been recorded with the
- OigillOl
help of Arduino and Teraterm software . Teraterm later 24
- Pred icted
converts the data format in .csv format . 21
• Python
After recording the data, further analysis and trammg 18
fed into the system and the output is being processed and
9
shown on the system instantaneously. During testing tera-
term was not used as the data was directly being saved 6 L,, -_ , -_ , -- ,.-- , -- ,.-- ,.-- , -- ,-J
through python while processing. o 10 20 30 40 50 60 70 80
Sample
56
Fig. 6 shows the continuous Blood Glucose Level tracking show any distinguishable difference. Thus, it is evident that
of a patient using the proposed method. From this figure, it can the proposed model is able to estimate very high and low
be seen that the proposed model is able to track continuous Blood Glucose Level with high accuracy. As the data set was
Blood Glucose Level with better accuracy. smaller it could not predict very high Blood glucose level due
Bland-Altman analysis, Pearson's correlation coefficient to insufficient data. Also there was some corrupted data in the
analysis and box-plot analysis is also performed on the pro- dataset which caused outliers and errors.
posed model. The results are reported in the following.
Bland-Altman test, Pearson's correlation test and box plot 0
analysis have also been performed on the data. Fig. 7 shows 27 8
the Bland-Altman plot of Blood Glucose Level estimation .
For the proposed model, the limits of agreement [-1.18 1.08]
for Blood Glucose Level It means that 95% of the estimated
24
21 I I
iii
Blood Glucose Level have error less than 1.1 milimole per 18
4
litre indicates that the model is a good estimator.
~
15
12
Bland-Altman Plot
• •
9
6 • 6
Target Est imate d
3
Fig. 9. The box plots for Blood Glucose Level. The high amount of outliers
c;
is due to the high Blood Glucose Level of some of the subjects.
0 0
~
ur
21 TABLE V
COST COMPARISON OF THE PROPOSED & CONVENTIONAL SYSTEM
18
'tl
~
'" 15
E Proposed System Conventional System
til
w 12 Components Cost in USD Components Cost in USD
Arduino 14.81 Glucometer 54.23
9 MAX 30105 13.95 25 Strips 34.89
Lipo Battery 9.48 Needles(100 Pes) 17.99
6 Bluetooth Module 7.99 Antiseptic Skin Cleanser 29.99
6 9 12 15 18 21 24 27 Others 2.96 Cotton rolls 9.99
Target Bandaids(200Pcs) 9.99
Total 49.19 Total 157.08
Fig. 8. The regression plot for Blood Glucose Level. The Pearson's correlation
coefficient are r = 0.95 for Blood Glucose Level.
From the comparison, it can be seen that the initial cost of
Fig. 9 shows the box plots of Blood Glucose Level. The conventional system is much higher than the proposed method.
target and estimate box plot for Blood Glucose Level do not Moreover other than Glucometer, rest of the components need
57
to be refilled from time to time which is much expensive. [7] G. Rao, RH. Guy, P. Glikfeld, W.R LaCourse, L. Leung, J. Tamada,
The approximate weight of the proposed hardware(without RO. Potts, N. Azimi, Reverse Iontophoresis: Noninvasive Glucose
Monitoring in Vivo in Humans, Pharm. Res. An Off. J. Am. Assoc.
wrist band) is 250-300gm. This weight can be mostly reduced Pharm. Sci. 12 (1995) 18691873.
by replacing the lipo battery with suitable substitute as it [8] AJ. Bandodkar, W. Jia, C. Yardimci, X. Wang, J. Ramirez, J. Wang,
comprises most of the weight. Addition of training data will Tattoo-based noninvasive glucose monitoring: A proof-of-concept study,
Anal. Chern. 87 (2015) 394398.
further increase the accuracy of the proposed system. With this [9] R. Pandey, S.K. Paidi, T.A. Valdez, C. Zhang, N. Spegazzini, RR.
wearable device continuous monitoring of the blood glucose Dasari, I. Barman, Noninvasive Monitoring of Blood Glucose with
level of the user can be ensured with reliability and the user Raman Spectroscopy, Ace. Chern. Res. 50 (2017) 264272.
[10] K. Maruo, M. Tsurugi, Jakusei Chin, T. Ota, H. Arimoto, Y Yamada,
can be alerted immediately in the case of abnormal blood M. Tamura, M. Ishii, Y. Ozaki, Noninvasive blood glucose assay using
glucose level . a newly developed near-infrared system, IEEE J. Sel. Top. Quantum
Electron. 9 (2003) 322330.
[11] K. Yamakoshi, Y. Yamakoshi, Pulse glucometry: a new approach for
VIII. CONCLUSION noninvasive blood glucose measurement using instantaneous differential
near-infrared spectrophotometry, J. Biomed. Opt. 11 (2006) 054028.
Glucose or sugar level being one of the important health [12] A. Humayun, S. Ghaffarzadegan, Z. Feng, and T. Hasan, Learning
factors of human body, it is necessary to check glucose front-end filter-bank parameters using convolutional neural networks for
abnormal heart sound detection, vol. 2018, 07 2018, pp. 14081411.
frequently through various ways which include invasive and [13] Ramasahayam, S., Haindavi, K.S. and Chowdhury, S.R, 2015. Nonin-
non-invasive system. Invasive system requires painful blood vasive Estimation of Blood Glucose Concentration Using Near Infrared
collection while non-invasive system doesnt need any blood Optodes. InSensing Technology: Current Status and Future Trends IV
(pp. 67-82). Springer International Publishing. DOl 1O.1007/sI0916-
sample using needle. Rather some biological signal from hu- 014-0166-2
man body have showed strong relationship with glucose level. [14] Ramasahayam, S., Haindavi, K.S. and Chowdhury, S.R, 2015. Nonin-
Among those signals, PPG (photoplethysmogram) provides vasive Estimation of Blood Glucose Concentration Using Near Infrared
Optodes. InSensing Technology: Current Status and Future Trends IV
information about the volume of blood flowing in a test region (pp. 67-82).Springer International Publishing, doi:IO.1007/978-3-319-
close to the skin of body by illuminating the region of interest 12898-6-4
of body and reflected or transmitted light from that region. [15] Yamakoshi, K. and Yamakoshi, Y, 2006. Pulse glucometry: a new ap-
proach for noninvasive blood glucose measurement using instantaneous
In our paper,using this property of PPG, we measured heart differential near-infrared spectrophotometry. Journal of Biomedical Op-
rate, blood oxygen saturation using PPG sensor and studied tics, 11(5), pp.054028-054028., doi: 10.1117/1.2360919
the change of glucose level due to heart rate, blood oxygen [16] Monte-Moreno, E., 2011. Non-invasive estimate of blood glucose and
blood pressure from a photoplethysmograph by means of machine
saturation. For determining the relation, a training database learning techniques. Artificial intelligence in medicine, 53(2), pp.127-
was prepared which includes PPG sensor reading of patients 138., doi: 1O.1016/j.artrned.2011.05.001.
heart rate, blood oxygen saturation value and invasive glucose
level result. Applying machine learning, the relation of glucose
level with PPG sensors value is obtained and that relation
shows strong evidence of perfect result while comparing with
usual invasive glucose level test. Further research for more
accurate machine learning with big dataset and designing the
prototype for commercial use is future objective of our work.
R EFERENCES
58