Abstract
Extreme and changing environmental conditions can influence emergency healthcare demand, making the ability to understand and anticipate ED utilization a global public health priority. However, evidence on temperature related ED utilization and short-term forecasting remains limited in low- and middle-income settings, particularly in South Asia. We examined the associa tion between ambient temperature and daily adult emergency department (ED) visits and evaluated meteorological and historical demand variables for short-term ED forecasting in Karachi, Pakistan. We conducted a retrospective time-series study of 1,322,537 adult ED visits recorded at Indus Hospital and Health Network over a 10-year period (2016–2025). Lagged Pearson correlations were used to assess associations between meteorological variables and ED visits, followed by a quasi-Poisson distributed lag non-linear model (DLNM) to characterize nonlinear and delayed temperature effects. SARIMA, SARIMAX, XGBoost, and LightGBM were trained using temporally or dered data and evaluated on an unseen test period. Temperature showed the strongest correlation with ED visits among the evaluated meteorological variables. Using 28.3◦C as the reference, cumulative RR was 0.839 (95% CI 0.792–0.889) at 18.5◦C and 1.062 (95% CI 1.034–1.091) at 31.7◦C, demon strating a nonlinear temperature-associated pattern. For forecasting, models incorporated meteorological conditions, calendar variables, and historical ED demand. LightGBM achieved an MAPE of 6.55% and R2 of 0.56, followed by XGBoost (6.63%; R2 0.54). SHAP analysis showed that recent ED demand, particularly the seven-day rolling mean and recent lags, contributed most to predictions. This large, decade-long dataset provides evidence from a resource-constrained setting and demonstrates the potential of integrating en vironmental and demand signals to support short-term emergency healthcare planning under changing climatic conditions.