During an MRI scan, the patient lies inside a large, cylindrical scanner. The machine generates strong magnetic fields and radio waves, which interact with the hydrogen atoms in the body. These interactions produce signals that are detected and converted into detailed images by a computer. The process is painless, but it can be somewhat noisy and requires the patient to remain still.