Serum NLRP3, MMP‐9 and IFN‐γ levels had high diagnostic efficacy in patients with postoperative intracranial infection and hydrocephalus, among which serum NLRP3 level played a major role. This evidence concerns the gene IFNG and Hydrocephalus.