I am using a Polar Equine Heart beat detector along with a micro-controller. The Polar device will give a pulse for each heart beat. But the output of that is not stable. If the electrode is not placed perfectly then the output will pulse unusually with high rate leading to high heart rate reading. The error pulsing is in the heart rate per minute range itself so its difficult to differentiate whether its actual or not. And also these error pulsing may get stable to correct reading after sometime.
But it will take around 10s. But we cant wait till 10s all the time, since most cases we get correct reading from starting itself.
Is there a good algorithm to find out the heart rate per minute which can intelligently remove the error pulsing and something that locks to a common rhythm of pulsing rather than just blindly taking all pulses?