Swin Transformer Enhanced with OOD Detection for Robust and Reliable Diagnosis of Ischemic Stroke from CT Image

Diagnosing ischemic stroke from CT scan images presents significant challenges in achieving the speed and accuracy essential for clinical decision-making, where conventional CNN-based methods show limitations. This study addresses these gaps by developing an automated diagnostic system using a Swin Transformer model integrated with an Out-of-Distribution (OOD) detection mechanism to enhance diagnostic reliability. The model was trained and validated on a dataset of 583 brain CT images from 341 patients at a regional hospital in Makassar. This dataset, labeled by two expert radiologists (κ=0.94), was categorized into ischemic stroke (206), normal (228), and non-brain CT scans (149) as the OOD class. The Swin Transformer achieved an exceptional validation accuracy of 99.15% after 10 epochs, with a highly efficient total training time of approximately 24 minutes. The model’s superiority was further confirmed by high weighted averages for precision (0.99), recall (0.99), and F1-score (0.99). Critically, the OOD detection module demonstrated perfect performance, achieving 100% accuracy in identifying irrelevant images with a 0% false positive rate, thereby preventing erroneous diagnoses from non-brain scans. Robustness testing under varied lighting conditions also showed a 100% success rate. Real-time viability was confirmed through external validation using a live camera, yielding a rapid inference time of 0.3 seconds per image. This study concludes that the developed system offers a highly accurate, robust, and safe solution, proving its readiness for clinical implementation to support ischemic stroke diagnosis in Indonesia.

Authors

Institutions

Publication Details

Journal
Jurnal Nasional Pendidikan Teknik Informatika (JANAPATI)
Published
2025-12-22
DOI
https://doi.org/10.23887/janapati.v14i3.102864
Primary Topic
Acute Ischemic Stroke Management
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Swin Transformer Enhanced with OOD Detection for Robust and Reliable Diagnosis of Ischemic Stroke from CT Image

Nurmisba Nurmisba, Muhyiddin A M Hayat, Desi Anggreani, Aedah Abd Rahman
Jurnal Nasional Pendidikan Teknik Informatika (JANAPATI)
Acute Ischemic Stroke Management
article

Swin Transformer Enhanced with OOD Detection for Robust and Reliable Diagnosis of Ischemic Stroke from CT Image

Nurmisba Nurmisba, Muhyiddin A M Hayat, Desi Anggreani, Aedah Abd Rahman
article en

Abstract

Diagnosing ischemic stroke from CT scan images presents significant challenges in achieving the speed and accuracy essential for clinical decision-making, where conventional CNN-based methods show limitations. This study addresses these gaps by developing an automated diagnostic system using a Swin Transformer model integrated with an Out-of-Distribution (OOD) detection mechanism to enhance diagnostic reliability. The model was trained and validated on a dataset of 583 brain CT images from 341 patients at a regional hospital in Makassar. This dataset, labeled by two expert radiologists (κ=0.94), was categorized into ischemic stroke (206), normal (228), and non-brain CT scans (149) as the OOD class. The Swin Transformer achieved an exceptional validation accuracy of 99.15% after 10 epochs, with a highly efficient total training time of approximately 24 minutes. The model’s superiority was further confirmed by high weighted averages for precision (0.99), recall (0.99), and F1-score (0.99). Critically, the OOD detection module demonstrated perfect performance, achieving 100% accuracy in identifying irrelevant images with a 0% false positive rate, thereby preventing erroneous diagnoses from non-brain scans. Robustness testing under varied lighting conditions also showed a 100% success rate. Real-time viability was confirmed through external validation using a live camera, yielding a rapid inference time of 0.3 seconds per image. This study concludes that the developed system offers a highly accurate, robust, and safe solution, proving its readiness for clinical implementation to support ischemic stroke diagnosis in Indonesia.

Jurnal Nasional Pendidikan Teknik Informatika (JANAPATI)Vol. 14(3)
Muhammadiyah University of Makassar (ID), Asia e University (MY)
Peace, Justice and strong institutions
Openalex Percentile: Top 30%
Acute Ischemic Stroke Management
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.