In the initial unadjusted model, an increase in AST/ALT ratio was shown to reduce the risk of diabetes (HR: 0.32, 95% CI: 0.29–0.36, P < 0.001). Here, GPT is linked to diabetes mellitus.