Artificial intelligence finds surprising patterns in Earth's biological mass extinctions