An auto-regressive model residual modulation (ARRm) delineates epileptic tissue based on the non-harmonicity of the signal. Tissue with high ARRm corresponds to fast ripples and removal of this tissue relates to outcome. The ARRm can be used as real-time analysis tool during epilepsy surgery as it is fast and insensitive to subtle artefacts.