This study only detected the key proteins in mTOR and pyroptotic cell death pathways to explain the mechanism of anxiety and depression caused by H. pylori. Here, MTOR is linked to major depressive disorder.