Both PreDM and T2DM groups demonstrated significant differences in AIP and CMI values when classified according to WHR quartiles, with the AIP (p = 0.04) and CMI (p = 0.02) showing significance in the PreDM cohort, while the T2DM cohort exhibited significance in the AIP (p = 0.001) and CMI (p = 0.03). Here, AIP is linked to autoimmune pancreatitis.