Learning control for diabetes counselling