Lung cancer is one of the leading causes of cancer-related deaths worldwide. Early detection and diagnosis are critical for improving patient outcomes. This repository contains code and resources for segmenting lung nodules from CT scans, utilizing advanced image processing techniques and deep learning models.
- Deep Learning Models: Implementation of state-of-the-art models for lung nodule detection.
- Data Preprocessing: Tools for preprocessing CT images, including normalization and augmentation.
- Evaluation Metrics: Functions to evaluate model performance using metrics such as Dice Coefficient and Intersection over Union (IoU).
- Visualization: Utilities for visualizing detection results and model predictions.
To set up the project locally, follow these steps:
- Clone the Repository:
git clone https://github.com/myselfbasil/lung-nodule-detection.git cd lung-nodule-detection
- Install Dependencies:
It is recommended to create a virtual environment. You can use
venv
orconda
for this purpose. Install the required packages using:pip install -r requirements.txt
The dataset used for training and evaluation can be obtained from LIDC-IDRI. Ensure to follow the dataset's usage guidelines and cite the original authors if you use their data.
This project implements various deep learning architectures for detection, including:
- RetinaNet: A residual network that helps in training deeper networks effectively.
-
- Yolov5: An object detection algorithm is an algorithm that is capable of detecting certain objects or shapes in a given frame.
Each model is trained on the provided dataset, and hyperparameters can be adjusted in the configuration files.
The performance of the models can be evaluated using various metrics. Below are some sample results obtained from testing the model:
- Dice Coefficient: 0.85
- IoU: 0.75
Visualizations of the detection results will be included in the results
directory after running the evaluation script.
The Lung Nodule detection model have been deployed online in huggingface, check it out: https://huggingface.co/spaces/basilshaji/Lung_Nodule_Segmentation
Contributions are welcome! If you have suggestions for improvements or new features, please fork the repository and submit a pull request. Ensure to follow the coding standards and include relevant tests for new features.
This project is licensed under the MIT License - see the LICENSE file for details.
Thank you to everyone and every source that contributed to the development of this project, regardless of the size of their contributions. Your support is greatly appreciated.