Subgroup analysis was conducted based on age, sex, family history of diabetes, and BMI to explore the relationship between the ALT/HDL-C ratio and diabetes risk in different commonly categorized populations. Here, GPT is linked to diabetes mellitus.