ML software for diabetes treatment