When examined by quartiles, ALT demonstrated a clear dose-response relationship (P for trend < 0.001), the highest quartile (Q4) associated with a more than twofold increase in diabetes risk compared to the lowest quartile (Q1) (HR = 2.28; 95% CI: 1.87–2.77, P < 0.001). Here, GPT is linked to diabetes mellitus.