An artificial pancreas has been successfully trialled in patients with type 2 diabetes, a university said.
Scientists at the University of Cambridge developed the device which combines a glucose monitor and insulin pump with an app.
The app uses an algorithm that predicts how much insulin is required to keep glucose levels in the target range.
Average glucose levels fell while patients trialled the device, the university said.
Type 2 diabetes causes the level of sugar in the blood to become too high. It's often linked to being overweight or inactive, or having a family history of type 2 diabetes.
The researchers have previously shown that an artificial pancreas run by a similar algorithm is effective for patients living with type 1 diabetes, where the body's immune system attacks and destroys the cells that produce insulin.
They have also successfully trialled the device in patients with type 2 diabetes who require kidney dialysis.
For the most recent trial, the researchers recruited 26 patients who were randomly allocated to one of two groups.
The first group would trial the artificial pancreas for eight weeks and then switch to the standard therapy of multiple daily insulin injections; the second group would take this control therapy first and then switch to the artificial pancreas after eight weeks.
On average, patients using the artificial pancreas spent two-thirds (66%) of their time within the glucose levels target range – double that while on the control (32%).
No patients experienced dangerously-low blood sugar levels during the study.
Dr Charlotte Boughton from the Wellcome-MRC Institute of Metabolic Science at the University of Cambridge, who co-led the study, said: "Many people with type 2 diabetes struggle to manage their blood sugar levels using the currently available treatments, such as insulin injections.
"The artificial pancreas can provide a safe and effective approach to help them, and the technology is simple to use and can be implemented safely at home."
Find BBC News: East of England on Facebook, Instagram and Twitter. If you have a story suggestion email eastofenglandnews@bbc.co.uk
Artificial pancreas tech could be offered on NHS
Artificial pancreas to revolutionise diabetes care
Artificial pancreas for children hailed a success
University of Cambridge
Huntingdon fire station closes and crews mark beginning of a new era
Wisbech murder victim’s inquest opens
Train strikes in Cambridgeshire on February 3 set to cause disruption
Council launches new walking and cycling map for Wisbech
Police launch appeal after Cambridge hardware store burglaries
People urged to call 999 to report catalytic converter thefts
Republicans oust Ilhan Omar from House committee
Putin: 80 years on, we are facing German tanks again
Tyre Nichols rumour fits victim-blaming pattern
Russian army officer: Our troops tortured Ukrainians
Tyre Nichols rumour fits victim-blaming pattern
US secures deal on bases to complete arc around China
Why TikTok has got us talking about mascara
Can Sri Lanka trade its way back to prosperity?
How the empire of one of the world's richest men lost $100bn
Why ballroom dancing thrives in Asian communities. Video
Helena Bonham Carter on soaps and sexism
Why lifting opposition ban suits Tanzania's leader
A remedy for low motivation and passion
The 90s cop show that changed TV
How one volcano could make global chaos
© 2023 BBC. The BBC is not responsible for the content of external sites. Read about our approach to external linking.