Background: Effective treatment using antibiotic vancomycin requires close monitoring of serum drug levels due to its narrow therapeutic index. In the current practice, physicians use various dosing algorithms for dosage titration, but these algorithms reported low success in achieving therapeutic targets. We explored using artificial intelligent to assist vancomycin dosage titration. Methods: We used a novel method to generate the label for each record and only included records with appropriate label data to generate a clean cohort with 2,282 patients and 7,912 injection records. Among them, 64% of patients were used to train two machine learning models, one for initial dose recommendation and another for subsequent dose recommendation. The model performance was evaluated using two metrics: PAR, a pharmacology meaningful metric defined by us, and Mean Absolute Error (MAE), a commonly used regression metric. Results: In our 3-year data, only a small portion (34.1%) of current injection doses could reach the desired vancomycin trough level (14–20 mcg/ml). Both PAR and MAE of our machine learning models were better than the classical pharmacokinetic models. Our model also showed better performance than the other previously developed machine learning models in our test data. Conclusion: We developed machine learning models to recommend vancomycin dosage. Our results show that the new AI-assisted dosage titration approach has the potential to improve the traditional approaches. This is especially useful to guide decision making for inexperienced doctors in making consistent and safe dosing recommendations for high-risk medications like vancomycin.