Skip to content

aguadotzn/SaturdaysAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SaturdaysAI (Asturias) - ML project (Machine Learning on a Brain Metastases Study)

Content

Project

SaturdaysAI project
│      
└───📁 blog // Posts (in English and Spanish)
│   │   SaturdaysAI-Asturias-Group2-BlogEN.pdf
│   │   SaturdaysAI-Asturias-Group2-BlogES.pdf
└───📁 code // Notebook with all the code
│   │   SaturdaysAI_Asturias_Group2_Objective1.ipynb
│   │   SaturdaysAI_Asturias_Group2_Objective2.ipynb
│   │   SaturdaysAI-Asturias-Group2-FullCode.ipynb
└───📁 data // Datasets
│   │   OpenBTAI_METS_ClinicalData_Nov2023
│   │   OpenBTAI_MORPHOLOGICAL_MEASUREMENTS
│   │   OpenBTAI_RADIOMICS
└───📁 img // Only for README purposes
└───📁 presentation // PPT
│   │   SaturdaysAI-Asturias-Group2-Presentation.ppt
│   │   SaturdaysAI-Asturias-Group2-Presentation.pdf
LICENSE
README

Code

If you want to have a look at the code visit the /code folder. It is actually separated into two different files: objective 1 (SaturdaysAI_Asturias_Group2_Objective1.ipynb) and objective 2 (SaturdaysAI_Asturias_Group2_Objective2.ipynb). We also upload the full code (SaturdaysAI_Asturias_Group2_FullCode.ipynb). We recommend you to open it via colab or locally (with Anaconda).

⚠️ We highly recommend you to open directly the code in colab. Direct access here.

Team

Introduction

Cancer has life changing implications and brain metastases are currently one of the hardest to treat. But there is hope, early detection and effective treatment go a long way to ensure patients have the best odds against the disease.

Brain metastases are cancer cells that spread to the brain from tumors in other organs in the body, which happens in 10% – 35% of adult cancer patients. Estimating prognosis in brain metastasis is clinically relevant, as it allows clinicians to recommend treatments that balance durability of intracranial tumor control with quality of life and side effects of treatment. In this project we try to make an experiment with machine learning that operates with the MOLAB data.

Objectives

One of our goals was to accurately predict how much time is left to savor life. The second goal is just as important, determining when a person is likely to relapse. We’ll run you through our dataset, how we explored the data, decided on an appropriate Machine Learning (ML) approach and our results.

We divide our work into:

  • Predicting Survival time - An estimate of the number of days (and possible cause) a patient has left.
  • Predicting patient relapse - Obtain predictive variables to estimate the recurrence.
Objectives Description
1 Predict survival time in days
2 a Predict lesion relapse (for all patients)
2 b Predict lesion relapse (only patients who had radiosurgery)

Data

We worked on the MOLAB Brain Metastasis Dataset, a structured and anonymized dataset covering segmented Magnetic Resonance Imaging (MRI) scans, clinical data and morphological measurements of 75 patients.

There are 3 groups of files with structured and unstructured data. You have all the data inside /data folder

  • Clinical data: an excel spreadsheet with patient data and treatment history.
  • Morphological measures: an excel file with tumor dimensions and MRI info.
  • The MRI scans are in formats such as nifti and DICOM.

You can find the main dataset here: MOLAB Brain Metastasis Dataset.

Data analysis

We have invested most of our time in this phase. A whole lot of plots, graphs and code were needed to understand the relationship between our variables and know what we could predict with the most certainty.

Conclusions

  1. Our model excelled at predicting survival days, but more data can improve results. Relapse predictions were less accurate due to higher variance, especially in multiclass classifications.
  2. The performance varied by task, highlighting the need for testing multiple models to compare outcomes.
  3. Despite data limitations, the results are promising, with a 75% accuracy in predicting survival time for 75 patients, though better data and advanced methods are needed for relapse predictions.

Technologies

Acknowledgements

Thanks to all the SaturdaysAI team for pushing us during these 16 weeks (from February 2024 to June 2024). Thanks also to MOLAB (Mathematical Oncology Laboratory) for the fantastic work they are doing.

We achieve our goal with teamwork and a lot of help from our coordinator, instructors, mentors, the organizers of SaturdaysAI Asturias, our hosts, and, again, the wonderful people at MOLAB.

License

This project is licensed under the GNU License - see the LICENSE file for details. Copyright (c) 2024.

About

Brain metastases. An AI-math approach.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors