You are on page 1of 6

Development of a Low-Cost Insulin Infusion Pump: Lessons Learned from an

Industry Case

Luiz E. G. Martins, Hanniere de Faria, Lucas Dulce E. Casarini and Juliana Almada Colucci
Vecchete, Tatiana Cunha and Tiago de Oliveira Paulista Medical School
Institute of Science and Technology Federal University of São Paulo
Federal University of São Paulo São Paulo, Brazil
São José dos Campos, Brazil {dulce, colucci}@nefro.epm.br
{legmartins, hanniere.faria, lucas.vecchete, ts.cunha,
tiago.oliveira}@unifesp.br

Abstract—In the last 30 years there have been great advances of 15, and approximately 20% before the age of 5. This
in technology for diabetes treatment, which facilitated the means that these people will live with the disease for most
management of the disease and its complications. Among the of their life, increasing the risk of development of chronic
advances we can mention the development of insulin infusion complications due to a poor glycemic control. Therefore, the
pump. However, diabetes treatment using the insulin pump
cost to public health system and the society tends to increase
still remains expansive in Brazil, especially because the device
and its accessories are imported. The aim of this paper is to in coming years, unless the public policy provides the
report a prototype development of a low-cost insulin infusion possibility to suitable glycemic control for the population
pump aimed to benefit Brazilian people suffering with Diabetes [1, 2]. It is known that the patient with diabetes requires a
Mellitus type 1. The prototype development is a result from a strict monitoring and control. Currently, the Brazilian
cooperation between Brazilian academy and industry. We Information System for Basic Care (SIAB) performs
comment the development of such a prototype and the lessons monitoring of about 1.2 million patients, especially the
learned obtained from it. patients with DM1 due to disease severity. It is important to
say that poor glycemic control in the first five years of
Keywords-insulin infusion pump; diabetes mellitus;
embedded systems; safety requirements.
evolution of diabetes seems to play an important role in the
development of vascular complications [3]. Diabetes
Control and Complications Trial (DCCT) demonstrated that
I. INTRODUCTION the intensive treatment using insulin, applying daily
International Diabetes Federation´s (IDF) most recent multiple doses or by using continuous subcutaneous
study estimates that 8.3% of adults - 382 million people - infusion pump, when compared to the conventional
have Diabetes Mellitus and by 2035 this will rise to 592 treatment, provided a significant reduction in the incidence
million, posing the disease as one of the most challenging and progression of microvascular complications [4, 5].
health problems of the 21st century. Yet, with 175 million From the late 20th century there have been great
of cases currently undiagnosed, a vast amount of people advances in technology for diabetes treatment, which
with diabetes are progressing towards complications facilitated the management of the disease and its
unawares [9]. Different regions are being affected to widely complications. Among the advances we can mention the
differing degrees, and according to IDF it is estimated that development of insulin infusion pump. Although this device
number of people with Diabetes Mellitus in Brazil, between is largely used in the United States since 1970, in Brazil
20-79 years, is around 11.9 million. The most common only fifteen years ago treatment using insulin infusion pump
forms of the disease are classified as type 1 and 2. The type started to be prescribed more frequently. The goal of such a
1 Diabetes Mellitus (DM1) is characterized by severe therapy is to simulate what happens in the body of healthy
deficiency in insulin secretion caused by the destruction of individuals by keeping the delivery of insulin constant for
beta cells in the pancreas, that are responsible for the 24 hours, therefore maintaining normal blood glucose
hormone secretion, generated by autoimmune process or concentration between meals and in feeding times.
unknown cause. The type 2 Diabetes Mellitus is Currently there are in the market few portable insulin
characterized by insulin resistance combined with pumps, controlled by embedded computer systems, however
inadequate secretion, it is the most common type of disease, these insulin pumps have a high cost of acquisition in Brazil
occurring in 90% of the cases in developed countries [1]. since all available models are imported. Considering costs
A Brazilian nationwide multicenter study recently of about US$ 4,500 the acquisition of the insulin pumps is
revealed worrying data about the situation of DM1 in Brazil. prohibitive for most of the Brazilian people.
It has followed 3,591 patients of 20 different Brazilian The aim of this paper is to report a prototype
cities, in five regions, and only 15% of diabetics have their development of a low-cost insulin infusion pump aimed to
blood glucose under control. Also according to the study benefit Brazilian people suffering from DM1. The prototype
most of the patients, 71.5% were diagnosed before the age development is a result from a partnership between
Brazilian academia and industry. The remainder of this has been developed in cooperation with the Brazilian
paper is organized as follows. In Section 2, we present companies DeltaLife (http://www.deltalife.com.br) and CNA
background and comment related works. In Section 3, we Desenvolvimento (http://www.cnadesenvolvimento.com.br),
present an overview of the prototype that is under which are companies in the area of electronic medical
development in cooperation with Brazilian industry. devices and mechanical design, respectively. It was
Lessons learned from the industry case study is discussed in identified a gap in Brazilian market that have motivated
Section 4. In Section 5, we present the conclusions and industry and academia to join forces for such a
further works. development.
Participated in that phase of the project six people: one
II. BACKGROUND AND RELATED WORKS mechanical engineer – with more than 5 years of industry
Insulin infusion pumps are useful automated instruments experience; one electronic engineer – with more than 10
for treatment of diabetic patients, specifically for the years of industry experience; one requirements engineer –
management of DM1. This kind of automated pump has the with more than 10 years of experience in industry and
proposal to perform as the human pancreas does, delivering academia; two software engineers with two years of
insulin according to the metabolism needs, maintaining industry experience; and one doctor with more than five
blood glucose in normal range. Furthermore, insulin pumps years of experience in diabetes treatment using insulin
help diabetic people simplify their routine that relies on infusion pump. Both mechanical and electronic engineers
manual control of blood glucose levels and a manual insulin had high experience in embedded systems development.
application with a syringe, substituting the conventional The requirements engineers and software engineers had few
treatment by a device that can be adapted to different experience in embedded systems.
lifestyles, avoiding inconveniences and ensuring greater
B. Prototype Requirements
flexibility.
Based on a field research conducted in the preliminary In the following subsections we present the results from
step of this research, observing different pumps from the requirements engineering performed to the proposed
market, it was noticed that the insulin pumps follow a prototype. The requirements were divided into hardware,
pattern of operation, which can be described as a generic functional and safety requirements.
model of insulin infusion pump. In Yi Zhang et al. [6] a
generic model for insulin infusion pump is presented. The 1) Hardware Requirements
generic model consists of an user interface using input and The pump must have a power supply, which is a non-
output devices to communicate with the patients, such as rechargeable battery easy to change. The insulin reservoir is
LCDs, buttons, sound alerts; a battery that powers the whole a common syringe found in the regular market, and the
system; a unit responsible for all data processing, wherein whole case of the prototype was designed to fit such
that unit is the entire circuit composed mainly by a syringe, considering that we are developing a low-cost
microcontroller or microprocessor, and it is responsible for insulin pump. A stepper motor with sufficient precision to
all infusion calculations, as well as the storage of user- ensure the reliability of the infusion process, connected to a
entered infusion data; an infusion mechanism, composed by mechanical system with an axis that will move the syringe
a motor, syringe and plunger, catheter and insulin reservoir. plunger. To get the accurate control of the stepper motor a
According to the American Diabetes Association, driver is required. The communication between system and
currently the insulin pumps cost from $ 4,000 to $ 8,000 user is done via a Liquid Crystal Display (LCD), four
with just few manufacturers ruling the market around the buttons, and a buzzer. All functionalities of the system are
world. Prices in Brazil become more expensive due to controlled by a low power consumption microcontroller
import taxes, and combined with currency conversion, the from the MSP430 family [7].
value of an infusion pump can reach more than 22 Brazilian
minimum wages. The advantages of each pump and its 2) Functional Requirements
manufacturer vary in proportion to the price. For example, The main functional requirements defined to the
while there is a pump with a removable battery and reduced prototype are described as follows:
interface quality, there are pumps with the latest interface • Information Exhibition: the pump must expose on its
with support for USB battery charging with much higher LCD approximate battery levels, insulin amount, time,
price. malfunction alarm, and description of motor usage
status (see Figure 2).
PAREI III. INDUSTRY CASE: PROTOTYPE OF A LOW-COST • Check numeric data of battery levels and insulin: user
INSULIN INFUSION PUMP has the option to check the status of the battery and
A. Context insulin on a separate screen for more precise analysis.
The industry case study reported in this paper was • Configure and enable infusion profiles: user can setup
conducted during the initial phase of a project to develop a five different basal infusion profiles for each 24 hours.
prototype of a low cost insulin infusion pump. That project Any time user may redefine the stored profiles.
• Configure and enable quick infusion (bolus infusion): performed analyzing slack and tolerances, the engine
the user can setup the amount of insulin that he/she can be damaged.
wants to infuse at the moment. • Motor does not stop when a fault occurs: if the engine
• Enable the insulin reservoir exchange: the user will does not stop, a mechanical key moved by induction
have a step by step explanation on the screen of how to may reduce the problem once there is still power
change the insulin reservoir. supply running.
• Critical alerts: for each problem, such as lack of • Fatigue or breach of mechanical parts of the motor;
battery or lack of insulin, the pump must use audible • Buzzer with unusual behavior: another difficult
and visible alerts. problem to be avoided, the most conventional way is
shielding physical shocks, only allowing the passage of
3) Safety Requirements sound.
Considering that a insulin infusion pump is a safety- • Jammed button: the button issues implies in their
critical system, additional care was taken to ensure safety mechanical precision, so one way to avoid this is to
requirements, which were organized into the following implement a button damping system.
hazard categories [6]: operational, hardware and software • Key bounce: a good circuit design and a correct
hazards. The hazard categories are described as follows. installation of the buttons may prevent this kind of
failure.
a) Operational Hazards • Failure of the battery sensor: a battery sensor is
Failures related to operational hazards may occur while included in the microcontroller, if not, it can be
users are operating the pump due to lack of attention or poor implemented on programming based on empirical
information to the user. The failures in this category are: cases, providing safety with the battery life time.
• Air in the catheter: presence of air in the catheter • Real-Time Clock (RTC) late or early.
decreases the amount of infused insulin, and may • Failure in the communication channels of electronic
cause under dose situation. components: to avoid this defect, a refined circuit
• Catheter disconnected or perforated: catheter design should be made and tested in different
improperly connected or punctured may cause environments.
decreasing of the expected amount of infused insulin • Insulin reservoir broken, cracked or punctured: as the
causing under dose situation. reservoir is exchangeable, it will be subject to defects,
• Reversed insulin flow: this situation may cause under but their exchange is performed easily, thus becoming
dose situation. more an operational problem. Greater investment in
• Excessive requests of bolus: excessive infusions may material used could be done.
cause overdose.
• Configuration of very high values for infusion (basal c) Software Hazards
rate or bolus) may cause overdose. Failures related to software hazards can be caused by
• Configuration of very low values for infusion (basal defects introduced during embedded software development.
rate or bolus) may cause under dose. The main failures in this category are: sending incorrect
• Empty insulin reservoir: with empty reservoir, the messages to the user; incorrect step calculation for the
infusion is not performed and may case under dose. infusion (basal rate or bolus); wrong size variables; data
concurrency; infinite looping; incorrect navigation between
b) Hardware Hazards option menus; threshold of ill-defined sensors; incorrect
conversion of the sensor values; reading incorrect values of
Failures related to hardware hazards can be caused by
buttons. In order to increase the system safety, all these
defects during the pump manufacturing, or handling of the
hazardous situations must be avoided and they were taken
pump by the user. The main failures identified in this
into account during the prototype development.
category are the following:
• Fault in microcontroller: as the microcontroller is the C. Hardware Design
"heart" of the pump it is mandatory to ensure a good The whole structure was designed from a marketable
protection of the chip against external environment. syringe, which is an important issue in the development of
• Failure in nonvolatile memory: one possible way to such a low cost system. The case of the prototype is
avoid this failure is to create a parallel storage module. 109.3mm long, 73mm wide and 25mm thick, tailored to a
• Failure in volatile memory: once volatile memory is syringe 3mL. Figure 1 shows three views of the developed
present on the microcontroller, protecting the chip is prototype taking into account the adopted syringe.
necessary to avoid such a failure.
• Motor does not operate as instructed: as most
mechanical systems, if the calculations are not
first state of the infusion pump, that is the initial view to the
user. After that, this module load from the flash memory the
basal and bolus profiles already saved by the user, the
information about the quantity of insulin infused and the
number of steps that the motor performed. Therefore, the
system is able to calculate the insulin remaining on the
reservoir and the position of the syringe plunger. If there is
Figure 1. Overview of the prototype; (b) Case and insulin reservoir; (c) an active profile, the module configures it to the current
Electronic schematics with control buttons and LCD. hour and finally starts the timer.
The mobility of the syringe plunger is made from a
threaded spindle which will move because of the stepper
motor, which is connected to the spindle through a gear
transmission. Another aspect of hardware that needed to be
thought, that had more importance in the aspect of HCI, was
the graphical user interface. The prototype graphical
interface is based on a custom LCD 21mm in height and
40mm in width. Thus, the information shown on the LCD,
for each pre-defined behavior of the pump, would be Figure 3. Overview of the software architecture.
controlled through a combination of outputs using the
properly segments. MSP430FG439 has two segments (A and B) in flash
memory, one with 128 bytes of space where the information
will be preserved to avoid any problem in case of power loss
of the infusion pump, and every time that some information
is updated it will be kept at one of the segments.

2) Timer Module
The timer module is designed to count hours, minutes and
seconds andit is also responsible for calling the function that
sets the infusion amounts in the current hour, and the
Figure 2. Layout of the LCD. function that checks if it is necessary to infuse insulin in
every second. The timer is started when the function
The design of the LCD had to attend the hardware “configure_timerA” is called by the Main Module and uses
requirements of the microcontroller used, which was the the TimerA interruption to fires every ½ second.
MSP430FG439. This microcontroller with a 16-bit RISC
architecture has an ultralow-power consumption, consuming 3) Business Module
300 µA in active mode and 1.1µA in standby mode. It also The business module contains the functions and rules that
has several features (see datasheet supplied by Texas enable the infusion according to the basal and bolus profile,
Instruments), including an integrated LCD driver with it manages the rules to save information into flash memory.
support for 128 segments. Therefore, the LCD is designed This module is also responsible for updating the information
to have up to 128 segments, the layout of the LCD proposed of the infused amount and quantity remaining in the
for the prototype is presented in Figure 2. The stepper motor reservoir. The functions of this module are explained as
chosen to the initial tests was the Portescap P010-064, with follows. The function configure_current_hour() is called to
typical holding torque of 1.8 mNm, step angle of 15 , 10 configure the intervals between the infusions using a
mm in diameter, and weight 9.0g. preconfigured quantity of insulin (0.5 unit), in each hour
D. Software Architecture that the Timer Module counts. This function uses the
quantity of the insulin configured to current hour based on
The software of the infusion pump is structured the following equation:
modularly, allowing functions to be easily modified and
improved. Basically, the software architecture was divided qtd_infusion_hr = rem_insulin/qtd_min_infusion (1)
interval_infusion_hr = rem_seconds_hr/qtd_infusion_hr (2)
into 6 modules: motor, business, timer, display, state_view
and main. Example: let's assume that the infusion pump was turned
1) Main Module on in 5:15:30 am, in other words, 2.670 seconds remaining
The main module is responsible for initializing all the to complete the hour. In addition let it be considered that it
required parameters, preparing the infusion pump to start its had already infused 5 units from the originally 20 units
normal operation. Firstly, this module sets the ports that will configured previously to this hour.
be used, active the LCD, initialize the variables and start the
qtd_infusion_hr = 15/0.5 = 30 (30 infusions of the 0.5 units has to • alarm(bool mode): enables “alarm” symbol”.
occur up the remaining hour)
interval_infusion_hr = 2670/30 = 89 (every 1 minute and 29
6) State View Module
seconds an infusion of 0.5 units has to occur up the remaining
hour)
The state_view module takes the control of the states that
the infusion pump can achieve, in other words, it is the
Thus, the counter is set to count up to 89 seconds, where representation of the state that GUI and the internal
the function verify_infusion() checks every second whether processing can assume. Depending on the user action, the
or not the counter has reached 89 seconds and, if so, sets the infusion pump can give a different action to a button to
flag_basal_infusion() and resets the count to the next allow the user to interact with different functions of the
infusion. The function activate_infusion() is called in an pump. The states that the infusion pump can achieve are
infinite loop once this function could be a long operation modelled in UML’s states diagram, as presented in Figure 4.
and can’t be called by an interruption. This function checks
if the flag_basal_infusion() and flag_bolus_infusion()
profile was fired. If so, the function adds the amount of
basal and/or bolus infusion to be infused, updating in the
flash memory the information about insulin of the reservoir
and the infused current hour.

4) Motor Module
Responsible to send commands to the stepper motor, the
motor module contains the functions that apply the right
voltage sequences according to the stepper quantity and
frequency required. This module also contains the
parameters of the stepper motor, such as the relation
between steps and rotation degree, the frequency for the Figure 4. Insulin pump states controlled by software.
application of steps, the sequence of steps, and the rotation
degree corresponding to deliver a minimal quantity of IV. LESSONS LEARNED
insulin (0.1 insulin unit).
In this section we describe three lessons learned from the
5) Display Module development of the low-cost insulin infusion pump
The display module is a library designed to control the LCD prototype.
present in Figure 3. We created functions to hide the
complexity to control the display; the programmers just A. Insulin Reservoir
write on the display, call the corresponding functions Issue: Low cost is a very important requirement in this
according to what is necessary to show. The functions that project. During the prototype development we kept in mind
control the display are explained as follows: the necessity to develop a low-cost insulin infusion pump,
• upper_number_float(float num): this function receives both considering the components and the maintenance of the
a float number to display in the upper_segment; final product. During the insulin pump based DM1
• units(bool mode): enables symbol “U”; treatment patients need to change insulin reservoir each two
• hours (bool mode): enables symbol “H”; days on average. Therefore, the reservoir cost has a strong
• percent (bool mode): enables symbol “¨%”; impact for the patients.
• basal(bool mode): enables “graphics” symbol to Adopted solution: Considering the strong impact that
indicate basal infusion; insulin reservoir has over the maintenance cost of the insulin
• bolus(bool mode): enables “thunder” symbol to pump, we decided that the reservoir should be a regular
indicate bolus infusion; syringe found in the market. This decision drove the whole
hardware design, impacting the definitions about the pump’s
• lower_cout(char string[]): this function writes a string
case and the LCD dimensions, the stepper motor to push the
on the text display;
plunger, the power supply necessities, the size of the
• clock(bool mode): enables “clock” symbol;
electronic schematics and so on. The adopted syringe was
• battery_display(int amount): this function displays 1/3, the model BD PosiFlush™ 3mL. Such solution seems
2/3, 3/3, according to the battery charge; adequate because this syringe adopts the same diameter of
• reservoir_display(int amount): this function displays the standard syringe 10 mL, which keeps it short enough for
1/4, 2/4, 3/4, 4/4, according to the reservoir capacity; pump’s case design and demands low torque to push the
• stop(bool mode): enables “stop” symbol; plunger. At the moment, the unit cost of this syringe is
• malfunction(bool mode): enables “malfunction” about US$ 0.50 into the Brazilian market. Taking into
symbol; account the safety issues, we are considering to offer pre-
filled syringes, however we are still analysing the involved V. CONCLUSION
costs. We presented in this paper the results from a real project
B. Calculation of the Insulin Dilution to the Basal Profile of prototype development of a low-cost insulin infusion
pump. The prototype is currently at the test stage, we are
Issue: For such issue we had to consider two main testing the user interface and the precision of the insulin
functionalities: calculation of the interval between basal delivery by the stepper motor. We also are analyzing the
infusions and calculation of the steps for the motor certification requirements established by ANVISA
execution. The calculation of the interval has the (Brazilian agency of health surveillance). The accuracy of
responsibility to dilute the amount of insulin configured in insulin pumps is of great concern, especially in cases with
the corresponding basal profile according to the current low infusion rates, where they can limit glycemic variability
time. A series of twenty tests was performed, each one with and unexplained hypo- or hyperglycemic events unawares
duration of one hour and an amount of insulin required (the [8]. So, the next step of the prototype development will start
minimum amount of insulin configured in the system is 0.1 with in vitro studies, using a continuous microweighing
unit). With the test results it was verified that when the method to measure water delivery, and evaluate the
calculated interval was not an integer value, the number of accuracy of our prototype. Based on the results of laboratory
infusions returned was greater than it should be. The reason accuracy study, we will move for the next step, the in vivo
for that is the way the required insulin is diluted through one study to evaluate the reliability of the device. To do so, we
hour, since the dilution method attempted to reach the best intend to use the most common animal model of human
dilution possible. diabetes, streptozotocin-induced diabetes in the rat. This
Adopted Solution: when the calculated interval is a will be an useful model to test the efficacy and the precision
float value (resulting in more infusions in some cases) we of our system for control of blood glucose and amelioration
could just consider the integer part from the calculated of diabetic complications.
infusion interval. When the integer part of calculated
interval is considered, the interval is smaller than it should ACKNOWLEDGMENT
be (which leads to more infusions), which actually is not an This work was funded by FAPESP (process number
issue, only by limiting the amount of insulin infused into the 2010/511904-9).
period considered. REFERENCES
C. LCD Design [1] M. B. Gomes et al., “Prevalence of adults with type 1 diabetes who
meet the goals of care in daily clinical practice: A nationwide
Issue: For the development of the prototype during the multicenter study in Brazil,” Diabetes Res Clin Pract, 2012. 97(1): p.
early steps, an initial model implemented on a robust 63-70.
development kit was built, using a graphic liquid crystal [2] M. B. Gmes et al., ”Economic status and clinical care in young type 1
display (GLCD). GLCD is flexible to program since it is diabetes patients: a nationwide multicenter study in Brazil,” Acta
Diabetol, 2012.
based on an array of pixels. When we started the LCD
[3] The Diabetes Control and Complications Trial/Epidemiology of
design for the prototype, a problem related to the hardware Diabetes Interventions and Complication (DCCT/EDIC) Study
emerged, which was the number of segments supported by Group, “Intensive diabetes treatment and cardiovascular disease in
the LCD driver (128 segments). It was necessary to design a patients with type 1 diabetes,” N Engl J Med. 2005; 353:2643-53.
display interface that should be able to respond to the users [4] The Diabetes Control and Complications Trial Research Group, “The
in the same way it was meant using GLCD, but with a effect of intensive treatment of diabetes on the development and
progression of long-term complications in insulin-dependent diabetes
saving of images and symbols to meet the LCD number of mellitus,” N Engl J Med. 1993; 329(14):977-86.
segments. [5] M. Svensson et al., “Early glycemic control, age at onset, and
Adopted Solution: Initially the display was set to offer development of microvascular complications in childhood-onset type
time and date display, the support symbols, the numbers 1 diabetes: a population-based study in northern Sweden,” Diabetes
Care. 2004; 27:955-62.
display, and the text display having 12 characters. This
setting exceeded the microcontroller pins, which pushed us [6] Y. Zhang, P. L. Jones, and R. Jetley, “A Hazard Analysis for a
Generic Insulin Infusion Pump,” Journal of Diabetes Science and
to do some modifications. The date display was removed, Technology. Vol. 4, Issue 2, March 2010.
and the time would be displayed at the text display. The text [7] J. H. Davies, “MSP430 Microcontroller Basics,” 1st ed., Elsevier:
display would be formed with up to 5 letters, (positions in Newnes, 2008.
the LCD), and phrases and words shown in the pump [8] S. Borot, S. Franc, J. Cristante, A. Penfornis, P. Y. Benhamou, B.
display would become abbreviations, as explained in the Guerci, H. Hanaire, E. Renard, Y. Reznik, C. Simon, G.
Charpentier; Diabeloop Study Group, “Accuracy of a new patch
user manual. In fact, together with the insulin values, the pump based on a microelectromechanical system (MEMS) compared
support symbols are the most important elements to be to other commercially available insulin pumps: results of the first in
shown into the pump display. With this modification it was vitro and in vivo studies,” J Diabetes Sci Technol. 2014 Nov;
possible to design the layout of the LCD using 128 pins (as 8(6):1133-41.
shown in Figure 2). [9] Federation, I.D., IDF Diabetes Atlas. Belgium: International Diabetes
Federation, 2013.

You might also like