Lactobacillus rhamnosus and Bifidobacterium longum alleviate colitis and cognitive impairment in mice by regulating IFN-γ to IL-10 and TNF-α to IL-10 expression ratios. Here, IFNG is linked to Cognitive impairment.