Artificial intelligence (AI) measurements of heart function from MRI scans are more strongly linked to how long patients live after their scan than measurements made by clinicians, suggesting that AI could provide a useful first-line approach to measuring heart function.