Lightweight Brain Tumor Classification with Histogram Oriented Gradients (HOG) Features and Class-Weighted Support Vector Machine (SVM)

Budi Warsito, Husni Fadhilah, Puspita Kartikasari, Arief Rachman Hakim

Abstract


Early detection of brain tumors via MRI is crucial for improving patient outcomes. This study investigates a lightweight machine learning approach for multiclass brain tumor classification (glioma, meningioma, pituitary tumor, or no tumor) using Histogram of Oriented Gradients (HOG) for feature extraction and a Support Vector Machine (SVM) classifier. This study utilizes the public Brain Tumor Classification MRI Kaggle dataset, consisting of 2870 training and 394 testing MRI images across four classes. After converting the MRIs to grayscale and resizing them to 16×16 pixels, this study extracts HOG features and applies Principal Component Analysis (PCA) to retain 98% of the variance. An SVM is then trained with a GridSearchCV-optimized kernel and hyperparameters, and a custom class-weighted variant is compared. The best model, a polynomial-kernel SVM with custom class weights, achieved 91.8% test accuracy (95% CI (confidence interval): 90.9-92.7) with an F1-score of 0.919 ± 0.01, outperforming the best unweighted SVM (accuracy 86.0% ± 0.02, F1≈0.847). These results demonstrate that HOG+SVM, with proper weighting for class imbalance, can effectively classify brain tumors on small datasets at low computational cost. The novelty of this work lies in demonstrating that an optimized, class-weighted SVM leveraging compact HOG-PCA features can deliver over 91.8% accuracy with strong generalization on small-scale MRI data, providing a viable and interpretable alternative to complex Convolutional Neural Network (CNN) models. Future work can explore CNN and hybrid feature fusion to improve accuracy and generalization further.


Keywords


MRI; HOG; SVM; Polynomial-Kernel; Brain Tumor

Full Text:

PDF

References


H. Sadr, M. Nazari, S. Yousefzadeh-Chabok, H. Emami, R. Rabiei, and A. Ashraf, “Enhancing brain tumor classification in MRI images: A deep learning-based approach for accurate diagnosis,” Image Vis. Comput., vol. 159, no. November 2024, 2025, doi: 10.1016/j.imavis.2025.105555.

R. Haque, M. M. Hassan, A. K. Bairagi, and S. M. Shariful Islam, “NeuroNet19: an explainable deep neural network model for the classification of brain tumors using magnetic resonance imaging data,” Sci. Rep., vol. 14, no. 1, pp. 1–22, 2024, doi: 10.1038/s41598-024-51867-1.

A. B. Abdusalomov, M. Mukhiddinov, and T. K. Whangbo, “Brain Tumor Detection Based on Deep Learning Approaches and Magnetic Resonance Imaging,” Cancers (Basel)., vol. 15, no. 16, 2023, doi: 10.3390/cancers15164172.

R. Hashemzehi, S. J. S. Mahdavi, M. Kheirabadi, and S. R. Kamel, “Detection of brain tumors from MRI images base on deep learning using hybrid model CNN and NADE,” Biocybern. Biomed. Eng., vol. 40, no. 3, pp. 1225–1232, 2020, doi: 10.1016/j.bbe.2020.06.001.

G. Verma, “Xception-based Deep Learning Model for Precise Brain Tumour Classification,” 8th Int. Conf. I-SMAC (IoT Soc. Mobile, Anal. Cloud), I-SMAC 2024 - Proc., pp. 1481–1485, 2024, doi: 10.1109/I-SMAC61858.2024.10714761.

S. Yoon, “Brain tumor classification using a hybrid ensemble of Xception and parallel deep CNN models,” Informatics Med. Unlocked, vol. 54, no. February, 2025, doi: 10.1016/j.imu.2025.101629.

A. K. Bitto, M. H. Imam Bijoy, S. Yesmin, I. Mahmud, M. J. Mia, and K. B. M. Badruzzaman Biplob, “Tumor-Net: convolutional neural network modeling for classifying brain tumors from MRI images,” Int. J. Adv. Intell. Informatics, vol. 9, no. 2, pp. 148–160, 2023, doi: 10.26555/ijain.v9i2.872.

M. Sajjad, S. Khan, K. Muhammad, W. Wu, A. Ullah, and S. W. Baik, “Multi-grade brain tumor classification using deep CNN with extensive data augmentation,” J. Comput. Sci., vol. 30, pp. 174–182, 2019, doi: 10.1016/j.jocs.2018.12.003.

A. Younis, L. Qiang, C. O. Nyatega, M. J. Adamu, and H. B. Kawuwa, “Brain Tumor Analysis Using Deep Learning and VGG-16 Ensembling Learning Approaches,” Appl. Sci., vol. 12, no. 14, 2022, doi: 10.3390/app12147282.

D. R. Nayak, N. Padhy, P. K. Mallick, M. Zymbler, and S. Kumar, “Brain Tumor Classification Using Dense Efficient-Net,” Axioms, vol. 11, no. 1, 2022, doi: 10.3390/axioms11010034.

T. M. Santos Bezerra et al., “Deep learning outperforms classical machine learning methods in pediatric brain tumor classification through mass spectra,” Intell. Med., vol. 10, no. July, p. 100178, 2024, doi: 10.1016/j.ibmed.2024.100178.

F. J. Díaz-Pernas, M. Martínez-Zarzuela, D. González-Ortega, and M. Antón-Rodríguez, “A deep learning approach for brain tumor classification and segmentation using a multiscale convolutional neural network,” Healthc., vol. 9, no. 2, 2021, doi: 10.3390/healthcare9020153.

M. Basthikodi, M. Chaithrashree, B. M. Ahamed Shafeeq, and A. P. Gurpur, “Enhancing multiclass brain tumor diagnosis using SVM and innovative feature extraction techniques,” Sci. Rep., vol. 14, no. 1, pp. 1–15, 2024, doi: 10.1038/s41598-024-77243-7.

M. Sinning, “Brain Tumor Classification,” Revista Medica Clinica Las Condes. [Online]. Available: https://github.com/sartajbhuvaji/brain-tumor-classification-dataset

M. Jadhav, “Brain Tumor Classification using SVM.” [Online]. Available: https://www.kaggle.com/code/mayuronkaggle/brain-tumor-classification-using-svm/notebook

N. Dalal and B. Triggs, “Histograms of oriented gradients for human detection,” Proc. - 2005 IEEE Comput. Soc. Conf. Comput. Vis. Pattern Recognition, CVPR 2005, vol. I, pp. 886–893, 2005, doi: 10.1109/CVPR.2005.177.

S. Shilaskar, T. Mahajan, S. Bhatlawande, S. Chaudhari, R. Mahajan, and K. Junnare, “Machine Learning based Brain Tumor Detection and Classification using HOG Feature Descriptor,” Int. Conf. Sustain. Comput. Smart Syst. ICSCSS 2023 - Proc., no. Icscss, pp. 67–75, 2023, doi: 10.1109/ICSCSS57650.2023.10169700.

U. S. Sudeep, K. N. Naidu, P. S. Girish, T. N. Nikesh, and C. Sunanda, “Brain Tumor Classification using a Support Vector Machine,” Int. J. Comput. Appl., vol. 184, no. 28, pp. 15–17, 2022, doi: 10.5120/ijca2022922347.

M. A. Gómez-Guzmán et al., “Classifying Brain Tumors on Magnetic Resonance Imaging by Using Convolutional Neural Networks,” Electron., vol. 12, no. 4, pp. 1–22, 2023, doi: 10.3390/electronics12040955.

T. Tazin et al., “[Retracted] A Robust and Novel Approach for Brain Tumor Classification Using Convolutional Neural Network,” Comput. Intell. Neurosci., vol. 2021, no. 1, p. 2392395, 2021.

W. Ayadi, I. Charfi, W. Elhamzi, and M. Atri, “Brain tumor classification based on hybrid approach,” Vis. Comput., vol. 38, no. 1, pp. 107–117, Jan. 2022, doi: 10.1007/s00371-020-02005-1.

J. Amin, M. Sharif, M. Yasmin, and S. L. Fernandes, “A distinctive approach in brain tumor detection and classification using MRI,” Pattern Recognit. Lett., vol. 139, pp. 118–127, 2020, doi: 10.1016/j.patrec.2017.10.036.

N. T. A. Ramaha, R. M. Mahmood, A. A. Hameed, N. L. Fitriyani, G. Alfian, and M. Syafrudin, “Brain Pathology Classification of MR Images Using Machine Learning Techniques,” Computers, vol. 12, no. 8, 2023, doi: 10.3390/computers12080167.

S. Asif, M. Zhao, F. Tang, and Y. Zhu, “An enhanced deep learning method for multi-class brain tumor classification using deep transfer learning,” Multimed. Tools Appl., vol. 82, no. 20, pp. 31709–31736, Feb. 2023, doi: 10.1007/s11042-023-14828-w.




DOI: https://doi.org/10.47738/jads.v7i1.1018

Refbacks

  • There are currently no refbacks.



Barcode

Journal of Applied Data Sciences

ISSN:2723-6471 (Online)
Publisher:Bright Publisher
Website:http://bright-journal.org/JADS
Email:taqwa@amikompurwokerto.ac.id (principal contact)
  support@bright-journal.org (technical issues)

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0