Skip to content

Latest commit

 

History

History
84 lines (53 loc) · 4.86 KB

File metadata and controls

84 lines (53 loc) · 4.86 KB

Back to Projects List

Real-time visualization for transcranial magnetic stimulation (TMS)

Key Investigators

  • Loraine Franke (University of Massachusetts Boston)
  • Jax Luo (BWH & Harvard Medical School)
  • Raymond Yang (University of Massachusetts Boston)
  • Lipeng Ning (BWH & Harvard Medical School)
  • Steve Pieper (Isomics, Inc.)
  • Daniel Haehn (University of Massachusetts Boston)

Project Description

Transcranial magnetic stimulation is a nonivasive procedure used for treating depression with magnetic and electric fields to stimulate nerve cells. A TMS coil is slowly moved over the subject's head suface to target certain areas in the brain. Our project aims to develop a deep-learning powered software for real-time E-Field prediction and a visualization of TMS within 3D Slicer.

Objective

Real-time visualization of an electric field (E-field) for transcranial magnetic stimulation (TMS) on the brain surface, visualization through an AR app (over browser).

Approach and Plan

  • We created a TMS module in Slicer mapping NifTi file onto brain mesh with 3D TMS coil that can be moved by the user (done) -> TODO: create a bounding box for the Coil mesh to not turn it into brain, attach the coil to the skull/skin surface
  • We use OpenIGTLinkIF used to transfer data (E-Field from TMS) into 3D Slicer (done)
  • Next steps include connecting 3DSlicer to the web browser using our newly implemented WebSocket from https://github.com/liampaulhus/slicerWebWSS-WIP
  • Connect a mobile device via WebXR: So far, we have started implementing face tracking for the TMS module with simple JavaScript. In the future, this might need to be implemented with WebXR to retrieve depth information for AR.

Progress and Next Steps

  1. Some bug fixes of observers in the TMS Module
  2. Integration of deep learning model: Modified OpenIGTLink with pyigtl (https://github.com/lassoan/pyigtl) to send out transform message of the moving TMS coil (added nodes, enabled push on connect, modified python demon that accesses the outgoing data), in collaboration with the deep learning project Slicer TMS Deep-Learning
  3. Tested our new secure websocket connection to the browser (https://github.com/liampaulhus/slicerWebWSS-WIP) using a self-signed certificate for https.
  4. Next steps: a) Attach the coil to the skull/skin surface in Slicer and b) Modify the browser-based WebXR controller so that it can be synchronized with slicer

Illustrations

Current Visualization of the TMS Module in 3DSlicer with Coil and mapping of E-field on brain:

SlicerTMS Module with Efield mapped on brain

Coil moving and updating the electric field on the brain surface inside slicer:

Brain surface coil moving

Started WebSocket Tests: we can interact with the red, green and yellow slices with the new websocket connection:

So far, we tested some simple Javascript Face-Tracking via mobile Phone and redered the brain:

Facetracking in javascript for mobile phone

Background and References

This project is related to: ../SlicerTMS_E-field

Infos for running WebXR:

Phones need a Depth sensor to run AR/VR. A list of supported devices can be found here: https://developers.google.com/ar/devices

On an Android Phone via USB:

For iPhone:

For Slicer TMS Module (see previous project week PW 36):