Researchers say AI-based approach can predict when someone will have cardiac arrest