Electrical stimulation refers to a process in which electrical impulses are applied to nerves or muscles, typically using electrodes placed on the skin. This can be done for therapeutic purposes, such as pain relief or to stimulate muscle contractions, or for diagnostic reasons, such as measuring the speed of nerve signals. The electrical impulses can also be used to trigger artificial limbs or other prosthetic devices.