Mentoring at KaggleX: From Melanoma to a PhD
In 2021 I volunteered as an advisor in Kaggle's BIPOC Grant Program, now part of KaggleX. The programme paired early-career data scientists who identify as Black, Indigenous or People of Colour with an experienced mentor, and the advisor's job was to guide a grantee through an ML portfolio project. My mentee was a researcher with a strong interest in cancer studies who wanted to do a PhD. Three years later she started one, and that same year she was mentoring in KaggleX herself. I have left out her name; the story is hers to tell, and this post keeps to the parts I can describe from my side.
Much of what we worked with came from a competition I had entered the year before, SIIM-ISIC Melanoma Classification, where my team won a silver medal. This post covers the programme, that competition, how the mentoring worked, what happened next, and what melanoma detection teaches about data science for social good. Everything here comes from public notebooks and repositories, the programme's grant page and my mentee's own published work.
In short
- The 2021 grant gave each grantee USD 1,000, extra Kaggle and Google Cloud resources and an assigned mentor for three to four months, with a published portfolio project as the goal.
- The work drew on SIIM-ISIC Melanoma Classification (2020), where my team of four placed 137th of 3,308 for a silver medal, and on the notebooks I published for it.
- My mentee built and presented a melanoma image classifier, kept working on the problem afterwards, started a PhD in health research in 2024 and became a KaggleX mentor herself.
- Melanoma shows both sides of health AI: early detection saves lives, but dermatology models have been shown to perform worse on dark skin tones.
The programme
Kaggle set up the BIPOC Grant to support data scientists from groups historically underrepresented in the field. Applicants self-identified as Black, Indigenous and/or a Person of Colour, could be at any experience level, from aspiring to practising, and needed basic machine learning knowledge, for example from Kaggle Learn's Python and Intro to Machine Learning courses. Selection took need into account.
According to the grant page, each grantee received:
- a USD 1,000 education and career development grant;
- an assigned mentor, an experienced data scientist;
- membership of a community group for grantees;
- extra Kaggle Notebook quota and Google Cloud Platform credit;
- educational guidance, resources and community events.
The first class was selected on a rolling basis through January 2021 and had three to four months to use the package. Grantees were expected to build a portfolio, publish their outputs and give Kaggle feedback, and could showcase their projects on Kaggle's YouTube or blog channels. Advisors were volunteers; the KaggleX Advisor badge records the role.
The material: SIIM-ISIC Melanoma Classification
Melanoma is the least common skin cancer but, as the competition description put it, the cause of 75 per cent of skin cancer deaths. The same description cited American Cancer Society estimates of over 100,000 new melanoma cases in 2020 and almost 7,000 deaths. Caught early, most melanomas can be cured with minor surgery.
The Society for Imaging Informatics in Medicine (SIIM) and the International Skin Imaging Collaboration (ISIC) ran the competition on Kaggle in 2020. The task was to predict, for each dermoscopic image of a skin lesion, the probability that it is malignant, scored by the area under the ROC curve (AUC). The ISIC 2020 dataset behind it holds 33,126 images from 2,056 patients, of which 584 (1.8 per cent) are histopathologically confirmed melanomas, with an average of 16 lesions per patient (Rotemberg et al. 2021).
Two details made it a good case to learn from:
- Patient context. Dermatologists look for the "ugly duckling", the mole that differs from a patient's other moles. Each image carries a patient identifier, so models could compare lesions within a patient. The organisers offered separate prizes for the best models with and without patient-level context.
- Real medical data formats. Images came as DICOM, the standard medical imaging format with embedded metadata, and also as JPEG and as TFRecords resized to 1024 by 1024.
Our silver medal
I was on a team of four with Rohit Agarwal, Vladimir (vladimirsydor) and Ashish Gupta. We placed 137th of 3,308 teams, a silver medal. The team's solution notebook blends 14 submissions built with pseudo-labelling (reusing predictions on test images as extra training labels), all from Rohit, Vladimir and Ashish. It rank-averages two groups of seven, then combines the groups with weights 0.55 and 0.45. It scored 0.9445 AUC on the private leaderboard.
During the competition I published notebooks that later became the teaching material. These four are public on Kaggle:
- EDA with DICOM: exploring the images and the metadata inside DICOM files.
- EfficientNet in Keras: TFRecords, k-fold validation, augmentation and a choice of EfficientNet size.
- ResNet50 in Keras: training on the original images with augmentation. With 187 upvotes, it is my most-voted notebook from the competition.
- Public blender with rank data: blending public submissions by rank (178 upvotes).
How the mentoring worked
At the start she was looking for a PhD position in biomedical engineering or bioinformatics, with interests in data science for cancer prediction, image analysis and disease prognosis. Her project repository shows the range of the work:
- Foundations. Kaggle Learn exercises on neurons, deep networks, stochastic gradient descent, overfitting and random forests.
- Small, finished projects. Heart disease prediction, Parkinson's disease detection, a decision tree regression and an analysis of the melanoma metadata as a table.
- Handling image data at scale. Analysing the ISIC images with Dask, also written up as a blog post.
- The portfolio project. A convolutional neural network (CNN) classifying skin lesion images, then the same model trained with augmentation.
For the image work she used a nine-class ISIC image set from Kaggle, a smaller multi-class problem, rather than the competition's binary task. Notebooks were the main working surface. I wrote a shared example notebook on the same image set, showing transfer learning with an ImageNet ResNet50, class weights for the imbalance and augmentation. Her project notebook built a CNN from scratch, found that it overfitted, and added augmentation. She also made her own copy of my DICOM exploration notebook.
Her final presentation thanked her mentor for help with code cleaning and inspection, which is a fair summary of what the mentoring was in practice. Its conclusion is her own and worth repeating to anyone starting out: a model that neither overfits nor underfits is better than a high-accuracy model with problems. She also noted that a deeper network such as EfficientNet could improve the result. Among her highlights of the programme were a wider horizon in image analysis, a larger data science network and the grant money.
What happened after
The programme ended; the work did not. She kept working on melanoma models into 2022 and published a melanoma classifier with a VGG16 backbone. She also founded a research group on AI for cancer research.
In 2024 she started a PhD in health research at a university in Australia, working on clinical decision support for people with chronic disease: tools, co-designed with clinicians, that help them make safe treatment decisions. The same year she became a data science mentor herself, in a later KaggleX cohort, guiding her own mentees through an LLM project.
None of that is the programme's doing, or mine. It is hers. What a grant and a mentor can do is shorten the distance between wanting to work on a problem and having a public body of work that shows you can.
Data science for social good, with the caveats
Melanoma detection is an easy problem to care about and a hard one to do responsibly.
- Imbalance. With 1.8 per cent melanomas, a model that says "benign" every time is 98 per cent accurate and useless. AUC, class weights and careful validation matter more than headline accuracy.
- Who is in the data. Most dermatology AI models have not been assessed on images of diverse skin tones. Daneshjou et al. (2022) built a curated set with diverse skin tones and found that state-of-the-art dermatology models perform substantially worse on dark skin tones and uncommon diseases. Dermatologists who label such data did worse on those images too, and fine-tuning on diverse images closed the gap between light and dark skin.
- A competition is not a clinic. A leaderboard AUC on one dataset says little about performance in another population, with other cameras, or on how a clinician would use the output.
- Licences. The ISIC 2020 data is CC BY-NC 4.0: free for research and learning, not for commercial use without other permission.
Programmes that widen who builds health AI are one way to keep asking who is missing from the training set.
Notes for other mentors
- Start from a real dataset with public baselines. A finished competition gives a clear target, a known metric and plenty of public notebooks to learn from and compare against.
- Share working code, then step back. A working example on similar data sat alongside the mentee's own notebook rather than replacing it.
- Make review the main channel. In the mentee's own summary, the help was code cleaning and inspection.
- Finish small pieces. Several small projects, each published, sat alongside the main one.
- Keep it public. Everything went into public notebooks, a repository and a presentation, which is what a portfolio project is for.
Limits of this post
- It is written from public notebooks, repositories, the programme's grant page and public profiles. Details of individual sessions are not recorded there and are not reconstructed here.
- The mentee is not named, and her later path is described only in general terms, from her own public profiles. Her achievements are hers; the post does not claim the programme caused them.
- The melanoma numbers are from the competition and the dataset paper; no model was re-run for this post.
Sources
- Kaggle BIPOC Grant Application (program page)
- KaggleX Advisor badge
- Kaggle: SIIM-ISIC Melanoma Classification (2020)
- Rotemberg et al.: A patient-centric dataset of images and metadata for identifying melanomas using clinical context (Scientific Data 8, 34, 2021)
- The ISIC 2020 Challenge Dataset (c) ISDIS 2020, CC BY-NC 4.0
- Team solution notebook: Silver Medal Solution, private LB 0.9445
- Daneshjou et al.: Disparities in dermatology AI performance on a diverse, curated clinical image set (Science Advances, 2022)