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. The gene discussed is TNF; the disease is colitis.