Our findings revealed a significant positive correlation between higher baseline AIP levels and an increased risk of developing cognitive impairment, as well as a non-linear relationship between the AIP and cognitive impairment. The gene discussed is AIP; the disease is autoimmune pancreatitis.