This article first addresses the problem that the unstructured data in the existing e-learning education data is difficult to effectively use and the problem that the coarser granularity of sentiment analysis results in traditional sentiment analysis methods and proposes multipolarized sentiment based on fine-grained sentiment analysis evaluation model. Then, an algorithm for behavior prediction and course recommendation based on emotional change trends is proposed, and the established multiple linear regression equation is solved with an improved algorithm. Finally, the method in this paper is verified by a comprehensive example with algorithm comparison analysis and cross-validation evaluation method. The research method proposed in this article provides new research ideas for evaluating and predicting the learning behavior of e-learners, which is conducive to timely discovering learners’ dropout tendency and recommending relevant courses of interest to improve their graduation rate, so as to optimize the learning experience of learners, promote the development of personalized education and effective teaching of the e-learning teaching platform, and provide a certain reference value for accelerating the reform process of education informatization. In order to improve the speed of searching for parameters and the best parameters, this paper proposes a particle swarm algorithm (to improve the support vector machine parameters in a sense) and finds the best parameters which also achieved the goal from academic expression to academic performance.