Artificial intelligence 'predicts fatal heart attacks up to 5 years in advance'