Professional Documents
Culture Documents
Abstract:Diabetes Mellitus (DM), commonly referred to as Diabetes, is a group of metabolic diseases in which there
are high blood sugar levels over a prolonged period. Thus, the objective of this work is to predict the chances of
diabetes in a person and if a person has diabetes then the level of insulin dosage required for the patient is prescribed.
Parameters such as Fasting Blood Sugar levels (FBS), Postprandial Plasma Glucose Test (PPBS), Urea, Creatinine
and Haemoglobin factors are considered in order to detect the diabetes in a person. Using neural network feed
forward prediction model in conjunction with back propagation algorithm, and based on the given training data set,
it is predicted whether a subject has diabetes or not using Matlab. Finally, the hardware implementation of the
Diagnosis of Diabetes Mellitus based on Neural network concept is carried out in Xilinx Spartan6 FPGA XC6SLX9.
Functionality of the design is verified using Verilog HDL module.
1. INTRODUCTION
The term Diabetes Mellitus describes a metabolic disorder with disturbances of carbohydrate, fat and
protein metabolism which results in insulin secretion, insulin action or both. This leads to dysfunction and
failure of various organs. Diabetes Mellitus is characterized with the following symptoms such as thirst,
polyuria, blurring of vision, and weight loss. If an effective treatment is not provided, ketoacidosis develops and
this leads to stupor or coma. The long–term effects of Diabetes Mellitus include progressive development of the
specific complications of retinopathy with potential blindness, nephropathy that may lead to renal failure, and/or
neuropathy with risk of foot ulcers, amputation, Charcot joints, and features of autonomic dysfunction,
including sexual dysfunction. People with diabetes are at increased risk of cardiovascular, peripheral vascular
and cerebro-vascular disease.
Diabetes Mellitus is a growing burden for all the countries in the world. The InternationalDiabetes
Federation (IDF) estimates that the number of people with diabetes will grow from 194 million in 2003 to 333
million in 2025 (Diabetes Atlas, third edition, International Diabetes Federation, 2007). An early diagnosis helps
the people to take medication accordingly. It is important to prevent any disease before its development so [1]
specifies method regarding the prediction of the disease and the clinical support system with procedure. It is
based on ant colony optimized neural network. A virtual patient is implemented on a PC host computer, which
is interconnected with the FPGA controller. This controller constitutes a step forward to develop an autonomous
artificial pancreas.FPGA implementation of a discrete-time inverse neural optimal control is proposed in [2] to
regulate glucose level for type 1 diabetes mellitus (T1DM) patients. Besides this control law minimizes a cost
519 https://sites.google.com/site/ijcsis/
ISSN 1947-5500
International Journal of Computer Science and Information Security (IJCSIS),
Vol. 15, No. 1, January 2017
functional. The neural model is obtained from an on-line neural identifier, which uses a recurrent high-order
neural network (RHONN), trained with an Extended Kalman filter (EKF).
In research work [3], inverse optimal neural control for trajectory tracking is used in glycemic control
of type 1 diabetes mellitus (T1DM) patients. The proposed control law calculates the adequate insulin delivery
rate in order to prevent hyperglycemia and hypoglycemia levels in T1DM patients. To use a better technique
with more number of parameters, [4] is used in neural network for classifying. In this study a Diabetes dataset is
analysed using Neural Network approach. To increase the efficiency of the classification process parallel
approach is also adopted in the training phase. Primarily the classification of data is done to know the disease
stage or finding disease.
In the control of diabetes and in the dosage unit prescription, i.e., the so-called “artificial pancreas,”
modularity allows for the step-wise introduction of (and regulatory approval for) algorithmic components,
starting with subsystems for assured patient safety and followed by higher layer components that serve to
modify the patient’s basal rate in real time as proposed in [5].In [6], a neural network model has been developed
to predict the level of glucose for patients with Type 1 diabetes. However, the hardware implementation has not
been carried out. A feed forward neural network model based glucose prediction has been developed in [7].
However the design was not analyzed in terms of hardware resources. In [8], Cobelli’s glucose-insulin model
has been realized for patients with Type 1 diabetes. But the design is not analyzed in terms of hardware
resource, power consumption and speed. So far no work on the hardware implementation on the effective
diagnosis of diabetes mellitus on FPGA has been reported. To overcome the above drawbacks, this work aims at
the hardware implementation of effective diagnosis of diabetes mellitus on FPGA using neural network model is
proposed.
This work is divided into two modules. To ensure the correctness of the study, Diagnosis of Diabetes
Mellitus, the insulin blood level and the insulin dosage required prescription is verified using Matlab based on
neural network. Then the second part of the work focuses on the Hardware Implementation of the Diagnosis of
Diabetes Mellitus on FPGA.
Section 2 describes the neural network implementation of the proposed work using Matlab and displays
whether the patient is diabetic or not. Section 3 explains the calculation of Insulin level in the blood and the
Insulin Dosage Prescription for diabetic patients. Section 4 describes the hardware implementation of the
proposed work on FPGA. Section 5 shows the simulation result and synthesis report. Section 6 concludes the
work.
Neural Networks (NN) are parallel computational models comprised of densely interconnected
adaptive processing units called neurons or processors or nodes. NNs have the ability to learn, generalize and
organize data. They are useful in classification, function approximation and generally in complex problems,
which do not require accurate solution. They can identify patterns in data once they are exposed to similar data
beforehand. This distinguishes neural networks from other computing programs that simply follow instructions
in a fixed sequential order.
520 https://sites.google.com/site/ijcsis/
ISSN 1947-5500
International Journal of Computer Science and Information Security (IJCSIS),
Vol. 15, No. 1, January 2017
521 https://sites.google.com/site/ijcsis/
ISSN 1947-5500
International Journal of Computer Science and Information Security (IJCSIS),
Vol. 15, No. 1, January 2017
condition is whether diabetic or not is stored. Finally the neural network is trained to get the required output that
is, indicating whether the patient is diabetic or not.
2.3Training the neural network model
Using Multiplayer Perceptron (MLP) model in MATLAB the neural network is trained. The training
methodology is described below: The inputs are fed into the input layer and get multiplied by interconnection
weights as they are passed from the input layer to the first hidden layer. Within the first hidden layer, they get
summed then processed by a nonlinear function using the hyperbolic tangent. As the processed data leaves the
first hidden layer, again it gets multiplied by interconnection weights, then summed and processed by the second
layer. Finally the data is multiplied by interconnection weights thenprocessed one last time within the output
layertoproducethe neural network output. The MLP and many other neural networks learn using an algorithm
called back-propagation. With back-propagation, the input data is repeatedly presented to the neural network.
Witheachpresentationthe outputof the neuralnetwork is comparedto the desired output and an error is computed.
This error is then fed back (back-propagated) to the neural network and used to adjust the weights such that the
error decreases with each iteration and the neural model gets closer
to produce the desired output.Thissequence ofevents isusuallyrepeated until an acceptable error
has been reachedor until the networkno longerappearsto be learning. By doing this repeated training high level
of accuracy is obtained.
Figure2.Input database
In the above figure row1 indicates Fasting Blood Sugar (FBS), row2 represents Post Prandial Blood Sugar
(PPBS), row3 indicates Urea, row4 representsCreatinine and row5 indicates Haemoglobin. Figure 3 represents
the target database.
522 https://sites.google.com/site/ijcsis/
ISSN 1947-5500
International Journal of Computer Science and Information Security (IJCSIS),
Vol. 15, No. 1, January 2017
523 https://sites.google.com/site/ijcsis/
ISSN 1947-5500
International Journal of Computer Science and Information Security (IJCSIS),
Vol. 15, No. 1, January 2017
524 https://sites.google.com/site/ijcsis/
ISSN 1947-5500
International Journal of Computer Science and Information Security (IJCSIS),
Vol. 15, No. 1, January 2017
525 https://sites.google.com/site/ijcsis/
ISSN 1947-5500
International Journal of Computer Science and Information Security (IJCSIS),
Vol. 15, No. 1, January 2017
Figure 10.Simulation result of the hardware implementation of the diagnosis of diabetes mellitus
4.2 Hardware Implementation of Neural Networks
The I/O pins of the Spartan 6 kit is configured for the input switches for both the inputs, Fasting Blood
Sugar and Post Prandial Blood Sugar and for the output LED, LED1.Pin assignments are shown in figure 11.
526 https://sites.google.com/site/ijcsis/
ISSN 1947-5500
International Journal of Computer Science and Information Security (IJCSIS),
Vol. 15, No. 1, January 2017
4.3Output Display
On feeding the binary inputs to the switches, the output LED glows.If the patient is diabetic, LED is
ON, else, if the patient is non-diabetic, LED is in OFF state. Figures 13 and 14 show the implementation result
on Spartan6 FPGA.
Figure 15. Power Consumption of the Hardware Implementation of the effective diagnosis of Diabetes Mellitus using Neural Network
From the figure it is inferred that the total amount of power dissipated is 0.03359W which is less than 1W. This
shows the merit of the proposed hardware implementation.
5. CONCLUSION
The effective diagnosis of Diabetes Mellitus and Insulin dosage is observed in MATLAB and its
hardware implementation is observed in Spartan 6 FPGA kit coded in Verilog module.In the future, this
effective diagnosis technique and its module can be incorporated in glucose meters like AccuChek, One Touch
.etc. The conventional glucose meter takes the drops of blood in the diabetes test strip, process them and display
the Blood Sugar Value. If this neural network module is incorporated, the diagnosis of whether the patient is
suffering from diabetes mellitus and the Insulin Dosage Level Prescription can be made to display on the screen.
This combination takes the medicine world to the next level in the cost effective diagnosis of diseases and its
early prevention.
527 https://sites.google.com/site/ijcsis/
ISSN 1947-5500
International Journal of Computer Science and Information Security (IJCSIS),
Vol. 15, No. 1, January 2017
References
1. Manoj Kumar, Anubha Sharma and SonaliAgarwal, “Clinical Decision Support System
for Diabetes Disease Diagnosis Using Optimized Neural Network”, in Conf, May 2014,
Students Conference on Engineering and Systems (SCES), pp. 1 – 6.
2. Jorge C. Romero-Aragon, Edgar N. Sanchez and Alma Y. Alanis, “Glucose level
regulation for diabetes mellitus type 1 patients using fpga neural inverse optimal control”,
IEEE Symposium on Computational Intelligence in Control and Automation (CICA),
December 2014.
3. B. S. Leon, A. Y. Alanis, E. N. Sanchez, F. Ornelas-Tellez, and E. Ruiz, “Inverse
optimal neural control of blood glucose level for type 1 diabetes mellitus
patients”,Journal of the Franklin Institute, 2012, 349, pp.1851–1870.
4. M. A. Gonzalez-Olvera, A. G. Gallardo-Hernandez, Y. Tang, M. C.Revilla-Monsalve,
and S. Islas-Andrade, “ A discrete-time recurrent neuro-fuzzy network for black-box
modeling of insulin dynamics”, International Journal of Neural Systems, 2010,
Vol.20,No.2, pp.149–158.
5. G. De Nicolao, S. Del Favero, M. Breton, C.D. Man, E. Renard,H. Zisser, F.J. Doyle,
C. Cobelli, and B.P. Kovatchev, “Modular Closed Loop control of Diabetes”,IEEE
Transactions on Biomedical Engineering,Nov 2012, Vol.59,No.5, pp.2986–2999.
6. S. M. Pappada, B. D. Cameron and P. M. Rosman, “Development of a Neural Network
for Prediction of Glucose Concentration in Type 1 Diabetes Patients”,Journal of
Diabetes Science & Technology, Sep 2008, Vol. 2, No. 5, pp.792 – 801.
7. S. M. Pappada, B. D. Cameron, P. M. Rosman, R. E. Bourey, T. J. Papadimos, W.
Olorunto and M. J. Borst, “Neural network-based real-time prediction of glucose in
patients with insulin-dependent diabetes”,Diabetes Technology Therapeutics, Feb 2011,
Vol.13, No. 2, pp. 135-141.
8. P. Li, L. Yu, Q. Fang and S. Lee, “A simplification of Cobelli’s glucose–insulin model
for type 1 diabetes mellitus and its FPGA implementation”,Medical & Biological
Engineering & Computing, Oct 2016, Vol. 54, No. 10, pp. 1563 – 1577.
528 https://sites.google.com/site/ijcsis/
ISSN 1947-5500