Abstract

Brain cancer deaths are significantly increased in all categories of aged persons due to the abnormal growth of brain tumor tissues in the brain. The death rate can be controlled by accurate early stage brain tumor diagnosis. The detection and classification of brain tumors play a crucial role in early diagnosis and treatment planning. Brain tumor detection and classification have become challenging and time-consuming for domain-specific radiologists and pathologists in medical image analysis. So, automatic detection and classification are essential to reduce the time of diagnosis. In recent years, machine learning classifiers have played an essential role in automatically classifying brain tumors. In this research, an approach based on an improved fuzzy factor fuzzy local information C means (IFF-FLICM) segmentation and hybrid modified harmony search and sine cosine algorithm (MHS-SCA) optimized extreme learning machine (ELM) is proposed for brain tumor detection and classification. The IFF-FLICM algorithm is utilized to accurately segment the brain’s magnetic resonance (MR) images to identify the tumor regions. The Mexican hat wavelet transform is employed for feature extraction from the segmented images. The extracted features from the segmented regions are fed into the MHS-SCA-ELM classifier for classification. The MHS-SCA is proposed to optimize the weights of the ELM model to improve the classification performance. Five distinct multimodal and unimodal benchmark functions are considered for optimization to demonstrate the robustness of the proposed MHS-SCA optimization technique. The image Dataset-255 is considered for this study. The quality measures such as SSIM and PSNR are considered for segmentation. The proposed IFF-FLICM segmentation achieved a peak signal-to-noise ratio (PSNR) of 37.24 dB and a structural similarity index (SSIM) of 0.9823. The proposed MHS-SCA-based ELM model achieved a sensitivity, specificity, and accuracy of 98.78%, 99.23%, and 99.12%. The classification performance results of the proposed MHS-SCA-ELM model are compared with MHS-ELM, SCA-ELM, and PSO-ELM models, and the comparison results are presented.

1. Introduction

Brain tumor detection and classification from MRI images have become an essential part of the diagnostic systems in the medical domain. The mortality rate grows abnormally due to brain tumors in the human brain. The early detection and diagnosis of brain tumors have become difficult due to the ignorance of human physiology. The brain tumor is a chronic brain disease characterized by repeated edges. Brain cancer is a complex and varied disease, and statistics can vary widely depending on factors such as the type of tumor, its location, and the patient’s age, race, and other demographic characteristics. According to the American Brain Tumor Association (ABTA) [1], 80000 cases were reported where malignant brain tumors impact children and young people. Additional molecular features and updated pathologic diagnoses have even been added to the recently released 5th edition of the “World Health Organization Classification of Tumors of the Central Nervous System” in May 2021. Clinical doctors face a difficult task because of the intricate nature of tumor diagnosis. Since manual detection cannot transform the image to the required simplified state, we provide a platform for automatically diagnosing and classifying brain tumors from magnetic resonance imaging. Therefore, early tumor detection and identification are crucial to reducing tumor-related fatalities. The classification of brain tumors is also crucial to understanding the different forms of tumors that can exist in the brain. Doctors may watch and forecast the uncontrollable expansion of cancer-affected areas at different levels by using segmentation and classification techniques, enabling appropriate early stage diagnosis.

Image segmentation from magnetic resonance imaging is a crucial and challenging undertaking to identify the tissues of brain tumors. Due to the involute structure and visual differences, it becomes a complex process. For the purpose of segmentation, FCM-based techniques were developed such as EnFCM [2], FCM_S1, FCM_S2 [2], and FGFCM [3]. However, these techniques failed due to the low noise reduction capabilities. An improved fuzzy factor-based FLICM algorithm is proposed to improve noise reduction capabilities and segmentation performance. Metaheuristic algorithms play a vital role in field optimization problems. The metaheuristic algorithm, the improvisational technique musicians use, is imitated by harmony search (HS) [4], which has received much attention. In order to achieve a better harmonic state during the process of musical improvisation, musicians constantly modify the pitch of their instruments. This is where the population-based metaheuristic technique HS is inspired [5]. The different algorithms based on harmony search, such as piecewise opposition harmony search (POHS) [6], fuzzy adaptation of parameters in harmony search (FHS) [7], improved harmony search algorithm [8], and “hybrid harmony search and particle swarm optimization algorithm (HSPSO)” [9], were developed to improve the optimization capability of the harmony search algorithm. The harmony search algorithm has better optimization capability than the variants of the algorithm. However, the HS algorithm needs support of parameter variation, structural adjustment, and hybridization with other algorithms to improve the performance. The researchers proposed different machine learning models but failed to achieve good classification performance regarding accuracy and computational time. Motivated by the advantages of machine learning and to improve the performance of the machine learning classifiers, a novel hybrid modified harmony search and sine cosine algorithm (MHS-SCA) optimization-based extreme learning machine (ELM) model is proposed for the automatic classification of brain tumors. Considering the parameter adjustment, pitch adjustment, and structural adjustment, we are motivated to propose a novel hybrid modified harmony search-sine cosine algorithm for weight optimization of ELM machine learning classifier to classify brain tumors from the MRI images. The literature review found that the MHS-SCA weight optimization of the ELM model has just been reported.

The following are the research’s contributions:(i)We have developed the mathematical algorithm of modified harmonic search-sine cosine algorithm (MHS-SCA) hybrid optimization algorithm by considering the parameters of harmony search and sine cosine algorithm.(ii)Five benchmark functions are utilized to validate the authenticity of the modified harmonic search-sine cosine algorithm. The benchmark functions are optimized through MHS, SCA, and PSO algorithms and compared with the proposed MHS-SCA optimization technique.(iii)We have utilized the proposed MHS-SCA for the weight optimization of the ELM classifier to improve its performance.(iv)An improved fuzzy factor-based FLICM segmentation is proposed to detect brain tumors from MRI images.

The article is organized as follows: Section 2 presents the related work, Section 3 presents the research methodology and hybrid MHS-SCA-based ELM model explanation, Section 4 presents the benchmark validation, segmentation, and classification results, Section 5 presents a discussion of the results, and Section 6 presents conclusion followed by the references. Table 1 shows the abbreviations used in this article.

Due to the mathematical complexity, FCM-based approaches could improve in reducing noise and detecting tumors in brain MRI images. To reduce the computational complexity demands caused by the spatial term, Szilagyi et al. [2] presented the enhanced FCM method (EnFCM), which uses gray levels with a smaller value than the image size. The parameter (adjustable) in EnFCM is crucial for enhancing segmentation outcomes. Although Cai and Chen’s fast generalized FCM approach (FGFCM) requires more parameters than the EnFCM to ensure the segmentation’s fidelity to detail and minimize noise, it increases FCM’s robustness through a similarity measure factor. The membership partition matrix is subjected to median filtering in FRFCM [10] to lessen noise and increase segmentation precision. To improve the segmentation performance, we have developed an improved fuzzy factor-based fuzzy local information C means (FLICM) segmentation technique for the detection of brain tumor. Furthermore, the classification of brain tumors is important for medical practitioners. Lesion enhancement, feature extraction, selection, and classification approaches were all combined into one detection method by Amin et al. [11]. The input image was normalized using the N4ITK3 approach during the in-lesion enhancement step. Features were extracted using the histogram-oriented gradient (HOG), and their fusion was carried out using SFTA and LBP (texture-based) features. The fused features were chosen via the Boltzmann entropy method. Multiple classifiers are given the fused feature vector to compare, which can make predictions with higher accuracy. Tumor estimate was done using the BraTS datasets, which had a mean dice similarity coefficient (DSC) of 0.99. Nazir et al. [12] developed a wavelet transform segmentation method. The high-energy subband of the image was separated into blocks in the first phase of decomposition into wavelet subbands. Discrete cosine transform is used in the second step to choose high-variance features from each block and align them with the neural network for classification and a 99.7% accuracy was attained. Saba et al. [13] proposed the region of interest (ROI) of posttraumatic stress disorder (PTSD) in the brain using resting-state functional magnetic resonance imaging (rs-fMRI), and machine learning algorithms were used to distinguish between PTSD and healthy controls. For classification, the k-NN and SVM with radial basis function kernel achieved high accuracies of (96.6%, 94.8%, 98.5%) and (93.7%, 95.2%, 99.2%), respectively. The transfer learning AlexNet’s convolutional neural network (CNN) utilized by Badjie and Deniz Ülker [14] to classify brain tumor MR images and achieved an accuracy of 99.62% in classifying the tumors. Kurdi et al. [15] proposed Harris hawks optimized convolution network (HHOCNN) with Kaggle dataset and achieved a 98% overall accuracy. Sarmad et al.[16] proposed a specially designed 17-layered deep neural network and used the BraTS 2018 and Figshare datasets and obtained 97.47% accuracy and 98.92% accuracy, respectively. Rajinikanth et al. [17] employed the VGG16 and VGG19 convolutional neural network (CNN) schemes with the SoftMax function and achieved 99% when used with decision tree (DT). Annepu et al. [18] reviewed terrestrial anchor node (FTAN) with soft computing optimization of extreme learning machine (ELM). Annepu et al. [19] uses ELM For node localization in UAV-assisted WSNs. A two-dimensional flexible analytical wavelet transform (FAWT) was proposed by Patel and Kashyap [20] for feature extraction and feature selection by PCA from the SARS-CoV-CT database. The extracted features were fed to least square-SVM (RBF) for classification and achieved an accuracy of 93.47% with tenfold cross-validation. The least square-support vector machine (SVM), Gabor filter bank, and linear discriminant analysis (LDA) were used for classification feature extraction and feature selection for the COVID-19 dataset and achieved a classification accuracy of 93.96% [21]. Further, LS-SVM was used and achieved a classification accuracy of 95.48%, a specificity of 95.37%, a sensitivity of 95.43%, and an F1 score of 95 [22]. Patel and Kashyap [23] proposed a novel approach based on bit-plane slicing (BPS), local binary pattern (LBP), and gray-level co-occurrence matrix (GLCM) for LBP images and achieved an accuracy of 95.04%. Singh et al. [24] proposed a novel computer-aided diagnostic network and Gabor-modulated convolutional filter-based classifier for brain tumor classification of brain tumor with BraTS dataset and achieved 98.68% classification accuracy. The ultra-light brain tumor detection (UL-BTD) system was proposed by Qureshi et al. [25] for the diagnosis and surgical resection of brain tumors using magnetic resonance (MR) images. The proposed UL-BTD system introduces a novel ultra-light deep learning architecture (UL-DLA) that incorporates deep features and highly distinctive textural features extracted by the gray-level co-occurrence matrix (GLCM). This combination forms a hybrid feature space (HFS) utilized for tumor detection through support vector machine (SVM) and achieved an average detection rate of 99.23% and an F-measure of 0.99 for glioma, meningioma, and pituitary tumors.

Some of the harmony search-based optimization techniques were applied to different engineering problems. A brand-new binary harmony search (BHS) was put forth by Shi et al. [26] to choose the best channel sets and enhance system accuracy. Enikeeva et al. [27] offered a gravitational search algorithm and the harmony algorithm to address the issues with chemical kinetics, while Bala and Safei [9] proposed a hybrid harmony search and particle swarm optimization algorithm (HSPSO) strategy to speed up algorithm performance. The harmony search algorithm and an artificial neural network for fraud detection were proposed by Daliri [28]. Zhu et al. [29] proposed an autonomous clustering approach (AC-DPHS) based on dynamic parameters of the harmony search optimization technique. K-means clustering was used to estimate the ideal number of clusters automatically using the dynamic parameter harmony search (DPHS). Al-Betar et al. [30] proposed integrating island mode principles into the algorithm’s core architecture to enhance the HS algorithm’s convergence capabilities. The population’s constituents are divided into distinct subpopulations known as islands to enhance performance. Harmony search-based techniques were used by Al-Shamiri et al. [31] to optimize the weights of ELM. The combination of HS algorithms and ELM has produced effective generalization results. Dai et al. [32] proposed a self-adaptive multiobjective harmony search (SAMOHS) algorithm by employing a self-adaptive bandwidth to solve a practical engineering optimization problem. Haghshenas et al. [33] applied a harmony search for slope stability analysis in geotechnical engineering to avoid the risk associated with the occurrence of a landslide. Mansor et al. [34] proposed scheduling and rostering of bus driver problems using a harmony search algorithm. Utilizing the step function, the harmony memory consideration rate (HMCR) parameter is adjusted to optimize the distribution of shifts and routes among drivers. An island-based harmony search technique for economic load dispatch was put forth by Al-Betar [35]. When tracing the contacts of the coronavirus, Al-Shaikh et al. [36] introduced the hybrid harmony search (HHS) approach to locate strongly connected components (SCCs). This method results in a run time increase of 77.18% and a remarkable average error rate of 1.7%. With more computational time, the aforementioned research yields a range of accuracy levels. The sine cosine algorithm (SCA) was proposed in [37, 38] for the optimization problems. Mishra et al. [39] proposed the classification of brain tumors using the modified SCA for local linear radial basis function neural network. The MSCA-APSO was employed to optimize weights and achieved 99% sensitivity, 100% specificity, and 99.61% accuracy. The modified harmony search-sine cosine algorithm (MHS-SCA) that has been proposed is yet to be used for optimization.

3. Materials and Methods

The proposed system architecture is presented in Figure 1. The research flow steps are as follows. (1) The brain tumor images undergo resizing. (ii) The images undergo Mexican hat wavelet transform for feature extraction to make a new feature dataset. (iii) The feature dataset is aligned as input to the proposed MHS-SCA-ELM, SCA-ELM, MHS-ELM, and PSO-ELM.

3.1. Proposed Hybrid MHS-SCA Optimization Algorithm
3.1.1. The Sine Cosine Algorithm (SCA)

The sine cosine algorithm (SCA) [37, 38] is a metaheuristic optimization technique that works by simulating the sine and cosine functions, which are periodic, to create a search process that explores the solution space. The SCA begins by randomly generating a population of candidate solutions, which are represented as vectors in the solution space. At each iteration, the algorithm evaluates the fitness of a set of candidate solutions and updates them based on their fitness values and their positions in the solution space. The evaluation is accomplished by the fitness of each candidate solution by an objective function that measures the problem constraints. The best candidate solutions are selected based on their fitness values. The selected solutions are updated by adapting their positions in the solution space based on the sine and cosine functions. The sine and cosine functions played the role of optimization in the search space to reach the destination. The sine and cosine functions are used to update the position of each solution in the search space. The sine and cosine functions converge to zero with a bound limit of [−1, 1]. When the sine and cosine waves tend to move in search space, they achieve new positions at different time intervals.

The updated position equation is given bywhere , , , and are the random variables.

The next position in the search is presented by , determines direction, controls the current movement, and the parameter changes constantly among the sine and cosine functions. is the best position obtained during destination search. is given bywhere and represent current iteration and maximum iteration, respectively, and is a constant. The SCA hybridized favorably with modified harmonic search metaheuristic algorithms to improve optimization capability.

3.1.2. Harmony Search Algorithm

The harmony search algorithm is proposed to generate a set of random candidate solutions, called harmonies, and improve them iteratively by adjusting the values of their components, called pitches, to mimic the process of improvising music [40]. In order to attain the best musical note optimization, artists practice, which is the foundation of harmony search (HS) [31, 40, 41]. HS is acknowledged as a metaheuristic optimization algorithm. The artists are thought of as algorithmic decision variables. The same way musicians can improve their sound effects by practicing frequently, optimization objective function results can be improved. The musicians improvise harmony while they are composing using the HS approach. The musicians mix several musical pitches to create a fine tune, which they then memorize for later use. Different HS factors were crucial to optimization, including PAR, HMCR, and PAR. The randomly generated harmony matrix is given by

Initializing the harmony memory (HM) space containing HMS harmony vectors a probability parameter pitch adjusting rate(PAR) is required as per the “bw” parameter. The BW parameter is the step size tuning parameter. The new harmony vector is defined aswhere

3.1.3. Modified Harmony Search-Sine Cosine Algorithm (MHS-SCA) Optimization Technique

The original HS algorithm’s slow convergence rate and tendency to become stuck in local optima were addressed by the modified harmony search (MHS) algorithm, which is an enhanced version of the original HS algorithm.

Now to achieve faster optimization, the harmony vector is modified aswhere is the modified harmony search and is the learning parameter.

According to the parameter PAR, a higher PAR probability during the initial iterations aids in adjusting the numerical variables through the pitch stages to enhance the variety of solutions and prevent local optimum.

The PAR is given bywhere is the maximum iteration and is the maximum number of improvisations. We have to choose the PAR parameter to a larger value.

Now combining the sine and cosine algorithm position equation and harmony vector equation, the new position equation is given by

The ELM model’s weights will be optimized using the proposed hybrid MHS-SCA technique. The proposed MHS-SCA method selects five benchmark functions for optimization to demonstrate its efficacy. The pseudocode of MHS-SCA optimization is presented in Table 2. The flowchart for MHS-SCA is presented in Figure 2.

For the MHS algorithm, the initialization of parameters and estimates has a complexity of O (). The process model has a complexity of O (n). The number of calculation points used is 2n + 1, so the computational complexity of the SCA per time step is O (). For the MHS-SCA, computation for the entire calculation is measured as O ().

3.2. Proposed MHS-SCA-Based Extreme Learning Machine
3.2.1. ELM Model

The ELM algorithm is a machine learning model consisting of a single hidden layer and randomly generated connection weights between the input and hidden layers. The ELM model [42] is a feed-forward neural network in which the output layer weights are computed analytically to make the convergence process fast and efficient. The weights of the extreme learning machine (ELM) [43, 44] are tuned with the MHS algorithm in accordance with the robustness and quicker convergence performance of the improved harmony search method. ELM is a reliable network that performs well in terms of generalization. It is suggested that the current ELM model combined with MHS learning be used to achieve better generalization outcomes. The model architecture is proposed in Figure 3.

The output function of ELM [43] with N hidden neurons is represented:where is the hidden weight and is the weight which can be expressed aswhere is “feature-mapping matrix” given by

Then, equation (7) can be written aswhere is the “Moore–Penrose generalized inverse of matrix” and is the desired vector.

The desired vector is given by , and .

According to the extreme learning machine, the output layer is defined with weights as

Now, the weights of the matrix will be optimized by the MHS-SCA to improve the performance of the ELM model.

3.2.2. Weight Optimization by MHS-SCA

To achieve the optimization, the weights are maintained in the “harmony memory (HM) matrix,” and the matrix is taken into account with the “harmony memory size (HMS),” and the weight matrix is generated randomly. is the weight matrix, where the subscript MHMS represents the abbreviation as “modified harmonic search.”

Now considering the new learning parameter for faster convergence with “PAR (pitch adjusting rate; 0 ≤ PAR ≤ 1),” the new weight is given bywhere “” is the “maximum change in pitch adjustment.”

The new weight updated equation is given by

Now considering the weight vectors combining with the sine and cosine algorithm position equation and harmony vector equation, the updated position equation is given bywhere is the new learning parameter for optimization. When the values of the weight vector , choose the new weight vector value as . If , choose the weight vector value as . Then select the maximum of weight vectors of both as .

Now considering the maximum values of the weights, the new Moore–Penrose generalized inverse of matrix is given bywhere

The mean square error is written as

By considering the 1000 iterations for the convergence, the mean square error is calculated by utilizing equation (19) and presented in Section 4. Table 3 displays the MHS-SCA’s pseudocode for weight optimization of the ELM model. The framework for brain tumor segmentation and classification is shown in Figure 4.

3.3. Proposed Improved Fuzzy Factor-Based FLICM Segmentation

To improve the effectiveness of FCM-based segmentation algorithms for the detection of brain cancers, an improved fuzzy factor-based fuzzy local information C means (IFF-FLICM) segmentation is presented. The proposed IFF-FLICM segmentation approach enhances the accuracy and reliability of tumor segmentation by incorporating a fuzzy factor in the clustering process to handle uncertainties in medical imaging. Additionally, the local information of each pixel is considered to improve the clustering performance, resulting in a more precise tumor segmentation. FCM segmentation techniques are generally used for noise reduction and detecting tumors from MRI images.

Enhanced fuzzy C means (EnFCM) [2] method claims the objective function as

To improve the noise reduction capability, the fuzzy factor is introduced in the objective function of EnFCM. The fuzzy factor was proposed by Krinidis and Chatzis [45] and was named as fuzzy local information fuzzy C means (FLICM). The objective function with fuzzy factor is given bywhere is the total number of pixels in image, C denotes the cluster centre, and “m” determines the fuzziness of the consequential partition. is the fuzzy partition matrix. The fuzzy factor is given bywhere is the Euclidean distance between the pixels.

The fuzzy factor is boosted to enhance the FLICM segmentation’s capacity to reduce noise, and the enhanced fuzzy factor is provided bywhere is the smoothness parameter of the pixels and the values are defined in between [0, 1].and

The new objective function of improved fuzzy factor FLICM is given bywhere the superscript indicates the improved fuzzy factor. The median filter is appled to the fuzzy partiton matrix to improve the segmentation capability. The new fuzzy partition matrix is given by . The parameters used for the simulation are presented in Table 4.

3.4. Database

The Medical School of Harvard University generated Dataset-255, which contains “255 (35 normal and 220 pathological) 256 × 256 axial plane brain scans” [39]. Dataset-255 contains aberrant brain MR scans from 11 different disorders, including Alzheimer’s disease. Four novel illnesses, including chronic subdural hematoma, cerebral toxoplasmosis, herpes encephalitis, and multiple sclerosis, are represented by aberrant images in Dataset-255. Out of 255 images, 204 images were taken for training and 51 images for testing. The 204 images, 80% out of 255 images, containing 176 abnormal and 28 normal images, are presented in Table 5.

3.5. Mexican Hat Wavelet Transform and Feature Extraction

Discrete wavelet transform [30] with Mexican hat wavelet has been utilized to extract features from the segmented images. The Mexican hat wavelet function is given bywhere is the standard deviation controlling the smoothness and is the wavelet function.

The images are applied to the median filter for preprocessing at the first instance. The images are filtered by utilizing the median filter to enhance the image quality by removing the noise. The wavelet transform acts as filter and is also applied for feature extraction purpose. A total 204 of images are considered for training, which is 80% of the total 255 images. 51 images are taken for testing, which is 20% of the images. The seven features such as “power spectral density (PSD),” “Kurtosis,” and “Shannon entropy, energy, mean, dispersion entropy, and standard deviation” [39] are extracted from the images and grouped for training and testing dataset. A total of 1785 features are extracted by utilizing seven features (255 × 7 = 1785) and utilized as training and testing dataset for classification purposes. Training and testing data are separated in the database. The training data is taken as 80% which is calculated as (204 × 7 = 1628) and the testing data taken as 20%, which is calculated as (51 × 7 = 357) data from the total dataset. The training dataset and testing dataset are aligned to PSO-ELM, SCA-ELM, and MHS-ELM and proposed MHS-SCA-ELM for classifying the data into cancerous and noncancerous categories. The training and testing results are presented in Table 6.

3.6. Validation of Modified Harmony Search-Sine Cosine Algorithm (MHS-SCA)

The proposed modified harmony search algorithm is tested with the five benchmark functions (F1–F5) [39] presented in Table 7. Out of five benchmark functions, four multimodal functions and one unimodal function are used for optimization. To show the dominance of the proposed MHS-SCA optimization algorithm, other metaheuristic optimization algorithms PSO [39], MHS, and SCA [38] are considered.

Particle swarm optimization (PSO) techniques are based on bird flocking. The PSO, HS, and SCA are the optimization techniques utilized for the weight optimization of several machine learning models. The models such as PNN [40], SVM [31], “local linear radial basis function neural network (LLRBFNN)” [41], feed-forward neural network [37], ELM [44], and CNN [46, 47] were proposed for brain tumor classifications from MRI images with different metaheuristic optimization techniques. The MHS-SCA is the new algorithm proposed for weight optimization of the ELM model in our research. The “sine cosine algorithm (SCA)” [38] is created on sine and cosine function position change due to the involvement of the random movement directions in the search space. All five functions are optimized by employing PSO [39], SCA [38], MHS, and proposed MHS-SCA optimization algorithms.

3.7. Segmentation Performance Measures

Peak signal-to-noise ratio (PSNR) [48] is a simpler and more traditional metric based solely on pixel-wise error; SSIM provides a more comprehensive assessment by considering structural information and mimicking aspects of human visual perception. PSNR is calculated based on the mean squared error between the original image and the distorted image. The formula is often expressed aswhere is the maximum possible pixel value and is the mean squared error. PSNR measures the ratio of the maximum possible power of a signal to the power of corrupting noise that affects the quality of its representation. Higher PSNR values indicate better image quality.

Structural similarity index (SSIM) [48] assesses the structural information and similarity between the reference and distorted images. SSIM considers aspects such as texture and structural information in addition to pixel values.where and are the mean intensities of x and y, and are the variances, is the covariance, and and are the constants to stabilize the division with weak denominator.

3.8. Classification Performance Measure

MHS-ELM, SCA-ELM, PSO-ELM, and the proposed MHS-SCA based ELM model achieve the classification of the brain tumor. The classifiers’ performances are obtained by computing accuracy, computational time, specificity, and sensitivity. For this experiment, 1000 iterations were considered, and the results of each category are presented in Table 6.

4. Results

4.1. Modified Harmony Search Algorithm Validation Result

Five benchmark functions are optimized by SCA, MHS, PSO, and the proposed MHS-SCA optimization algorithm, and results are presented in Figures 59.

The validation of function F1 using the SCA, MHS, PSO, and proposed MHS-SCA is shown in Figure 5. The proposed MHS-SCA method converges more quickly than the mentioned PSO, SCA, and MHS algorithms. The proposed MHS-SCA needed around 50 iterations to reach convergence. In contrast, SCA, MHS, and PSO required about 100, 190, and 220 iterations, respectively, as can be seen in Figure 5. The subfigure shows the clarity about the convergence curves of each algorithm. To differentiate the iterations required for MHS and PSO, the subfigure is mentioned and marked with an arrow mark. The iterations required for the convergence of MHS and PSO are clearly shown. The lines in green and black also show the MHS-SCA and SCA convergence curves. Additionally, the PSO, MHS, and SCA achieved ideal values of 0.75759, 0.43609, and 0.29418 for function F1, but the proposed MHS acquired an optimal value of 0.18868. One thousand simulation iterations are used for all benchmark function optimizations. The best parameters and iterations for convergence demonstrate the proposed MHS-SCA’s robustness. Table 7 shows the optimal values obtained by the different algorithms.

Figure 6 presents the validation of function F2. Figure 4 shows that the proposed MHS took nearly 100 iterations, whereas SCA, MHS, and PSO took nearly 200, 210, and 320 iterations for convergence. To differentiate the convergence lines, the subfigure is mentioned in Figure 6. From the subfigure, we can easily identify the iteration required for MHS-SCA; other curves can be seen from the main figure. The proposed MHS-SCA achieved an optimal value of 0.18353 for function F2, whereas PSO, MHS, and SCA achieved optimal values of 0.71184, 41268, and 0.26211.

The validation of function F3 is shown in Figure 7. According to Figure 7, the suggested MHS-SCA required only around 250 iterations, whereas SCA, MHS, and PSO required about 300, 310, and 350 iterations, respectively, to reach convergence. The convergence iterations are discovered to be distinct from the primary. The iteration that SCA, MHS, and PSO took is clearly depicted in the subfigure of Figure 7. Additionally, the PSO, MHS, and SCA achieved ideal values of 0.66278, 0.38888, and 0.19526 for function F3, while the proposed MHS acquired an optimal value of 0.17603 for that function.

Figure 8 presents the validation of function F4. Figure 8 shows that the proposed MHS-SCA took 190 iterations, whereas SCA, MHS, and PSO took nearly 250, 290, and 450 iterations for convergence. The subfigure clarifies the iteration needed for MHS-SCA and is marked with an arrow mark. An optimal value of 0.17423 is obtained by the proposed MHS-SCA for function F4, whereas PSO, MHS, and SCA achieved optimal values of 0.66504, 32961, and 0.26617.

Figure 9 shows that the proposed MHS-SCA took nearly 50 iterations, whereas SCA, MHS, and PSO took nearly 130, 220, and 250 iterations for convergence. The convergence curves are not clearly shown in Figure 9. The subfigure clearly shows the iteration needed for the SCA and MHS algorithms. Further, the proposed MHS-SCA achieved an optimal value of 0.16249 for function F5, whereas PSO, MHS, and SCA achieved optimal values of 0.69023, 32825, and 0.29454. The optimal values are presented in Table 8.

Table 8 shows the optimum values for PSO, MHS, SCA, and MHS-SCA. All the benchmark functions F1–F5 achieved good optimal values in the proposed MHS-SCA, showing superiority compared to PSO, MHS, and SCA optimization algorithms. The comparison bar result is presented in Figure 10.

4.2. Brain Tumor Segmentation Results

EnFCM, NDFCM, FLICM, and proposed IFF-FLICM segmentation techniques accomplished the brain tumor segmentation. The Rician noise was reduced, and tumor detection using the proposed IFF-FLICM segmentation technique obtained 99.37% accuracy.

The EnFCM segmentation was employed for the brain tumor image with noise. The noise removal capability of the EnFCM segmentation technique is improper due to the biased character of the controlling parameter. The detection tumor is not obtained correctly, which can be seen from Figure 11. The SSIM value obtained is 0.7324, and PSNR is 23.17, and the lower values of PSNR and SSIM indicate the poor detection capability of the EnFCM algorithm.

The NDFCM segmentation automatically tunes the trade-off parameter by calculating the local variance of gray levels to improve the detection capability. It can be observed from Figure 12 that, still, the detection needs to be up to the required levels because NDFCM uses more parameters during segmentation. The SSIM and PSNR values were obtained as 0.8954, and 28.54 db, which are higher than those of the EnFCM segmentation, but the still values of SSIM and PSNR are less.

The FLICM segmentation replaced the controlling parameter with the fuzzy factor and obtained the SSIM and PSNR values as 0.9317 and 32.59 db. SSIM and PSNR are higher than those of the EnFCM and NDFCM presented in Figure 13, which shows better segmentation capability. Also, a segmentation accuracy of 98.92% was obtained, which is also higher than that of the EnFCM and NDFCM segmentation techniques, which can be observed in Table 9.

Further, to improve the segmentation performance of the FLICM, the fuzzy factor is improved in the fuzzy partition matrix and passed through the median filter. It can be observed from Figure 14 that the segmentation IFF-FLICM technique outperformed the other FCM-based segmentation techniques. The SSIM and PSNR achieved 0.9823 and 37.24, higher values than the EnFCM, NDFCM, and FLICM segmentation techniques.

The brain tumor segmentation using techniques such as EnFCM, NDFCM, FLICM, and proposed IFF-FLICM is presented in Figures 1114. The Rician noise is involved in the MRI images during the acquisition of images from the patients. Figure 11 shows the segmentation of brain tumor using the EnFCM technique. The segmentation accuracy was calculated when the Rician noise of was present in the image. It is observed from Figure 11 that the noise reduction is less and the detected tumor was not accurate. The segmentation accuracy obtained by the EnFCM is 96.19%. Figure 12 shows NDFCM segmentation which achieved an accuracy of 97.84%, and the tumor was not properly obtained due to the involvement of the noise. Figure 13 shows the somehow better noise reduction capability by utilizing the FLICM segmentation. The FLICM segmentation provides an accuracy of 98.92%. The location of the tumor is nearly appropriate with an accuracy of 99.37% by utilizing the proposed IFF-FLICM segmentation. The brain tumor segmentation of the IFF-FLICM is shown in Figure 14. The segmentation accuracy of the EnFCM, NDFCM, FLICM, and proposed IFF-FLICM is shown in Table 9. Further, to measure the segmentation performance, two quality measures, “structural similarity index (SSIM) and peak signal-to-noise ratio (PSNR) [37],” are considered. The higher value of PSNR and SSIM represents good noise reduction capability. The proposed IFF-FLICM segmentation offered a PSNR value of 37.24 dB and an SSIM value of 0.9823, showing a good reduction of noise capability compared to the other mentioned EnFCM, NDFCM, and FLICM segmentation techniques. The values of SSIM and PSNR are presented in Table 10. The primary goal of segmentation is to identify and delineate regions of interest within an image. These regions correspond to tumor structures or other clinically relevant features. The segmentation output may be further annotated with clinically relevant information. For the purpose of comparison of segmentation techniques, we have taken the same image.

4.3. Results of IFF-FLICM Segmentation with Breast Cancer, BraTS, and COVID-19 Database

We have employed the IFF-FLICM segmentation on the Mini Mammographic Image Analysis Society (Mini-MIAS) [49], Digital Database for Mammography Screening (DDSM) [50], BraTS 2018 [46], BraTS 2019 [47], and COVID-19 [37] datasets. The performance results for different datasets are presented in Table 11. From Table 11, it is observed that the segmentation accuracy for breast cancer DDSM, Mini-MIAS, BraTS 2018, and BraTS 2019 achieved is nearly identical to the Dataset-255. However, the variations are observed in COVID-19 dataset due to the poor image quality. Also, SSIM and PSNR are higher, showing better segmentation. So the proposed IFF-FLICM outperforms the different datasets. Figure 15 shows the detection of the DDSM breast cancer dataset with IFF-FLICM segmentation. Figure 16 shows the Mini-MIAS breast cancer dataset, Figure 17 shows the COVID-19 dataset, Figure 18 shows BraTS 2018 brain tumor dataset, and Figure 19 shows the BraTS 2019 brain tumor dataset. It is observed that the proposed IFF-FLICM segmentation shows better segmentation results.

4.4. Classification Results

The comparison of training, testing, sensitivity, specificity, and computational time for PSO-ELM, MHS-ELM, SCA-ELM, and MHS-SCA-ELM models is presented in Table 6.

Table 6 shows the performance measure analysis of different classifiers along with the proposed MHS-SCA-ELM model. The performance measure analysis shows the uniqueness of the proposed MHS-SCA-ELM model. During training, the proposed MHS-SCA-ELM achieves 99.12% accuracy and 98.47% testing accuracy. This shows the performance improvement of the proposed model, as we know the model’s authenticity is accepted based on the testing capability. Further, the sensitivity and specificity are 98.78% and 99.23%, respectively. Computational time is important in the classification process for any new development model. The proposed MHS-SCA-ELM model took 23.2487 seconds, while the other mentioned models took more computational time for convergence.

The proposed model is tested with the 51 images of Dataset-255. Out of 51 images, 44 malignant and 7 benign images are considered for testing. One way to test the performance of the proposed model is to use cross-validation. Cross-validation involves partitioning the dataset into multiple subsets and using each subset as both training and testing data. We have taken 5 × 5 cross-validation. The data are partitioned into 5-folds, and each fold contains 51 images for a single run. There are five runs taken together, and then the average value of five runs is the average accuracy of the classification. Further, to test the performance of a proposed model, we can use metrics such as accuracy, precision, recall, and F1 score. Tables 12 and 13 show the 5 × 5 cross-validation procedure.

The Fold-1 calculation is given by

The average value of column-4 represents the F1-Score, and the average value is obtained as 99.54%. All the values are obtained by taking the values of TP, TN, FN, and FP from Table 12. For each run, the performance metric is calculated and the average accuracy is achieved as 99.12%. For run-2, Accuracy (Column-1), Precision (Column-2), Recall (Column-3), and F1 Score (Column-4), values are obtained as 99.01%, 100%, 97.67%, and 98.83%, respectively. Similarly, we can calculate the values for Accuracy, Precision, Recall, and F1 score for each run.

The average values can be calculated as =(0.9804 + 1 + 1 + 1 + 0.9844)/5 = 0.9921 or 99.21%.

The proposed MHS-SCA-based ELM required around 570 iterations, whereas SCA-ELM, MHS-ELM, and PSO-ELM required about 600, 620, and 900 iterations, respectively, to converge as shown in Figure 20. The proposed MHS-SCA-based ELM takes 23.2487 seconds to compute, which is less than the computational times of the MHS-ELM, SCA-ELM, and PSO-ELM machine learning models. For the experiment, 1000 iterations are considered for each mentioned model. The performance evaluation results are presented in Table 6. The classification performance of different datasets is presented in Table 14.

The accuracy of the proposed MHS-SCA-ELM model is 99.12% with Dataset-255. The DDSM and Mini-MIAS breast cancer datasets achieved 99.11% accuracy and 99.10% accuracy which are nearly identical to the classification accuracy with Dataset-255. Also, the BraTS 2018 and BraTS 2019 brain tumor datasets achieved 99.11% accuracy and 99.12% accuracy. Also, the computational time is nearly similar in all the datasets except the COVID-19 dataset. The COVID-19 dataset achieved 98.86% accuracy due to poor image quality. It is observed from Table 14 that the proposed MHS-SCA-ELM model performs well in all the datasets mentioned. So the proposed MHS-SCA-ELM model shows its robustness in the classification of brain tumors.

5. Discussion

This study proposes an improved brain tumor detection and classification approach using a combination of fuzzy factor fuzzy local information C means segmentation and MHS-SCA optimized extreme learning machine. The proposed MHS-SCA optimization algorithm is employed for the weight optimization of the ELM model. The mathematical analysis for MHS-SCA optimization is developed by hybridizing SCA and harmony search algorithm. The pseudocode for MHS-SCA is presented in Table 2. The research implementation diagram is presented in Figure 1. MHS, SCA, PSO, and the proposed MHS-SCA for validating the proposed MHS-SCA optimized four multimodal functions and one unimodal benchmark function. The validation results are presented in Figure 5 for F1 function, Figure 6 for F2 function, Figure 7 for function F3, Figure 8 for F4 function, and Figure 9 for function F5. The clarity of the convergence for F1–F5 was also shown with a subfigure for distinguishing between the optimized graphs. The modified harmony search took a lesser number of iterations for convergence. There are 1000 iterations considered for the optimization of functions. Table 3 presents the benchmark functions utilized for the research, whereas Table 4 presents the pseudocode for MHS-SCA for weight optimization of the ELM model. Table 5 presents the parameters used for the simulation of MHS-SCA optimization algorithm. The Dataset-255 details are presented in Table 7. The benchmark functions’ optimal values for PSO, SCA, MHS, and MHS-SCA are presented in Table 8. Figure 10 presents the optimal value comparison for functions F1–F5. The brain tumor images underwent IFF-FLICM segmentation and Mexican wavelet transform feature extraction. The mathematical analysis for IFF-FLICM segmentation was developed and presented. Figure 11 presents the EnFCM segmentation with higher noise content, and Figure 12 shows the segmentation of tumors using NDFCM. The FLICM segmentation is shown in Figure 13. The proposed IFF-FLICM segmentation with noise reduction is shown in Figure 14. Table 9 shows the segmentation accuracy of the EnFCM, NDFCM, FLICM, and proposed IFF-FLICM segmentation techniques. The quality measures SSIM and PSNR are presented in Table 10. The performance measures, accuracy, specificity, and sensitivity of the classifiers PSO-ELM, MHS-ELM, SCA-ELM, and MHS-SCA-ELM are presented in Table 11. Table 6 shows the classification performance of the models. Figure 13 shows the mean square results of PSO-ELM, MHS-ELM, SCA-ELM, and MHS-SCA-ELM classifier models. The proposed model MHS-SCA-ELM is unique in classifying benign and malignant brain tumors. The proposed MHS-SCA-ELM model’s accuracy performance is compared with previous research and presented in Table 15. Tables 12 and 13 show the 5 × 5 cross-validation procedure for each fold and run during training. Table 14 shows the classification accuracy of the breast cancer, BraTS 2018, BraTS 2019, and COVID-19 datasets. We have consulted the Adama General Hospital, Adama, Ethiopia, and shown them the results of our model, and they suggested for prototype design. The prototype development using embedded platform is our future research work. Figures 21 and 22 show the Dataset-255 images and IFF-FLICM segmentation results.

The MHS-SCA-ELM model is a hybrid algorithm that combines the optimization capabilities of the modified harmony search algorithm and sine cosine algorithm with the fast learning speed of extreme learning machine (ELM) for classification tasks to avoid overfitting. Generally, ELM models are considered less interpretable than traditional machine learning models because the weights assigned to each input feature are randomly generated, and the model needs to explain how these weights are determined. Furthermore, the lack of insight into the model’s superiority could indicate that the model needs to be more balanced with the training data. Overfitting occurs when a model is overly intricate and matches the noise in the training data instead of the underlying patterns. As a result, the model may perform well on the training set of data. The MHS and SCA algorithms were used separately to optimize the weights in order to improve the performance of the ELM model, and the results are displayed in Table 6 with classification accuracy values that are lower than those of the prior research. By incorporating MHS-SCA weight optimization process that aims to minimize the sum of the squared errors between the predicted and actual outputs, this process helps to identify the optimal weights for each input feature and allows for greater interpretability of the model. During the processing of training, the weights are randomly generated for the purpose of optimization. The position equations of the sine cosine algorithm are mapped into the weight vectors. In the MHS-SCA, the parameters of SCA played an important role in convergence. Also, the learning parameter and pitch adjustment of harmonic search improve the weight optimization process to achieve better classification efficiency. According to the controlling parameter variation, the sine and cosine functions change their position to an updated position. Along with that, the weights also changed their values from the old weight values to new weight values. This process will continue till the optimal values of weights are achieved. From the comparison of data provided in Table 8, it is observed that the work proposed by Kang et al. [49], with 253 images, obtained a 97.05% accuracy for the ELM model. Díaz-Pernas et al. [50] acquired 97.3% accuracy in conjunction with the multiscale CNN classifier with a dataset of 3064 images. We, however, obtain better accuracy of 99.12% for the Dataset-255 using MHS-SCA in combination with ELM as the classifier. This proves that the proposed MHS-SCA, combined with the ELM classifier, achieved good performance compared to other algorithms.

5.1. Advantages of Proposed IFF-FLICM Segmentation and MHS-SCA-ELM Model

The improved fuzzy factor fuzzy local information C means (IFF-FLICM) segmentation is a valuable technique in the field of medical imaging, particularly for brain tumor analysis, where accuracy, complexity, and clinical significance are important. The advantages are mentioned below:(i)Improved FF-FLICM algorithms can enhance the accuracy of brain tumor segmentation results compared to traditional methods. The IFF-FLICM algorithm influences fuzzy logic and local information to capture subtle variations in tumor boundaries, which can be challenging for other segmentation techniques.(ii)By incorporating local contextual information, improved FF-FLICM can reduce segmentation errors and enhance image quality, intensity, and contrast, leading to more reliable and clinically meaningful results.(iii)Improved FF-FLICM can reduce the need for manual segmentation efforts, saving time for radiologists and clinicians while maintaining segmentation quality. It will provide a platform for researchers to explore novel segmentation techniques and incorporate domain-specific knowledge to improve brain tumor analysis. It can be integrated into clinical analysis to facilitate seamless use by healthcare professionals.

The hybridization of MHS and SCA offers a potent method to optimize ELM weights in the context of classifying images of brain tumors, increasing accuracy, robustness, and effectiveness. However, it is crucial to verify the significance of this hybridization through proper parameter adjusting. The following are the advantages:(i)The hybrid MHS-SCA-ELM model helps achieve higher classification accuracy and prevents overfitting of brain tumor images, which is crucial for accurate diagnosis and treatment development.(ii)Combining the strengths of both MHS and SCA, we obtained optimal solutions more quickly. As the optimization progresses, the MHS-SCA component fine-tuned the weights locally, leading to faster convergence to an optimal solution.(iii)As brain tumor images have complex and noisy features, the hybrid approach improves the robustness of the optimization process by mitigating the risk of getting stuck in local optima and by adapting to the diverse characteristics of the image data.(iv)The hybridization of MHS and SCA leads to more consistent and stable optimization results across different brain tumor and other medical image datasets, which shows confidence in the model’s performance.

5.2. Limitations and Future Work Recommendations

The improved FF-FLICM algorithm can also be applied to handle noisy pixels of the brain tumor more effectively by modifying the membership function further. Adaptively adjusting the weighting of local information based on the characteristics of the image can help the algorithm perform better in regions with varying levels of detail and contrast. IFF-FLICM algorithm can also be applied in medical imaging and other domains where multiple sources of information need to be fused for segmentation. The IFF-FLICM algorithm allows users, such as radiologists or image analysts, to provide feedback to guide the segmentation process. This can improve the accuracy of segmentation results and make the algorithm more user-friendly. The IFF-FLICM technique can be involved as a preprocessing step in deep learning models such as convolutional neural networks (CNNs) or recurrent neural networks (RNNs) to enhance the representational power of deep neural networks.

The hybrid MHS-SCA optimization technique can be used to fine-tune pretrained ELM models on a smaller, domain-specific dataset to improve generalization for brain tumor classification tasks. By deploying optimized MHS-SCA-ELM model inference on hardware platforms in real-time clinical settings, the mortality rate due to brain tumor disease can be avoided at an early stage. In collaboration with medical professionals, the performance of the hybrid ELM model on diverse and large-scale clinical datasets can meet the standards required for clinical applications. The optimized MHS-SCA-ELM models can be taken into decision support systems for radiologists to ensure user-friendly interfaces that enable medical practitioners to interact with the model’s predictions and recommendations effectively. The hybrid MHS-SCA optimization approach can be adapted for transfer learning scenarios. The MHS-SCA optimization can be integrated with k-NN and SVM models [56]. The proposed MHS-SCA-ELM model is robust and unique due to its accuracy and computational time. The proposed model is validated for breast cancer, COVID-19 datasets, etc., but not for the larger image datasets.

These future directions can significantly advance the application of hybridized optimization techniques for brain tumor image classification using ELM models, ultimately leading to more accurate, efficient, and clinically valuable tools for medical practitioners and researchers.

6. Conclusion

In this research, IFF-FLICM segmentation was proposed for segmenting brain tumors. The proposed approach enhances the accuracy and reliability of tumor segmentation by incorporating a fuzzy factor in the clustering process to handle uncertainties in medical imaging. Additionally, the local information of each pixel is considered to improve the performance, resulting in a more detailed segmentation of the tumor. The proposed IFF-FLICM segmentation shows good capability in reducing noise and tumor extraction from the MRI images. The Mexican hat wavelet was applied for feature extraction of the segmented images. A hybrid modified harmony search-sine cosine algorithm (MHS-SCA) algorithm was proposed for weight optimization of the ELM model to enhance the performance of the ELM model. Five benchmark functions were considered to show the proposed MHS-SCA optimization algorithm’s effectiveness. The proposed MHS-SCA optimized the benchmark functions and was compared with PSO, MHS, and SCA optimization algorithms to show the robustness of the MHS-SCA. The optimal values for functions (F1–F5) of the proposed MHS-SCA show the uniqueness of the algorithm. The MHS-SCA optimized extreme learning machine was then employed to classify the segmented tumor into cancerous or noncancerous categories. The Harvard Medical School dataset was utilized for the training and testing process. The training and testing data were fed to the proposed MHS-SCA-ELM model for brain tumor classification. The other models, such as PSO-ELM, MHS-ELM, and SCA-ELM, were also considered for the classification of brain tumors, and results from the models were compared with the proposed MHS-SCA-ELM model. The proposed MHS-SCA-based ELM model achieved an accuracy of 99.12% classification. Also, a sensitivity, specificity, and accuracy of 98.78%, 99.23%, and 99.12% and a computational time of 23.2478 seconds were achieved. Similarly, the proposed model achieves precision of 99.29%, recall of 98.21%, and F1 score of 99.72%. The segmentation and classification results for breast cancer and COVID-19 datasets are presented in Tables 11 and 14 to show the authenticity of the IFF-FLICM segmentation and MHS-SCA-ELM model. The proposed MHS-SCA can also be applied for weight optimization of other machine learning models for different medical image classifications. The experimental results demonstrate that the proposed MHS-SCA-ELM approach outperforms the PSO-ELM, MHS-ELM, and SCA-ELM methods in terms of accuracy, sensitivity, specificity, and computational time. The proposed MHS-SCA-ELM classifier has the potential to aid radiologists in accurately detecting and classifying brain tumors, leading to better diagnosis and treatment planning.

Data Availability

The data have been collected from the Medical School of Harvard University and will be provided upon request to the corresponding author.

Conflicts of Interest

The authors declare that they have no conflicts of interest.