Abstract:[Objective] To establish the prediction models of deep vein thrombosis (DVT) after total knee arthroplasty (TKA) based on the logic regression and the extreme gradient boosting (XGBoost) . [Methods] A retrospective study was conducted on 3 711 patients who re- ceived TKA in the Department of Orthopaedics, Anhui Provincial Hospital from December 2017 to October 2021. The prediction models for DVT after TKA were established based on the factors related the DVT by logical regression and XGBoost algorithm respectively, which were compared in term of prediction efficiency. [Results] Of 3 711 patients, 889 patients proved DVT after TKA, with a total incidence of 23.96%. In term of univariate comparison, the DVT group proved significantly older (P<0.05) , higher ratio of low-grade heparin and X factor inhibi- tors used (P<0.05) , lower early anti-coagulation 6 hours after the operation (P<0.05) , shorter preoperative preparation time (P<0.05) , lon- ger postoperative hospital stay (P<0.05) , longer operation time (P<0.05) , higher preoperative blood D-dimer (P<0.05) , lower preoperative coagulation activity (P<0.05) , higher level of postoperative blood phosphate (P<0.05) and higher postoperative ratio of urea nitrogen to creati- nine (P<0.05) than the non-DVT group. As results of logical regression, higher postoperative ratio of urea nitrogen to creatinine (OR=1.576, P<0.05) , longer postoperative hospital stay (OR=1.393, P<0.05) , older age (OR=1.214, P<0.05) , higher postoperative serum phosphorus (OR=1.160, P=0.05) , higher preoperative D-dimer (OR=1.058, P=0.05) were risk factors for DVT events. In term of XGBoost model, the age, postoperative hospital stay, postoperative D-dimer, serum urea nitrogen/creatinine ratio, and use of low molecular weight heparin were important feature vectors. The AUC of ROC analysis of the two prediction models were of 0.709 and 0.840 respectively. [Conclusion] XG- Boost model has a good ability to predict DVT events in the perioperative period of TKA. The age, postoperative hospital stay, postoperative D-dimer, serum urea nitrogen/creatinine ratio, and low molecular weight heparin used are potential important predictors.