BackgroundPerianal draining tunnels in hidradenitis suppurativa (HS) and perianal fistulizing inflammatory bowel disease (IBD) present diagnostic and management dilemmas.MethodsWe conducted a retrospective chart review of patients with perianal disease evaluated at Mayo Clinic from January 1, 1998, through July 31, 2021. Patients' demographic and clinical data were extracted, and 28 clinical features were collected. After experimenting with several machine learning techniques, random forests were used to select the 15 most important clinical features to construct the diagnostic prediction model to distinguish perianal HS from fistulizing perianal IBD.ResultsA total of 263 patients were included (98 with HS, 100 with IBD, and 65 with both IBD and HS). Patients with HS had a higher mean body mass index, a higher smoking rate, and more commonly showed cutaneous manifestations of tunnels and comedones, while fistulas, abscesses, induration, anal tags, ulcers, and anal fissures were more common in patients with IBD. In addition to having lesions in the perianal area, patients with IBD often had lesions in the buttocks and perineum, while those with HS had additional lesions in the axillae and groin. Among the statistically significant features, the 15 most important were identified by random forest: fistula, tunnel, digestive symptom, knife‐cut ulcer, perineum, body mass index, age, axilla, abscess, tags, smoking, groin, genital cutaneous edema, erythema, and bilateral/unilateral.ConclusionsThe results of this study may help differentiate perianal lesions, especially perineal HS and fistulizing perineal IBD, and provide promise for a better therapeutic outcome.