Well, that is a good suggestion. But i just went through all the peaks. Some of the peaks are below 0.2. So it is hard to set a threshold because the fluctuation is large between the peaks. I was wondering, what if for every transition that happens, i find the start and end of the transition...