The Electronium Hat was an invention created by Professor Farnsworth. It was used to harness the power of sunspots, which was then used to produce cognitive radiation. This hat could make any animal intelligent and was used on a monkey named Guenter. Guenter became super-intelligent; Fry claims he is kept up at night due to his constant thinking.
The machinery in the hat can be seen by opening the top of the hat.