Wirehead is a term used in science fiction works to denote different kinds of interaction between people and technology. The typical wirehead idea is that of a wire going into a human's brain and safe amounts of electricity applied to the wire-conductor to directly interact with the brain.
In Larry Niven's Known Space stories, a wirehead is someone who has been fitted with an electronic brain implant (called a "droud" in the stories) to stimulate the pleasure centres of their brain. In the Known Space universe, wireheading is the most addictive habit known (Louis Wu is the only given example of a recovered addict), and wireheads usually die from neglecting themselves in favour of the ceaseless pleasure. Wireheading is so powerful and easy that it becomes an evolutionary pressure, selecting against that portion of Known Space humanity without self-control. Also in this science fiction there is a device called a "tasp" (similar to transcranial magnetic stimulation) that does not need a surgical implant; the pleasure center of a person's brain is found and remotely stimulated (considered a violation without seeking the person's consent beforehand), an important device in the Ringworld novels.
A wirehead's death is central to Niven's Gil 'the Arm' Hamilton story, "Death by Ecstasy", published by Galaxy Magazine in 1969, and a main character in the book Ringworld Engineers is a former wirehead trying to quit.
Niven's stories explain wireheads by mentioning a study in which experimental rats had electrodes implanted at strategic locations in their brains, so that an applied current would induce a pleasant feeling. If the current could be obtained any time the rats pushed the lever, they would use it over and over, ignoring food and physical necessities until they died. Such experiments were actually conducted by James Olds and Peter Milner in the 1950s, first discovering the locations of such areas, and later showing extremes to which rats would go to obtain the stimulus again.