Firstly, the factors affecting carbon sequestration are analyzed based on tree age, precipitation, temperature and light. On this basis, the carbon sequestration model is developed by combining K-means clustering, regression analysis verification and grey prediction model. Finally, the carbon sequestration model is used to predict the trend of carbon sequestration content of six vegetation types in the next two years. The research results provide guidance for sequestration of carbon dioxide.