Abstract
Background
In low- and middle-income countries, the scarcity of specialist radiologists contributes to delays in ischemic stroke diagnosis. Early recognition is essential for initiating interventions that can reduce morbidity and mortality.
Objective
To develop and assess a convolutional neural network (CNN) capable of detecting early ischemic stroke on non-contrast computed tomography (NCCT) scans and to develop a web-based platform for demonstrating potential clinical application.
Methods
A retrospective diagnostic accuracy study was performed using 1,000 NCCT scans (500 stroke positive, 500 controls) from adult patients at Mulago National Referral Hospital between January 2022 and June 2023. Lesions were independently annotated by three radiologists (κ = 0.83). Preprocessing included intensity normalization and texture analysis. The CNN was trained with dropout, L2 regularization, and batch normalization. Five-fold cross-validation was conducted. Performance was compared with a senior radiologist (> 5 years’ experience) using a balanced 30- case subset. A web-based interface was created for deployment.
Results
The CNN achieved a mean accuracy of 90.2% (± 1.8; 95% CI: 88.0–92.4), sensitivity of 91.4% (± 1.7; 95% CI: 89.3–93.5), specificity of 89.0% (± 2.1; 95% CI: 86.4–91.6), and an area under the receiver operating characteristic curve (AUC) of 91.3% (± 1.7; 95% CI: 89.2–93.4) across five-fold cross-validation. On the independent radiologist comparison subset, the CNN achieved a sensitivity of 86.7% and specificity of 88.7%, missing two stroke cases, while the senior radiologist achieved a sensitivity of 100.0% and specificity of 95.0% with no missed stroke cases. Despite the radiologist demonstrating slightly higher diagnostic performance, the overall difference was not statistically significant (p = 0.21). The model processed scans in approximately 3 seconds per case, compared with approximately 5 minutes required for radiologist interpretation. In addition, a browser-based interface was developed to support scan upload and automated analysis for potential clinical deployment.
Conclusion
The model demonstrated accuracy comparable to that of a senior radiologist while delivering results in significantly less time. These findings suggest that the integrated web platform has promising potential to support stroke triage, particularly in settings with limited radiology expertise.
Introduction
In low- and middle income countries (LMICs), the burden is disproportionately high due to limited access to timely diagnosis, acute care, and preventive strategies(1). In Uganda, the incidence is rising, driven largely by increased prevalence of hypertension, diabetes, and other vascular risk factors(2).
Non-contrast computed tomography (NCCT) is the most widely available imaging modality for suspected stroke in Uganda. While it is essential for excluding hemorrhage, detecting early ischemic changes on NCCT is challenging and often requires experienced interpretation(3). The shortage of radiologists in many public hospitals means that such expertise is not always available in a timely manner, delaying diagnosis and treatment.
Several studies have shown that computer-assisted systems can support clinicians in identifying early ischemic changes(4, 5). However, many existing solutions depend on advanced imaging such as Computed Tomography angiography or perfusion studies, which are not routinely available in low-resource environments. Others have demonstrated promising accuracy but have not been adapted into formats usable at the point of care(6, 7).
The present work sought to design and validate a Convulational Neural Network(CNN) capable of identifying early ischemic stroke on NCCT, trained exclusively on data collected in Uganda. A secondary goal was to create a deployment-ready interface that could integrate into everyday hospital workflows.
Methodology
Study Design and Setting
This study employed a retrospective, quantitative design to develop and evaluate a CNN for the early detection of ischemic stroke on NCCT scans. The research was conducted at Mulago National Referral Hospital in Kampala, Uganda the country’s largest public healthcare facility and primary tertiary referral center. Mulago manages a substantial volume of stroke cases annually, with two operational CT scanners and a radiology department staffed by three in-house radiologists and five adjunct radiologists from Makerere University. Despite this capacity, reporting delays of three to five days are common due to prioritization of trauma and other emergencies, highlighting the need for expedited diagnostic tools.
Data Collection and Preparation
A total of 1,450 non-contrast CT (NCCT) scans were retrieved from the hospital’s radiology archive. After quality control screening to exclude images with motion artifacts, incomplete series, non-brain windowing, or corrupted metadata, 1,000 scans were retained 500 with radiologically confirmed ischemic stroke and 500 controls without stroke. All scans were exported in Digital Imaging and Communications in Medicine (DICOM) format and fully anonymized in compliance with ethical guidelines. The dataset was curated solely based on imaging features, with no patient demographic or clinical data used.
Lesion annotation was performed on the 500 stroke-positive scans by three radiologists with at least five years of neuroimaging experience. The annotation process targeted established early ischemic signs, including hypoattenuation, sulcal effacement, and loss of gray–white matter differentiation. A semi-automated Python-based pipeline incorporating the Roboflow API and OpenCV was used to standardize annotation files and formats. Inter-rater reliability, assessed using Cohen’s kappa coefficient, was 0.83, indicating strong agreement. Discrepancies, present in approximately 6.7% of cases, were resolved by consensus, and the resulting masks were used as the reference standard for model development.
Feature Extraction and Preprocessing
Image preprocessing included intensity normalization, resizing to a standardized input dimension, and augmentation via rotations, translations, and flips to enhance variability and mitigate overfitting. Quantitative features extracted from annotated lesion areas included intensity metrics (mean, standard deviation), shape descriptors (area, perimeter, circularity), and texture features based on Gray Level Co-occurrence Matrix properties such as contrast, energy, and homogeneity. Class balancing was maintained by stratifying the dataset into equal proportions of stroke-positive and control images.
Model Architecture and Training
The model was developed to analyse individual 2D slices extracted from non-contrast CT scans and learn image features associated with early ischemic stroke. Each slice passed through a series of convolution and pooling layers that progressively extracted and condensed relevant information before classification through fully connected layers and a softmax output. The overall architecture of the CNN model is illustrated in Fig. 1. To improve stability and reduce overfitting, dropout and L2 regularization were applied during training. Training was performed using the Adam optimizer over 100 epochs in PyTorch with GPU acceleration. Although image processing occurred at the slice level, diagnostic performance was evaluated at the patient (scan) level by combining slice predictions into a single final classification for each NCCT study.
Figure 1.
CNN architecture for early ischemic stroke detection using NCCT images.
Model Evaluation
A five-fold cross-validation strategy was implemented to ensure robust performance assessment. In each fold, the model was trained on 80% of the data and tested on 20%, with each subset serving as the test set once. Evaluation metrics included sensitivity, specificity, accuracy, and AUC, with definitions aligned to established diagnostic performance measures(8). Confusion matrices and calibration curves were generated to further assess classification reliability and probability calibration.
Comparative Analysis with Radiologist Performance
To determine clinical relevance, the CNN was compared against the diagnostic performance of a senior consultant radiologist. A balanced test set of 30 anonymized NCCT scans (15 ischemic stroke, 15 non-stroke), which was strictly held out from all model training and cross-validation procedures, was independently reviewed by both the model and the radiologist, blinded to clinical history. Sensitivity, specificity, and average interpretation time were recorded. Statistical comparison of the paired binary classification outcomes was performed using McNemar’s test, with significance set at p < .05.
User Interface Development
To demonstrate clinical applicability, a web-based interface was developed on top of a RESTful API to enable non-technical healthcare staff to interact with the model. The interface supported secure log-in, DICOM upload, automated inference, probability visualization, and downloadable PDF reports. Frontend components were built using HTML, CSS, and JavaScript, while Flask powered the backend. The system was tested in a simulated hospital environment using anonymized scans.
Ethical Considerations
Ethical approval
was obtained from the Institutional Review Board of the Makerere University School of Public Health (MakSPH-REC 566). Data use was authorized by Mulago National Referral Hospital administration. A waiver of informed consent was granted by the approving Research Ethics Committee because the study utilized retrospectively collected and anonymized CT scan images. All scans were anonymized to remove identifiable information, stored securely on encrypted drives, and accessed only by authorized personnel. The study adhered to Uganda’s Data Protection and Privacy Act and relevant international guidelines, including the General Data Protection Regulation.
Results
Dataset Composition and Annotation
Most annotated ischemic lesions demonstrated hypoattenuation within the range of 30–35 Hounsfield Units (HU), consistent with early infarct core presentations. A smaller subset exhibited higher attenuation values, possibly reflecting partial infarcts or overlapping anatomical structures. The distribution of Hounsfield Unit values among annotated ischemic lesions is shown in Fig. 2.
Figure 2.
Histogram showing the distribution of Hounsfield Unit values among annotated ischemic stroke lesions on non-contrast CT scans.
Preprocessing, Feature Extraction, and Cross-Validation Performance
Following preprocessing, which included intensity normalization, histogram equalization, and texture-based feature enhancement, the model was trained and evaluated using five-fold cross validation. Performance remained relatively consistent across validation folds, demonstrating stable generalization to unseen cases. The CNN achieved a mean sensitivity of 91.4% (± 1.7) and a mean specificity of 89.0% (± 2.1), indicating strong ability to identify ischemic stroke cases while maintaining acceptable discrimination of non-stroke scans. Sensitivity and specificity across the five validation folds are presented in Fig. 3. The observed variability across folds was minimal, suggesting that the model maintained robust performance throughout the cross validation process.
Figure 3.
Sensitivity and specificity of the CNN model across the five cross-validation folds.
Overall Model Performance
The overall diagnostic performance of the CNN model across the five-fold cross-validation process is summarized in Table 1. The model achieved a mean accuracy of 90.2% (± 1.8), sensitivity of 91.4% (± 1.7), specificity of 89.0% (± 2.1), and an AUC of 91.3% (± 1.7). Accuracy across the five validation folds ranged from 88.3% to 92.1%, demonstrating relatively stable performance throughout the cross-validation process, as shown in Fig. 4. To further evaluate classification performance, a confusion matrix was generated using the pooled evaluation dataset seen in Fig. 5, illustrating the distribution of true-positive, true-negative, false-positive, and false-negative classifications. The model's ability to discriminate between ischemic stroke and non-stroke scans was further assessed using receiver operating characteristic analysis, with the ROC curve presented in Fig. 6 demonstrating an AUC of 0.913, indicating good diagnostic discrimination.
Table 1.
Diagnostic performance of the ischemic stroke detection model on the validation dataset.
| Metric | Mean (%) | Standard Deviation (±) |
|---|---|---|
| Accuracy | 90.2 | 1.8 |
| Sensitivity | 91.4 | 1.7 |
| Specificity | 89.0 | 2.1 |
| AUC (ROC) | 91.3 | 1.7 |
Figure 4.
Cross-validation accuracy of the CNN model across the five validation folds.
Figure 5.
Confusion matrix illustrating the classification performance of the CNN model for ischemic stroke and non-stroke scans.
Figure 6.
Receiver operating characteristic curve of the CNN model for ischemic stroke detection on the evaluation dataset.
Radiologist Comparison
The comparison of the CNN with the radiologist summarized in Table 2 demonstrated that the radiologist achieved slightly higher diagnostic performance on the independent evaluation subset. The CNN missed two stroke cases, while the radiologist identified all stroke cases correctly. However, the overall difference in diagnostic accuracy was not statistically significant (Wilcoxon signed-rank test, p = 0.21). Notably, the CNN generated results substantially faster than the radiologist, requiring approximately 3 seconds per scan compared with approximately 5 minutes for manual interpretation, highlighting its potential utility in emergency stroke care.
Table 2.
Comparison of CNN and radiologist performance on the independent 30-case evaluation dataset.
| Evaluator | Sensitivity (%) | Specificity (%) | Missed Cases | Avg. Time/Scan |
|---|---|---|---|---|
| CNN Model | 86.7 | 88.7 | 2 | ~ 3 sec |
| Radiologist | 100.0 | 95.0 | 0 | ~ 5 min |
Deployment Platform
A web-based user interface was developed and connected to the model through a RESTful API. The platform begins with a secure login, after which the user can upload a brain scan in DICOM, JPEG, or PNG format. Once the scan is uploaded, the system automatically analyzes the image in the background and, within a few seconds, displays the classification result on the dashboard, indicating whether the scan shows ischemic stroke or is normal. A screenshot of the developed platform and its automated analysis dashboard is presented in Fig. 7.
Figure 7.
Screenshot of the web-based stroke detection platform showing automated analysis results generated by the CNN model.
The diagnostic times reported in Table 2 were measured using this operational platform on the 30- case evaluation set. These results confirm that the system can deliver automated analysis approximately 100 times faster than a senior radiologist interpreting the same scans manually. By relying only on routinely available imaging formats and a standard computer with internet access, the platform directly addresses the delays in stroke diagnosis highlighted in the introduction. It provides clinicians with rapid, reproducible results that can guide early triage decisions even in settings with limited radiology expertise.
While the platform has not yet undergone live clinical deployment, testing in a simulated environment with anonymized data demonstrated full operational functionality and usability for non-technical healthcare staff.
Discussion
This study demonstrated that a CNN trained on non-contrast CT scans can achieve strong diagnostic performance for early ischemic stroke detection in a low-resource setting. The model achieved a mean accuracy of 90.2%, sensitivity of 91.4%, specificity of 89.0%, and an AUC of 91.3% across five-fold cross-validation. These findings are comparable to previous studies that reported diagnostic accuracies ranging between 87% and 93% for deep learning approaches in ischemic stroke detection(9, 10). Unlike several existing models developed using advanced imaging modalities such as CT perfusion or angiography, the present study relied exclusively on non-contrast CT scans, which are more widely available in Ugandan public hospitals and other low-resource settings.
The diagnostic performance observed in this study was slightly lower than the near-perfect results reported by some highly specialized deep learning systems developed using multicenter datasets and advanced imaging protocols(11). However, the current findings may better reflect realistic clinical performance within routine hospital environments where imaging quality, scanner variability, and resource limitations can affect model accuracy. Importantly, the CNN maintained relatively high sensitivity, indicating good ability to identify most stroke cases while minimizing missed diagnoses. This is clinically relevant because delayed recognition of ischemic stroke can significantly worsen patient outcomes.
Compared with the work by (12) which reported difficulty detecting subtle infarcts within regions such as the basal ganglia and insular cortex, the present model demonstrated relatively stable performance despite relying solely on NCCT imaging. Similarly, Karamchandani et al. (2022) achieved strong sensitivity using advanced perfusion imaging, whereas the current approach achieved competitive results without requiring additional imaging technologies that are often unavailable in low-resource settings(13). These findings suggest that clinically useful stroke detection models can still be developed using routinely available imaging modalities.
The comparison with the senior radiologist demonstrated that the radiologist achieved slightly higher diagnostic performance than the CNN on the independent evaluation subset. The CNN missed two stroke cases, while the radiologist correctly identified all stroke cases. Nevertheless, the difference in diagnostic performance was not statistically significant (p = 0.21). In contrast, the model processed scans in approximately three seconds per case compared with approximately five minutes required for radiologist interpretation. Similar reductions in interpretation time have been reported in other AI-assisted imaging studies(14). This suggests that AI assisted systems may provide valuable support for rapid triage and preliminary interpretation in emergency settings where specialist radiologists are limited.
A major strength of this study was the integration of the CNN into a functional web-based platform and RESTful API. Unlike many experimental AI models that remain confined to research environments, the present system allows healthcare workers to upload scans, obtain automated predictions, and generate reports through a simple browser-based interface. This increases the potential for future real-world implementation in hospitals with limited radiology expertise.
The quality of the annotated dataset likely contributed substantially to the observed performance. Consensus annotation by experienced radiologists, combined with preprocessing methods such as intensity normalization, augmentation, and texture enhancement, improved the model’s ability to detect subtle ischemic changes. In addition, dropout, L2 regularization, and five-fold cross validation were implemented to reduce overfitting and improve model generalizability across validation subsets.
Limitations
This study had several limitations that should be considered when interpreting the findings. The data were obtained from a single national referral hospital, which may limit the generalisability of the results to other settings with different CT scanner models, or imaging protocols. The analysis was based on retrospectively collected scans, meaning the tool was not tested within live clinical workflows where challenges such as incomplete studies, motion artefacts, or upload delays can occur. Although the web-based interface and API were successfully tested on a local server, they were not deployed for daily clinical use, and structured feedback from end users, including radiologists, radiographers, and emergency physicians, was not gathered. Furthermore, the current version of the system does not incorporate visual explanation features such as highlighted regions of interest, which can improve transparency and clinician confidence in automated results. These factors indicate the need for further work before large-scale implementation.
Conclusion
This study developed a practical system for detecting early ischemic stroke from non-contrast CT scans in a Ugandan hospital setting. The CNN demonstrated strong diagnostic performance, with results approaching those of a senior radiologist while generating automated predictions within seconds. In addition, the model was integrated into a browser-based platform that can be used by healthcare workers with minimal technical training. Because the system was developed using locally acquired imaging data and designed around routinely available hospital infrastructure, it has potential to support faster stroke diagnosis in resource-limited settings where access to specialist radiologists is constrained.
Future work should focus on multicenter validation using data from regional and district hospitals to assess performance across diverse imaging equipment and clinical environments. Pilot implementation within healthcare facilities could help evaluate the system’s impact on diagnostic timelines and patient outcomes. Integration with existing Picture Archiving and Communication Systems (PACS) and electronic medical record systems may further improve workflow efficiency through automated identification of suspected stroke cases. In addition, incorporating visual interpretability features, such as heatmaps or lesion overlays, could enhance clinician confidence and support wider adoption. However, further validation in real-world clinical settings is required before large-scale deployment.
Funding
Research reported in this publication was supported by the Fogarty International Center of the National Institutes of Health under Award Number D43TW012260 through the “Strengthening Research Capacity in Innovative Global Health Technologies for Non-Communicable Diseases in Uganda (SIGHT)” program, implemented by Makerere University in collaboration with Case Western Reserve University. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health.
Funding Statement
Research reported in this publication was supported by the Fogarty International Center of the National Institutes of Health under Award Number D43TW012260 through the “Strengthening Research Capacity in Innovative Global Health Technologies for Non-Communicable Diseases in Uganda (SIGHT)” program, implemented by Makerere University in collaboration with Case Western Reserve University. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health.
Contributor Information
Michael Kateregga, Makerere University.
Irene Wanyana, Makerere University.
Richard Keith Kwagala, Johns Hopkins University.
James Senoga, Ernest Cook University.
Success Kamuhanda, Makerere University.
Mike Nsubuga, University of Bristol.
Charles Batte, Makerere University.
Rornald Muhumuza Kananura, Makerere University.
References
- 1.Feigin VL, Brainin M, Norrving B, Martins SO, Pandian J, Lindsay P, et al. World Stroke Organization: Global Stroke Fact Sheet 2025. Int J Stroke. 2025;20(2):132–44. 10.1177/17474930241308142. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Makeri D, Eilu E, Odoki M, Dilli PP, Agwu E. Prevalence and complications of diabetes mellitus in Uganda: A systematic review and meta-analysis. Health Sci Rev. 2026;18:100253. 10.1016/j.hsr.2025.100253. [DOI] [Google Scholar]
- 3.Mainali S, Wahba M, Elijovich L. Detection of Early Ischemic Changes in Noncontrast CT Head Improved with Stroke Windows. ISRN Neurosci. 2014;2014:1–4. 10.1155/2014/654980. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Azzam AY, Hadadi I, Al-Shahrani LM, Shanqeeti UA, Alqurqush NA, Alsehli MA, et al. Human Readers versus AI-Based Systems in ASPECTS Scoring for Acute Ischemic Stroke: A Systematic Review and Meta-Analysis with Region-Specific Guidance. Intern Med. 2025;1(4):1–9. 10.71079/ASIDE.IM.05172573. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Takahashi N, Shinohara Y, Kinoshita T, Ohmura T, Matsubara K, Lee Y et al. Computerized identification of early ischemic changes in acute stroke in noncontrast CT using deep learning. In: Hahn HK, Mori K, editors. Medical Imaging 2019: Computer-Aided Diagnosis [Internet]. San Diego, United States: SPIE; 2019. [cited 2026 May 20]. p. 118. Available from: https://www.spiedigitallibrary.org/conference-proceedings-of-spie/10950/2507351/Computerized-identification-of-early-ischemic-changes-in-acute-stroke-in/10.1117/12.2507351.full doi: 10.1117/12.2507351 [DOI] [Google Scholar]
- 6.Sousa JA, Sondermann A, Bernardo-Castro S, Varela R, Donato H, Sargento-Freitas J. Diagnostic accuracy of CT angiography and CT perfusion imaging for detecting distal medium vessel occlusions: Protocol for a systematic review and meta-analysis. Meckel S, editor. PLOS ONE. 2023;18(4):e0284116. 10.1371/journal.pone.0284116 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Keramati H, Lu X, Cabanag M, Wu L, Kushwaha V, Beier S. Applications and advances of immersive technology in cardiology. Curr Probl Cardiol. 2024;49(10):102762. 10.1016/j.cpcardiol.2024.102762. [DOI] [PubMed] [Google Scholar]
- 8.Wang S, Zhou Y, Qin X, Nair S, Huang X, Liu Y. Label-free detection of rare circulating tumor cells by image analysis and machine learning. Sci Rep. 2020;10(1):12226. 10.1038/s41598-020-69056-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Gete KY, Ayele AA. Deep-learning–based non-contrast CT for detecting acute ischemic stroke: a systematic review and HSROC meta-analysis of patient-level diagnostic accuracy. BMC Neurol. 2025;25(1):507. 10.1186/s12883-025-04528-3. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Pathmakumara HC, Perera G. A Cnn Approach for Accurate Stroke Diagnosis Using Brain Computed Tomography Imaging. In: 2025 International Mobile, Intelligent, and Ubiquitous Computing Conference (MIUCC) [Internet]., Cairo IEEE. 2025. [cited 2026 May 20]. pp. 437–42. Available from: https://ieeexplore.ieee.org/document/11196792/ 10.1109/MIUCC66482.2025.11196792 [DOI] [Google Scholar]
- 11.Zhou SK, Greenspan H, Davatzikos C, Duncan JS, Van Ginneken B, Madabhushi A et al. A Review of Deep Learning in Medical Imaging: Imaging Traits, Technology Trends, Case Studies With Progress Highlights, and Future Promises. Proc IEEE. 2021;109(5):820–38. 10.1109/JPROC.2021.3054390 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Heo J, Ryu WS, Chung JW, Kim CK, Kim JT, Lee M, et al. Automated ischemic stroke lesion detection on non-contrast brain CT: a large-scale clinical feasibility test AI stroke lesion detection on NCCT. Front Neurosci. 2025;19:1643479. 10.3389/fnins.2025.1643479. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Lamontagne-Caron R, Duchesne S. A scoping review of magnetic resonance angiography and perfusion image synthesis. Front Dement. 2024;3:1408782. 10.3389/frdem.2024.1408782. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Liu Y, Chen H, Zhao J, Wang L, Gao Z, Peng Y, et al. AI-driven diffusion weighted imaging-based non-contrast protocol for breast cancer diagnosis: a multicentre, multidimensional validation study. eClinicalMedicine. 2025;90:103694. 10.1016/j.eclinm.2025.103694. [DOI] [PMC free article] [PubMed] [Google Scholar]







