A new algorithmic framework that can predict flooding could help save lives and reduce the devastation as climate change drives more intense and unpredictable rainfall.