Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 May 14:14:103348.
doi: 10.1016/j.mex.2025.103348. eCollection 2025 Jun.

An anatomically enhanced and clinically validated framework for lung abnormality classification using deep features and KL divergence

Affiliations

An anatomically enhanced and clinically validated framework for lung abnormality classification using deep features and KL divergence

Suresh Kumar Samarla et al. MethodsX. .

Erratum in

Abstract

Detecting lung abnormalities via chest X-rays is challenging due to understated tissue variations often ignored by traditional methods. Augmentation techniques like rotation or flipping risk distorting critical anatomical features, actually leading to misdiagnosis. This paper proposes a novel two-stage ASCE (Anatomical Segmentation and Color-Based Enhancement) framework for precise and efficient classification of lung abnormalities while preserving anatomical integrity. Stage 1 classifies Normal vs. Pneumonia with 95 % accuracy, an AUC of 0.98, and an F1-score of 0.92. Stage 2 distinguishes Pneumonia into Viral and Bacterial subtypes with 100 % accuracy and F1-score. This approach integrates segmentation and tissue-specific color enhancements with Kullback-Leibler (KL) divergence, quantifying deviations from healthy lung regions for improved classification. The lightweight pipeline ensures computational efficiency (∼0.06s/image) and clinical interpretability by preserving diagnostic features, enhancing visibility, and enabling quantitative analysis.1.Preserving Anatomical Structures: The methodology ensures that diagnostic features are preserved and highlighted with Anatomy-Preserved Segmentation2.Enhancing Diagnostic Visibility: The system employs targeted colour-based enhancement that improves the visibility of potential abnormalities3.Quantitative Analysis with Kullback-Leibler (KL) divergence: The model enhances precise identification of abnormal tissue by comparing the probability distributions of healthy lungs and abnormal areas.

Keywords: Anatomical Segmentation and Color-Based Enhancement; Anatomical segmentation; Chest X-rays; Color based enhancement; Deep learning; KL divergence; Lung Abnormality; Pneumonia Detection.

PubMed Disclaimer

Conflict of interest statement

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Figures

Image, graphical abstract
Graphical Abstract: High-level overview of the ASCE preprocessing pipeline. This figure illustrates the sequential stages involved in the Anatomical Segmentation and Color-Based Enhancement process, from lung segmentation to the application of KL Divergence for feature enhancement. Each stage is marked to highlight its contribution to enhancing the detection accuracy of lung abnormalities.
Fig. 1
Fig. 1
Comprehensive Workflow for Chest X-Ray Analysis from Preprocessing to Classification. This diagram illustrates the sequence of steps applied to chest X-ray datasets, including lung and tissue segmentation, colour mapping, and texture preservation, followed by feature extraction using the ResNet50 architecture, concluding in the classification of images into categories such as Pneumonia, and Normal and then Viru vs Bacteria.
Fig. 2
Fig. 2
Visual plan of the ASCE preprocessing pipeline. The left column shows the original chest X-ray images, the center column displays the lung masks generated through anatomical segmentation, and the right column depicts the final enhanced output after applying tissue-specific color mapping and structural sharpening. This enhancement improves the visual separability of lung tissues such as alveoli and blood vessels, facilitating better feature extraction.
Fig. 3
Fig. 3
Workflow of the proposed ASCE (Anatomical Segmentation and Colour-Based Enhancement) framework. The pipeline consists of five major stages: (1) Data Preparation, including validation of image-mask-annotation pairs; (2) Anatomical Segmentation and tissue-specific Colour-Based Enhancement to highlight alveoli, bronchi, and blood vessels; (3) Feature Extraction using ResNet50 followed by KL divergence computation against a healthy reference vector; (4) Classification using a soft-voting ensemble (Random Forest + XGBoost) that incorporates both deep features and KL divergence; and (5) Evaluation using standard performance metrics.
Fig. 4:
Fig. 4
a. Confusion Matrix for Stage 1: Normal vs. Pneumonia, b. Confusion Matrix for Stage 2: Virus vs. Bacteria.
Fig. 5:
Fig. 5
a. ROC Curve for Stage 1: Binary Classification, b. Precision-Recall Curve for Stage 1: Binary Classification, c. ROC Curve for Stage 2: Multi-Class Classification, d.Precision-Recall Curve for Stage 2: Multi-Class Classification.

Similar articles

References

    1. Hassanpour H., Samadiani N., Mahdi Salehi S.M. Using morphological transforms to enhance the contrast of medical images. Egypt. J. Radiol. Nuclear Med. 2015;46(2):481–489. doi: 10.1016/j.ejrnm.2015.01.004. -06. - DOI
    1. Siracusano G., La Corte A., Gaeta M., Cicero G., Chiappini M., Finocchio G. Pipeline for advanced contrast enhancement (PACE) of chest X-ray in evaluating COVID-19 patients by combining bidimensional empirical mode decomposition and contrast limited adaptive histogram equalization (CLAHE) Sustainability. 2020;12(20):8573. doi: 10.3390/su12208573. -10-16. - DOI
    1. Singh A., Bhateja V., Rathore A.S., Shukla A. In: Evolution in Signal Processing and Telecommunication Networks. Chowdary P.S.R., Anguera J., Satapathy S.C., Bhateja V., editors. Vol. 839. Springer; Singapore: 2022. Contrast enhancement of CT-scan images of lungs using morphological filters; pp. 241–247.https://link.springer.com/10.1007/978-981-16-8554-5_24 (Evolution in Signal Processing and Telecommunication Networks). Series Title: Lecture Notes in Electrical Engineering. Available from: - DOI
    1. Rao K., Bansal M., Kaur G. An effective CT medical image enhancement system based on DT-CWT and adaptable morphology. Circuits. Syst. Signal. Process. 2023;42(2):1034–1062. doi: 10.1007/s00034-022-02163-8. - 02. - DOI
    1. Pagadala P.K., Pinapatruni S.L., Kumar C.R., Katakam S., Peri L.S.K., Reddy D.A. Enhancing lung cancer detection from lung CT scan using image processing and deep neural networks. Revue d’Intelligence Artificielle. 2023;37(6) doi: 10.18280/ria.370624. -12-27. - DOI

LinkOut - more resources