1 Introduction

The automatic computer-aided diagnostic procedures are unfolding medical imaging research to explore and visualize tremendously emerging patterns [1, 2]. The growing standardization in clinical decision-making advances the process and increases the patient’s survival rate at an early stage. Computer vision and pattern recognition help the radiologist, physician, pathologist, and experts in the contribution of advanced techniques for the treatment of patients [3, 4]. Medical imaging segmentation is an essential and challenging task for improving the decision-making process's performance [5,6,7].

In their reports, WHO (World Health Organization) and American Brain Tumor Association have classified brain tumor as benign and malignant tumor types. Grading of these tumor types can be done on a scale from grade I to grade IV. However, National Brain Tumor Society report states that over 87,000 people will be diagnosed with a primary brain tumor in 2020 in the United States. Hence, this estimation states that there will be 61,430 brain tumor benign cases and 25,800 brain tumor malignant cases.

Image processing plays a crucial role in enhancing prominent finding effectiveness and identifying the patterns [8, 9]. The multidimensional image can be generated using two modalities for radiological medical imaging applications such as computed tomography (CT) and magnetic resonance imaging (MRI) [10]. The most preferred non-invasive modality for acquiring human neural activity is MRI due to high resolution, least ionizing radiation, and soft tissue capabilities [11]. Generally, the different MRI images are utilized for diagnosis purposes, including T1- weighted MRI, Flair with contrast enhancement, Flair and T2-weighted MRI [12] as shown in Fig. 1.

Fig. 1
figure 1

Representative of a T1-Weighted MRI b Flair c Flair with Contrast Enhancement d T2-Weighted MRI

The intelligent detection system helps experts, radiologists, and physicians to decide the uncertainties present in neoplasm. Patel et al. [13] showed the study of different segmentation techniques such (a) thresholding [14] (b) region-based segmentation [15] (c) edge-based segmentation (d) fuzzy c-mean clustering method [16] for medical imaging.

Metaheuristics hybridization is growing exponentially by developing a fusion of two different search operators. The proposed LXLOA algorithm is derived from the merits of the laplacian crossover and lion optimization algorithm. LXLOA is implemented for segmentation and contributes to the skull stripping process. LXLOA algorithm provides a new optimal solution in mating phase by producing new offspring. LXLOA selects the best male agent (high fitness value) to mutate with female lion for generating a new cub. Laplacian operator explores best probable male lion to replace with worst performing lion. Thus, the best solution is obtained for efficient segmentation of brain MRI images.

The key contributions are highlighted as follows:

  1. (i)

    An intelligent brain tumor detection and diagnosis model is proposed for computer-aided diagnosis systems. Extended Weiner filtering is applied for improving the intensity of images. Further, LXLOA algorithm is based on Otsu’s and Tsallis entropy function to obtain the threshold value and perform segmentation. This process improves the convergence speed. Thus, efficient skull stripping of brain MRI is designed.

  2. (ii)

    A fuzzy weighted k-means embedding linear discriminant analysis algorithm is implemented for the prominent selection of optimized features subset. The artificial neural network (ANN) is used for classification purposes.

  3. (iii)

    Extensive computer simulations and testing are conducted on benchmark functions to determine the efficiency and effectiveness of the proposed method. Moreover, statistical tests are performed for determining the performance significance of acquired results. Further, three-fold comparison is performed as follows:

    1. (a)

      Firstly, the quality of the segmented image is measured using three quality metrics: (a) fitness value; (b) peak signal-to-noise ratio (PSRN) value; and (c) structural similarity index measure (SSIM) value.

    2. (b)

      Secondly, the classification method is trained with acquired selected features from the fuzzy weighted k-means embedding LDA to compute accuracy, sensitivity, and specificity.

    3. (c)

      Thirdly, the effectiveness of the LXLOA is evaluated in terms of the computational cost of convergence for finding an optimal solution.

The performance of the proposed LXLOA (Algorithm 1) is compared against the state-of-the-art metaheuristic algorithms such as DE [17], WOA [18], PSO [19], LOA [20], ACSA [21]. The performance of algorithm depends on the selection of its parameter. These algorithms belong to the family of swarm intelligence algorithms. These are nature-inspired metaheuristic algorithm, and they get converged to the optimal global solution. These algorithms approach towards optimal solution but cannot guarantee it. The rationale behind selecting these algorithms are as follows: (a) DE algorithm holds good exploration ability for optimization problem.(b) WOA [22] maintains a good balance between exploration and exploitation stage and avoids the premature convergence. (c) PSO iteratively updates the position via a swarm of particles for determining the optimal solution. (d) LOA adopts different strategies depending upon the social organization and behavior of lions to find the optimal solution. (e) ACSA’s functionalities are based on breeding of cuckoo birds and works on exponentially increasing switching parameters to provide improved solution.

The paper is structured in different sections as follows: Sect. 2 presents related work and standard lion optimization algorithm; Sect. 3 discusses the proposed methodology; Sect. 4 describes experimental setup, results, and discussion; and Sect. 5 shows the conclusions and future research directions.

2 Related work

Bio-inspired algorithms and swarm intelligence are nature-inspired techniques that help to solve real optimization problems [23]. Various metaheuristic algorithms are applied in image segmentation to obtain refined results and effective performance [24]. Few popular optimization algorithms are artificial bee colony (ABC) [25,26,27,28], particle swarm optimization (PSO) [29], whale optimization algorithm (WOA) [30], genetic algorithm (GA) [31], adaptive particle swarm optimization [32], cuckoo search algorithm [33, 34], grey wolf optimization [35], cat swarm optimization [36], and lion optimization algorithm [37]. These optimization algorithms provide the optimal global solution for the selected set of features through exploitation and exploration [34, 38, 39]. A comparative analysis of different existing algorithms is summarized and presented in Table 1.

Table 1 Comparative analysis of existing algorithms with respect to brain MRI dataset, approaches used, and performance

Manic et al. [48] stated the approach for segmenting the grayscale image based on firefly optimization algorithm using multi-level thresholding. The Kapur’s and Tsallis functions were selected for determining the optimal threshold value for segmenting the images. Thus, the simulation results were evaluated and tested; the algorithm gave better outcomes on comparative analysis. However, the quality metrics of the image were determined using parameters like (a) peak-signal-to-noise-ratio (PSNR); (b) root mean square error (RMSE); (c) structural similarity index matrix (SSIM); and (d) normalized absolute error.

Soleimani et al. [49] implemented the ABC optimization algorithm for segmentation of brain tumor to perform diagnosis and improve the model's accuracy. Jafari et al. [50] proposed a hybrid method for the detection and prognosis of brain tumor MRI imaging. The simulated steps were performed utilizing thresholding, post-processing fast Fourier transform, feature selection through the genetic algorithm, classification using a support vector machine. The performance measures were computed by determining the accuracy of 83.22%.

Yin et al. [51] proposed a novel approach by applying the multilevel thresholding using differential evolution (DE) optimization algorithm for producing a segmented image. Pugalenthi et al. [52] presented the method in which preprocessing is performed by applying social group optimization and fuzzy Tsallis thresholding for improving the intensity of the brain tumor section so that the region can adequately be segmented. The features were extracted by considering the GLCM technique and analyzing the classification using the SVM-RBF kernel for benign and malignant tumors. The evaluated accuracy for the model was estimated at 94% on the MRI brain image dataset.

Natarajan et al. [53] stated the techniques for efficient brain tumor segmentation by implementing preprocessing, segmentation, and post-processing on MRI images. Manogaran et al. [54] presented the approach for identifying the abnormalities present in brain image using orthogonal gamma distribution for determining the under and over segment region on 994 MRI brain images of 30 patients. The wavelet and GLCM based features are extracted from the segmented image, and morphological-based operation was applied for the post-processing of brain MRI tumor image. Further, the image quality was measured using quality metrics as PSNR and MSE parameters.

Havaei et al. [55] implemented the convolutional neural network (CNN) for automatic brain tumor segmentation on the BRATS (2013) benchmark dataset. Bansal et al. [56] proposed multilayer perceptron architecture using lion optimization algorithm (MLP-LOA) for classification purpose. The different stages of the LOA were implemented for determining the optimal solution. The MLP-LOA algorithm efficiency was evaluated by comparing with different existing classification algorithm.

2.1 Lion optimization algorithm

Swarm intelligence and evolutionally computational-based metaheuristics algorithms have been successfully implemented for solving various real-time complex optimization problem. Lion optimization algorithm (LOA) [57] is a popular metaheuristics algorithm inspired by the social organization and behavior of the lion. The formation of initial population is consisting of randomly generated solutions. The social organization of lions is categorized namely as nomads and residents, respectively. Resident lion also referred to pride consisting majority (75–90%) of female lion and remaining as male lion. The pride territory members contain the best-visited position in the region. In LOA, the different procedures and strategies are followed by each specific gender to search for optimal solution. Typically, lion forms the coordinated group to encircle and hunt the prey. Furthermore, in the region of pride territory, randomly some females are selected for hunting, however the remaining female moves in different location of territory. In pride, each male resident lion roams in its own territory. During roaming, resident male lion updates their position if lion reaches a new position which is finer than the current position. The roaming behavior of lion enables strong local search and provides improved solution. Mating process increments the growth in population of lion and helps in exchanging information among the members in pride. In each pride, % \({X}_{mt}\) of female lions intimate with one or more randomly selected male resident lion from the same pride to produce offspring [58]. However, the nomad female lion mates with one of the randomly selected male among the nomads. During mating, the produced offspring is randomly chosen as female and male. Further, defense operation of lion is performed to retain the best male lions as solution playing a vital role in LOA. So, the defense operation is two-stage process: (i) defense against newly developed mature resident male’s lion in pride; and (ii) defense against nomad males. The migration behavior of lion is inspired by the switch lifestyle, where lions exchange from one pride to another pride territory. The migration characteristic helps in improving the diversity of pride and exchanging information. Thus, lion optimization algorithm introduces various operators that help in achieving the optimal solutions.

3 Material and methods

This section shade light on the proposed methodology for the development of intelligent brain tumor detection. The working of the proposed system is divided into six stages are discussed in subsections as follows: (a) brain MRI acquisition; (b) skull stripping of brain MRI (i) image pre-processing using proposed extended Weiner filtering; (ii) image segmentation using proposed LXLOA algorithm; (iii) morphological mathematical operations; and (iv) eliminating cerebral tissue); (c) applying anisotropic diffusion; (d) feature extraction; (e) feature selection; and (f) classification. The flow process of proposed methodology is depicted in Fig. 2.

Fig. 2
figure 2

Flow daigram of the proposed methodology

Series of simulations have been conducted to evaluate the performance of the proposed LXLOA algorithm. All simulations were performed on Intel core i7 with 2.2 GHz speed, 16 GB RAM, NVIDIA Geforce GTX1080 ti 4 GB, and Windows 10 operating system. MATLAB 2018b was used for implementing the proposed algorithm. Extensive parameters tuning was performed for developing the robust simulation model for the implementation of the proposed system (see Fig. 2). LXLOA was implemented using the parameters presented in Table 2, while Table 3 shows the ANN's parameters selected for training the network.

Table 2 Parameters and values
Table 3 Parameters and values used in the ANN

3.1 Brain MRI data and normalized image

T1-weighted brain MRI data consist of 250 samples attained from IBSR (brain segmentation repository) (IBSR), and 150 sample images of MS free data are collected from the Laboratory of eHealth at the University of Cyprus [59] and Institute of neurology and genetics, at Nicosia Cyprus. The obtained sample images are normalized for improving the intensity of images so that effective segmentation and pattern recognition can be visualized.

3.2 Skull stripping

Skull stripping plays an essential role in brain MRI medical imaging for enhancing the clinical research and decision-making process [60, 61]. It is a crucial preprocessing phase for removing cerebral tissue and improving the analysis of brain magnetic resonance images. In the proposed work, the automatic skull stripped algorithm is developed by contributing the two major processes (i) applying extended wiener filtering technique to enhance the quality of images (ii) LXLOA algorithm to obtain fitness value for segmentation of brain MRI image.

3.2.1 Extended Weiner filtering (EWF)

After normalizing the image, the statistical approach of proposed extended Weiner filtering (EWF) is applied to remove noise and enhance brain MRI quality. The mathematical equation of Weiner filtering [62] in Fourier transform is shown in Eq. (1). EWF utilizes the dispersion index which ensures whether the set of obtained occurrences are dispersed or clustered. Dispersion index (SI) is the ratio of variance and mean for noise estimation as shown in Eq. (2). The filter reduces the mean squared error criteria and smoothens the image. The mathematical formation of extended Weiner filtering is depicted in Eq. (3).

$$K\left( {x,y} \right) = \frac{{U*\left( {d,h} \right)P_{s} \left( {d,h} \right)}}{{\left| {U\left( {d,h} \right)} \right|^{2} P_{s} \left( {d,h} \right) + P_{n} \left( {d,h} \right)}}$$
(1)
$${\text{SI}} = \frac{{\sigma^{2} }}{\mu }$$
(2)
$${\text{EWF}}\left( {x,y} \right) = K\left( {x,y} \right) + \frac{{{\text{SI}} - \sigma^{2} }}{{{\text{SI}}}}K\left( {x,y} \right)$$
(3)

Here, \(K(x,y)\) represents the filter, image U(d, h) shows the Fourier transform of PSF (point spread function), \({P}_{s}\left(d,h\right)\) is the power spectrum of the processed signal process, \({P}_{n}\left(d,h\right)\) is the power spectrum of processed noise. \(SI\) Shows the dispersion index, \(\sigma\) and \(\mu\) shows the standard deviation and mean, EWF (x,y) is extended wiener filter.

3.2.2 Laplacian lion optimization algorithm

Image segmentation is a necessary and challenging task for image analysis and diagnosis of disease. The fitness values are generated with combination of otsu’s function and tsallis entropy as shown in Eq. (4). Fitness value is considered as optimal threshold value for segmentation. In LXLOA algorithm, mating process increments the growth in population of lion and helps in exchanging information among the members in pride. In each pride, % \({X}_{mt}\) of female lions intimate with one or more resident male lion having high fitness value (best agent) from the same pride to produce the offspring. However, the nomad female lion mates with one of the best male agent among the nomads. A mutation with probability is applied on each gene of generated offspring for enhancing the inherited characteristics of new cub and balancing the computation cost. The laplacian crossover operator [63] is referred to as linear combination of parents for generating pair of new best offspring as depicted in Eq. (5). The offspring are produced using Eqs. (6) and (7) respectively. The parameters and their respective values are presented in Table 2. The parameters are selected on the basis of permutation and combination and best values are considered. The detailed proposed LXLOA is depicted in Algorithm 1.

$$M_{{{\text{final}}}} = \alpha M_{{{\text{Otsu}}}} + \beta M_{{{\text{Tsallis entropy}} }}$$
(4)
$$l_{i} = \left\{ {\begin{array}{*{20}c} {w - q \log_{e} \left( {u_{i} } \right), v_{i } \le \frac{1}{2}} \\ {w + q\log_{e} \left( {u_{i} } \right), v_{i} < \frac{1}{2}} \\ \end{array} } \right.$$
(5)
$${\text{New}}\_{\text{Cub}}_{M} { } = x_{{{\text{male}}}}^{i} + l_{i} \left| {x_{{{\text{male}}}}^{i} - x_{{{\text{female}}}}^{i} } \right|$$
(6)
$${\text{New}}\_{\text{Cub}}_{M} s = x_{{{\text{female}}}}^{i} + l_{i} \left| {x_{{{\text{male}}}}^{i} - x_{{{\text{female}}}}^{i} } \right|$$
(7)

Here,\({ M}_{final}\) is the fitness value,\(\alpha\), \(\beta\) are the random values ranging from 0 to 1, \({M}_{Otsu}\) and \({M}_{Tsallis entropy}\) represents the Otsu’s function and Tsallis entropy.\({l}_{i}\) shows the laplacian distributed random number, w and q (q > 0) represents the location and scale parameters. \(\left({u}_{i}\right)\) and\(({v}_{i}\)) are the two distributed random numbers having range [0,1].\({\mathrm{New}\_\mathrm{Cub}}_{M}\) and \({\mathrm{New}\_\mathrm{Cub}}_{M}s\) are obtained offspring. If produced offspring doesn’t belong to search space, in that case, \({New\_cub}^{i}\) is kept to as random number in interval [\({New\_cub}_{low}^{i}\),\({New\_cub}_{up}^{i}]\), \({x}_{male}^{i}\) represents the male in pride, \({x}_{female}^{i}\) shows the female in pride.

Algorithm 1 presents the proposed laplacian lion optimization algorithm (LXLOA). It takes image as an input and producsed a final processed image for feature extraction.

figure a

Step-by-step working of Algorithm-1 Algorithm 1 presents the proposed LXLOA. It accepts image E(x, y) as inputs and produces final processed image for feature extraction (O). Algorithm 1 begins at step-2 by generating a random population (P) up to L of lion from the input images E(x, y). Step-3 is responsible for evaluating fitness value by combining both Otsu’s function and Tsallis entropy as indicated in Eq. (4). The main functionality of Algorithm 1 is in a while loop which runs from steps 4–35. The while loop at step-4 runs until it reaches the maximum number of iteratirons (No_Iteration). From steps 5–10 a for loop is implemented which is responsible for selection of nomad pride and pride territory. At step-6, lion (L) is selected as nomad lion from the total population (P), while the remaining (1-L) forms the pride territory as indicated at step-7. At steps 8–9, a for loop is implemented for each pride to set the percent of F (resident rate of lion) population as female and remaining as males. This rate percent gets inversed in the nomad lions. Another for loop is implemented from steps 11–18. This for loop deals with female lions is selected randomly for hunting (step 12) and exploring the pride territory (step 13). After that, in pride, the roaming percentage (RP) of pride territory are randomly selected for each resident lion as shown at step 14. Steps 15–17 are given to present the crossover operation and replacement of the worst-performing lion in pride. We have used Eqs. (67) to perform crossover operation. Mutation operation is performed from steps 19–24. Here, nomad female lion mutates with one of the best male agents among the nomads to produce new offspring (New_CubM) as shown in step 20. Then, apply laplacian crossover over the best-selected lion (step 21). At step 22, new cub (New_Cubupn) replaces the worst-performing lion in nomad. And then, nomad male randomly attacks the pride (step 23). A for loop at steps 25–27 is presented for the percentage of immigrates resident female lion (IRFL). Here, IRFL indicates the percentage of female lion immigrates from territory and becomes nomad lion. Migration operation is performed from steps 29–31. It is performed by selecting the resident female lion (R_Female_Lion) having the lower fitness value in pride (step 29) and converting them to nomad (step 30). Further, the vacant places in each pride are fulfilled, by migrating or distributing the nomad female having best fitness value as indicated in step 31. Lion’s population equilibrium is balanced at the end of each iteration, so, considering the maximum population of gender in nomad category, the lions having least fitness value are removed (step 32). Thus, the control is maintained on number of live lions. At this stage, update the fitness value as shown in step 33 and move to the next iteration (step 34). The while loop terminates at step 35. Step 36 and 37 are respectively for generation the optimal best value for images and to perform morphological and skull stripping operations on segmented image.

3.2.3 Mathematical morphological operations and skull stripping

The mathematical morphological operations are post-processing functionalities performed on images using the structuring element. The transformation operations are implemented on segmented images using erosion and dilation to perform the analysis.

The skull stripping is achieved by eliminating the extracerebral tissue and visualizing the extracted mask for conducting exploration and region of interest.

3.3 Anisotropic diffusion filtering and feature extraction

It is implemented for denoising purpose, i.e., removing the noise and enhancing the contrast as well intensity among the different brain MRI sections. The filtering maintains the balance for existing different levels of noise in the image.

It is crucial for identifying the pattern and determining the texture, statistical analysis. Grey level co-occurrence matrices (GLCM) [64,65,66] and grey level difference matrix (GLDM) are the second-order statistical measures that are applied to extract the 23 features from brain MRI segmented image. There is general applicability of grey level-based texture features spatial dependencies or relationship in image classification. The 23 extracted statistical features in the proposed work namely are contrast, entropy, difference entropy, autocorrelation, homogeneity, cluster prominence, inverse difference, information measure of correlation 1 (Imc 1), cluster shade, information measure of correlation 2 (Imc 2), sum entropy, sum variance, sum of square variance, sum average, horizontal weighted sum, maximum probability, grid weighted, diagonal weighted sum, vertical weighted sum, energy, correlation, dissimilarity.

3.4 Feature selection

It is achieved using fuzzy weighted k-means (FKM) embedded LDA (Algorithm 2) for determining the optimized set of features. The FKM embedding LDA is applied for providing the solution to the multidimensional pattern recognition problem. The mathematical formulation of fuzzy weighted k-means is expressed through Eqs. (8), (9,) and (10), respectively. The calculation of the weighted mean is performed using Eq. (11). The modification in the membership matrix and Bayes rule of LDA is depicted in Eq. (12).

$$U{\text{ }} = {\text{ }}[K_{{(x,y)}} ]{\text{ 1}} \le {\text{ }}x \le {\text{ }}e,{\text{ 1 }} \le {\text{ }}y{\text{ }} \le {\text{ }}e$$
(8)
$$\sum\limits_{k = 0}^{n} {k_{x} y = 1,y = 1,2,3...n}$$
(9)
$${\text{Wfb}} = \sum\limits_{k = 1}^{k} {\sum\limits_{i \in 1} {\sum\limits_{(e = 1)}^{m} {s_{xk}^{\alpha } f_{ek}^{\beta } \left| {y_{ie} - c_{ke} } \right|^{2} } } }$$
(10)

Here, U represents the universal function,K(x,y) shows the factor of features, \({s}_{xk}\) is the membership function showing the fuzzy cluster, Wfb is the fuzzy weighted k-means, \({y}_{ie}\) and \({c}_{ke}\) represents factor and unsupervised weighted mean, \({f}_{ek}\) shows the weight of feature e for cluster k.

$$m_{{{\text{xy}}}} = \frac{{\mathop \sum \nolimits_{x = 1}^{n} u_{{{\text{xy}}}}^{m} \mathop \sum \nolimits_{x = 1}^{n} s_{{{\text{xk}}}}^{m} \mathop \sum \nolimits_{x = 1}^{n} s_{{{\text{xk}}}}^{m} }}{{\mathop \sum \nolimits_{y = 1}^{n} s_{{{\text{xk}}}}^{m} \mathop \sum \nolimits_{y = 1}^{n} s_{{{\text{xk}}}}^{m} }}$$
(11)
$$f_{{{\text{xy}}}} = \frac{{\left( {\left| {\left| {g_{y} - m_{{{\text{xy}}}} } \right|} \right|^{2} - n_{x} \left| {\left| {m_{{{\text{xy}}}} - g} \right|} \right|^{2} } \right)^{{\frac{ - 1}{{m - 1}}}} }}{{\mathop \sum \nolimits_{k}^{c} \left( {\left| {\left| {x_{y} - m_{{{\text{xy}}}} } \right|} \right|^{2} - n_{x} \left| {\left| {m_{{{\text{xy}}}} - g} \right|} \right|^{2} } \right)^{{\frac{ - 1}{{m - 1}}}} }}$$
(12)

In Eq. (12), \({m}_{xy}\) shows the weighted mean,\({g}_{y}\) is the sample of data belonging to y, \({n}_{x}\) is the count of data points reside in x, g is the relative distance from the cluster, m is the fuzzifier function.

figure b

In Algorithm 2, the fuzzy weighted k-means embedding LDA is applied on acquired statistical features for selecting the finest features to obtain precise accuracy. The membership matrix is initialized (Step-1), and the random value [0, 1] is determined (Step-2). A while loop is executed from steps 3–7, considering the average of the square differences between the membership matrixes. Within the while loop, two tasks are accomplished: (a) fuzzy weighted k-means embedding LDA is calculated through Eq. (10) and Eq. (11); and (b) membership matrix (membership function\({f}_{xy}\)) is updated using Eq. (12). Finally, the related features are extracted at step-7, and a further classification technique is implemented.

3.5 Artificial neural network

ANN classifies the tumored and non-tumored brain MRI images [67,68,69]. ANN consists of computational multilayer interconnected neurons stimulated from biological neural networks to predict outputs based on specific inputs for training the network. The backpropagation neural network approach is a computationally effective method for updating the weights, therefore the backpropagation architecture is used. The testing was conducted for identifying the best permutation and combination of parameters that determine the robustness. The parameters considered are as follows: (a) layer: [2,3,4,5,6]; (b) learning rate: [0.01, 0.1, 0.2, 0.4]; (c) batch size: [1,2,3]; (d) epochs: [10, 20, 30, 35, 40, 45, 50, 60, 70, 80]; (e) activation function: [tanh, sigmoid, relu]; and loss function: [categorical_crossentropy, mean squared error]. Parameters that gave the best results for training the ANN are summarized in Table 3.

4 Simulation results, discussion, and analysis

Extensive computer simulations have been performed to evaluate the performance of the proposed algorithm. In the subsections, we present the following: (a) performance comparison on CEC2017 benchmark functions; (b) performance analysis of brain MRI datasets and simulation results are discussed; (c) statistical analysis; (d) discussion on quality matrices; (e) comparison with state-of-the-art algorithms; (f) comparative results and analysis; and (g) discussion of results.

4.1 Performance analysis on CEC 2017 benchmark functions

The proposed algorithm LXLOA is tested on CEC 2017 standard benchmark functions problem [70]. The benchmark functions belong to categories namely, unimodal function (F1-F3), multimodal function (F4-F10), hybrid function (F11-F19), composition function (F20-F29). The mean and best fitness values are computed for showing the effectiveness of proposed algorithm LXLOA against the state-of-the-art algorithms as shown in Table 4. The considered dimensions, number of iterations over 20 runs, and population size are 50, 1000, 200 respectively. Furthermore, observations state that the proposed LXLOA outperforms and provides a significant solution when compared with other metaheuristic techniques.

Table 4 Comparative result analysis on benchmark function suite

4.2 Performance analysis on brain MRI datasets

Brain MRI data from two different databases were used during the simulations. 400 sample images were considered for simulations. Algorithm-1 and 2 were implemented respectively to perform: (a) to examine skull stripping and segmentation; and (b) selection of the prominent features. ANN was implemented to process the sample data. Here, sample data is divided into a 7:3 ratio for testing and training purpose. A sample image of IBSR tumored is depicted in Fig. 3, while Fig. 4 represents a sample image of an MS-free dataset on non-tumored MRI.

Fig. 3
figure 3

Tumored brain MRI sample Images. a Normalization of brain MRI image; b Extended Weiner filtering; c Segmented image using LXLOA de Mathematical morphological operations; f Extracted skull stripped image; g Anisotropic diffusion; and h Feature extraction

Fig. 4
figure 4

Non-tumored Brain MRI sample Images. a Normalization of brain MRI image; b Extended weiner filtering; c Segmented image using LXLOA de Mathematical morphological operations; f Extracted skull stripped image g Anisotropic diffusion; and h Feature extraction

Tables 5, 6, 7 presents the extracted 18 features obtained by implementing from co-occurrence matrices to analyze the spatial relationship and determine the statistical texture features. 18 features such as cluster prominence, autocorrelation, correlation, contrast, cluster shade, homogeneity, entropy, energy, dissimilarity, sum entropy, sum average, maximum probability, sum of square variance, inverse difference, Imc 2 (information measure of correlation 2), Imc 1, difference variance, and difference entropy are extracted.

Table 5 Features extracted sample IBSR data the IBSR and MS free sample images using GLCM Method
Table 6 Feature extraction of sample IBSR data the IBSR and MS free sample images using GLCM Method
Table 7 Feature extraction of sample IBSR data and MS free sample images using GLCM Method

On the other hand, Table 8 shows the extracted 5 features using grey level difference matrix for statistical measures for probability density functions. The 5 features are as follows: grid-weighted sum, diagonal-weighted sum, vertical-weighted sum, horizontal-weighted sum, and cluster prominence. Table 9 presents an optimized feature subset. It presents min, max, and average values of the IBSR and MS free sample images.

Table 8 Feature extraction of sample IBSR data the IBSR and MS free sample images using GLDM Method
Table 9 Optimized feature subset showing min, max and average value of the IBSR and MS free sample images

4.3 Statistical analysis

Rigorous statistical analysis was performed to determine the statistical performance significance at 95% level of the confidence interval. Equation (13) presents the hypotheses (H0: null hypothesis and HA: alternative hypothesis) used to perform the statistical tests.

$$\begin{gathered} H_{0} :\mu_{{{\text{DE}}}} = \mu_{{{\text{WOA}}}} = \mu_{{{\text{LION}}}} = \mu_{{{\text{LXLOA}}}} = \mu_{{{\text{PSO}}}} = \mu_{{{\text{ACSA}}}} \hfill \\ H_{A} :\mu_{{{\text{DE}}}} \ne \mu_{{{\text{WOA}}}} \ne \mu_{{{\text{LION}}}} \ne \mu_{{{\text{LXLOA}}}} \ne \mu_{{{\text{PSO}}}} \ne \mu_{{{\text{ACSA}}}} \hfill \\ \end{gathered}$$
(13)

To perform the statistical tests mean and best values of the benchmark functions are used. Sample size 30 has been drawn from each algorithm. We have performed the Kruskal-Wallis test to verify the hypothesis given in Eq. (13).

Table 10 presents the hypothesis test summary of independent samples Kruskal–Wallis test with respect to the best fitness value for across categories of algorithms. We can see p-value is less than 0.05. Hence, H0 is rejected. It means that one of the other algorithms have shown different performance. We have conducted posthoc test to determine which algorithms have shown different performance.

Table 10 Independent samples Kruskal–Wallis test

Figure 5 shows the pairwise comparison of algorithms. It can be noted that each node represents the sample average rank of algorithms. The sample average of the proposed LXLOA (= 43.90) is better than the other algorithms. Total 15 pairs have been formed for pairwise comparison of algorithms. The algorithm pairs LXLOA-PSO, LXLOA-ACSA, LXLOA-WOA, and LXLOA-LION showed significantly better, performance mainly because obtained p-value is less than 0.05. The combinations have not shown significantly better results. This result concludes that LXLOA algorithm is more stable and showing significantly better results than PSO, ACSA, WOA, and LION algorithms. In addition, we can see the performance of algorithm’s pair LXLOA-DE is not significantly better but the proposed LXLOA showed good results over DE. The performance significance is represented by yellow line in Fig. 5 connecting pair of algorithms.

Fig. 5
figure 5

Pairwise comparison of algorithms

Pairwise tests have been conducted and results have been reported in Tables 11, 12, 13, 14 respectively for Wilcoxon test on fitness values and Kruskal–Wallis test on mean and best fitness values. Five pairs have been created: LXLOA—ACSA, LXLOA—DE, LXLOA—LOA, LXLOA—PSO, and LXLOA—WOA. It can be seen that the p-value of each pair is less than 0.05. It indicates that the performance of the proposed LXLOA is statistically significant at a 95% level of significance. It can be noted that the proposed LXLOA showed better performance by achieving higher value of standard deviation as compared to other algorithms. Therefore, based on this observation, LXLOA is more stable and robust.

Table 11 Wilcoxon test on best fitness values
Table 12 Wilcoxon test on mean fitness values
Table 13 Kruskal–Wallis test on best fitness values
Table 14 Kruskal-Wall Test on mean fitness values

4.4 Quality metrics

Three quality metrics: (a) fitness values; (b) PSNR value; and (c) SSIM values were chosen for evaluating the performance. Fitness values to assess the optimal threshold value of the image quantitatively. The evaluation function is used for determining the optimal fitness score of the image. PSNR [71] quantifies the standard of reconstructed segmented image quality using the minimized value of root mean squared error as shown in Eqs. (14) and (15), respectively. A higher value of PSNR indicates that an improved reconstructed image is obtained with better quality.

$${\text{PSNR }} = 20\left( {\frac{255}{{{\text{RMSE}}}}} \right)$$
(14)
$${\text{RMSE}} = \sqrt {\sum\limits_{x = 1}^{p} {\sum\limits_{y = 1}^{Q} {\frac{{\left( {B\left( {x,y} \right) - B^{\prime } \left( {x,y} \right)} \right)^{2} }}{P.Q}} } }$$
(15)

B is the original image, and B’ is the segmented image with a size P*Q.

SSIM [72] determines the similarity between two reconstructed and original images. The mathematical formulation is represented in Eq. (16). A higher value of SSIM determines the more structural similarity and edge information of the segmented image.

$${\text{SSIM}}\left( {B,B^{\prime } } \right) = \left( {2\mu_{B} + n_{1} } \right) + 2\left( {2\sigma_{B} \sigma_{{B^{\prime}}} + n_{2} } \right)/( \, \mu_{B}^{2} + \mu_{{B^{\prime } }}^{2} + n_{1} )(\sigma_{B}^{2} + \sigma_{{B^{\prime } }}^{2} + n_{2} )$$
(16)

Here, \({\mu }_{B}({\mu }_{{B}^{^{\prime}}}\)) shows the mean intensity and \({\sigma }_{B }({\sigma }_{{B}^{^{\prime}}})\) represents the standard deviation of brain MRI image B (B’). The constants values of \({n}_{1}\) and \({n}_{2}\) taken are 6.5025 and 58.5225.

4.5 Comparative results and analysis

The comparative result computation of different metrics measures is reported in this section. Table 15 shows the average fitness value of the segmented image. Table 16 shows the average PSNR values for measuring the image quality. Table 17 presents the comparative analysis of average SSIM values estimating the structural similarity depending on the reconstructed image intensities. Each sample image shows the average value of 20 images. The observation states that LXLOA provides higher PSNR and SSIM values which gives better image quality. Table 18 computation provides the Jaccard coefficient and dice similarity values for validation purpose. The quantitative assessment performance metrics consider the similarity of the reconstructed outcome image with a corresponding ground image.

Table 15 Comparative analysis of average fitness values on brain MRI sample images using different metaheuristics techniques
Table 16 Comparative analysis with respect to average PSNR values on brain MRI sample images
Table 17 Comparative analysis with respect to average SSIM values on brain MRI sample images
Table 18 Shows the average Jaccard Coefficient and Dice similarity values for IBSR and MS free data images

Table 19 depicts the comparative analysis of classification methods (SVM and ANN) on the proposed technique's selected features (Algorithm 2). Results reveal that the ANN outperforms the SVM. ANN gives (a) accuracy (97.37%), (b) sensitivity (85.8%), (c) specificity (90%) and (d) precision (91.92%).

Table 19 Classification of result with respect to selected features for determining tumored and non-tumored MRI

The computational time of the algorithms is presented in Table 20. It can be seen that time taken by the proposed LXLOA (181.4101) is lesser than the other meta-heuristic algorithms. This result indicates that the LXLOA has a higher tendency of convergence to the global optimum. We noted that the convergence speed of the DE is worst because it took maximum computational time to reach the global solution. So it can be concluded that the proposed LXLOA is a cost-effective computational method, and it can converge to a global optimum solution quickly.

Table 20 Comparison of efficiency with respect to time taken by different meta-heuristic technique

4.6 Discussion and analysis

Figure 2 presents the proposed methodology flow process to detect and predict brain tumor using MRI images. The consolidated steps of the proposed method are shown in Algorithm 1. The simulated analysis at each successive stage for the skull stripping technique on IBSR and MS free dataset is shown in Figs. 3 and 4, respectively. The extracted texture and statistical feature are depicted in Tables 5, 6, 7, 8 respectively, and optimized features selected through Fuzzy weighted k-means embedding LDA (Algorithm 2) are shown in Table 9. The visualization analysis of average fitness function, PSNR, and SSIM are depicted in Fig. 6a, b, c for comparative analysis of existing metaheuristics such as DE, WOA, PSO, LOA, ACSA, and LXLOA. The observation shows the proposed algorithm is providing promising results compared to other methods. The validation of the proposed algorithm is attained by evaluating the similarity between the ground truth image and segmented image, as depicted in Fig. 7. Moreover, Fig. 8 presents that the artificial neural network gives better performance measures on a comparative study with support vector machine.

Fig. 6
figure 6

Representation of average results obtained on comparative analysis using different metaheuristics technique. a average fitness value; b average PSNR; and c average SSIM

Fig. 7
figure 7

Validation using dice coefficient and jaccard coefficient

Fig. 8
figure 8

Performance measures with reference to algorithm

5 Conclusions

In this paper, an approach for the intelligent computer-aided mechanism has been developed to diagnose and detect tumor and non-tumored brain MRI images to take preventive measures at an early stage. Extended Weiner filtering technique is proposed for improving the quality of image dataset needed to be analyzed. Further, LXLOA was proposed to improve efficiency and provide the optimal threshold value for segmentation of the tumor region. The optimized set of features were extracted from segmented using effective fuzzy weighted k-means embedding LDA algorithm and, it helped in the decision-making process. Extensive simulations were conducted to determine the effectiveness of the proposed algorithm. To present a fair outcome, results were validated using different parameters. LXLOA is tested on 29 standard functions and compared with different metaheuristics algorithms such as DE, WOA, PSO, LOA, ACSA, and LXLOA. The performance was measured using three quality metrics (a) fitness, (b) PSNR, (c) SSIM and validated using different coefficient parameters. The observation determines that LXLOA outperforms the existing state of the art and generates better computational efficiency. The best feature subset was selected using fuzzy k-means embedding LDA algorithm giving improved classification computation. Results revealed that LXLOA showed promising results by attaining accuracy of 97%. Thus, the proposed algorithm is providing promising experimental analysis and outcomes. The immediate future extension involves the usage of 3- dimensional (3-D) medical data for clinical research by incorporating the improved metaheuristics algorithms.