INS and type 1 diabetes mellitus: This work introduces Q-learning, a model-free data-driven RL algorithm for suggesting insulin dosages to manage blood glucose levels in T1DM patients according to the patient's status as reflected by body mass index, level of physical activity, glycated hemoglobin (HbA1c) levels, and alcohol consumption.