New AI algorithm can predict the ‘tipping points’ for future disasters, scientists say