Haldia Institute of Technology Publishing Int.J.HIT.TRANSC:ECCN.Vol.12: Issue 1 A Available Online at www.hithaldia.in/locate/ECCN Corresponding Address:
[email protected] ORIGINAL CONTRIBUTION REVOLUTIONIZING LUNG DISEASE DIAGNOSIS IN X IMAGES: MULTISTAGE APPROACH WITH WMF, FCM, AND MCNN INTEGRATION USING YOLOV4 Sanjukta Rani Jena Asst Professor, Dept of CSE, Sardar Patel Institute of Technology, Mumbai Email Id: [email protected] ABSTRACT This research presents a comprehensive framework for enhancing the accuracy of lung disease diagnosis through a multi-stage process applied to Xray images. The proposed methodology begins with the application of Weighted Median Filtering (WMF) to effectively reduce noi operations are employed for enhancement, refining the image quality for better analysis. The segmentation process is then performed utilizing Fuzzy CMeans Clustering (FCM), effectively partitioning significant regions. To extract pertinent features for classification, the framework employs a Modified Convolution Neural Network (MCNN) within an Ensemble integrated using YOLOv4, facilitating efficient end a commendable accuracy rate of 93.78%, demonstrating its efficacy in robust lung disease diagnosis. This integrated framework offers a promising approac h to enhance the accuracy and reliability of computer for lung diseases based on Xray images KEY WORDS: Morphological operations, Fuzzy C Modified Convolution Neural Network ( 1. INTRODUCTION Pulmonary diseases constitute a formidable global health challenge, demanding precise and timely diagnostic methodologies. Within the realm of medical imaging, Xemerges as a cornerstone for detecting and evaluating respiratory conditions. However, the inherent intricacies and variability present in X ray images necessitate advanced computational approaches to elevate diagnostic accuracy. This study introduces an innovative and robust framewor k, titled "Ensemble Pulmonary Disease Diagnosis," which integrates state-of-theart techniques to address the complexities associated with X analysis. Haldia Institute of Technology Publishing International Journal of HIT Transaction on ECCN A (2025)Page 14-25 ISSN: 0973-6875 Available Online at www.hithaldia.in/locate/ECCN All Rights Reserved Corresponding Address:
[email protected] DOI: 10.5281/zenodo.17499731 REVOLUTIONIZING LUNG DISEASE DIAGNOSIS IN X STAGE APPROACH WITH WMF, FCM, AND MCNN INTEGRATION USING YOLOV4 Sardar Patel Institute of Technology, Mumbai presents a comprehensive framework for enhancing the accuracy of lung disease diagnosis through a ray images. The proposed methodology begins with the application of Weighted Median Filtering (WMF) to effectively reduce noi se in the input Xray images. Subsequently, morphological operations are employed for enhancement, refining the image quality for better analysis. The segmentation process is Means Clustering (FCM), effectively partitioning the images to highlight significant regions. To extract pertinent features for classification, the framework employs a Modified Convolution Neural Network (MCNN) within an Ensemble - based classification approach. The entire process is seamlessly using YOLOv4, facilitating efficient end -toend processing. Notably, the proposed methodology achieves a commendable accuracy rate of 93.78%, demonstrating its efficacy in robust lung disease diagnosis. This integrated h to enhance the accuracy and reliability of computer - aided diagnostic systems ray images . Morphological operations, Fuzzy C -Means Clustering (FCM), Ensemblebased classification, Modified Convolution Neural Network ( MCNN), YOLOv4 Pulmonary diseases constitute a formidable global health challenge, demanding precise and timely diagnostic methodologies. Within the - ray analysis detecting and evaluating respiratory conditions. However, the inherent intricacies and variability present in X - ray images necessitate advanced computational approaches to elevate diagnostic accuracy. This study introduces an innovative and robust k, titled "Ensemble -Enhanced Pulmonary Disease Diagnosis," which integrates art techniques to address the complexities associated with X -ray image Commencing with the imperative task of noise reduction, the framework employs Weighted Median Filtering (WMF) to refine raw X images, establishing a foundational step for subsequent analyses. Following this, morphological operations are applied to further enhance image quality, providing a crucial basis for meticulous examination. The introduction of Fuzzy CMeans Clustering (FCM) for segmentation facilitates the identification and isolation of salient features pertinent to pulmonary conditions, paving the way for a more nuanced and informed diagnosis. A pivotal innovation lies in the ens approach, where a Modified Convolution International Journal of HIT Transaction on ECCN Page | 14 REVOLUTIONIZING LUNG DISEASE DIAGNOSIS IN X -RAY STAGE APPROACH WITH WMF, FCM, AND presents a comprehensive framework for enhancing the accuracy of lung disease diagnosis through a ray images. The proposed methodology begins with the application of Weighted ray images. Subsequently, morphological operations are employed for enhancement, refining the image quality for better analysis. The segmentation process is the images to highlight significant regions. To extract pertinent features for classification, the framework employs a Modified Convolution based classification approach. The entire process is seamlessly end processing. Notably, the proposed methodology achieves a commendable accuracy rate of 93.78%, demonstrating its efficacy in robust lung disease diagnosis. This integrated aided diagnostic systems based classification, Commencing with the imperative task of noise reduction, the framework employs Weighted Median Filtering (WMF) to refine raw X -ray images, establishing a foundational step for subsequent analyses. Following this, morphological operations are applied to further enhance image quality, providing a crucial for meticulous examination. The Means Clustering (FCM) for segmentation facilitates the identification and isolation of salient features pertinent to pulmonary conditions, paving the way for a more nuanced and informed diagnosis. A pivotal innovation lies in the ens emble approach, where a Modified Convolution
Sanjukta Rani Jena/ Int.J.HIT.TRANSC:ECCN. Vol12: Issue 1A(2025) ISSN: 0973-6875 DOI: 10.5281/zenodo.17499731 Page | 15 Neural Network (MCNN) operates within the YOLOv4 environment. This integration not only streamlines the extraction process of significant image features for classification but also contributes to a holistic and accurate diagnostic methodology. The ensemble strategy ensures a synergistic amalgamation of diverse information, bolstering the robustness of the diagnostic process. The paper follows a structured outline comprising five main sections. The introduction provides an overview of the research's motivation and objectives, emphasizing the need for an enhanced object detection approach. The literature review critically examines existing research, establishing the context for the proposed multi-stage approach. The implementation methodology details the step-by-step process of integrating Weighted Median Filtering (WMF), Fuzzy C-Means (FCM), and a MultiChannel Neural Network (MCNN) using YOLOv4. The results and analysis section presents the quantitative outcomes and visual comparisons, offering insights into the model's performance. The conclusion summarizes the key findings, highlights contributions, and outlines potential avenues for future research, providing a comprehensive overview of the paper's structure and contributions. 2. L ITERATURE REVIEW The summarized studies present a comprehensive overview of significant contributions to lung cancer detection using deep learning and artificial intelligence. Goran Jakimovski and Danco Davcev's work in 2019 utilized K-means and convolutional layers, demonstrating positive results when testing the Deep Neural Network (DNN) on various Tx stages. Vasantha Kumar Venugopal et al. (2019) explained DL network functioning for lung nodule characterization and achieved reasonable accuracy by building a decision tree based on radiologist-described features. CHAO ZHANG (2019) surpassed radiologist assessments, showcasing the potential of deep learning for lung nodule detection and classification. Yuanli Feng's unique architecture in 2018 showcased excellent real-time nodule detection and segmentation performance. Yutong Xie's 2018 study introduced a semi-supervised adversarial classification model that outperformed existing methods, emphasizing its potential for clinical use. Chuang Wang et al. (2018) demonstrated the effectiveness of a patientspecific adaptive convolutional neural network for adaptive radiation therapy. Xavier Rafael-Palou et al. (2021) achieved accurate and speedy nodule re-identification using siamese neural networks. Yulei Qin et al. (2018) proposed a CNN-based segmentation method, outperforming existing techniques. Jun WANG's 2019 study introduced a novel technique for nodule detection with reduced false negatives and positives. Marysia Winkels (2019) demonstrated the efficacy of 3D rototranslation group convolutions in improving sample complexity in convolutional networks. Shulong Li (2019) implemented a fusion strategy that outperformed other models in terms of AUC, accuracy, sensitivity, and specificity. Bum-Chae Kim (2019) created a multi-scale progressive integration CNN for false-positive reduction, surpassing state-of-the-art approaches. Yanfeng Li's 2017 proposal for lung nodule detection in thoracic MR images showcased promising results in reducing false positives while preserving true nodules. Qin Wang's 2019 deep learning approaches for lung nodule detection and CNN-based image split demonstrated potential for aiding radiologists in diagnosing lung nodules. Sarfaraz Hussein (2018) suggested supervised and unsupervised machine learning algorithms, showcasing gains in sensitivity and specificity using deep learning on CT and MRI data. Yutong Xie's (2019) MV-KBC deep model outperformed state-of-the-art classification algorithms in identifying malignant lung nodules. Ilaria Bonavita's 2018 deep learning algorithms for predicting nodule malignancy and integrating it into an automated cancer detection system enhanced cancer detection in lung scans. Haichao Cao's 2019 Dualbranch Residual Network for lung nodule segmentation achieved remarkable performance, surpassing human experts. These studies collectively underscore the transformative potential of deep learning in
Sanjukta Rani Jena/ Int.J.HIT.TRANSC:ECCN. Vol12: Issue 1A(2025) ISSN: 0973-6875 DOI: 10.5281/zenodo.17499731 Page | 16 enhancing accuracy, sensitivity, and clinical applications for lung cancer detection. In latest years, artificial intelligence (AI), mainly deep learning has drastically impacted thoracic imaging, especially within the context of thoracic oncology. Guillaume Chassagnon (2023) highlights the adoption of AI into clinical practice with packages including pulmonary nodule detection, segmentation, characterization, and diagnostic gear for lung cancers. Constance de Margerie-Mellon and Guillaume Chassagnon (2023) emphasize the achievement of deep gaining knowledge of, specifically convolutional neural networks (CNN), in automating duties which includes lung nodule detection, segmentation, and class among malignant and benign nodules. They speak the capacity of AI in noninvasive tumor characterization and prognosis prediction. HesamoddinHosseini et al. (2023) awareness on deep learning algorithms, mainly CNN, for diagnosing early-stage lung cancers, reviewing different models and highlighting demanding situations in this field. Mehdi Amini et al. (2022) address challenges in radiomics prognostic fashions, emphasizing the restrictions of modality imaging and machine learning strategies. BelalAlsinglawi (2022) introduces a predictive Length of Stay (LOS) framework for lung cancers sufferers, utilising machine learning and electronic healthcare information for category-primarily based procedures. Lastly, Ying Xie et al. (2021) suggest an interdisciplinary approach, combining metabolomics and machine learning, to identify plasma metabolites as diagnostic biomarkers for early lung cancer detection in Chinese patients. This research collectively show the diverse packages and ongoing demanding situations in integrating AI into thoracic oncology for progressed analysis and affected person effects. This study aims to establish a streamlined and efficient diagnostic framework that not only meets the demands of modern healthcare but also significantly advances the accuracy and reliability of pulmonary disease diagnosis based on X-ray imaging. The subsequent sections delve into the intricacies of each component in the proposed framework, providing a comprehensive exploration of its potential impact on improving patient outcomes and shaping the future landscape of computeraided diagnostic systems in pulmonary medicine. 3. M ULTI -S TAGE A PPROACH W ITH WMF, FCM, A ND MCNN I NTEGRATION U SING Y OLOV 4 A Robust Framework" that integrates Weighted Median Filtering (WMF), Morphological Operations, and a Modified Convolution Neural Network (MCNN) within the YOLOv4 environment. In the realm of medical image processing, particularly in the diagnosis of pulmonary diseases using X-ray images, the quality of the input data plays a pivotal role in the accuracy of subsequent analyses. One common challenge in X-ray imaging is the presence of noise, which can obscure critical structural details and impede the diagnostic process. Weighted Median Filtering (WMF) emerges as a crucial initial step designed to alleviate this challenge. By strategically filtering pixel values with an emphasis on the central pixel, WMF aims to enhance the quality of X-ray images by preserving essential structural details while effectively mitigating the impact of noise. Algorithm for Weighted Median Filtering (WMF):
Sanjukta Rani Jena/ Int.J.HIT.TRANSC:ECCN. Vol12: Issue 1A(2025) ISSN: 0973-6875 DOI: 10.5281/zenodo.17499731 Page | 17 Input Image: 1.Begin with the raw X-ray image, denoted as I(x,y), where(x,y) represents pixel coordinates. 2.Selection of Pixel Neighborhood: Define a neighborhood around each pixel. Let Nxy represent the neighborhood around pixel (x,y). 3. Calculation of Weighted Median: Assign weights to each pixel within the neighborhood, with the central pixel receiving a higher weight. The weighted value is calculated as follows: = ∁ 1 where ω(p) is the weight assigned to pixel p in the neighborhood. 4.Sorting Pixel Values: Sort the pixel values within the neighborhood, denoted as Pxy=[p1,p2,...,pk], based on their intensity levels. 5. Selection of Weighted Median: Calculate the weighted median, Mxy, as the middle element in the sorted list: Median(Mxy)=Median(Pxy,Wxy) where MedianMedian is a function that considers the assigned weights. 6.Updating Image Pixel: Replace the original pixel value I(x,y) with the computed weighted median Mxy:Ifiltered(x,y)=Mxy This process is iteratively applied to all pixels in the image. In the realm of medical image processing, particularly in the enhancement of X-ray images for pulmonary disease diagnosis, Morphological Operations play a pivotal role following the initial step of noise reduction. These operations are designed to refine and augment the quality of X-ray images. By leveraging techniques such as dilation and erosion, Morphological Operations accentuate or diminish features based on their structural characteristics. This strategic refinement contributes to improved image quality, laying the foundation for more reliable and accurate analyses in subsequent diagnostic processes. Algorithm for Morphological Operations: Input Image: 1. Begin with the X-ray image that has undergone noise reduction, denoted as I(x,y), where (x,y) represents pixel coordinates. 2. Structuring Element: Define a structuring element, denoted as B, which serves as a template for the morphological operations. The choice of the structuring element influences the impact on image features. 3. Dilation Operation: Dilation is a morphological operation that enhances features by expanding object boundaries. The dilated image Idilated(x,y)=max(i,j)∈B{I(x+i,y+j)}, where (i,j) represents the coordinates within the structuring element. 4. Erosion Operation: Erosion is a morphological operation that diminishes features by contracting object boundaries. The eroded image, Ieroded(x,y)=min(i,j)∈B{I(x+i,y+j)} Where(i,j) represents the coordinates within the structuring element. 5. Opening Operation: Opening is a combination of an erosion operation followed by a dilation operation. It is particularly useful for removing small, undesired details while preserving the overall structure. The opened image, opened opened=(eroded)dilatedIopened=(Ieroded)dilated 6. Closing Operation: Closing is a combination of a dilation operation followed by an erosion operation. It is effective in filling small holes or gaps in object boundaries. The closed image, closed
Sanjukta Rani Jena/ Int.J.HIT.TRANSC:ECCN. Vol12: Issue 1A(2025) ISSN: 0973-6875 DOI: 10.5281/zenodo.17499731 Page | 18 closed=(dilated)erodedIclosed=(Idilated)eroded The strategic application of these morphological operations refines the structural details of the X-ray image, contributing to enhanced image quality for subsequent diagnostic analyses.Creating a full algorithm with formulas for a Modified Convolutional Neural Network (MCNN) involves a detailed explanation of the network's architecture, training process, and classification. Below is a simplified algorithm that outlines the key steps in the MCNN process, including the training and inference phases. Please note that this is a high-level overview, and the actual implementation may require more intricate details.The integration of Weighted Median Filtering (WMF), Morphological Operations, and the Modified Convolution Neural Network (MCNN) within the YOLOv4 environment orchestrates a streamlined and comprehensive workflow for pulmonary disease diagnosis in X-ray images. Commencing with the noise reduction facilitated by WMF, the input X-ray images undergo a critical enhancement process. Subsequently, Morphological Operations refine the structural details, preparing the images for the feature extraction prowess of the MCNN. This well-defined workflow ensures a seamless transition from preprocessing to the advanced stages of feature analysis and classification, creating a cohesive and end-to-end diagnostic process. Benefits of Component Integration: The amalgamation of these diverse components yields a myriad of benefits, collectively addressing the inherent challenges posed by noisy and complex X-ray images. The strategic application of WMF enhances the quality of input data by selectively filtering pixel values, preserving vital structural details while mitigating noise impact. Morphological Operations further contribute to image refinement, allowing for a nuanced analysis. The MCNN, with its tailored architecture and trained on enhanced images, serves as the cornerstone for feature extraction and disease classification. This integration not only capitalizes on the strengths of each component but also mitigates their individual limitations, offering a comprehensive and robust diagnostic tool. Enhanced Accuracy and Reliability: The synergy achieved through component integration significantly elevates the accuracy and reliability of the diagnostic tool. By mitigating noise and refining structural details, the preprocessing stages set the stage for the MCNN to extract meaningful features indicative of pulmonary diseases. The customized architecture of the MCNN, designed for the nuances of X-ray images, ensures that relevant patterns are discerned with precision. The ensemble-based classification, facilitated by YOLOv4, encapsulates a holistic approach, where the strengths of each component contribute synergistically to a final, accurate disease classification. This integration is not merely a sum of its parts but a strategic orchestration of algorithms and methodologies that collectively enhance diagnostic efficacy. The integrated framework holds immense clinical significance, providing clinicians with a reliable and accurate diagnostic tool for pulmonary diseases. The seamless flow from noise reduction to disease classification ensures that the diagnostic process is efficient and dependable. The reduction of false positives and negatives, achieved through the thoughtful integration of components, translates to improved patient outcomes. Moreover, the adaptability of the framework to diverse clinical scenarios positions it as a versatile solution for a range of pulmonary conditions, ultimately contributing to more informed decision-making in healthcare. As the field of medical imaging continues to evolve, the integrated framework presented here sets a precedent for future developments in computer-aided diagnostics. The success of this comprehensive approach prompts further exploration into ensemble-based strategies, tailored neural network architectures, and innovative preprocessing techniques. The seamless integration of cutting-edge methodologies not only represents a current solution for pulmonary disease diagnosis but also lays the foundation for ongoing advancements in the intersection of artificial intelligence and healthcare, promising a future
Sanjukta Rani Jena/ Int.J.HIT.TRANSC:ECCN. Vol12: Issue 1A(2025) ISSN: 0973-6875 DOI: 10.5281/zenodo.17499731 Page | 19 where diagnostic accuracy and reliability continue to ascend to new heights. 4.Results and analysis In the presented work, the initial step involves the consideration of input X-ray images. The enhancement process begins with the application of a sophisticated filter, and the resulting outcomes are showcased through visual representations using MATLAB. X-ray Image Input: The workflow begins with the acquisition of X-ray images, which serve as the foundation for subsequent analysis. These images capture the intricate details of the pulmonary structure and potential disease indicators. Filter Application: MATLAB, a powerful tool for image processing, is employed for the implementation of the image enhancement process. The chosen filter, be it Weighted Median Filtering (WMF) or another advanced method, is meticulously applied to selectively filter pixel values within the X-ray images. MATLAB's extensive image processing toolbox facilitates the seamless integration of sophisticated filtering techniques, contributing to noise reduction and the preservation of critical structural details. Figure 1: Input Image and Filtered Image The outcomes of the filtering process are visually showcased through figures generated using MATLAB. These figures provide a sideby-side comparison between the original X-ray image and its enhanced counterpart, effectively highlighting the improvements achieved through the application of the chosen filter. These MATLAB-based implementations not only enhance the clarity of X-ray images but also set the stage for subsequent morphological operations, feature extraction using the Modified Convolution Neural Network (MCNN), and ensemble-based classification within the YOLOv4 environment. Input image
Sanjukta Rani Jena/ Int.J.HIT.TRANSC:ECCN. Vol12: Issue 1A(2025) ISSN: 0973-6875 DOI: 10.5281/zenodo.17499731 Page | 20 Figure 2: Input Imageand Filtered Image with Erosion and dilation The figure 2 represents theInput Imageand Filtered Image with Erosion and dilation. The seamless integration of MATLAB ensures a comprehensive and efficient workflow for accurate pulmonary disease diagnosis based on X-ray imaging.
Sanjukta Rani Jena/ Int.J.HIT.TRANSC:ECCN. Vol12: Issue 1A(2025) ISSN: 0973-6875 DOI: 10.5281/zenodo.17499731 Page | 21 Figure 3: FCM segmentation The FCM segmentation has been applied and the segmentation output has been described on the figure 3. Figure 4 depicts the accuracy achieved by the proposed algorithm, revealing an impressive accuracy of 93.78%.This high accuracy underscores the effectiveness of the algorithm in accurately classifying X-ray lung images. The figure 5 describes the accuracy of the work. Figure 4: Selected Cluster It demonstrates the robustness and reliability of the algorithm in distinguishing between different classes within the images.On the other hand, Figure 6 illustrates the error rate, showcasing a remarkably low error rate of 0.12%.This minimal error rate further validates the algorithm's precision and its ability to minimize misclassifications. The low error rate indicates a high level of confidence in the algorithm's performance and its potential for reliable clinical applications.The figure 7 describes the performance matrix of the proposed work. The algorithm demonstrates outstanding accuracy and a minimal error rate, making it a promising tool for lung image analysis.The combination of WMF, morphological operations, FCM, and MCNN, along with the utilization of YOLOv4,
ISSN: 0973-6875 D OI: 10.5281/zenodo.17499731 contributes to the algorithm's success in achieving accurate and reliable results in the classification of Xray lung images. Conclusion In the proposed algorithm for lung image analysis, a comprehensive approach involving Weighted Median Filt (WMF), morphological operations, Fuzzy C Means Clustering (FCM), and Ensemble classification using a Modified Convolution Figure 5: Accuracy in percentage Figure 6:L oss value Sanjukta Rani Jena / Int.J.HIT.TRANSC:ECCN. Vol OI: 10.5281/zenodo.17499731 contributes to the algorithm's success in achieving accurate and reliable results in the ray lung images. In the proposed algorithm for lung image analysis, a comprehensive approach involving Weighted Median Filt ering morphological operations, Fuzzy C - Means Clustering (FCM), and Ensemble -based classification using a Modified Convolution Neural Network (MCNN) has been implemented. The steps include noise reduction with WMF, enhancement through morphological o perations, segmentation with FCM, feature extraction, and ultimately classification using the MCNN. The entire process is facilitated by YOLOv4, resulting in an accurate classification of lung images with a reported accuracy of 93.78%. Accuracy in percentage oss value Figure 7: Performance matrix References: [1]. Ardila, Diego, Atilla P. Kiraly, Sujeeth Bharadwaj, Bokyung Choi, Joshua J. Reicher, Lily Peng, Daniel Tse et al. cancer screening with three learning on lowdose chest computed tomography." Nature medicine (2019): 954-961. [2]. Bi, Wenya Linda, Ahmed Hosny, Matthew B. Schabath, Maryellen L. Giger, Nicolai J. Birkbak, Alireza Meh Allison et al. "Artificial intelligence in cancer imaging: clinical challenges and applications." CA: a cancer journal for clinicians 69, no. 2 (2019): 127 [3]. Bonavita, Ilaria, Xavier Rafael Mario Ceresa, Gemma Piella, VicentRibas, an / Int.J.HIT.TRANSC:ECCN. Vol 12: Issue 1A(2025) Page | 22 Neural Network (MCNN) has been The steps include noise reduction with WMF, enhancement through perations, segmentation with FCM, feature extraction, and ultimately classification using the MCNN. The entire process is facilitated by YOLOv4, resulting in an accurate classification of lung images with a reported accuracy of 93.78%. Performance matrix Ardila, Diego, Atilla P. Kiraly, Sujeeth Bharadwaj, Bokyung Choi, Joshua J. Reicher, Lily Peng, Daniel Tse et al. "End-to-end lung cancer screening with three -dimensional deep dose chest computed Nature medicine 25, no. 6 Bi, Wenya Linda, Ahmed Hosny, Matthew B. Schabath, Maryellen L. Giger, Nicolai J. Birkbak, Alireza Meh rtash, Tavis Allison et al. "Artificial intelligence in cancer imaging: clinical challenges and CA: a cancer journal for 69, no. 2 (2019): 127 -157. Bonavita, Ilaria, Xavier Rafael -Palou, Mario Ceresa, Gemma Piella, VicentRibas, an d