Heart failure diagnosis could be sped up with a new AI algorithm.