Trends in Best Practices for fMRI Research

If you are a newcomer to the field of neuroimaging, you may find bewildering the range of software packages, methods, and concepts in the field; aside from learning some of the basics of fMRI analysis, perhaps, or how to analyze an EEG dataset from start to finish, you may have questions such as:

  • What are other, more experienced researchers doing?

  • What is the best way to organize and analyze my data? Is this BIDS thing for real, or just a fad?

  • Will univariate analyses be around for a while, or will they eventually be replaced by multivariate techniques?

  • Was O.J. guilty?

It is natural to ponder all of these, and more, as you advance along your career as a neuroimaging researcher. Although it’s impossible for anyone to answer all of these with complete certainty, we can make some educated guesses about the direction of the field as a whole, including how results are displayed and reported, what statistical techniques are considered necessary, and what other tools the modern researcher should have in their toolkit. All of this, and more, I discussed in a talk hosted by the University of Connecticut, which you can watch below.

How does Magnetic Resonance Imaging Work?

For anyone who has tried explaining MRI physics to the layman, the expression on his face follows a very particular progression: First the eyes are narrowed and attentive, the brow slightly furrowed, as you speak of water and hydrogen, blood and oxygen, tissue and bone. These are tangible, they are real; the man can feel them on his own body, or he has an easy enough time picturing them. His look of concentration wavers a bit once you talk about spin, and how it’s an intrinsic property of all atoms, how it’s both like and unlike the spin he experienced as a child on the merry-go-round. And he can be forgiven for looking puzzled when you describe spins as either aligning with a magnetic field or aligning in the opposite direction, partly due to the field but also partly due to chance, and that these spins, in and of themselves, are either up or down; they do not pass through some intermediate stage. And that although we have many figures and paintings of spinning electrons, we evidently draw from memory as we do of a distant loved one; as the electron is a very shy lady indeed, and no one has ever taken her picture or seen her in the flesh.

But that shadow of doubt is gone in an instant, his demeanor ready for more, once you begin talking about magnets. Magnets! Everyone has played with them; everyone understands intuitively the nature of the poles, attracting their opposites, repelling their identical twins. Everyone has observed them acting through solid matter: Tables, books, hands; none of these stop the magnet from pulling on filaments, metal, other magnets. An invisible force, whose effects are plain as day. It is only when you begin talking about gyromagnetic ratios and resonance that his mind begins to falter. Yes, the atoms spin at an incredible rate; yes, we can push them periodically just as we would a child in a swing, tilting the atoms on their side. And then this potential energy is released, and the signal is picked up by sensitive recording devices inside the scanner. So far, so good.

But magnetic gradients? K-space? At this point our listener’s inner eye becomes clouded over. There is something about Fourier transforms, and how each point in k-space corresponds to the magnitude of the image - or was that the contrast? In any case, he will attempt to understand it the next day, or the day after that; but it invariably comes to pass that our thinker finds himself frustrated, and, not seeing any purpose to continue wasting his time trying to understand - unless he is a very eager student indeed - he quits.

Nobody would claim that a video would clear up all of his confusion, but it might go a long way toward making MRI physics more accessible. The video above contains an impressive illustration of how MRI machines work, a brief but effective description of MRI physics, and an animation of how images are reconstructed from k-space. I recommend this to any student who has found himself bewildered by the topic, and I hope that it helps everyone appreciate just how complex and wonderful these machines are.

Now if we could just get a picture of that electron.

MRtrix Fixel-Based Analysis

One of the more advanced features of MRtrix is Fixel-Based Analysis (FBA), a technique to measure both the fiber density and the fiber cross-section of a given piece of white matter. The developers of the package invented the term “fixel” to rhyme with “voxel” (kind of), indicating that they both contain values representing a metric of brain activity or brain structure. The typical voxels we think of contain a single number representing contrast - either the contrast between grey and white matter or other tissue types, in the case of a T1-weighted anatomical image, or the contrast between the intensity of the BOLD signal in a T2-weighted functional image.

Fixels, on the other hand, are MRtrix-calculated values that are stored in voxels; they are the smallest unit of resolution for measuring white-matter related metrics, such as fiber density or fiber cross-section. These terms are defined in more detail in the Raffelt et al. 2017 paper, in which fiber density refers to the overall number of fibers compressed into a single voxel. Fiber cross-section, on the other hand, refers to the amount of the voxel that is occupied by the fiber bundle. These differences are illustrated in the following figure, taken from the Raffelt et al. 2017 study:

The goal of Fixel-Based Analysis is to compare groups and determine which fixels show a difference in fiber density, cross-section, or a combination of the two (referred to as Fiber Density & Cross-Section, or FDC). Many patient populations, such as persons with Alzheimer’s or other age-related dementias, have markedly different fiber density and cross-sections in major white-matter pathways, and the technique described above is a way to visualize and quantify these differences.

I have written a tutorial demonstrating how to do this for the BTC Preop dataset, available on OpenNeuro, which includes glioma patients as well as controls. As there are 36 participants in total, I recommend running this analysis on a supercomputing cluster. In fact, you probably won’t be able to run this analysis without a computing cluster, because with 36 datasets, commands such as “population_template” and “fixelcfestats” can take dozens if not hundreds of hours to run. The datasets that are generated are also huge. All of this points to using a powerful supercomputing cluster with plenty of storage in order to run the analyses, and then downloading the final product to visualize on your local computer, or mounting a volume of the computing cluster on your machine.

The supercomputing code for Fixel-Based Analysis, adapted from the code outlined on the MRtrix FBA tutorial page, can be found here. The tutorial may be updated to reflect better supercomputing practices - for example, using an array instead of creating an individual template file and submitting it for each subject - but it should work for most purposes.