profile

Machine Learning for Medical Imaging

I trained a model to segment the aorta

Published 5 months ago • 3 min read

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

by Nour Islam Mokhtari from pycad.co

👉 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

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. TotalSegmentator : Whole Body Segmentation at your Fingertips This free tool available online can do full body segmentation, it's called TotalSegmentator. I have already mentioned this tool in a previous edition of the newsletter, but in this...

9 days ago • 3 min read

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 ↓ A Medical Imaging Expert Told Me This Recently I saw a post on LinkedIn where a medical imaging expert showcased his work of segmenting the lungs and its bronchial trees. You can...

16 days ago • 2 min read

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 ↓ How we helped accelerate inference time for a client's AI product Below is a screenshot of a benchmark we did for a client of ours. The goal was to accelerate inference time. This...

22 days ago • 3 min read
Share this post