AUTHOR=Zhang Zhi , Wang Dagang , Mei Yiwen , Zhu Jinxin , Xiao Xusha TITLE=Developing an explainable deep learning module based on the LSTM framework for flood prediction JOURNAL=Frontiers in Water VOLUME=Volume 7 - 2025 YEAR=2025 URL=https://www.frontiersin.org/journals/water/articles/10.3389/frwa.2025.1562842 DOI=10.3389/frwa.2025.1562842 ISSN=2624-9375 ABSTRACT=Long short-term memory (LSTM) networks have become indispensable tools in hydrological modeling due to their ability to capture long-term dependencies, handle non-linear relationships, and integrate multiple data sources but suffer from limited interpretability due to their black box nature. To address this limitation, we propose an explainable module within the LSTM framework, specifically designed for flood prediction across 531 catchments in the contiguous United States. Our approach incorporates a simplified gated module, which is interposed between the input data and the LSTM network, providing a transparent view of the module’s pattern recognition process. This gated module allows for easy identification of key variables and optimal lookback windows, and clusters the gated information into four categories: short-term and long-term impacts of precipitation and temperature. This categorization enhances our understanding of how the module utilizes input data and reveals underlying mechanisms in flood prediction. The modular design of our approach demonstrates high correlation with Saliency method, validating the credibility of its explanatory mechanisms, providing comparable interpretability features to LSTMs while illuminating key variables and optimal lookback windows considered most informative by hydrological models, and opening up new avenues for AI-assisted scientific discovery in the field.