Diagnostic tool for the treatment of diabetes