Giter Club home page Giter Club logo

qc's Introduction

Qoala-T

A supervised-learning tool for quality control of FreeSurfer segmented MRI data

Version License

Version 1.2 > prediction model was updated January 14 2019; Github pages updated December 23 2020
Qoala-T is developed and created by Lara Wierenga, PhD and modified by Eduard Klapwijk, PhD in the Brain and development research center.

About

Qoala-T is a supervised learning tool that asseses accuracy of manual quality control of T1 imaging scans and their automated neuroanatomical labeling processed in FreeSurfer. It is particularly intended to use in developmental datasets. This package contains data and R code as described in Klapwijk et al., (2019) see https://doi.org/10.1016/j.neuroimage.2019.01.014. The protocol of our in house developed manual QC procedure can be found here.

We have also developed an app using R Shiny by which the Qoala-T model can be run without having R installed, see the Qoala-T app (source code to run locally can be found here).

Running Qoala-T

  • To be able to run the Qoala-T model, T1 MRI images should be processed in FreeSurfer V6.0.
  • Use the following script to extract the necessary information needed in order to perform Qoala-T: Stats2Table.R

Note: the Stats2Table.R script replaces extraction of necessary txt files using the fswiki script or stats2table_bash_qoala_t.sh, which had to be merged using this R script.

A. Predicting scan Qoala-T score by using Braintime model

  • With this R script Qoala-T scores for a dataset are estimated using a supervised- learning model. This model is based on 784 T1-weighted imaging scans of subjects aged between 8 and 25 years old (53% females). The manual quality assessment is described in the Qoala-T manual Manual quality control procedure for structural T1 scans, also available in the supplemental material of Klapwijk et al. (2019).

  • To run the model-based Qoala-T option open Qoala_T_A_model_based_github.R and follow the instructions. Alternatively you can run this option without having R installed, see the Qoala-T app (source code here).

  • An example output table (left) and output graph (right) showing the Qoala-T score of each scan are displayed below. The figure shows the number of included and excluded predictions. The grey area represents the scans that are recommended for manual quality assesment.

Run Qoala-T in a Jupyter notebook:

  • NEW: Using this Qoala-T Jupyter Notebook is the easiest way to get from your directory with FreeSurfer-processed data to Qoala-T predictions based on the BrainTime model. Only prerequisite is you can run Jupyter Notebooks in R, for example by installing Anaconda and then follow these instructions.

B. Predicting scan Qoala-T score by rating a subset of your data

  • With this R script an in-house developed manual QC protocol can be applied on a subset of the dataset (e.g. 10%, the larger the set, the more reliable the results).
  • To run the subset-based Qoala-T option open Qoala_T_B_subset_based_github.R and follow the instructions.

    A flowchart of these processes can be observed in A and B below.
    FlowChart

Run Qoala-T subset based in a Jupyter notebook:

  • NEW: Using this Qoala-T Jupyter Notebook - subset-based is the easiest way to get from your directory with FreeSurfer-processed data to Qoala-T predictions onde you have manually rated a subset of your data. Only prerequisite is you can run Jupyter Notebooks in R, for example by installing Anaconda and then follow these instructions.

Using Qoala-T with longitudinal data

  • When using Qoala-T within the longitudinal FreeSurfer stream, the QC predictions should be run within the first step of the processing pipeline (Step 1. the cross-sectional processing of the timepoints). It will not work with the output from the longitudinal stream, since the longitudinal processing does not provide the number of surface holes, which is needed for prediction.
  • When running Qoala-T right after cross-sectional processing, bad quality scans/segmentations can be removed before running step 2 where the template from all time points is created. In this way the template will not be affected by a poor quality timepoint.

Predictive accuracies in new datasets

In order to continuously evaluate the performance of the Qoala-T tool, we will report predictive accuracies for different datasets on this page. We invite researchers who performed both manual QC and used Qoala-T to share their performance metrics and some basic information about their sample. This can be done by creating a pull request for this Github page or by e-mailing to [email protected]. The table below reports predictive accuracies in new datasets when using the BrainTime model (i.e., option A that can be run using the Shiny app).

General information Qoala-T predictions
Sample name or lab name Institute Author name(s) Group characteristics (e.g., developmental, patient group, elderly) Total N Age range (years) Field strength T1 sequence type (e.g., MPRAGE, T13D), field of view, dimensions of voxels doi Qoala-T version used (current = v1.2) Accuracy Specificity Sensitivity Manual QC protocol used (e.g., Qoala-T protocol, in-house) Manual QC distribution (i.e., N per quality category)
BESD Leiden University Moji Aghajani, Eduard Klapwijk et al. Adolescents with conduct disorder, autism spectrum disorder, and typically developing 112 15-19 3T T1 3D, FOV 224x177x168, voxel size 0.875 x 0.875 x 1.2 mm https://doi.org/10.1111/jcpp.12498; https://doi.org/10.1016/j.biopsych.2016.05.017 v1.2 0.893 0.978 0.524 Qoala-T protocol excellent=19, good=51, doubtful=21, failed=21
ABIDE (subset) NITRC Di Martino et al. autism spectrum disorders, typically developing controls 760 6-39 3T site-specific, see http://fcon_1000.projects.nitrc.org/indi/abide/abide_I.html https://doi.org/10.1038/mp.2013.78 v1.2 0.809 0.815 0.783 from MRIQC project: T1 images were rated aided by FreeSurfer surface reconstructions good/accept=608, doubtful=14, failed/exclude=138
MCN Basel University of Basel David Coynel healthy young adults 1773 18-35 3T MPRAGE, 256x256x176, 1mm3 http://dx.doi.org/10.1523/ENEURO.0222-17.2018 v1.1 0.963 0.985 0.524 in-house visual inspection of raw data good/excellent: N=1691; doubtful/bad: N=82

Support and communication

If you have any question or suggestion don't hesitate to get in touch. Please leave a message at the Issues page.

Citation

When using Qoala-T please include the following citation:

Klapwijk, E.T., van de Kamp, F., Meulen, M., Peters, S. and Wierenga, L.M. (2019). Qoala-T: A supervised-learning tool for quality control of FreeSurfer segmented MRI data. NeuroImage, 189, 116-129. https://doi.org/10.1016/j.neuroimage.2019.01.014

Authors

Eduard T. Klapwijk, Ferdi van de Kamp, Mara van der Meulen, Sabine Peters, and Lara M. Wierenga

qc's People

Contributors

eduardklap avatar larawierenga avatar opveth avatar qoala-t avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.