Artificial intelligence is part of our daily life and machine learning techniques offer possibilities unknown until now in medicine. This study aims to offer an evaluation of the performance of machine learning (ML) techniques, for predicting bacterial resistance in a urology department. Data were retrieved from laboratory information system (LIS) concerning 239 patients with urolithiasis hospitalized in the urology department of a tertiary hospital over a 1-year period (2019): age, gender, Gram stain (positive, negative), bacterial species, sample type, antibiotics and antimicrobial susceptibility. In our experiments, we compared several classifiers following a tenfold cross-validation approach on 2 different versions of our dataset; the first contained only information of Gram stain, while the second had knowledge of bacterial species. The best results in the balanced dataset containing Gram stain, achieve a weighted average receiver operator curve (ROC) area of 0.768 and F-measure of 0.708, using a multinomial logistic regression model with a ridge estimator. The corresponding results of the balanced dataset, that contained bacterial species, achieve a weighted average ROC area of 0.874 and F-measure of 0.783, with a bagging classifier. Artificial intelligence technology can be used for making predictions on antibiotic resistance patterns when knowing Gram staining with an accuracy of 77% and nearly 87% when identifying specific microorganisms. This knowledge can aid urologists prescribing the appropriate antibiotic 24-48h before test results are known.