Bridging Engineering and Neuro-Oncology: A Scalable FastAPI-Deployed CNN Framework for Real-Time Explainable Brain Tumor Diagnosis
Dosyalar
Tarih
Dergi Başlığı
Dergi ISSN
Cilt Başlığı
Yayıncı
Erişim Hakkı
Ö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 ondemand 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.










