A device (10) for processing a physiological signal (11) is presented. The device comprises a feature detector (20) for d etecting occurrences of a waveform feature of the physiological signal (11) wherein the physiological signal (11) is descriptive of a physiological process and for providing a feature signal (23) descriptive of the detected occurrences of the waveform feat ure of the physiological signal (11) a debouncer (30) for removing non indicative occurrences from the feature signal (23) that occur within a predetermined time window with respect to another occurrence and for providing a debounced feature signal (33) and an interpolator (40) for determining a baseline signal (12) by deriving values indicative of the physiological signal (11) at desired occurre nces of the waveform feature wherein desired occurrences are indicated by the debounced feature signal and for interpolating the baseline signal (12) in between said desired occurrences. Furthermore a corresponding system a method a computer readable non transitory storage medium and a computer program are presented.