Search

US-12627544-B2 - Method and device for detecting starting point of signal, storage medium and electronic device

US12627544B2US 12627544 B2US12627544 B2US 12627544B2US-12627544-B2

Abstract

The present disclosure discloses a method and device for detecting a starting point of a signal, a storage medium and an electronic device. Therein, the method includes: receiving a sensing signal collected by a sensor; after segmenting the sensing signal into at least one segment signal, calculating a segment energy value of each segment signal, and acquiring a signal band containing a starting point of a 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, calculating an instantaneous energy value at each sampling point in the signal band by using a sliding window method; acquiring a first energy ratio between a first sampling point and a second sampling point in the signal band; and if the first energy ratio is greater than an initial-ratio threshold value, determining a sampling time corresponding to the first sampling point as the starting point of the signal. According to the present disclosure, the instantaneous energy value is calculated by using the sliding window method, and a signal starting point where an energy value is sharply increased is found by means of an energy ratio, thereby the accuracy of detecting starting point of the signal is improved, and thus the accuracy of signal feature analysis is improved.

Inventors

  • Fei Wang

Assignees

  • GUANGZHOU SHIYUAN ELECTRONIC TECHNOLOGY COMPANY LIMITED
  • GUANGZHOU SHIYUAN ARTIFICIAL INTELLIGENCE RESEARCH INSTITUTE LIMITED COMPANY

Dates

Publication Date
20260512
Application Date
20220509

Claims (19)

  1. 1 . A method for detecting a starting point of a signal, the method comprising: receiving a sensing signal collected by a sensor; responsive to segmenting the sensing signal into at least one segment signal, calculating 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, calculating an instantaneous energy value at each sampling point in the signal band by using a sliding window method; acquiring a first energy ratio between the instantaneous energy value of a first sampling point and the instantaneous energy value of a second sampling 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, determining 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.
  2. 2 . The method according to claim 1 , wherein acquiring the signal band containing the starting point of the signal of the pulse signal based on each segment energy value further comprises: calculating a relative energy value for each of the at least one segment signal based on each segment energy value; and acquiring a segment signal with a largest relative energy value as the signal band containing the starting point of the signal of the pulse signal.
  3. 3 . The method according to claim 2 , wherein calculating the relative energy value for each of the at least one segment signal based on each segment energy value further comprises: calculating a first sum of the segment energy values for a first segment signal and calculating a second sum of the segment energy values for a prior segment signal of the first segment signal; and calculating a ratio of the first sum to the second sum, and determining the ratio as the relative energy value of the first segment signal; wherein the segment energy value includes the measured energy value at each sampling point in the segment signal, and the first segment signal is any segment signal in the at least one segment signal.
  4. 4 . The method according to claim 1 , wherein acquiring the signal band containing the starting point of the signal of the pulse signal based on each segment energy value further comprises: based on each segment energy value, acquiring the signal band containing the starting point of the signal of the pulse signal from each segment signal in view of a preset energy threshold value.
  5. 5 . The method according to claim 4 , wherein acquiring, based on each segment energy value, the signal band containing the starting point of the signal of the pulse signal from each segment signal in view of the preset energy threshold value further comprises: if a segment energy value of a second segment signal is greater than the energy threshold value, determining that the second segment signal contains the starting point of the signal of the pulse signal, wherein the segment energy value contains the measured energy value at each sampling point in the segment signal, and the energy threshold value is a threshold value used to determine whether the second segment signal contains the starting point of the signal, and the second segment signal is any segment signal in the at least one segment signal; acquiring a third segment signal that is prior to the second segment signal and continuous with the second segment signal, and acquiring a fourth segment signal that is after the second segment signal and continuous with the second segment signal; and based on the second segment signal, the third segment signal and the fourth segment signal, generating a signal band containing the starting point of the signal.
  6. 6 . The method according to claim 1 , wherein calculating, based on the measured energy value at each sampling point in the signal band, the instantaneous energy value at each sampling point in the signal band by using the sliding window further comprises: in the signal band, acquiring a target sampling-point set containing at least two sampling points based on a target sampling point, wherein the target sampling point is any sampling point in the signal band; and calculating an average value of the measured energy values at all sampling points in the target sampling-point set, and determining the average value as the instantaneous energy value at the target sampling point.
  7. 7 . The method according to claim 6 , wherein acquiring, in the signal band, the target sampling-point set containing at least two sampling points based on the target sampling point further comprises: in the signal band, assigning the target sampling point as a starting point, acquiring the sampling point whose sampling time is prior to that at the target sampling point, and generating a first sampling-point set meeting a first number; in the signal band, assigning the target sampling point as the starting point, acquiring the sampling point whose sampling time is later than that of the target sampling point, and generating a second sampling-point set meeting a second number; and based on the target sampling point, the first sampling-point set and the second sampling-point set, generating the target sampling-point set.
  8. 8 . The method according to claim 6 , wherein calculating the average value of the measured energy values at all sampling points in the target sampling-point set, and determining the average value as the instantaneous energy value of the target sampling point further comprises: acquiring a first total number of sampling points in the signal band, and acquiring a second total number of sampling points in the target sampling-point set; acquiring a row matrix with a number of columns meeting the first total number, wherein an element in the row matrix is a square of the measured energy value at each sampling point in the signal band; acquiring a column matrix with the number of rows meeting the second total number and all elements being 1; performing convolution operation on the row matrix and the column matrix; and dividing a result of the convolution operation by the second total number to obtain an energy value sequence containing the instantaneous energy values at all sampling points in the signal band, and acquiring the instantaneous energy value at the target sampling point in the energy value sequence.
  9. 9 . The method according to claim 8 , wherein performing convolution operation on the row matrix and the column matrix further comprises: performing the convolution operation on the row matrix and the column matrix, and using fast Fourier transform to accelerate the convolution operation.
  10. 10 . The method according to claim 1 , wherein acquiring the first energy ratio between the first sampling point and the second sampling point in the signal band further comprises: dividing the instantaneous energy value at the first sampling point by the instantaneous energy value at the second sampling point to obtain the first energy ratio between the first sampling point and the second sampling point.
  11. 11 . The method according to claim 1 , further comprising: in the sensing signal, assigning the starting point of the signal as a starting point to acquire an effective pulse signal segment whose length meets a set length.
  12. 12 . The method according to claim 11 , wherein assigning, in the sensing signal, the starting point of the signal as the starting point to acquire the effective pulse signal segment whose length meets the set length further comprises: acquiring a second energy ratio between a third sampling point and a fourth sampling point in the signal band, wherein the fourth sampling point is a prior sampling point of the third sampling point; if the second energy ratio is less than an end-ratio threshold value, determining a sampling time corresponding to the third sampling point as the signal end point of the pulse signal; and determining the set length of the pulse signal based on the starting point of the signal and the signal end point.
  13. 13 . 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.
  14. 14 . The device of claim 13 , wherein to acquire the signal band containing the starting point of the signal of the pulse signal based on each segment energy value, the processor is further to: calculate a relative energy value for each of the at least one segment signal based on each segment energy value; and acquire a segment signal with a largest relative energy value as the signal band containing the starting point of the signal of the pulse signal.
  15. 15 . The device of claim 14 , wherein to calculate the relative energy value for each of the at least one segment signal based on each segment energy value, the processor is further to: calculate a first sum of measured energy values at each sampling point in a first segment signal and calculating a second sum of measured energy values at each sampling point in a prior segment signal of the first segment signal; and calculate a ratio of the first sum to the second sum, and determining the ratio as the relative energy value of the first segment signal, wherein the segment energy value includes the measured energy value at each sampling point in the segment signal, and the first segment signal is any segment signal in the at least one segment signal.
  16. 16 . The device of claim 13 , wherein to acquire the signal band containing the starting point of the signal of the pulse signal based on each segment energy value, the processor is further to: based on each segment energy value, acquire the signal band containing the starting point of the signal of the pulse signal from each segment signal in view of a preset energy threshold value.
  17. 17 . The device of claim 16 , wherein to acquire, based on each segment energy value, the signal band containing the starting point of the signal of the pulse signal from each segment signal in view of the preset energy threshold value, the processor is further to: if a segment energy value of a second segment signal is greater than the energy threshold value, determine that the second segment signal contains the starting point of the signal of the pulse signal, wherein the segment energy value contains the measured energy value at each sampling point in the segment signal, and the energy threshold value is a threshold value used to determine whether the second segment signal contains the starting point of the signal, and the second segment signal is any segment signal in the at least one segment signal; acquire a third segment signal that is prior to the second segment signal and continuous with the second segment signal, and acquiring a fourth segment signal that is after the second segment signal and continuous with the second segment signal; and based on the second segment signal, the third segment signal and the fourth segment signal, generate a signal band containing the starting point of the signal.
  18. 18 . The device of claim 13 , wherein to calculate, based on the measured energy value at each sampling point in the signal band, the instantaneous energy value at each sampling point in the signal band by using the sliding window, the processor is further to: in the signal band, acquire a target sampling-point set containing at least two sampling points based on a target sampling point, wherein the target sampling point is any sampling point in the signal band; and calculate an average value of the measured energy values at all sampling points in the target sampling-point set, and determining the average value as the instantaneous energy value at the target sampling point.
  19. 19 . The device of claim 18 , wherein to acquire, in the signal band, the target sampling-point set containing at least two sampling points based on the target sampling point, the processor is further to: in the signal band, assign the target sampling point as a starting point, acquiring the sampling point whose sampling time is prior to that at the target sampling point, and generating a first sampling-point set meeting a first number; in the signal band, assign the target sampling point as the starting point, acquiring the sampling point whose sampling time is later than that of the target sampling point, and generating a second sampling-point set meeting a second number; and based on the target sampling point, the first sampling-point set and the second sampling-point set, generate the target sampling-point set.

Description

CROSS-REFERENCE TO RELATED APPLICATIONS This application is the U.S. National Phase under 35. U.S.C. § 371 of International Application PCT/CN2022/091683, filed May 9, 2022. The disclosure of the above-mentioned application is hereby incorporated by reference in its entirety. TECHNICAL FIELD The present disclosure relates to the field of computer technology, in particular to a method and device for detecting a starting point of a signal, a storage medium and an electronic device. BACKGROUND Acquiring the starting point of the pulse signal can help acquire an accurate and effective pulse signal segment, which is helpful for signal feature analysis and information extraction, etc. The current approaches search the received signal to find the signal segment in which the starting point of the pulse signal is located. The current implemented approaches can only determine an approximate range of the starting point of a signal. The position of the starting point of a signal is overly unclear, which affects the accuracy of determination of the starting point of a signal, leading to impacts on the accuracy and efficiency of the signal feature analysis. SUMMARY An embodiment of the present disclosure provides a method and device for detecting starting point of a signal, a storage medium and an electronic device, which can calculate an instantaneous energy value by a sliding window method, and use an energy ratio to find the starting point of a signal with a sharp increase in energy value, thereby improving the accuracy of detecting starting point of a signal, and further improving the accuracy of signal feature analysis. The technical solution is as follows. In a first aspect, an embodiment of the present disclosure provides a method for detecting a starting point of a signal, the method includes: receiving a sensing signal collected by a sensor;responsive to segmenting the sensing signal into at least one segment signal, calculating a segment energy value for each of the at least one segment signal, and acquiring a signal band containing a starting point of a signal of a pulse signal based on each segment energy value of each segment signal;based on a measured energy value at each sampling point in the signal band, calculating an instantaneous energy value at each sampling point in the signal band by using a sliding window method;acquiring a first energy ratio between a first sampling point and a second sampling point in the signal band, wherein the second sampling point is a prior sampling point of the first sampling point; andif the first energy ratio is greater than an initial-ratio threshold value, determining a sampling time corresponding to the first sampling point as the starting point of a signal. In a second aspect, an embodiment of the present disclosure provides a device for detecting a starting point of a signal, the device includes a sensor, a processor and a starting-point acquisition module; wherein one end of the processor is connected with the sensor, and the other end of the processor is connected with the starting-point acquisition module;the sensor acquires a sensing signal and sends the sensing signal to the processor;the processor divides the sensing signal into at least one segment signal, calculates a segment energy value for each of the at least one segment signal, and acquires a signal band containing a starting point of a signal of a pulse signal based on each segment energy value;the processor calculates an instantaneous energy value at each sampling point in the signal band by the sliding window method based on a measured energy value at each sampling point in the signal band;the processor acquires a first energy ratio between a first sampling point and a second sampling point in the signal band, and the processor sends the first energy ratio to the starting-point acquisition module, wherein the second sampling point is a prior sampling point of the first sampling point;if the first energy ratio is greater than an initial-ratio threshold value, the starting-point acquisition module determines a sampling time corresponding to the first sampling point as the starting point of a signal. In a third aspect, an embodiment of the present disclosure provides a computer storage medium, the computer storage medium stores a plurality of instructions, wherein the instructions are suitable to be loaded by the processor to perform the above method steps. In a fourth aspect, an embodiment of the present disclosure provides an electronic device, and the electronic device may include a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable to be loaded by the processor to perform the above method steps. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly describe technical solutions in embodiments of the present disclosure or the present technology, the following will briefly introduce the drawings needed in the description of the embodiments or