In conclusion, hepatic biomarkers, especially the ALT/AST ratio, have a strong association with a high incidence of diabetes, and the TyG index was a key mediator in this relationship. Here, GPT is linked to diabetes mellitus.