This study integrated greenhouse gases, environmental, and anthropogenic variables, utilizing big data and five machine learning algorithms, including Random Forest (RF), Gradient Boosting (GBR), Light Gradient Boosting Machine Regressor (LGBMR), CatBoost Regressor (CBR), and eXtreme Gradient Boosting (XGBoost), to establish models for estimating ambient temperatures based on two greenhouse gases, CO2 and CH4. The LGBMR model performed best for CO2, while the XGBR model showed better performance for CH4. The R2 values for the CO2 and CH4 estimation models were 0.993 and 0.999, respectively. Analysis of SHAP values confirmed the significant influence of greenhouse gas concentration, humidity, wind speed, and other factors on predictions. The findings of this study offer new evaluation methods for greenhouse gas emission reduction strategies and provide crucial insights for global climate change research and policy-making, highlighting the importance of interdisciplinary collaboration.