IDEAS home Printed from https://ideas.repec.org/a/jbh/ijsrcs/v11y2025i6id2075.html

MIDNet: Myocardial Infarction Detection Network using Attention-BiLSTM from ECG

Author

Listed:
  • Mehedi Hassan Melon
  • Nayem Miah
  • Mahidur Rahman
  • Sahadat Khandakar

Abstract

The 12-lead electrocardiogram (ECG) is usually the first test a clinician uses to check for myocardial infarction, but reading every trace by hand is slow and screening queues build up. Automated tools that read the ECG accurately could take some of that load off clinicians and flag infarction sooner. We compare two deep learning models on this problem using the public PTB-XL 12-lead ECG dataset, both trained to tell confirmed myocardial infarction apart from confirmed normal recordings. The first is a 1D residual network (ResNet) with eight residual blocks that works directly on the raw signal. The second, which we call MIDNet, is a convolutional front end followed by a bidirectional LSTM (BiLSTM) with an attention layer that weights the most informative parts of the signal before pooling. Both models use the same PTB-XL split, the same light augmentation, and a class-weighted cross-entropy loss. On the held-out test fold the ResNet reaches 0.964 accuracy and 0.981 AUROC, while MIDNet reaches 0.953 accuracy and 0.981 AUROC with about a third of the parameters; both beat a strong handcrafted-feature baseline. Each model trains in under two minutes on a single GPU. These numbers suggest that small residual and attention-BiLSTM models are already accurate enough to be useful for ECG triage.

Suggested Citation

  • Mehedi Hassan Melon & Nayem Miah & Mahidur Rahman & Sahadat Khandakar, 2025. "MIDNet: Myocardial Infarction Detection Network using Attention-BiLSTM from ECG," International Journal of Scientific Research in Computer Science, Engineering and Information Technology, International Journal of Scientific Research in Computer Science, Engineering and Information Technology, vol. 11(6), pages 714-721, December.
  • Handle: RePEc:jbh:ijsrcs:v11:y2025:i6:id:2075
    DOI: 10.32628/CSEIT26123361
    Note: Article URL: https://ijsrcseit.com/home/article/view/CSEIT26123361
    as

    Download full text from publisher

    File URL: https://ijsrcseit.com/home/article/view/CSEIT26123361
    File Function: Article URL
    Download Restriction: no

    File URL: https://ijsrcseit.com/home/article/download/CSEIT26123361/CSEIT26123361
    File Function: Full text
    Download Restriction: no

    File URL: https://libkey.io/10.32628/CSEIT26123361?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:jbh:ijsrcs:v11:y2025:i6:id:2075. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Pankaj Sharma (USA) (email available below). General contact details of provider: https://ijsrcseit.com/home .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.