A quick search with google finds https://github.com/hmmo-O/Estimation-of-Heart-rate-using-FastICA . Could be helpful for resolving implementation bugs against.