PurposeTo identify the key risk factors for venous thromboembolism (VTE) in urological inpatients based on the Caprini scale using an interpretable machine learning method.MethodsVTE risk data of urological inpatients were obtained based on the Caprini scale in the case hospital. Based on the data, the Boruta method was used to further select the key variables from the 37 variables in the Caprini scale. Furthermore, decision rules corresponding to each risk level were generated using the rough set (RS) method. Finally, random forest (RF), support vector machine (SVM), and backpropagation artificial neural network (BPANN) were used to verify the data accuracy and were compared with the RS method.ResultsFollowing the screening, the key risk factors for VTE in urology were “(C1) Age,” “(C2) Minor Surgery planned,” “(C3) Obesity (BMI > 25),” “(C8) Varicose veins,” “(C9) Sepsis (< 1 month),” (C10) “Serious lung disease incl. pneumonia (< 1month) ” (C11) COPD,” “(C16) Other risk,” “(C18) Major surgery (> 45 min),” “(C19) Laparoscopic surgery (> 45 min),” “(C20) Patient confined to bed (> 72 h),” “(C18) Malignancy (present or previous),” “(C23) Central venous access,” “(C31) History of DVT/PE,” “(C32) Other congenital or acquired thrombophilia,” and “(C34) Stroke (< 1 month.” According to the decision rules of different risk levels obtained using the RS method, “(C1) Age,” “(C18) Major surgery (> 45 minutes),” and “(C21) Malignancy (present or previous)” were the main factors influencing mid- and high-risk levels, and some suggestions on VTE prevention were indicated based on these three factors. The average accuracies of the RS, RF, SVM, and BPANN models were 79.5%, 87.9%, 92.6%, and 97.2%, respectively. In addition, BPANN had the highest accuracy, recall, F1-score, and precision.ConclusionsThe RS model achieved poorer accuracy than the other three common machine learning models. However, the RS model provides strong interpretability and allows for the identification of high-risk factors and decision rules influencing high-risk assessments of VTE in urology. This transparency is very important for clinicians in the risk assessment process.