Edit this page

NA-MIC Project Weeks

Back to Projects List

Live tracked ultrasound processing with PyTorch

Key Investigators

Presenter location: In-person

Project Description

Our past code for training and deploying ultrasound segmentation in real time was based on TensorFlow. Example project: https://youtu.be/WyscpAee3vw

The goal for this project week is to provide a new open-source implementation using PyTorch and modern AI tools like MONAI and wandb. A Slicer module will also be provided to deploy trained AI on recorded or live ultrasound streams.

Objective

  1. Export annotated ultrasound+tracking data for training
  2. Example code for training
  3. Slicer module to use trained models on ultrasound data in Slicer

Approach and Plan

  1. All data processing and training code will be here: https://github.com/SlicerIGT/aigt/tree/master/UltrasoundSegmentation
  2. Slicer module will be here: https://github.com/SlicerIGT/aigt/tree/master/SlicerExtension/LiveUltrasoundAi/TorchLiveUs

Progress and Next Steps

  1. Model training and testing is implemented in this repository: https://github.com/SlicerIGT/aigt/tree/master/UltrasoundSegmentation
  2. Successfully used RunNeuralNet from DeepLearnLive to run a trained PyTorch segmentation model on live ultrasound data. OpenIGTLink data transfer is a good way to run AI models in parallel with Slicer. https://github.com/SlicerIGT/aigt/tree/master/DeepLearnLive/RunNeuralNet
  3. Need to do precise performance estimation to see the limit of frame rate we can handle from an ultrasound scanner. Also need to explore the effect of AI model size on accuracy and performance.

Illustrations

2023-06-15_09-18-01

Background and References

No response