Functional near-infrared spectroscopy (fNIRS), as a new optical functional neuroimaging method, has been widely used in neuroscience research. In some research fields with NIRS, heartrate (HR) (or heartbeat) is needed as useful information to evaluate its influence, or to know the state of subject,