This study addresses the issue of insufficient integration of ideological and political elements in housing planning education by proposing a personalized teaching system design based on the concept of collaborative education. By identifying ideological and political elements within regional architectural culture, the study constructs a curriculum-based ideological and political education pathway. A teaching system incorporating interest modeling, dynamic updates, and intelligent recommendations is developed, with the heap sort algorithm selected to implement personalized teaching resource recommendations. Empirical research indicates that, in terms of knowledge tracking, the completeness of learners’ knowledge systems improved by 47.8%, average grades increased by 19.7 points, and the rate of excellence rose by 30.3%. In terms of personalized recommendations, learners at different levels saw significant improvements in average grades during the course, particularly for beginners and intermediate learners, with an average increase of 6.82%.