Rapid smart city expansion has intensified the need for effective carbon emission management, as rising energy consumption, transportation, industrial operations, and urban development accelerate environmental degradation. This study develops an Explainable Artificial Intelligence (XAI) framework to predict urban carbon emissions and identify their primary drivers. The framework integrates Extreme Gradient Boosting (XGBoost) to model nonlinear relationships across eight urban and environmental variables energy consumption, transportation activity, industrial activity, population density, building energy use, renewable energy usage, traffic volume, and temperature with SHapley Additive exPlanations (SHAP) to quantify feature contributions. Model performance is evaluated on an independent testing dataset using Root Mean Square Error (RMSE), Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), and the coefficient of determination (R²). Experimental results demonstrate strong predictive accuracy, achieving an RMSE of 14.28 tCO₂e, an MAE of 10.15 tCO₂e, a MAPE of 5.42%, and an R² of 0.926. Furthermore, global and local SHAP analyses reveal that energy consumption (mean |SHAP| = 18.42) and transportation activity (mean |SHAP| = 12.75) are the strongest positive drivers of predicted emissions, followed by industrial activity and building energy use, whereas renewable energy usage (mean SHAP = -7.64) exerts a notable mitigating effect. These findings confirm that combining XGBoost with SHAP provides both accurate emission prediction and transparent, interpretable evidence, enabling smart city managers to design targeted carbon reduction strategies and advance data-driven sustainable urban planning.
Copyrights © 2026