The interpretation of Myocardial Infarction (MI) via electrocardiogram (ECG) signal is a challenging task. ECG signals' morphological view show significant variation in different patients under different physical conditions. Several learning algorithms have been studied to interpret MI. However, the drawback of machine learning is the use of heuristic features with shallow feature learning architectures. To overcome this problem, a deep learning approach is used for learning features automatically, without conventional handcrafted features. This paper presents sequence modeling based on deep learning with recurrent network for ECG-rhythm signal classification. The recurrent network architecture such as a Recurrent Neural Network (RNN) is proposed to automatically interpret MI via ECG signal. The performance of the proposed method is compared to the other recurrent network classifiers such as Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU). The objective is to obtain the best sequence model for ECG signal processing. This paper also aims to study a proper data partitioning ratio for the training and testing sets of imbalanced data. The large imbalanced data are obtained from MI and healthy control of PhysioNet: The PTB Diagnostic ECG Database 15-lead ECG signals. According to the comparison result, the LSTM architecture shows better performance than standard RNN and GRU architecture with identical hyper-parameters. The LSTM architecture also shows better classification compared to standard recurrent networks and GRU with sensitivity, specificity, precision, F1-score, BACC, and MCC is 98.49%, 97.97%, 95.67%, 96.32%, 97.56%, and 95.32%, respectively. Apparently, deep learning with the LSTM technique is a potential method for classifying sequential data that implements time steps in the ECG signal.Algorithms 2019, 12, 118 2 of 12 records electrical signals related to heart activity and producing a voltage-chart cardiac rate and being a cardiological test that has been used in the past 100 years [7]. ECG signals have three different waveforms for each cardiac cycle: P wave, QRS complex, and T wave in normal rate [8]. In other cases, ECG form changes in the T waveform, the ST interval length, and ST elevation. Its morphology causes a cardiac abnormality, i.e., Ischemic Heart Disease (IHD) [9]. The IHD is the single largest cause of the main contributors to the disease burden in developing countries [10]. The two leading manifestations of IHD are angina and Acute Myocardial Infarction (MI) [10]. Angina is the characteristic caused by atherosclerosis leading to stenosis of one or more coronary arteries. Then, MI occurs due to a lack of oxygen demand in the cardiac muscle tissue. If cardiac muscle activity increases, oxygen demand also increases [11]. MI is the most dangerous form of IHD with the highest mortality rate [10].MI is usually diagnosed by changes in the ECG due to the increase of serum enzymes, such as creatine phosphokinase and troponin T or I [10]. ECG is the most reliable tool for interpreting ...