Multi-Model Detection of Lung Cancer Using Unsupervised Diffusion Classification Algorithm

Lung cancer is a curable disease if detected early, and its mortality rate decreases with forwarding treatment measures. At first, an easy and accurate way to detect is by using image processing techniques on the cancer-affected images captured from the patients. This paper proposes a novel lung cancer detection method. Firstly, an adaptive median filter algorithm (AMF) is applied to preprocess those images for improving the quality of the affected area. Then, a supervised image edge detection algorithm (SIED) is presented to segment those images. Then, feature extraction is employed to extract the mean, standard deviation, energy, contrast, etc., of the cancer-affected area. Finally, an unsupervised diffusion classification (UDC) algorithm is explored to narrow down the affected areas. The proposed lung cancer detection method is implemented on two datasets obtained from standard hospital real-time values. The experiment results achieved superior performance in the detection of lung cancer, which demonstrates that our new model can contribute to the early detection of lung cancer.


Introduction
Lung cancer is one of the most dangerous diseases afflicting people. It can typically be diagnosed using image processing techniques to quickly identify affected cancer areas, thereby decreasing decrease its development in time. Several factors may influence a rapid diagnosis of lung cancer, including tumor growth, late mortality due to uncertain efficacy, lack of specific screening, and rapid disease progression symptoms. The disease diagnosis depends, as well, on its performance dates. In the past few decades, the accuracy of these values has been declining, and consequently slowing down the pace of the fight against lung cancer. For example, until recently, most lung cancers are being treated more or less as the same disease, without any distinction to their variability. Fig. 1 shows the example of the lung cancer image, image processing is used to analyze cancer affected in this proposed system. The respiratory system is used for breathing, consisting of tissues, a network of organs, blood vessels, and airways. It has been considered that common cancers are familiar and resist controlling the disease. Meanwhile, they give rise to modification, which may require different treatment methods in the medical field. A number of patients are used to check the disease's level and overcome the problem to reduce and achieve a better performance value. Hence, the proposed model ends up with various tests that easily process the image to identify affected areas.
The methods presented here focus on improving the image quality to enhance the appearance of early signs of cancer. Since the time coefficient imaging in the clinical field is generally utilized in the beginning phases, it is significant to the therapy of cellular breakdown in the lungs by recognizing malignancy cells. The lung image enriches the information of nature image data, and its nature is motivated by preprocessing. Normally, there are mainly two image enhancement techniques: one is the spatial-domain processing method, and the other is the frequency-domain processing method. The former is to directly process the pixels of the image, which is basically based on the grayscale mapping transformation. The latter is to perform operations on the transformed coefficients in a certain transform domain of the image and then transform it to the original spatial domain to obtain an enhanced image. In this paper, an unsupervised diffusion classification (UDC) technology is proposed, which is very simple to understand and useful for real-time implementation. Using UDC in image classification can improve image linearity and increase accuracy.
The main contributions of this paper are as follows.
1. To easily identify affected cancer region based on the unsupervised diffusion classification (UDC) algorithm; 2. The time consumption and loss are less to identify the affected region.
The rest part of this paper is organized as follows: Section 2 introduces related work. Section 3 describes the proposed method in detail. Section 4 presents the experimental results and discussions. Finally, Section 5 draws the conclusion. Cancer is an essential disease that causes increased mortality levels worldwide. Neurotic determination and the arranging of tumor tissue tests are giving the promise to treat illness, but it does not give accurate affected regions [1]. Lung cancer is caused by the uncontrolled growth of aberrant cells in the human body and healthy lung tissue development [2]. Early detection of lung cancer is important for patient survival and quality of life [3]. Besides, detailed anatomical information is of absolute importance before the actual process of pulmonary cavity amputation surgery planning. From Fig. 1, we can see that a normal human lung has five different anatomical partitions, called lobes. There is a crack at the border of each lung. Lungs typically include left and right parts, with upper, middle, and lower lobes and isolation [4]. The lung segmentation depends on estimated precision and processing time, and the most popular lung segmentation method is utilized in several image processing methods [5].
Image processing of lung cancer in the clinical field is broadly utilized in the beginning phases. Patients' lung detection needs to recognize disease cells due to the significant time of their therapies and the impact of cellular breakdowns in the lungs [6]. To achieve accurate detection performance, lungs must be extracted based on anatomical perspectives. It should be noted that all external and internal pulmonary vessels are removed in addition to the lobe bronchi. Further, motion assist of lung morphology is extracted from binary images [7]. The valve function of quantitative evaluation automatically develops image registration between lung and image segmentation by combining a series of lobe imaging tools [8].
The method based on local invariant features shows excellent results of this task. Local features' values directly differ from their properties and the natural pattern of the associated images [9]. Images of irregular breathing and heartbeats are twisted and presented at different noisy frequencies [10]. Therefore, the purpose of preprocessing is to enhance images and provide an automatic image processing technique that includes a human observer's image to enter the starting phase of image information [11]. In preprocessing, the input CT images are processed by improving the image quality. In this stage, several actions are performed on the model data is used to highlighted images [12]. Feature extraction is an important step to determine normal or abnormal images, which is the basis of the classification process [13]. The extracted tumor features are the average length of perimeter, area, and eccentricity, which can be completely determined if there is a binarization of a cancer tumor. Meanwhile, if there is a malignancy, the cancer stage can also be identified [14].
Image enhancement based on Gabor function is simultaneous (and optimal) to local log with excellent spatial and frequency domains and local multi-scale decomposition [15]. As mentioned above, a radiologist can become a decision-maker to identify abnormalities from original CT images. The center and diameter of clinical cancer data are used as the initial segmentation seed for our computer-aided design (CAD) program [16]. The concepts of segmentation and detection are, however, not equivalent. The major and minor details data can be incomplete, while at the same time, other accessory cracks can be visible [17]. Therefore, extracting basic features of nodules requires many heuristic steps [18]. The calculation is utilized to improve the lung parenchyma's applied slope image to distinguish the four associated networks around every pixel of the object with the least angle estimation [19]. Also, the alignment of gradient direction calculation on high contrast edges is applied to determine the standard image plane and 3D image gradient vector [20]. Elastic registration using full scan and cracking is refined by mutual information registration programs such as a similarity measure [21].

Materials and Methods
Globally, lung cancer is one of the most serious diseases because its identification is complicated in the medical field. Lung cancer scan is currently not advocated, especially for the high-risk population. The most significant use is identifying central tumors and cancers. In this paper, imaging techniques are employed to predict the early detection of lung disease disorders. Firstly, the Adaptive Median Filter algorithm is applied to preprocess the input images. Then, the Supervised Image Edge Detection is exploited to distinguishing unconventional image variety. Finally, the unsupervised diffusion classification (UDC) is proposed to classify this system's images. In this model, the feature detection and accuracy analysis are taken for the lung cancer image-based UDC technique. Fig. 2 illustrates the framework of the proposed strategy, which consists of seven stages: input, preprocessing, segmentation, feature extraction, UDC, classification, and output.

Preprocessing
Image preprocessing is a significant start in the diagnosis of lung symptoms, which is conducted to improve the overall performance of lung cancer classification. In our preprocessing, the adaptive median filter is mainly utilized to reduce the random noise of the input image with an excellent noise reduction function. After preprocessing, the image quality is improved compared to the original image.
The median filter method is a nonlinear smoothing technique, which sets the gray value of each pixel to the median of the gray values of all pixels in a certain neighborhood window of that point. Adaptive median filters have been widely used in image enhancement, feature extraction, and pattern medical multistage expression.

Adaptive Median Filter
Step 1: Select the image size and process the value of the pixel pðx; yÞ in the optimized input image data.
Step 2: Analyze the ascending order of the pixel value in the image and denote the pixel value by median value P med .
Step 3: Sort the minimum pixel value P min and the maximum pixel value P max by vector V0. The sorted vector V0 is the combination of P max and P min of the system, where P max is maximum pixel value, P min is minimum pixel value, and V0 is vector value.  Step 4: If the range of P max and P min is within the image pixels analysis, then pðx; yÞ is an uncorrupted pixel or a corrupted pixel.
Step 5: If the condition of Step 4 is not met, the neighboring pixel crosses to result in the difference vector VD, which can find the largest difference in the image V0 corresponding to the processed pixel to enhance the output image.
where, P min = minimum value of the pixel P max = maximum value of the pixel P med = median pixel value V0 = sorted vector VD = difference vector Step 6: End.
We can see from the above Fig. 3, Fig. 3a shows the input image, and Fig. 3b displays the preprocessed image using the Adaptive Median Filter. The preprocessed image is enhanced the image quality and is fed to the next stage-the segmentation process.

Segmentation
Image segmentation is an essential process of extracting meaningful features and areas from an image, which is a hotspot in the image field. These features can be the original characteristics of the image, such as gray pixel values, colors, reflection characteristics, and textures. The algorithm's main idea is to cluster pixels, i.e., the image is divided into many blocks depending on the relationships between adjacent pixels. In this stage, the correlation between pixels can be explained by the distance.

Supervised Image Edge Detection Algorithm
Step 1: Obtain the preprocessed image.
Step 2: The threshold value T is utilized.
If (p, q) > T, g (p, q) = 0; If (p, q) ≤ T, threshold value. Step 3: If the threshold T value is measured with the input variable. Depending on the local threshold or neighborhood, if T (p; q) area. The versatile thresholding, if T is an element of (p; q).
Step 4: The various process of the filter compared to the threshold value If g (p; q) > T2, g (p; q) = b; If T1 < f (p; q) ≤ T2, If g (p; q) ≤ T1.
where, T = Threshold value p; q = input variable Step 5: End. Fig. 4 illustrates the input and output images of the segmentation stage. Fig. 4b denotes the affected area.

Feature Extraction
An invariant feature of the image is extracted, depending on the selected condition and the constant function's value. During image feature extraction, it finds the reliable and robust shape, appearance, and values of any parameters that can control the contrast, as long as the shape image is in the presence of light and dark. In feature extraction, the adaptive median filter can effectively affect the liver and distinguish it from normal organs. Thus, Pmin and Pmax can be defined as:    (2) where the constant variable is the first term and the optimal value of the image. And I i;j is pixel mean value, i; j is pixel probability value, I xþi;yþi is image points, and T is pixels template. This model has been considered at several levels and presents different image details at different scales. However, as a constant, the adaptive median filter can adequately and directly account for uncomplicated lung problems.

Mean
The mean filter operation is mainly based on arithmetic averaging and variation of Gaussian noise from video signals.
where M and N are the image dimension and the total number of pixels, respectively. P ij is the color value at the i th column and the j th row.

Standard Deviation
Standard deviation is the most generally utilized method to calculate the changeability or decent variety. As far as image preprocessing, it indicates the amount of variation from the average (mean or expected value). Thus, the standard deviation SD can be defined as: where Σ is the sum function, pis the input image, q is the image mean value, and M is the number of data points from the input image.

Energy
Energy is used to measure the smoothness of the image. The energy of the pixel extends between 0 to 1. Consistency is transferred pixels, and the energy can be expressed as: where P i;j is the pixel color value of the i th column and the j th row.
The less smooth the area, the more consistent the dispersion. P i;j and the lower the rakish second to be estimated. P i;j is the sixth section of the standardized co-event lattice.

Contrast
Black and white contrast and the polarization distribution are used to capture the image's grayscale dynamic range. Therefore, The contrast measure is defined as: i;j¼0 P i;j ði À jÞ 2 (8) where P ij denotes the color value of the i th column and the j th row, and N is the number of images.

Unsupervised Diffusion Classification (UDC)
The proposed unsupervised diffusion classification (UDC) is a more straightforward learning calculation for separating arrangement maps into various element vector planes by nonlinear planning, normally various classes by high-dimensional planes. It works out two sorts of characterization of the hyperplane.

Unsupervised Diffusion Classification Algorithm Steps
Step 1: Initialize input data.
Step 2: Define the value of pixel P(x, y), partial area B, and all the input data pixels.
Step 3: Calculate the maximum pixel vector near each erosion and dilation B's expanded configuration.
where P is the pixel value.
Step 4: Update the image at each location (x; y) using P; Q ð Þ ¼ Dist P x; y ð Þ ½ Step 5: If the pixel is set to the maximum, then loop Step 5 and let I + 1; Otherwise, using F ¼ f È B, the original image is extended and replaced.
Step 6: A unique spectral set of pixels with a higher correlation in the form vectors is used to calculate the pixel vector pair of pixels P.
Unsupervised diffusion classification (UDC) is originally designed for binary classification with the sum of N (N − 1)/2 categories. Carriers may be divided into a maximum number of values of each particular type.

Results and Discussion
The detection of the affected cancer region in the lungs with the help of the image processing technique is based on the proposed UDC technique. The proposed unsupervised diffusion classification (UDC) performs superior by accomplishing exactness, affectability, and explicitness when contrasted with another ordinary classifier. Our experiment is conducted on MATLAB 2017a, which is one of the most widely used programs. Particular activities and imaginative conditions to execute the calculation are broken down, as shown in Fig. 5. Fig. 5 shows the process of image preprocessing, segmentation, feature extraction, and accuracy. This GUI shows 90% of accuracy by using the proposed UDC technique.
Tab. 1 shows the configuration details used in our experiment, including datasets, persons in analysis, lung cancer images, and the software.

Conclusion
Lung disease of the respiratory system may hide details. Generally, clinicians rely on automatic classification schemes rather than estimating direct observations of respiratory parameters, which is missing from previous studies and is difficult to understand by providing a mechanism to explain menstruation. In this paper, the proposed model shows the patient's health conditions with the control of lung cancer. This model considers the performance parameters, which can be of great importance in the practical diagnosis of the input image. The exploratory outcomes demonstrate that the parameters, such as mean, standard deviation, contrast, energy, are promising for identifying lung cancer. In this model, the comparative analysis confirms the proposed unsupervised diffusion classification (UDC) is superior to existing methods, with the accuracy of 90%, the sensitivity of 87%, the precision of 88%, and specificity of 85%, respectively.