scieee AI-readable full text Open interactive document viewer

REVOLUTIONIZING LUNG DISEASE DIAGNOSIS IN X-RAY IMAGES: MULTI-STAGE APPROACH WITH WMF, FCM, AND MCNN INTEGRATION USING YOLOV4

Sanjukta Rani Jena

Abstract

Asst Professor, Dept of CSE, Sardar Patel Institute of Technology, Mumbai Email Id: [email protected] This research presents a comprehensive framework for enhancing the accuracy of lung disease diagnosis through a multi-stage process applied to X-ray images. The proposed methodology begins with the application of Weighted Median Filtering (WMF) to effectively reduce noise in the input X-ray images. Subsequently, morphological operations are employed for enhancement, refining the image quality for better analysis. The segmentation process is then performed utilizing Fuzzy C-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 integrated using YOLOv4, facilitating efficient end-to-end processing. Notably, the proposed methodology achieves a commendable accuracy rate of 93.78%, demonstrating its efficacy in robust lung disease diagnosis. This integrated framework offers a promising approach to enhance the accuracy and reliability of computer-aided diagnostic systems for lung diseases based on X-ray images.

Full text

HaldiaInstit u Int.J.HIT.T R    Correspon d  ORIGINA REV O IMA G MCN N Sanjukta A sst Profes s Email Id: r o ABSTRA C This resea r multi-stag e Median F i operations then perf o significant N eural N e integrated u a commen d framewor k for lung di s KEY W O Modified C 1. INT R Pulmonar y global he a timely d i realm o f emerges evaluatin g inherent i n ray imag e approach e study in t framewor k Pulmonar y state-of-t h complexi t analysis. u teofTechnology R ANSC:ECCN. V d ingAddress: r L CONTRIB U O LUTIO N G ES: M U N INTE G Rani Jen a s or, Dept of CS E o utray.sanju@g m C T r ch p resents a e process appl i i ltering (WM F are employed o rmed utilizin g regions. To e x e twork (MCN N u sing YOLOv 4 d able accurac y k offers a prom s eases based o n O RDS:Morph o C onvolution N e R ODUCTI O y diseases a lth challeng i agnostic m e f medical i as a corne r g respiratory n tricacies an d e s necessitat e e s to elevate t roduces an k , titled y Disease Di h e-art tech n t ies associa t Publishing V ol.12:Issue1 A Availab l r outray.sanju @ U TION N IZING L U LTI-ST A G RATIO N E , Sardar Patel I m ail.com comprehensiv i ed to X-ray i m F ) to effectiv e for enhancem e g Fuzzy CM x tract pertine n N ) within an 4 , facilitating e y rate of 93.78 % ising approac h n X-ray image o logical opera t e ural Network O N constitute a e, demandin g e thodologies. i maging, Xr stone for d conditions. H d variability p e advanced c diagnostic a c innovative "Ensem b agnosis," wh i n iques to t ed with X  A (2025)Page 1 l eOnlineat w AllRi @ gmail.com L UNG D A GE AP P N USING I nstitute of Tech n e framework f m ages. The p r e ly reduce no i e nt, refining t h M eans Clusteri n n t features for c Ensembleb as e fficient end-t o % , demonstrat i h to enhance t h s. t ions, Fuzzy (MCNN), Y O a formidabl e g precise an d Within th e ray analysi s d etecting an d H owever, th e p resent in X - c omputationa l c curacy. Thi s and robus t b le-Enhance d i ch integrate s address th e X -ray imag e  1 4‐25  w ww.hithaldi a ghtsReserve D ISEAS E P ROAC H YOLO V n ology, Mumba i f or enhancing t r oposed meth o i se in the in p h e image quali t n g (FCM), e f c lassification, ed classificat i o -end processi i ng its efficac y h e accuracy an d C-Means Cl u O LOv4 e d e s d e - l s t d s e e Co m red u Me d ima g sub s mor p enh a b asi s intr o (FC M iden t pert i way A p app r Inter n ISSN: a .in/locate/E C d E DIAG N H WITH V 4 i t he accuracy o o dology begin s p ut X-ray ima t y for better an a f fectively par t the framewor k i on approach. ng. Notably, t h y in robust lun g d reliability of u stering (FC M m mencing wi t u ction, the f d ian Filterin g g es, establis h s equent a n p hological o p a nce image s for meti c o duction of M ) for s t ification an d i nent to pul m for a more n u p ivotal inno v r oach, where a n ationalJournalo f 0973‐6875 C CN N OSIS I WMF, F o f lung diseas e s with the app l ges. Subsequ e a lysis. The se g t itioning the i k employs a M The entire p r h e proposed m g disease diag n compute r -aid e M ), Ensembleb t h the imper a f ramework e g (WMF) to h ing a fou n n alyses. F p erations are quality, pr o c ulous ex Fuzzy CM s egmentation d isolation o m onary con d u anced and i n v ation lies a Modified C f HITTransaction o Pa g I N X-R A F CM, A N e diagnosis thr o l ication of W e e ntly, morpho l g mentation pr o i mages to hi g M odified Conv o r ocess is sea m m ethodology a c n osis. This int e e d diagnostic s y b ased classifi c a tive task of e mploys We i refine raw n dational ste F ollowing applied to f o viding a c amination. M eans Clu s facilitates o f salient fe d itions, pavi n n formed diag n in the ens C onvolution o nECCN g e|14 A Y N D o ugh a e ighted l ogical o cess is g hlight o lution m lessly c hieves e grated y stems c ation, noise i ghted X-ray p for this, f urther c rucial The s tering the atures n g the n osis. emble Sanjukta Rani Jena/ Int.J.HIT.TRANSC:ECCN. Vol12: Issue 1A(2025)  ISSN:0973‐6875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. LITERATURE 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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. MULTI-STAGE APPROACH WITH WMF, FCM, AND MCNN INTEGRATION USING YOLOV4 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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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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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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:097 3  contribut e achievin g classifica t Conclus i In the p analysis, Weighte d (WMF), m Means Cl classifica t F 3 ‐6875 e s to the a g accurate an t ion of X-ray i on roposed alg o a comprehe n d M m orphologica l ustering (FC M t ion using a F igure 5: Accu r Figure 6 :  a lgorithm's d reliable re s lung images. o rithm for l n sive approac h edian l operations, M ), and Ens e Modified C r acy in percen t : Loss value Sanjukta Ran i  success in s ults in the l ung image h involving Filtering Fuzzy Ce mble-based C onvolution t age i Jena / Int.J.H I  Neura l imple m reduct morp h FCM, classi f proce s an ac c a repo r Refe r [1 ] B h Li l ca n le a to m (2 0 [2 ] M a N i A l i m ap p cli [3 ] M a I T.TRANSC:E C  l Network m ented. T h ion with W M h ological op e feature e x f ication usin g s s is facilitat e c urate classif i r ted accurac y Figure 7: P r ences: ] . Ardila, Die g h aradwaj, Bok y l y Peng, Dani e n cer screenin g a rning on m ography." Na 0 19): 954-961 . ] . Bi, Weny a a tthew B. Sc colai J. Birk b lison et al. " A m aging: cl i p lications." C A nicians 69, no . ] . Bonavita, I a rio Ceresa, G e C CN. Vol12: Is   (MCNN) h e steps i M F, enhanc e e rations, seg m x traction, a n g the MCN N e d by YOLO v i cation of lu n y of 93.78%. P erformance m g o, Atilla P. y ung Choi, Jo e l Tse et al. " E g with three-d i low-dose c h a ture medici n . a Linda, A habath, Mar y b ak, Alireza M A rtificial intell i i nical ch a A : a cance r . 2 (2019): 12 7 I laria, Xavie r e mma Piella, V Is sue 1A(2025) Page| 2 has be e nclude noi e ment throu g m entation wi n d ultimate N . The enti v 4, resulting n g images wi m atrix Kiraly, Suje e shua J. Reich e E nd-to-end lu n i mensional de e h est comput e n e 25, no. A hmed Hos n y ellen L. Gig e M ehrtash, Ta v i gence in can c a llenges a n r journal f 7 -157. r Rafael-Pal o V icentRibas, a n 2 2 e n se g h th ly re in th e th e r, n g e p e d 6 n y, e r, v is c er n d f or o u, n d