AIP and diabetes mellitus: This study identified a significant association between elevated AIP levels and an increased risk of depression in middle-aged and older adults, particularly those with Pre-DM and DM.