Software program can predict blood sugar crashes, spikes for patients with type 1 diabetes 

February 26, 2014 by Sara Lajeunesse
Credit: Christina Ullman

The woman paced back and forth outside the airport, waiting anxiously for her husband to pick her up. She called him once, twice, three times. An hour later—at 7:00 p.m.—her phone finally rang.

"Where are you?" she demanded.

"It's only 6:00 a.m.," he mumbled. "I have plenty of time to pick you up."

As the woman had feared, her husband, who has type 1 diabetes, had spent the entire day in a kind of hypoglycemic—or low blood sugar—stupor.

This type of scenario is not uncommon among the world's 20 to 30 million people with , a disease in which the body does not produce insulin. These people must constantly monitor and control their blood glucose levels, adjusting their insulin with daily shots or an insulin pump to avoid crashes or spikes that, when severe, can be fatal.

Yet even the most sophisticated available glucose monitoring systems cannot adequately warn people that they are about to become hypoglycemic, especially while they are asleep, says Frank Schwartz, professor of endocrinology and J.O. Watson Chair for Diabetes Research at Ohio University. Those systems measure glucose levels in the fluid underneath the skin, which may be anywhere from 8 to 15 minutes behind actual levels.

"A patient who has hypoglycemia unawareness could already be unconscious before the sensor's hypoglycemia alarm tells them they are too low," he says.

Although these monitors collect nearly 300 data points per day on the patients who use them, analyzing all of that data to make treatment recommendations has become nearly impossible for physicians such as Schwartz, who manages some 400 to 500 patients.

A solution to the problem came to Schwartz from an unlikely place: his oldest son Scott, a music producer.

"One day I was watching him merge 60 tracks of music into a single recording using a computer program called Pro Tools," he recalls. "I thought the music patterns resembled glucose patterns and that there must be a way to do this for diabetes. So I came knocking on the door of the computer scientists and found Cindy."

Cindy Marling, an associate professor of computer science, had a track record in building artificially intelligent software systems to help physicians manage data and follow trends in their patients' health. Schwartz, Marling, and Jay Shubrook, associate professor of family medicine, joined forces to build the 4 Diabetes Support System (4DSS), an experimental computer program that automatically merges and analyzes patient data and recommends personalized therapeutic adjustments for patients. The software could detect patient problems only after they occurred, however.

So the researchers approached Razvan Bunescu, a machine learning expert and associate professor of computer science, to create a revised version of the program that could warn people up to an hour in advance of imminent changes in their blood , which would allow plenty of time for them to take preventative action.

With funding from the National Science Foundation, the team has created a software program that uses support vector regression, a time series forecasting technique previously used to predict stock market prices and utility loads. Specifically, the regression models are trained for each patient using current and past data about his or her , insulin dosages, food intake, and exercise. The longer a person uses the program, the smarter it gets.

"The computer should be able to learn patterns from patient data and use them to make predictions itself," Bunescu explains.

When the team first tested the software, it fared about as well as a physician in predicting glucose changes at 30 and 60 minutes. But after additional development of the technology, "we are now outperforming the experts," he reports.

"The neat thing about this software is that it has the ability to learn how individual patients respond to life events," Schwartz says. "So if, for example, you're ready to go to bed and you want to know whether you've had enough snack to keep your glucose from going low until morning, the program can run a simulation and tell you if you need more or less food."

In another example, if a user tells the system that he or she will go mountain biking "and you historically had become hypoglycemic two hours into your ride, the system would make a note of it," he says. "The next time you go riding the system would remind you to either eat plus reduce your basal insulin rate or stop your pump or whatever works best for you. In addition, it could alert you during the exercise if it determined that you were going to go too low in spite of the earlier suggestions. It could almost be a continuous mentor—or nag—giving safety reminders and helping with glucose control."

Another benefit of the software program, according to Marling, is that it will enable patients to play "What if?" games. Patients can ask, 'What if I have this chocolate sundae right now? What do I need to do to compensate?' The system can predict for them how their bodies will respond and recommend a dose of insulin.

Marling added that it's important to keep in mind that a computer is not licensed to practice medicine and that the FDA will not allow a computer it hasn't approved as a medical device to make therapeutic interventions.

"We see this product making recommendations that an advanced practice nurse or other diabetes specialist would then have to approve," she says.

Now in its fourth clinical research study, the team has added a smart phone interface to make data logging even easier for patients. They hope this feature will help overcome one of the limitations of the program: human error.

"Some of the patients are very accurate (about logging data), but others forget what they ate," Bunescu says. "So data may be missing or the time when they ate may be wrong."

The researchers now are investigating the option of either licensing the software to a company or of creating their own company. Although they currently have some software ready to be commercialized, they plan to continue to improve it in the years to come.

"Diabetes is so complex, and the more we work on it, the more ideas we come up with," Marling says. "But we can't wait for the ultimate system; we have to use whatever we have now because it can really improve people's lives."

Schwartz is particularly excited about unveiling the software program.

"I've been taking care of patients for over 35 years and I have seen lots of bad things happen to patients with diabetes that theoretically are all preventable," he says. "If I could get this program into a useable form that could be used by patients throughout the world, I'd be pretty satisfied."

Explore further: Sensor-augmented insulin pump therapy reduces rate of severe hypoglycemic events

Related Stories

Sensor-augmented insulin pump therapy reduces rate of severe hypoglycemic events

September 24, 2013
Use of an insulin pump with a sensor that suspends insulin delivery when blood glucose falls below a set threshold reduced the rate of severe and moderate hypoglycemia among patients with type 1 diabetes and impaired awareness ...

Blood sugar monitoring system approved for children

February 4, 2014
(HealthDay)—U.S. Food and Drug Administration approval of the Dexcom G4 Platinum Continuous Monitoring System has been expanded to include children with diabetes aged 2 years to 17 years, the agency said.

Computer program aids blood-sugar control among critically ill

June 25, 2012
A computer-software program more effectively controlled blood-sugar levels among critically ill patients than nurse-directed care did, according to the first large clinical trial of its kind. The results to be presented at ...

Dual-hormone artificial pancreas is a step closer for patients with Type 1 diabetes

January 28, 2013
For patients with type 1 diabetes, a dual-hormone artificial pancreas system (also known as a closed-loop delivery system) improved the control of glucose levels and reduced the risk of hypoglycemia compared with conventional ...

Low dose steroids linked to diabetes

February 11, 2014
(Medical Xpress)—Anti-inflammatory steroids are known to increase the risk of diabetes in high doses, but now researchers from Flinders University have discovered a link between low dose steroids and diabetes.

Nipping diabetes in the bud: Researchers find a simple blood test can predict diabetes risk much earlier

January 27, 2014
An estimated 25.8 million Americans have diabetes. Another 79 million are thought to have "prediabetes," meaning they are at risk of developing type-2 diabetes.

Recommended for you

Scientists discover a new way to treat type 2 diabetes

July 21, 2017
Medication currently being used to treat obesity is also proving to have significant health benefits for patients with type 2 diabetes. A new study published today in Molecular Metabolism explains how this therapeutic benefit ...

Alzheimer's drug cuts hallmark inflammation related to metabolic syndrome by 25 percent

July 20, 2017
An existing Alzheimer's medication slashes inflammation and insulin resistance in patients with metabolic syndrome, a potential therapeutic intervention for a highly dangerous condition affecting 30 percent of adults in the ...

Diabetes or its precursor affects 100 million Americans

July 19, 2017
Almost one-third of the US population—100 million people—either has diabetes or its precursor condition, known as pre-diabetes, said a government report Tuesday.

One virus may protect against type 1 diabetes, others may increase risk

July 11, 2017
Doctors can't predict who will develop type 1 diabetes, a chronic autoimmune disease in which the immune system destroys the cells needed to control blood-sugar levels, requiring daily insulin injections and continual monitoring.

Diabetes complications are a risk factor for repeat hospitalizations, study shows

July 7, 2017
For patients with diabetes, one reason for hospitalization and unplanned hospital readmission is severe dysglycemia (uncontrolled hyperglycemia - high blood sugar, or hypoglycemia - low blood sugar), says new research published ...

Researchers identify promising target to protect bone in patients with diabetes

July 7, 2017
Utilizing metabolomics research techniques, NYU Dentistry researchers investigated the underlying biochemical activity and signaling within the bone marrow of hyperglycemic mice with hopes of reducing fracture risks of diabetics

1 comment

Adjust slider to filter visible comments by rank

Display comments: newest first

not rated yet Feb 27, 2014
Sounds like a me-too product. has already done this, and doesn't need to patient to use a continuous glucose monitor or insulin pump.

Please sign in to add a comment. Registration is free, and takes less than a minute. Read more

Click here to reset your password.
Sign in to get notified via email when new comments are made.