Despite the measures put in place in different countries, road traffic fatalities are still considered one of the leading causes of death worldwide. Thus, the reduction of traffic fatalities or accidents is one of the contributing factors to attaining sustainability goals. Different factors such as the geometric structure of the road, a non-signalized road network, the mechanical failure of vehicles, inexperienced drivers, a lack of communication skills, distraction and the visual or cognitive impairment of road users have led to this increase in traffic accidents. These factors can be categorized under four headings that are: human, road, vehicle factors and environmental road conditions. The advent of machine learning algorithms is of great importance in analysing the data, extracting hidden patterns, predicting the severity level of accidents and summarizing the information in a useful format. In this study, three machine learning algorithms for classification, such as Decision Tree, LightGBM and XGBoost, were used to model the accuracy of road traffic accidents in the UK for the year 2020 using their default and hyper-tuning parameters. The results show that the high performance of the Decision Tree algorithm with default parameters can predict traffic accident severity and provide reference to the critical variables that need to be monitored to reduce accidents on the roads. This study suggests that preventative strategies such as regular vehicle technical inspection, traffic policy strengthening and the redesign of vehicle protective equipment be implemented to reduce the severity of road accidents caused by vehicle characteristics.