Intelligent estimation of evoked potentials by event analysis