The LCTM identified three trajectory patterns for AIP: with the low-stable group as the reference, the medium-stable and high-stable groups had HRs of 1.72 (95% CI: 1.50, 1.96) and 2.50 (95% CI: 2.06, 3.03), respectively, indicating a significantly elevated risk of T2DM (P < 0.05). The gene discussed is AIP; the disease is type 2 diabetes mellitus.