Bai 2
Bai 2
Research Article
   Open Access. © 2022 Hussain A. Jaber et al., published by De Gruyter.         This work is licensed under the Creative Commons Attribution 4.0
International License.
228         Hussain A. Jaber et al.
McClennen et al. proposed a novel teaching tool for              the ECG signal analysis, which includes feature extraction,
physicians and medical school students. The tool was             and the related works. Section 3 presents an introduction
based on the creation of a web-based ECG system that             to the architectural layout of the web-ECG simulation tools
connects directly with the clinical repository of a hos-         and design process. Section 4 describes the contents and
pital [18]. Rodríguez et al. presented a new approach            results of the proposed web-ECG simulation tools. In
using web service technology to capture, record, and             Section 5, evaluation results of proposed WEB ECG tools
analyze the ECG signals in a personal digital assistant          are presented. Finally, conclusions and future research
carried by a patient [19]. Nilsson et al. introduced stu-        directions are drawn in Section 6.
dies on the evaluation of a web-based ECG interpreta-
tion program using a diagnostic test to allow medical
student users to assess the effect of the program on their
skills in ECG interpretation and extraction [20]. Shopov         2 Methodology and related work
et al. proposed a web-based ECG Personal Health System,
which includes a multi-tiered architecture combined              The proposed web-ECG simulation tools are very compre-
with an information system to facilitate the remote exam-        hensive and significant for clinicians and engineers in
ination and analysis of a physician [21]. Islam et al.           research and medical students. In current work, a com-
designed software tools for ECG analysis using MATLAB            prehensive, general-goal, user-friendly, graphical user
and LABVIEW programs. The tools included the genera-             interface ECG signal extraction features tools, which are
tion, interpretation, extraction, calculation, and compar-       easy to learn have been developed based on MATLAB
ison of different ECG signals [22]. Kırbaş and Bayılmış           Builder NE
introduced a web-based remote monitoring interface using              This package involved the analyses of normal and
MATLAB Builder NE with WebFigure, and this interface             abnormal real ECG signals by calculating the P, Q, R, S,
was applied in medical care using a wireless body area           and T values and detecting heart rate. The main contri-
sensor network [23]. Güney et al. designed a new web-            bution in the presented work is the calculating of the P,
ECG simulator using MATLAB WebFigure and included                Q, R, S, and T values using simple and new equations with
nine types of arrhythmias. In addition, three different           MATLAB. The simple algorithm is tested on the normal
noises, namely, baseline wander, power line interference,        ECG and standard arrhythmia database of the MIT-BIH
and random noise, are added to the clear ECG signal in this      [28], to demonstrate the performance of the proposed algo-
simulator [24]. Granero-Molina et al. studied the implica-       rithm and web-ECG simulation on real ECG data.
tion of new web simulation curricula in nursing schools
and determined the effect of web ECG simulation on stra-
tegies and learning styles [25]. AL-Ziarjawey and Çankaya
proposed a mathematical algorithm to obtain the P, Q, R,         2.1 Normal ECG analysis
S, and T values, draw these values on the ECG wave, and
detect heart rate. The proposed algorithm was materialized       In this work, a new and simple proposed method is per-
by a graphical user interface (GUI) using the MATLAB plat-       formed to obtain the P, Q, R, S, and T values (Figure 1).
form. The software has been devoted to education and             This method is based on finding a mathematical relation-
scientific research [26]. Ogundepo and Ponnle introduced          ship between the highest values (peaks and valleys) of the
a model based on the GUI with MATLAB to analyze ECG              ECG waveform and time. So, the number of samples for
and detect arrhythmia using a back-propagation neural            one cardiac cycle should be selected in an ECG signal first.
network. The proposed tools encompass pre-processing                 In the proposed method, the normal ECG signal is set
of ECG signals and feature extraction [27].                      to 400 sampling during every 1 cycle (example in our
     In this study, a novel web-based ECG simulation             case). The different points are detected by determining
monitoring system based on MATLAB Builder NE and                 the following values:
ASP.NET platform is presented. The web-based ECG simu-           • R point, which is the maximum amplitude in one car-
lation tools were designed and developed for educational           diac cycle (400 samplings) in an ECG signal;
and scientific research rather than clinical diagnosis. A
                                                                        Rpoint = max(one cardiac cycle in ECG signal) . (1)
simple mathematical algorithm for analyzing ECG signal
components is proposed to detect the P, Q, R, S, and T           • Q point, which is the minimum amplitude after shifting
values for real normal and abnormal ECG cases. This paper          several steps (d1) toward the left of the R point at posi-
is structured as follows. Section 2 presents a brief review of     tion (R-d1);
                                                                                                              Web laboratory interface for ECG      229
120 R
100
80
             60
Amplitude
             40
                                                                              T
             20
                                     P
                                                                S
            -20                                     Q
                  0      50    100       150       200         250      300   350   40 0
                                                Sampling
R-d1
Name of          Normal sinus rhythm    Apnea-ECG              Supraventricular          Ventricular              Intra cardiac atrial
abnormality                                                    Arrhythmia                Tachyarrhythmia          fibrillation
Rate             96 bpm                 73 bpm                 53 bpm                    125 bpm                  125 bpm
Rhythm           Regular                Regular                Regular                   May be irregular         Irregular
ecg graph with   P = 19, Q = −83,       P = 31, Q = −48,       P = −15, Q = −27,         P = −29, Q = −85,        P = −432, Q = −984,
waves            R = 439, S = −155,     R = 294, S = −165,     R = 283, S = −115,        R = 1,026, S = −60,      R = 7,696, S = −1,041,
characteristic   T = 43                 T = 47                 T = −7                    T = −25                  T = −404
4 Web-ECG results
The results of the web-ECG simulation tools are com-                                                            Test the Web page by
posed of the following components: first, ECG analyses                      Adding Webfigure                    running it in Microsoft
                                                                         Control to Web site page               Visual Studio, Select
of a normal ECG trace; second, ECG analyses of abnorm-                                                          Debug, then starting
alities. First of all, a simple user registration form is built                                                       Debugging
in ASP.Net designing using C# to allow the user to reg-                                                        Web Browser Platform
ister with the website. This step helps the user to enter
and utilize the web-ECG simulation tools. The user fills up
the registration form with several details, such as user-                                                                End
The first section of the proposed package provides the         This tool analyzes the ECG recordings to obtain the P, Q,
main features of the analysis of a normal ECG signal          R, S, and T values and detect heart rate (Figure 7), as
from the MIT-BIH Database PhysioNet. The steps of             follows:
detecting P-QRS-T and heart rate are presented in a simple     1) A full sampling of ECG signal recordings is drawn
flowchart, as shown in Figure 6. The first step is the selec-        after the selection of the type of data as an a.mat,.txt,
tion of the ECG lead (I, II, or III) and the type of file           or.xlsx file that matches with the lead I, II, or III.
(.mat.txt, or .xlsx file). Then, the proposed algorithm         2) Data are imported from the hard disk or over the
starts to read the ECG data and remove the low- and                network and from any type of data.
high-frequency components. Then, the windowing filter           3) Selecting the “Detect R-peak & HR” button imple-
and thresholding are used to find the local maxima.                 ments the detection of heart rate proceedings using
Finally, an adjust filter (again windowing filter) is used
to detect R–peaks, heart rate, and P-QRS-T waves using
a simple mathematical calculation.
     The first section of the proposed package provides                       Start
the main features of the analysis of a normal ECG signal.
Figure 4: ASP.NET website registration page.                  Figure 6: Detection of P-QRS-T and heart rate.
232          Hussain A. Jaber et al.
      a windowing filter twice to find the local maxima of            4.2 Abnormal ECG analysis
      the R-peak after removal of the low-frequency com-
      ponents. Then, the filter size is adjusted.                    The other section of the WEB-ECG Simulation tools packages
 4)   The user can save the graph in any of three types of          provides the same features as the previous section. The main
      files (.fig, .png or .bmp) when the “Export & save              different features in this part are the ECG abnormality ana-
      Graph” button is clicked.                                     lysis. This analysis includes (supraventricular arrhythmia,
 5)   The user can save data as .txt, .mat, or .xlsx file.           apnea, normal sinus rhythm, ventricular tachyarrhythmia,
 6)   The program can save different types of images (figures).       and intracardiac atrial fibrillation) which analyzes the
 7)   The program can also save different types of data.             abnormalities of ECG recordings. The objective of this ana-
 8)   Clicking the “Get Analysis Data” button will run ECG          lysis is to detect arrhythmia and calculate P, Q, R, S, and
      data analysis to calculate the P, Q, R, S, and T values.      T waves; as well as to detect the heart rate of ECG
      The number of samples for one cardiac cycle in an             abnormalities. Therefore, Table 1 and Figure 8 provide
      ECG signal of the P-QRS-T waves should be set to 400          all abnormal ECG signals and a summary of the results
      samples.                                                      of these abnormalities.
 9)   The user can save the graph displayed at the bottom                Table 1 lists the data from several abnormal ECG sig-
      in any of the three types of files (.fig, .png, or .bmp)        nals from the MIT-BIH Database Arrhythmia PhysioNet.
      when this button is clicked.                                  The first case is normal sinus rhythm, in which the heart-
10)   The user can print out each figure.                            beat is normal at 96 bpm (between 60 and 100 bpm). The
11)   Different types of images are available.                       rhythm is healthy with a normal and regular heartbeat.
12)   The user can select whether to print all or specific           The shape of this case shows three clear deflection waves,
      samples.                                                      namely, P, QRS, and T.
13)   The range of sampling data is entered.                             The second signal shows an apnea ECG, which may
14)   The “POP-UP” menu is used to select steps to detect           be misinterpreted as normal because of the regular rhythm
      R-peaks and heart rate.                                       and normal heart rate of 73 bpm (between 60 and 100).
15)   The type of data (.mat, txt, and xlsx) is selected.           The shape of the wave also embodies the three deflections.
16)   The user selects data for any lead of the ECG that the        The third case is supraventricular arrhythmia, which shows
      user wants to be drawn.                                       an abnormality in the timing or pattern of the heartbeat.
                                                                                       Web laboratory interface for ECG      233
Figure 8: Third main page of the proposed web-ECG simulation tools for analyzing abnormal ECG signals.
Arrhythmias lead to very rapid, very low, or irregular heart-      designed to rank the WEB ECG system with eleven ques-
beat. In supraventricular arrhythmia, the heartbeat is very        tions, by using a scale of five points (excellent = 5, very
low at 53 bpm. The fourth case is ventricular tachyar-             good = 4, good = 3, fair = 2, and very poor = 1). The
rhythmia, which shows irregular rhythm and very rapid              evaluation form is filled out by students after using the
heartbeat at 125 bpm (over 120 bpm). The fifth case is intra-       WEB ECG system tools and submitted to the serve under
cardiac atrial fibrillation. This condition is activated in the     the ASP.NET platform.
atria which leads to an irregular rhythm. The heartbeat is              The information of evaluation is saved in the data-
very rapid at 125 bpm (over 120 bpm).                              base table connected to this site, then authors can ana-
                                                                   lyze these data to convert them into a statistical report
                                                                   (bar graph) (Figure 10) that reflects how the students are
                                                                   evaluated by this system. The statistical report is benefi-
5 WEB-ECG assessment                                               cial in examining the skills gained by students after uti-
                                                                   lizing the WEB ECG system as well as providing feedback
Web ECG simulation tools have been tested for validity             information about the extent of WEB ECG success and
and educational contributions, by considering these tools          meets the requirements of distance learning. The results
as a supplement for medical practitioners or biomedical            of the statistical report are shown in Figure 10. The ques-
engineers and as an efficacious educational tool for                 tions in the evaluation form can be classified into five
learning and analyzing ECG. Web ECG system is evaluated            sets. The first four questions are concerning in the facil-
at the Al-Nahrain University in which nearly 62 students in        itating the education success as well as learning how
biomedical engineering in both undergraduate and grad-             to calculate heart rate and P, Q, R, S, and T values with
uate studies participated to assess the WEB-ECG system             WEB ECG tools. There are at least 81% of students were
in terms of educational contributions and validity. WEB            said that the WEB ECG system has a positive response
ECG system tools were designed with an automatic evalua-           regarding the ease of using this system. The second set
tion form (Figure 9) on the main page of this system in            includes questions (five, six, seven, and eight) that are
which several questions are presented about the efficiency           related to ease of use as well as to purpose to get feedback
and flexibility of this system. The evaluation form was             on the use of the WEB ECG system, and most of the
234          Hussain A. Jaber et al.
                                              60
                    Evaluaon Percentage(%)
50
40
30
20
10
                                               0
                                                   Q1    Q2         Q3   Q4      Q5        Q6       Q7    Q8     Q9     Q 10   Q 11
                                                                                     Evaluaon Quesons
students were believed that the WEB ECG system is very          and the main contribution to this work is the implemen-
useful and very easy to use as well as user-friendly tools,     tation of a new and simple proposed method to obtain
as a result, the average is increased to 85%. The third set     values of P, Q, R, S, and T. This method is based on
has only the ninth question, related to the response time       finding a mathematical relationship between the highest
of WEB ECG simulation tools. There are at least 80% of          values (peaks and valleys) of the ECG waveform and time.
students who said that the WEB ECG system has a nega-                In the presented tool, the clinicians are capable to
tive response regarding the time response of using this         import data (any type of ECG signal) from any place
system, because students have to wait for around in             (inside the computer, outside computers like hard disk
sometimes more than one minute for getting the result           or any storage as well as from internet website). However,
because of the connection between the student (client)          the equipment utilized in these laboratories are still so
and server need some time, so the average is decreased          costly, so the suggested WEB ECG tools in current work
to 42%.                                                         are presented as cheap educational interface way as well
     The fourth set has only the tenth question that is         as user-friendly tools for students and researchers. This
related to the overall success and score of WEB ECG;            tools package enables the opening of a new approach for
the majority of students, nearly 83%, have believed the         researchers and undergraduate and graduate students
WEB ECG system is very acceptable and successful. The           about how they can use ECG signals and be familiar
fifth set has only the eleventh question, which relates to       with other biosignals in the future by using similar tools
whether the structure of the WEB ECG system is adap-            for processing and extracting features of it. As a result,
table and appropriate for designing a different web-based        the aim of designing WEB ECG tools is to improve the
on different biomedicine fields. There are 80% of stu-            learning of students and understanding of how can find
dents who have thought that the structure of WEB ECG            some features extraction of ECG.
is suitable to design and perform another WEB system for
another application course in the biomedical field for
improving the practical skills of students.
                                                                7 Conclusion and future works
                                                                The proposed current work is very necessary and has
6 Discussion                                                    vital significance, especially in countries that suffer
                                                                from a lack of financial resources which lead to raising
Laboratories are the essential support for undergraduate        the criterion of the education level profession. It should
students and researchers with each other as well as courses     promote sharing medical consultation in the field of
that lead to improving their skills in solving and fixing        cardiology between medical centers in different gover-
practical problems, particularly in engineering laboratories.   norates inside the country and also between centers in
These laboratories present experiments in evolving stu-         other countries.
dents’ skills which leads to promoting universities which            The presented simulation tools are essential for aca-
are the basis for the development of countries.                 demic instruction by clinicians, engineers, and researchers,
     There are different literature that introduced a descrip-   as well as for the training of medical students. This package
tion of the development of the ECG simulator on various         is beneficial as a supplement for medical practitioners and
platforms, but still, all the presented work was limited to a   as an efficacious educational tool for learning and analyzing
specific type and number of ECG signal cases. Software           ECGs. The proposed web-ECG simulation tools can be uti-
tool using MATLAB and LABVIEW programs has been                 lized to train clinicians and engineers working in fields
introduced for analyzing different ECG signals [22]. A           related to the study of heart disease. The proposed web-
web-based using MATLAB Builder NE with WebFigure                ECG simulation tool package is a simple and authoritative
was applied in medical care using a wireless body area          method to detect the P, Q, R, S, and T values of normal and
sensor network [23]. Another web-ECG simulator using            abnormal ECG cases.
MATLAB WebFigure has been introduced to deal with                    Therefore, the package provides the following main
nine types of arrhythmias and three different noises [24].       features:
     The presented ECG software package is designed to          1) Detection of R-peaks and measurement of the heart
extract features for any shape of ECG signal and classify           rate in real normal and abnormal ECG signals.
the ECG signals for detecting arrhythmia according to the       2) Detection of P, Q, R, S, and T values in real normal and
analyzed signals. Actually, our tool has many structures,           abnormal ECG signals.
236           Hussain A. Jaber et al.
3) Classification of ECG signals to detect arrhythmia                           vol. 18, no. 2. pp. 154–166, Feb. 2022. doi: 10.3991/
   according to the analyzed signals. These cases included                     IJOE.V18I02.27047.
   supraventricular arrhythmia, apnea, normal sinus                     [2]    H. K. Aljobouri and F. E. Ali. “Brain-Computer interface based
                                                                               on VEP and FMRI package,” Am. J. Biomed. Sci., vol. 2019,
   rhythm, ventricular tachyarrhythmia, and intracardiac
                                                                               no. 1. pp. 36–43, 2019. doi: 10.5099/aj190100036.
   atrial fibrillation.                                                  [3]    N. Kumar, I. Ahmad, and D. P. Rai. “Signal processing of ECG
4) Differentiation of the shape of normal from abnormal                         using matlab.” 2012. Accessed: Apr. 07, 2019. [Online].
   ECG signals by analyzing these signals and extracting                       https://www.semanticscholar.org/paper/Signal-Processing-
   the features of both types of ECG traces.                                   of-ECG-Using-Matlab-Kumar-Ahmad/
                                                                               750aa9af65c578a1f02450b20214fb0b849569e1.
5) Building a web-ECG simulation tool package without
                                                                        [4]    H. K. Al-Jobouri. “Wireless bioinstruments for telecare,” 2011
   installing any program (MATLAB) such that users who                         1st Middle East Conference on Biomedical Engineering,
   do not have MATLAB can use this package directly                            MECBME 2011, 2011, pp. 5–10. doi: 10.1109/
   using a few buttons.                                                        MECBME.2011.5752052.
6) Web ECG can be used in laboratory environments as                    [5]    S. Karpagachelvi, M. Arthanari, and M. Sivakumar. “ECG feature
                                                                               extraction techniques – a survey approach,” May 2010, Accessed:
   well as for distance learning by running only a web
                                                                               Apr. 07, 2019. [Online]. http://arxiv.org/abs/1005.0957.
   browser without the need to install any other program.
                                                                        [6]    J. D. Bronzino. The Biomedical Engineering Handbook, CRC/
7) Web ECG can be operated across different computer                            Taylor & Francis, UK, 2006.
   platforms such as Windows, Linux, UNIX, and son.                     [7]    H. K. AL-Jobouri, I. Cankaya, and O. Karal. “From biomedical
                                                                               signal processing techniques to fmri parcellation,” Biosci.
     In summary, the proposed WEB-ECG Simulation tool is                       Biotechnol. Res. Asia, vol. 12, no. 2. pp. 1115–1138, 2015.
                                                                               doi: 10.13005/bbra/1764.
more beneficial for academic students as a supplemental
                                                                        [8]    U. R. Acharya, J. S. Suri, J. A. E. Spaan, S. M. Krishnan, Eds.
course. Moreover, the installation of MATLAB is not neces-                     Advances in Cardiac Signal Processing, Berlin, Heidelberg, Springer
sary to use the package. Only MATLAB Compiler Runtime                          Berlin Heidelberg, 2007. doi: 10.1007/978-3-540-36675-1
(MCR) and a web browser are required. Web-ECG system is                 [9]    G. S. Wagner, and D. G. Strauss. Marriott’s Practical
very easy to run and maintain. The package is robust and                       Electrocardiography. LWW, UK, 2013.
flexible. The tool is very easy to grow and develop.                     [10]   R. K. Hobbie, B. J. Bradley, and J. Roth. Intermediate Physics for
                                                                               Medicine and Biology, Springer, New York, NY, 2010.
     For future work, the method can be developed further
                                                                        [11]   M. Ayala, M. Adjouadi, M. Cabrerizo, and A. Barreto. “A
by applying it to telemedicine. Cardiac arrhythmia detection                   Windows-based interface for teaching image processing,”
through remote access to ECG diagnosis is highly effective                      Computer Appl. Eng. Educ., vol. 18, no. 2, Jun. 2009.
and beneficial for medical practitioners and patients. The                      doi: 10.1002/cae.20171.
remote access control is performed between the patient and              [12]   R. Peredo, A. Canales, A. Menchaca, and I. Peredo. “Intelligent
                                                                               Web-based education system for adaptive learning,” Expert.
the hospital or research center by transmitting ECG informa-
                                                                               Syst. Appl., vol. 38, no. 12. pp. 14690–14702, Nov. 2011.
tion of a patient for 24 h a day, especially from one clinic or                doi: 10.1016/J.ESWA.2011.05.013.
patient’s home for chronic patients to a remote site. Thus,             [13]   A. Canales, A. Peña, R. Peredo, H. Sossa, and A. Gutiérrez.
this service facilitates the feasibility of a homecare service                 “Adaptive and intelligent web based education system:
center for telehomecare and creates a link between nurses                      Towards an integral architecture and framework,” Expert. Syst.
and specialist doctors when an abnormality is found in the                     Appl., vol. 33, no. 4. pp. 1076–1089, Nov. 2007. doi: 10.1016/
                                                                               J.ESWA.2006.08.034.
patient. Future studies related to ECG diagnosis using tele-
                                                                        [14]   Y. Linn. “An ultra low cost wireless communications laboratory
medicine applications are very significant. Moreover, other                     for education and research,” IEEE Trans. Educ., vol. 55, no. 2.
techniques, such as artificial neural networks, can be used                     pp. 169–179, May 2012. doi: 10.1109/TE.2011.2158318.
to process ECG signals.                                                 [15]   J. F. Burke, E. Gnall, Z. Umrudden, M. Kyaw, and P. K. Schick.
                                                                               “Critical analysis of a computer-assisted tutorial on ECG
                                                                               interpretation and its ability to determine competency,” Med.
Conflict of interest: Authors state no conflict of interest.
                                                                               Teach., vol. 30, no. 2. pp. e41–e48, Jan. 2008. doi: 10.1080/
                                                                               01421590801972471.
Data Availability Statement: PhysioBank Databases.                      [16]   Y. Lessard, J. P. Sinteff, P. Siregar, N. Julen, F. Hannouche, S.
https://physionet.org/physiobank database.                                     Rio, et al. “An ECG analysis interactive training system for
                                                                               understanding arrhythmias,” Stud. Health Technol. Inf.,
                                                                               vol. 150, pp. 931–935, 2009. Accessed: Apr. 08, 2019.
                                                                               [Online]. http://www.ncbi.nlm.nih.gov/pubmed/19745450.
                                                                        [17]   A. Al-Omary, W. El-Medany, and R. Al-Hakim. “Heart disease
References                                                                     monitoring system using web and smartphone,” 2007.
                                                                               Accessed: Apr. 08, 2019. [Online]. www.ijareeie.com.
[1]   H. K. Aljobouri. “A virtual EMG signal control and analysis for   [18]   S. McClennen, L. A. Nathanson, C. Safran, and A. L.
      optimal hardware design,” Int. J. Online Biomed. Eng. (iJOE),            Goldberger. “ECG wave-maven: An Internet-based
                                                                                                   Web laboratory interface for ECG               237