In one implementation, a method is provided for detecting heart failure
which includes retrieving a three-dimensional posture template
corresponding to a normal evoked response. The method further includes
capturing an intracardiac electrogram of an evoked response and detecting
a three-dimensional posture corresponding with the intracardiac
electrogram. The detected three-dimensional posture and the
three-dimensional posture template are compared. The captured
intracardiac electrogram is used for heart failure trend analysis if the
comparison of the detected three-dimensional posture and the
three-dimensional posture template indicates a same posture.