With the in-depth promotion of ecological civilization education, the grassland natural ecology study course has become an important way to realize the comprehensive development of students. The article takes the design idea of grassland study course as the entry point, analyzes the design links of grassland ecology study course development, and proposes the design process of grassland ecology study course development based on this. Taking the second grade students of the first middle school in X city as the research object, the decision tree algorithm is used to optimize the relevant variables in the development of the grassland ecological study course, and the optimization model of the study path of the grassland ecological study course is established starting from the shortest distance and the least time. Based on the variables optimized by the decision tree algorithm, a DT-SVM model is built by combining the support vector mechanism to solve the learning path of the grassland ecological study course. Through the simulation and example data, it can be seen that the convergence accuracy of the DT-SVM algorithm shows the optimal accuracy under all experiments, and its mean value can be up to 3.652, and the average time consumed for obtaining the optimal learning path of the grassland ecology research course is only about 3.17min. And more than 65% of the students agreed with the teaching effect of the grassland ecology study course. The grassland ecology study course can significantly improve students’ core literacy in geography, enhance their independent living skills, and better realize the school’s teaching goal of promoting moral education.