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:
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):

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
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:
- Understand the MRI experiment and explain the physics of the MRI signal — polarization, resonance, excitation, and relaxation of protons.
- Identify the three fundamental hardware components of an MRI scanner and explain why each is necessary. Understand how pulse sequences manipulate the hardware.
- Describe the image formation process. In particular, explain the position–frequency mapping used in MRI and differentiate between types of MRI contrast.
- 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.
- 12% attendance
- 12% weekly quizzes
- 35% dry programming labs
- 31% wet lab
- 10% final presentation
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
- 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
- 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?
- 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
- 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
- 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
- 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
- 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
- Artifacts, catch up, and review.
- Game: name that artifact!
Resources Common artifacts
- TBD
Resources Coming soon
- TBD
Resources Coming soon
- 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.