Gene function analysis revealed that pyroptosis genes BST2, GBP5, and AIM2 were differentially expressed in CM patients and positively associated with patient prognosis. The gene discussed is AIM2; the disease is cutaneous mastocytosis.