Artificial Intelligence Algorithms for Treatment of Diabetes