This healthy lifestyle we refer to is being active 150 minutes or more each week and eating a meal plan low in fat and processed sugar with 3-5 vegetables and 2-3 fruits a day most days. It does not require low or no carbohydrate diet like Atkins or counting carbohydrates every meal. Most folks do better when they spread the carbohydrates out evenly over the day.
Replacing humans with computers could make patients better control their sugar levels and suffer less complications in the long term. The French company Cellnovo has already shown that just a partially automated system, where blood sugar levels can be monitored wirelessly but patients still select insulin amounts, can reduce the chances of reaching life-threatening low sugar levels up to 39%. The company is now working towards developing a fully automated artificial pancreas in collaboration with Imperial College, the Diabeloop consortium and the Horizon2020 program.
Note that these medications used to treat type 2 diabetes are typically not used in pregnant or breastfeeding women. At present the only recommended way of controlling diabetes in women who are pregnant or breastfeeding is by diet, exercise, and insulin therapy. You should speak with your health-care professional if you are taking these medications, are considering becoming pregnant, or if you have become pregnant while taking these medications.