Related Experiment Video
Updated: Jun 29, 2026

A High-Throughput Image-Guided Stereotactic Neuronavigation and Focused Ultrasound System for Blood-Brain Barrier Opening in Rodents
Published on: July 16, 2020
Bridging engineering and neuro-oncology: a scalable FastAPI-deployed CNN framework for real-time explainable brain
Sajjad Nematzadeh1, Ferzat Anka2, Fatih Ciftci3,4,5
1Department of Software Engineer, Engineering and Natural Sciences Faculty, Istanbul Topkapi University, Istanbul, Türkiye.
Background:
Automated and interpretable classification of brain tumors from MRI scans remains a critical challenge in medical imaging and neuro-oncology. This study addresses the need for reliable and deployable AI-driven tools that support timely tumor differentiation while maintaining transparency and practical usability.
Methods:
A deep learning-based diagnostic framework was developed using convolutional neural networks implemented in TensorFlow. The system was trained and evaluated on a curated dataset of 3,097 axial brain MRI images spanning four classes: glioma, meningioma, pituitary tumor, and normal cases. To ensure robust performance estimation, all models were evaluated using stratified 5-fold cross-validation and benchmarked against multiple state-of-the-art transfer learning architectures. For real-world applicability, the selected models were deployed via a FastAPI-based server, and Gradient-weighted Class Activation Mapping (Grad-CAM) was incorporated to provide qualitative visual explanations.
Results:
Across cross-validation folds, the proposed framework demonstrated stable and competitive performance in terms of accuracy, macro-averaged F1-score, and macro-averaged AUC, with low inter-fold variance. Comparative evaluation showed that transfer learning models achieved strong classification performance, while the lightweight custom CNN remained suitable for real-time deployment. The FastAPI implementation enabled low-latency inference and on-demand Grad-CAM visualizations, supporting transparent and responsive model usage.
Conclusion:
This work demonstrates the feasibility of bridging deep learning-based brain tumor classification with scalable, real-time deployment. By combining robust cross-validation, state-of-the-art benchmarking, and explainability-aware inference, the proposed framework provides a practical pathway toward integrating artificial intelligence into radiological workflows, while highlighting the importance of interpretability and deployment constraints in neuro-oncological applications.
