HFD upregulated the IFNAR1-STAT1 pathway and induced proinflammatory microglia, leading to synaptic damage and causing anxiety and cognitive deficits. Here, IFNAR1 is linked to Cognitive impairment.