A model developed using artificial intelligence is better at predicting risk of death in patients with heart disease than models designed by medical experts, a new study shows.