Knowing the depth and laminar location of the microelectrodes used to record neuronal activity from the cerebral cortex is crucial to properly interpret the recorded patterns of neuronal responses. Here, we present an innovative approach that allows inferring such properties with high accuracy and in an automated way (i.e., without the need of visual inspection and manual annotation) from the evoked response potentials elicited by sensory (e.g., visual) stimuli.