The document describes a study that uses an electronic health record and the K-dimensional tree classifier to predict the risk of heart failure. The study aims to use more risk factors from a patient's electronic health record to more accurately predict heart failure risk compared to previous methods. The proposed method involves preprocessing the electronic health record data, using an admin module to input patient details, and applying the K-dimensional tree classifier to partition the data and determine the risk level. The results show that the K-dimensional tree approach can reliably predict heart failure risk. Future work could analyze each heart failure risk factor and predict the level of risk as high or low.