Patients with grade IV heart failure had a higher risk of depression than patients with grade II heart failure, and patients suffered heart failure for 5 to 10 years had a 5.1 times higher risk of depression than patients with heart failure in less than 1 month.