In the chain of species extinctions, AI can predict the next link to break