Using artificial intelligence to manage extreme weather events