The orange is a signal I recorded, the blue - my first restoration attempt, after which I decided to ask.
The signal is audible, however there are 2 types of defects 1) baseline changes 2) sudden drops/spikes (which are not single point):
This doesn't look like smoothing/IR filtering problem, but rather some detection + arithmetic. Maybe I can code solution myself, but are there some ready-made solutions?