COPD Detection & Severity Classification

COPD Detection System

What is the COPD Detection System?

The COPD Detection System is an advanced deep learning application designed to screen and classify the severity of Chronic Obstructive Pulmonary Disease (COPD). By analyzing digital recordings of respiratory sounds (lung auscultations), the system leverages a CNN-based screening model and a severity classifier to provide rapid, non-invasive diagnostic insights.

Problem Statement

COPD is a leading cause of global mortality. Early detection is critical, but traditional spirometry tests require specialized equipment and trained personnel. There is a pressing need for accessible, low-cost, and reliable screening methods that can operate in remote or resource-constrained environments using simple audio inputs.

Tech Stack

  • Machine learning: Python, PyTorch
  • Audio processing: 16 kHz resampling, respiratory-cycle segmentation, 128-band log-Mel spectrograms
  • Models: EfficientNetB0 + BiLSTM + attention (screening), ResNet-18 CNN (severity)
  • Web app: React inference interface

Architecture & Implementation

The project is a VTU major project built on the ICBHI 2017 dataset (920 recordings, 6,898 respiratory cycles). The pipeline:

1. Signal processing: recordings are resampled to 16 kHz and cut into respiratory cycles.
2. Features: each cycle becomes a 128-band log-Mel spectrogram.
3. Screening model: an EfficientNetB0–BiLSTM–Attention hybrid decides healthy or COPD.
4. Severity model: a ResNet-18 CNN grades four severity classes.

To limit overfitting I used patient-level splits, a class-weighted loss and two-stage transfer learning.

Results & Metrics

  • Screening: 87.73% accuracy and 0.93 AUC for healthy versus COPD.
  • Severity: 91.58% accuracy across four classes.

SHWASA is a research prototype. It is not a medical device and not for clinical diagnosis.

Try the SHWASA prototype View Repository