1. A method for determining a threshold ( 81 , 82 ) for spike ( 12 ) detection in an electrophysiological signal ( 11 ), the method comprising the steps of: ( 21 ) determining an estimated envelope ( 31 ) of the electrophysiological signal ( 11 ), ( 22 ) based on the estimated envelope ( 31 ), determining an estimated Gaussian noise, ( 24 ) determining a mode ( 61 ) of the distribution ( 51 ) of the estimated signal envelope ( 31 ), and ( 25 ) determining the threshold ( 81 , 82 ) based on the mode ( 61 ) of the distribution ( 51 ) of the estimated envelope ( 31 ).