Background: Based on real-world medical data, the artificial neural network model was used to predict the risk factors of linezolid-induced thrombocytopenia to provide a reference for better clinical use of this drug and achieve the timely prevention of adverse reactions.Methods: The artificial neural network algorithm was used to construct the prediction model of the risk factors of linezolid-induced thrombocytopenia and further evaluate the effectiveness of the artificial neural network model compared with the traditional Logistic regression model.Results: A total of 1,837 patients receiving linezolid treatment in a hospital in Xi ‘an, Shaanxi Province from 1 January 2011 to 1 January 2021 were recruited. According to the exclusion criteria, 1,273 cases that did not meet the requirements of the study were excluded. A total of 564 valid cases were included in the study, with 89 (15.78%) having thrombocytopenia. The prediction accuracy of the artificial neural network model was 96.32%, and the AUROC was 0.944, which was significantly higher than that of the Logistic regression model, which was 86.14%, and the AUROC was 0.796. In the artificial neural network model, urea, platelet baseline value and serum albumin were among the top three important risk factors.Conclusion: The predictive performance of the artificial neural network model is better than that of the traditional Logistic regression model, and it can well predict the risk factors of linezolid-induced thrombocytopenia.