# Melanoma Segmentation and Classification
![Comparison](https://github.com/user-attachments/assets/c12f67fe-77d2-442a-8605-73e2e357470f)
This package/repository provides a comprehensive solution for melanoma segmentation and classification using deep learning techniques. The core of this project involves training and evaluating convolutional neural networks (CNNs) for accurately identifying and segmenting skin lesions in dermatoscopic images.
### Features:
- **Segmentation Models**: Includes implementations of various U-Net based models like R2U-Net and TransUNet with enhancements such as attention mechanisms and transformer blocks to achieve accurate segmentation of skin lesions.
- **Dataset Preparation**: Automates the splitting of large dermatoscopic datasets into training, validation, and testing sets using customizable transformations for data augmentation, ensuring robust training.
- **Custom Metrics and Evaluation**: Implements metrics such as Dice coefficient, Intersection over Union (IoU), accuracy, and recall to measure the model’s performance in segmentation tasks.
- **Visualization Tools**: Offers functionality to visualize images alongside ground truth and predicted segmentation masks, making it easier to analyze model performance.
- **Comprehensive Data Processing Pipeline**: Integrates data loading, preprocessing, model training, and evaluation in a unified pipeline using PyTorch, facilitating reproducibility and scalability.
- **Trained_models**: Trained models that can be used to compare metrics, there are multiple of them accesible as you can see inside `evaluate.py`
### Dependencies:
The project uses various dependencies such as `PyTorch`, `torchvision`, and `albumentations` for image augmentation and preprocessing, as well as pre-trained models for enhanced feature extraction. The package also leverages `numpy`, `pandas`, and `scikit-learn` for numerical operations and data handling.
### Use Case:
This project is intended for researchers and developers aiming to build or extend segmentation models for medical image analysis, specifically for tasks related to skin lesion identification and segmentation. It is well-suited for experimentation with dermatoscopic datasets and contributes to research efforts in melanoma detection.
### Package Link:
[melanoma-segmentation Package](https://test.pypi.org/project/melanoma-segmentation/)
### References:
- **Visualization**: Based on code by *an-eve* from the ISIC 2016 Lesion Segmentation Challenge [GitHub link](https://github.com/an-eve/ISIC-2016-lesion-segmentation-challenge/tree/main).
- **TransUNet Design**: Inspired by *TESL-Net: A Transformer-Enhanced CNN for Accurate Skin Lesion Segmentation* by Shahzaib Iqbal et al. (2024). DOI: [arXiv link](https://arxiv.org/abs/2408.09687).
- **Data Augmentation**: Inspired by the top-ranked solution of the SIIM-ISIC Melanoma Classification Challenge [GitHub link](https://github.com/haqishen/SIIM-ISIC-Melanoma-Classification-1st-Place-Solution).
Raw data
{
"_id": null,
"home_page": null,
"name": "melanoma-segmentation",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "melanoma segmentation classification",
"author": "Santiago Mart\u00ednez Novoa",
"author_email": "s.martinezn@uniandes.edu.co",
"download_url": "https://files.pythonhosted.org/packages/06/10/8c0a718905f3177af9f8da019a8f101ed49ab2092c9bb9ef0e6878baa3c3/melanoma-segmentation-1.4.0.tar.gz",
"platform": null,
"description": "# Melanoma Segmentation and Classification\r\n![Comparison](https://github.com/user-attachments/assets/c12f67fe-77d2-442a-8605-73e2e357470f)\r\n\r\nThis package/repository provides a comprehensive solution for melanoma segmentation and classification using deep learning techniques. The core of this project involves training and evaluating convolutional neural networks (CNNs) for accurately identifying and segmenting skin lesions in dermatoscopic images.\r\n\r\n### Features:\r\n- **Segmentation Models**: Includes implementations of various U-Net based models like R2U-Net and TransUNet with enhancements such as attention mechanisms and transformer blocks to achieve accurate segmentation of skin lesions.\r\n- **Dataset Preparation**: Automates the splitting of large dermatoscopic datasets into training, validation, and testing sets using customizable transformations for data augmentation, ensuring robust training.\r\n- **Custom Metrics and Evaluation**: Implements metrics such as Dice coefficient, Intersection over Union (IoU), accuracy, and recall to measure the model\u00e2\u20ac\u2122s performance in segmentation tasks.\r\n- **Visualization Tools**: Offers functionality to visualize images alongside ground truth and predicted segmentation masks, making it easier to analyze model performance.\r\n- **Comprehensive Data Processing Pipeline**: Integrates data loading, preprocessing, model training, and evaluation in a unified pipeline using PyTorch, facilitating reproducibility and scalability.\r\n- **Trained_models**: Trained models that can be used to compare metrics, there are multiple of them accesible as you can see inside `evaluate.py`\r\n### Dependencies:\r\nThe project uses various dependencies such as `PyTorch`, `torchvision`, and `albumentations` for image augmentation and preprocessing, as well as pre-trained models for enhanced feature extraction. The package also leverages `numpy`, `pandas`, and `scikit-learn` for numerical operations and data handling.\r\n\r\n### Use Case:\r\nThis project is intended for researchers and developers aiming to build or extend segmentation models for medical image analysis, specifically for tasks related to skin lesion identification and segmentation. It is well-suited for experimentation with dermatoscopic datasets and contributes to research efforts in melanoma detection.\r\n\r\n### Package Link:\r\n[melanoma-segmentation Package](https://test.pypi.org/project/melanoma-segmentation/)\r\n\r\n### References:\r\n- **Visualization**: Based on code by *an-eve* from the ISIC 2016 Lesion Segmentation Challenge [GitHub link](https://github.com/an-eve/ISIC-2016-lesion-segmentation-challenge/tree/main).\r\n- **TransUNet Design**: Inspired by *TESL-Net: A Transformer-Enhanced CNN for Accurate Skin Lesion Segmentation* by Shahzaib Iqbal et al. (2024). DOI: [arXiv link](https://arxiv.org/abs/2408.09687).\r\n- **Data Augmentation**: Inspired by the top-ranked solution of the SIIM-ISIC Melanoma Classification Challenge [GitHub link](https://github.com/haqishen/SIIM-ISIC-Melanoma-Classification-1st-Place-Solution).\r\n\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Melanoma segmentation and classification",
"version": "1.4.0",
"project_urls": null,
"split_keywords": [
"melanoma",
"segmentation",
"classification"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b7465666f51534e4899a28a3fc805d7f80408aad31c0fecff1253992c51d5a29",
"md5": "b349f23de90a7f86f0bd6f9e71533947",
"sha256": "fa0d491a3a4300d8303c779e134183d6bbe48680e7eff677f3ad9abefb7e946a"
},
"downloads": -1,
"filename": "melanoma_segmentation-1.4.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b349f23de90a7f86f0bd6f9e71533947",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 25380,
"upload_time": "2024-12-09T18:04:59",
"upload_time_iso_8601": "2024-12-09T18:04:59.223339Z",
"url": "https://files.pythonhosted.org/packages/b7/46/5666f51534e4899a28a3fc805d7f80408aad31c0fecff1253992c51d5a29/melanoma_segmentation-1.4.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "06108c0a718905f3177af9f8da019a8f101ed49ab2092c9bb9ef0e6878baa3c3",
"md5": "1557b8fc4049ceffaa0b40c00eb25f98",
"sha256": "ea85a99805044e3b2246f9bba448d58aee5808a51b25e3d7f4d688b74973f9c0"
},
"downloads": -1,
"filename": "melanoma-segmentation-1.4.0.tar.gz",
"has_sig": false,
"md5_digest": "1557b8fc4049ceffaa0b40c00eb25f98",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 18998,
"upload_time": "2024-12-09T18:05:01",
"upload_time_iso_8601": "2024-12-09T18:05:01.040051Z",
"url": "https://files.pythonhosted.org/packages/06/10/8c0a718905f3177af9f8da019a8f101ed49ab2092c9bb9ef0e6878baa3c3/melanoma-segmentation-1.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-09 18:05:01",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "melanoma-segmentation"
}