Time delay estimation algorithm based on generalized quadratic correlation
By performing power operations and weighting processing in the microphone array model, the accuracy of time delay estimation is improved, the problem of inaccurate time delay estimation under low signal-to-noise ratio in the existing technology is solved, and the accuracy of sound source localization is significantly improved. sex.
Patent Information
- Application Number
- CN202410445286.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-15
- Publication Date
- 2024-09-06
AI Technical Summary
Existing delay estimation algorithms have low delay estimation accuracy under low signal-to-noise ratio conditions and are greatly affected by noise interference, which affects positioning accuracy.
Design a time delay estimation algorithm based on generalized quadratic correlation. By constructing a microphone array model, perform power operation preprocessing on the received signal, and design a weighting function based on the generalized quadratic correlation to perform two cross-correlation operations. Secondary weighting to improve the accuracy of delay estimation.
It effectively suppresses noise interference, improves the anti-noise performance of the algorithm, improves the accuracy of time delay estimation under low signal-to-noise ratio, and significantly improves the accuracy of sound source localization.
Smart Images

Figure CN118609583A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of delay estimation algorithms in the field of sound source localization algorithms in speech signal processing. Based on the generalized quadratic correlation algorithm, the present invention designs a weighting function and performs weighting respectively during two cross-correlations to achieve delay estimation. Compared with the GCC and GCC-PHAT algorithms, the algorithm improves the accuracy of delay feature calculation and the robustness of the algorithm. Background Art
[0002] There are three main methods to determine the location of the sound source through microphone arrays, including beamforming, super-resolution spectrum estimation, and time difference of arrival (TDOA) method. Among them, the TDOA algorithm is the most widely used. Its core idea is to convert the time difference into distance difference, and then solve the direction and distance parameters of the sound source through the position relationship of the array elements.
[0003] Estimating the time delay is the most critical step in TDOA-based sound source localization. Generalized Cross-Correlation (GCC) is one of the most widely used methods for estimating the time delay. GCC performs weighting in the power spectrum of the signal to suppress noise interference in the time domain and sharpen the related signals. However, under low signal-to-noise ratio conditions, the performance of GCC decreases significantly and the accuracy of delay estimation decreases sharply.
[0004] The quadratic correlation algorithm derived from GCC has improved noise resistance compared to the GCC algorithm. The generalized quadratic correlation algorithm performs generalized cross-correlation processing on the results of quadratic correlation, further removing the influence of noise and improving the accuracy of delay estimation to a certain extent. However, the noise resistance performance under low signal-to-noise ratio is still limited, and the accuracy of delay estimation needs to be improved.
[0005] In summary, the existing delay estimation algorithm is greatly affected by noise interference, and the accuracy of delay estimation decreases sharply under low signal-to-noise ratio conditions. Inaccurate delay estimation will directly affect the accuracy of positioning. Therefore, it is necessary to optimize the existing algorithm and improve the accuracy of delay estimation under low signal-to-noise ratio. Summary of the invention
[0006] In view of this, the present invention provides a time delay estimation algorithm based on generalized quadratic correlation, aiming to overcome the shortcomings of the above-mentioned problems in the prior art, improve the accuracy of time delay estimation under low signal-to-noise ratio conditions, and thus provide support for accurate positioning of the sound source. The algorithm analyzes the characteristics of the weighting function, starts from the perspective of designing the weighting function, and combines the advantages of the generalized quadratic correlation algorithm to perform quadratic weighting, which can effectively solve the problem of low accuracy of the existing time delay estimation algorithm under low signal-to-noise ratio conditions.
[0007] A delay estimation algorithm based on generalized quadratic correlation is characterized by first constructing a microphone array model, using the array to receive signals, and performing power operation preprocessing on the signals received by the microphones, performing generalized quadratic correlation on the preprocessed signals, designing a weighting function, and performing weighting at each cross-correlation, i.e., performing quadratic weighting, and obtaining the delay value according to the time when the correlation is maximum.
[0008] To achieve the above object, the technical solution of the present invention is achieved as follows:
[0009] A time delay estimation algorithm based on generalized quadratic correlation comprises the following steps:
[0010] Step 1: Build a dual-microphone array model and perform power calculation preprocessing on the signal received by the microphone.
[0011] Step 2: Design a weighting function based on the PHAT function and apply it to the two weighting processes.
[0012] Step 3: Based on the generalized quadratic correlation, double weighting is performed, that is, weighting is performed separately during the two cross-correlations to further improve the accuracy of delay estimation under low signal-to-noise ratio.
[0013] Step 4: Calculate the delay and detect R RR The maximum value of (τ), and T corresponding to the maximum value is the estimated value of the delay.
[0014] Furthermore, in step 1, the received speech signal is subjected to power operation, and a lower power is selected when the signal-to-noise ratio is large, and a larger power is selected when the signal-to-noise ratio is small. For the convenience of explanation, 0<m<n<10 is taken, r is the signal-to-noise ratio threshold, and the mth power is selected when the signal-to-noise ratio is greater than r, and the nth power is selected for processing when the signal-to-noise ratio is less than r. After processing, the signal with a larger amplitude in the original speech signal becomes larger, while the signal with a lower amplitude becomes smaller. By sacrificing the signal information with a lower amplitude, the noise is effectively suppressed, and more attention is paid to the correlation between signals. Among them, the selection of m, n, and r values can be adjusted according to the actual environment, and the optimal value is selected.
[0015] Furthermore, the weighting function in step 2 is as follows:
[0016]
[0017] in, G x (ω) is the autocorrelation power spectrum of the signal x(n), G y (ω) is the autocorrelation power spectrum of the signal y(n), and the value of ρ can be adjusted according to the actual environment to select the optimal value.
[0018] Furthermore, step 3 specifically includes the following steps:
[0019] Step 31: Right Figure 2 The signals received by the two microphones in the microphone array are expressed in mathematical expressions. The received signals of the two microphones in the array are:
[0020] x(n)=α 1 s(n-τ 1 )+n 1 (n)
[0021] y(n)=α 2 s(n-τ 2 )+n 2 (n)
[0022] Among them, s(n) is the sound source signal, n 1 (n) and n 2 (n) is the environmental noise, τ 1 and τ 2 is the propagation time of the signal from the sound source to the two microphone array elements, α 1 and α 2 Indicates different degrees of attenuation.
[0023] Step 32: Autocorrelate the signal x(n). Assume that the signal and the noise are independent of each other, the noise is Gaussian white noise, and the autocorrelation function is:
[0024] R xx (τ)=E[x(n)x(n-τ)]
[0025] =α 1 α 2 E[s(n-τ 1 )s(n-τ 1 -τ)]+2α 1 E[s(n-τ 1 ) 1 (n-τ)]
[0026] +E[n 1 (n)n 1 (n-τ)]
[0027] =α 1 α 2 R ss (τ)
[0028] Step 33: Weight the cross power spectra of signals x(n) and y(n) in the frequency domain.
[0029] Step 34: According to the Wiener-Khinchin theorem, the cross-correlation function after frequency domain weighting can be obtained from step 33:
[0030]
[0031] Step 35: In the frequency domain, the signal R xx (τ) and R xy The cross power spectrum of (τ) is weighted.
[0032] Step 36: According to the Wiener-Khinchin theorem, the cross-correlation function after frequency domain weighting can be obtained from step 26:
[0033]
[0034] Compared with the prior art, the delay estimation algorithm based on generalized quadratic correlation described in the present invention has the following advantages:
[0035] The present invention performs a preprocessing operation of power operation on the speech signal, effectively suppresses noise by sacrificing the signal information with lower amplitude, and pays more attention to the correlation between signals.
[0036] The present invention designs a weighting function, which is applied to the weighting process to suppress noise interference in the time domain, sharpen related signals, and improve the anti-noise performance of the algorithm.
[0037] The present invention adopts quadratic weighting based on generalized quadratic correlation, that is, weighting is performed separately during the two cross-correlations to further suppress noise interference and improve the accuracy of delay estimation under low signal-to-noise ratio. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings:
[0039] Figure 1 A schematic diagram of a time delay estimation algorithm based on generalized quadratic correlation according to the present invention;
[0040] Figure 2 is a schematic diagram of a microphone array of the present invention;
[0041] Figure 3 It is a block diagram of the twice weighted process based on generalized quadratic correlation of the present invention;
[0042] Figure 4 The target signal, the noisy signal, and the amplitude spectrum of the noisy signal after preprocessing when the signal-to-noise ratio is 0 dB in the present invention;
[0043] Figure 5 The target signal, the noisy signal, and the amplitude spectrum of the noisy signal after preprocessing when the signal-to-noise ratio is -5dB in the present invention;
[0044] Figure 6The target signal, the noisy signal, and the amplitude spectrum of the noisy signal after preprocessing when the signal-to-noise ratio is -10dB in the present invention; DETAILED DESCRIPTION
[0045] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other.
[0046] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "multiple" means two or more.
[0047] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood by specific circumstances.
[0048] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0049] Step 1: Build a dual-microphone array model, such as Figure 2 As shown, the signal received by the microphone is preprocessed by power operation.
[0050] In this embodiment, a 5-second speech is used as the target signal. The microphone receives the speech signal with a sampling rate of 8000 Hz. The signal received by the microphone is preprocessed. Set r = -5dB, m = 3, n = 5, select the power of 3 when the signal-to-noise ratio is greater than -5dB, and select the power of 5 when the signal-to-noise ratio is less than -5dB. The changes in the speech amplitude before and after processing when the signal-to-noise ratio is 0dB, -5dB, and -10dB are as follows: Figure 4 , 56. The processed signal is windowed and framed. The Hamming window is used for windowing. When the frame is framed, the frame length is set to 256 and the frame shift is set to 128.
[0051] Step 2: Based on the PHAT function, a weighting function is designed and applied to the two weighting processes. In the weighting function, ρ = 0.7 is set, that is,
[0052]
[0053] Step 3: Implement double weighting based on generalized quadratic correlation, that is, perform weighting separately during the two cross-correlations to further improve the accuracy of delay estimation under low signal-to-noise ratio.
[0054] In this embodiment, a signal x(n) is autocorrelated. Fourier transform is performed on the signals x(n) and y(n), the cross power spectra of the signals x(n) and y(n) are weighted in the frequency domain, and the result of the frequency domain weighting is inverse Fourier transform to obtain the cross-correlation function of x(n) and y(n). Fourier transform is performed on the autocorrelation function of the signal x(n) and the cross-correlation function of the signals x(n) and y(n), and the result of the frequency domain weighting is inverse Fourier transform to obtain the cross-correlation function R of the autocorrelation function of the signal x(n) and the cross-correlation function of the signals x(n) and y(n). RR (τ).
[0055] Step 4: Detect R RR The maximum value of (τ), and the τ corresponding to the maximum value is the estimated delay value.
[0056] Beneficial Effects
[0057] Computer simulation uses the MCROOMSIM library in MATLAB to simulate a room of 20*30*40m in size. Sound sources and microphones can be placed anywhere in the room. For the convenience of the experiment, the position coordinates of the two microphone array elements are set to (10, 22, 20) (3, 15, 20), the noise source position is set to (10, 15, 20), and the target sound source position is set to (15, 12, 13). A 5-second speech is used as the target signal, the sampling frequency is 8000Hz, and the Hamming window is used for windowing. When framing, the frame length is set to 256 and the frame shift is set to 128.
[0058] Under the above parameter settings, the target sound source position is changed to obtain the following beneficial effects. Among them, the delay estimation efficiency is defined as:
[0059]
[0060] The results in the analysis table show that, compared with the GCC and GCC-PHAT algorithms, the delay estimation results of the present invention are more stable for different sound source locations, and the delay estimation results are more accurate under low signal-to-noise ratio, which has obvious beneficial effects.
[0061] Table 1 Effectiveness of delay estimation of GCC, GCC-PHAT and the present invention when the signal-to-noise ratio is 0 dB
[0062]
[0063] Table 2 Effectiveness of delay estimation of GCC, GCC-PHAT and the present invention when the signal-to-noise ratio is -5dB
[0064]
[0065]
[0066] Table 3 Effectiveness of delay estimation of GCC, GCC-PHAT and the present invention when the signal-to-noise ratio is -10dB
[0067]
Claims
1. A time delay estimation algorithm based on generalized quadratic correlation, characterized by: The steps include: Step 1: Build a dual-microphone array model and perform power calculation preprocessing on the signal received by the microphone; Step 2: Design a weighting function based on the PHAT function and apply it to the two weighting processes; Step 3: Implement double weighting based on generalized quadratic correlation, that is, perform weighting separately during the two cross-correlations to further improve the accuracy of delay estimation under low signal-to-noise ratio; Step 4: Calculate the delay and detect R RR The maximum value of (τ) corresponds to the estimated delay value.
2. The delay estimation algorithm based on generalized quadratic correlation according to claim 1 is characterized in that: In the step 1, the received voice signal is subjected to a power operation, and a lower power is selected when the signal-to-noise ratio is large, and a larger power is selected when the signal-to-noise ratio is small. For the convenience of explanation, 0<m<n<10 may be taken, r is the signal-to-noise ratio threshold, and when the signal-to-noise ratio is greater than r, the mth power is selected, and when the signal-to-noise ratio is less than r, the nth power is selected for processing. After processing, the signal with a larger amplitude in the original voice signal becomes larger, and the signal with a lower amplitude becomes smaller. In this way, the noise is effectively suppressed by sacrificing the signal information with a lower amplitude, and more attention is paid to the correlation between signals. Among them, the selection of m, n, and r values can be adjusted according to the actual environment, and the optimal value is selected.
3. The delay estimation algorithm based on generalized quadratic correlation according to claim 1, characterized in that: In step 2, the weighting function is as follows: in, G x (ω) is the autocorrelation power spectrum of the signal x(n), G y (ω) is the autocorrelation power spectrum of the signal y(n), and the value of ρ can be adjusted according to the actual environment to select the optimal value.
4. The delay estimation algorithm based on generalized quadratic correlation according to claim 1, characterized in that: The step 3 specifically includes the following steps: Step 31: A mathematical expression is used to represent the signals received by the two microphones in the microphone array. The received signals of the two microphones in the array are: x(n)=a1s(n-τ1)+n1(n) y(n)=a2s(n-τ2)+n2(n) Where s(n) is the sound source signal, n1(n) and n2(n) are the environmental noise, τ1 and τ2 are the propagation times of the signal from the sound source to the two microphone array elements, and a1 and a2 represent different degrees of attenuation; Step 32: Autocorrelate the signal x(n). Assume that the signal and the noise are independent of each other and the noise is Gaussian white noise. The autocorrelation function is: R xx (τ)=E[x(n)x(n-τ)] =a1a2E[s(n-τ1)s(n-τ1-τ)]+2a1E[s(n-τ1)n1(n-τ)] +E[n1(n)n1(n-τ)] =a1a2R ss (t) Step 33: weighting the cross power spectra of signals x(n) and y(n) in the frequency domain; Step 34: According to the Wiener-Khinchin theorem, the cross-correlation function after frequency domain weighting can be obtained from step 33: Step 35: In the frequency domain, the signal R xx (τ) and R xy The cross power spectrum of (τ) is weighted; Step 36: According to the Wiener-Khinchin theorem, the cross-correlation function after frequency domain weighting can be obtained from step 26:
