Using AI to see how well past extinctions can predict future biodiversity loss