Signal starting point detection method and apparatus, storage medium, and electronic device
Calculating the instantaneous energy value through sliding window method and determining the signal starting point using the energy ratio, the problem of inaccurate detection of signal starting point in the prior art is solved, and the accuracy and efficiency of signal characteristic analysis are improved.
Patent Information
- Application Number
- PCT/CN2022/091683
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2022-05-09
- Publication Date
- 2024-11-07
AI Technical Summary
The existing signal starting point detection methods cannot accurately determine the position of the signal starting point, resulting in the impact of the accuracy and efficiency of signal characteristic analysis.
Calculate the instantaneous energy value through sliding window method, and use the energy ratio to find the starting point of the signal with a sharp increase in energy value, so as to improve the accuracy of detection of the starting point of the signal.
The accuracy and efficiency of signal starting point detection are improved, thereby improving the accuracy of signal characteristic analysis.
Smart Images

Figure CN2022091683_07112024_PF_FP_ABST
Abstract
Description
Signal starting point detection method, device, storage medium and electronic equipment Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a signal starting point detection method, device, storage medium and electronic device. Background Art
[0002] Determining the starting point of a pulse signal helps identify the precise, valid pulse signal segment, facilitating signal feature analysis and information extraction. Existing approaches rely on searching for the segment within the received signal where the pulse signal's starting point lies. However, this approach only provides an approximate determination of the signal's starting point within the signal. This location is often ambiguous, affecting the accuracy of signal starting point determination and, consequently, the accuracy and efficiency of signal feature analysis.
[0003] Summary of the Invention
[0004] The present invention provides a method, device, storage medium, and electronic device for detecting a signal starting point. These methods can calculate instantaneous energy values using a sliding window method and use energy ratios to find the signal starting point where the energy value increases sharply, thereby improving the accuracy of signal starting point detection and, consequently, signal feature analysis. The technical solution is as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for detecting a signal starting point, the method comprising:
[0006] Receiving sensor signals collected by sensors;
[0007] After dividing the sensing signal into at least one segmented signal, calculating a segmented energy value of each segmented signal, and obtaining a signal band including a signal starting point of a pulse signal based on each segmented energy value;
[0008] Based on the measured energy value of each sampling point in the signal band, calculating the instantaneous energy value of each sampling point in the signal band using a sliding window method;
[0009] Acquire a first energy ratio between a first sampling point and a second sampling point in the signal band, where the second sampling point is a sampling point preceding the first sampling point;
[0010] If the first energy ratio is greater than the starting ratio threshold, the sampling moment corresponding to the first sampling point is confirmed as the signal starting point.
[0011] In a second aspect, an embodiment of the present application provides a signal starting point detection device, the device comprising a sensor, a processor, and a starting point acquisition module; wherein,
[0012] One end of the processor is connected to the sensor, and the other end of the processor is connected to the starting point acquisition module;
[0013] The sensor acquires a sensing signal and sends the sensing signal to the processor;
[0014] After the processor divides the sensing signal into at least one segmented signal, it calculates a segmented energy value of each segmented signal, and obtains a signal band including a signal starting point of a pulse signal based on each segmented energy value;
[0015] The processor calculates the instantaneous energy value of each sampling point in the signal band using a sliding window method based on the measured energy value of each sampling point in the signal band;
[0016] The processor obtains a first energy ratio between a first sampling point and a second sampling point in the signal band, where the second sampling point is a sampling point preceding the first sampling point, and sends the first energy ratio to the starting point acquisition module;
[0017] If the first energy ratio is greater than the starting ratio threshold, the starting point acquisition module confirms the sampling moment corresponding to the first sampling point as the signal starting point.
[0018] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
[0019] In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0021] FIG1 is a schematic diagram illustrating an example of obtaining a signal starting point provided in an embodiment of the present application;
[0022] FIG2 is a flow chart of a signal starting point detection method provided in an embodiment of the present application;
[0023] FIG3 is a flow chart of a signal starting point detection method provided in an embodiment of the present application;
[0024] FIG4 is a schematic diagram illustrating an example of signal band acquisition provided by an embodiment of the present application;
[0025] FIG5 is a schematic diagram illustrating an example of obtaining an instantaneous energy value provided in an embodiment of the present application;
[0026] FIG6 is a schematic diagram illustrating an example of obtaining a sampling point set provided in an embodiment of the present application;
[0027] FIG7 is a schematic diagram illustrating an example of obtaining a sampling point set provided in an embodiment of the present application;
[0028] FIG8 is a schematic diagram of an example of an energy ratio curve provided in an embodiment of the present application;
[0029] FIG9 is a schematic structural diagram of a signal starting point detection device provided in an embodiment of the present application;
[0030] FIG10 is a schematic structural diagram of a signal starting point detection device provided in an embodiment of the present application;
[0031] FIG11 is a schematic structural diagram of a signal starting point detection device provided in an embodiment of the present application;
[0032] FIG12 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0034] The signal starting point detection method provided in the embodiment of the present application can be implemented by a computer program and can be run on a signal starting point detection device based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application. The signal starting point detection device can obtain a sensor signal through a sensor, wherein the sensor can convert the received information into a sensor signal in the form of an electrical signal through an analog-to-digital converter (ADC). It is understandable that after the ADC is performed on the received information, an amplification process can be performed to obtain a sensor signal. In other words, the sensor signal mentioned in the embodiment of the present application can be a digital signal obtained after pre-processing such as analog-to-digital conversion of the original signal collected by the sensor. The signal starting point detection device can include a sensor, and the signal starting point detection device can directly use the included sensor to obtain the sensor signal. If the signal starting point detection device does not include a sensor, the signal starting point detection device can receive the sensor signal obtained by other sensors. It is understandable that the amplitude of the sensor signal detected by the sensor can be converted into the energy value of the sensor signal.
[0035] The signal starting point detection method provided in the embodiment of the present application can be applied to an interactive tablet. The interactive tablet can be an integrated device that controls the content displayed on the display screen and realizes human-computer interaction through touch technology, which integrates one or more functions such as a projector, an electronic whiteboard, a screen, an audio system, a television, and a video conferencing terminal. The interactive tablet includes at least one operation panel. In addition, the interactive tablet also includes a processing device, a touch sensor, and a vibration sensor, and the vibration sensor and the touch sensor are both communicatively connected to the processing device. The processing device is used to execute the signal starting point detection method provided in the embodiment of the present application, and the sensor signal collected by the vibration sensor is the detection object of the signal starting point detection method provided in the embodiment of the present application. The operation panel can be a glass panel covering the display screen of the interactive tablet. Optionally, the interactive tablet can be a smart blackboard, which includes an ordinary blackboard and a display screen. There may be no display screen below the operation panel, but a traditional ordinary blackboard. There may also be a display screen below the operation panel.
[0036] The vibration sensor provided by the present solution is arranged on the operating panel, and is used to detect the vibration acoustic signal generated when the touch object touches the operating panel of the interactive flat panel. For example, a piezoelectric vibration sensor is installed at the frame of the operating panel or on the inner side of the cover. When the touch object touches the operating panel, a characteristic vibration acoustic signal is generated. The vibration acoustic signal starts from the contact point and propagates to the surrounding areas along the operating panel, or propagates to the inner side of the operating panel. The piezoelectric vibration sensor located at the frame of the operating panel or on the inner side of the cover can convert the original vibration acoustic signal into a voltage signal, and transmit the voltage signal to an IC chip with a temperature compensation circuit for amplification processing, and convert it into a digital vibration acoustic signal through an analog-to-digital conversion circuit. The digital vibration acoustic signal is the sensing signal processed by the signal starting point detection method provided in the embodiment of the present application. In addition, the vibration sensor can also be a capacitive vibration sensor. In this embodiment, the capacitive vibration sensor located at the edge of the operation panel or on the inside of the cover can convert the original vibration acoustic signal into an electrical signal (here reflected as a change in capacitance), and send the electrical signal to an IC chip with a temperature compensation circuit for amplification processing, and convert it into a digital vibration acoustic signal through an analog-to-digital conversion circuit.
[0037] The vibration sensor is specifically installed at a location where it can transmit vibrations generated by the operating panel, not necessarily where the vibrations are generated. For example, the vibration sensors can be placed at the four corners of the operating panel. Other arrangements are also possible, such as at the midpoints of each side of the rectangular frame of the operating panel. The number of vibration sensors can also be other, such as two or five. As long as the vibration sensors can detect vibrations generated by a touch object contacting the operating panel during touch operation, the specific number of vibration sensors can be tailored to the size of the operating panel and the detection accuracy. Generally speaking, the larger the operating panel and the higher the detection accuracy required, the more vibration sensors are required. The vibration sensor can be mounted directly on the surface of the operating panel, such as on the top or bottom surface of the operating panel, to receive vibrations transmitted by the operating panel and improve the accuracy of touch detection. The vibration sensor can also be mounted within the frame of the operating panel to minimize impact on internal mechanisms and reduce common-mode noise interference from the operating panel. Of course, the vibration sensor can also be mounted on other components that come into contact with the operating panel, transmitting vibrations generated by the operating panel through these other components.
[0038] The sources of vibroacoustic signals include various noise-generating components within the interactive tablet (such as motors, speakers, and fans) and noise-generating devices outside the interactive tablet (such as indoor air conditioners and televisions). During use, these components can cause the vibration sensor to detect various noise signals, which in turn causes the vibroacoustic signal collected by the vibration sensor to include noise signals. Therefore, it is crucial to accurately locate the onset of the vibroacoustic signal from the signal containing the noise signal, thereby extracting the vibroacoustic signal generated when the touch object touches the interactive tablet's operating panel.
[0039] Please refer to Figure 1, which provides an example schematic diagram of obtaining a signal starting point for an embodiment of the present application. It can be understood that the sensor signal can include not only a pulse signal but also a noise signal. Therefore, the sensor signal still has a certain amount of energy during the time period when the pulse signal does not appear. When the pulse signal appears, the energy value of the sensor signal will suddenly increase. Therefore, the signal starting point detection device can set an energy threshold value. If the energy value of the sensor signal is greater than the energy threshold value, it indicates that a pulse signal appears in the sensor signal. The energy threshold value is the threshold value used to determine whether a pulse signal appears in the sensor signal. The signal starting point detection device can divide the sensor signal into at least one segmented signal of equal duration. As shown in Figure 1, the sensing signal between time point t1 and time point t2 is a segmented signal. Before time point t1, the energy value of the sensing signal has never been greater than the energy threshold value, indicating that no pulse signal appeared before time point t1. Although there is energy value in the sensing signal, it should be a noise signal. The energy value of the sensing signal between time point t1 and time point t2 exceeds the energy threshold value, indicating that a pulse signal appeared between time point t1 and time point t2. The signal starting point detection device can confirm that there is a signal starting point of the pulse signal in the segmented signal between time point t1 and time point t2.
[0040] The signal starting point detection method provided by the present application is described in detail below with reference to specific embodiments.
[0041] Please refer to Figure 2, which is a flowchart of a signal starting point detection method according to an embodiment of the present application. As shown in Figure 2, the method according to the embodiment of the present application may include the following steps S101-S104.
[0042] S101, receiving a sensing signal collected by a sensor, dividing the sensing signal into at least one segmented signal, calculating a segmented energy value of each segmented signal, and obtaining a signal band including a signal starting point of a pulse signal based on each segmented energy value.
[0043] In one embodiment, the signal starting point detection device can divide the sensing signal acquired by the sensor into at least one segmented signal of the same duration, and can obtain the segmented energy value of each segmented signal. It can be understood that based on the sensing signal acquired by the sensor, the measured energy value of the sensing signal at each time point is obtained at the same time. The signal starting point detection device can determine a number of sampling points in the signal band according to the sampling period. The sampling period can be the initial setting of the signal starting point detection device, or it can be set by relevant staff and saved in the signal starting point detection device. The segmented energy value can include the measured energy value corresponding to each sampling point in the segmented signal. The signal starting point detection device can traverse all segmented signals and determine the signal band containing the signal starting point of the pulse signal according to the segmented energy value of the segmented signal.
[0044] The signal starting point detection device can obtain the signal band based on the relative energy value of each segmented signal. The relative energy value is the ratio of the segmented energy values of two adjacent segmented signals. For example, the first segmented signal is any segmented signal among at least one segmented signal. The ratio of the segmented energy value of the first segmented signal to the segmented energy value of the segmented signal preceding the first segmented signal is the relative energy value of the first segmented signal. It can be understood that the ratio of the segmented energy values can be the ratio of the sum of the measured energy values of each sampling point in the segmented energy value. The signal starting point detection device can identify the segmented signal with the largest segmented energy value as the signal band.
[0045] The signal starting point detection device can traverse all the segmented signals in chronological order. If the maximum energy value among the segmented energy values of the second segmented signal is greater than the energy threshold value, it means that a pulse signal appears in the second segmented signal, and the signal starting point of the pulse signal exists in the second segmented signal. The energy threshold value can be the initial setting of the signal starting point detection device, or it can be set by relevant staff and saved in the signal starting point detection device. The energy threshold value can be slightly higher than the energy of the noise signal, but less than the energy of the pulse signal. The signal starting point detection device can confirm the second segmented signal as a signal band containing the signal starting point, or it can combine several segmented signals before the second segmented signal and several segmented signals after the second segmented signal into a signal band together with the second segmented signal to avoid missing information in the signal.
[0046] S102 , based on the measured energy value of each sampling point in the signal band, calculate the instantaneous energy value of each sampling point in the signal band using a sliding window method.
[0047] In one embodiment, due to the influence of noise such as ADC accuracy and circuit, the energy value of the sampling point may have certain random jumps, resulting in inaccurate measured energy values. Therefore, the signal starting point detection device can use a sliding window method to obtain a target sampling point from all sampling points in the signal band, calculate the average of the measured energy values of the target sampling point and at least two sampling points around the target sampling point, and use the average as the instantaneous energy value of the target sampling point to reduce the impact of noise disturbance. The sliding window method is to slide the window with a certain step size and calculate the measured energy values of the sampling points within the window to obtain the instantaneous energy value of the target sampling point. For example, the sliding window method is used with a window length of ten sampling periods and a step length of one sampling period, and the average of the measured energy values of all sampling points within the window is used as the instantaneous energy value of the target sampling point.
[0048] S103: Acquire a first energy ratio between a first sampling point and a second sampling point in a signal band.
[0049] In one embodiment, when a pulse signal occurs, that is, at the signal starting point of the pulse signal, the energy value of the sensing signal increases sharply. The signal starting point detection device can obtain 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, where the second sampling point is the sampling point immediately preceding the first sampling point. For example, the first energy ratio between the first sampling point and the second sampling point can be obtained by dividing the instantaneous energy value of the first sampling point by the instantaneous energy value of the second energy value.
[0050] S104: If the first energy ratio is greater than the starting ratio threshold, the sampling moment corresponding to the first sampling point is confirmed as the signal starting point.
[0051] It is understood that the energy threshold is used to determine whether a signal starting point exists in a segmented signal, while the starting ratio threshold is used to determine whether the sampling moment corresponding to a sampling point is a signal starting point. The energy threshold and the starting ratio threshold have different functions and can be set to different values. The starting ratio threshold can be an initial setting of the signal starting point detection device or can be set by relevant personnel and stored in the signal starting point detection device. The starting ratio threshold can be a number significantly greater than 1, for example, 10.
[0052] In one embodiment, it is understood that, in the sensing signal, the instantaneous energy value at the signal starting point is substantially the same as the average instantaneous energy value of the pulse signal, while the sampling point immediately preceding the signal starting point is noise, and thus has a very small instantaneous energy value, much smaller than the average instantaneous energy value of the pulse signal. Therefore, the energy ratio between the instantaneous energy value corresponding to the signal starting point and the instantaneous energy value corresponding to the immediately preceding sampling point is a number much larger than 1. If the signal starting point detection device detects that the first energy ratio is greater than a starting ratio threshold value, then the sampling moment corresponding to the first sampling point is the signal starting point of the pulse signal. The starting ratio threshold value is used to determine whether a sampling point is the signal starting point of the pulse signal. For example, if the first energy ratio of the first sampling point is greater than the starting ratio energy value, then the sampling moment corresponding to the first sampling point is the signal starting point. If the first energy ratio is less than or equal to the starting ratio energy value, then the sampling moment corresponding to the second sampling point is not the signal starting point.
[0053] In an embodiment of the present application, after dividing the sensor signal into at least one segmented signal, the segmented energy value of each segmented signal is calculated, and based on each segmented energy value, the signal band containing the signal starting point of the pulse signal is obtained. Based on the measured energy value of each sampling point in the signal band, the instantaneous energy value of each sampling point in the signal band is calculated using a sliding window method, and a first energy ratio between the first sampling point and the second sampling point in the signal band is obtained. If the first energy ratio is greater than the starting ratio threshold, the sampling time corresponding to the first sampling point is determined as the signal starting point. By calculating the instantaneous energy value using a sliding window method and using the energy ratio to find the signal starting point where the energy value suddenly increases, the accuracy of signal starting point detection is improved, thereby improving the accuracy of signal feature analysis.
[0054] Please refer to Figure 3, which is a flowchart of a signal starting point detection method according to an embodiment of the present application. As shown in Figure 3, the method according to the embodiment of the present application may include the following steps S201-S206.
[0055] S201, receiving a sensing signal collected by a sensor, dividing the sensing signal into at least one segmented signal, calculating a segmented energy value of each segmented signal, and obtaining a signal band including a signal starting point of a pulse signal based on each segmented energy value.
[0056] In a first feasible implementation of the embodiment of the present application, the signal starting point detection device can divide the sensing signal acquired by the sensor into at least one segmented signal of the same duration, and can acquire the segmented energy value of each segmented signal. It can be understood that when the sensor acquires the sensing signal, it can also acquire the measured energy value of the sensing signal at each time point. The signal starting point detection device can determine a number of sampling points in the signal band according to the sampling period. The sampling period can be the initial setting of the signal starting point detection device, or it can be set by relevant staff and saved in the signal starting point detection device. The segmented energy value can include the measured energy value corresponding to each sampling point in the segmented signal. The signal starting point detection device can traverse all segmented signals and determine the signal band containing the signal starting point of the pulse signal according to the segmented energy value of the segmented signal.
[0057] The signal starting point detection device can calculate the relative energy value of each segmented signal based on the energy value of each segment, and then use the segmented signal with the largest relative energy value as the signal starting point containing the pulse signal. The relative energy value is the ratio of the segmented energy values of two adjacent segmented signals. For example, the first segmented signal is any segmented signal among at least one segmented signal. A first sum of the segmented energy values of the first segmented signal can be calculated. The first sum is the sum of the measured energy values of each sampling point in the first segmented signal. A second sum of the segmented energy values of the segmented signal preceding the first segmented signal can be calculated. The second sum is the sum of the measured energy values of each sampling point in the segmented signal preceding the first segmented signal. Then, the ratio of the first sum to the second sum is calculated. This ratio is the relative energy value of the first segmented signal. It is understood that the ratio of the segmented energy values can be the ratio of the sum of the measured energy values of each sampling point in the segmented energy values. The signal starting point detection device can identify the segmented signal with the largest segmented energy value as the signal band containing the signal starting point.
[0058] In a second feasible implementation of the embodiment of the present application, the signal starting point detection device can also find the signal band containing the signal starting point based on the segmented energy value of each segmented signal in combination with a preset energy threshold value. The energy threshold value is a threshold value used to determine whether the second segmented signal contains the signal starting point. The signal starting point detection device can traverse all segmented signals in chronological order. If the maximum energy value among the segmented energy values of the second segmented signal is greater than the energy threshold value, it means that a pulse signal appears in the second segmented signal, and the signal starting point of the pulse signal exists in the second segmented signal. The energy threshold value can be the initial setting of the signal starting point detection device, or it can be set by relevant staff and saved in the signal starting point detection device. The energy threshold value can be slightly higher than the energy of the noise signal, but less than the energy of the pulse signal. In order to avoid losing information in the pulse signal and to avoid incorrect estimation of the signal segment where the signal starting point is located, the signal starting point detection device can obtain a third segmented signal that is before the second segmented signal and continuous with the second segmented signal, and then obtain a fourth segmented signal that is after the second segmented signal and continuous with the second segmented signal, wherein the third segmented signal can include a first number of segmented signals, and the fourth segmented signal can include a second number of segmented signals, and the first number and the second number can be equal or unequal, and then the third segmented signal, the second segmented signal and the fourth segmented signal are combined to generate a signal band including the signal starting point.
[0059] Please refer to Figure 4, which provides an example schematic diagram of signal band acquisition for an embodiment of the present application. The sensor can divide the sensing signal into several segmented signals of the same duration. The signal starting point detection device can traverse all signal bands in chronological order and save them. If the maximum energy value in the segmented energy values of the second segmented signal is greater than the energy threshold value, the signal starting point detection device confirms that a pulse signal appears in the second segmented signal, that is, the signal starting point of the pulse signal is in the second segmented signal. The signal starting point detection device obtains a first number of segmented signals in the saved signal segment to form a third segmented signal, and then obtains a second number of segmented signals after the second segmented signal to form a fourth segmented signal. For example, as shown in Figure 4, the first number and the second number can be the same, both 5, that is, the five segmented signals before and the five segmented signals after the second segmented signal are obtained, a total of seven segmented signals forming the signal band.
[0060] Optionally, the signal starting point detection device estimates the pulse signal length based on historical experience and data. The length of the signal band can be an integer multiple of the pulse signal length. In order to obtain complete pulse signal information, the length of the signal band can be greater than twice the pulse signal length.
[0061] S202 : Acquire a sampling point set including at least two sampling points based on a target sampling point in a signal band.
[0062] In one embodiment, due to the influence of noise such as ADC accuracy and circuits, the energy values of sampling points may experience certain random jumps, resulting in inaccurate measured energy values. Therefore, the signal starting point detection device can use a sliding window method to obtain a target sampling point from all sampling points in the signal band, calculate the average of the measured energy values of the target sampling point and at least two sampling points surrounding the target sampling point, and use the average as the instantaneous energy value of the target sampling point to reduce the impact of noise. Taking the target sampling point among several sampling points in the signal band as an example, the target sampling point is any sampling point in the signal band. The signal starting point detection device can obtain a sampling point set containing at least two sampling points in the signal band based on the target sampling point, where all points in the sampling point set are surrounding the target sampling point.
[0063] The signal starting point detection device can, in the signal band, take the target sampling point as the starting point, obtain a first sampling point set whose sampling time is earlier than the target sampling point and satisfies a first number, then take the target sampling point as the starting point, sample later than the target sampling point, and satisfy a second number of a second sampling point set, and then generate a target sampling point set based on the target sampling point, the first sampling point set, and the second sampling point set, where the first number and the second number can be equal or unequal, and can be the initial setting of the signal starting point detection device, or can be set by relevant staff and saved in the signal starting point detection device.
[0064] Optionally, the time interval between the earliest sampling point and the latest sampling point in the target sampling point set is determined as the window length for calculating the instantaneous energy value using a sliding window method. The sliding window method slides the window with a certain step size and calculates the measured energy values of the sampling points within the window to obtain the instantaneous energy value of the target sampling point. The pulse signal length can be an integer multiple of the window length, and the sampling time of the target sampling point is the median of the sampling times of all sampling points in the target sampling point set. Please also refer to Figure 5, which provides an example schematic diagram of instantaneous energy value acquisition in an embodiment of the present application. If the window length is ten sampling periods, the first number and the second number are both 5, there are five sampling points in the first sampling point set, there are also five sampling points in the second sampling point set, and the target sampling point set consists of eleven sampling points in total. In this case, the instantaneous energy value of the target sampling point is calculated based on the measured energy values of all sampling points in the target sampling point set. It can be understood that the signal starting point detection device adopts a sliding window method to obtain the target sampling point set and calculate the instantaneous energy value. For example, the sampling point set is determined by a sliding window method with a window length of ten sampling periods and a step length of one sampling period. For example, in Figure 5, the measured energy values of all sampling points in the sampling point set A can be used to calculate the instantaneous energy value of the sampling point A, and then the length of one sampling period can be sliding, and the measured energy values of all sampling points in the sampling point set B can be used to calculate the instantaneous energy value of the sampling point B.
[0065] Optionally, if the number of sampling points in the signal band whose sampling times are earlier than the target sampling point is less than the ninth number, the signal starting point detection device may add all sampling points in the signal band whose sampling times are earlier than the target sampling point to the first sampling point set. Please also refer to FIG. 6 , which provides an example schematic diagram of obtaining a sampling point set in an embodiment of the present application. If the first number and the second number are both 5, but the target sampling point is the third sampling point in the signal band, and there are only two sampling points in the signal band whose sampling times are earlier than the target sampling point, the signal starting point may add the first sampling point and the second sampling point to the first sampling point set, thereby changing the first number to 2. Then, the five sampling points after the target sampling point are added to the second sampling point set. Then, the first sampling point set having two sampling points, the second sampling point set having five sampling points, and the target sampling point constitute a target sampling point set having eight sampling points. The signal starting point detection device may calculate the instantaneous energy value of the target sampling point based on the average of the measured energy values of these eight sampling points.
[0066] It is understood that if the number of sampling points in the signal band whose sampling times are later than the target sampling point is less than the second number, the signal starting point detection device can add all sampling points in the signal band whose sampling times are later than the target sampling point to the second sampling point set. This eliminates the need to search for other sampling point data in the sensor signal; the instantaneous energy values of all sampling points can be calculated directly using the data in the signal band, thereby improving the efficiency of instantaneous energy calculation.
[0067] Optionally, if the number of sampling points in the signal band whose sampling times are earlier than the target sampling point is less than a first number, the signal starting point detection device may obtain sampling points in the sensor signal so that the number of first average points satisfies the first number. Please refer to FIG. 7 , which provides an example schematic diagram of obtaining a sampling point set in an embodiment of the present application. If the first number and the second number are both 5, but the target sampling point is the third sampling point in the signal band, and there are only two sampling points in the signal band whose sampling times are earlier than the target sampling point, the signal starting point detection device may obtain the three sampling points before the signal band from the sensor signal, and together with the first and second sampling points in the signal band, form a first sampling point set that satisfies the first number. The five sampling points after the target sampling point are then added to the second sampling point set. The first sampling point set, the target sampling point, and the second sampling point set then constitute a sampling point set comprising 11 sampling points. The signal starting point detection device may calculate the instantaneous energy value of the target sampling point based on the average of the measured energy values of these 11 sampling points.
[0068] It is understood that if the number of sampling points in the signal band that are later than the target sampling point is less than the second number, the signal starting point detection device can obtain sampling points from the sensor signal so that the number of sampling points in the second sampling point set meets the second number. The instantaneous energy values of all target sampling points are calculated using the average of the measured energy values of the same number of sampling points, thereby improving the accuracy of the instantaneous energy values.
[0069] S203 , calculating an average value of the measured energy values of all sampling points in the target sampling point set, and confirming the average value as the instantaneous energy value of the target sampling point.
[0070] In one embodiment, the signal starting point detection device may calculate the average of the measured energy values of all sampling points in the target sampling point set, and then determine the average as the instantaneous energy value of the target sampling point. The signal starting point detection device may obtain the square of the measured energy values of all sampling points in the target sampling point set, and then add the squares of the measured energy values of all sampling points in the target sampling point set and divide the sum by the number of sampling points in the target sampling point set to obtain the instantaneous energy value of the target sampling point. The formula is as follows:
[0071]
[0072] Wherein, j=0,1,2,...,N-1, j represents the jth sampling moment and the corresponding sampling point in the signal band, i=0,1,2,...,N-1, i represents the ith sampling moment and the corresponding sampling point in the signal band, and there are N sampling moments and corresponding sampling points in the signal band, N is the first total number of sampling points in the signal band, E j represents the instantaneous energy value corresponding to the sampling point at the jth sampling moment, L is the second total number of sampling points in the target sampling point set, s i It is the measured energy value obtained by the sensor at the i-th sampling moment, or it can be the instantaneous level obtained by the sensor.
[0073] Optionally, the signal starting point detection device can sequentially calculate the square of the measured energy value in the target sampling point set corresponding to each sampling point and then average them, or it can directly obtain the sequence of instantaneous energy values of all sampling points in the signal band by using a convolution operation. It can be understood that the above calculation of E j The formula can be transformed into the multiplication of two matrices:
[0074]
[0075] in, P j is the sequence of squares of the energy values of each sampling point in the target sampling point set corresponding to the sampling point at the jth sampling moment, and h is a column matrix whose number of columns satisfies the second total number and whose elements are all 1. In this way, the energy value sequence can be directly obtained by convolution:
[0076]
[0077] Where E is the energy value sequence containing the instantaneous energy values of all sampling points in the signal band, P is a row matrix whose number of columns satisfies the first total number. The elements in P are the squares of the measured energy values of each sampling point in the signal band. h is a column matrix whose number of rows satisfies the second total number and whose elements are all 1. By performing a convolution operation on P and h and dividing the convolution operation result by the second total number L, an energy value sequence can be obtained, and the instantaneous energy value of the target sampling point can be obtained from the energy value sequence.
[0078] Optionally, the computational effort required for the convolution operation is N×(N+L-1) real number multiplications, so the signal starting point detection device can use fast Fourier transform to accelerate the convolution operation. The signal starting point detection device can perform fast Fourier transform on P and h to obtain F P and F h , FP and F h Multiply the corresponding points, perform inverse fast Fourier transform on the multiplication result and divide it by the second total number L to obtain the energy value sequence:
[0079] F P =FFT(P)
[0080] F h =FFT(h)
[0081] Y(k)=F P (k)×F h (k)
[0082]
[0083] Wherein, k=0, 1, 2, ..., N-1, IFFT(Y) is the result of the inverse fast Fourier transform of Y(k). It can be understood that the use of fast Fourier transform to accelerate the convolution operation can reduce the number of real number multiplications, reduce the amount of calculation required by the signal starting point detection device when detecting the signal starting point, and improve the detection efficiency.
[0084] S204: Divide the instantaneous energy value of the first sampling point by the instantaneous energy value of the second sampling point to obtain a first energy ratio between the first sampling point and the second sampling point.
[0085] In one embodiment, when a pulse signal occurs, that is, at the signal starting point of the pulse signal, the energy value of the sensing signal increases sharply. The signal starting point detection device can obtain 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, where the second sampling point is the sampling point immediately preceding the first sampling point.
[0086] S205: If the first energy ratio is greater than the starting ratio threshold, the sampling moment corresponding to the first sampling point is confirmed as the signal starting point.
[0087] In one embodiment, the starting ratio threshold value can be an initial setting of the signal starting point detection device, or it can be set by relevant personnel and stored in the signal starting point detection device. The starting ratio threshold value can be a number much greater than 1, for example, it can be set to 10. It is understandable that in the sensing signal, the energy value of the signal starting point is substantially the same as the energy value of the pulse signal, while the instantaneous energy value of the sampling point before the signal starting point will be very small, much smaller than the energy value of the pulse signal. Therefore, the energy ratio between the instantaneous energy value corresponding to the signal starting point and the instantaneous energy value corresponding to the previous sampling point is a number much greater than 1. If the signal starting point detection device detects that the first energy ratio is greater than the starting ratio threshold value, it indicates that the sampling moment corresponding to the first sampling point is the signal starting point of the pulse signal.
[0088] Please refer to FIG8 , which provides an example schematic diagram of an energy ratio curve for an embodiment of the present application. Before a pulse signal appears in the signal band, the instantaneous energy values between adjacent sampling points are similar, and the energy ratio between adjacent sampling points is approximately 1. For example, in the time period t0 to t1 in FIG8 , no pulse signal appears, and the energy ratio is approximately 1. However, when the signal starting point of a pulse signal appears, the instantaneous energy value at the signal starting point is much greater than the instantaneous energy value of the sampling point before the signal starting point. The energy ratio should be a number greater than 1. For example, if the starting ratio threshold value is 5, and the energy ratio at sampling time t1 in FIG8 is greater than 5, then the signal starting point detection device can identify sampling time t1 as the signal starting point. It can be understood that in a pulse signal, the instantaneous energy values of adjacent sampling points are also substantially the same, and are all comparable to the pulse energy of the pulse signal. Therefore, in a pulse signal, the energy ratio between adjacent sampling points is also approximately 1. For example, the time period t1 to t2 in FIG8 is the time period when the pulse signal exists. Similarly, the instantaneous energy value at the signal end point of the pulse signal is much smaller than the pulse energy of the previous sampling point, so the energy ratio of the signal end point of the pulse signal is less than 1. The signal starting point detection device can set the end ratio threshold value. If the energy ratio of the sampling point is less than the end ratio threshold value, it indicates that the sampling point is the signal end point. If the end ratio threshold value is 0.5, and the energy ratio at the t2 sampling moment is less than 0.5, the signal starting point detection device can confirm the t2 sampling moment as the signal end point.
[0089] S206 , obtaining a valid pulse signal segment having a length that meets a set length in the sensing signal, starting from the signal starting point.
[0090] In one embodiment, the signal starting point detection device can obtain a set length of the pulse signal. The set length is the length of the pulse signal and can be estimated based on historical experience and data. The signal starting point detection device can use the signal starting point as the starting point in the sensor signal to obtain a valid pulse signal segment whose length meets the set length. The valid pulse signal segment includes the entire pulse signal and does not include noise signals before and after the pulse signal. This facilitates analysis and processing of the pulse signal, obtains characteristic information of the pulse signal, improves the efficiency of pulse signal analysis, and reduces the amount of computation.
[0091] Optionally, when the signal starting point detection device obtains a valid pulse signal segment, the length of the valid pulse signal segment can be slightly longer than the set length of the pulse signal, so as to avoid losing information in the pulse signal and ensure the integrity of the pulse signal.
[0092] Optionally, in addition to estimating the set length based on historical experience and data, the signal starting point detection device can also calculate the signal length of the pulse signal based on the signal end point obtained in the signal band. The signal starting point detection device can obtain the second energy ratio between the third sampling point and the fourth sampling point in the signal band, where the fourth sampling point is the previous sampling point of the third sampling point. If the second energy ratio is less than the end ratio threshold value, the signal starting point detection device will confirm the sampling moment corresponding to the third sampling point as the signal end point of the pulse signal. The set length of the pulse signal can be obtained based on the signal starting point and the signal end point. The end ratio threshold value is used to determine whether the sampling moment corresponding to the sampling point is the signal end point of the pulse signal. The end ratio threshold value can be set to a value greater than 0 and less than 1, for example, it can be set to 0.5.
[0093] In an embodiment of the present application, after dividing the sensor signal into at least one segmented signal, the segmented energy values of each segmented signal are calculated, and based on each segmented energy value, a signal band containing the signal starting point of the pulse signal is obtained. Based on the measured energy values of each sampling point in the signal band, a sliding window method is used to calculate the instantaneous energy value of each sampling point in the signal band. A convolution operation can be used to calculate an energy value sequence containing the instantaneous energy values of all sampling points in the signal band at one time. A fast Fourier transform can also be used to accelerate the convolution operation, reducing the number of real number multiplications and improving the efficiency of signal starting point detection. A first energy ratio between a first sampling point and a second sampling point in the signal band is obtained. If the first energy ratio is greater than a starting ratio threshold, the sampling time corresponding to the first sampling point is confirmed as the signal starting point. Calculating the instantaneous energy value using a sliding window method and using the energy ratio to find the signal starting point where the energy value increases sharply improves the efficiency and accuracy of signal starting point detection, thereby improving the accuracy of signal feature analysis. At the same time, the signal end point can be obtained by comparing the second energy ratio and the end ratio threshold value, and the set length of the pulse signal can be obtained according to the signal end point and the signal starting point, so as to obtain a valid pulse signal segment. The valid pulse signal segment can be slightly longer than the set length, which is convenient for analyzing and processing the pulse signal while ensuring the integrity of the signal, thereby improving the analysis efficiency of the pulse signal.
[0094] Please refer to Figure 9, which provides a schematic structural diagram of a signal starting point detection device according to an embodiment of the present application. As shown in Figure 9, the imaging device according to the embodiment of the present application includes a sensor, a processor, a starting point acquisition module, and an effective segment acquisition module. The processor includes an energy value calculation module and a ratio calculation module. The sensor is connected to the energy value calculation module, the energy value calculation module is connected to the ratio calculation module, the ratio calculation module is connected to the starting point acquisition module, and the starting point acquisition module is connected to the effective segment acquisition module.
[0095] The sensor may convert the received information into a sensing signal in the form of an electrical signal, and then the sensor sends the sensing signal to the processor.
[0096] The energy value calculation module divides the sensor signal acquired by the sensor into at least one segmented signal of equal duration and obtains a segmented energy value for each segmented signal. The segmented energy value may include the measured energy value corresponding to each sampling point in the segmented signal. The signal starting point detection device traverses all segmented signals and determines the signal band containing the signal starting point of the pulse signal based on the segmented energy values of the segmented signals.
[0097] Optionally, the energy value calculation module can obtain the signal band based on the relative energy value of each segmented signal. The relative energy value is the ratio of the segmented energy values of two adjacent segmented signals. For example, the first segmented signal is any segmented signal in at least one segmented signal. The ratio of the segmented energy value of the first segmented signal to the segmented energy value of the previous segmented signal of the first segmented signal is the relative energy value of the first segmented signal. It can be understood that the ratio of the segmented energy values can be the ratio of the sum of the measured energy values of each sampling point in the segmented energy value. The energy value calculation module can identify the segmented signal with the largest segmented energy value as the signal band.
[0098] Optionally, the energy value calculation module can traverse all the segmented signals in chronological order. If the maximum energy value among the segmented energy values of the second segmented signal is greater than the energy threshold value, it means that a pulse signal appears in the second segmented signal, and the signal starting point of the pulse signal exists in the second segmented signal. The energy threshold value can be the initial setting of the signal starting point detection device, or it can be set by relevant staff and saved in the signal starting point detection device. The energy threshold value can be slightly higher than the energy of the noise signal, but less than the energy of the pulse signal. The energy value calculation module can confirm the second segmented signal as a signal band containing the signal starting point, or it can combine several segmented signals before the second segmented signal and several segmented signals after the second segmented signal into a signal band together with the second segmented signal to avoid missing information in the signal.
[0099] Optionally, the energy value calculation module can estimate the pulse signal length based on historical experience and data. The length of the signal band can be an integer multiple of the pulse signal length. In order to obtain complete pulse signal information, the length of the signal band can be greater than twice the pulse signal length.
[0100] When the sensor acquires a sensor signal, it also obtains the measured energy value of the sensor signal at each time point. The energy value calculation module can determine several sampling points within the signal band based on a sampling period. The sampling period can be an initial setting of the signal starting point detection device, or it can be set by relevant personnel and stored in the signal starting point detection device. It is understood that the smaller the sampling period, the more sampling points within the signal band, and the more accurate the detected signal starting point. Because ADC accuracy, circuit noise, and other factors can cause random jumps in the energy value of a sampling point, resulting in inaccurate measured energy values, the energy value calculation module can use a sliding window method to obtain a target sampling point from all sampling points in the signal band, calculate the average of the measured energy values of the target sampling point and at least two sampling points surrounding the target sampling point, and use the average as the instantaneous energy value of the target sampling point to reduce the impact of noise. Taking the target sampling point among the multiple sampling points in the signal band as an example, the energy value calculation module can obtain a target sampling point set containing at least two sampling points within the signal band based on the target sampling point. The points in the target sampling point set are all located around the target sampling point. The energy value calculation module can, in the signal band, take the target sampling point as the starting point, obtain a first sampling point set whose sampling time is earlier than the target sampling point and the number of sampling points satisfies a first number, then take the target sampling point as the starting point, take the target sampling point as the starting point, sample later than the target sampling point, and the number of sampling points satisfies a second number, and then generate a target sampling point set based on the target sampling point, the first sampling point set, and the second sampling point set, where the first number and the second number can be equal or unequal, and can be the initial setting of the signal starting point detection device, or can be set by relevant staff and saved in the signal starting point detection device.
[0101] The energy calculation module calculates the average of the measured energy values of all sampling points in the target sampling point set and then uses the average as the instantaneous energy value of the target sampling point. The energy calculation module obtains the squares of the measured energy values of all sampling points in the target sampling point set, then adds the squares of the measured energy values of all sampling points in the target sampling point set and divides the sum by the number of sampling points in the target sampling point set to obtain the instantaneous energy value of the target sampling point.
[0102] Optionally, the energy value calculation module can also use a convolution operation to directly calculate a sequence of instantaneous energy values of all sampling points in the signal band, obtain a row matrix whose number of columns meets the first total number of sampling points in the signal band, and the elements in the row matrix are the squares of the measured energy values of each sampling point in the signal band, and then obtain a column matrix whose number of rows meets the second total number of sampling points in the target sampling point set and whose elements are all 1, perform a convolution operation on the row matrix and the column matrix, divide the result of the convolution operation by the second total number, and obtain an energy value sequence containing the instantaneous energy values of all sampling points in the signal band.
[0103] Optionally, fast Fourier transform can be used to accelerate the convolution calculation. The signal starting point detection device can perform fast Fourier transform on the column matrix P and the row matrix h to obtain F P and F h , F P and F h The corresponding points are multiplied, the multiplication result is inversely fast Fourier transformed and divided by the second total number to obtain the energy value sequence. The energy value calculation module then sends the energy value sequence to the ratio calculation module.
[0104] The ratio calculation module can obtain the instantaneous energy value of each sampling point from the energy value sequence. The ratio calculation module can obtain 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, where the second sampling point is a sampling point before the first sampling point. The ratio calculation module can then send the energy ratio of the first sampling point to the starting point acquisition module.
[0105] It is understandable that in the sensing signal, the energy value of the signal starting point is substantially the same as the energy value of the pulse signal, while the instantaneous energy value of the sampling point before the signal starting point is very small, much smaller than the energy value of the pulse signal. Therefore, the energy ratio between the instantaneous energy value corresponding to the signal starting point and the instantaneous energy value corresponding to the previous sampling point is a number much larger than 1. If the starting point acquisition module detects that the first energy ratio is greater than the starting ratio threshold value, it indicates that the sampling moment corresponding to the first sampling point is the signal starting point of the pulse signal. The starting ratio threshold value can be an initial setting of the signal starting point detection device, or it can be set by relevant staff and stored in the signal starting point detection device. The starting ratio threshold value can be a number much larger than 1, for example, it can be set to 10. Optionally, the ratio calculation module sends the energy ratio corresponding to each sampling point to the starting point acquisition module. For example, the ratio calculation module may also obtain a second energy ratio between a third sampling point and a fourth sampling point in the signal band, where the fourth sampling point is the sampling point immediately preceding the third sampling point, and send the second energy ratio to the starting point acquisition module. If the second energy ratio is less than an end ratio threshold, the starting point acquisition module identifies the sampling moment corresponding to the third sampling point as the end point of the pulse signal. Based on the signal start and end points, the signal length of the pulse signal can be derived. The starting point acquisition module may send the signal start and end points to the valid segment acquisition module.
[0106] The valid segment acquisition module can obtain the set length of the pulse signal based on the signal starting point and the signal ending point. Then, starting from the signal starting point in the sensor signal, it obtains a valid pulse signal segment with a length that meets the set signal length. The valid pulse signal segment contains the entire pulse signal, but does not include the noise signal before and after the pulse signal. This facilitates the analysis and processing of the pulse signal, obtains the characteristic information of the pulse signal, improves the analysis efficiency of the pulse signal, and reduces the amount of calculation. Optionally, when the valid segment acquisition module obtains a valid pulse signal segment, the length of the valid pulse signal segment can be slightly longer than the set length of the pulse signal to avoid losing information within the pulse signal and ensure the integrity of the pulse signal.
[0107] In an embodiment of the present application, after dividing the sensor signal into at least one segmented signal, the segmented energy values of each segmented signal are calculated, and based on each segmented energy value, a signal band containing the signal starting point of the pulse signal is obtained. Based on the measured energy values of each sampling point in the signal band, a sliding window method is used to calculate the instantaneous energy value of each sampling point in the signal band. A convolution operation can be used to calculate an energy value sequence containing the instantaneous energy values of all sampling points in the signal band at one time. A fast Fourier transform can also be used to accelerate the convolution operation, reducing the number of real number multiplications and improving the efficiency of signal starting point detection. A first energy ratio between a first sampling point and a second sampling point in the signal band is obtained. If the first energy ratio is greater than a starting ratio threshold, the sampling time corresponding to the first sampling point is confirmed as the signal starting point. Calculating the instantaneous energy value using a sliding window method and using the energy ratio to find the signal starting point where the energy value increases sharply improves the efficiency and accuracy of signal starting point detection, thereby improving the accuracy of signal feature analysis. At the same time, the signal end point can be obtained by comparing the second energy ratio and the end ratio threshold value, and the set length of the pulse signal can be obtained according to the signal end point and the signal starting point, so as to obtain a valid pulse signal segment. The valid pulse signal segment can be slightly longer than the set length, which is convenient for analyzing and processing the pulse signal while ensuring the integrity of the signal, thereby improving the analysis efficiency of the pulse signal.
[0108] The following detailed description of the signal starting point detection device provided by the embodiment of the present application is provided in conjunction with Figures 10 and 11. It should be noted that the signal starting point detection device in Figures 10 and 11 is used to execute the method of the embodiment shown in Figures 2 and 3 of the present application. For ease of explanation, only the portion relevant to the embodiment of the present application is shown. For specific technical details not disclosed, please refer to the embodiment shown in Figures 2 and 3 of the present application.
[0109] Please refer to Figure 10, which shows a schematic diagram of the structure of a signal starting point detection device provided by an exemplary embodiment of the present application. The signal starting point detection device can be implemented as all or part of a device through software, hardware, or a combination of both. The device 1 includes a band acquisition module 11, an energy value acquisition module 12, a ratio acquisition module 13, and a starting point confirmation module 14.
[0110] The band acquisition module 11 is used to receive the sensor signal collected by the sensor; after dividing the sensor signal into at least one segmented signal, calculate the segmented energy value of each segmented signal, and based on each segmented energy value, obtain the signal band containing the signal starting point of the pulse signal;
[0111] An energy value acquisition module 12 is configured to calculate the instantaneous energy value of each sampling point in the signal band using a sliding window method based on the measured energy value of each sampling point in the signal band;
[0112] a ratio acquisition module 13, configured to acquire a first energy ratio between a first sampling point and a second sampling point in the signal band, where the second sampling point is a sampling point preceding the first sampling point;
[0113] The starting point confirmation module 14 is used to confirm the sampling moment corresponding to the first sampling point as the signal starting point if the first energy ratio is greater than the starting ratio threshold value, and the starting ratio threshold value is a preset threshold value for determining the signal starting point.
[0114] In this embodiment, after dividing the sensor signal into at least one segmented signal, the segmented energy values of each segmented signal are calculated. Based on each segmented energy value, the signal band containing the signal starting point of the pulse signal is obtained. Based on the measured energy values of each sampling point in the signal band, the instantaneous energy value of each sampling point in the signal band is calculated using a sliding window method. A first energy ratio between the first sampling point and the second sampling point in the signal band is obtained. If the first energy ratio is greater than a starting ratio threshold, the sampling time corresponding to the first sampling point is determined as the signal starting point. Calculating the instantaneous energy value using a sliding window method and using the energy ratio to identify the signal starting point where the energy value suddenly increases improves the detection and accuracy of the signal starting point, thereby enhancing the accuracy of signal feature analysis.
[0115] Please refer to Figure 11, which shows a schematic diagram of the structure of a signal starting point detection device provided by an exemplary embodiment of the present application. The signal starting point detection device can be implemented as all or part of a device through software, hardware, or a combination of both. The device 1 includes a band acquisition module 11, an energy value acquisition module 12, a ratio acquisition module 13, a starting point confirmation module 14, and a valid signal acquisition module 15.
[0116] The band acquisition module 11 is configured to receive a sensor signal collected by a sensor; divide the sensor signal into at least one segmented signal, calculate a segmented energy value of each segmented signal, and based on each segmented energy value, obtain a signal band containing a signal starting point of a pulse signal, wherein the starting ratio threshold value is a preset threshold value for determining the signal starting point;
[0117] Optionally, the band acquisition module 11 is specifically configured to calculate the relative energy value of each segment signal based on each segment energy value;
[0118] The segmented signal with the largest relative energy value is obtained as the signal band containing the signal starting point of the pulse signal.
[0119] Optionally, the band acquisition module 11 is specifically configured to calculate a first sum of segment energy values of a first segment signal, and calculate a second sum of segment energy values of a segment signal preceding the first segment signal;
[0120] calculating a ratio of the first sum to the second sum, and determining the ratio as a relative energy value of the first segmented signal;
[0121] The segmented energy value includes the measured energy value of each sampling point in the segmented signal, and the first segmented signal is any segmented signal in the at least one segmented signal.
[0122] Optionally, the band acquisition module 11 is specifically configured to obtain a signal band including a signal starting point of a pulse signal from each segment signal based on each segment energy value and a preset energy threshold.
[0123] Optionally, the band acquisition module 11 is specifically configured to determine that the second segmented signal contains the signal starting point of the pulse signal if the maximum energy value among the segmented energy values of the second segmented signal is greater than an energy threshold value, the segmented energy value includes the measured energy value of each sampling point in the segmented signal, the energy threshold value is a threshold value for determining whether the second segmented signal contains the signal starting point, and the second segmented signal is any segmented signal of the at least one segmented signal;
[0124] Acquire a third segment signal that is before the second segment signal and continuous with the second segment signal, and acquire a fourth segment signal that is after the second segment signal and continuous with the second segment signal;
[0125] A signal band including the signal starting point is generated based on the second segment signal, the third segment signal, and the fourth segment signal.
[0126] An energy value acquisition module 12 is configured to calculate the instantaneous energy value of each sampling point in the signal band using a sliding window method based on the measured energy value of each sampling point in the signal band;
[0127] Optionally, the energy value acquisition module 12 is specifically configured to acquire, in the signal band, a target sampling point set comprising at least two sampling points based on a target sampling point, where the target sampling point is any sampling point in the signal band;
[0128] An average value of the measured energy values of all sampling points in the target sampling point set is calculated, and the average value is confirmed as the instantaneous energy value of the target sampling point.
[0129] Optionally, the energy value acquisition module 12 is specifically configured to, in the signal band, take the target sampling point as a starting point, acquire sampling points whose sampling time is earlier than the target sampling point, and generate a first sampling point set that satisfies a first number;
[0130] In the signal band, taking the target sampling point as a starting point, acquiring sampling points whose sampling times are later than the target sampling point, to generate a second set of sampling points that meets a second number;
[0131] A target sampling point set is generated based on the target sampling point, the first sampling point set, and the second sampling point set.
[0132] Optionally, the energy value acquisition module 12 is specifically configured to acquire a first total number of sampling points in the signal band and a second total number of sampling points in the target sampling point set;
[0133] Obtain a row matrix having a number of columns that satisfies the first total number, where elements in the row matrix are squares of measured energy values of each sampling point in the signal band;
[0134] Obtain a column matrix whose number of rows satisfies the second total number and whose elements are all 1;
[0135] Performing a convolution operation on the row matrix and the column matrix;
[0136] The result of the convolution operation is divided by the second total number to obtain an energy value sequence including the instantaneous energy values of all sampling points in the signal band, and the instantaneous energy value of the target sampling point is obtained from the energy value sequence.
[0137] Optionally, the energy value acquisition module 12 is specifically configured to perform a convolution operation on the row matrix and the column matrix, and accelerate the convolution operation by using a fast Fourier transform.
[0138] a ratio acquisition module 13, configured to acquire a first energy ratio between a first sampling point and a second sampling point in the signal band, where the second sampling point is a sampling point preceding the first sampling point;
[0139] Optionally, the ratio acquisition module 13 is specifically configured to divide the instantaneous energy value of the first sampling point by the instantaneous energy value of the second sampling point to obtain a first energy ratio between the first sampling point and the second sampling point.
[0140] a starting point confirmation module 14, configured to confirm the sampling moment corresponding to the first sampling point as the signal starting point if the first energy ratio is greater than a starting ratio threshold;
[0141] The effective signal acquisition module 15 is used to acquire an effective pulse signal segment having a length that meets a set length from the sensing signal, starting from the signal starting point.
[0142] Optionally, the effective signal acquisition module 15 is specifically configured to acquire a second energy ratio between a third sampling point and a fourth sampling point in the signal band, where the fourth sampling point is a sampling point preceding the third sampling point.
[0143] If the second energy ratio is less than the end ratio threshold, the sampling moment corresponding to the third sampling point is confirmed as the signal end point of the pulse signal;
[0144] The set length of the pulse signal is confirmed based on the signal start point and the signal end point.
[0145] In this embodiment, after dividing the sensor signal into at least one segmented signal, the segmented energy values of each segmented signal are calculated. Based on each segmented energy value, a signal band containing the signal starting point of the pulse signal is obtained. Based on the measured energy values of each sampling point in the signal band, a sliding window method is used to calculate the instantaneous energy value of each sampling point in the signal band. A convolution operation can be used to simultaneously calculate an energy value sequence containing the instantaneous energy values of all sampling points in the signal band. A fast Fourier transform can also be used to accelerate the convolution operation, reducing the number of real number multiplications and improving the efficiency of signal starting point detection. A first energy ratio between a first sampling point and a second sampling point in the signal band is obtained. If the first energy ratio is greater than a starting ratio threshold, the sampling time corresponding to the first sampling point is determined as the signal starting point. Calculating the instantaneous energy value using a sliding window method and using the energy ratio to identify the signal starting point where the energy value suddenly increases improves the efficiency and accuracy of signal starting point detection, thereby enhancing the accuracy of signal feature analysis. At the same time, the signal end point can be obtained by comparing the second energy ratio and the end ratio threshold value, and the set length of the pulse signal can be obtained according to the signal end point and the signal starting point, so as to obtain a valid pulse signal segment. The valid pulse signal segment can be slightly longer than the set length, which is convenient for analyzing and processing the pulse signal while ensuring the integrity of the signal, thereby improving the analysis efficiency of the pulse signal.
[0146] It should be noted that the signal starting point detection device provided in the above embodiment, when executing the signal starting point detection method, is merely illustrated by the division of the aforementioned functional modules. In actual applications, the aforementioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the signal starting point detection device provided in the above embodiment and the signal starting point detection method embodiment are based on the same concept. The implementation process is detailed in the method embodiment and will not be repeated here.
[0147] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0148] An embodiment of the present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded by a processor and executing the signal starting point detection method of the embodiment shown in Figures 2 to 8 above. The specific execution process can be found in the specific description of the embodiment shown in Figures 2 to 8, and will not be repeated here.
[0149] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded by the processor and executes the signal starting point detection method of the embodiment shown in Figures 2 to 8 above. The specific execution process can be found in the specific description of the embodiment shown in Figures 2 to 8, and will not be repeated here.
[0150] Please refer to Figure 12, which shows a block diagram of an electronic device provided by an exemplary embodiment of the present application. The electronic device in the present application may include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected via the bus 150.
[0151] The processor 110 may include one or more processing cores. The processor 110 utilizes various interfaces and circuits to connect various components within the electronic device. It executes instructions, programs, code sets, or instruction sets stored in the memory 120, as well as accesses data stored in the memory 120, to perform various functions of the terminal 100 and process data. Optionally, the processor 110 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 110 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interfaces, and applications; the GPU is responsible for rendering and drawing display content; and the modem handles wireless communications. It is understood that the modem may not be integrated into the processor 110 and may be implemented separately via a communication chip.
[0152] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable storage medium. The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The operating system may be an Android system, including a system deeply developed based on the Android system, an iOS system developed by Apple, including a system deeply developed based on the iOS system or other systems.
[0153] The memory 120 can be divided into an operating system space and a user space. The operating system runs in the operating system space, and native and third-party applications run in the user space. In order to ensure that different third-party applications can achieve better operating results, the operating system allocates corresponding system resources to different third-party applications. However, the requirements for system resources in different application scenarios in the same third-party application are also different. For example, in the local resource loading scenario, the third-party application has higher requirements for disk reading speed; in the animation rendering scenario, the third-party application has higher requirements for GPU performance. The operating system and the third-party application are independent of each other, and the operating system often cannot perceive the current application scenario of the third-party application in a timely manner, resulting in the operating system being unable to perform targeted system resource adaptation according to the specific application scenario of the third-party application.
[0154] In order for the operating system to distinguish the specific application scenarios of third-party applications, it is necessary to open up data communication between third-party applications and the operating system so that the operating system can obtain the current scenario information of third-party applications at any time, and then perform targeted system resource adaptation based on the current scenario.
[0155] The input device 130 is used to receive input commands or data and includes, but is not limited to, a keyboard, a mouse, a camera, a microphone, or a touch-sensitive device. The output device 140 is used to output commands or data and includes, but is not limited to, a display device and a speaker. In one example, the input device 130 and the output device 140 may be combined, and the input device 130 and the output device 140 may be a touch-sensitive display.
[0156] The touch display screen can be designed as a full screen, a curved screen or a special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in the present embodiment.
[0157] In addition, those skilled in the art will understand that the structures of the electronic devices shown in the above figures do not limit the electronic devices. The electronic devices may include more or fewer components than shown, or may combine certain components, or arrange the components differently. For example, the electronic devices may also include radio frequency circuits, input units, sensors, audio circuits, wireless fidelity (WiFi) modules, power supplies, Bluetooth modules, and other components, which will not be described in detail here.
[0158] In the electronic device shown in FIG12 , the processor 110 may be configured to call a signal starting point detection application stored in the memory 120 and specifically perform the following operations:
[0159] Receiving sensor signals collected by sensors;
[0160] After dividing the sensing signal into at least one segmented signal, calculating a segmented energy value of each segmented signal, and obtaining a signal band including a signal starting point of a pulse signal based on each segmented energy value;
[0161] Based on the measured energy value of each sampling point in the signal band, calculating the instantaneous energy value of each sampling point in the signal band using a sliding window method;
[0162] Acquire a first energy ratio between a first sampling point and a second sampling point in the signal band, where the second sampling point is a sampling point preceding the first sampling point;
[0163] If the first energy ratio is greater than a starting ratio threshold, the sampling moment corresponding to the first sampling point is confirmed as the signal starting point. The starting ratio threshold is a preset threshold for determining the signal starting point.
[0164] In one embodiment, when the processor 110 acquires the signal band including the signal starting point of the pulse signal based on each of the segment energy values, the processor 110 specifically performs the following operations:
[0165] Calculating a relative energy value of each of the segmented signals based on each of the segmented energy values;
[0166] The segmented signal with the largest relative energy value is obtained as the signal band containing the signal starting point of the pulse signal.
[0167] In one embodiment, when the processor 110 calculates the relative energy value of each segment signal based on each segment energy value, the processor 110 specifically performs the following operations:
[0168] Calculating a first sum of segment energy values of a first segment signal, and calculating a second sum of segment energy values of a segment signal preceding the first segment signal;
[0169] calculating a ratio of the first sum to the second sum, and determining the ratio as a relative energy value of the first segmented signal;
[0170] The segmented energy value includes the measured energy value of each sampling point in the segmented signal, and the first segmented signal is any segmented signal in the at least one segmented signal.
[0171] In one embodiment, when the processor 110 executes the segment energy values to obtain the signal band including the signal starting point of the pulse signal, the processor 110 specifically performs the following operations:
[0172] Based on the energy values of each segment and in combination with a preset energy threshold value, a signal band including a signal starting point of a pulse signal is obtained from each segment signal.
[0173] In one embodiment, when the processor 110 obtains the signal band including the signal starting point of the pulse signal from each segment signal based on each segment energy value and a preset energy threshold, the processor 110 specifically performs the following operations:
[0174] If a maximum energy value among the segmented energy values of the second segmented signal is greater than an energy threshold value, determining that the second segmented signal contains a signal starting point of the pulse signal, the segmented energy value includes a measured energy value of each sampling point in the segmented signal, the energy threshold value is a threshold value for determining whether the second segmented signal contains the signal starting point, and the second segmented signal is any segmented signal of the at least one segmented signal;
[0175] Acquire a third segment signal that is before the second segment signal and continuous with the second segment signal, and acquire a fourth segment signal that is after the second segment signal and continuous with the second segment signal;
[0176] A signal band including the signal starting point is generated based on the second segment signal, the third segment signal, and the fourth segment signal.
[0177] In one embodiment, when the processor 110 calculates the instantaneous energy value of each sampling point in the signal band using a sliding window method based on the measured energy value of each sampling point in the signal band, the processor 110 specifically performs the following operations:
[0178] In the signal band, a target sampling point set including at least two sampling points is acquired based on a target sampling point, where the target sampling point is any sampling point in the signal band;
[0179] An average value of the measured energy values of all sampling points in the target sampling point set is calculated, and the average value is confirmed as the instantaneous energy value of the target sampling point.
[0180] In one embodiment, when the processor 110 acquires a sampling point set including at least two sampling points based on a target sampling point in the signal band, the processor 110 specifically performs the following operations:
[0181] In the signal band, taking the target sampling point as a starting point, acquiring sampling points whose sampling times are earlier than the target sampling point, to generate a first sampling point set that satisfies a first number;
[0182] In the signal band, taking the target sampling point as a starting point, acquiring sampling points whose sampling times are later than the target sampling point, to generate a second set of sampling points that meets a second number;
[0183] A target sampling point set is generated based on the target sampling point, the first sampling point set, and the second sampling point set.
[0184] In one embodiment, when calculating the average value of the measured energy values of all sampling points in the target sampling point set and determining the average value as the instantaneous energy value of the target sampling point, the processor 110 specifically performs the following operations:
[0185] Obtaining a first total number of sampling points in the signal band, and obtaining a second total number of sampling points in the target sampling point set;
[0186] Obtain a row matrix having a number of columns that satisfies the first total number, where elements in the row matrix are squares of measured energy values of each sampling point in the signal band;
[0187] Obtain a column matrix whose number of rows satisfies the second total number and whose elements are all 1;
[0188] Performing a convolution operation on the row matrix and the column matrix;
[0189] The result of the convolution operation is divided by the second total number to obtain an energy value sequence including the instantaneous energy values of all sampling points in the signal band, and the instantaneous energy value of the target sampling point is obtained from the energy value sequence.
[0190] In one embodiment, when performing a convolution operation on the row matrix and the column matrix, the processor 110 specifically performs the following operations:
[0191] A convolution operation is performed on the row matrix and the column matrix, and a fast Fourier transform is used to accelerate the convolution operation.
[0192] In one embodiment, when acquiring the first energy ratio between the first sampling point and the second sampling point in the signal band, the processor 110 specifically performs the following operations:
[0193] The instantaneous energy value of the first sampling point is divided by the instantaneous energy value of the second sampling point to obtain a first energy ratio between the first sampling point and the second sampling point.
[0194] In one embodiment, when executing the signal starting point detection method, the processor 110 further performs the following operations:
[0195] In the sensing signal, a valid pulse signal segment having a length meeting a set length is obtained with the signal starting point as the starting point.
[0196] In one embodiment, the processor 110 further performs the following operations before obtaining a valid pulse signal segment having a length meeting a set length from the starting point of the signal in the sensing signal:
[0197] Acquire a second energy ratio between a third sampling point and a fourth sampling point in the signal band, where the fourth sampling point is a sampling point preceding the third sampling point;
[0198] If the second energy ratio is less than the end ratio threshold, the sampling moment corresponding to the third sampling point is confirmed as the signal end point of the pulse signal;
[0199] The set length of the pulse signal is confirmed based on the signal start point and the signal end point.
[0200] In this embodiment, after dividing the sensor signal into at least one segmented signal, the segmented energy values of each segmented signal are calculated. Based on each segmented energy value, a signal band containing the signal starting point of the pulse signal is obtained. Based on the measured energy values of each sampling point in the signal band, a sliding window method is used to calculate the instantaneous energy value of each sampling point in the signal band. A convolution operation can be used to simultaneously calculate an energy value sequence containing the instantaneous energy values of all sampling points in the signal band. A fast Fourier transform can also be used to accelerate the convolution operation, reducing the number of real number multiplications and improving the efficiency of signal starting point detection. A first energy ratio between a first sampling point and a second sampling point in the signal band is obtained. If the first energy ratio is greater than a starting ratio threshold, the sampling time corresponding to the first sampling point is determined as the signal starting point. Calculating the instantaneous energy value using a sliding window method and using the energy ratio to identify the signal starting point where the energy value suddenly increases improves the efficiency and accuracy of signal starting point detection, thereby enhancing the accuracy of signal feature analysis. At the same time, the signal end point can be obtained by comparing the second energy ratio and the end ratio threshold value, and the set length of the pulse signal can be obtained according to the signal end point and the signal starting point, so as to obtain a valid pulse signal segment. The valid pulse signal segment can be slightly longer than the set length, which is convenient for analyzing and processing the pulse signal while ensuring the integrity of the signal, thereby improving the analysis efficiency of the pulse signal.
[0201] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware through a computer program. The program can be stored in a computer-readable storage medium, and when executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory, or a random access memory.
[0202] The above disclosure is only a preferred embodiment of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still covered by the present application.
Claims
1. A signal starting point detection method, characterized in that: The method comprises: Receiving sensor signals collected by sensors; After dividing the sensing signal into at least one segmented signal, calculating the segmented energy value of each segmented signal, and acquiring a signal band including a signal starting point of a pulse signal based on each segmented energy value; Based on the measured energy value of each sampling point in the signal band, the instantaneous energy value of each sampling point in the signal band is calculated by a sliding window method; Acquire a first energy ratio between a first sampling point and a second sampling point in the signal band, where the second sampling point is a sampling point before the first sampling point; If the first energy ratio is greater than a starting ratio threshold, the sampling moment corresponding to the first sampling point is confirmed as the signal starting point, and the starting ratio threshold is a preset threshold for determining the signal starting point.
2. The method according to claim 1, characterized in that The step of obtaining a signal band including a signal starting point of a pulse signal based on each of the segment energy values comprises: Calculating the relative energy value of each of the segmented signals based on each of the segmented energy values; The segmented signal with the largest relative energy value is obtained as the signal band containing the signal starting point of the pulse signal.
3. The method according to claim 2, characterized in that The calculating the relative energy value of each of the segmented signals based on each of the segmented energy values comprises: Calculating a first sum of segment energy values of a first segment signal, and calculating a second sum of segment energy values of a segment signal preceding the first segment signal; Calculating a ratio of the first sum to the second sum, and confirming the ratio as a relative energy value of the first segmented signal; The segmented energy value includes the measured energy value of each sampling point in the segmented signal, and the first segmented signal is any segmented signal in the at least one segmented signal.
4. The method according to claim 1, characterized in that: The energy values of each segment are used to obtain a signal band including a signal starting point of a pulse signal, including: Based on each of the segment energy values and in combination with a preset energy threshold value, a signal band including a signal starting point of a pulse signal is obtained from each of the segment signals.
5. The method according to claim 4, characterized in that The step of obtaining a signal band including a signal starting point of a pulse signal from each of the segmented signals based on each of the segmented energy values and in combination with a preset energy threshold value comprises: If the maximum value among the segmented energy values of the second segmented signal is greater than the energy threshold value, it is determined that the second segmented signal contains the signal starting point of the pulse signal, the segmented energy value contains the measured energy value of each sampling point in the segmented signal, the energy threshold value is a threshold value for determining whether the second segmented signal contains the signal starting point, and the second segmented signal is any segmented signal of the at least one segmented signal; Acquire a third segment signal that is before the second segment signal and continuous with the second segment signal, and acquire a fourth segment signal that is after the second segment signal and continuous with the second segment signal; A signal band including the signal starting point is generated based on the second segment signal, the third segment signal and the fourth segment signal.
6. The method according to claim 1, characterized in that The step of calculating the instantaneous energy value of each sampling point in the signal band by using a sliding window method based on the measured energy value of each sampling point in the signal band includes: In the signal band, a target sampling point set including at least two sampling points is acquired based on a target sampling point, where the target sampling point is any sampling point in the signal band; An average value of the measured energy values of all sampling points in the target sampling point set is calculated, and the average value is confirmed as the instantaneous energy value of the target sampling point.
7. The method according to claim 6, characterized in that The step of acquiring a sampling point set including at least two sampling points based on a target sampling point in the signal band includes: In the signal band, taking the target sampling point as a starting point, acquiring sampling points whose sampling time is earlier than the target sampling point, and generating a first sampling point set that satisfies a first number; In the signal band, taking the target sampling point as a starting point, acquiring sampling points whose sampling time is later than the target sampling point, and generating a second sampling point set that satisfies a second number; A target sampling point set is generated based on the target sampling point, the first sampling point set, and the second sampling point set.
8. The method according to claim 6, characterized in that The step of calculating the average value of the measured energy values of all sampling points in the target sampling point set and confirming the average value as the instantaneous energy value of the target sampling point includes: Acquire a first total number of sampling points in the signal band, and acquire a second total number of sampling points in the target sampling point set; Acquire a row matrix having a column number satisfying the first total number, wherein the elements in the row matrix are square numbers of measured energy values of each sampling point in the signal band; Obtain a column matrix whose number of rows satisfies the second total number and whose elements are all 1; Performing a convolution operation on the row matrix and the column matrix; The result of the convolution operation is divided by the second total number to obtain an energy value sequence including instantaneous energy values of all sampling points in the signal band, and the instantaneous energy value of the target sampling point is obtained in the energy value sequence.
9. The method according to claim 8, characterized in that The performing a convolution operation on the row matrix and the column matrix comprises: A convolution operation is performed on the row matrix and the column matrix, and a fast Fourier transform is used to accelerate the convolution operation.
10. The method according to claim 1, characterized in that The obtaining a first energy ratio between a first sampling point and a second sampling point in the signal band includes: The instantaneous energy value of the first sampling point is divided by the instantaneous energy value of the second sampling point to obtain a first energy ratio between the first sampling point and the second sampling point.
11. The method according to claim 1, characterized in that: The method further comprises: In the sensing signal, taking the signal starting point as the starting point, a valid pulse signal segment whose length satisfies the set length is obtained.
12. The method according to claim 11, characterized in that In the sensing signal, before obtaining a valid pulse signal segment whose length meets the set length with the signal starting point as the starting point, the method further includes: Acquire 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 sampling point before the third sampling point; If the second energy ratio is less than the end ratio threshold, the sampling time corresponding to the third sampling point is confirmed as the signal end point of the pulse signal; The set length of the pulse signal is confirmed based on the signal start point and the signal end point.
13. A signal starting point detection device, characterized in that: The device includes a sensor, a processor and a starting point acquisition module; wherein, One end of the processor is connected to the sensor, and the other end of the processor is connected to the starting point acquisition module; The sensor acquires a sensing signal and sends the sensing signal to the processor; After the processor divides the sensing signal into at least one segmented signal, it calculates the segmented energy value of each segmented signal, and based on each segmented energy value, obtains a signal band including a signal starting point of a pulse signal; The processor calculates the instantaneous energy value of each sampling point in the signal band by a sliding window method based on the measured energy value of 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, where the second sampling point is a sampling point before the first sampling point, and the processor sends the first energy ratio to the starting point acquisition module; If the first energy ratio is greater than a starting ratio threshold, the starting point acquisition module confirms the sampling moment corresponding to the first sampling point as the signal starting point, and the starting ratio threshold is a preset threshold for determining the signal starting point.
14. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 12.
15. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 12.
