Neural Network based ECG Anomaly Detection on FPGA

  • Mahesh KT
Keywords: ECG classification; survey; preprocessing; neural network; mit-bih database; feature extraction; MLP;PNN


This paper presents FPGA-based ECG arrhythmia detection using an Artificial Neural Network(ANN). The objective is to implement a neural network-based machine learning algorithm on FPGA to detect anomalies in ECG signals, with a better performance and accuracy, compared to statistical methods. An implementation with Principal Component Analysis (PCA) for feature reduction and a hybrid approach which include multi-layer perceptron (MLP) and Probabilistic neural network (PNN) for classification, proved superior to other algorithms. For implementation on FPGA, the effects of several parameters and simplification on performance, accuracy and power consumption were studied. Piecewise linear approximation for activation functions and fixed point implementation were effective methods to reduce the amount of needed resources. The resulting neural network with twelve inputs and six neurons in the hidden layer, achieved, in spite of the simplifications, the same overall accuracy as simulations with floating point number representation. An accuracy of 99.82% was achieved on average for the MIT-BIH database.


[1] M. S. Thaler, The only EKG book you’ll ever need. Lippincott Williams & Wilkins, 2010.
[2] R. Ceylan and Y. Ozbay, “Comparison of FCM, PCA and WT¨ techniques for classification ECG arrhythmias using artificial neural network,” Expert Systems with Applications, vol. 33, no. 2, pp. 286–295, 2007.
[3] V. Dubey and V. Richariya, “A neural network approach for ECG classification,” International Journal of Emerging Technology & Advanced Engineering, vol. 3, 2013.
[4] A. E. Zadeh, A. Khazaee, and V. Ranaee, “Classification of the electrocardiogram signals using supervised classifiers and efficient features,” computer methods and programs in biomedicine, vol. 99, no. 2, pp. 179–194, 2010.
[5] S. M. Jadhav, S. L. Nalbalwar, and A. A. Ghatol, “ECG arrhythmia classification using modular neural network model,” in IEEE EMBS Conference on Biomedical Engineering and Sciences, 2010.
[6] S. L. N. Jadhav, Shivajirao M. and A. A. Ghatol, “Generalized feedforward neural network based cardiac arrhythmia classification from ECG signal data,” in Advanced Information Management and Service (IMS), 2010 6th International Conference on. IEEE, 2010, pp. 351–356.
[7] Y. Sun and A. C. Cheng, “Machine learning on-a-chip: A highperformance low-power reusable neuron architecture for artificial neural networks in ECG classifications,” Computers in biology and medicine, vol. 42, no. 7, pp. 751–757, 2012.
[8] M. W. Gardner and S. Dorling, “Artificial neural networks (the multilayer perceptron)a review of applications in the atmospheric sciences,” Atmospheric environment, vol. 32, no. 14, pp. 2627–2636, 1998.
[9] R. Mark and G. Moody, “Mit-bih arrhythmia database directory,” 1988.
[10] G. B. Moody and R. G. Mark, “The impact of the MIT-BIH arrhythmia database,” IEEE Engineering in Medicine and Biology Magazine, vol. 20, no. 3, pp. 45–50, 2001.
[11] F. Paulin and A. Santhakumaran, “Classification of breast cancer by comparing back propagation training algorithms,” International Journal on Computer Science and Engineering, vol. 3, no. 1, pp. 327–332, 2011.
[12] M. Riedmiller and H. Braun, “A direct adaptive method for faster backpropagation learning: The rprop algorithm,” in Neural Networks, 1993., IEEE International Conference On. IEEE, 1993, pp. 586–591.
[13] O. Kis¸i, “Comparison of three back-propagation training algorithms for¨ two case studies,” Indian journal of engineering & materials sciences, vol. 12, no. 5, pp. 434–442, 2005.
[14] W. Duch and N. Jankowski, “Transfer functions: hidden possibilities for better neural networks.” in ESANN. Citeseer, 2001, pp. 81–94.
[15] H. Amin, K. M. Curtis, and B. R. Hayes-Gill, “Piecewise linear approxim maation applied to nonlinear function of a neural network,” IEE Proceedings-Circuits, Devices and Systems, vol. 144, no. 6, pp. 313– 317, 1997.
[16] H. Hikawa, “A digital hardware pulse-mode neuron with piecewise linear activation function,” IEEE Transactions on Neural Networks, vol. 14, no. 5, pp. 1028–1037, 2003.
How to Cite
P N, S., & KT, M. (2019). Neural Network based ECG Anomaly Detection on FPGA. Asian Journal For Convergence In Technology (AJCT), 5(2). Retrieved from