I trained a model to segment the aorta


Hi Reader,

Welcome to the PYCAD newsletter, where every week you receive doses of machine learning and computer vision techniques and tools to help you learn how to build AI solutions to empower the most vulnerable members of our society, patients.

​

I Trained a Model that Segments the Aorta

Lately I wanted to experiment with building a machine learning model that can segment parts of the human body that are not easy to identify.

Usually, I see a lot of examples online about segmenting different organs of the body such as the liver, the lungs or the heart.

But these organs typically have a wide and more or less clear structure.

I wanted to segment a part of the body that looks challenging. So I chose the aorta.

The aorta is the main artery that distributes oxygenated blood to all parts of the body.

It has a strange looking shape when visualized in 3D. I joked about this in a LinkedIn post where I compared the aorta to the worms from "Men in Black" movie 😂

To carry this experiment, I chose nnUNet tool. I have shared before how this tool is designed to make it easy to build a segmentation model for any medical imaging dataset. You will mostly need to configure some folders structure and you'll be able to run the training without much configuration from your side.

I also wanted to use a dataset that had a format that I haven't seen being used that often with nnUNet. So I opted for a dataset that had all patients volumes as well as the labels (segmentation masks) in NRRD format.

You can find this dataset inside this Google Drive folder.

Below you can see a sample output of my nnUNet model on a test case.

I am using 3D Slicer software here to visualize the segmentation output next to the patient case.

As you can see, even though the aorta shape is difficult to get, the model is still able to segment it very well.

There are 2 reasons why I was able to get such results:

  1. The dataset is actually very well refined. The people who did the segmentation definitely did a great job here. It should also be noted that this dataset is actually pretty small with a little over 50 patients cases. But since the annotations are well refined, the model can learn the right features to be able to segment this part of the human body.
  2. nnUNet is a powerful segmentation tool.

One final note about nnUNet. Although, this tool is powerful and easy to use to train a segmentation model, it can quickly become confusing because of all the available options.

Also, the tool was very well developed for training. But when it comes to inference and deployment, you'll find yourself spending a ton of time going through the documentation, open and closed issues on their github repo, as well as the actual code.

This is where PYCAD comes into the picture. We can help you accelerate the usage of this tool to actually build a model and deploy it into a development or production environment. Details in the next section.


We Can Help You with Your Next Medical Imaging Project

If your company or organization is looking to build a machine learning solution for a medical imaging problem, then feel free to reach out to us at:

​contact@pycad.co​

We can help you build a full ML solution from training to deployment with affordable rates!

You can check out some of the projects that we worked on here:

​https://pycad.co/portfolio and some of our clients case studies here.

​

X Post of the Day

​

twitter profile avatar
freeCodeCamp.org
Twitter Logo
@freeCodeCamp
7:2 PM • Nov 26, 2023
71
Retweets
353
Likes
​

That's it for this week's edition, I hope you enjoyed it!

​

Machine Learning for Medical Imaging

👉 Learn how to build AI systems for medical imaging domain by leveraging tools and techniques that I share with you! | 💡 The newsletter is read by people from: Nvidia, Baker Hughes, Harvard, NYU, Columbia University, University of Toronto and more!

Read more from Machine Learning for Medical Imaging

Hello Reader, Welcome to another edition of PYCAD newsletter where we cover interesting topics in Machine Learning and Computer Vision applied to Medical Imaging. The goal of this newsletter is to help you stay up-to-date and learn important concepts in this amazing field! I've got some cool insights for you below ↓ AI Scribes: Transforming Medical Documentation Web Application for Medical Note Generation AI-powered medical scribes are revolutionizing clinical workflows by automating...

Hello Reader, Welcome to another edition of PYCAD newsletter where we cover interesting topics in Machine Learning and Computer Vision applied to Medical Imaging. The goal of this newsletter is to help you stay up-to-date and learn important concepts in this amazing field! I've got some cool insights for you below ↓ DeepSeek: A New Player in AI for Healthcare The new open-source LLM, DeepSeek, is creating buzz for its potential to transform AI in medicine and healthcare. Designed for...

Hello Reader, Welcome to another edition of PYCAD newsletter where we cover interesting topics in Machine Learning and Computer Vision applied to Medical Imaging. The goal of this newsletter is to help you stay up-to-date and learn important concepts in this amazing field! I've got some cool insights for you below ↓ Now You Can Use Large Language Models that are HIPAA Compliant People are finding ways to use large language models in all fields. MedTech is no exception. The amount of work...