arXiv:2608.28709eess.IVAug 2026

Manuscript Offprint

arXiv:2608.28709

Enhancing MRI Brain Tumor Edge Detection: A Hybrid Preprocessing Approach Utilizing CLAHE

Shahid-E-Kaiser Md. Tashrif, Munshi Md Arafat Hussain, Sheikh Nahian, Sumaiya Islam

Abstract

Accurate boundary delineation of brain tumors in Magnetic Resonance Imaging (MRI) is a critical yet formidable challenge in neuro-oncology due to inherent scanner noise, complex anatomical structures, and uneven illumination. Traditional edge detection algorithms, while computationally lightweight and mathematically interpretable, frequently fail to capture the diffuse, localized boundaries of edema when relying solely on global preprocessing and manual parameter tuning. To overcome these limitations, we propose a hybrid automated edge detection pipeline. Our approach integrates an optimally configured Contrast-Limited Adaptive Histogram Equalization (CLAHE) layer into a comprehensive morphological preprocessing framework, followed by a deterministic sequential parameter sweep to fully automate threshold selection. The proposed hybrid model demonstrated enhancement in detecting critical anatomical structures in a publicly available benchmark database from Kaggle. By intelligently amplifying localized gradients without overwhelming the image with background noise, our method achieved higher Recall (Sensitivity). Consequently, the overall F1-Score elevated, and the Structural Similarity Index (SSIM) improved, all while maintaining a highly efficient execution. This establishes our optimized pipeline as a highly practical and near real-time operational model for clinical diagnostics, offering a compelling alternative to computationally heavy deep learning approaches.

Keywords: Brain Tumor, MRI, Canny Edge Detection, CLAHE, Image Segmentation.

1 Introduction

Brain tumors represent an acute, life-threatening neurological condition characterized by the uncontrolled proliferation of anomalous tissues within the brain's rigid cranial vault. According to the largest population-based cancer registry in the United States, malignant brain and central nervous system tumors are diagnosed at an average annual age-adjusted rate of roughly 6.9 per 100,000 people, accounting for more than 17,000 deaths per year over the most recent reporting period (Price et al., 2024), underscoring the need for highly precise, non-invasive diagnostic methodologies. Magnetic Resonance Imaging (MRI) is currently the undisputed gold standard in neuro-oncology. Unlike Computed Tomography (CT), which uses ionizing radiation, MRI produces high-resolution imaging with unparalleled soft-tissue contrast. Modalities such as T1-weighted, T2-weighted, and Fluid-Attenuated Inversion Recovery (FLAIR) sequences are widely used by radiologists to assess tumor size, structure, and spatial location relative to healthy brain tissue.

However, the manual segmentation and boundary delineation of these tumors by medical professionals is inherently subjective, prone to inter-observer variability, and excessively time-consuming; benchmark evaluations comparing multiple expert raters on identical scans have documented substantial disagreement in the resulting tumor boundaries (Menze et al., 2015). In a high-throughput clinical environment, this manual bottleneck can delay critical surgical interventions. Consequently, automated medical image segmentation has become a focal point of computational research. The core objective of automated segmentation is to accurately delineate the region of interest (the tumor) from the healthy background tissues.

Over the past decade, Deep Learning (DL), specifically architectures like Convolutional Neural Networks (CNNs) and U-Net variants, has dominated medical image segmentation tasks (Ronneberger et al., 2015). While DL models achieve remarkable similarity coefficients, they suffer from significant operational drawbacks: successful training of such networks is widely reported to require many thousands of carefully annotated samples (Ronneberger et al., 2015), demand high-end GPUs for inference, and function largely as impenetrable “black boxes” (Litjens et al., 2017). This lack of mathematical interpretability is a severe handicap in critical healthcare decisions where the reasoning behind a diagnosis must be verifiable by a physician.

Because of these limitations, classical, mathematically interpretable methods like Edge Detection retain immense clinical relevance, particularly in resource-constrained environments (Abdel-Gawad et al., 2020). The Canny Edge Detector is globally recognized for its precise, single-pixel edge localization (Canny, 1986). Yet, its application in medical imaging is severely hampered by its sensitivity to its input parameters: the standard deviation of the Gaussian filter (σ\sigma) and the dual hysteresis thresholds (Tlow,ThighT_{low}, T_{high}) (Canny, 1986). Furthermore, MRI images frequently suffer from inherent scanner noise and intensity bias fields (Tustison et al., 2010), causing static Canny parameters to fail abruptly (Radhakrishnan et al., 2020). Compounding this challenge, the underlying noise in magnitude MRI data does not follow a simple additive Gaussian model but is instead governed by a Rician distribution, which systematically biases signal intensity in low-contrast regions and further destabilizes fixed-parameter edge operators (Gudbjartsson & Patz, 1995).

Recent frameworks have sought to automate Canny tuning by sequentially sweeping through parameter values and selecting the combination that yields maximum consecutive similarity, theoretically avoiding severe under- or over-segmentation (Radhakrishnan et al., 2020). Comparable optimisation-driven tuning strategies, including Otsu-based double-threshold selection and swarm-based hybrid optimisers, have since been proposed for Canny parameter selection across other medical imaging modalities (Xu et al., 2021; Emmanuel et al., 2026). These frameworks often rely on global morphological preprocessing, such as Top-hat filtering combined with a Gaussian-based contrast-stretching function, to normalize intensity (Radhakrishnan et al., 2020).

As undergraduate researchers exploring the intersections of digital image processing and clinical applicability, we analyzed these existing pipelines and identified a critical gap. While Top-hat filtering effectively isolates globally bright spots, it does not adequately address localized contrast disparities across the entire MRI slice. Brain tumors often possess diffuse, texturally complex boundaries that blend into surrounding edemas (Islam et al., 2013). Traditional global preprocessing pipelines suppress these weak, localized gradients – a failure mode also documented in other weak-edge medical imaging contexts (Hou et al., 2021) – resulting in missing edge data (low Recall). Locally adaptive contrast techniques, such as Contrast Limited Adaptive Histogram Equalization, which normalize intensity within small tiled regions rather than across the whole image, offer a more promising route to recovering these subtle boundaries (Zuiderveld, 1994).

Motivation and Contributions: Brain tumors remain among the most burdensome neuro-oncological conditions, with tens of thousands of new primary brain and central nervous system tumor diagnoses reported annually in the United States alone (Price et al., 2024). Motivated by the need to preserve these vital anatomical boundaries, our core hypothesis in this study is that integrating an optimally configured Contrast-Limited Adaptive Histogram Equalization (CLAHE) layer into the preprocessing pipeline, specifically as a localized contrast enhancement step prior to the automated parameter sweep, will unearth subtle tumor boundaries and significantly elevate overall edge detection performance.

In this paper, we conduct a rigorous, mathematically grounded study to validate this hypothesis. Our primary contributions are:

  1. We structurally extend automated edge detection pipelines by inserting an optimal CLAHE layer, bridging the gap between global illumination correction and local gradient enhancement.

  2. We establish optimized, fixed parameters for the CLAHE layer tailored specifically for MRI modalities, deliberately prioritizing stability and real-time execution speed over computationally heavy meta-heuristic optimization – in contrast to recent hybrid metaheuristic approaches such as the ant-colony/bee-colony-optimized Canny framework of Emmanuel et al. (2026), whose iterative colony-based search improves accuracy but introduces overhead difficult to reconcile with real-time clinical deployment.

  3. We perform a comprehensive empirical comparative analysis between standard hybrid-stretching pipelines (e.g., Radhakrishnan et al., 2020) and our proposed hybrid model, evaluated on the benchmark brain tumor dataset of Cheng et al. (2016) using rigorous metrics (SSIM (Wang et al., 2004), PSNR, F1-Score, Recall).

  4. We provide an in-depth analytical discussion on the clinical trade-offs between precision and recall, demonstrating why our modified pipeline provides a superior operational model for neuro-oncology.

The remainder of this paper is organized as follows: Section 2 reviews related literature and theoretical background. Section 3 presents our proposed methodology, including the experimental setup. Section 4 presents the results and findings. Section 5 discusses the results and their clinical implications. Section 6 concludes the study.