the dataset to classify an ECG signal based on the
presence or absence of the P-wave. The classification
results are promising, with the best performing
model outperforming the classifier proposed by Liu
et al. (2018). The prototype BN used (Figure 3)
demonstrates how risk factors for AF can be used to
explain the occurrence of AF in an individual. The
parameters of the BN presented here can be adjusted
to represent the prevalence of different risk factors
in different populations. The BN can be extended to
accommodate other types of arrhythmia.
Despite these promising results, this study
has some limitations. The number of patients
in the dataset used to train the ML models is
quite small. This is because there is a limited
number of ECG datasets with accurate, expertly
annotated P-waves. For future work, we intend to
create a larger dataset which includes ECG signals
collected from commercially available wearable
devices. We will also explore ways to boost the
performance of the ML models, for example through
additional hyperparameter tuning. Additionally, the
generalisability of the ML models could be further
improved using leave-one-out cross-validation, in
which the number of folds corresponds to the number
of patients in the dataset. To further validate the BN,
expert clinicians need to be involved in improving
and testing the prototype BN. We also plan to
explore how new unknown situations or ECG patterns
that can lead to construction of new theories, as
suggested in Wanyana and Moodley (2021), can be
incorporated into the agent-based system towards
knowledge discovery and evolution.
ACKNOWLEDGEMENTS
This work was financially supported by the Hasso
Plattner Institute for Digital Engineering through the
HPI Research School at UCT. The authors thank the
reviewers for suggestions made, which have helped to
improve this paper.
REFERENCES
Chugh, S. S., Roth, G. A., Gillum, R. F., and Mensah,
G. A. (2014). Global burden of atrial fibrillation
in developed and developing nations. Global Heart,
9(1):113–119.
Couceiro, R., Carvalho, P., Henriques, J., Antunes, M.,
Harris, M., and Habetha, J. (2008). Detection of
atrial fibrillation using model-based ECG analysis.
In 2008 19th International Conference on Pattern
Recognition, pages 1–5. IEEE.
Darwiche, A. (2010). Bayesian networks. Communications
of the ACM, 53(12):80–90.
Dias, D. and Cunha, J. P. S. C. (2018). Wearable
health devices—vital sign monitoring, systems and
technologies. Sensors, 18(8):2414.
Feinberg, W. M., Blackshear, J. L., Laupacis, A.,
Kronmal, R., and Hart, R. G. (1995). Prevalence,
age distribution, and gender of patients with atrial
fibrillation: Analysis and implications. Archives of
Internal Medicine, 155(5):469–473.
Fuster-Parra, P., Tauler, P., Bennasar-Veny, M., Ligeza, A.,
Lopez-Gonzalez, A., and Aguil
´
o, A. (2016). Bayesian
network modeling: A case study of an epidemiologic
system analysis of cardiovascular risk. Computer
methods and programs in biomedicine, 126:128–142.
Goldberger, A. L., Amaral, L. A., Glass, L., Hausdorff,
J. M., Ivanov, P. C., Mark, R. G., Mietus, J. E.,
Moody, G. B., Peng, C.-K., and Stanley, H. E.
(2000). PhysioBank, PhysioToolkit, and PhysioNet:
Components of a new research resource for complex
physiologic signals. Circulation, 101(23):e215–e220.
Hagiwara, Y., Fujita, H., Oh, S. L., Tan, J. H., San Tan,
R., Ciaccio, E. J., and Acharya, U. R. (2018).
Computer-aided diagnosis of atrial fibrillation based
on ECG signals: A review. Information Sciences,
467:99–114.
Hastie, T., Tibshirani, R., and Friedman, J. (2009). Model
Assessment and Selection. In The Elements of
Statistical Learning: Data Mining, Inference, and
Prediction, chapter 7, pages 219–259. Springer, 2nd
edition.
Hong, S., Zhou, Y., Shang, J., Xiao, C., and Sun, J.
(2020). Opportunities and challenges of deep learning
methods for electrocardiogram data: A systematic
review. Computers in Biology and Medicine,
122:103801.
Hossain, M. B., Bashar, S. K., Walkey, A. J., McManus,
D. D., and Chon, K. H. (2019). An accurate QRS
complex and P wave detection in ECG signals using
complete ensemble empirical mode decomposition
with adaptive noise approach. IEEE Access,
7:128869–128880.
Johnson, K. W., Torres Soto, J., Glicksberg, B. S., Shameer,
K., Miotto, R., Ali, M., Ashley, E., and Dudley,
J. T. (2018). Artificial intelligence in cardiology.
Journal of the American College of Cardiology,
71(23):2668–2679.
Korb, K. B. and Nicholson, A. E. (2010). Bayesian artificial
intelligence. CRC Press.
Kornej, J., B
¨
orschel, C. S., Benjamin, E. J., and Schnabel,
R. B. (2020). Epidemiology of atrial fibrillation in
the 21st century: Novel methods and new insights.
Circulation Research, 127(1):4–20.
Kyrimi, E., Neves, M. R., McLachlan, S., Neil, M., Marsh,
W., and Fenton, N. (2020). Medical idioms for
clinical Bayesian network development. Journal of
Biomedical Informatics, 108:103495.
Liu, N., Sun, M., Wang, L., Zhou, W., Dang, H., and Zhou,
X. (2018). A support vector machine approach for af
Combining Machine Learning and Bayesian Networks for ECG Interpretation and Explanation
91