Diabetes mellitus is a disease caused by uncontrolled diabetes that can lead to multiple organ failure in patients. Fortunately, recent advancements in artificial intelligence have made it possible to diagnose and detect diabetic disease early on. Numerous articles are currently being published on the use of artificial intelligence and machine learning techniques for automated detection, diagnosis, and personalized treatment and management of diabetes. This survey examines technologies for personalized diabetes treatment from five distinct perspectives: blood glucose prediction, glycemic variability detection, hyperglycemia detection, insulin controller therapy, and pharmacogenetics. The treatment of diabetes is dependent on various medical, demographic, and lifestyle factors, including diabetes type, age, body weight, duration of diabetes, comorbidities, blood sugar, physical activity, and diet. Artificial intelligence is regarded as a valuable technology to aid in diabetes treatment. This survey offers a comprehensive overview of techniques for diabetes detection and personalized treatment, which may prove beneficial to the scientific community focused on automatic diabetes detection and personalized treatment.This survey furnishes a comprehensive outline of techniques for the detection of diabetes and personalized treatment, which can prove immensely beneficial to the scientific community working on automatic diabetes detection and personalized treatment.