ECG Signal Classification for Detection of Hyperkalemia

Main Article Content

Achamma Thomas, Prasad Lokulwar,Vibha Bora


Potassium Imbalance is a serious problem that is the leading cause of sudden cardiac deaths in chronic kidney patients (CKD). Currently blood test is the gold standard for detection of potassium imbalances. Electrocardiogram (ECG) signals provide a non- invasive way to view the cardiac activity of the heart. It can also be used to detect potassium imbalance in Chronic Kidney patients. However the unique characteristics and complexity of ECG signals make it a very challenging process. This paper presents a machine learning classifier for detection of hyperkalaemia in patients using features extracted from ECG. Feature extraction plays a very crucial role in the machine learning process as it helps to capture the essential information for the learning task which can be used for applications such as classification and detection. Ten statistical features were extracted from ECG signals of patients having potassium within normal range and those with elevated levels of potassium. Classification performance of four different classifiers namely Naïve Bayes Classifier, Support Vector Machine(SVM), K Nearest Neighbors(kNN) and Artificial Neural Networks(ANN) was compared using statistical features. kNN and ANN performed best with classification accuracy of 97.9%.The results we found are in-line with other state-of-art hyperkalaemia classification approaches

Article Details

Author Biography

Achamma Thomas, Prasad Lokulwar,Vibha Bora

[1]Achamma Thomas

2Dr Prasad Lokulwar

3Dr Vibha Bora


[1] Research Scholar, Department of Computer Science & Engineering, G H Raisoni University, Amravati, India,

2Professor, Department of Computer Science & Engineering, G H Raisoni College of Engineering, Nagpur, India,

3Professor, Department of Electronics Engineering, G H Raisoni College of Engineering, Nagpur, India,





Rodrigues, Ana Santos, et al., "Noninvasive monitoring of potassium fluctuations during the long interdialytic interval," IEEE Access, pp. 188488-188502, 2020.

Urtnasan, Erdenebayar, et al., "Noninvasive Screening Tool for Hyperkalemia Using a Single-Lead Electrocardiogram and Deep Learning: Development and Usability Study," JMIR Med Inform, vol. 10, no. 6, p. e34724, 2022.

Kwon, Joon‐myoung, et al., "Artificial intelligence for detecting electrolyte imbalance using electrocardiography.," Annals of Noninvasive Electrocardiology, vol. 26, no. 3, p. e12839, 2021.

Lin, Chin-Sheng, et al., "A Deep-Learning Algorithm (ECG12Net) for Detecting Hypokalemia and Hyperkalemia by Electrocardiography: Algorithm Development," JMIR Med Inform., vol. 8, no. 3, p. e15931., 2020.

Galloway, Conner D., et al., "Development and Validation of a Deep-Learning Model to Screen for Hyperkalemia From the Electrocardiogram," JAMA Cardiology, vol. 4, no. 5, pp. 428-436, 2019.

C. Farrell and M. Z. Shakir, Machine learning enabled ECG monitoring for early detection of hyperkalaemia, AI for Emerging Verticals: Human-Robot Computing, Sensing and Networking (2020 ed.), 2020.

Yasin, Omar Z., et al., "Noninvasive blood potassium measurement using signal-processed, single-lead ecg acquired from a handheld smartphone.," J Electrocardiology, vol. 50, no. 5, pp. 620-625, 2017.

Regolisti, Giuseppe, et al., "Electrocardiographic T wave alterations and prediction of hyperkalemia in patients with acute kidney injury," Intern Emerg Med, vol. 15, no. 3, pp. 463-472, 2020.

B. M. Elliott TL, "Electrolytes: Potassium Disorders," FP Essent., vol. 459, pp. 21-28, 2017.

A. P. T. &. M. R. Johnson, "MIMIC-III Clinical Database (version 1.4)," Scientific Data, p. DOI: 10.1038/sdata.2016.3, 2016.

G. Webb, Naïve Bayes. In: Sammut, C., Webb, G.I. (eds) Encyclopedia of Machine Learning., Boston, MA: Springer, 2011.

S. Suthaharan, Support Vector Machine. In: Machine Learning Models and Algorithms for Big Data Classification., Boston, MA: Springer, 2016.

Johnson, Alistair EW, et al., "MIMIC-III, a freely accessible critical care database," Scientific Data 3, vol., p. 160035, 2016.

Goldberger, Ary L., et al., "PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals.," Circulation [Online]., vol. 101, no. 23, p. e215–e220., 2000.

Guo, Gongde, et al., "KNN Model-Based Approach in Classification," in Lecture Notes in Computer Science, Springer, Berlin, Heidelberg, 2003.

Braspenning, Petrus J., Artificial Neural Networks, Berlin, Heidelberg: Springer, 1995.