Automatic ECG Signal Analysis Using Type-3 Grammars: From QRS Detection to Cardiac Cycle Characterization
Year: 2026
Type: preprint
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.
Source: Research Square
Author: Salah Hamdi
Institution: University of Monastir
Language: English
Topic: ECG Monitoring and Analysis
Subfield: Cardiology and Cardiovascular Medicine
Field: Medicine
Domain: Health Sciences
Open Access status: green
OpenAlex ID: W7242437137
