Provided herein are microelectrodes and methods of localizing and targeting the same. The microelectrodes include electrochemical or biological sensors, an array of electrical contacts along a long axis of the microelectrode, or both. The methods of localizing and targeting use statistical manipulations to reduce the errors inherent in spike train analyses.