This study accounted for and analyzed the carbon emissions of 13 cities in Jiangsu Province from 1999 to 2021. We compared the simulation effects of four models—STIRPAT, random forest, extreme gradient boosting, and support vector regression—on carbon emissions and performed model optimization. The random forest model demonstrated the best simulation performance. Using this model, we predicted the carbon emission paths for the 13 cities in Jiangsu Province under various scenarios from 2022 to 2040. The results show that Xuzhou has already achieved its peak carbon target. Under the high-speed development scenario, half of the cities can achieve their peak carbon target, while the remaining cities face significant challenges in reaching their peak carbon target. To further understand the factors influencing carbon emissions, we used the machine learning interpretation method SHAP and the features importance ranking method. Our analysis indicates that electricity consumption, population size, and energy intensity have a greater influence on overall carbon emissions, with electricity consumption being the most influential variable, although the importance of the factors varies considerably across different regions. Results suggest the need to tailor carbon reduction measures to the differences between cities and develop more accurate forecasting models.