Deep vein thromboembolism (DVT) is a common postoperative complication with high morbidity and mortality rates. However, the safety and effectiveness of using prophylactic anticoagulants for preventing DVT after spinal surgery remain controversial. Hence, it is crucial to predict whether DVT occurs in advance following spinal surgery. The present study aimed to establish a machine learning (ML)-based prediction model of DVT formation following spinal surgery.