Removing the Multiples of Decrease and Increase in a Spike
You can use a moving average filter followed by your threshold detector. You can change the span of your moving average filter based on the time length in which you want multiple spikes to be combined.