An easy and sensitive method for narrow peak detection. The original method comes from “Lu, W., et al. (2006). A semi-automatic method for peak and valley detection in free-breathing respiratory waveforms. Medical Physics, 33(10), 3634–3636.” And I implemented this method into Python code.