Crohn's disease (CD) and ulcerative colitis (UC) are two major subtypes of inflammatory bowel disease (IBD) characterized by chronic inflammation of the gastrointestinal tract. Despite various clinical approaches being available for diagnosing IBD, such as blood tests and colonoscopy, misdiagnosis of IBD and its subtypes occurs frequently, thus there is a clinical need to improve diagnosis of this condition. Since dysregulated gut microbiota is reported in IBD patients, we hypothesized that gut microbiome data could be used to develop an artificial intelligence‐based strategy for detection of IBD and diagnostic differentiation of CD and UC (Figure 1). First, five supervised machine learning (ML) approaches, including random forest (RF), decision tree, elastic net, support vector machine and neural networks, were used to analyze fecal 16S metagenomics data of 729 IBD patients and 700 non‐IBD controls collected from the American Gut Project. Fifty significantly differential bacterial taxa were identified between the IBD and non‐IBD groups. ML classifications, trained with these 50 taxonomic features, achieved a testing AUC (area under the receiver operating characteristics curve) of ~0.80 (Figure 2A) using the trained RF model. Next, instead of bacterial taxa, we tested if operational taxonomic units (OTUs) could be used as ML features for diagnosing IBD. RF modeling of the top high‐variance OTU features achieved an improved AUC of ~0.82 (Figure 2B). Lastly, we tested the capability of the RF model to distinguish between CD and UC using fecal 16S metagenomics data of 331 CD and 141 UC subjects. A total of 117 significantly differential bacterial taxa were identified and the RF model trained with these bacterial features achieved a testing AUC of ~0.91 (Figure 2C). Furthermore, the RF model trained with the top high‐variance OTU features achieved an improved AUC of ~0.92 (Figure 2C). In summary, our study demonstrates the promising potential of artificial intelligence via supervised ML modeling of large‐scale gut microbiome data for detection and diagnostic classification of IBD.