An electronic device, comprising a processor and a memory, wherein the memory is to store a computer program and transfer the computer program to the processor;
- the processor is to:
- receive a sensing signal collected by a sensor;
- responsive to segmenting the sensing signal into at least one segment signal, calculate a segment energy value for each of the at least one segment signal, and acquiring a signal band containing a starting point of the signal of a pulse signal based on each segment energy value;
- based on a measured energy value at each sampling point in the signal band, calculate an instantaneous energy value at each sampling point in the signal band by using a sliding window method;
- acquire a first energy ratio between the instantaneous energy value of a first sampling point and the instantaneous energy value of a second sampling point in the signal band, wherein the second sampling point is a prior sampling point of the first sampling point;
- and
- if the first energy ratio is greater than an initial-ratio threshold value, determine a sampling time corresponding to the first sampling point as the starting point of the signal, wherein the initial-ratio threshold value is a preset threshold value used to determine the starting point of the signal.