fMRI technology uses the nuclear magnetic resonance (NMR) phenomenon to form images of neural activity in the brain. It relies on the different magnetic properties of oxygenated and deoxygenated hemoglobin. When neurons are active in a region of the brain, blood flow to that region increases, altering the ratio of oxygenated to deoxygenated hemoglobin and causing a change in the MRI signal. Spatial encoding techniques allow fMRI to locate these signal changes within the brain and form a 3D image showing patterns of neural activity.