Abstract:The response of algal growth to driving factors exhibits notable time-lag effects. Existing methods face challenges in accurately identifying time-lag intervals and elucidating the associated driving characteristics under high-dimensional interactions among multiple factors. To address this gap, this study proposed a novel interpretable machine learning framework that integrated random sampling with physically constrained modeling to systematically analyze the time-lag driving characteristics of algal growth. The framework first constructed a time-lag feature set via random sampling, then employed XGBoost and SHAP analysis to adaptively identify the optimal time-lag window for each driving factor. Subsequently, physical constraints were incorporated into model training, and partial dependence plots (PDP) derived from the constrained model were used to quantitatively reveal the nonlinear effects of the drivers. The proposed framework was validated using two lakes of contrasting trophic statuses in the Yunnan Plateau, China: the hyper-eutrophic Dianchi Lake and the mildly eutrophic Erhai Lake. The results demonstrated that: (1) The framework achieved high predictive performance for chlorophyll-a concentrations, with R2 values exceeding 0.88 and MAPE below 14.6%. High-accuracy Chl-a forecasting with lead times of 4 days (R2 = 0.79, MAPE = 13.3%) and 6 days (R2 = 0.82, MAPE = 16.8%) can be realized for Dianchi and Erhai, respectively. (2) During high-algal-bloom periods, the time lags of hydrochemical and meteorological factors were generally longer than those during low-bloom periods, primarily attributable to the cumulative effects of hydrochemical factors on algal growth and light attenuation caused by dense algal blooms. (3) Nutrients responded faster to chlorophyll-a in Dianchi than in Erhai, reflecting the rapid consumption of nutrients under eutrophic conditions. (4) In hyper-eutrophic Dianchi, algal growth was co-driven by hydrochemical factors (pH, DO), nutrients (TN), and oxidizable organic matter (CODMn). In contrast, in mildly eutrophic Erhai, the primary drivers were hydrochemical factors (water temperature, pH, DO). In summary, this framework offered a robust pathway from time-lag identification to mechanistic interpretation, facilitating the development of process-aware and explainable algal bloom forecasting models, and providing science-based support for tailored, proactive ecological management strategies across different lake types.