Skip to content

shayanAthif/Skin-Lesion-Classification

 
 

Repository files navigation

Skin-Lesion-Classification

Download the requirements

pip install -r requirements.txt

Datasets used in training of the models:

  • HAM10000
  • DermMel
  • Med Node
  • SD260
  • Skin Cancer ISIC
  • Download the pretrained models:

    Attention U-Net

    from huggingface_hub import snapshot_download
    
    # Define the model repo
    model_name = "Sharukesh/attention-unet"
    
    # Download the model locally
    snapshot_download(repo_id=model_name, local_dir="/content/attention-unet")

    GAN

    from huggingface_hub import snapshot_download
    
    # Define the model repo
    model_name = "Sharukesh/GAN-HAM10000-class-balancing"
    
    # Download the model locally
    snapshot_download(repo_id=model_name, local_dir="/content/GAN")

    SMOTE

    On our implementation of GAN the outputs were not well featurized, so those images could not be used in the training of the model, hence we choose to do SMOTE (Synthetic Minority Oversampling Technique).

    How SMOTE Works:

    1. Identify Minority Class: It targets the minority class in an imbalanced dataset.
    2. Select a Sample: Randomly picks a sample from the minority class.
    3. Find Nearest Neighbors: Identifies its k-nearest neighbors in the feature space (typically using Euclidean distance).
    4. Generate Synthetic Samples: Creates new synthetic data points by interpolating between the original sample and one of its nearest neighbors.
    5. Repeat: This process is repeated until the desired class balance is achieved.

    Find our implementation of smote down here

    About

    AI-powered skin lesion classifier leveraging RCCNet and J-Net on the HAM10000 dataset. A React Native app enables users to upload images for automated diagnosis, receive personalized recommendations, and book appointments with AI doctors—supporting early detection and individualized care.

    Topics

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

     
     
     

    Contributors

    Languages

    • Jupyter Notebook 93.7%
    • Python 6.2%
    • JavaScript 0.1%