Artificial intelligence used to detect risk of heart attack