Emotions are closely related to driving behavior, and drivers with different emotions have different degrees of bad driving behavior. In order to explore the relationship between emotions and driving violations, a prediction model based on an emotional style transfer network is proposed. First, inspired by the idea of generative adversarial networks (GAN), the eigenvalues of emotions are extracted. Secondly, the one-way propagation method of the GAN network is improved to cyclic generation, which avoids the problems of non-convergence and long periods in the data training process, improving the utilization of training data. Thirdly, a driving violation prediction model is designed. In this model, the emotion factors are designed as time-related sequences, and by improving the Long Short-Term Memory (LSTM) model, the encoding and decoding processes of the time-related sequences are added to form the context, which improves the accuracy of prediction. Finally, the experimental and simulation data show that the proposed model has significant advantages in loss value, accuracy rate, macro-average score, and other indicators. At the same time, an emotion-induction scheme is given to reduce the possibility of driving violations. Furthermore, the proposed model can provide a theoretical basis for the impact of emotions on driving safety.