The application discloses a
heart rate detection method and device, a storage medium and an electronic device. A
pulse wave signal and an acceleration
signal of a user are acquired, and a current state of the user is determined. When the user is in a static state,
time domain analysis is performed based on the
pulse wave signal to obtain at least one first static
heart rate value, and
frequency domain analysis is performed based on the
pulse wave signal to obtain a plurality of second static
heart rate values. When the user is in a motion state,
frequency domain analysis is performed based on the pulse wave signal to obtain a plurality of first motion heart rate values, and
deep learning analysis is performed based on the pulse wave signal and the acceleration signal to obtain a second motion heart rate value. A
target heart rate value of the user is determined according to the first static heart rate value and the second static heart rate value, or the
target heart rate value of the user is determined according to the first motion heart rate value and the second motion heart rate value. In the static state, the
time domain and the
frequency domain are combined, the accurate heart rate value is obtained, and the
energy consumption is reduced. In the motion state, the frequency domain and the
deep learning are combined, and the more accurate heart rate value is obtained.