profile

Machine Learning for Medical Imaging

Need for speed in medical imaging

Published 22 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 ↓

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 client has 4 different models taking in CBCT scans as input. We were able to decrease the time shown in red on the left (synch) to what you're seeing on the right (asynch). Here's how.

As most of you already know by now, we run an AI development agency focused solely on medical imaging.

We've been building models for our clients to solve technically challenging problems in medical imaging field.

One thing that is challenging when building such models is inference time. It's never real-time. And I don't think it will be real time any time soon!

This is due to the complexity of the problem.

Let me explain.

Most of the models we build for our clients take in 3 dimensional arrays as inputs. These arrays are the pixels representation found in DICOM, NIFTI or NRRD files.

So think about it for a second.

How complex would a model be if it needs to handle this type of data?

The answer is, very.

This means that not only the data is complex, but the model itself is complex.

One ML model can take several minutes to finish processing one input!

For this specific client, we deployed all of their models through containerized APIs.

Now how did we accelerate the inference time of all models?

We ran them asynchronously.

Since the models are being run as separate REST APIs, we used asyncio to run these APIs in parallel.

Asyncio is a python library that allows you to run asynchronous processes. This can squeeze so much performance, especially when you have constraints like one server running all the models. Which was the case for this specific client.

Running these models asynchronously was possible in this specific use case because the models didn't depend on each other. If they did depend on each other, then it would've been a different story.

There are several other techniques that we can apply to accelerate the process even further. But we're not going to get into that in this post.

But here's what you should take from all of this.

Building ML models is just the start. There is a ton of engineering needed to create a product around these ML models. Keep this in mind next time you work on an AI project.

X Post of the Day

Cloud providers are pushing many features for medical imaging! It's a sign that the field is growing at a very fast pace!


Share with friends, get 30 carefully chosen colab notebooks for Medical AI!

Have friends who'd love our newsletter too?

Give them your unique referral link (below) and get access to 30 colab notebooks for medical AI that we handpicked them just for you!

[RH_REFLINK GOES HERE]

PS: You have referred [RH_TOTREF GOES HERE]/1 people so far

⚡️ by SparkLoop

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.


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 ↓ Start your AI journey HERE! A lot of people contact me to ask me how they should start their learning journey for AI in Medical Imaging. Here's a short answer.AI for medical...

about 1 month ago • 2 min read
Share this post