Deconstructing MRI

The Anatomy of a Scanner · Fall 2026 UC Berkeley DeCal

Hello! This fall, I’m teaching (for the first time ever) a decal about MRI. Why? Magnetic Resonance Imaging is an incredible application of the signals and systems theory I have been studying over the past year. It’s fun learning about that stuff for nothing more than “the love of the game,” but it’s more fun to see how it is applied to do something useful.

Here is a picture of my hand / wrist:

MRI reconstruction of a wrist, slice by slice

This was spat out by an old MRI wrist scanner which lives in the basement of Cory Hall. Miki is letting me use this for an interactive lab marking the culmination of my decal. Here is what the scanner looks like (beautification, courtesy of our ol’ pal Gemini):

The 1.5T Aspect wrist scanner in Cory Hall

I haven’t even gotten to the best part, which is teaching the class. It should be a ton of fun! That is: for me and for you, if perchance you are a prospective student :)

I wanted to add to my personal webpage, all the resources to be used in class. Of course, everything is free for all. After all, most of the stuff I “made” is taken from or heavily inspired by others. Special shoutouts go to Miki Lustig (of course) and Peder Larson (from UCSF; his textbook laid the groundwork for my choices in designing this course).

About

An introduction to MRI for undergraduates with an engineering background. Unlike other imaging methods, the MRI signal comes from the hydrogen atoms in your body. How does it work? Put the patient in a magnetic field, apply a radio frequency, and listen to the hydrogen atoms sing. This field is interdisciplinary. You will learn some physics, math, and biology, and then see how these concepts work together to make MRI possible. The approach to imaging is also broadly applicable, and the intuition you develop will come in handy throughout your engineering career.

We’re going to spend most of our time surveying the principles of MRI. I will focus on developing an intuitive and visual understanding of the MR phenomenon, so most of the assignments and class time will be dedicated to demonstrations and simulations.

I’d like to one day build a low-field scanner with some of my fellow students — inspired by this hackathon held at NYU. My hope is to teach you how MRI works. Maybe, along the way, I’ll convince you that MRI is neat and worth the time and struggle that will inevitably come from such a project.

When and where

Monday and Wednesday, 6:00–7:00 Fall 2026
Etcheverry 3109
Office hours
Whenever / wherever — email us. Weekly hours TBD.
Instructors

Course resources

EdStem

Join for announcements, questions, and discussion. Click this link to join.

Gradescope

Quizzes and labs are submitted here. Course entry code: X8DZ4W

Prerequisites

Familiarity with signals and systems. I will review all the math you need to know, but you’ll get more from the class coming in with some experience. If you know what a Fourier transform is, you’re probably in good shape.

Ability to write and debug Python. The labs are not going to be technically challenging, but you should know your way around a Python notebook. Don’t let this stop you from enrolling, though. There’s going to be plenty of office hours.

Exposure to elementary physics. You should be comfortable with vectors, and Faraday’s Law of Induction should sound familiar. A physics background will give you better intuition for MRI, but it is not required.

EECS 16A / Physics 89 and Physics 7B (or equivalent) is more than sufficient. These are not hard prerequisites, but I think you’ll get more from this DeCal if you come in comfortable with those topics.

What you will learn

Successful students will:

  1. Understand the MRI experiment and explain the physics of the MRI signal — polarization, resonance, excitation, and relaxation of protons.
  2. Identify the three fundamental hardware components of an MRI scanner and explain why each is necessary. Understand how pulse sequences manipulate the hardware.
  3. Describe the image formation process. In particular, explain the position–frequency mapping used in MRI and differentiate between types of MRI contrast.
  4. Simulate, manipulate, and analyze MRI data.

How the course works

Lecture. Two 1-hour lectures each week. Attendance is required in the sense that it makes up a small portion of your grade. I hope you come because I work hard to make class time worthwhile, interactive, and fun. There will be a Google Form at the end of each class for credit.

Quizzes. One multiple-choice quiz each week. These are a brief conceptual review, so they should take 15–30 minutes. The nth quiz is released after the second lecture of week n, and due before the first lecture of week n + 1. Submit on Gradescope.

Dry labs. Seven Python notebook labs, each about 6 hours. These apply what we learn in class to real or simulated data. I’ll release each as soon as we’ve covered enough relevant material, and you’ll have at least two weeks to finish.

Wet lab. One 6-hour wet lab during the semester — up to three hours in the lab, plus a pre-lab and a post-lab reflection. This is required to pass, so there will be flexibility in scheduling. We’ll meet in small groups to program the 1.5T Aspect scanner in Cory Hall. You’ll leave with a picture of your wrist.

Final presentation. A very short presentation during the last week. Details TBD. You’ll do a little more research on something we learned in class and share it with everyone else.

Grading

The class is P/NP. Earning at least 70% is a passing grade. Extra credit at my discretion.

Policies

Attendance. Showing up is valuable, so attendance is mandatory. Keep in mind that it is only a small portion of the grade.

Late work. Extensions will be granted with no penalty if you ask before the due date. I’ll push the deadline for assignment n to align with assignment n + 1 upon request. Otherwise, no late assignments will be accepted.

The schedule is, of course, tentative and subject to change.

Schedule

Week 0 · Introduction Sep 7–11
  • A unique approach to imaging. History, hardware, and safety.
  • Bird’s-eye view of the MRI experiment (I). Scanner hardware and fields.

Resources Comprehensive history of MRI · MR scanner hardware · MR fields · Video: Introducing MRI — The Basics · Video: Introducing MRI — Review of Vectors

Week 1 · Math Review Sep 14–18
  • Vectors, complex numbers, and frequencies.
  • The Fourier transform, now in 2D. What is k-space?

Resources Math summary · Introducing the Fourier transform · All about the 2DFT · Video: But what is the Fourier Transform? · Video: But what is a Fourier series?

Week 2 · The Main Field B0 Sep 21–25
  • Polarizing protons… and would ya look at that… they’re spinning!
  • Breaking down the (bone-chilling) Bloch equation. T1 and T2 relaxation.

Resources What is spin? · Spin physics · T1 relaxation · T2 relaxation · The Bloch equation · Video: Introducing MRI — Introduction to NMR · Video: Introducing MRI — Spin Angular Momentum and Precession

Week 3 · The RF Field B1 Sep 28–Oct 2
  • Resonance and excitation in a rotating frame of reference.
  • Receiving and storing the MR signal. Pixels, matrices, and the signal equation.

Resources The rotating frame · Why is RF needed? · Origin of the signal · Pixels and matrices · The signal equation

Week 4 · The Gradient Fields Gx Gy Gz Oct 5–9
  • Like a piano, position maps to frequency. Locating the signal.
  • Catch up and review. Frequency encoding and phase encoding.

Resources Locating the signal · Spatial encoding · Frequency encoding · Phase encoding · Phase and frequency encoding together

Week 5 · Image Formation (I) Oct 12–16
  • Navigating k-space with frequency and phase. Image formation.
  • Manipulating the hardware. Pulse sequences. Spin echo vs gradient echo.

Resources Spatial encoding · K-space · Image formation · Pulse sequences · Spin echo vs gradient echo

Week 6 · Image Formation (II) Oct 19–23
  • Telling chalk from cheese. Basic contrast and the infamous T*2.
  • Spin echoes, FOV, and resolution.

Resources Basic contrast · In vivo contrast · Field of view · FOV and resolution

Week 7 · Image Formation (III) Oct 26–30
  • Artifacts, catch up, and review.
  • Game: name that artifact!

Resources Common artifacts

Week 8 · Building a Low Field MR Scanner (I) Nov 2–6
  • TBD

Resources Coming soon

Week 9 · Building a Low Field MR Scanner (II) Nov 9–13
  • TBD

Resources Coming soon

Week 10 · Wrapping Up Nov 16–20
  • Bird’s-eye view of the MRI experiment (II).
  • Final presentations.

Resources Coming soon

Labs

Seven dry labs and one wet lab. I’ll post each here when it’s released. Submit on Gradescope.