LesNet is an open-source project for deep learning-based skin cancer detection. It aims to create a reliable tool and foster community involvement in critical AI problems. The repository includes code for data preprocessing, model building, and performance evaluation. Contribute and shape the future of skin cancer detection.
Please note that the application enters a dormant state when not in use to conserve resources. This means it might take a moment to warm up when you first access the site. Any initial slow down will ease after a moment. Thank you for your patience.
These instructions will help you set up the project on your local machine for development and testing purposes. See deployment for notes on deploying the project on a live system.
To quickly set up LesNet for development, follow these steps (Requires Python >=3.9<=3.11):
Upgrade Your Packaging Tools:
Ensure your pip
and setuptools
are up-to-date by running:
python -m pip install --upgrade pip setuptools
Install LesNet: In the project directory, install the project in editable mode with:
python -m pip install -e .[testing]
Run the Application: Start the application with auto-reloading using:
pserve development.ini --reload
To run the tests, run the following command:
python -m pytest
To run the linter, run the following command:
python -m ruff check
To download and prepare a specific model for use, you can use the download_model.py
script located in the commands
directory. This script accepts the model identifier as an argument.
Run the following command from the root of the project directory:
python .\commands\download_model.py -m <model_id>
Here is a list of all the available models you can download using the script:
M-0003: Simple Testing (Legacy).
M-0015: Best Model (Legacy).
M-0015s: Fastest Model (Legacy)
M-0310: Best Model.
M-0310s: Efficient Model. (Coming Soon)
Example:
python .\commands\download_model.py -m M-0310s
The DataScraper tool within this application is designed to download and preprocess skin lesion images. The M-3.1 dataset is 837,628 images.
The dataset used for training the model is sourced from the International Skin Imaging Collaboration (ISIC) Archive. The ISIC Archive is a large-scale resource for skin image analysis, providing open access to a wide variety of images for the development and evaluation of automated diagnostic systems.
For more information about the ISIC Archive and to access the data, visit ISIC Archive.
The images are organized into three folders:
data/train
: Contains all images, which are used for training the model.data/train/melanoma
The SVModel
model employs a sophisticated deep learning architecture based on InvceptionV3 but tailored for skin lesion classification.
To learn more, Visit the model section of the wiki
Metric | Target Range | Progress |
---|---|---|
Loss | Close to 0 | |
Accuracy | 85% - 95% | |
Precision | 80% - 90% | |
Recall | 85% - 95% |
contributions to LesNet are welcome! For guidelines on contributing, please read CONTRIBUTING.md. By participating in this project, you agree to abide by its terms.
LesNet is released under the Mozilla Public License 2.0 (MPL 2.0). For more details, see the LICENSE file.
Gratitude to the International Skin Imaging Collaboration (ISIC) for providing access to their extensive archive of skin lesion images, which has been instrumental in the development and refinement of this model.
For academic and research use, please cite this work as follows:
"LesNet: A Deep Learning-Based Skin Cancer Detection Tool, available at: https://github.com/Thomasbehan/LesNet", 2024.
LesNet is not intended for clinical diagnosis or medical use. It is a research tool aimed at fostering developments in the field of automated skin lesion analysis. Always consult a qualified healthcare provider for medical advice and diagnosis.