NK109 significantly alleviated Escherichia coli K1-induced cognitive impairment- and depression-like behaviors in germ-free and SPF mice by regulating the immune response through NF-κB-involved BDNF expression, IL-1β expression, and vagus nerve-mediated gut–brain signaling. The gene discussed is IL1B; the disease is depressive symptom measurement.