Questions tagged [peak-detection]
22 questions
4
votes
1 answer
How to extract slope of all the peak containing curves in a graph?
I have a dataset from which I have generated graphs. I am able to extract peaks from these graph which are above a threshold using scipy. I am trying to create a dataframe which contains peak features like peak value, peak width, peak height, slope…

Vivz
- 6,625
- 2
- 17
- 33
3
votes
1 answer
scipy.signal.find_peaks return empty properties
I tried to obtain properties from scipy.signal.find_peaks, but it returns an empty dictionary {}. Can anyone help to fix it?
line={'x':[3405.024, 3405.312, 3406.176, 3406.464, 3406.752, 3407.04, 3407.328, 3408.192, 3408.48, 3408.768, 3409.056,…

David H. J.
- 340
- 2
- 12
2
votes
1 answer
How to find the maximum peak and duration of a signal in R?
I am trying to find the duration in seconds of a signal, to do this I use a function from (Finding start and end of a peak in time series in R).
y = signal
y$startEndPeak <- NA
which.min(abs(diff(y$peak)))
i.mins <- which(diff(sign(diff(c(Inf,…

M Sandoval
- 87
- 6
1
vote
0 answers
need to find peak duration of the data
I have a stream of data in a csv file that signifies the time with date in the 1st column and value in the 2nd column. The data is plotted below. I need to write an algorithm that gives me an array with time according to how long the peak…

zahab
- 31
- 1
- 5
1
vote
1 answer
How to detect the peak Values using Python SciPy, getting index error"arrays used as indices must be of integer (or boolean) type"
I have the speed data in that I need to detect the values where threshold is greater than 20 and valley greater than 0. I used this code for peak detection but I am getting index error
import numpy as np
from scipy.signal import find_peaks,…
user20759431
1
vote
0 answers
how to detect the peaks above 23 using scipy
i have the random data in which i plotted graph for finding the peaks which is originated from zero i used this code
x = np.array([0, 7, 18, 24, 26, 27, 26, 25, 26, 16, 20, 16, 23, 33, 27, 27,
22, 26, 27, 26, 25, 24, 25, 26, 23, 25, 26, 24, 23, 12,…
user20289810
1
vote
0 answers
How to collect realtime sensor data and count features at the sametime in jupyter?
By the api I might get batches of sensor data with requests(say about 200ms per batch and sampling rate at 400Hz).
With a butter lowpass I have got the way to count what I want on static demo dataset like below.
But in real world the data from the…

WilsonF
- 85
- 6
1
vote
0 answers
find peak with various height on different sides in python
In the graph below, I want to find the major peaks of gray line. I used scipy.signal.find_peak and got the blue line as a result.
I used threshold to filter some minor peaks out, but that also filtered out peaks in the yellow circle, who has large…

David H. J.
- 340
- 2
- 12
1
vote
0 answers
Python Pandas: How to determine a 'cycle' as well as its peaks
Using the following snippet from my data below:
Data =…

SeanK22
- 163
- 8
1
vote
1 answer
Problem/bug with list values reading from Spark dataframe during plotting spikes detection using find_peaks from SciPy
Let's say I have following pandas dataframe contains value over time or date:
import pandas as pd
pdf =…

Mario
- 1,631
- 2
- 21
- 51
1
vote
1 answer
Finding very high multiple peak element leaving the rest low peaks
I have a bunch of values stored in an array, I need to find the very highest peak. I tried using this code:
arr=["values"]
n=len(arr)
if arr == []:
print (pos)
Diff = []
for i in range(0,n-1):
if arr[i]< arr[i+1]:
Diff.append(1)
elif…

Got Craziness
- 55
- 7
0
votes
2 answers
finding the duration of a wave from 1st major trough to next one for temperature data
hi have an algorithm to detect troughs and peeks of the series data for temperature but it needs some polishing
this is the graph of complete data
this is zoomed in version
as shown the algorithm returns even slight though so calculating time…

zahab
- 31
- 1
- 5
0
votes
1 answer
not all peaks are detected using scipy.signal.find_peaks method with prominence parameter
I'm trying to detect peaks with a certain prominence using the scipy.signal.find_peaks method with its prominence parameter. But the method seems to only detect certain peaks that fulfill the condition but not all of them. The signal and detected…

Larsito
- 1
0
votes
1 answer
How do I find, plot, and output the peaks of a live plotted Fast Fourier Transform (FFT) in Python?
I am working with the pyaudio and matplotlib packages for the first time and I am attempting to plot live audio data from microphone input, transform it to frequency domain information, and then output peaks with an input distance. This project is a…

TamperedAether
- 11
- 4
0
votes
1 answer
Peak finding algorithm using python and SciPy
I have vehicle data of speed vs time where y axis is speed and x axis is the time. I need to count the number of accelerations of a vehicle. the peaks has to be detected where peak lower values is in between 0 to 13 and peak upper value is in…

aparna podili
- 149
- 9