According to one embodiment, an electronic apparatus determines whether a vital sign sensor is in contact with a human body and determines whether a contact state between the vital sign sensor and the human body is stable. The apparatus obtains an effective time-series signal by removing, from an output time-series signal of the vital sign sensor, a first time-series signal and a second time-series signal, the first time-series signal corresponding to a time period of a non-contact state and a second time-series signal corresponding to a time period of an unstable state. The apparatus analyzes the effective time-series signal to measure a value associated with a vital sign signal of the human body.