Method, device, equipment and storage medium for determining signal starting position
By calculating the difference between the signal's spectral entropy sequence and absolute value sequence, the signal starting position is determined, which solves the problem of low accuracy of the signal starting position in the existing technology and achieves higher judgment accuracy.
Patent Information
- Application Number
- CN202510741281.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-05
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2045-06-05
AI Technical Summary
In the prior art, there is a large error when estimating the starting position of a signal by observing a time-frequency diagram, resulting in a decrease in the accuracy of the starting position of the signal.
By obtaining the first starting position range of the target signal, calculating the spectral entropy sequence and performing spectral entropy difference, and then calculating the absolute value sequence and performing absolute value difference, the second starting position of the signal and the target starting position are determined.
The accuracy of the signal starting position is improved, the error is reduced, and the adaptability and accuracy of signal processing are enhanced.
Smart Images

Figure CN120263609B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of signal processing technology, and in particular to a method, apparatus, device and storage medium for determining a starting position of a signal. Background Art
[0002] With the development of communication technology, communication systems are becoming increasingly complex and spectrum resources are becoming increasingly scarce. Determining the starting position of the signal is the key to achieving synchronous reception. It can effectively reduce inter-symbol interference, lower the bit error rate, and improve communication quality and reliability. It can also help achieve more signal multiplexing within a limited spectrum and improve spectrum utilization to meet the growing communication needs.
[0003] In existing technology, the signal's starting position is typically estimated by observing the time-frequency graph of the signal data and based on the changes in time and signal power values on the graph. However, this method can result in significant errors when estimating the signal's starting position based on the time-frequency graph, which in turn reduces the accuracy of the signal's starting position. Summary of the Invention
[0004] Based on the above problems, the present application provides a method, apparatus, device and storage medium for determining the starting position of a signal, the purpose of which is to improve the accuracy of the starting position of the signal.
[0005] The embodiments of this application disclose the following technical solutions:
[0006] In a first aspect, the present application provides a method for determining a signal starting position, comprising:
[0007] Obtaining a first starting position range of a target signal;
[0008] Determining a second starting position range based on a first signal corresponding to the first starting position range by calculating a spectral entropy sequence corresponding to the first signal and performing spectral entropy difference calculation on the spectral entropy sequence;
[0009] Based on the second signal corresponding to the second starting position range, the target starting position is determined by calculating the absolute value sequence corresponding to the second signal and performing absolute value difference calculation on the absolute value sequence; the absolute value sequence includes the absolute value of each data point in the second signal.
[0010] Optionally, in the above method, the determining of the second starting position range by calculating a spectral entropy sequence corresponding to the first signal and performing a spectral entropy difference calculation on the spectral entropy sequence based on the first signal corresponding to the first starting position range includes:
[0011] Based on the first starting position range, intercepting and processing the target signal to obtain a first signal corresponding to the first starting position range;
[0012] By sliding a preset sliding window, calculating the spectral entropy value corresponding to each window frame, and constructing a spectral entropy sequence of the first signal;
[0013] Determining a window frame index corresponding to a maximum spectral entropy value from the spectral entropy sequence by performing a differential operation on the spectral entropy values in the spectral entropy sequence;
[0014] A second starting position range is determined based on the window frame index and the window parameters corresponding to the preset sliding window.
[0015] Optionally, in the above method, determining the second starting position range based on the window frame index and the window parameter corresponding to the preset sliding window includes:
[0016] A second starting position Y2 is determined according to the window frame index Index_a, the first starting position Y1 in the first starting position range, and the window frame length S in the window parameters; the second starting position Y2 is expressed by the formula:
[0017] Y2= Y1+(Index_a+1)*S;
[0018] Where, Index_a+1 represents the next window frame index of the window frame index Index_a;
[0019] The second starting position range includes the second starting position and a second deviation; the second deviation is the window frame shift in the window parameters.
[0020] Optionally, in the method described above, the process of determining the second starting position range may be performed iteratively, and each iteration reduces the second deviation to the current window frame shift until a preset convergence condition is met.
[0021] Optionally, in the above method, the determining of the target starting position by calculating an absolute value sequence corresponding to the second signal and performing an absolute value difference calculation on the absolute value sequence based on the second signal corresponding to the second starting position range includes:
[0022] Based on the second starting position range, intercepting and processing the first signal to obtain a second signal corresponding to the second starting position range;
[0023] Calculating the absolute value of each data point in the second signal to construct an absolute value sequence corresponding to the second signal;
[0024] performing a difference operation on the absolute value sequence, and determining a data index corresponding to a maximum difference value in the absolute value sequence;
[0025] A target starting position is determined based on the second starting position in the second starting position range and the data index.
[0026] Optionally, in the above method, determining the target starting position based on the second starting position in the second starting position range and the data index includes:
[0027] Based on the second starting position Y2 in the second starting position range and the data index Index_b, a target starting position Y3 is determined. The target starting position Y3 is expressed by the formula:
[0028] Y3= Y2+Index_b+1;
[0029] In the formula, Index_b+1 represents the next data index of the data index Index_b.
[0030] Optionally, in the method described above, the first starting position range includes a first starting position and a first deviation; the first deviation is the Fourier transform length used when performing Fourier transform on the target signal to generate a time-frequency spectrum; the first starting position is the signal starting position determined based on the signal power change in the time-frequency spectrum.
[0031] In a second aspect, the present application provides a device for determining a signal starting position, comprising:
[0032] A data acquisition module, configured to acquire a first starting position range of a target signal;
[0033] a first positioning module, configured to determine a second starting position range based on a first signal corresponding to the first starting position range by calculating a spectral entropy sequence corresponding to the first signal and performing spectral entropy difference calculation on the spectral entropy sequence;
[0034] A second positioning module is configured to determine a target starting position based on a second signal corresponding to the second starting position range by calculating an absolute value sequence corresponding to the second signal and performing absolute value difference calculation on the absolute value sequence; the absolute value sequence includes the absolute value of each data point in the second signal.
[0035] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0036] Memory stores computer-executable instructions;
[0037] The processor executes the computer-executable instructions stored in the memory to implement the method for determining the signal starting position described in any one of the above embodiments.
[0038] In a fourth aspect, the present application provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement the method for determining the starting position of a signal described in any of the above embodiments.
[0039] Compared with the existing technology, this application has the following beneficial effects:
[0040] The method of the present application obtains the first starting position range of the target signal that is preliminarily located, and then, based on the first signal corresponding to the first starting position range, calculates the spectral entropy sequence corresponding to the first signal and performs spectral entropy difference calculation on the spectral entropy sequence, and then determines the second starting position range based on the captured change in the frequency characteristics of the signal, thereby narrowing the starting position range; then, based on the second signal corresponding to the second starting position range, calculates the absolute value sequence corresponding to the second signal and performs absolute value difference calculation on the absolute value sequence, and then accurately determines the target starting position by analyzing the sudden change in the signal amplitude; the absolute value sequence includes the absolute value of each data point in the second signal, thereby improving the accuracy of the signal starting position judgment. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] 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 paying any creative labor.
[0042] Figure 1 A flowchart of a method for determining a signal starting position provided in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of the structure of a device for determining a signal starting position provided in an embodiment of the present application;
[0044] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] To make the objectives, technical solutions, and advantages of this application more clearly understood, the application is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be noted that the embodiments described in the embodiments of this application 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 any creative efforts are within the scope of protection of this application.
[0046] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by people with ordinary skills in the field to which this application belongs. The words "first", "second" and similar terms used in the embodiments of this application do not indicate any order, quantity or importance, but are only used to distinguish different components. Words such as "include" or "comprise" mean that the elements or objects preceding the word include the elements or objects listed after the word and their equivalents, but do not exclude other elements or objects. Words such as "connect" or "connected" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0047] As described above, the current process for determining the starting position of a signal is as follows: first, the captured signal is converted from the time domain to the frequency domain through FFT to obtain a time-frequency diagram; then, by observing the time-frequency diagram, the starting position of the signal is estimated based on the changes in the power value on the time-frequency diagram.
[0048] The FFT is a fast discrete Fourier transform algorithm that discretizes continuous time-domain signals and converts them into the frequency domain. During the discretization process, the signal is sampled at fixed intervals, resulting in a discrete time-frequency diagram. The starting position of a signal can only be represented by discrete sampling points on a discrete time-frequency diagram, while the actual starting position of the signal may lie between two sampling points. Therefore, when estimating the signal starting position based on power changes on a discrete time-frequency diagram, there will be a certain degree of error. Furthermore, since the FFT length determines the sampling interval and the resolution of the time-frequency diagram, the magnitude of this error is related to the length of the FFT.
[0049] After research, this application proposes a method, device, equipment and storage medium for determining the starting position of a signal to improve the accuracy of determining the starting position of the signal.
[0050] In order to help those skilled in the art better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0051] See also Figure 1 , which is a flow chart of a method for determining a signal starting position provided by an embodiment of the present application. Figure 1As shown, the method includes:
[0052] S101: Acquire a first starting position range of a target signal.
[0053] In this embodiment, the first starting position range of the target signal is a rough estimate of the target signal's initial position, obtained by the user using existing techniques. For example, based on a pre-set amplitude threshold, when the target signal's amplitude exceeds the threshold, this position is marked as a possible starting position, and combined with a pre-set error, this position is used to form the first starting position range. For example, when the volume (amplitude) of an audio signal suddenly increases and exceeds the set threshold, the audio signal is considered to have begun to appear.
[0054] As an implementable method, the first starting position range includes the first starting position and the first deviation; the first deviation is the Fourier transform length used when performing Fourier transform on the target signal to generate a time-frequency spectrum; the first starting position is the signal starting position determined based on the signal power change in the time-frequency spectrum.
[0055] In this embodiment, the range of the first starting position of the target signal can be expressed as [first starting position - first deviation, first starting position + first deviation]; wherein, the first starting position is obtained by: after preprocessing the target signal, converting the target signal from the time domain to the frequency domain through FFT, thereby obtaining a time-frequency spectrum of the target signal; wherein the horizontal axis of the time-frequency spectrum represents time and the vertical axis represents frequency, and then locating the first starting position from the change in the power value in the time-frequency spectrum of the target signal. Since the time-frequency spectrum of the target signal is obtained through Fourier transform, there will be a first deviation of the FFT length between the located first starting position and the actual first starting position.
[0056] In this embodiment, a time-frequency spectrum is generated by performing a Fourier transform on the target signal. The time-frequency spectrum can clearly display the characteristics of the signal in both time and frequency dimensions. The first starting position is then determined based on the change in signal power in the time-frequency spectrum. This fully utilizes the time-frequency characteristics of the signal, compared to determining the first starting position by analyzing only the time or frequency domain dimensions. Furthermore, using the Fourier transform length as the first deviation accurately corrects the estimate of the first starting position range, allowing the first starting position range to more accurately cover the true starting position of the signal, thereby improving the accuracy of the first starting position range and, in turn, improving the efficiency of determining the starting position of the target signal.
[0057] S102: Based on the first signal corresponding to the first starting position range, determine the second starting position range by calculating the spectral entropy sequence corresponding to the first signal and performing spectral entropy difference calculation on the spectral entropy sequence.
[0058] In this embodiment, based on the first starting position range determined by the initial coarse accuracy, the signal within the range is extracted from the target signal as the first signal. The first signal is then framed and divided into multiple non-overlapping or partially overlapping window frames by presetting an appropriate sliding window length and frame shift. The spectral entropy value corresponding to each window frame is then calculated based on the spectrum corresponding to the signal within each window frame, and the spectral entropy values of all window frames are arranged in sequence to form a spectral entropy sequence. The spectral entropy sequence is then differentially calculated to determine the window frame corresponding to the maximum differential value in the spectral entropy sequence, thereby determining the second starting position range.
[0059] As an implementable manner, based on the first signal corresponding to the first starting position range, by calculating the spectral entropy sequence corresponding to the first signal and performing spectral entropy difference calculation on the spectral entropy sequence, the specific implementation steps of determining the second starting position range include:
[0060] S1021: Based on the first starting position range, intercept and process the target signal to obtain a first signal corresponding to the first starting position range.
[0061] In this embodiment, based on the first starting position range [first starting position-first deviation, first starting position+first deviation], the first signal corresponding to the range is intercepted from the target signal, and the data length of the obtained first signal can be expressed as L.
[0062] S1022: Calculate the spectral entropy value corresponding to each window frame by sliding a preset sliding window, and construct a spectral entropy sequence of the first signal.
[0063] In this embodiment, for example, the window frame length of the preset sliding window is represented by S, which can be set to L / 4; the frame shift of the sliding window is represented by D, which can be set to L / 8; then the number of sliding frames C of the sliding window can be expressed as C = (LS) / D + 1. The preset sliding window is slid according to the frame shift of the sliding window, and the first signal can be divided into C window frames. The spectral entropy value corresponding to the signal in each window frame of the C window frames is calculated. The spectral entropy value corresponding to the signal of the kth window frame can be expressed by the following formula:
[0064]
[0065] Where k represents the kth window frame, the value range is 0≤k≤C-1 and k is an integer; S represents the window frame length of the preset sliding window; P(f k ) represents the probability distribution after the amplitude of the signal spectrum in the k-th window frame is normalized.
[0066] Specifically, the probability distribution P(f k ) can be expressed using the following formula:
[0067]
[0068] Among them, P(f i ´) is obtained by i ) is normalized, and the specific normalization formula is as follows:
[0069]
[0070] Among them, P(f i ) represents the proportion of the power spectrum of the i-th frequency component in the total power spectrum, and i is an integer. It can be obtained by sliding the signal of the current sliding window, performing Fourier transform, and then calculating the power value.
[0071] S1023: performing a differential operation on the spectral entropy values in the spectral entropy sequence to determine the window frame index corresponding to the maximum spectral entropy value from the spectral entropy sequence.
[0072] In this embodiment, by performing a differential operation on the spectral entropy value H(k) corresponding to each window frame in the spectral entropy sequence, a first-order spectral entropy difference value between two adjacent spectral entropy values is calculated, which can be expressed as ΔH=|H(k)-H(k-1)|; then, the maximum value is determined from the multiple first-order spectral entropy difference values obtained, and then the window frame corresponding to the maximum value is determined, and its window frame index can be expressed as Index_a.
[0073] S1024: Determine a second starting position range based on the window frame index and window parameters corresponding to the preset sliding window.
[0074] In this embodiment, the window frame index Index_a can be used as the second starting position, and the second deviation can be determined according to the window parameters corresponding to the preset sliding window, and then the second starting position range can be expressed as [second starting position-second deviation, second starting position+second deviation].
[0075] In this embodiment, based on the first starting position range, the target signal is intercepted and processed to obtain a first signal corresponding to the first starting position range; by sliding a preset sliding window, the spectral entropy value corresponding to each window frame is calculated, and a spectral entropy sequence of the first signal is constructed; by performing a differential operation on the spectral entropy values in the spectral entropy sequence, the window frame index corresponding to the maximum spectral entropy value is determined from the spectral entropy sequence; based on the window frame index and the window parameter corresponding to the preset sliding window, the second starting position range is determined by taking the maximum difference position of the spectral entropy differential sequence as the signal starting point, and combining it with the sliding window length to obtain the signal starting range, which has adaptability to signals of different amplitudes and improves signal processing efficiency.
[0076] Furthermore, as an implementable manner, a specific implementation of “determining the second starting position range based on the window frame index and the window parameters corresponding to the preset sliding window” in S1024 may include:
[0077] The second starting position Y2 is determined according to the window frame index Index_a, the first starting position Y1 in the first starting position range, and the window frame length S in the window parameter; the second starting position Y2 is expressed by the formula:
[0078] Y2= Y1+(Index_a+1)*S;
[0079] Where, Index_a+1 represents the next window frame index of window frame index Index_a;
[0080] The second starting position range includes the second starting position and a second deviation; the second deviation is the window frame shift D in the window parameters.
[0081] In this embodiment, the first starting position Y1 is the approximate signal starting area determined through preliminary analysis, providing a basic reference for subsequent positioning. Meanwhile, the window frame index Index_a reflects the more precise signal starting position located using the spectral entropy difference method. By adjusting the window frame length S, we can reduce error accumulation, further refine the determination of the signal starting position based on the first starting position, and improve the accuracy of the signal starting position determination.
[0082] S103: Based on the second signal corresponding to the second starting position range, determine the target starting position by calculating the absolute value sequence corresponding to the second signal and performing absolute value difference calculation on the absolute value sequence; the absolute value sequence includes the absolute value of each data point in the second signal.
[0083] In this embodiment, based on the determined second starting position range, the signal within this range is extracted from the first signal as the second signal. The absolute value of each data point in the second signal is calculated, and the absolute values of all data points are arranged in sequence to form an absolute value sequence. The absolute value sequence is then differentially calculated, and the data point corresponding to the maximum differential value is determined from the absolute value sequence to determine the target starting position.
[0084] As an implementable manner, based on the second signal corresponding to the second starting position range, by calculating the absolute value sequence corresponding to the second signal and performing absolute value difference calculation on the absolute value sequence, the specific steps of determining the target starting position include:
[0085] S1031: Based on the second starting position range, intercept and process the first signal to obtain a second signal corresponding to the second starting position range.
[0086] In this embodiment, based on the second starting position range [second starting position-second deviation, second starting position+second deviation], the second signal corresponding to the range is intercepted from the first signal to obtain the second signal.
[0087] S1032: Calculate the absolute value of each data point in the second signal to construct an absolute value sequence corresponding to the second signal.
[0088] In this embodiment, M data points are intercepted from the second signal, and the absolute value of each data point is calculated respectively. The absolute value corresponding to the mth data point can be expressed as x (m), m≤M, and m is an integer. Then, the absolute values of all data points are arranged at once to construct an absolute value sequence corresponding to the second signal.
[0089] S1033: Perform a difference operation on the absolute value sequence, and determine the data index corresponding to the maximum difference value in the absolute value sequence.
[0090] In this embodiment, by performing a differential operation on the absolute value x(m) corresponding to each data point in the absolute value sequence, the first-order difference between the absolute values of two adjacent data points is calculated, which can be expressed as Δx=|x(m)-x(m-1)|; then the maximum value is determined from the multiple first-order difference values obtained, and then the data point corresponding to the maximum value is determined, and its data index can be expressed as Index_b.
[0091] S1034: Determine a target starting position based on the second starting position in the second starting position range and the data index.
[0092] As an implementable manner, based on the second starting position in the second starting position range and the data index, the specific steps of determining the target starting position may include:
[0093] Based on the second starting position Y2 in the second starting position range and the data index Index_b, the target starting position Y3 is determined. The target starting position Y3 is expressed by the formula:
[0094] Y3= Y2+Index_b+1;
[0095] In the formula, Index_b+1 represents the next data index of data index Index_b.
[0096] In this embodiment, the second starting position Y2 is the signal starting area after the reduction processing, providing a basic reference for subsequent positioning. At the same time, the data index Index_b reflects the more accurate signal starting position located by the time domain difference method, improving the accuracy of the signal starting position determination.
[0097] In this embodiment, based on the second starting position range, the first signal is intercepted and processed to obtain a second signal corresponding to the second starting position range; the absolute value calculation is performed on each data point in the second signal to eliminate the influence of the positive and negative values of the signal and construct an absolute value sequence corresponding to the second signal; the absolute value sequence is differentially operated to highlight the change in signal amplitude, and then the data index corresponding to the maximum difference value is determined from the absolute value sequence, so as to determine the target starting position based on the second starting position in the second starting position range and the data index, thereby improving the accuracy of signal starting position detection and enhancing the adaptability of signal processing.
[0098] In this embodiment, after obtaining the first starting position range of the target signal that is preliminarily located, based on the first signal corresponding to the first starting position range, the spectral entropy sequence corresponding to the first signal is calculated and the spectral entropy difference calculation is performed on the spectral entropy sequence, and then the second starting position range is determined based on the captured change in the frequency characteristics of the signal, thereby narrowing the starting position range; then, based on the second signal corresponding to the second starting position range, the absolute value sequence corresponding to the second signal is calculated and the absolute value difference calculation is performed on the absolute value sequence, and then the target starting position can be accurately determined by the sudden change in the signal amplitude; the absolute value sequence includes the absolute value of each data point in the second signal, thereby improving the accuracy of the signal starting position judgment.
[0099] Furthermore, in order to further improve the accuracy of positioning the starting position of the target signal, the process of determining the second starting position range can be iteratively performed, and each iteration reduces the second deviation to the current window frame shift until a preset convergence condition is met.
[0100] In this embodiment, for example, in the nth iteration process, n is a positive integer, by executing step S102 to determine the current window frame index Index_an, and then according to the nth starting position Y n And the window frame length S of the current sliding window n , determine the n+1th starting position Y n+1 = Y n +(Index_an+1)*S n ; The corresponding n-th deviation is the frame shift D of the current sliding window n When the number of iterations reaches the preset maximum number of iterations N, the iteration stops.
[0101] Furthermore, the Nth starting position and the Nth deviation obtained after N iterations are used as the second starting position and the second deviation. Based on the second signal corresponding to the second starting position range, the target starting position is determined by calculating the absolute value sequence corresponding to the second signal and performing absolute value difference calculation on the absolute value sequence.
[0102] In this embodiment, by iteratively executing step S102, the second deviation is reduced to the current window frame shift in each iteration until the preset convergence condition is met, so that the determined second starting position range can be continuously reduced and gradually approach the true starting point of the signal. By trimming the previous deviation in each iteration, the accuracy of the signal starting position is improved.
[0103] See also Figure 2 , which is a schematic diagram of the structure of a device for determining the starting position of a signal provided in an embodiment of the present application. Figure 2 As shown, the device 20 includes a data acquisition module 21 , a first positioning module 22 and a second positioning module 23 .
[0104] Among them, the data acquisition module 21 is used to obtain the first starting position range of the target signal; the first positioning module 22 is used to determine the second starting position range based on the first signal corresponding to the first starting position range by calculating the spectral entropy sequence corresponding to the first signal and performing spectral entropy difference calculation on the spectral entropy sequence; the second positioning module 23 is used to determine the target starting position based on the second signal corresponding to the second starting position range by calculating the absolute value sequence corresponding to the second signal and performing absolute value difference calculation on the absolute value sequence; the absolute value sequence includes the absolute value of each data point in the second signal.
[0105] An apparatus for determining a signal starting position provided in an embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be described in detail here.
[0106] Further, based on the above embodiment, the first positioning module 22 is specifically used to intercept and process the target signal based on the first starting position range to obtain a first signal corresponding to the first starting position range; by sliding a preset sliding window, the spectral entropy value corresponding to each window frame is calculated, and a spectral entropy sequence of the first signal is constructed; by performing a differential operation on the spectral entropy values in the spectral entropy sequence, the window frame index corresponding to the maximum spectral entropy value is determined from the spectral entropy sequence; based on the window frame index and the window parameters corresponding to the preset sliding window, the second starting position range is determined.
[0107] An apparatus for determining a signal starting position provided in an embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be described in detail here.
[0108] Further, based on the above embodiment, when the second starting position range is determined based on the window frame index and the window parameters corresponding to the preset sliding window, the first positioning module 22 is specifically configured to determine the second starting position Y2 according to the window frame index Index_a, the first starting position Y1 in the first starting position range, and the window frame length S in the window parameters; the second starting position Y2 is expressed by the formula:
[0109] Y2= Y1+(Index_a+1)*S
[0110] In the formula, Index_a+1 represents the next window frame index of the window frame index Index_a; the second starting position range includes the second starting position and the second deviation; and the second deviation is the window frame shift in the window parameter.
[0111] An apparatus for determining a signal starting position provided in an embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be described in detail here.
[0112] Furthermore, based on the above embodiment, the process of determining the second starting position range in the first positioning module 22 can be iteratively performed, and each iteration reduces the second deviation to the current window frame shift until a preset convergence condition is met.
[0113] An apparatus for determining a signal starting position provided in an embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be described in detail here.
[0114] Furthermore, based on the above embodiment, the second positioning module 23 is specifically used to intercept and process the first signal based on the second starting position range to obtain a second signal corresponding to the second starting position range; perform absolute value calculation on each data point in the second signal to construct an absolute value sequence corresponding to the second signal; perform differential operation on the absolute value sequence to determine the data index corresponding to the maximum difference value from the absolute value sequence; and determine the target starting position based on the second starting position and the data index in the second starting position range.
[0115] An apparatus for determining a signal starting position provided in an embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be described in detail here.
[0116] Further, based on the above embodiment, when the target starting position is determined based on the second starting position in the second starting position range and the data index, the second positioning module 23 is specifically configured to determine the target starting position Y3 based on the second starting position Y2 in the second starting position range and the data index Index_b. The target starting position Y3 is expressed by the formula:
[0117] Y3= Y2+Index_b+1
[0118] In the formula, Index_b+1 represents the next data index of data index Index_b.
[0119] An apparatus for determining a signal starting position provided in an embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be described in detail here.
[0120] Further, based on the above embodiment, the first starting position range in the data acquisition module 21 includes a first starting position and a first deviation; the first deviation is the Fourier transform length used when performing Fourier transform on the target signal to generate a time-frequency spectrum; the first starting position is the signal starting position determined based on the signal power change in the time-frequency spectrum.
[0121] An apparatus for determining a signal starting position provided in an embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be described in detail here.
[0122] See also Figure 3 , which is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, including:
[0123] Memory 11, for storing computer programs;
[0124] The processor 12 is configured to implement the step of determining a signal starting position as described in any of the above method embodiments when executing the computer program.
[0125] In this embodiment, the device may be an in-vehicle computer, a PC (Personal Computer), or a terminal device such as a smart phone, a tablet computer, a PDA, or a portable computer.
[0126] The device may include a memory 11 , a processor 12 , and a bus 13 .
[0127] The memory 11 includes at least one type of readable storage medium, including flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory), a magnetic storage device, a magnetic disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the device, such as the device's hard disk. In other embodiments, the memory 11 may also be an external storage device of the device, such as a plug-in hard disk equipped with the device, a SmartMedia Card (SMC), a Secure Digital (SD) card, a flash memory card, etc. Furthermore, the memory 11 may include both an internal storage unit of the device and an external storage device. The memory 11 can be used not only to store application software installed in the device and various data, such as program code for executing the method for determining the signal starting position, but also to temporarily store data that has been output or is about to be output. In some embodiments, the processor 12 may be a central processing unit (CPU).
[0128] In some embodiments, the processor 12 can be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip, used to run the program code stored in the memory 11 or process data, such as the program code of the method for determining the starting position of the execution signal.
[0129] The bus 13 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0130] Furthermore, the device may also include a network interface 14, which may optionally include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the device and other electronic devices.
[0131] Optionally, the device may further include a user interface 15, which may include a display and an input unit such as a keyboard. Optionally, the user interface 15 may also include a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. The display may also be appropriately referred to as a display screen or display unit, and is used to display information processed by the device and to display a visual user interface.
[0132] Figure 3 Only the device with components 11-15 is shown, and it will be understood by those skilled in the art that Figure 3 The structure shown does not constitute a limitation of the device, and may include fewer or more components than shown, or combine certain components, or arrange the components differently.
[0133] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, an embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method for determining the signal starting position as described in any of the above embodiments.
[0134] The computer-readable media of the embodiments of the present application include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0135] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the method for determining the signal starting position as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0136] It should be noted that the various embodiments in this specification are described in a progressive manner. The same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for methods, devices, electronic devices and media, since they are basically similar to the method embodiments, the description is relatively simple. For relevant parts, refer to the partial description of the method embodiments. The methods, devices, electronic devices and media described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components indicated as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement them without expending any creative effort.
[0137] The above is merely one specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A method for determining a signal starting position, characterized in that: include: Obtaining a first starting position range of a target signal; Based on the first starting position range, intercepting and processing the target signal to obtain a first signal corresponding to the first starting position range; By sliding a preset sliding window, calculating the spectral entropy value corresponding to each window frame, and constructing a spectral entropy sequence of the first signal; By performing a differential operation on the spectral entropy values in the spectral entropy sequence, a first-order spectral entropy difference value between two adjacent spectral entropy values is calculated, a maximum spectral entropy difference value is determined from the obtained multiple first-order spectral entropy difference values, and then a window frame index corresponding to the maximum spectral entropy difference value is determined; Determining a second starting position range based on the window frame index and the window parameters corresponding to the preset sliding window; Based on the second starting position range, intercepting and processing the first signal to obtain a second signal corresponding to the second starting position range; Calculating the absolute value of each data point in the second signal to construct an absolute value sequence corresponding to the second signal; Performing a difference operation on the absolute value sequence to calculate a first-order difference value between the absolute values of two adjacent data points, determining a maximum difference value from the obtained multiple first-order difference values, and then determining a data index corresponding to the maximum difference value; A target starting position is determined based on the second starting position in the second starting position range and the data index.
2. The method according to claim 1, characterized in that The determining of a second starting position range based on the window frame index and the window parameter corresponding to the preset sliding window includes: A second starting position Y2 is determined according to the window frame index Index_a, the first starting position Y1 in the first starting position range, and the window frame length S in the window parameters; the second starting position Y2 is expressed by the formula: ; Where, Index_a+1 represents the next window frame index of the window frame index Index_a; The second starting position range includes the second starting position and a second deviation; the second deviation is the window frame shift in the window parameters.
3. The method according to claim 2, characterized in that The process of determining the second starting position range is performed iteratively, and each iteration reduces the second deviation to the current window frame shift until a preset convergence condition is met.
4. The method according to claim 1, wherein The determining of the target starting position based on the second starting position in the second starting position range and the data index includes: Based on the second starting position Y2 in the second starting position range and the data index Index_b, a target starting position Y3 is determined. The target starting position Y3 is expressed by the formula: ; In the formula, Index_b+1 represents the next data index of the data index Index_b.
5. The method according to claim 1, wherein The first starting position range includes a first starting position and a first deviation; the first deviation is the Fourier transform length used when performing Fourier transform on the target signal to generate a time-frequency spectrum; the first starting position is the signal starting position determined based on the signal power change in the time-frequency spectrum.
6. A device for determining a signal starting position, characterized in that: include: A data acquisition module, configured to acquire a first starting position range of a target signal; A first positioning module is configured to intercept and process the target signal based on the first starting position range to obtain a first signal corresponding to the first starting position range; calculate a spectral entropy value corresponding to each window frame by sliding a preset sliding window, and construct a spectral entropy sequence of the first signal; calculate a first-order spectral entropy difference value between two adjacent spectral entropy values by performing a differential operation on the spectral entropy values in the spectral entropy sequence, determine a maximum spectral entropy difference value from the obtained multiple first-order spectral entropy difference values, and then determine a window frame index corresponding to the maximum spectral entropy difference value; Determining a second starting position range based on the window frame index and the window parameters corresponding to the preset sliding window; The second positioning module is used to intercept and process the first signal based on the second starting position range to obtain a second signal corresponding to the second starting position range; calculate the absolute value of each data point in the second signal to construct an absolute value sequence corresponding to the second signal; perform a differential operation on the absolute value sequence to calculate the first-order difference value between the absolute values of two adjacent data points, determine the maximum difference value from the multiple first-order difference values obtained, and then determine the data index corresponding to the maximum difference value; determine the target starting position based on the second starting position in the second starting position range and the data index.
7. An electronic device, characterized in that: The device includes: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 5 when executed by a processor.