Deep Learning-Based Multi-Class Brain Tumor Classification from MRI Images Using DenseNet121 & OpenCV

Authors

  • Jasti Kumari Department of Master of Computer Applications, QIS College of Engineering & Technology, Vengamukkapalem(V), Ongole, PrakasamDist.,Andhra Pradesh.
  • Parchuri Swetha Navya Department of Master of Computer Applications, QIS College of Engineering & Technology, Vengamukkapalem(V), Ongole, PrakasamDist.,Andhra Pradesh.

DOI:

https://doi.org/10.69996/jsihs.2026007

Keywords:

Deep Learning, Brain Tumor Classification, MRI, DenseNet121, OpenCV

Abstract

Brain tumors are among the most life-threatening neurological conditions. Early detection through medical imaging plays a critical role in improving patient outcomes, but manual analysis of MRI scans is time-intensive and subject to human error. This project addressesthat problem by building a desktop application that can automatically classify brain MRI images into four categories: Glioma, Meningioma, Pituitary tumor, and No Tumor. The classification model is based on DenseNet121, a deep convolutional neural network architecture known for its dense connectivity pattern that improves gradient flow and feature reuse across layers. The model was trained on a labeled dataset containing thousands of MRI images and achieved an overall accuracy of 83% on a held-out test set of more than 1,300 images. Among the individual classes, No Tumor detection achieves the highest accuracy at 93%, followed by Pituitary at 88%, Glioma at 83%, and Meningioma at 65%. Once trained, the Keras model was exported to the ONNX format, which allows it to run through OpenCV's DNN module without requiring Tensor Flow or any GPU-specific libraries at runtime. This makes the application significantly lighter and more portable than typical deep learning deployments.

References

[1] G. Huang, Z. Liu, L. Van Der Maaten and K.Q. Weinberger, “Densely Connected Convolutional Networks,” Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4700–4708, 2017.

[2] K. Vinay Kumar, Sumanaswini Palakurthy, Sri Harsha Balijadaddanala, Sharmila Reddy Pappula, and Anil Kumar Lavudya, “Early Detection and Diagnosis of Oral Cancer Using Deep Neural Network”, JCAI, vol. 2, no. 2, pp. 22–34, 2024.

[3] G. Bradski and A. Kaehler, “Learning OpenCV: Computer Vision with the OpenCV Library,” O'Reilly Media, 2008.

[4] Swapna Saturi, Rafia Adiba, I. Yeshwanth Reddy, Md.Arsalan Shareef, and D.Prathyush, “Advanced MRI-Based Alzheimer’s Disease Classification with Hybrid Convolutional Neural Networks”, JCAI, vol. 3, no. 1, pp. 31–39, 2025

[5] ONNX Community. (2019). ONNX: Open Neural Network Exchange Format. Available at:https://onnx.ai

[6] G. Litjens, T. Kooi, B.E. Bejnordi, A.A.A. Setio, F. Ciompi et al., “A Survey on Deep Learning in Medical Image Analysis,” Medical Image Analysis, vol.42, pp.60–88, 2017.

[7] J. Canny, “A Computational Approach to Edge Detection,” IEEE Transactions on Pattern Analysis and Machine Intelligence, PAMI, vol.8, no.6, pp.679–698, 1986.

[8] M. Tan and Q. Le, “EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks,” Proceedings of the 36th International Conference on Machine Learning (ICML), pp.6105–6114, 2019.

[9] K. He, X. Zhang, S. Ren and J. Sun, “Deep Residual Learning for Image Recognition,” Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp.770–778, 2016.

[10] K. Simonyan and A. Zisserman, “Very Deep Convolutional Networks for LargeScale Image Recognition,” arXiv preprint arXiv:1409.1556, 2014.

[11] S. Pereira, A. Pinto, V. Alves and C.A. Silva, “Brain Tumor Segmentation Using Convolutional Neural Networks in MRI Images,” IEEE Transactions on Medical Imaging, vol.35, no.5, pp.1240–1251, 2016.

[12] B.H. Menze, A. Jakab, S. Bauer, J. Kalpathy-Cramer, K. Farahani et al., “The Multimodal Brain Tumor Image Segmentation Benchmark (BRATS),” IEEE Transactions on Medical Imaging, vol.34, no.10, pp.1993–2024, 2014.

[13] I. Goodfellow, Y. Bengio and A. Courville, “Deep Learning,” MIT Press, 2016.

[14] Brain Tumor MRI Dataset MasoudNickparvar. Available on Kaggle:https://www.kaggle.com/datasets/masoudnickparvar/brain-tumor-mri-dataset

[15] Rekha Gangula and Dayakar Thalla, “Machine Learning in Predicting Alzheimer’s Disease: Exploring Applications and Advancements”, JCAI, vol. 2, no. 1, pp. 1–7, 2024

Downloads

Published

2026-06-30

How to Cite

Jasti Kumari, & Parchuri Swetha Navya. (2026). Deep Learning-Based Multi-Class Brain Tumor Classification from MRI Images Using DenseNet121 & OpenCV. Journal of Sensors, IoT & Health Sciences (JSIHS,ISSN: 2584-2560), 4(2), 9-17. https://doi.org/10.69996/jsihs.2026007