A head CT or MRI scan can identify or rule out other causes of behavior changes or decreased alertness. A CT scan uses an imaging machine linked to a computer. It creates detailed images of the brain. An MRI uses a powerful magnet and radio waves to generate images of the brain.