AIP and type 2 diabetes mellitus: The AIP shows good potential in predicting the risk of prediabetes and T2DM among the middle-aged and elderly Chinese population, holding practical significance for the prevention and management of prediabetes and T2DM.