The abundance of 7 gastrointestinal microorganisms like Alistipes_inops, which were significantly positively correlated with brain E, were significantly lower in female mice than in male mice with Hp-related chronic gastritis (LDA >2 and p < 0.05). Here, HP is linked to chronic gastritis.