Bridging engineering and neuro-oncology: a scalable FastAPI-deployed CNN framework for real-time explainable brain tumor diagnosis


Nematzadeh S., Anka F., Ciftci F., Ayanoglu K. Y. U., ÖZARSLAN A. C., Oncu E.

FRONTIERS IN NEUROSCIENCE, cilt.20, 2026 (SCI-Expanded, Scopus) identifier identifier identifier

  • Yayın Türü: Makale / Tam Makale
  • Cilt numarası: 20
  • Basım Tarihi: 2026
  • Doi Numarası: 10.3389/fnins.2026.1772429
  • Dergi Adı: FRONTIERS IN NEUROSCIENCE
  • Derginin Tarandığı İndeksler: Science Citation Index Expanded (SCI-EXPANDED), Scopus, BIOSIS, EMBASE, Psycinfo, Directory of Open Access Journals
  • İstanbul Üniversitesi-Cerrahpaşa Adresli: Evet

Özet

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.