ABSTRACT Sepsis is a life‐threatening disease caused by the dysregulation of the immune response. It is important to identify influential genes modulating the immune response in sepsis. In this study, we used P‐NET, a biologically informed explainable artificial intelligence model, to evaluate the gene importance for sepsis. About 688 important genes were identified, and these genes were enriched in pathways involved in inflammation and immune regulation, such as the PI3K‐Akt signalling pathway, necroptosis and the NF‐κB signalling pathway. We further selected differentially expressed genes both at bulk and single‐cell levels and found TIMP1, GSTO1 and MYL6 exhibited significant different expressions in multiple cell types. Moreover, the expression levels of these 3 genes were correlated with the abundance of important immune cells, such as M‐MDSC cells. Further analysis demonstrated that these three genes were highly expressed in sepsis patients with worse outcomes, such as severe, non‐survived and shock sepsis patients. Using a drug repositioning strategy, we found navitoclax, curcumin and rotenone could down‐regulate and bind to these genes. In conclusion, TIMP1, GSTO1 and MYL6 may serve as promising biomarkers and targets for sepsis treatment.