AI predicts precursors to heart attacks