Background. Inflammatory reactions and pyroptosis play an important role in the pathology of intervertebral disc degeneration (IDD). The aim of the present study was to investigate pyroptosis in the nucleus pulposus cells (NPCs) of inflammatory induced IDD by bioinformatic methods and to search for possible diagnostic biomarkers. Methods. Gene expression profiles related to IDD were downloaded from the GEO database to identify differentially expressed genes (DEGs) between inflammation-induced IDD and non-inflammatory intervention samples. Pyroptosis genes were then searched for, and their expression in IDD was analyzed. Weighted gene co-expression network analysis (WGCNA) was then used to search for modules of IDD genes associated with pyroptosis and intersected with DEGs to discover candidate genes that would be diagnostically valuable. A LASSO model was developed to screen for genes that met the requirements, and ROC curves were created to clarify the diagnostic value of the genetic markers. Ultimately, the screened genes were further validated, and their diagnostic value assessed by selecting gene sets from the GEO database. RT-PCR was used to assess the mRNA expression of diagnostic markers in the nucleus pulposus (NP). Pan-cancer analysis was applied to demonstrate the expression and prognostic value of the screened genes in various tumors. Results. A total of 733 DEGs were identified in GSE41883 and GSE27494, which were mainly enriched in transmembrane receptor protein serine/threonine, kinase signaling pathway, response to lipopolysaccharide, and other biological processes, and they were mainly related to TGF beta signaling pathway, toll-like receptor signaling pathway, and TNF signaling pathway. A total of 81 genes related to pyroptosis were identified in the literature, and eight genes related to IDD were identified in the Veen diagram, namely, IL1A, IL1B, NOD2, GBP1, IL6, AK1, EEF2K, and PYCARD. Eleven candidate genes were obtained after locating the intersection of pyroptosis-related module genes and DEGs according to WGCNA analysis. A total of six valid genes were obtained after constructing a machine learning model, and five key genes were finally identified after correlation analysis. GSE23132 and GSE56081 validated the candidate genes, and the final IDD-related diagnostic markers were obtained as SMIM1 and SEZ6L2. RT-PCR results indicated that the mRNA expression of both was significantly elevated in IDD. The pan-cancer analysis demonstrated that SMIM1 and SEZ6L2 have important roles in the expression and prognosis of various tumors. Conclusion. In conclusion, this research identifies SMIM1 and SEZ6L2 as important biomarkers of IDD associated with pyroptosis, which will help to unravel the development and pathogenesis of IDD and determine potential therapeutic targets.