An electronic device and a method are provided. The electronic device can include a motion sensor, a heart rate monitor sensor, and a processor functionally coupled with the motion sensor and the heart rate monitor sensor. The processor can be configured to obtain first motion sensor data for a first duration using the motion sensor, obtain first heartbeat data for the first duration using the heart rate monitor sensor, determine an exercise type based on the first motion sensor data, determine a heartbeat prediction range based on at least one of the first motion sensor data, the exercise type, and the first heartbeat data, obtain second heartbeat data for a second duration using the heart rate monitor sensor, determine whether the second heartbeat data falls within the heartbeat prediction range, and determine heartbeat data of the second duration based on the determination result.