Two professors at Canada’s Western University are seeking an effective way to reduce nighttime hypoglycemia in diabetics, reports Western News.

Currently in use, pumps help to reduce the risk of hypoglycemia by administering constant levels of insulin. However, they rely on the user to monitor their blood sugar levels and adjust as necessary – a manual task that cannot be performed while sleeping.

In the trial, Clarson and Hramiak are testing a tool that mimics the pancreas to reduce the rate of nocturnal hypoglycemia. It combines a pump to deliver insulin, a continuous glucose-monitoring system to measure blood sugars in the patient every five minutes and a computer algorithm that predicts when each individual is at risk for hypoglycemia.