A Spectrally Filtered Structural Co-occurrence Matrix for Brain Tumor Detection in MRI: A Leakage-Controlled Comparison with Handcrafted and Deep Features
Abstract
Public brain magnetic resonance imaging (MRI) collections are widely used to benchmark machine learning methods, but their evaluation can be affected by repeated images and data leakage. This study presents a leakage-controlled evaluation of binary brain tumor detection (tumor vs. no tumor) on a widely used public MRI collection and uses it to assess a new configuration of the Structural Co-occurrence Matrix (SCM), in which the transformation function retains only the dominant components of the image frequency spectrum. Perceptual hashing revealed that 672 of the 5,717 images (11.8%), including 39.3% of the no-tumor images, were exact or near-identical duplicates; after their removal, the SCM was compared with the Gray-Level Co-occurrence Matrix (GLCM), Hu moments, Local Binary Patterns (LBP), and six convolutional neural networks (CNNs) used as feature extractors, each combined with six classifiers (60 configurations), over ten stratified splits with 95% confidence intervals (CIs) and paired statistical tests. On this benchmark, deep features yielded the best results (DenseNet169 with a linear SVM: accuracy of 98.80 ± 0.30%, balanced accuracy of 97.92 ± 0.88%). The proposed SCM, with only six features, reached 91.91 ± 0.89% accuracy with the SVM (RBF kernel), significantly below the best GLCM (96.09%), LBP (95.52%), and CNN configurations, with a specificity of only 71.19% and a balanced accuracy of 84.02%; LBP was both faster and more accurate. The main contribution of the study is therefore methodological: it documents the extent of duplication in the collection, provides a leakage-controlled benchmark with class-specific metrics, and reports a negative result for the spectral SCM configuration. Because patient identifiers are unavailable and the no-tumor class comes from a single source, the results are valid only for this public benchmark and may be affected by residual patient overlap and source bias; they do not indicate clinical performance.
Data Availability Statement
The dataset analyzed in this study is publicly available at IEEE Dataport [9] under the Creative Commons Attribution 4.0 International (CC BY 4.0) license (https://creativecommons.org/licenses/by/4.0/). Three supplementary files are provided with this article: Supplementary File 1 contains Supplementary Tables S1 and S2 (the complete results and the class-specific rates of all 60 configurations); Supplementary File 2 contains the source code of the experiments (a Jupyter notebook covering duplicate removal, preprocessing, feature extraction, classification, and statistical analysis); and Supplementary File 3 contains the list of removed duplicate images. The data splits are fully determined by the code and the random seeds (0 to 9).
References
- G. Litjens, T. Kooi, B. E. Bejnordi, A. A. A. Setio, F. Ciompi, M. Ghafoorian, J. A. W. M. van der Laak, B. van Ginneken, and C. I. Sánchez, “A survey on deep learning in medical image analysis,” Medical Image Analysis, vol. 42, pp. 60–88, 2017, doi: 10.1016/j.media.2017.07.005.
- S. F. J. Viegas, “Tumores cerebrais – histopatologia e tratamento de gliomas,” M.Sc. dissertation, Faculdade de Ciências e Tecnologia, Universidade do Algarve, Faro, Portugal, 2018, http://hdl.handle.net/10400.1/12557.
- D. N. Louis, A. Perry, P. Wesseling, D. J. Brat, I. A. Cree, D. Figarella-Branger, C. Hawkins, H. K. Ng, S. M. Pfister, G. Reifenberger, R. Soffietti, A. von Deimling, and D. W. Ellison, “The 2021 WHO classification of tumors of the central nervous system: a summary,” Neuro-Oncology, vol. 23, no. 8, pp. 1231–1251, 2021, doi: 10.1093/neuonc/noab106.
- M. Ceccarelli et al., “Molecular profiling reveals biologically discrete subsets and pathways of progression in diffuse glioma,” Cell, vol. 164, no. 3, pp. 550–563, 2016, doi: 10.1016/j.cell.2015.12.028.
- D. N. Louis, A. Perry, G. Reifenberger, A. von Deimling, D. Figarella-Branger, W. K. Cavenee, H. Ohgaki, O. D. Wiestler, P. Kleihues, and D. W. Ellison, “The 2016 World Health Organization classification of tumors of the central nervous system: a summary,” Acta Neuropathologica, vol. 131, no. 6, pp. 803–820, 2016, doi: 10.1007/s00401-016-1545-1.
- C. M. Silva, "Development and optimization of convolutional neural networks with fine-tuning for multiclass classification of brain tumors in magnetic resonance images," M.Sc. dissertation, Instituto Federal do Ceará, Fortaleza, Brazil, 2025.
- E. Friebel et al., “Single-cell mapping of human brain cancer reveals tumor-specific instruction of tissue-invading leukocytes,” Cell, vol. 181, no. 7, pp. 1626–1642, 2020, doi: 10.1016/j.cell.2020.04.055.
- C. M. Silva, M. C. da Silva, S. P. P. da Silva, P. P. Rebouças Filho, and N. M. M. Nascimento, “Computer vision for brain tumor classification: A novel approach based on Zernike moments,” in Proceedings of the IEEE 37th International Symposium on Computer-Based Medical Systems (CBMS), Guadalajara, Mexico, 2024, pp. 94–99, doi: 10.1109/CBMS61543.2024.00024.
- J. Chaki, “Brain tumor MRI dataset,” IEEE Dataport, Jul. 26, 2023, https://ieee-dataport.org/documents/brain-tumor-mri-dataset, doi: 10.21227/1jny-g144.
- G. L. B. Ramalho, D. S. Ferreira, P. P. Rebouças Filho, and F. N. S. de Medeiros, “Rotation-invariant feature extraction using a structural co-occurrence matrix,” Measurement, vol. 94, pp. 406–415, 2016, doi: 10.1016/j.measurement.2016.08.012.
- R. M. Haralick, K. Shanmugam, and I. Dinstein, “Textural features for image classification,” IEEE Transactions on Systems, Man, and Cybernetics, vol. SMC-3, no. 6, pp. 610–621, 1973, doi: 10.1109/TSMC.1973.4309314.
- R. Fisher, S. Perkins, A. Walker, and E. Wolfart, Hypermedia Image Processing Reference. Chichester, U.K.: John Wiley & Sons, 1996.
- M.-K. Hu, “Visual pattern recognition by moment invariants,” IRE Transactions on Information Theory, vol. 8, no. 2, pp. 179–187, 1962, doi: 10.1109/TIT.1962.1057692.
- T. Ojala, M. Pietikäinen, and D. Harwood, “Performance evaluation of texture measures with classification based on Kullback discrimination of distributions,” in Proceedings of the 12th International Conference on Pattern Recognition (ICPR), Jerusalem, Israel, 1994, vol. 1, pp. 582–585, doi: 10.1109/ICPR.1994.576366.
- K. Simonyan and A. Zisserman, “Very deep convolutional networks for large-scale image recognition,” in Proceedings of the 3rd International Conference on Learning Representations (ICLR), San Diego, CA, USA, 2015, arXiv:1409.1556.
- G. Huang, Z. Liu, L. van der Maaten, and K. Q. Weinberger, “Densely connected convolutional networks,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 2017, pp. 4700–4708, doi: 10.1109/CVPR.2017.243.
- F. Chollet, “Xception: Deep learning with depthwise separable convolutions,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 2017, pp. 1251–1258, doi: 10.1109/CVPR.2017.195.
- C. Szegedy, V. Vanhoucke, S. Ioffe, J. Shlens, and Z. Wojna, “Rethinking the Inception architecture for computer vision,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 2016, pp. 2818–2826, doi: 10.1109/CVPR.2016.308.
- H. T. Zaw, N. Maneerat, and K. Y. Win, “Brain tumor detection based on Naïve Bayes classification,” in Proceedings of the 5th International Conference on Engineering, Applied Sciences and Technology (ICEAST), Luang Prabang, Laos, 2019, pp. 1–4, doi: 10.1109/ICEAST.2019.8802562.
- S. Theodoridis and K. Koutroumbas, Pattern Recognition, 4th ed. Burlington, MA, USA: Academic Press, 2009.
- T. M. Nunes, A. L. V. Coelho, C. A. M. Lima, J. P. Papa, and V. H. C. de Albuquerque, “EEG signal classification for epilepsy diagnosis via optimum path forest – A systematic assessment,” Neurocomputing, vol. 136, pp. 103–123, 2014, doi: 10.1016/j.neucom.2014.01.020.
- J. P. Papa, A. X. Falcão, and C. T. N. Suzuki, “Supervised pattern classification based on optimum-path forest,” International Journal of Imaging Systems and Technology, vol. 19, no. 2, pp. 120–131, 2009, doi: 10.1002/ima.20188.
- T. Cover and P. Hart, “Nearest neighbor pattern classification,” IEEE Transactions on Information Theory, vol. 13, no. 1, pp. 21–27, 1967, doi: 10.1109/TIT.1967.1053964.
- S. Haykin, Redes Neurais: Princípios e Prática, 2nd ed. Porto Alegre, Brazil: Bookman, 2001.
- J. Cheng, “Brain tumor dataset,” figshare, 2017, doi: 10.6084/m9.figshare.1512427.v5.
- S. Bhuvaji, A. Kadam, P. Bhumkar, S. Dedge, and S. Kanchan, “Brain tumor classification (MRI),” Kaggle, 2020, doi: 10.34740/KAGGLE/DSV/1183165.
- A. Hamada, “Br35H :: Brain tumor detection 2020,” Kaggle, 2020. [Online]. Available: https://www.kaggle.com/datasets/ahmedhamada0/brain-tumor-detection
- S. Kapoor and A. Narayanan, “Leakage and the reproducibility crisis in machine-learning-based science,” Patterns, vol. 4, no. 9, Art. no. 100804, 2023, doi: 10.1016/j.patter.2023.100804.
- C. Nadeau and Y. Bengio, “Inference for the generalization error,” Machine Learning, vol. 52, no. 3, pp. 239–281, 2003, doi: 10.1023/A:1024068626366.
- J. Demšar, “Statistical comparisons of classifiers over multiple data sets,” Journal of Machine Learning Research, vol. 7, pp. 1–30, 2006.
- W. Ayadi, W. Elhamzi, I. Charfi, and M. Atri, “Deep CNN for brain tumor classification,” Neural Processing Letters, vol. 53, no. 1, pp. 671–700, 2021, doi: 10.1007/s11063-020-10398-2.
- S. Deepak and P. M. Ameer, “Brain tumor classification using deep CNN features via transfer learning,” Computers in Biology and Medicine, vol. 111, Art. no. 103345, 2019, doi: 10.1016/j.compbiomed.2019.103345.
- A. Kadam, S. Bhuvaji, and S. Deshpande, “Brain tumor classification using deep learning algorithms,” International Journal for Research in Applied Science and Engineering Technology (IJRASET), vol. 9, no. 12, pp. 417–426, 2021, doi: 10.22214/ijraset.2021.39280.
- T. Chen and C. Guestrin, “XGBoost: A scalable tree boosting system,” in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 2016, pp. 785–794, doi: 10.1145/2939672.2939785.
- A. H. de Souza Júnior, F. Corona, G. A. Barreto, Y. Miche, and A. Lendasse, “Minimal learning machine: A novel supervised distance-based approach for regression and classification,” Neurocomputing, vol. 164, pp. 34–44, 2015, doi: 10.1016/j.neucom.2014.11.073.
- D. P. P. Mesquita, J. P. P. Gomes, and A. H. Souza Junior, “Ensemble of efficient minimal learning machines for classification and regression,” Neural Processing Letters, vol. 46, no. 3, pp. 751–766, 2017, doi: 10.1007/s11063-017-9587-5.
- Brazil, National Health Council, “Resolution No. 510, of April 7, 2016,” Diário Oficial da União, Brasília, DF, Brazil, Section 1, pp. 44–46, May 24, 2016. [Online]. Available: https://bvsms.saude.gov.br/bvs/saudelegis/cns/2016/res0510_07_04_2016.html