Intra-patient Arrhythmia Heartbeat Modeling by Gibbs Sampling

  • Ethery Ramírez-Robles
  • Miguel Angel Jara-Maldonado
  • Gibran EtcheverryEmail author
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 11524)


Heartbeat modeling allows to detect anomalies that reflect the functioning of the heart. Certain approaches face this problem by using Gaussian Mixture Models (GMMs) and other statistical classifiers by extracting the fiducial points provided by the MIT-BIH database. In this work, MIT-BIH database heartbeats are modeled into different heartbeat types from a single subject by using the Gibbs Sampling (GS) algorithm. Firstly, a data pre-processing step is performed; this step involves several tasks such as filtering the raw signals from the MIT-BIH database and reducing the heartbeat types to five. Secondly, the GS is applied to the resulting signals of one subject. Thirdly, the Euclidean distance between each heartbeat type is calculated, and lastly, the Bhattacharyya distance is used to classify heartbeats. The results obtained by the GS algorithm were also compared to results obtained by applying the Expectation Maximization (EM) algorithm to the same data-set. Results allow to conclude that GS is a proper solution for separating each heartbeat type; by providing a significant difference between each heartbeat type which can be used for classification.


Arrhythmia Electrocardiogram Gibbs Sampling algorithm Expectation Maximization QRS complex R programming 



Authors would like to acknowledge the Mexican National Council on Science and Technology (CONACyT) and the Universidad de las Américas Puebla (UDLAP) for their support through the doctoral scholarship program.


  1. 1.
    Thaler, M.S.: The Only EKG Book You’ll Ever Need. Board Review Series. Lippincott Williams & Wilkins, Philadelphia (2007)Google Scholar
  2. 2.
    de Chazal, P., O’Dwyer, M., Reilly, R.B.: Automatic classification of heartbeats using ECG morphology and heartbeat interval features. IEEE Trans. Biomed. Eng. 51(7), 1196–1206 (2004)CrossRefGoogle Scholar
  3. 3.
    Povinelli, R.J., Johnson, M.T., Lindgren, A.C., Ye, J.: Time series classification using Gaussian mixture models of reconstructed phase spaces. IEEE Trans. Knowl. Data Eng. 16(6), 779–783 (2004)CrossRefGoogle Scholar
  4. 4.
    Ghorbani Afkhami, R., Azarnia, G., Ali Tinati, M.: Cardiac arrhythmia classification using statistical and mixture modeling features of ECG signals. Pattern Recognit. Lett. 70, 45–51 (2016)CrossRefGoogle Scholar
  5. 5.
    Martis, R.J., Chakraborty, C., Ray, A.K.: A two-stage mechanism for registration and classification of ECG using gaussian mixture model. Pattern Recognit. 42(11), 2979–2988 (2009)CrossRefGoogle Scholar
  6. 6.
    Escalona-Moran, M.A., Soriano, M.C., Fisher, I., Mirasso, C.R.: Electrocardiogram classification using reservoir computing with logistic regression. IEEE J. Biomed. Health Inform. 19(3), 892–898 (2015)CrossRefGoogle Scholar
  7. 7.
    Edla, S., et al.: Sequential Markov chain monte carlo filter with simultaneous model selection for electrocardiogram signal modeling. In: 34th Annual International Conference of the IEEE EMBS, August 2012Google Scholar
  8. 8.
    Kaplan Berkaya, S., et al.: A survey on ECG analysis. Biomed. Signal Process. Control 43, 216–235 (2018)CrossRefGoogle Scholar
  9. 9.
    Da, E.J., Luz, S., et al.: ECG-based heartbeat classification for arrhythmia detection: a survey. Comput. Methods Programs Biomed. 127, 144–164 (2015)Google Scholar
  10. 10.
    Moody, G.B., Mark, R.G.: The impact of the MIT-BIH arrhythmia database. IEEE Eng. Med. Biol. Mag.: Q. Mag. Eng. Med. Biol. Soc. 20, 45–50 (2001)CrossRefGoogle Scholar
  11. 11.
    Walsh, B.: Markov chain monte carlo and gibbs sampling. Lecture Notes Online (2002)Google Scholar
  12. 12.
    Pan, J., Tompkins, W.J.: A real-time QRS detection algorithm. IEEE Trans. Biomed. Eng. BME–32(3), 230–236 (1985)CrossRefGoogle Scholar
  13. 13.
    Association for the Advancement of Medical Instrumentation and American National Standards Institute. Testing and Reporting Performance Results of Cardiac Rhythm and ST-segment Measurement Algorithms. ANSI/AAMI. The Association (1999)Google Scholar
  14. 14.
    Lambert, B.: A Students Guide to Bayesian Statistics. SAGE Publications, Thousand Oaks (2018)Google Scholar
  15. 15.
    Ruppert, D.: Statistics and Data Analysis for Financial Engineering. Springer Texts in Statistics, 1st edn. Springer, Berlin (2010). Scholar
  16. 16.
    Anton, H.: Elementary Linear Algebra. Wiley, Hoboken (2010)Google Scholar
  17. 17.
    Kashyap, R.: Combining dimension reduction, distance measures and covariance, November 2016Google Scholar
  18. 18.
    Theodoridis, S., Konstantinos, K.: Pattern Recognition, 4th edn. Academic Press Inc., Orlando (2008)zbMATHGoogle Scholar

Copyright information

© Springer Nature Switzerland AG 2019

Authors and Affiliations

  • Ethery Ramírez-Robles
    • 1
  • Miguel Angel Jara-Maldonado
    • 1
  • Gibran Etcheverry
    • 1
    Email author
  1. 1.Universidad de las Américas PueblaCholulaMexico

Personalised recommendations