TMS operates on the principle of electromagnetic induction, aiming to either stimulate or inhibit the neuronal activity of specific brain areas with the goal of restoring normal neuronal functions. More specifically, the machine generates a magnetic impulse that reaches the cerebral cortex, activating a current that affects the activity of neurons.