Abstract
The process of partitioning into different objects of an image is segmentation. In different major fields like face tracking, Satellite, Object Identification, Remote Sensing and majorly in medical field segmentation process is very important to find the different objects in the image. To investigate the functions and processes of human boy in radiology magnetic resonance imaging (MRI) will be used. MRI technique is using in many hospitals for the diagnosis purpose widely in finding the stage of a particular disease. In this paper, we proposed a new method for detecting the tumor with enhanced performance over traditional techniques such as K-Means Clustering, fuzzy c means (FCM). Different research methods have been proposed by researchers to detect the tumor in brain. To classify normal and abnormal form of brain, a system for screening is discussed in this paper which is developed with a framework of artificial intelligence with deep learning probabilistic neural networks by focusing on hybrid clustering for segmentation on brain image and crystal contrast enhancement. Feature’s extraction and classification are included in the developing process. Performance in Simulation of proposed design has shown the superior results than the traditional methods.
Introduction
In the investigation and to the exact disease progress in human body the Magnetic resonance imaging (MRI) [1] is used. To create these images radio waves and Magnetic fields will be used by the help of electronic equipment. This type of practice has been using widely in hospitals for medical analysis, disease staging, and follow-up without exposing patients to ionising radiation. MRI has a wide range of applications in medical diagnosis. In treatment of many special diseases it has an influence on diagnosis even though its impact on improved health outcomes is unidentified. MRT is preferred over computed tomography (CT) because it does not use ionising radiation and can provide the same information. The healthcare industry’s sustained increase in demand for MRI has raised concerns about cost effectiveness and overdiagnosis. It takes time and effort to segment an image. Grouping similar colours or elements together is the goal of segmenting an image. If you want to do this, you can use the technique of clustering. This is done by grouping images into groups based on the similarity of colour and grey intensity.
The primary goal of clustering photographs is to extract the prominent colours from the images in question. Image segmentation may be extremely useful in simplifying complex situations by extracting information from photos such as texture, colour, shape, and structure, among other things. For the reason that it allows for the extraction of information from any image, segmentation has been applied in a variety of domains including image enhancement and compression, retrieval systems (i.e. search engines), object recognition, and medical image processing [2].
There have been numerous ways to image segmentation throughout the past few decades. Another prominent clustering method is fuzzy c-means (FCM), which uses the membership function to partition a picture into many portions [4] and [5]. To lower the computational complexity of FCM, the K-means algorithm has been devised. K-means has been widely employed in various applications because of its speed in clustering large amounts of data [4, 7, 8 and 9]. When it comes to picture segmentation, the Hierarchical clustering has also become a popular method [12, 13, and 14]. Images were then segmented using the Gaussian Mixture Model and its variation Expectation Maximization [17] and [18].
Agriculture [19] and health [20, 21] are two fields where machine learning has been extensively used for disease detection, prediction, and categorization. As far as breast cancer segmentation and classification [22–25], brain tumour detection and segmentation [26], and lung/colon cancer segmentation/classification are concerned, these are the most researched areas in health sectors.
Neurosurgical resection and pathological evaluation utilising several cellular (histologic) techniques is the gold standard for determining the presence of a brain tumour. As a result, a biopsy is an invasive procedure that can lead to bleeding and even damage, which can lead to functional loss [27]. It is because of this that non-invasive brain tumour diagnosis utilising magnetic resonance imaging (MRI) is today’s mainstay of modern neuroimaging. This allows physicians to assess the tumor’s structural (cellular), metabolic (metabolic), and functional features [27, 28].
White matter (WM), grey matter (GM), and cerebrospinal fluid (CSF) are all seen in a normal structural MRI scan [29]. Water content is the primary factor that affects the appearance of these tissues when they are scanned with a structural MRI. WM, which is 70% water, is a myelinated axon that links the cerebral cortex to other brain areas. As a result, it connects the right and left hemispheres of the brain and transports information between neurons. Neuronal and glial cells drive brain activity in the grey matter, which is 80 percent water, and the basal nuclei, which lie deep within the white matter. Unlike cerebrospinal fluid, which is almost all water, cerebrospinal fluid covers all of the spaces between the brain, the skull, and the brain’s ventricular system [30, 31].
It is difficult to understand the clinical manifestation of a brain tumour because of the wide range in size, location, rate of growth, and pathology of these tumours. An abnormal lump of tissue called a brain tumour is formed when some cells expand uncontrollably. Uncontrollable development in the skull interferes with normal brain activity and causes harm to the brain cells [34]. Toxic damage may occur as a result of increased brain pressure, shifts or strain on the skull, or invasion of healthy brain tissue [32, 33]. The classification of a brain tumour can be based on a variety of factors. The WHO has recommended a layered-based tumour classification schema that is more relevant to radiological applications. From top to bottom, the four layers in this diagram are: final integrated diagnosis, histologic classification, WHO grade, and molecular information. However, primary and secondary (metastatic) tumours of the brain can be categorised as such based on where they originated [35]. Cell types from which primary brain tumours are formed have been given a specific name. Non-cancerous (non-cancerous) and cancerous initial tumours are also possible (cancerous). The growth of benign tumours is slow and does not spread to other parts of the body. They can, however, place undue strain on the brain and impair its performance. Malignant tumours, on the other hand, grow quickly and spread to other tissues. Secondary brain tumours, on the other hand, originate elsewhere in the body. In most cases, these tumours are the result of cancer cells originating elsewhere in the patient’s body spreading to the brain. Tumors arising in or from the lungs or breasts or melanoma or any of the above-mentioned organs are the most common primary sources of subsequent brain tumour formation [31, 34, 35]. There are distinct clinical, radiological, and biochemical aspects to each of these malignancies.
Brain scans might be normal or abnormal in MRI scanning. Normal brain tissues on MRI include grey matter, white matter, and cerebrospinal fluid (CSF). The tumorous brain scan often comprises necrosis, edoema, and core tumour, in addition to the normal tissues indicated before. Inside the heart of a tumour, necrosis is a dead cell, while edoema occurs at the tumor’s edges. A tumor’s surrounding fluids cause edoema, which is a swelling. Non-infiltrative extra-axial cancers like meningioma can be vasogenic, whereas infiltrative tumours, such glioma, can infiltrate WM tracts of a brain [28, 36]. Structured MRI sequences such as T1-w, WT2, and FLAIR are often unable to identify these tissues from one another. Some examples of this include the difficulty in distinguishing between a tumour and its accompanying inflammation. In addition, Alves et al. [37] revealed the difficulties of distinguishing cancers based solely on signal intensity. Two patients were identified with different types of brain tumours based on similar intensity features and significant edoema around both tumours.
It is estimated that there are more than 150 different forms of central nervous system (CNS) cancers, which are usually divided into primary and metastatic (secondary) tumours. The main tumours arise in the brain or in the immediate vicinity of the brain. Metastatic tumours, on the other hand, originate elsewhere in the body and travel to the brain via the bloodstream. In contrast to primary tumours, metastatic tumours are termed cancerous or malignant.
A biopsy is the current standard approach for determining whether a brain tumour is benign or malignant. In most cases, a brain sample can only be taken through a surgical procedure that is deemed to be final. MRI-based brain tumour classification, on the other hand, does not necessitate the collection of tumour samples and is therefore less invasive. MRI-based brain tumour categorization using machine learning can also improve diagnosis and therapy planning [40]. There has been a lot of interest in developing a machine or deep learning-based system that can automatically classify brain tumours from MRI scans [39, 41–45].
An important aspect of machine learning is that it allows a machine to perform better with practise. supervised, unsupervised, and reinforcement learning are the three most prevalent forms of machine learning approaches [46]. Unsupervised learning, on the other hand, relies on discovering patterns in data that have not been tagged by experts. Reinforcement learning, on the other hand, involves making a series of decisions based on rewards. A reward or a penalty for the actions the algorithm takes is a form of learning [46]. From MRI scans of brain tumours, machine learning has been utilised to classify the tumours. This has resulted in promising classification performance.
Preprocessing, segmentation, feature extraction, and classification are all common processes in the classic machine learning-based classification of brain tumours.
Noises, such as salt and pepper, Gaussian, Rician, and speckle noise, have a considerable impact on brain MRI scans [55–57]. In machine learning-based applications, these disturbances provide difficulties. As a result, image denoising is an essential part of the pre-processing process. Each method of MRI denoising has its own pros and limitations, which are summarised here. Statistical property and frequency spectrum distribution have been used to design a number of noise reduction strategies [58]. For example, operations such as denoise and tag removal are part of preprocessing. Also included are tasks such as smoothing the foreground and correcting intensity inhomogeneity.
It is possible to identify the tissue type and anatomical structure of an image’s voxels using MRI brain scan segmentation tasks [58]. An MRI scan can be used to find the tumour area, improve visibility, and allow quantitative assessments of image structures in the feature extraction stage [47, 51]. [60] Segmentation of a brain tumour can be done in three ways: manually, semi-automatically and totally automatically.
The mathematical models used to extract features from images are based on a variety of visual characteristics. These include texture, brightness and contrast as well as Gabor transformations, gray-level co-occurrence matrix (GLCM), histogram of local binary patterns (LBP), and wavelet-based features [54, 61, 62]. CNN deep features have recently been employed as input for the SVM classifier in order to categorise brain cancers [63]. In the categorization of brain tumours, it is common practise to combine numerous variables from different extraction models [64]. For dimensionality reduction, feature selection is used.
Many authors have come up with a variety of ways to classify brain tumours based on photographs. It is possible to classify tumours in various ways, such as meningioma, glioma, and pituitary; glioma tumour grades (I– IV) [52]; benign and malignant stages (I– IV) [65–67]; diffuse midline glioma, medulloblastoma, pilocytic astrocytoma, and ependymoma; ependymoma and pilocytic astrocytomas [59]; gliomatosis and ependymoma [69].
In brain tumour classification, the most commonly used classifiers are neural networks [47–50, 70], support vector machines (SVM) [47, 54, 63, 66–69, 71, 72], K-nearest neighbour (KNN) [51, 60, 69, 63], Adaboost [65] and hybrid models [52, 74, 75]. These classifiers are all based on the neural network technology, which has been extensively studied in this field. Feedforward neural network, multilayer perceptron neural network, and probabilistic neural network (PNN) were some of the architectures used to create the neural network. There are three kernels usually used for SVM implementation: linear, homogeneous polynomial and Gaussian RBF [47–54]. That’s because in the KNNclassifier, a testing feature vector is categorised by finding the k-nearest training neighbour, which means that the classifier doesn’t require any model to match and is just built on memory. It is important to note that the KNN algorithm uses metrics such as euclidean, city block and cosine to identify the closest distance between the testing and training class feature vectors [73, 76, 77].
Classifying brain cancers from an MRI brain image has made significant progress, but there are still significant problems in doing so using shallow supervised machine learning techniques. When it comes to obtaining descriptive information, typical handmade feature extraction methods are inefficient [61]. The complexity of brain anatomy and the enormous density of the brain are the primary causes of this inefficiency.
Deep learning, on the other hand, is based on learning data representations and hierarchical feature learning rather than shallow machine learning techniques. Using deep learning, models for classifying brain cancers find descriptions that best describe various types of brain tumours. When it comes to brain tumour diagnosis, this type of deep learning shifts the problem from a feature-driven one to a data-driven one. For brain tumour classification, a convolutional neural network (CNN) is the most used deep learning model [39, 40].
There are a variety of classification methods for brain tumours in the reviewed literature. Pre-processing and data augmentation methods, ROI segmentation as a pre-classification phase, and whether a pre-trained or customised deep learning model is employed are all factors that affect the final classification result. Other factors include the dataset utilised and the types of tumours included in it.

Brain tumor image database.

Proposed structure algorithm block diagram.
If, for example, Bada and Barjaktarovi [39] wanted to use publicly available T1-weighted brain tumour MRI scans, they could have done so. Three anatomical perspectives of the brain tumours are included in this dataset: axial, transverse, and coronal sagittal. The photos were normalised and resized before they were used in the study. Adding a 90o rotation and vertical flipping to photos in the collection also increases the training dataset. The researchers employed a custom-designed CNN model trained using the Adam optimizer with a mini-batch size of 16 and tested using a 10-fold cross-validation. Initialization of the weights of convolution layers is done using a Glorot initializer. Sophisticated metrics were used to evaluate the model’s performance, including sensitivity, specificity accuracy, precision recall and F1-score. As for meningioma, it’s 89.8 percent, glioma 96.2 percent, and pituitary 94.4 percent. The model’s specificity for meningioma, glioma, and pituitary tumours is 90.2 percent, 95.5 percent, and 96.7 percent, respectively. This study has an overall accuracy of 95.4 percent as well as an average precision, a mean recall and an F1-score of 95.07% [78]. This paper is organized as section 2 Discusses about the preprocessing, Section 3 about segmentation, 4 Discusses about feature extraction algorithm, Section 5 classification algorithm and 6 concludes the paper.
The image from acquired images will be considered for further step of pre-processing, which includes background information and noise. To remove this needless information in the image, it is need to apply noise removing techniques before processing further. It is used to eliminate irrelevant information which includes noise, unwanted background part, pectoral muscle on the skin image and other artifacts. The noise of different types occurred in the skin images are Salt and Pepper, Gaussian, and Speckle and Poisson noise [8]. The different intensity will be shown by the image, whenever noise occurred in the image instead of actual pixel values of the image. Therefore, it is compulsory to choose and apply a filtering method to remove the noise as first stage. The system here has applied median filtering technique as shown in Fig. 5 and median filtered output images are in Fig. 8, which eradicates the noise from the image. These filters are capable of effectively detecting and removing image noise and fine hairs. Later, Bi Histogram equalisation works on the entire image and enhances the image, whereas adaptive histogram equalisation divides the entire image into small regions called tiles and works on each of these tiles individually. Each tile is typically 8*8 pixels and within each tile, histogram is equalized and thus it enhances the edges of the lesion. Contrast limiting is applied to limit the contrast, a level below the specific limit to limit the noise. Bi histogram equalization is applied which is focused on the average input image intensity threshold [9–10] by following the calculation of the brightness of mean and the pixels are separated into classes or sub-vector images dependent on the value of mean [8, 11].
Besides, the two groups create two cumulative density functions, that is,
Where ∑i
c
L (i) = ∑j
c
H (j) = 1 each sub-image is processed to provide improved contrast performance,
From the set of sub-images, the output and enhanced image are obtained.
The average image brightness is the average value of the average luminosity of sub-images. The output is differed from the average input brightness is the changed histogram of crystal contrast enhanced images to input images.
After the pre-processing stage, segmentation of lesion was carried out to get the transparent portion of the affected area of skin. On performing transformation, Hybrid clustering technique is applied on the processed image to segment the skin lesion area based on Fuzzy C-Means clustering and K-Means techniques. In K-means technique, Segmentation is the preliminary process of this technique, at the cluster centres, cost junction must be minimized which randomly varies with respect to memberships of user inputs. Dividing an image into multiple clusters is the main function of segmentation and this is based on region of interest to identify the skin cancer. As described in Fig. 3, In this proposed system, K-Means clustering technique is applied first after detecting the specific edges and later fuzzy c means clustering is applied.

Median filter.
The key structure of K-Means Clustering technique is discussed in this section. Let Y = {yi|j = 1, …, P} be features of P-dimensional vectors and Z = {zj|j = 1, …, N} be each data of Y. K-means clusters which Z is TP = {Tj|I1, d … , = k}. The image is separated into clusters and every cluster will have average centre value. K-Means clustering contains the subsequent phases as discussed below At first, generate with centroids C, the random starting points. Separation between pixel and centre has to discover by Euclidean distance i.e. from X to C. From the partition of Xi for 1 = 1—- N Determine the base d(zi,C). Discovering cluster centre which is new Ci for i = 1… k is defined as:
The procedure need be repeated from step 2 for all the clusters.
The centroids are said to be converged if they are not changing their position and they may stop in any particular cluster ‘t’ with a threshold TH, then the positions have to be refreshed by considering the threshold value TH. The Fig. 4 represents the step-by-step procedure for K-Means clustering.

Segmentation with hybrid clustering method.

K-Means clustering procedure.
In general, segmentation fuzzy c-mean algorithm is one which will be used for dividing the images with space of image to numerous cluster areas with parallel image pixel values. It is very useful for medical image analysis, as it is fuzzified type of the k-means segmentation technique. The Fuzzy C-Means (FCM) clustering algorithm introduced first in [12] and then it was improved in [13]. The procedure is an iterative clustering technique which produces an ideal C partition by lessening the weighted inside group sum of squared error and is extensively used in pattern recognition and segmentation of images. This algorithm will have the following steps traditionally.
The distance between the cluster to centre in relation with above equations is and the algorithm centroids with a cluster of all the points is shown as
Then coefficient is a proper parameter to proper distribution >1 So there is 1.
The equivalent of 2 m for a linear normalization of coefficients equalling their quantity to 1. When 1 m is closer, the cluster is much weighted more than other clusters at this stage and is similar to the K-means algorithm [14].
Fuzzy C-Means clustering technique looks almost similar to K-Means clustering and contains the subsequent phases as discussed below Need to select the cluster randomly in number Repeat the algorithm as discussed in each step of equations 7,8,9,10 Calculate the centre using the above equation 8
Calculate the coefficients by using canter value from 8 using equations 9 and 10.
From the basic and raw information, extracting of required image data is important and it should be most relevant for further procedure like classification. The information dimensionality of the data may be reduced while extracting the features. It is done here due to technical limits in time for computation and memory. A normal and quality feature extraction technique should have the capability to enhance and uphold the features of input image raw data which makes difference patterns from each other. At the same time, while acquiring the image, it should be capable to process by human being. Tee major features are extracted: Texture features using Gray Level Cooccurrence Matrix (GLCM), Low level features using Discrete Wavelet Transform (DWT), Colour features. These are the most common features used for the extraction of features, though the performance of three techniques dependent on the image raw data.
To continue the developments in image processing, computer vision extraction of features is having a large role as it has a rich history of fields of classifying images, medical imaging, remote sensing, visual human perceptions. Word texture depends always on human perception as interpretations of individual will vary based on that particular texture. It provides a meaningful result as a quantify we can define it as texture. In an image, pivotal component is always texture and it uses to explain about spatial differences in a raw segmented image at particular point, to define brightness, regularity and coarseness of the image. Especially in diagnosis analysis of texture, it is very important to give a solution to a problem by performing manipulations on digital images which can be easy for a human expert eye. The system here extracts three features as discussed earlier. First, the GLCM features are given importance and extracted in the proposed work: Gray levels, Energy, Contrast, Inverse Difference and entropy. In [15] Haralick et al have proposed different texture features of characteristics complexity information. It has become wide for many applications since the authors proposed their own work features. Moreover, GLCM characteristic features with image enhancement focus was discussed in [16]. The procedure of GLCM is explained in following figures. Different four directions of GLCM for the same image or image sub-regions are shown in the Fig. 5. Figure 6 shows the test image and Fig. 16 is the general structure of GLCM, Fig. 17(a), (b), (c), (d) are GLCM with relative distance ‘δ’ and with different inclinations.

Directional analysis of GLCM.

General form of GLCM.

GLCM for (a) δ = 1, θ = 135° (b) δ = 1, θ = 45° (c) δ = 1, θ = 90° (d) δ = 1, θ = 0°.
Analysis of texture will concentrate on qualities of an image like smoothness, silky, rough or bumpy as described as function with spatial variations in gray levels. GLCM is a regularity matrix by which its level is known by image gray level values. GLCM produces a matrix with distance between pixels and different inclinations as shown in Figs. 5, 6, 7 and to extract as texture features with eloquent statistics from the generated matrix. To compose GLCM, main property is probability value which can be defined as P (m, n|δ, θ) to express the probability of pixels at θ inclination and δ interval. P (m, n|δ, θ) is represented by P (m, n) when θ and δ are known [17, 18]. The equation for the Elements to compute is
Usually, GLCM describes all the texture features, however here the system mainly focusses on entropy, energy, inverse difference and contrast as features.
A. Entropy
Randomness of image texture while co-occurrence matrix is equal for all the values and the maximum entropy depends on random distribution of gray levels as
B. Energy
Homogeneity texture measures the changes in reflection while distribution gray level uniformity in the image as
C. Inverse difference
Changes in texture image number is calculated by inverse difference. While p (x, y) considering as gray level at a particular point and co-ordinate (x, y) inverse difference is as
D. Contrast
Local number changes with the value distributed which reflects in image clarity and shadow depth can be calculated by Contrast as
Then, level 2 DWT is also used to extract the low-level features and initially on the segmented output D is applied, it yields the outputs as LL1, LH1, HL1 and HH1 bands respectively. Then entropy, energy and correlation features are calculated on the LL band. Then, on the LL output band again DWT is applied, and it provides the outputs as LL2, LH2, HL2 and HH2 respectively. Again entropy, energy and correlation features are calculated on the LL2 band respectively as shown in figure.
And finally, Mean, and standard deviation based Statistical Colour features are extracted from the segmented image and specified in the below equations,
Later, all these features are combined using array concatenation and it produces the output as hybrid feature matrix.
For example, in finance, medicine, engineering, geology, physics and biology neural networks have been used successfully to solve a variety of problems. As a means of solving problems involving categorization and prediction, neural networks have much promise from a statistical perspective. An emulation of the birth neural system is used to build PNN. The neurons are wired together in a predetermined way so that categorization may be carried out efficiently. The weights of the neurons are determined by the hybrid properties of the system. The hybrid features of the system are then used to identify the relationships between weights. In the proposed network, the number of weights determines how many layers there will be. Figure 9 shows the architecture of artificial neural networks. Training and testing are the two main stages of PNN categorization. The layer-based architecture will be used for training purposes. Feature weight distributions are mapped onto the input dataset using the input layer; this dataset is classed into hybrid features.

Level DWT coefficients.

Layered architecture of PNN model [79].

Performance metrics.
Weights are assigned to each of the PNN’s four hidden layers. Prior to class node activation and decision normalisation layers, an initial convolutional2D hidden layer of the network processes images of skin lesions that measure 224*224*3 pixels. Then, in the two tiers of class nodes concealed layer, the classification operation was cared out. The two layers of the concealed layer include information about the typical and pathological characteristics of skin cancer. Classification stages are classed into normal and pathological according to criteria. In the output layer, the labels for these two levels are mapped. Again, the second level of the hidden layer comprises the aberrant cancer types, as well as the benign and malignant cancer weights; this is the second stage of hidden layer. There is a similar mapping of these benign and malignant weights into the output layer. The hybrid features of the test picture are used for testing purposes in the classification step when the test image is applied. Using Euclidean distance as the maximum feature matching criteria, it will work. A normal skin image is defined as one in which the feature match happened with the labels on layer 1. If the feature match occurred with the C1 labels with the greatest weight distribution, then the image is classed as benign affected cancer. If the feature match occurs with C2 labels with the smallest weight distribution, it is considered a malignant impacted cancer image. It will then be determined what type of sickness it is based on the features and classification of the patient’s illness [79].
Performance metrics

Segmeted images-PNN with hybrid clustering.
CPU computation time for different segmentation techniques

CPU computation time for different segmentation techniques.
In this paper, we had presented a new MR brain image segmentation for more accurately and more quickly detecting tumours in the brain. Clustering strategy for lowering computing time and the binarization method for calculating the area in terms of mm2 based on typography and digital imaging units are the subjects of this article In order to compare the simulation results of the existing algorithms with the proposed algorithm, we calculated the CPU time. Last but not least, the new approach outperformed the old one in terms of both computational time and precision. The future neural networks with artificial intelligence and machine learning algorithms will play a vital role in the field of medical imaging [80, 81].
