Both healthy and diseased human ocular surfaces possess their own microbiota. If allowed, opportunistic pathogens within the ocular microbiota may cause microbial keratitis (MK). However, the nonpathogenic component of the ocular microbiota has been proven to undermine the performance of culture, the gold standard of the etiological diagnosis for MK. As the conjunctival bacterial microbiota generates unique alterations with various oculopathies, this study aimed to evaluate the feasibility of distinguishing MK using machine learning based on the characteristics of the conjunctival bacterial microbiome associated with various types of MK. This study also aimed to reveal which bacterial genera constitute the core of the interaction network of the conjunctival bacterial microbiome. Conjunctival swabs collected from the diseased eyes of MK patients and the randomly chosen normal eyes of healthy volunteers were subjected for high-throughput 16S rDNA sequencing. The relative content of each bacterial genus and the composition of bacterial gene functions in every sample were used to establish identification models with the random forest algorithm. Tenfold cross validation was adopted. Accuracy was 96.25% using the bacterial microbiota structure and 93.75% using the bacterial gene functional composition. Therefore, machine learning with the conjunctival bacterial microbiome characteristics might be used for differentiation of MKs as a noninvasive supplementary approach. In addition, this study found that Actinobacteria, Lactobacillus, Clostridium, Helicobacter, and Sphingomonas constitute the core of the interaction network of the conjunctival bacterial microbiome.