A machine learning approach to improve contactless heart rate monitoring using a webcam