AaronDominick
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# Segmentation for Biomarker Extraction ###### tags: `CVC Lab` `Aaron - 2023` summaries by Aaron Dominick ## Hack Overview Covers the proposal for level-set segmentation for DaTSCAN/MRI. It will also cover similar techniques currently used within literature. ### Relevant Hacks Aaron Dominick PHD Timeline: https://hackmd.io/Xawu3zWwS8-Zw5f6ivsfMg #### Longitudinal Data: 1. Current Longitudinal Methods for Parkinsons's (https://hackmd.io/HFy0yiXlQWKVeRueCrrckQ) 2. Trajectory Net (https://hackmd.io/-6FLIziJQ7qeAIpsXj193A) 3. Longitudinal VAE (https://hackmd.io/GlmwNqwBQoa0aE8HA8N4Dw) 4. ODE2VAE (https://hackmd.io/e5phRKlqT2CW_13FCqWW2Q) 5. Gaussian Process Prior VAE (https://hackmd.io/JuFhjzz0TaG60l-i9xBecw) 6. iLQR-VAE (https://hackmd.io/QySMkFamSgqvH8UgU7QBHQ) 7. Evaluating MRI Data on Longitudinal Methods (https://hackmd.io/GY9ONkAGTe2icDwJe-yHrw?both) 8. Evaluating DaTscan Data on Longitudinal Methods (https://hackmd.io/jc3fHQWvSh2A8KOvK8lKRQ) 9. Level-Set Segmentation #### Parkinson's Data and Previous Methods: 7. Actionable Intelligence: Understanding and Treating Parkinson’s Disease (PD): https://hackmd.io/@GeoZhai/B1yB7iz45 8. PPMI dataset exploration: (https://hackmd.io/BBvuXZ8ZTn6VqcmFYCk4_w?both) 9. Patient X's Data:(https://hackmd.io/rTBOG_rTRAquOXqGC_JWaw) 10. DaTscan Data: (https://hackmd.io/rs2D-YBjR3WG_xCnCjC6EA) 11. Parkinson's Biomarkers Overview (https://hackmd.io/yx6iwA0wSu2ephw07Q56SA) 12. Parkinson's Insights and Existing ML Methods for Diagnosis https://hackmd.io/G3UvWxbuSXCHkZ0c9p_lew?both # Previous Work (Chan-Vese Algorithm) A level set is a set of points in the domain of a function where the function is constant. Starting with a domain $\Omega$, the curve or boundary of our desired segmented region can be described as zero level set of a smooth function $\phi$. This boundary is $\Gamma=\{\phi(x)=0\}$ and separates our domain into two regions, $\Omega_{in} = \{\phi(x)>0\}$ and $\Omega_{out} = \{\phi(x)<0\}$ where x is a point in the domain $\Omega$. Letting I(x) being an image defined on the domain, the optimal separation is the one that follows the following optimization problem: $$\min \text{E}(\phi,c_1,c_2) = |\Gamma| + \int_{\Omega_{in}} |I(x)-c_1|^2dx + \int_{\Omega_{out}} |I(x)-c_2|^2dx$$ Where $|\Gamma|$ is the length of the segmenting curve, $c_1$ and $c_2$ are the average intensities inside and outside the segmenting countour: $$c_1 = \frac{1}{|\Omega_{in}|}\int_{\Omega_{in}} I(x)dx, \space \space c_2 = \frac{1}{|\Omega_{out}|}\int_{\Omega_{out}} I(x)dx$$ ![](https://i.imgur.com/ShKVedf.png) **Figure** Demonstration of level set segmentation. Changing the value of the zero set can transform the region. The evolution of the level set is governed by the following PDE: $$\frac{\partial \phi}{\partial t} + V|\nabla \phi| = 0$$ where V is the velocity field for image segmentation # Segmentation using other techniques. ## Data and Data editing I found a training/testing set of 101 T1 weighted MRI + brain segmentations of ~50 regions assembled by mindboggle.(https://mindboggle.info/data.html). The goal of this section was to train a model to take in T1 weighted MRI and output a segmented image for the Caudate/Putamen regions. Both the training data and the example PPMI data undergo the same preprocessing done by a program known as Freesurfer. Freesurfer is a non-machine learing segmentation program. One main advantage of Freesurfer is the use of a probabilistic atlas that uses location to boost classification. (https://surfer.nmr.mgh.harvard.edu/ftp/articles/fischl02-labeling.pdf) The following steps are done for freesurfer segmentation and some of the steps are done for MRI preprocessing for our models. ![](https://i.imgur.com/AEu4dm6.png) ## PPMI Data Preparation There is no universally accepted procedure for the preprocessing and standardization of MRI images for machine learning. Some work has been done to determine the most optimal set of steps [https://www.nature.com/articles/s41598-020-69298-z]. Following that advise there are two steps which will be applied to our images before use in the Segmentation algorithm. The first step is Z-score normalization for standardization of images across different machines. The second step is absolute discritization for clear grouping of pixels values. This will reduce the effect of noise on an image as well. Random noise will be applied to the training set to build a more robust model. ## Segformer Segformer is a semantic segmentation framework which unifies transformers with lightweight multilayer perceptron (MLP) decoders. ![](https://i.imgur.com/Es4g3cK.png) **Figure** The Segformer architecture is comprised of an encoder and decoder. ### SEGFORMER RESULTS ON MINDBOGGLE ![](https://i.imgur.com/lPB5hYD.png) **Figure** Segformer after on testing set. ## UNETR UNETR consists of a transformer encoder that directly utilizes 3D patches and is connected to a CNN-based decoder via skip connection. https://github.com/Project-MONAI/research-contributions/tree/main/UNETR/BTCV ![](https://i.imgur.com/mK3Akan.png) **Figure** UNETR model ### UNETR RESULTS ON MINDBOGGLE ![](https://i.imgur.com/CVZ0mvK.png) **Figure** UNETR after on training set. ![](https://i.imgur.com/y6ybGdO.png) **Figure** UNETR after on validation set. ![](https://i.imgur.com/qt8kPaB.png) ### RESULTS Segformer preforms much better than UNETR when it comes to the segmentation of specifically the putamen and caudate regions of the brain. ### RESULTS on PPMI Data ![](https://hackmd.io/_uploads/r1wNtN0D2.png) **Figure** Results of Segformer from patient 4005 The results from Segfomrer on data from PPMI has been promising. Some errors still occur, however a rough map of the Caudate and Putamen region can be constructed in ~5 minutes compared to the hours it takes on a non-machine learning program such as Freesurfer. ### Analysis of Volumes ### Final Results ![](https://hackmd.io/_uploads/SywneU25n.png) ![](https://hackmd.io/_uploads/BJP3gU253.png) ![](https://hackmd.io/_uploads/HJw2gI3c2.png) ![](https://hackmd.io/_uploads/HJPnxU29n.png) ### References [1]https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=902291 [2]https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5885990/ [3]https://cs.uwaterloo.ca/research/tr/2008/CS-2008-12.pdf [4]file:///oden/adominick/Downloads/IC.3.ICSIVP2012-MedicalImageSegmentationusingLevelsetMethodwithoutreinitialization.pdf [5]https://arxiv.org/pdf/1107.2782.pdf

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully