https://github.com/krik8235/ml-image-segmentation
Build an Image Segmentation Model for Medical Diagnosis
https://github.com/krik8235/ml-image-segmentation
cnn-classification image-classification ipykernel jupyter-notebook machine-learning machine-learning-algorithms machine-learning-projects opencv opencv-python pytorch
Last synced: 25 days ago
JSON representation
Build an Image Segmentation Model for Medical Diagnosis
- Host: GitHub
- URL: https://github.com/krik8235/ml-image-segmentation
- Owner: krik8235
- Created: 2024-10-05T12:33:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-05T15:57:24.000Z (over 1 year ago)
- Last Synced: 2025-02-12T05:45:12.684Z (over 1 year ago)
- Topics: cnn-classification, image-classification, ipykernel, jupyter-notebook, machine-learning, machine-learning-algorithms, machine-learning-projects, opencv, opencv-python, pytorch
- Language: Jupyter Notebook
- Homepage: https://kuriko.vercel.app/ml-projects/image-segmentation-model
- Size: 26.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Build an Image Segmentation Model for Medical Diagnosis using CNN, PyTorch and OpenCV
In healthcare and medical science, the fusion of artificial intelligence and deep learning is revolutionizing diagnostics. My project focuses on the precise segmentation of polyps from colonoscopy images—a vital tool for medical practitioners.
In this project, we aim to develop an image segmentation model using CNN, and deploy it with PyTorch.
## Data
The use of the CVC-Clinic database, containing frames from colonoscopy videos. The dataset includes polyp frames and corresponding ground truth images in both PNG and TIFF formats.
## Tech stack
- Python 3.12.7
- **Deep Learning**: PyTorch
- **Computer Vision**: OpenCV (python-opencv)
- **Libraries**: Scikit-learn, Pandas, NumPy, Albumentations, YAML (data serialization)
## Start in the local env
* Start with installing jupyter environment and dependencies.
```
$ pip install ipykernel
$ pip install -r requirements.txt
```
* Folder structure
- .venv
- dataset
- ml_deploy
- output
## Takeaways
After 100 epochs of training,


- Polyp Segmentation Insights
- IOU Metric Understanding
- Data Augmentation Techniques
- Practical PyTorch Data Augmentation
- Medical Computer Vision Applications
- Building CNN Models
- Training CNN Models (300 epochs)