Automatic ECG Signal Analysis Using Type-3 Grammars: From QRS Detection to Cardiac Cycle Characterization

This paper presents a formal grammar-based approach for the automatic analysis of medical signals, with a particular focus on electrocardiogram (ECG) signals. The proposed method uses Type-3 grammars to detect cardiac cycles (CC) from ECG recordings. A regular grammar-based algorithm is used to identify CC and extract relevant features from individual heartbeats. The approach is then extended to detect the boundaries of the P and T waves, allowing the automatic measurement of important ECG parameters, including the RR, PR, QT, corrected QT (QTc), and ST intervals. The proposed framework was evaluated using both normal and pathological ECG signals containing different types of noise. The experimental results show that the method can reliably detect QRS complexes as well as P and T waves, achieving an average detection accuracy of more than 99.63\%. These results demonstrate the robustness and effectiveness of the proposed grammar-based approach for automatic ECG analysis. By providing a structured representation of cardiac cycles and their physiological parameters, the method shows promising potential for supporting the detection and classification of cardiac arrhythmias.

Authors

Institutions

Publication Details

Journal
Research Square
Published
2026-12-03
DOI
https://doi.org/10.21203/rs.3.rs-10883610/v1
Primary Topic
ECG Monitoring and Analysis
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Automatic ECG Signal Analysis Using Type-3 Grammars: From QRS Detection to Cardiac Cycle Characterization

Salah Hamdi
Research Square
ECG Monitoring and Analysis
preprint

Automatic ECG Signal Analysis Using Type-3 Grammars: From QRS Detection to Cardiac Cycle Characterization

Salah Hamdi
preprint en

Abstract

This paper presents a formal grammar-based approach for the automatic analysis of medical signals, with a particular focus on electrocardiogram (ECG) signals. The proposed method uses Type-3 grammars to detect cardiac cycles (CC) from ECG recordings. A regular grammar-based algorithm is used to identify CC and extract relevant features from individual heartbeats. The approach is then extended to detect the boundaries of the P and T waves, allowing the automatic measurement of important ECG parameters, including the RR, PR, QT, corrected QT (QTc), and ST intervals. The proposed framework was evaluated using both normal and pathological ECG signals containing different types of noise. The experimental results show that the method can reliably detect QRS complexes as well as P and T waves, achieving an average detection accuracy of more than 99.63\%. These results demonstrate the robustness and effectiveness of the proposed grammar-based approach for automatic ECG analysis. By providing a structured representation of cardiac cycles and their physiological parameters, the method shows promising potential for supporting the detection and classification of cardiac arrhythmias.

Research Square
University of Monastir (TN)
ECG Monitoring and Analysis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon