Next Article in Journal
On-Site and External Energy Harvesting in Underground Wireless
Next Article in Special Issue
Deep Learning Based Biomedical Literature Classification Using Criteria of Scientific Rigor
Previous Article in Journal
Coverage and k-Coverage Optimization in Wireless Sensor Networks Using Computational Intelligence Methods: A Comparative Study
Previous Article in Special Issue
Role of IoT Technology in Agriculture: A Systematic Literature Review
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Smart Glucose Monitoring System for Diabetic Patient

1
Research Team in Smart Communication-ERSC-Research Centre E3S, EMI. Mohamed V University in Rabat, Rabat 10000, Morocco
2
Integrated Management Coastal Research Institute, Universitat Politecnica de Valencia, 46370 Valencia, Spain
*
Author to whom correspondence should be addressed.
Electronics 2020, 9(4), 678; https://doi.org/10.3390/electronics9040678
Submission received: 2 April 2020 / Revised: 20 April 2020 / Accepted: 20 April 2020 / Published: 22 April 2020

Abstract

:
Diabetic patients need ongoing surveillance, but this involves high costs for the government and family. The combined use of information and communication technologies (ICTs), artificial intelligence and smart devices can reduce these costs, helping the diabetic patient. This paper presents an intelligent architecture for the surveillance of diabetic disease that will allow physicians to remotely monitor the health of their patients through sensors integrated into smartphones and smart portable devices. The proposed architecture includes an intelligent algorithm developed to intelligently detect whether a parameter has exceeded a threshold, which may or may not involve urgency. To verify the proper functioning of this system, we developed a small portable device capable of measuring the level of glucose in the blood for diabetics and body temperature. We designed a secure mechanism to establish a wireless connection with the smartphone.

1. Introduction

Technologies and application of the Internet of Things are advancing considerably in important IoT technical areas, becoming more accessible, available and versatile every day, allowing faster growth of objects interconnected via the Internet [1]. The quality of life of patients is an important objective of intelligent healthcare and is a widespread concern with the construction of new applications in this field. The daily mobile health service is becoming more and more important. Several chronic diseases, like cardiovascular and diabetic diseases, influence the health of living people [2,3].
Patient data is very useful. Indeed, data analytics can be applied to identify people who need “proactive care” or who need a lifestyle change in order to avoid deterioration in health. For example, patients at an early stage of certain diseases (like heart failure, which is often caused by certain risk factors such as hypertension or diabetes) should be able to benefit from predictive and preventive care thanks to big data [4]. Patients are also more comprehensive about giving away part of their privacy if this could save their lives or other people’s lives [5,6].
Diabetes is a global disease which is caused by an increase or decrease in the glucose level in blood. If this abnormality persists for a long period of time, the diabetic patient has a high chance of being affected by other health problems, like damage to the blood vessels, or the risk of heart problems.
The World Health Organization (WHO) estimates diabetes to be the seventh-most-lethal disease [7,8]. Diabetes is a very dangerous disease that affects the majority of people, and a lot of attention is needed to keep them healthy. This disease is becoming one of the leading causes of death worldwide. A statistical report revealed that around 61.3 million people are recognized as diabetic patients, and the count may increase to 102 million by 2030 approximately [9]. Unfortunately, most people do not know the importance of keeping their diabetic health stable. The main cause of diabetes is the increase or decrease in the level of glucose in the blood, and it is necessary to keep it stable in a specific interval. Some patients with abnormalities require intensive care and monitoring to avoid worsening [10,11]. The increase in the number of diabetic patients also increases the use of continuous glucose monitoring devices, which are becoming a new method of monitoring glucose levels. These devices provide real-time information on glucose levels that are updated every ten minutes.
In this paper, we develop a wireless glucose monitoring system on a smartphone using a Wi-Fi protocol for communication. The blood glucose readings taken each time will be sent regularly to the mobile phone via Wi-Fi and will be shared on the Android application. The objective aims at discussing the realization of a digital blood glucose meter system integrated into Wi-Fi in order to monitor the blood sugar level of a diabetic patient in real time. Each time the patient makes glucose level measurements, the device will automatically send the measured data to medical experts. This technology is expected to help patients; this technology should help patients to communicate periodically with their doctors. Therefore, the doctor can always monitor the health of their patients remotely to provide preventive treatment and to intervene in an emergency.
Smart devices such as smartphones and smart gadgets have several internal sensors that can help monitor vital signs in humans, such as heart rate, respiratory rate, and respiratory changes, among others [12]. They also contain a GPS which can help monitor the physical activities and the position of the patients [13].
In this article, we show a new smart system for monitoring diabetic patients. Using the data collected by the glucose sensor, diabetic patients can be monitored remotely by doctors. We have developed an intelligent algorithm, which is able to send the glucose data measured by the sensor to the doctors to analyze, these data will be automatically stored in the database as positive or false positive after being validated (or not) by the doctor. In our case study, we used several sensors to facilitate monitoring of the diabetic disease.
The remainder of this paper is organized in the following manner. Section 2 presents related works. Section 3 describes our proposed scenario for monitoring diabetic patients, as well as important design considerations. Section 4 details the hardware design for our system and the implementation of our system. Section 5 describes the experimental setup, as well as the results of our practical evaluations. Finally, Section 6 concludes the paper.

2. Related Work

This section includes some existing research related to some applications of glucose monitoring in diabetic patients based on the use of intelligent sensors.
We will now detail some of the work that uses sensors integrated into the smartphone for patient monitoring [14,15,16]. A new intelligent collaborative system that uses smartphone sensors to monitor disabled and elderly people has been proposed by Sendra et al. [17]. Wang and Lee [18] are developing a new concept of a blood glucose sensor for advanced control and monitoring of blood sugar in patients.
Ketabdar and Lyra [19] proposed a new system for monitoring and tracking the physical activities of the elderly or disabled. The system uses smartphones to collect data. The researchers performed a test with 320 activity instances and four subject users were recorded and analyzed. The presented system had an accuracy of 92.9%.
L. Shi et al. [20] suggested a new system for elderly and chronically ill patients. The system allows to the patients to control and supervise their situation. With the help of the proposed system, which is implemented in a smartphone, the patient can stay at home independently to avoid hospitalization for a long time. The system can detect a failed measurement. The communication of the data to the server is ensured by the TCP/IP protocol and the Wi-Fi technology.
Ahmed [21] presents a system for predicting the concentration of glucose for a diabetic patient. They use GlucoSim software to analyze information from the diabetic patient, which is generated by a continuous glucose monitoring system (CGS). The CGM sensor uses a Kalman filter (KF) to reduce noise.
In [22], S. A. Siddiqui and their colleagues present a survey of non-invasive/pain-free blood sugar control methods. They also make a comparison between the different devices manufactured for non-invasive monitoring.
Lee and Chung [23] present a wearable smart shirt for ubiquitous health and activity monitoring using the wearable sensors with a smartphone. Their proposed system aims to provide continuous and real-time monitoring for patients, using the electrocardiogram and acceleration signals in a wireless body area sensor network (WBAN).
González-Valenzuela et al. [24] presented a new system for the medical monitoring of patients at home. This system is capable of obtaining data on the health of patients. The system consists of four sensors placed in the patient’s body. The authors have shown the use of sensors in the body under different activity models.
We will use the data analysis system for diabetic patients, which can help solve one of the problems of the cost of patients for individual treatment. Several researchers have developed methods of data analysis and classification [25,26]. In this work, we use the random tree, naïve Bayes, SMO, ZeroR, OneR, and J48 classification algorithms from the diabetes dataset to identify the most powerful algorithm for determining the risk level for diabetic patients.
There are many proposals for elderly people and for disabled people in the mentioned works. This work suggests the implementation of a blood glucose measurement system with a Wi-Fi module for telemonitoring, but no one of the mentioned research proposals is specially designed and developed for diabetic patient monitoring. Several applications use Bluetooth, but our application uses Wi-Fi for communication. There are many proposals for elderly people and for disabled people. We do not find any applications that have already been used or are ready to use in the market for the glucose monitoring systems. The results shown in Table 1 indicate that our application is one of the applications that use Wi-Fi as a means of communication and that it is equipped with many types of sensors to collect data related to movements, body temperature, and glucose. In addition to this, our application classifies this data. In this paper, we propose our glucose level monitoring application for diabetic patients, but we are not limited to monitoring; we also apply the algorithms for classification of the data recovered by our application to classify and analyze them.

3. Proposed Scenario

In this part, we give a detailed description of the proposed monitoring system for diabetic patients.

Architecture

In this section, we will develop a health care surveillance system to help diabetic patients react to their situation and manage their illness themselves. The proposed system automatically records several data related to the health of diabetic patients. In addition, the system will be seen as a platform between patients and doctors for information on daily health care.
Our proposed system consists of three main components: (i) sensor modules, (ii) a data acquisition module and (iii) a database server, which is a mobile application that works like a local server installed in the smartphone. Figure 1 shows the proposed architecture for the diabetic monitoring system.
The architecture of our proposed system consists of three components: (i) sensor modules, (ii) a data acquisition module and (iii) a database server:
(i)
Wearable Device. This is composed of several sensor modules, like a glucose sensor, a motion sensor and a temperature sensor, and is controlled by Arduino Uno and connected to a smartphone. We used Bluetooth to connect sensor devices with the smartphones. We can use also smartwatches or gadgets that usually communicate with a smartphone using Bluetooth. The body sensors collect information about glucose level, temperature and motion from the diabetic patient. This information is sent to the mobile device through a Bluetooth connection. The mobile device sends this information to the database through the 4G network or Wi-Fi.
(ii)
Data acquisition module. This is composed of the mobile application and database server. The database server collects the data from the sensors; we used the 4G network to send the sensors’ information to the database server.
(iii)
The processing unit. This is composed of a doctor’s mobile and monitoring systems. The smartphone sends information to a processing unit via a 4G network. The monitoring system analyses the data gathered from the sensors. When the system detects an abnormal situation, a notification is sent to the doctor to see the mobile application and detect if there is an emergency or just a perturbation of the use of medication with the diabetic patient.
Each diabetic patient can carry a portable device or a developed device attached to the hand, which is connected with the telephone of the patient. These devices send signals with different types of information—temperature, movement, location, and blood glucose level—to update the health profile of the diabetic patient in real time.
The doctor, the patient, and their family members can access the monitoring system to monitor physical activity and monitor the glucose level of diabetic patients using their connected smartphone. We will create a special account with a personal access code for family members of the diabetic patient in order to prevent unauthorized access to the data.

4. Hardware Design and Implementation

The overall structure of hardware used in our proposed architecture for monitoring the diabetic patient is illustrated in Figure 2.

4.1. ESP 8266 Mod

The ESP8266 is a microcontroller integrated circuit with a Wi-Fi connection. The modules incorporating this circuit are widely used to control devices over the Internet. ESP8266 can be programmed in several ways: in C++, with the Arduino IDE3; in JavaScript, with the firmware Espruino4; and in C, with the SDK of Espressif. ESP8266 has become a popular and affordable solution for Internet of Things applications.
The ESP8266 mod uses Wi-Fi technology, which offers advantages like precise location services to within approximately a centimeter. Sending data across obstacles and walls must also be taken into account.

4.2. Glucose Sensor

Glucose sensors are used to measure the blood glucose concentration of a patient; this is part of a continuous glucose monitoring (CGM) system that is inserted under the skin and measures the glucose levels. It sends the glucose data wirelessly to the system receiver or a compatible smart device.

4.3. Pedometer

The pedometer is used to monitor the physical activity of the diabetic patient. Physical activity is defined as any movement that increases the use of energy, such as walking or playing a football game [28]. Physical activity should be recommended to all diabetic patients as part of the management of their level of glucose and for improving their health. For our practical application, we tried to work with the smartwatch, which already contains a pedometer. We ask the diabetic patient to put the smartwatch in their hands, and we automatically receive the number of steps and the distance crossed by the patient on the application installed on the smartphone of the patient.
Figure 3 shows the smartwatch and the mobile application used to record the number of steps traveled by the diabetic patient.

4.4. Arduino Nano

The Arduino board is a reliable element capable of running a complete program. It represents a suitable solution for controlling electronics. The Arduino Nano board is a small electronic board capable of running a full program to perform a variety of tasks. It is a platform based on a simple input/output interface. In addition, the Arduino board has serial communication interfaces; it works with a mini-USB cable instead of a standard cable, which is also used to load programs from computers.
The data collected by the sensors is sent and processed by the microcontroller of the Arduino board.
The level of glucose in the blood (in mg/dL) of each patient was checked and is shown in Table 2, with an average of three measures daily for 10 days, and the average of number of steps per day.
This part presents the implementation of our proposed system with the scheme and the flowchart of the system shown in Figure 4.
Data are collected for the smart diabetic monitoring system (glucose sensors, temperature sensor, pedometer), and the information is then transmitted through the ESP8266 module via a Wi-Fi network to the mobile application. These data, once pre-processed, are sent to the monitoring center for rule-based processing to produce relevant results. Having obtained the processed results, the monitoring center communicates with the doctor (via the doctor’s phone), sends their decisions via a Wi-Fi network, and reports the diabetic patient state. After that, the system saves the data automatically. Finally, we can save the data as:
  • False Negative (FN), for the critical data and requires hospitalization for the patient.
  • True Positive (TP), for the correct data.
  • False Positive (FP), for the data that requires just the injection of the necessary insulin level.
To automatically detect emergency situations in our proposed system, we have described the decision algorithm, which combines the sensor data used in real time. Figure 5 shows the intelligent algorithm for monitoring diabetic patients. This intelligent algorithm is created to decide the actions to be taken after the data storage and analysis. This intelligent algorithm is able to detect if the data are FN, TP or FP. If the data save as FN it indicates the beginning of an emergency situation, and then the doctor verification process will start as soon as possible, as is shown in Figure 5.

5. Communication Protocol

Our proposal is based on diabetic patient monitoring. We consider mobile nodes (installed in the patient’s body) which have the role of taking data from the patient continuously. In particular, the installation of wireless nodes is based on module Wi-Fi (ESP8266). With this, we can monitor the evolution of parameters such as glucose level, temperature, and physical activities of diabetic patients and combine all these data to build a real-time application in healthcare to monitor the diabetic patient. Our proposed system registers the data of the patient: their name, glucose level, temperature, and other information on their physical activity. This data is then forwarded to the database. If an abnormal situation is detected, the unfavorable results are displayed, and a log is created in the database with the hour of the detection.
The wearable device is based on an Arduino Nano Board and ESP8266 Wi-Fi interface. The ESP8266 Wi-Fi module is used to connect with the mobile phone. For the part of sensors, we have selected a glucometer to measure the glucose level for diabetic patients, a temperature sensor to measure the corporal temperature and a pedometer that is able to measure the physical activities for each patient. The proposed system receives information from several sensors. This information is transmitted via Wi-Fi to a smartphone that will be in charge of sending this information to the doctor and the database at the same time. The data generated by the sensors will be sent to the database for treatment and sent to the doctor to make a decision and will be sent to the patient’s family for more information on the patient’s state of health. The transmission will be either from sensor to mobile phone, from phone to the database, and from the database to the doctor.
The transmission between the sensors and the smartphone: we have captured information about the patient (glucose level, temperature, number of steps) from each sensor; for each sensor, we must save the ID, the patient name and the transmission time. We need also to know the ID of each sensor and identify it because the same patient can wear several sensors of the same type.
The transmission from the smartphone to the database: the purpose of this transmission is to transform the data from the telephone to the database in order to process and classify it with the Weka tools. The transmission will be made by the Wi-Fi protocol or the 4G connection.
The transmission from the database to the doctor: This module is divided into two parts: the glucose level classifier, which indicates whether the glucose level detected by the glucometer is critical or not; and the doctor, who decides the type of action to be performed by the patient in order to guarantee good medical conditions for the diabetic. Figure 6 shows the structure of information transmission.
Figure 7 illustrates the flowchart of the proposed application, to classify the blood glucose level data for diabetic patients. More concretely, this lets the reader know how the actual glucose values are measured and sent to the base station and how to automatically process them to send them to the doctor to give the final decision. The database compares, at all times, the level of glucose received with respect to the given threshold. If a measurement is above or below the threshold, we get an information message. The next step is to contact the doctor to find out if the message contains a high risk that requires the doctor’s intervention or not.
To analyze the network flow of our application, we will use the Wireshark application [29]. Wireshark is a free and open-source package analyzer. It is used in troubleshooting and analysis of computer networks, protocol development, education, and reverse engineering. Figure 8 shows us the packet captured during the transmission between ESP8266 and Arduino.
Wireshark IO Graphs will show you the overall traffic seen in a capture file, which is usually measured in rate per second in bytes or packets. The ESP8266 microcontroller can be programmed in Arduino. An easy-to-use library for generating Wireshark-readable PCAP files can be loaded onto an ESP8266. The x-axis is the tick interval per second, and the y-axis is the packets per second. Figure 9 shows the IO graphs for the capture file.

6. Data Classification

This article is designed to study the level of glucose in the blood for diabetic patients. Data were collected from three patients in the study of this case. Table 3 shows the glucose monitoring for a diabetic patient three time per day.
With actual new technologies, it is possible to implement an IoT solution for monitoring diabetic patients. The ESP8266 module can be considered the best choice for sending the continuous data of each sensor. In our proposal, we use portable sensors, such as the glucometer, temperature sensor, and pedometer to monitor the vital signs data of diabetic patients. The communication between the sensors and a smartphone was made using a Wi-Fi protocol.
In this paper, we developed a new glucose monitoring system for diabetes using Wi-Fi. This system can generate glucose data for diabetic patients and send this data to the data center for classification. We applied several data classification algorithms to classify glucose data; after several tests, the evaluation result showed that the system using the J48 algorithm exhibited excellent classification with the highest accuracy of 99.17%, a sensitivity of 99.47% and a precision of 99.32%. Therefore, the J48 is one of the state-of-the-art techniques to address classification problems and it provides better accuracy. The method proposed in this paper aims at providing an optimal solution for the classification of diabetic patients according to their temperature and physical activity.
The main idea of this study (diabetes classification) is to allow an early prediction of abnormal diabetes cases that require a doctor’s intervention, using data on blood glucose level, temperature, and the number of steps traveled by patients, taken by sensors connected with a smartphone based on Wi-Fi technology. An early prediction of the disease can lead to treating patients before the disease gets worse and becomes critical. All of the data studied include the records of 55 diabetic patients (39 men and 16 women), for 65 days with an average of three measurements per day.
The classification algorithms used in the study were the naive Bayes (NB), J48, random tree, ZeroR, SMO (sequential minimal optimization), and OneR algorithms. In this experiment, we used WEKA (Waikato Environment for Knowledge Analysis: is an open-source data mining program), as a data extraction tool to classify data and analyze and determine the accuracy of prediction of different data mining algorithms [30].
In this study, the glucose level dataset was classified by several classification algorithms in the same data-mining programs. The glucose level dataset contains seven attributes and 10,725 glucose level records. Table 4 shows the data type and description of the attributes.

7. Result and Discussion

Performance results in terms of precision, receiver-operating characteristics (ROC) and accuracy were analyzed and discussed.
The accuracy of the classification is defined as an evaluation measure to compare the results obtained by several methods applied in the dataset. The accuracy of the classification can be given by the equation [31].
Accuracy:
i = 1 | N | E v a l u a t e   ( i ) | N |
Evaluate:
( n ) = { 1   i f   c l a s s i f y ( n ) = c n   0   e l s e
where:
N is the testing dataset to be classified.
|N| represents the size of the testing data set to be classified
Classify (n) gives the classification result of the data item n by the deep network.
Classification accuracy can be given also by the equation:
Accuracy = T P + T N T P + T N + F P + F N   ( % )
The test of the dataset was analyzed by the use of six classification algorithms, which were naïve Bayes, J48, ZeroR, random tree, OneR, and SMO. The accuracy level of all the algorithms is given below in Table 5.
From Table 4, which shows the comparison between algorithms like ZeroR, random tree, J48, naive Bayes, OneR and SMO (sequential minimum optimization) we see that the correctly classified instances are higher than the incorrectly classified instances in terms of accuracy. Figure 10 shows a bar graph that represents correctly and incorrectly ranked instances of the used algorithms.
Figure 11 shows the time graph of various classification algorithms. The longest time is taken by ZeroR, at 0.05 s, and the shortest time is taken by random tree, at 0.01 s only.
As shown in Table 6, using parameters such as TP rate and PF rate, accuracy, recall, and F-measure can be calculated. These parameters are defined as follows:
Precision = TP/(TP + FP)
Recall = TP/(TP + FN)
F-Measure = (2 * Precision * Recall)/(Precision + Recall)
Figure 12 shows the performance results of each classifier in terms of precision, recall, and F-measure.
Using the preceding equations, we can also define specificity, sensitivity, precision, and accuracy. These parameters are given by the equations below:
Specificity = TN/(TN + FP)
Sensitivity = TP/(TP + FN)
Precision = TP/(TP + FP)
Accuracy = (TP + TN)/(TP + TN + FN + FP)
Table 7 shows the values of specificity, sensitivity, and accuracy for the algorithms used in this study.
Figure 13 gives the graph of sensitivity, specificity, precision, and accuracy of different algorithms. The sensitivity, specificity, precision, and accuracy of OneR are better than those of the other classifiers.
Figure 14 represents the kappa statistic, MAE (Mean absolute error) and RMSE (root-mean-square error) values for the chosen classifiers. The ZeroR algorithm shows better results for MAE and RMSE, and the J48 algorithm shows a better value for the Kappa statistic.

8. Conclusions

To conclude, the system which has been developed in this research can monitor the diabetic patient’s physiological conditions, as proven by its high percentage accuracy in detecting normal glucose level for a diabetic patient. In this paper, an intelligent IoT system for remote monitoring of diabetic patients with a data classification model is presented for automated detection and classification of glucose level data. To improve the accuracy of analysis and diagnosis of diabetic patients, the system not only monitors health data such as blood sugar, but the proposed system offers advanced services such as interoperability, local storage, and data processing (classification of data using machine learning algorithms for prediction, and detection of falls via light algorithms). Additionally, after several tests, the proposed prediction system was evaluated by several machine-learning algorithms (naïve Bayes, J48, ZeroR, random tree, SMO, and OneR) and the simulation results demonstrated that the J48 algorithm exhibited excellent classification, with the highest accuracy of 99.17%, a sensitivity of 99.47% and a precision of 99.32%.
The system is also capable of producing a notification when an abnormal condition is detected. Our proposed model is expected to help diabetic patients and their family monitor their glucose level data from glucose level sensors using their smartphones. Additionally, the proposed model helps diabetic patients to obtain future predictions of their blood glucose levels. Therefore, with the proposed system, diabetic patients can avoid the worst conditions in the near future.
In the future, we will evaluate further parameters (including heart rate or any other factor that can be measured by wearables) for monitoring and will aim to implement the system in the modern smart healthcare field; we will also try to increase the number of patients for the test.

Author Contributions

Methodology and supervision, J.L. and A.O.; formal analysis and investigation, A.R., and M.H.; writing—original draft preparation, A.R.; writing—review and editing, A.R. and J.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Gubbi, J.; Buyya, R.; Marusic, S.; Palaniswami, M. Internet of Thnigs(IoT) A vision, architectural elements, and future directions. Future Gener. Comput. Syst. 2013, 29, 1645–1660. [Google Scholar] [CrossRef] [Green Version]
  2. Yin, Y.; Zeng, Y.; Chen, X.; Fan, Y. The internet of things in healthcare: An overview. J. Ind. Inf. Integr. 2016, 1, 3–13. [Google Scholar] [CrossRef]
  3. Guariguata, L.; Whiting, D.R.; Hambleton, I.; Beagley, J.; Linnenkamp, U.; Shaw, J.E. Global estimates of diabetes prevalence for 2013 and projections for 2035. Diabetes Res. Clin. Pract. 2014, 103, 137–149. [Google Scholar] [CrossRef] [PubMed]
  4. Dhillon, P.K.; Kalra, S. Secure multi-factor remote user authentication scheme for Internet of Things environments. Int. J. Commun. Syst. 2017, 30, e3323. [Google Scholar] [CrossRef]
  5. Bu, F. An intelligent efficient scheduling algorithm for big data in communication systems. Int. J. Commun. Syst. 2017, 31, e3465. [Google Scholar] [CrossRef]
  6. Rghioui, A.; Sendra, S.; Lloret, J.; Oumnad, A. Internet of Things for measuring human activities in ambient assisted living and e-health. Netw. Protoc. Algorithms 2016, 8, 15–28. [Google Scholar] [CrossRef] [Green Version]
  7. Wan, S.; Liang, Y.; Zhang, Y. Deep convolutional neural networks for diabetic retinopathy detection by image classification. Comput. Electr. Eng. 2018, 72, 274–282. [Google Scholar] [CrossRef]
  8. Krizhevsky, A.; Sutskever, I.; Hinton, G.E. ImageNet classification with deep convolutional neural networks. Commun. ACM 2017, 60, 84–90. [Google Scholar] [CrossRef]
  9. Whiting, D.R.; Guariguata, L.; Weil, C.; Shaw, J. IDF diabetes atlas: Global estimates of the prevalence of diabetes for 2011 and 2030. Diabetes Res. Clin. Pract. 2011, 94, 311–321. [Google Scholar] [CrossRef]
  10. Tabish, S.A. Is Diabetes Becoming the Biggest Epidemic of the Twenty-first Century? Int. J. Health Sci. 2007, 1, 5–8. [Google Scholar]
  11. Mian, Z.; Hermayer, K.L.; Jenkins, A. Continuous Glucose Monitoring: Review of an Innovation in Diabetes Management. Am. J. Med. Sci. 2019, 358, 332–339. [Google Scholar] [CrossRef]
  12. Bellemo, V.; Lim, Z.W.; Lim, G.; BEng, Q.D.N.; Xie, Y. Artificial intelligence using deep learning to screen for referable and vision-threatening diabetic retinopathy in Africa: A clinical validation study. Lancet Digit. Health 2019, 1, e35–e44. [Google Scholar] [CrossRef] [Green Version]
  13. Benadda, B.; Beldjilali, B.; Mankouri, A.; Taleb, O. Secure IoT solution for wearable health care applications, case study Electric Imp development platform. Int. J. Commun. Syst. 2018, 31, e3499. [Google Scholar] [CrossRef]
  14. Wang, X.; Zhang, A.; Xie, X.; Ye, X. Secure-aware and privacy-preserving electronic health record searching in cloud environment. Int. J. Commun. Syst. 2019, 32, e3925. [Google Scholar] [CrossRef]
  15. Ghasemi, F.; Rezaee, A.; Rahmani, A.M. Structural and behavioral reference model for IoT-based elderly health-care systems in smart home. Int. J. Commun. Syst. 2019, 32, e4002. [Google Scholar] [CrossRef]
  16. Burton, A.; Stuart, T.; Ausra, J.; Gutruf, P. Smartphone for monitoring basic vital signs: Miniaturized, near-field communication based devices for chronic recording of health. Smartphone Based Med. Diagn. 2020, 10, 177–208. [Google Scholar]
  17. Sendra, S.; Granell, E.; Lloret, J.; Rodrigues, J.J.P.C. Smart collaborative system using the sensors of mobile devices for monitoring disabled and elderly people. In Proceedings of the IEEE International Conference on Communications (ICC), Ottawa, ON, Canada, 10–15 June 2012. [Google Scholar]
  18. Wang, H.C.; Lee, A.R. Recent developments in blood glucose sensors. J. Food Drug Anal. 2015, 23, 191–200. [Google Scholar] [CrossRef] [Green Version]
  19. Ketabdar, H.; Lyra, M. System and methodology for using mobile phones in live remote monitoring of physical activities. In Proceedings of the IEEE International Symposium on Technology and Society, Wollongong, NSW, Australia, 7–9 June 2010. [Google Scholar]
  20. Shi, L.; Makinen, M.; Lee, D.; Kidane, R.; Blanchet, N.; Liang, H.; Li, J.; Lindelow, M.; Wang, H.; Xie, S.; et al. Integrated care delivery and health care seeking by chronically-ill patients–A case-control study of rural Henan province, China. Int. J. Equity Health 2015, 14, 98. [Google Scholar] [CrossRef] [Green Version]
  21. Ahmed, H.B.; Serener, A. Effects of External Factors in CGM Sensor Glucose Concentration Prediction. Procedia Comput. Sci. 2016, 102, 623–629. [Google Scholar] [CrossRef] [Green Version]
  22. Siddiqui, S.A.; Zhang, A.; Lloret, J.; Song, H.; Obradovic, Z. Pain-free blood glucose monitoring using wearable sensors: Recent advancements and future prospects. IEEE Rev. Biomed. Eng. 2018, 11, 21–35. [Google Scholar] [CrossRef]
  23. Lee, Y.; Chung, W. Wireless Sensor Network Based Wearable Smart Shirt for Ubiquitous Health and Activity Monitoring. Sens. Actuators B Chem. 2009, 140, 390–395. [Google Scholar] [CrossRef]
  24. González-Valenzuela, S.; Chen, M.; Leung, V.C.M. Mobility Support for Health Monitoring at Home Using Wearable Sensors. IEEE Trans. Inf. Technol. Biomed. 2011, 15, 539–549. [Google Scholar] [CrossRef] [PubMed]
  25. Saravananathan, K.; Velmurugan, T. Analyzing Diabetic Data using Classification Algorithms in Data Mining. Indian J. Sci. Technol. 2016, 9, 1–6. [Google Scholar] [CrossRef]
  26. Rghioui, A.; Lloret, J.; Parra, L.; Sendra, S.; Oumnad, A. Glucose Data Classification for Diabetic Patient Monitoring. Appl. Sci. 2019, 9, 4459. [Google Scholar] [CrossRef] [Green Version]
  27. Gomez, J.; Oviedob, B.; Zhuma, E. Patient Monitoring System Based on Internet of Things. Procedia Comput. Sci. 2016, 83, 90–97. [Google Scholar] [CrossRef] [Green Version]
  28. Croteau, K.A. Using pedometers to increase the non-workday steps of hospital nursing and support staff: A pilot study. Workplace Health Saf. 2017, 65, 452–456. [Google Scholar] [CrossRef] [PubMed]
  29. Premini, F.; Narayanan, H.T.S. Seamless Decoding Of Normal And OID Compressed SNMP PDUs -An Enhancement To Wireshark. Procedia Eng. 2012, 38, 1479–1486. [Google Scholar] [CrossRef] [Green Version]
  30. Li, H.; Li, H.; Wei, K. Automatic fast double KNN classification algorithm based on ACC and hierarchical clustering for big data. Int. J. Commun. Syst. 2018, 31, e3488. [Google Scholar] [CrossRef]
  31. Kanaadasan, K.; Edla, D.R.; Kuppili, V. Type 2 diabetes data classification using stacked autoencoders in deep neural networks. Clin. Epidemiol. Glob. Health 2019, 7, 530–535. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Proposed architecture for diabetic monitoring.
Figure 1. Proposed architecture for diabetic monitoring.
Electronics 09 00678 g001
Figure 2. Hardware Block Diagram.
Figure 2. Hardware Block Diagram.
Electronics 09 00678 g002
Figure 3. Pedometer.
Figure 3. Pedometer.
Electronics 09 00678 g003
Figure 4. Flowchart of the system.
Figure 4. Flowchart of the system.
Electronics 09 00678 g004
Figure 5. Smart algorithm for monitoring diabetic patients.
Figure 5. Smart algorithm for monitoring diabetic patients.
Electronics 09 00678 g005
Figure 6. Structure of information transmission.
Figure 6. Structure of information transmission.
Electronics 09 00678 g006
Figure 7. Flow Chart of Programming.
Figure 7. Flow Chart of Programming.
Electronics 09 00678 g007
Figure 8. The packet captured during transmission between ESP8266 and Arduino.
Figure 8. The packet captured during transmission between ESP8266 and Arduino.
Electronics 09 00678 g008
Figure 9. The I/O Graphs.
Figure 9. The I/O Graphs.
Electronics 09 00678 g009
Figure 10. The graph of correctly and incorrectly classified instances of algorithms.
Figure 10. The graph of correctly and incorrectly classified instances of algorithms.
Electronics 09 00678 g010
Figure 11. The graph for training time results for different algorithms.
Figure 11. The graph for training time results for different algorithms.
Electronics 09 00678 g011
Figure 12. Graphical representation of FP, TP, precision, recall, and F-measure of different algorithms.
Figure 12. Graphical representation of FP, TP, precision, recall, and F-measure of different algorithms.
Electronics 09 00678 g012
Figure 13. Graphical representation of sensitivity, specificity, precision, and accuracy of different algorithms.
Figure 13. Graphical representation of sensitivity, specificity, precision, and accuracy of different algorithms.
Electronics 09 00678 g013
Figure 14. KAPPA Statistics and error rate values.
Figure 14. KAPPA Statistics and error rate values.
Electronics 09 00678 g014
Table 1. Comparisons of the proposed application and other state-of-the-art applications.
Table 1. Comparisons of the proposed application and other state-of-the-art applications.
AuthorsApplicationUse SmartphoneSensor’s CommunicationData Classification
Rghioui, Lloretdiabetic patient monitoring systemYesWi-Fi (Esp8266)Yes
Ghasemi [15]elderly person’s health-care systemYesBluetooth/ZigbeeNo
Burton [16]Smartphone for monitoring basic vital signsYesNFC technologyNo
Ketabdar [19]Using Mobile Phones in Live Remote Monitoring of Physical ActivitiesYesWi-Fi/GPRSNo
Siddiqui [22]Blood Glucose monitoringYesnot specifiedNo
González-Valenzuela [24]healthcare monitoring system of convalescing patients at homeNonot specifiedNo
Gomez [27]Patient Monitoring System Based on Internet of ThingsYesnot specifiedNo
Table 2. Glucose, temperature and number of step measurement.
Table 2. Glucose, temperature and number of step measurement.
DayBlood Sugar Level (mg/dL)TemperatureNumber of Steps
MorningAfternoonEvening
Day1108121131373423
Day2166123124374322
Day3103112114374876
Day413410298374657
Day51417288384511
Day6150147123364690
Day7697882388768
Day8111100111374121
Day9988786377823
Day10767077388543
Table 3. Glucose level storage for a patient.
Table 3. Glucose level storage for a patient.
NameDevice IdSeq-NumGlucose Level (mg/dl)DateTime
BadrF024275G0723111213/07/201910:14:53
BadrF024275G07233011822/07/201910:15:43
BadrF024275G0723579232/07/201910:07:02
BadrF024275G07237110505/08/201922:30:37
BadrF024275G07231288228/08/201915:18:16
BadrF024275G072316513801/09/201914:22:44
BadrF024275G072325110828/09/201922:46:06
BadrF024275G07233127214/10/201915:43:07
Table 4. Glucose Data.
Table 4. Glucose Data.
No.AttributesData Type
1SexBoolean
2AgeNumeric
3DayNumeric
4Glucose LevelNumeric
5Number of StepNumeric
6TemperatureNumeric
7BGLBoolean
Table 5. Glucose Data.
Table 5. Glucose Data.
AlgorithmsCorrectly Classified InstancesIncorrectly Classified Instances
Naïve Bayes85.1563%14.8438%
J4899.1667%0.8333%
ZeroR68.9063%31.0938%
RandomTree98.75%1.25%
SMO80.6771%19.3229%
OneR99.1146%0.8854%
Table 6. Values of TP, FP, precision, recall, and F-measure for algorithms.
Table 6. Values of TP, FP, precision, recall, and F-measure for algorithms.
AlgorithmsTP RateFP RatePrecisionRecallF-Measure
Naïve Bayes0.8520.3190.8710.8520.837
J480.9920.0120.9920.9920.992
ZeroR0.6890.6890.4750.6890.562
RandomTree0.9880.0190.9870.9880.987
SMO0.8070.4190.8390.8070.778
OneR0.9910.0130.9910.9910.991
Table 7. Comparison of sensitivity, precision, accuracy, and specificity.
Table 7. Comparison of sensitivity, precision, accuracy, and specificity.
AlgorithmsSpecificitySensitivityAccuracyPrecision
Naïve Bayes54.10%99.17%85.16%82.72%
J4889.49%99.47%99.17%99.32%
ZeroR0.00%100%68.91%68.91%
RandomTree97.49%99.32%98.75%98.87%
SMO39.53%99.24%80.68%78.43%
OneR98.32%99.47%99.11%99.25%

Share and Cite

MDPI and ACS Style

Rghioui, A.; Lloret, J.; Harane, M.; Oumnad, A. A Smart Glucose Monitoring System for Diabetic Patient. Electronics 2020, 9, 678. https://doi.org/10.3390/electronics9040678

AMA Style

Rghioui A, Lloret J, Harane M, Oumnad A. A Smart Glucose Monitoring System for Diabetic Patient. Electronics. 2020; 9(4):678. https://doi.org/10.3390/electronics9040678

Chicago/Turabian Style

Rghioui, Amine, Jaime Lloret, Mohamed Harane, and Abdelmajid Oumnad. 2020. "A Smart Glucose Monitoring System for Diabetic Patient" Electronics 9, no. 4: 678. https://doi.org/10.3390/electronics9040678

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop