With the progress of the Internet and information technology, emotion analysis has been applied to analyse the emotional orientation and evolution trend of online public opinion of online tweets. At present, most of the existing methods use econometric model and machine learning algorithm to predict the trend of online public opinion. Although these methods have achieved good prediction results, they do not take into account the influence of internal factors on network public opinion prediction, such as mutual migration among emotion classes. The emotion may change dynamically because different events trigger it in the evolution process. In this view, this article proposes a novel method, called Deviation Rule Markov Model (DRMM), to predict the emotional change trend of Internet users in online public opinion by analysing the correlation between Internet users’ emotional categories. Structurally, the proposed DRMM involves various processes such as pre-processing, emotion classification, data mining and transfer prediction. For the processing of network comment data, the proposed model initially undergoes pre-processing to delete unnecessary data. Then, the extended fuzzy emotion ontology is used to annotate the emotion class of the comment data. Besides, an extended association rule mining algorithm is used in the emotion association analysis process to obtain the transfer probability between emotion classes. Moreover, Markov chain is used to construct an emotional state transition matrix to predict the transition probability of positive or negative emotions. According to the predicted single emotion transfer probability results, the analytic hierarchy process is used to assign values to different emotion classes, and finally, the transfer probability of the overall emotion in a certain period is obtained. Compared with the actual case, the mean absolute error (MAE) and root mean square error (RMSE) of the proposed model are 2.7119 and 3.7254, respectively, which has good prediction performance.