Abstract In this paper, we use the krill swarm optimization algorithm to optimize the optimization-seeking ability of the projection-seeking analysis model and construct the IKH-PP model. Evaluation indexes of ideological and political education strategies are built from seven dimensions, such as moral quality and political performance, and the index values are standardized using the extreme value normalization method. Create and enhance the projection indicator function, sort based on the projection value size, and determine the advantages and disadvantages of various samples. Taking psychology as the perspective, efforts were made to explore a collaborative educational path for psychological counseling and ideological education for medical students using the psychological perspective. The results showed that 50% of the 600 medical students at University Z chose “realization of ideal pursuit,” and they were generally more positive and progressive. However, only 48 of them expressed that they were very concerned about current affairs and that their political awareness still needed to be improved. Before and after the collaborative psychological counseling and political education interventions, there were statistically significant differences between Group I and Group II in the G3/F3 dimension (P=0.047, 0.008) and the G11/F11 dimension (P=0.022, 0.034), which were statistically significant or not. There were statistically significant differences in the overall access to Civics and all dimensions of Civics among medical students of different genders (P<0.05), grades (P<0.001), and political profiles (P<0.05) students.