Necrotizing enterocolitis (NEC) is an acute intestine dysfunction intestinal disorder characterized by inflammation and cell death, including pyroptosis. Previous studies have implicated pyroptosis, particularly via NLRP3 inflammatory activation, and contribute to the development of NEC. However, the genetic and molecular mechanisms underlying pyroptosis in NEC pathogenesis and sequelae remain unclear. Our study aimed to identify the pyroptosis-related cell populations and genes and explore potential therapeutic targets. Single-cell RNA sequencing (scRNA-seq) data were analyzed to identify the cell populations related to NEC and pyroptosis. Weighted gene correlation network analysis (WGCNA) of bulk RNA-seq was performed to identify gene modules associate with pyroptosis. Cell-cell communication was employed to investigate intercellular signaling networks. Gene Set Enrichment Analysis (GSEA) was conducted to compare the pathways enriched in the high and low TREM1-expressing subgroups. Immunofluorescence staining was performed to detect the TREM1