Artificial intelligence for the diagnosis of heart failure