Artificial intelligence 'better at diagnosing heart failure' than standard test