11-06-2015 12:02 PM
Hi 🙂
Im trying to find the inflection point's time of a Bio-Signal by having the the 2nd derivative of it , then detecet the zero-crossing point of the derived signal
What i need is to mark the inflection point on my Bio-Signal by the time at which the derived signal crosses the zero .
Solved! Go to Solution.
11-06-2015 01:08 PM
You posted in the "signal conditioning" forum, but it seems more like a programming question.
What software are you using? (e.g. LabVIEW, etc.)
Can you show us your code with some typical data?
11-07-2015 04:06 AM - edited 11-07-2015 04:08 AM
Thank you Yes im using Labview
11-07-2015 09:41 AM
We also need some data. Please post a typical data file, preferably a small one. If the Forums will not let you post a file with the .tdms suffix, enclose it in a zip file.
Lynn
11-07-2015 10:14 AM - edited 11-07-2015 10:15 AM
Here is a sample of data
11-07-2015 10:17 AM
11-07-2015 02:06 PM
I like to use the Savitsky-Golay filter for smoothing and differentiation. When I apply that to your data it seems to work well at finding the inflection points.
I read your file and saved the data as a constant. To use data from other files enable the other case of the Diagram Disable structure.
I do not have the wavelet addon but standard VIs will do everything you need.
Detrend => Subtract Mean.
Smoothing and differentiation => Savitsky-Golay. See the detailed help file for the Savitsky-Golay VIs for information on how to get derivatives.
Find negative-going zero crossings: Compare 2nd derivative to zero and use Implies to locate the zero crossings.
Lynn
11-07-2015 03:34 PM
Ooops!!! There is a bug in the VI I posted earlier.
I wired the wrong coefficients into the differentiation section. Here are corrected VIs.
You may need to adjust the number of side points to work well with the noise levels of your signals. Some of the signals such as around t = 240 may not have well defined points.
Also note that this finds inflection points on both rising and falling parts of the signal. If you only want the falling parts, just add another test to check the signal levels either side of the inflection point.
Lynn
11-08-2015 05:56 PM
Thank you from the bottom of my heart
but i think you posted the same Vi you have posted before
would you check it again 🙂
11-08-2015 06:44 PM
The second one has two scales on the graph, one on each side. The first one had only one scale. I did not change the VI name so both have the same name.
Lynn