A New Framework for Robust Heart Rate Measurement Based on the Head Motion State Estimation