Flash flood events are some of the most life-threatening natural disasters, so it is important to predict extreme rainfall events effectively. This study introduces an LSTM model that utilizes a customized loss function to effectively predict extreme rainfall events. The proposed model incorporates dynamic environmental variables, such as rainfall, LST, and NDVI, and incorporates additional static variables such as soil type and proximity to infrastructure. Wavelet transformation decomposes the time series into low- and high-frequency components to isolate long-term trends and short-term events. Model performance was compared against Random Forest (RF), Support Vector Machines (SVMs), Artificial Neural Networks (ANNs), and an LSTM-RF ensemble. The custom loss LSTM achieved the best performance (MAE = 0.022 mm/day, RMSE = 0.110 mm/day, R2 = 0.807, SMAPE = 7.62%), with statistical validation via a Kruskal–Wallis ANOVA, confirming that the improvement is significant. Model uncertainty is quantified using a Bayesian MCMC framework, yielding posterior estimates and credible intervals that explicitly characterize predictive uncertainty under extreme rainfall conditions. The sensitivity analysis highlights rainfall and LST as the most influential predictors, while wavelet decomposition provides multi-scale insights into environmental dynamics. The study concludes that customized loss functions can be highly effective in extreme rainfall event prediction and thus useful in managing flash flood events.
Al-Rawas et al. (Mon,) studied this question.