BMI's mediating effect differed markedly between populations, with a higher proportion in Japanese participants (32.22%), suggesting nuanced pathophysiological mechanisms underlying the AST/ALT-diabetes relationship.<h4>Conclusions</h4>Our study unveils significant ethnic variations in the AST/ALT-diabetes interaction, highlighting population-specific diagnostic thresholds and mediation mechanisms. The gene discussed is GPT; the disease is diabetes mellitus.