1. Introduction
Medical practice identifies brain tumors, as its most progressed and fatal medical condition of pathologic development. The precise medical diagnosis together with immediate medical procedures provides essential elements for patient survival and recovery. Magnetic Resonance Imaging (MRI) provided to medical imaging technology enables physicians to detect brain tumors during their analytical procedure. The manual approach in traditional MRI analysis creates prolonged workflow and human-related mistakes that require automated systems for achieving enhanced performance and speed. Numerous experts in their field have used artificial intelligence and its comparable methods such as machine learning and deep learning to create advanced solutions for brain tumor identification along with segmentation procedures. The CNNbased advanced deep learning frameworks along with their specialized types (U-Net and ResNet and Mobile-Unet++) provide better accuracy rates and accelerated processing and robust clinical advantages than standard methods. Through automated medical image analysis new approaches changed the way medical experts derive tumor diagnoses from complicated medical patterns. Scientific analyses of microcomputed tomography images enable superior decision-making through deep learning algorithms which detect tumors and identify their malignancy or benignity status [9][10]. Improved patient outcomes result from better treatment individualization because of technological advancement.. Researchers focus on accuracy enhancement through multi-scale neural networks combined with attention features development. Prior to implementing MMNet for classification researchers created MUnet++ as a tumor segmentation framework [10].
The novelty of this approach lies in its integration of The system integrates multi-scale CNN along with MFCA and W-PSO before applying XGBoost for a thorough brain tumor segmentation and classification architecture. The multi-scale CNN extracts features through three different scales, which enables precise detection of tumors with different sizes because it operates at low and moderate as well as high resolutions. MFCA enhances the features by concentrating on essential frequency patterns, which allow the system to identify tumor areas from non-tumor regions more accurately. The W-PSO implementation for feature selection brings profound progress because it determines optimal features by eliminating superfluous elements to preserve classification-relevant items. Robust and accurate solutions with low computational costs are provided by the implementation of XGBoost. The innovative approach of uniting these new components elevates segmentation performance and delivers an efficient method for practical clinical systems, which defines new standards in brain tumor evaluation.
Thorough resolution of multiple important drawbacks affecting conventional brain tumor segmentation and classification systems constitutes the principal advantage of this methodology. The method addresses scale sensitivity by using multiscale CNNs that extract tumor features at various magnification levels to achieve consistent outcome across different tumor sizes. Single-scale models encounter detection challenges with irregular and small tumors because the combination of diagnostic errors with inaccurate segmentation output occurs in such cases. Solution enhancement occurs through MFCA technology because this frequency-domain analysis technique selects vital frequency details yet eliminates less significant information. The modification enhances both the accuracy of identifying precise boundaries while decreasing incorrect positive findings. Before classification, W-PSO performs discriminative feature selection to optimize feature sets that resolves problems with both feature redundancy and high-dimensional data. XGBoost-based classification methods create highly accurate predictions and efficient operations better than other classifiers since they normally overfit or show deficient generalization properties. The technological improvements establish accurate cost-effective comprehensive assessments of brain tumors that beat existing analytical methods through precise and dependable solutions.
2. Related Work
The new method addresses manual processing limitations because it produces quick outcomes in addition to better medical diagnoses. The segmentation performance of Multi-task Cascaded Attention Network (MTCAN) increases with its multiscale residual attention mechanism that detects tumor features across different levels [12]. The current models leverage cross-stage feature fusion methods to enhance network information transmission across multiple cascaded components, which leads to improved performance when compared to current state-of-the-art solutions. The deep wavelet autoencoders introduce a significant advancement in tumor classification systems. Combining specialized clustering methods and thresholding functions together with level-set segmentation produces an exact method to detect tumor areas in MRI images. The deep wavelet autoencoder performs tumor discrimination better than conventional approaches because it excels at feature extraction [2]. Image processing and deep learning methods demonstrate effective cooperation for developing improved diagnosis techniques of brain tumors. Research involves investigation of brain tumor diagnosis using neural networks that are integrated with fuzzy clustering algorithms to develop hybrid techniques. Research by [14] demonstrates that the combination of Backpropagation Neural Networks (BPNN) with Spatial Fuzzy C-Means (SFCM) produces excellent results in brain tumor classification specifically through accuracy rate, sensitivity and specificity values. The models show value in medical imaging data by managing uncertainty and data variability, which leads to better diagnostic reliability. Researchers extensively study ResNet50 because they recognize its potential to boost segmenting and classifying capabilities. Deep residual learning forms the basis of this model that solves deep networks gradient issues so users can learn elaborate patterns within medical imagery. Experimental investigations show how ResNet50 advances tumor segmentation precision through better performance and operational efficiency so it proves usable for clinical purposes [15].
The main hurdle when performing brain tumor segmentation involves obtaining sufficient labeled data to train deep learning algorithms effectively. Academic experts have introduced semi-supervised learning strategies, which use labeled as well as unlabeled medical image samples. These methods provide sophisticated segmentation results when working with scarce-labeled datasets while connecting full supervision to no supervision systems [8]. Different U-Net variations such as standard U-Net, Attention U-Net, and U-Net++ demonstrate their performance characteristics according to labeled and unlabeled data proportions which researchers study together [8]. The evaluation helps medical practitioners choose the very best model that suits their clinical operations. The framework combines VisioFlow FusionNet for segmentation functionality along with NeuraClassNet for classification operations. The segmentation accuracy reached 99.2% through VisioFlow FusionNet because it shows effective performance in dealing with various tumor shapes and sizes [16]. NeuraClassNet utilizes a catfish-inspired optimizer for effective categorization of tissue samples through morphological and histological details. The integrated framework enhances segmentation results and assists doctors with brain tumor diagnosis and treatment planning to deliver better medical care to patients. Support Vector Machines (SVMs) and Random Forests and Deep Neural Networks (DNNs) stand among the selection of machine learning models that perform brain tumor classification. The models examine MRI image features to identify tumors as either benign or malignant entities. Random Forest stands out among machine learning models through its exceptional performance that resulted in 98.56% classification accuracy of the data available on Kaggle [6]. Modern image processing techniques and conventional machine learning models demonstrate promising potential in producing accurate reliable diagnosis according to this performance result.
Deep learning researchers have conducted multiple studies that investigate dual applications of 2D and 3D models to enhance diagnosis accuracy through segmentation and classification outcomes. Multimodel ensemble systems which unite Densenet Resnet and Efficientnet exhibit remarkable diagnostic performance with accuracy reaching 0.87 and precision at 0.90 as well as AUC at 0.86 and recall operating at 0.80 [12]. The use of multiple dimensional analysis in this model improves brain tumor evaluation by determining both stages and severity levels from methylation profiles to support treatment-planning decisions.
The U-Net architecture stands out as one of the major accomplishments in modern brain tumor segmentation research. Experts have achieved outstanding performance metrics through U-Net architecture and its variants since they have obtained a dice score of 0.99 ± 0.00013 along with accuracy of 0.99 ± 0.000070 and recall score of 0.99 ± 0.00014 and F1 score of 0.99 ± 0.00013 [7]. The model shows excellent performance in tumor identification which cuts down the duration required for doctors to make brain cancer diagnoses. Automated systems enhance both medical diagnosis quality and reduce radiologist workload so professionals can dedicate time to challenging cases. Brain tumor diagnosis benefits from the intelligent use of advanced neural networks and specialized clustering algorithms with semi-supervised learning methodologies. The ongoing advancements demonstrate how artificial intelligence can transform clinical processes by delivering promising detection systems along with personalized treatment designs that improve clinical outcomes. These technologies persistently evolve toward improving both healthcare service delivery and patient healthcare outcomes throughout the forthcoming years.
3. Proposed Framework
1. Multi-Scale CNN
The brain tumor segmentation process employs multi-scale CNN to obtain features from different spatial scales. The architecture incorporates three optimized filter sizes at different scales starting from low (3×3) to moderate (5×5) and high (7×7) to identify tumor features across various dimensions. Factors such as edges and textures align perfectly with small filters whereas broader patterns function best with larger filters in this system.
Mathematically, the multi-scale convolution operation can be represented as:
where 𝑊𝑠 denotes the convolution kernel at scale 𝑠∈{3,5,7}, and 𝑥 represents the input feature map. The outputs from these three scales are concatenated and fused to form a multi-scale feature representation:
This fused feature map enables the model to capture both localized details and global context simultaneously, making it more robust for segmenting tumors of varying sizes. By combining these scales, the network can better differentiate between healthy tissues and tumor regions, significantly improving segmentation accuracy.
2. Multi-Frequency Channel Attention and Its Significance
The Multi-Frequency Channel Attention (MFCA) mechanism enhances the model’s ability to focus on the most informative features across different frequency bands. It combines frequency-domain analysis with channel-wise attention to suppress irrelevant features while amplifying critical tumor-related patterns. The MFCA block first decomposes the feature map into multiple frequency components using Discrete Cosine Transform (DCT), enabling the network to capture both high-frequency details (edges) and low-frequency global structures (tumor regions).
The attention mechanism is defined as:
where 𝐷𝐶𝑇(𝐹) represents the frequency transformation, 𝑊𝑓 is the learned weight for frequency channels, and 𝜎 denotes the sigmoid activation function. The refined feature map is then obtained by multiplying the attention coefficients with the input features:
This process ensures that the network focuses on tumor-specific frequencies, improving segmentation precision and reducing false positives.
3. Weighted PSO for Feature Mapping and XGBoost for Classification
After obtaining the segmented brain tumor from the multi-scale CNN with MFCA, feature mapping is performed using a Weighted Particle Swarm Optimization (W-PSO) approach. W-PSO is a population-based optimization algorithm that enhances feature selection by assigning adaptive weights to particles based on their relevance. The objective function is defined to maximize feature relevance while minimizing redundancy:
where 𝛼 and 𝛽 are weighting factors. W-PSO optimizes this function by iteratively adjusting particle positions to find the best feature subset for classification.
Finally, the selected features are fed into an XGBoost classifier for learning and tumor classification. XGBoost, a gradientboosted decision tree algorithm, is highly efficient for structured data and ensures robust classification performance. The classification process is modeled as:
where 𝑓𝑘 is the 𝑘-th decision tree, and 𝑦 represents the predicted tumor class (benign or malignant).
Evaluation Metrics:
The model’s performance is assessed using Intersection over Union (IoU), Dice Coefficient, and Accuracy. IoU measures the overlap between predicted and actual tumor regions:
The Dice Coefficient evaluates segmentation accuracy, and overall accuracy indicates classification performance. This multi-step framework ensures precise brain tumor segmentation and reliable classification, combining the strengths of deep learning and optimization-based feature selection.
In fig1, Step-wise Explanation of Pipeline as following
Step 1: Multi-Scale CNN for Feature Extraction
The first step in the pipeline is to extract multi-scale features using a Multi-Scale CNN with three optimized convolutional kernel sizes: 3×3 (low scale), 5×5 (moderate scale), and 7×7 (high scale). This helps capture features at different levels of granularity, such as fine details, texture, and larger tumor structures.
Multi-Scale Feature Extraction Equations:
For each scale 𝑠, the convolutional operation can be expressed as:
Where:
𝐹𝑠(𝑥) is the feature map for scale 𝑠
𝑊𝑠 represents the convolutional kernel of size 𝑠× 𝑠
∗ denotes the convolution operation
𝑏𝑠 is the bias term
The outputs from different scales are fused by concatenation:
This combined feature map contains both localized and large-scale patterns, making it robust for brain tumor segmentation.
Step 2: Multi-Frequency Channel Attention (MFCA)
The Multi-Frequency Channel Attention (MFCA) mechanism enhances the extracted features by focusing on the most relevant frequency components. The feature map 𝐹𝑚𝑢𝑙𝑡𝑖 is transformed into the frequency domain using Discrete Cosine Transform (DCT) to separate high-frequency and low-frequency information.
Frequency Transformation:
Here:
𝐹(𝑥, 𝑦) is the input feature at spatial location (𝑥, 𝑦)
𝑀 and 𝑁 are the dimensions of the feature map
𝑢 and 𝑣 represent the frequency components
Channel Attention Calculation:
After transforming the feature map into the frequency domain, attention weights 𝐴𝑐ℎ𝑎𝑛𝑛𝑒𝑙 are calculated:
Where 𝑊𝑓 is a learnable weight matrix and 𝜎 is the sigmoid function.
Refinement of Features:
The final refined feature map is obtained by applying the attention weights:
This step ensures that the network focuses on important frequency components, improving segmentation accuracy.
Step 3: Brain Tumor Segmentation and Evaluation
Using the refined multi-scale features with attention, the network performs brain tumor segmentation through a softmaxbased classification at each pixel. The output is a binary segmentation map 𝑆(𝑥) representing tumor and non-tumor regions.
Intersection over Union (IoU):
Where:
𝑇𝑃: True Positive — correctly predicted tumor pixels
𝐹𝑃: False Positive — incorrectly predicted tumor pixels
𝐹𝑁: False Negative — missed tumor pixels
Dice Coefficient:
These metrics help evaluate the segmentation performance by measuring the overlap between the predicted and ground truth masks.
Step 4: Weighted Particle Swarm Optimization (W-PSO) for Feature Mapping
In the W-PSO stage, particles are initialized to represent candidate feature subsets, where each particle’s position vector 𝑥𝑖 corresponds to selected features (binary or continuous) and the velocity vector 𝑣𝑖 is initialized randomly within a bounded range to guide exploration. The objective function is defined as:
where 𝛼 and 𝛽 are weighting factors ensuring a trade-off between informative features and minimal duplication. The update rules for velocity and position follow:
where 𝑝𝑖 and 𝑔 denote the best local and global positions, respectively, while 𝑐1, 𝑐2 are acceleration constants and 𝑟1, 𝑟2 ∼ 𝑈(0,1) are random coefficients. The adaptive inertia weight balances exploration and exploitation:
with 𝜔 starting large for global search and shrinking with iterations to refine solutions. This adaptation ensures that particles explore broadly at the beginning and converge toward optimal feature subsets in later stages. Although iterative evaluation of relevance and redundancy introduces some computational overhead, the approach remains far more efficient than exhaustive search, as swarm intelligence narrows the solution space dynamically while maintaining high classification accuracy.
Step 5: Classification Using XGBoost
The optimized feature set from W-PSO is fed into XGBoost, a gradient-boosted decision tree algorithm, for final classification of brain tumors into benign or malignant categories.
XGBoost Model:
XGBoost minimizes the following regularized objective:
Where:
𝑙(𝑦𝑖, 𝑦̂𝑖) is the loss function (e.g., logistic loss for binary classification)
2 𝜆∥𝑤∥2 penalizes tree complexity (T = number of leaves, 𝑤 = leaf weights)
The final prediction is a sum of all tree outputs:
The proposed pipeline integrates multi-scale CNN for feature extraction, multi-frequency channel attention for focusing on critical regions, W-PSO for optimal feature selection, and XGBoost for robust classification. This comprehensive approach ensures accurate brain tumor segmentation and classification, achieving high IoU, Dice Coefficient, and classification accuracy.
Considered in the context of the IoT-driven healthcare, practical implementation is commonly achieved by way of a hybrid of cloud and edge instances to achieve latency, reliability, and efficiency on par. Edge can also allow quick results on patient data captured by wearable sensors, imaging equipment, or IoT hospital infrastructure, making clinical decisions quicker in emergencies like a brain tumor patient or other life-threatening illnesses. During the same time, cloud systems offer the scale needed to store massive amounts of health images, perform powerful AI-based analytics on this data set, and give collaborative access to healthcare personnel at different establishments. A hybrid cloud-edge architecture provides low-latency and secure functionality as well as allowing the use of cloud services to offload computationally heavy operations like deep learning-based tumor segmentation and classification. Furthermore, the ability to integrate an architecture like this improves data privacy as the dataset is locally processed at the edge and then transmitted, and facilitates the requirement to meet the healthcare standards. This deployable framework guarantees such practical utilization of intelligent medical imaging systems, including the proposed models in the segment of brain tumors, to become research to clinical use easily, which falls within the scope of the journal with regard to intelligent systems and IoT in medical care.
4. Experiment and Results
4.1 Dataset
The table 2 and figure 3 shows a comprehensive analysis of brain tumor segmentation models which demonstrates improved results on multiple datasets throughout the previous few years. Medicine shows a rising preference for nextgeneration architectural combination techniques which result in better accuracy levels and Intersection over Union (IoU) performance metrics for medical image segmentation work. Various segmentation methods can be observed through multiple notable models and datasets that focus on delivering improved results.L. L. Scientific conducted research in 2024 that demonstrated Hybrid VGG-16 architecture application with custom databases allowed them to achieve 85.4% IoU and 92.6% accuracy. The researchers at Y. Amri et al. in 2025 utilized the Efficient U-Net Model for BraTS 2020 dataset analysis to obtain compelling outcomes with 89.1% IoU and 95.0% accuracy. The performance of U-Net-based models remains exceptional when used for medical image applications. M. The combination of ResNet50 and U-Net by M. Aish et al. produces peak performance by achieving 91.0% IoU and 96.5% accuracy on TCGA-LGG and TCIA MRI datasets because of their success with integrating residual networks for enhanced feature extraction.An application of the Custom CNN combined with U-Net framework led P. Chowdhury et al. to report visual adjustment and accuracy metrics of 88.9% and 93.7% for Low-Grade Glioma MRI segmentation. The research by G. Srivastava et al. applied 3D U-Nets with transfer learning to accomplish 89.7% IoU and 94.8% accuracy when processing data from a Kaggle dataset demonstrating the benefits of pre-trained model implementation in deep learning systems.The MFWX method proposed for 2025 surpasses numerous contemporary approaches achieving 91.8% IoU and 94.2% accuracy on BraTS 2020 as well as 94.5% IoU and 96.7% accuracy on BraTS-2018. The MFWX model demonstrates outstanding performance in various datasets, which demonstrates why it stands as one of the leading techniques for brain tumor segmentation. The assessment reveals progressive improvements in model infrastructure that affect the accuracy levels of segmentation results.
The table 3 MFWX Proposed Approach was assessed through BraTS 2020 and BraTS-2018 datasets where evaluation metrics applied to necrotic core and peritumoral edema regions together with enhancing tumor and non-tumorous regions. The Necrotic and Non-enhancing Tumor Core demonstrated the highest accuracy of 95.1% across all classes during BraTS 2020 evaluation. All classes in the model demonstrated precision and recall scores, which were higher than 90% that indicates a balanced relationship between correct predictions and incorrect positive results. The F1-score measurements fell between 90% and 92.6% demonstrating that the method delivered reliable results during tumor detection along with segmentation tasks. The model produced excellent segmentation performance measurements in terms of IoU and Dice Coefficient which supported its ability to make precise and regular segmentations for different tumor regions. For BraTS 2020 Enhancing Tumor proved to be the most successful tumor class among the three types with a Dice Coefficient reaching 91.4% which demonstrated optimal agreement between prediction and actual tumor regions.the table 4 New Results from BraTS-2018 show superior performance metrics from beginning to end across all primary categories. The evaluation results demonstrated that the Necrotic Core reached 96.5% accuracy but the Enhancing Tumor produced outstanding performance at 97.2%. Despite added complexity from non-tumorous regions, the model achieved an accuracy of 94.2% in the 2024 dataset evaluation. Evaluation results from 2024 demonstrated stronger generalization because all classes achieved better precision, recall and F1-score performance levels. The performance of the Enhancing Tumor class experienced significant growth because the Dice Coefficient increased to 93.3% in this assessment. The predictions in the 2024 dataset received better spatial alignment through an improved set of IoU values compared to those from the 2020 dataset. The proposal has progressed into producing better reliability combined with enhanced segmentation accuracy in the challenging BraTS-2018 dataset.
The table 5 evaluation of deep learning architectural performance took place across both BraTS 2020 and BraTS-2018 datasets. During testing, the Custom CNN (MFWX Proposed) excelled above ResNet50 and EfficientNet-B7 at all times across BraTS 2020 and BraTS-2018 datasets. The ResNet50 model performed with 90.8% accuracy and reached 87.2% recall together with 87.8% F1-score during BraTS 2020 competition. According to research, EfficientNet-B7 delivered superior performance through its advanced ability to detect tumor classes accurately by achieving 93.4% accuracy and 90.6% F1-score. The Custom CNN (MFWX Proposed) achieved superior classification performance compared to both ResNet50 and EfficientNet-B7 by reaching 94.2% accuracy together with 92.1% F1-score.All models performed better in the BraTS-2018 dataset because the expanded and intricate dataset enriched their capabilities. Among the models that were evaluated ResNet50 reached 92.5% accuracy and EfficientNet-B7 scored 95.1% accuracy although with an F1-score of 93.0%. The Custom CNN (MFWX Proposed) maintained its position leading in both accuracy 96.7% as well as F1score of 94.5%, demonstrating its ability to handle challenging datasets with success. The Custom CNN demonstrates superior effectiveness in operational precision and recall that allows it to deliver effective negative and positive result inspections.The BraTS 2020 and BraTS-2018 datasets provided the platforms to test several U-Net models for segmentation performance evaluation. The table 6 Standard U-Net operated as the baseline achievement in BraTS 2020 while achieving IoU of 85.6% and a Dice Coefficient at 86.5%. The performance of U-Net++ produced an IoU score of 88.1% and a Dice Coefficient score of 89.0% on testing. The Attention U-Net and 3D U-Net models demonstrated superior segmentation accuracy on BraTS 2020 by achieving respective performance metrics of IoU 89.3% and IoU 90.5% with Dice Coefficient 91.3%.Every model of U-Net demonstrated better performance during BraTS-2018. The Standard U-Net achieved an improvement in IoU score to 87.5% but U-Net++ and Attention U-Net surpassed this performance by reaching IoU values of 90.8% and 92.1% respectively. The segmentation results of the 3D U-Net reached an IoU of 93.3% alongside a Dice Coefficient of 94.0%. The 3D U-Net maintained the most effective model for precise tumor segmentation in BraTS-2018 because it excels at processing spatial features within volumetric data. The analysis from both datasets demonstrates a continuous advancement of U-Net architecture performance especially through the implementation of attention mechanisms and three-dimensional spatial structure components.
Table 7 and 8 the contribution levels of MFWX model components by assessing their impact on classification and segmentation outcome. Table 1 demonstrates that complete model MFWX performs best with different classification results for BraTS 2020 and BraTS-2018 along with component removal calculations from the full model testing. The Full Model (MFWX) stands out as the most effective model delivering BraTS 2020 output statistics at 94.2% accuracy with 92.1% F1-score as well as BraTS-2018 statistics at 96.7% accuracy coupled with 94.5% F1-score. The complete MFWX architecture demonstrates the highest degree of effectiveness according to the resulting data.When particular model components are eliminated from the system performance decreases. When MFX operates without WPSO while utilizing all features for XGBoost processing it causes accuracy degradation to 91.8% on BraTS 2020 and 94.5% on BraTS-2018. When MFCA is omitted from the MWX variant which utilizes fundamental CNN features the classification performance diminishes to 89.7% for BraTS 2020 and 92.4% for BraTS-2018. The FWX model achieves the worst results of all configurations by producing 87.3% accuracy and 85.1% F1-score on BraTS 2020. XGBoost alone performs poorly in terms of accuracy and F1-score because it operates without MFCA or WPSO and produces 85.6% accuracy and 83.6% F1-score on BraTS 2020.Segmentation analysis presented in Table 2 verifies that Full Model (MFWX) shows the highest Dice Coefficient and IoU across both BraTS 2020 and BraTS-2018 datasets. The model demonstrates BraTS 2020 results of 92.5% Dice coefficient and 91.8% IoU as well as BraTS-2018 results of 95.1% Dice coefficient and 94.5% IoU. Removing WPSO (MFX) results in a decline, with a Dice Coefficient of 90.0% for BraTS 2020 and 93.0% for BraTS-2018. When MFCA is omitted from the MWX model, it leads to a decline in Dice Coefficient to 88.3% and 91.1% for each dataset. The single-scale CNN variant FWX demonstrates the most significant performance degradation since it yields Dice Coefficient results of 86.2% for BraTS 2020 and 89.4% for BraTS-2018. The sole utilization of XGBoost without integrating WPSO or MFCA yields the most inferior segmentation results by producing Dice Coefficients of 84.2% for BraTS 2020 and 87.1% for BraTS-2018.The ablation study demonstrates that WPSO together with MFCA as well as multi-scale CNN constitute essential components that drive improved classification along with segmentation results show in fig 4 within the MFWX model framework. The final model surpasses every variant it is compared against because of its high robustness and effective capability when dealing with complex medical dataset information.
5. Conclusion
The MFWX proposed approach achieves major improvements in brain tumor segmentation and classification through its effective solution of existing method limitations. The system benefits from Multi-Scale CNN, Multi-Frequency Channel Attention (MFCA) and Weighted Particle Swarm Optimization (WPSO), which produces better results than conventional models. The system's multi-scale feature extraction method detects tumors with various sizes and shapes by using MFCA to select vital frequency data patterns for eliminating nonessential data. System performance receives enhancement through WPSO because it optimizes feature selection procedures to reduce duplications while keeping classificationtargeted essential features. The combination of XGBoost components produces both effective predictions and low computational demands, which are demonstrated by evaluation results, attained using BraTS 2020 and BraTS-2018 datasets. The MFWX model reached its best performance during BraTS 2020 evaluation where it achieved 94.2% accuracy and very strong Dice Coefficient of 92.5% and Intersection over Union (IoU) of 91.8%. The reported results exceeded both conventional U-Net variants and ResNet50 and EfficientNet-B7 standards. The proposed model surpassed previous benchmarks on BraTS-2018 by reaching 96.7% accuracy together with 95.1% Dice Coefficient and 94.5% IoU. The proposed framework delivers better accuracy from its strong generalization capabilities combined with its precise tumor structure detection and non-tumorous region handling capabilities. All research components of the model structure work together for successful operation. The complete deletion of WPSO and MFCA components in the system resulted in significant performance deterioration because these modules assisted feature selection and refinement operations. Results from the full implementation of the MFWX model outperformed all partial variants thus showing its ability to operate on various datasets. The diagnostic solution stands as an accurate brain tumor processor that provides exact segmentations alongside reduced misclassifications and standardizes findings across various dataset types. The standardized assessment framework demonstrates capabilities for developing into a clinical tool for brain tumor analysis.