With the gradual growth of domestic automobile ownership,the driving environment is becoming more and more complex,and the incidence of traffic accidents is also increasing.This has put forward higher requirements and stricter challenges to automobile drivers.In this paper,an accident prediction model based on Bayesian Neural Network(BNN)is used to predict traffic accidents.The model uses the video of dash cam for training and predicts the probability of traffic accidents.The results show that the model can predict the occurrence of traffic accidents nearly 5 s in advance,and the prediction accuracy is more than 90%.This system can achieve real-time monitoring of driving safety,which helps to avoid internal and external unsafe factors in the driving process.