Education, tips and tricks to help you conduct better fMRI experiments.
Sure, you can try to fix it during data processing, but you're usually better off fixing the acquisition!

Monday, November 28, 2011

Twitter. Damn.

@practiCalfMRI



I thought I could resist, I really did. (I've been off Facebook* for more than two years!) But when Neuroskeptic took the plunge in June I started thinking that maybe I should suck it up, too. I mean, Neuroskeptic blogs ten times more frequently than I do and he still has time to tweet.

Not sure exactly how it will go. I'm going to treat it as an experiment. I can guarantee that there won't be daily tweets let alone hourly ones. I'm not going to bring anyone's cellular network to its knees. But I do come across little things related to fMRI that aren't worth a full blog post. A micro-blog ought to fit the bill, eh? We'll see...




* Okay, so technically I am still on fb. I maintain an account so that I can post comments to websites, merge with other online media, etc. Turns out it's really, really hard not to have fb unless you don't mind registering separately for every online newspaper and music service yet invented. But I never actually look at my fb page, so I apologize if you have a "friend" request suspended somewhere in cyberspace.

Sunday, November 27, 2011

Understanding fMRI artifacts: "Good" coronal and sagittal data

 
Front, back, side to side

Now that you have an appreciation of "good" axial EPI time series data we should be able to zip through a review of "good" coronal and sagittal EPIs. This isn't the post to get deep into the reasons why you might want to acquire these prescriptions instead of axial or axial-oblique slices, but here's a short list (and some music) for you to be going on with:

Pros
  • coronal slices tend to exhibit less dropout of frontal and temporal lobes compared to axial slices.
  • coronal slices might permit a smaller field-of-view and higher spatial resolution without signal aliasing than achievable with other prescriptions, assuming your gradient performance and other pulse sequence parameters can be driven sufficiently hard.
  • sagittal slices may also show some improved signal in frontal and temporal lobes compared to axial slices, but the real benefit is the unique coverage afforded. You could acquire a single hemisphere, for instance; could be useful in a handful of situations. Alternatively, if you are interested in the whole brain, including cerebellum and perhaps even brain stem, these structures are naturally included in sagittal slices.
  • sagittal slices tend to make the most common type of head motion - chin to chest rotations - an in-plane phenomenon which might lead to improved motion correction in post-processing.

    There are, naturally, drawbacks to coronal and sagittal slices, just as there are for axial slices. I'll mention some of these in more detail below, as we consider the individual artifacts, but here's another brief list:

    Cons
    • safety limits on gradient switching (to avoid peripheral nerve stimulation) tend to force the phase encoding direction to be left-right for coronal slices, rendering the EPIs strongly asymmetric. While the absolute level of distortion may actually be very similar to that present in axial slices, the disruption of left-right symmetry can be a shock to your aesthetic sensibility.
    • bizarre distortion is also a "feature" of sagittal slices where, as you'll soon see, the distortion can make the frontal lobes look like a duck's bill! But, as before, the absolute level of distortion may not be significantly different to that in axial slices; it's really the unnatural appearance that shocks us. (We ought to be just as outraged at the symmetric distortions in axial slices!)
    • perhaps the biggest limitation to both coronal and sagittal prescriptions is the number of slices required to cover the entire brain in the given TR. Slicing along the longest axis of the brain, as done for coronal slices, is clearly the least efficient way to do it. The efficiency of sagittal slices falls somewhere between coronal and axial. And, of course, anything that leads to more (fixed width) slices means that TR might have to get longer. It all depends on your application.

      Okay then, that's the introduction over with. Let's now put aside the justification for using one prescription over another and look at what constitutes "good" data in the case of coronal and sagittal slices. The features should be immediately recognizable from what you saw in the axial data of the last post.

      Wednesday, November 16, 2011

      Understanding fMRI artifacts: "Good" axial data

       
      Good EPI data has a number of dynamic features that are perfectly normal once a few basic properties of the sample - a person's head - are considered. The task is to differentiate these normal features from abnormal (or abnormally high) artifacts and signal changes. We'll look at axial slices first because these are the most common slice prescription for fMRI. (Axial oblique slices will exhibit much the same features as the axial data considered here.)

      The data we will consider in this post were acquired with a single shot, gradient echo EPI sequence on a Siemens Trio/TIM scanner, using the 12-channel head RF coil and a pulse sequence functionally equivalent to the product sequence, ep2d_bold. (See Note 1.) Parameters were typical for whole cortex coverage (the lower portion of the cerebellum tends to get cut off): 34 slices, 3 mm slice thickness, 10% slice gap, TR=2000 ms, TE=28 ms, flip angle = 90 deg, 64x64 matrix over a 22.4 cm field-of-view yielding 3.5 mm resolution in-plane, full k-space with phase encoding oriented anterior-posterior. (See Note 2 for advanced parameters.) The entire time series was 150 volumes in duration but in the movies and statistical images that follow I've considered only the first fifty volumes. (See Note 3 if you want to download the entire raw data and/or the movies and jpeg images.)

      Let's start by simply looping through the volumes with the contrast set to reveal anatomy. Play this through a couple of times to familiarize yourself with it, then read on (click the 'YouTube' icon on the video to launch an expanded version in a separate tab/window):




      Other than movement of the eyes and some large blood vessels in the inferior slices, at this resolution it's difficult to determine with certainty which regions are fluctuating and which are stationary. So let's zoom in on some of the central slices and replay the cine loop:




      Now we can see that there's quite a bit of brain pulsation going on. Indeed, nothing appears stationary now! However, the edges of the brain don't appear to be moving very much so we can be reasonably confident that the pulsation is due to normal physiology and not a fidgety subject.

      Tuesday, November 15, 2011

      Understanding fMRI artifacts


      Introducing the series

      The workhorse sequence for fMRI in most labs is single-shot gradient echo echo planar imaging (EPI). As we saw in the final post of the last series, EPI is selected for fMRI because of its imaging speed (and BOLD contrast), not for its ability to produce accurate, detailed facsimiles of brain anatomy. Our need for speed means we are forced to live with several inherent artifacts associated with the sequence.

      However, in addition to the "characteristic three" EPI artifacts of ghosting, distortion and dropout, when we're doing fMRI we are more concerned with changes over time than with the artifact level of an individual image. So, in this series we need to assess the sources of changes between images, even if the images themselves appear to be perfectly acceptable (albeit subject to the "characteristic three").


      What's the data supposed to look like?

      It would be rather difficult for you to determine when something has gone wrong during your fMRI experiment if you didn't have a solid appreciation of what the images ought to look like when things are going well. Accordingly, I'll begin this series with a review of what EPIs are supposed to look like in a time series. We'll look at typical levels of the undesirable features and assess those parts of an image that vary due to normal physiology. This is what we should expect to see, having taken all reasonable precautions with the subject set up and assuming that the entire suite of hardware (scanner and peripherals) is behaving properly.

      Good axial data will be the focus of the first post in the series. (Axial oblique images will exhibit qualitatively similar features to the axial slices I'll show.) In the second post I'll show examples of good sagittal and coronal data. Artifacts may appear quite differently and with dissimilar severity merely by changing the slice prescription, so it's important to keep in mind the anisotropic nature of many EPI defects. Motion sensitivity is also different, of course. Motion that was through-plane for an axial prescription is in-plane for sagittal images, for example.


      Ooh, that's bad.  Is it...?

      With a review of good data under our belts it will be time to look at the appearance of EPI when things go tango uniform. I will group artifacts according to their temporal behavior - either persistent or intermittent - and their origins - either from hardware, from the subject, or from operator error. You should then be able to understand and differentiate the various artifacts and be able to properly diagnose (and fix) them when it counts the most: during the data acquisition. Waiting until the subject has left the building before finding a scanner glitch is a bit like doing a blood test on a corpse. Sure, you might be able to determine that it was the swine flu that finished him off, either way he's dead. Our aim will be to do our “blood tests” while there is still a chance of administering medicine and perhaps achieving a recovery.

      Tuesday, November 1, 2011

      Physics for understanding fMRI artifacts: Part Twelve

      Apologies for the lengthy delay getting this post out. New academic year, teaching, talks, etc. etc. Anyway, I hope that this opus will be the final post in the background physics series for the time being. I reserve the right to append further posts down the road, but with this post I hope you will be in a position to understand the origins of artifacts in real (EPI-based) fMRI data. So, after today we'll change tacks and start reviewing what "good" data should look like. First things first though. Time to put all your k-space knowledge to good use, and review the pulse sequence that the majority of us use for fMRI.


      The Echo Planar Imaging (EPI) pulse sequence

      In Part Ten we looked at a pulse sequence and its corresponding k-space representation for a gradient-recalled echo (GRE) imaging method. That sequence used conventional, or spin warp, phase encoding to produce the second spatial dimension of the final image. A single row of the k-space matrix was acquired per RF excitation, with successive rows of (frequency-encoded) k-space being sampled after stepping down (or up) in the 2D k-space plane following each new RF pulse.

      One feature of the spin warp imaging scheme should have been relatively obvious: it's slow. Frequency encoding along kx is fast but stepping through all the ky (the phase-encoded) values is some two orders of magnitude slower, resulting in an imaging speed from tens of seconds (low resolution) to minutes (high resolution). That's not the sort of speed we need if we are to follow blood dynamics associated with neural events.

      Instead of acquiring a single row of k-space per RF excitation - a process that is always going to be limited by the recovery time to allow the spins to relax via T1 processes - we need a way to acquire multiple k-space rows per excitation, in a sort of "magnetization recycling" scheme. Ideally, we would be able to recycle the magnetization so much that we could acquire an entire stack of 2D planes (slices) in just a handful of seconds. That's what echo planar imaging (EPI) achieves.

      Gradient echo EPI pulse sequence

      The objective with the EPI sequence, as for the GRE (spin warp) imaging sequence we saw in Part Ten, is to completely sample the plane of 2D k-space. That objective is unchanged. All we're going to do differently is sample the k-space plane with improved temporal efficiency. Then, once we have completed the plane we can apply a 2D FT to recover the desired image. Pretty simple, eh?

      As before, sampling (data readout) need only happen along the rows of the k-space matrix, i.e. along kx. So we need a way to hop between the rows quickly, spending as much time as possible reading out signals under the frequency encoding gradients, Gx, and as little time as possible getting ready to sample the next row. EPI is the original recycled pulse sequence, so I'll color the readout gradient echoes in green:

      The first four (and a half) gradient echoes in a gradient echo EPI pulse sequence.

      To keep things simple I've omitted slice selection and indicated a 90 degree RF excitation; this could of course be any flip angle in practice. (See Note 1.) I've also shown just the first four (and a half) gradient echoes in the echo train. The full sequence repeats as many times as there are phase-encoded rows in the k-space matrix. A typical EPI sequence for fMRI might use 64 gradient echoes, corresponding to 63 little blue triangles in the train shown in the figure above. But for the example k-space plane below, the k-space grid is 16x16 so assume for the time being that the full echo train would consist of 15 little blue triangles separating eight positive Gx gradient periods and eight negative Gx gradient periods.