This study investigated the changes of endogenous metabolites in the serum of deep vein thrombosis (DVT) rats, screened characteristic metabolites related to DVT, and constructed the prediction models for clinical diagnosis and forensic identification of DVT. The DVT rat model was constructed using the inferior vena cava ligation method, and blood samples were collected 72 h post-surgery. Gas chromatography-mass spectrometry(GC-MS) was used to analyze the small molecule metabolism profile in the rat serum. Then, orthogonal partial least squares discriminant analysis combined with the Mann-Whitney U test initially identified 22 differential metabolites associated with DVT, involving metabolic pathways, such as glyoxylate and dicarboxylate metabolism, tricarboxylic acid cycle(TCA cycle), and alanine, aspartate and glutamate metabolism. Subsequently, a feature selection method based on the random forest classification algorithm(Boruta) was applied to screening out 13 characteristic metabolites algorithm). The results showed that the DVT prediction model of linear discriminant analysis has a high performance with an accuracy of 87%, as well as precision of 0.88, recall of 0.86, F1 score of 0.87, and area under the receiver operating characteristic curve(AUROC) ( AUROC ) of 0.95. The research indicates that the DVT prediction model constructed using GC-MS metabolomics combined with machine learning algorithms can provide technical support for the diagnosis, , treatment, , and forensic identification of DVT.