0
$\begingroup$

I have a signal shown below. I got this signal from a glove, where I want to detect the movement of a finger. What I am planning to do is to threshold the signal, so I can get a binary signal indicates the presence of the spike. My problem is that I have multiple increase and decrease within a single spike. So, using threshold technique will produce a "fluctuation" of zeros and ones for each spike. This means that the finger was moved multiple times within that time interval, which is uncorrect.I tried using statistical measures to solve this problem, and I also tried to get the envelop of the signal. However, none of them was able to remove those increases and decreases. What do you suggest to solve this problem enter image description here

$\endgroup$
1
$\begingroup$

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.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.