TMS, or transcranial magnetic stimulation, involves using a magnetic field to stimulate the neural activity in certain areas of the brain where neurons may be inactive or underactive. This is done by gently applying a wire rod to the outside of the skull.