Abnormalities in the electrocardiogram (ECG) signal may be an early indication of a heart rhythm disorder. A method that can be used to identify these abnormalities is to classify heartbeats into five classes: non-ectopic beat (N), supraventricular ectopic beat (S), ventricular ectopic beat (V), fusion beat (F), and unknown beat (Q). This study proposes a combination of Transformer and BiLSTM a…