Acoustic echo cancellation method with variable number of input data reuse based on ADALINE model
By dynamically adjusting the number of input data reuses and introducing a memory gain coefficient matrix in the ADALINE model, the problem of a fixed number of input data reuses in acoustic echo cancellation is solved, achieving fast learning, low misalignment and low complexity acoustic echo cancellation. The effect is to improve call quality.
Patent Information
- Application Number
- CN202410953055.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-17
AI Technical Summary
The existing technology has the problem of a fixed number of input data reuses in acoustic echo cancellation, which makes it difficult to balance the learning speed and steady-state imbalance and results in high computational complexity.
An acoustic echo cancellation method with a variable number of input data reuse based on the ADALINE model is adopted. By dynamically adjusting the number of data reuse and introducing a memory gain coefficient matrix, the number of data reuse evolves from large to small, adapting to the learning of sparse systems. need.
It achieves fast learning speed, low steady-state imbalance and low computational complexity, improves the convergence performance of the algorithm and the acoustic echo cancellation effect, and ensures the clarity of call quality.
Smart Images

Figure CN118658485A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of acoustic echo cancellation in voice communication, and in particular to an acoustic echo cancellation method based on a variable number of reused input data. Background Art
[0002] In the 1960s, Widrow, Hoff and others proposed the Adaptive Linear Neuron model, referred to as the ADALINE neural network. The self-learning neural network uses the least mean square (LMS) algorithm for learning. By dynamically adjusting the weights, the error between the output prediction signal of the ADALINE neural network and the expected sample signal is made infinitely small, thereby completing the entire training process. In the voice communication scenario, since the speaker and microphone of the device are in working state at the same time, the voice signal is captured by the far-end microphone and then played through the near-end speaker. It is then directly or indirectly recaptured into the near-end microphone and transmitted back to the far-end speaker, causing acoustic echo interference in the communication. In this process, the propagation path of sound from the near-end speaker to the microphone is called the acoustic echo path, which is an acoustic coupling phenomenon. Its impulse response vector is generally expressed as Ψ. o Acoustic echo is commonly found in communication systems and can seriously affect call quality and reduce communication efficiency. Therefore, taking effective measures to suppress or eliminate acoustic echo is of great significance to improving call quality.
[0003] By analyzing the principle of acoustic echo generation, we can know that the most fundamental and direct method of acoustic echo control is to improve the communication environment. For example; the sound-absorbing material wallpaper commonly seen on the market can achieve the purpose of noise reduction, but this method has too many limitations. It requires that communication can only be carried out in a specific environment and can only play a certain inhibitory role, and cannot directly eliminate acoustic echoes. In addition, the acoustic echo suppressor is also an effective means of suppressing acoustic echoes that appeared earlier. Usually, the device is installed at the sound source of the communication equipment, and the distance to the acoustic echo source is the best. However, this method is a one-way transmission process, and in actual scenarios, it is usually a two-way call, so this method has great limitations on users.
[0004] Due to the continuous innovation and development of ADALINE neural network technology and the rapid progress of self-learning algorithms, self-learning ADALINE neural network acoustic echo cancellation technology has become the most widely used acoustic echo cancellation method. ADALINE neural network analyzes the acoustic echo path impulse response Ψ oThe prediction is made to generate the predicted value of the expected sample signal, and the weight coefficient of the ADALINE neural network is automatically adjusted according to the changes in the environment, so that the predicted value output by the ADALINE neural network is close to the actual expected sample signal, and then the acoustic echo prediction value is offset by all the signals received from the near-end microphone, and finally the residual echo signal is obtained. With continuous iterations, the residual echo signal in the expected sample signal will gradually decrease, achieving the purpose of acoustic echo cancellation.
[0005] In practice, compared with related signals, speech signals have highly correlated and non-stationary characteristics, among which the highly correlated characteristics of the signal will slow down the learning speed of the algorithm. Therefore, in the ADALINE neural network, the self-learning algorithm for processing related signals occupies an important position. Since the affine projection algorithm (APA) is a type of optimization algorithm in the data reuse algorithm, APA can be called a data reuse algorithm. Among them, compared with the normalized least mean square (NLMS) algorithm, the data reuse algorithm (APA) has a faster learning speed. This is because the NLMS algorithm only uses the current input vector to update the ADALINE neural network weights, while the data reuse algorithm uses the M most recent input vectors to update the ADALINE neural network weights (M is called the number of input data reuses), which speeds up the learning speed of the algorithm in related signals. However, the data reuse algorithm has encountered new challenges in the field of acoustic echo cancellation. Because, in most cases, the impulse response of the acoustic echo path is sparse, and sparse systems slow down the learning speed of the algorithm. In order to solve the problem of slow learning rate of data reuse algorithm in sparse system, proportional data reuse algorithm (PAPA) has been widely studied. The proportional method assigns different learning rates to each ADALINE neural network weight, so that both large and small weights of ADALINE neural network can converge quickly, thus accelerating the overall convergence of the algorithm.
[0006] Although PAPA can effectively target sparse systems, the algorithm itself still has the problem that the number of input data reuses (M) is fixed, resulting in an inability to achieve a balance between learning speed and steady-state imbalance. In order to solve the problem that the number of input data reuses is fixed, S. Kim et al. proposed a data reuse algorithm with evolving data number (S. Kim, S. Kong, aid W. Song, "An affine projection algorithm with evolving order," IEEE Signal Processing Letters, 16 (11): 937–940, 2009.), referred to as E-APA. The algorithm has a faster learning speed and realizes the evolution of the number of input data reuses from high to low. However, since the number of data reuses M is greater than 1 in the steady state, the steady-state imbalance cannot be minimized. In addition, Z.Niu et al. proposed a switching mechanism for the number of data reused by the data reuse algorithm (Z.niu, Y.Gao, J.Xu, and S.Ou, "Switching mechanism on the order ofaffineprojection algorithm," Electronics, 2022.), referred to as SO-APA. The algorithm can switch between high and low data reuse numbers and large and small learning rates during the iteration process, thereby having a faster learning speed and lower steady-state imbalance, but the transition phase of the algorithm is not smooth. In addition, neither the above-mentioned E-APA nor SO-APA considers the proportional method, which results in the algorithm not being able to have a faster learning speed in a sparse system. The present invention also adds a proportional scheme when the number of input data reuse is variable, so it has a faster learning speed in a sparse system, and the effect of acoustic echo cancellation is also better.
[0007] The existing Chinese patent document CN201710155109.6 discloses a combined step-proportional affine projection acoustic echo cancellation method, referred to as CSS-PAPA. The steps are as follows: A. Collect the sound signal x(i) from the far end at the telephone speaker and the acoustic echo signal d(i) at the telephone microphone; B. Use the sound signal x(i) as the input of the adaptive filter, and its output is the estimated value of the acoustic echo signal C. Acoustic echo cancellation - subtract the residual echo signal e(i) obtained from d(i) as the clean signal after eliminating the acoustic echo and transmit it to the far end; D. Calculate the residual acoustic echo vector of the adaptive filter; E. Calculate the weight update increment Δw(i) of the adaptive filter; F. Calculate the combined step size m(i); G. Update the weight vector w(i+1)=w(i)+m(i)Δw(i) of the adaptive filter; H. Set i=i+1, and repeat steps A, B, C, D, E, F, and G until the call ends. This patent has the advantages of fast learning speed and low steady-state imbalance.
[0008] Although the above-mentioned existing patent can also solve the problem of speech acoustic echo cancellation, compared with the present invention, the existing patent still has the problem that the number of reused input data is fixed. The number of reused input data is a core parameter in the APA algorithm. Because, the larger the number of reused data, the faster the algorithm has a learning speed, but it has a higher steady-state imbalance and a greater computational complexity; on the contrary, the smaller the number of reused data, the lower the steady-state imbalance and computational complexity of the algorithm, but the learning speed becomes very slow. It can be seen that improving the number of reused input data of the APA algorithm is of great significance to improving the convergence performance of the algorithm and reducing the computational complexity. Summary of the invention
[0009] The object of the present invention is to provide an acoustic echo cancellation method with a variable number of reused input data based on the ADALINE model. The method has the characteristics of fast learning speed, small steady-state imbalance, low overall computational complexity and good acoustic echo cancellation effect for speech signals.
[0010] In order to achieve the above technical objectives and the above technical effects, the present invention is implemented through the following technical solutions:
[0011] An acoustic echo cancellation method with a variable number of reused input data based on an ADALINE model is disclosed. The method uses an ADALINE neural network model to complete acoustic echo cancellation. The steps are as follows:
[0012] K1: Get the initial signal at time i:
[0013] At time i, the voice signal input from the far end is sampled and processed to obtain the discrete value s(i) of the voice signal at time i, and s(i) is used as the input sample signal of the ADALINE neural network; at the same time, the signal picked up by the near-end microphone is sampled to obtain the expected sample signal h(i) of the ADALINE neural network, which includes the echo signal generated by the far-end input sample signal s(i) through the echo path.
[0014] K2: Calculate the acoustic echo prediction signal g(i) of the ADALINE neural network at time i:
[0015] Collect the discrete value samples of s(i) from time i to time i-L+1 in step K1, and combine them into the input data reuse sample vector s(i) of the ADALINE neural network at the current time i, denoted as s(i) = [s(i), s(i-1)..., s(i-L+1)] T , where L represents the length of the ADALINE neural network, and the symbol T represents the transpose of the vector;
[0016] Calculate the acoustic echo prediction signal g(i) of the ADALINE neural network at time i, expressed as g(i)=Ψ T (i)s(i), where Ψ(i)=[Ψ(1),Ψ(2)...,Ψ(L)] T is the tap weight vector of the ADALINE neural network, which is initially set to a zero vector; the acoustic echo prediction signal g(i) is the prediction value of the ADALINE neural network for the echo component in the expected sample signal h(i).
[0017] K3: Implement acoustic echo cancellation and obtain the residual echo signal c(i) at time i:
[0018] At time i, the acoustic echo prediction signal g(i) is inverted and then superimposed with the expected sample signal h(i), thereby eliminating the acoustic echo contained in the expected sample signal h(i) and achieving acoustic echo cancellation, where c(i)=h(i)-g(i) represents the residual echo signal.
[0019] K4: Change the number of reused input data and calculate the number of reused input data at time i M(i):
[0020] K4.1: Use the M(i) input data reuse sample vectors from time i to iM(i)+1 closest to the input sample vector s(i) in step K2 of the claim to form an input data reuse sample matrix S of order L×M(i) at time i M(i) (i), denoted by S M(i)(i) = [s(i), s(i-1), ..., s(iM(i)+1)], where M(i) is the number of reused input data at time i. In the present invention, the value of M(i) is time-varying, and the specific calculation of the time-varying M(i) is shown in step K4.7 in the claims;
[0021] K4.2: Use the expected sample signal h(i) and acoustic echo prediction signal g(i) from time i to iM(i)+1 to respectively construct the expected sample signal vector h(i) and acoustic echo prediction signal vector g(i) at time i, denoted as h(i)=[h(i),h(i-1),...,h(iM(i)+1)] T and g(i)=[g(i),g(i-1),...,g(iM(i)+1)] T ;
[0022] K4.3: Calculate the residual echo signal c(i) at time i using step K3 described in the claims, and combine with step K4.2 to obtain the residual echo signal vector c at time i M(i) (i) That is c M(i) (i) = h(i) - g(i), denoted by c M(i) (i)=[c(i),c(i-1),...,c(iM(i)+1)] T ;
[0023] K4.4: At time i, calculate the parameter used to change the number of input data reuses It represents the variance prediction value of the residual echo signal c(i) after eliminating noise;
[0024]
[0025] Where: χ∈(0.9,1) is the smoothing factor, 2 represents the square of the Euclidean norm, ε is a non-zero parameter, and its parameter limit is usually between 0.0001 and 0.001. and The initial settings of are all zero, and The start of is set to zero vector;
[0026] K4.5: At time i, the parameter used to change the number of input data reuses is calculated by the following formula: It represents the variance estimate of the noise;
[0027]
[0028] in: It is also a smoothing factor, and its value range is usually (0.9, 1). and denote the variance estimates of the expected sample signal h(i) and the acoustic echo prediction signal g(i), respectively, and and The initial settings are all zero;
[0029] K4.6: Using the parameters in claim step K4.4 and the parameters in step K4.5 Calculate the mixing factor at time i
[0030]
[0031] K4.7: Using the mixing factor in step K4.6 of claim Calculate the number of reused sample vectors M(i) of the ADALINE neural network input data at time i:
[0032]
[0033] Among them, round(·) means rounding the calculation result.
[0034] K5: Calculate the gain coefficient matrix at time i:
[0035] k5.1: The calculation of the gain coefficient is as follows:
[0036]
[0037] Where: G l (i-1) represents the gain coefficient assigned to the l-th ADALINE neural network weight (0≤l≤L-1), and -1<ζ<1, the best choice of parameter ζ is -0.5, 0 and 0.5;
[0038] k5.2: Calculation of the gain coefficient matrix with memory:
[0039] P′ M(i) (i)=[G(i-1)⊙s(i),G(i-2)⊙s(i-1),…,G(iM(i))⊙s(iM(i)+1)]
[0040] Among them: G(i-1)=[G0(i-1),G1(i-1),...,G L-1 (i-1)] T represents the proportional gain vector, and the symbol ⊙ is the Hadamard product operator, which represents the product of corresponding elements between two vectors of the same length.
[0041] K6: Update the tap weight vector of the ADALINE neural network at time i:
[0042] Update the tap weight vector Ψ(i) of the ADALINE neural network at time i. The ADALINE neural network uses a data reuse algorithm for optimization learning. The optimization process is to adjust the weight vector by self-learning so that the acoustic echo prediction signal g(i) and the expected sample signal h(i) are infinitely close. The tap weight vector of the ADALINE neural network is updated as follows:
[0043]
[0044] Where: m is the learning rate, δ is a small positive number (it is to avoid the matrix irreversible), and I M(i) and(·) -1 They represent the identity matrix of order M(i)×M(i) and the matrix inverse operation respectively.
[0045] K7: Let time i=i+1, and re-execute steps K1 to K6 of the ADALINE neural network. By training more samples, the acoustic echo can be completely removed. The ADALINE neural network training will run through the entire call process.
[0046] Beneficial effects of the present invention:
[0047] The present invention allows the system to dynamically adjust the number of data reuses during the iteration process by introducing the concept of variable number of input data reuses. This dynamic adjustment mechanism enables the algorithm to complete the evolution of the number of data reuses from large to small during iteration, meeting the different requirements of the algorithm for the number of data reuses in the convergence stage and the steady-state stage, thereby accelerating the learning speed, reducing steady-state imbalance and reducing computational complexity. Compared with the method in which the number of input data reuses is fixed, this strategy can more flexibly realize the change of the number of data and effectively improve the convergence performance of the algorithm.
[0048] By introducing the traditional gain coefficient matrix, the algorithm can accelerate convergence in a sparse system. However, for the APA algorithm, the present invention uses a gain coefficient matrix with a memory type, which can better adapt to the APA algorithm. However, the memory-type gain coefficient matrix has the problem that the number of data reuses is fixed. Therefore, in order to solve this problem, the present invention proposes a memory-type gain coefficient matrix with a variable number of data reuses. Through the use of the gain coefficient matrix, combined with the dynamic adjustment of the instantaneous data reuse number, for sparse systems such as acoustic echo paths, rapid convergence and reduced computational complexity are achieved, while achieving a better acoustic echo cancellation effect.
[0049] The CSS-PAPA algorithm in the existing Chinese patent document CN201710155109.6 can effectively address the acoustic echo cancellation problem. However, the number of input data reused in the algorithm is fixed, and the gain coefficient matrix is also fixed, which limits its convergence performance. The variable data reuse number technology proposed in the present invention can solve the shortcomings of the patent.
[0050] Although the present invention introduces some additional calculation steps by dynamically adjusting the number of data reuses and calculating the gain coefficient matrix, the overall calculation complexity decreases as the number of data reuses decreases during the iteration process. Therefore, the method can maintain a low overall calculation complexity while maintaining a high-efficiency acoustic echo cancellation effect.
[0051] The greatest advantage of the present invention is its excellent acoustic echo cancellation effect. By dynamically adjusting the number of data reuses, faster learning speed, lower steady-state misalignment and smaller computational complexity are achieved. In the acoustic echo cancellation scenario, the method can accurately predict the acoustic echo path and effectively cancel the acoustic echo. This means that in practical applications, users can experience clear, acoustic echo-free call quality, even in the case of complex acoustic echo paths or large changes in background noise levels.
[0052] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0054] Figure 1 is a schematic diagram of a far-end voice signal;
[0055] Figure 2 Schematic diagram of impulse response of acoustic echo path;
[0056] Figure 3 Schematic diagram of the imbalance curves of algorithms PAPA, SO-PAPA, E-PAPA, CSS-PAPA and 1 implementation of the present invention.
[0057] Figure 4 Schematic diagram of acoustic return loss gain of algorithms PAPA, SO-PAPA, E-PAPA, CSS-PAPA and 1 implementation of the present invention.
[0058] Figure 5It is a comparison diagram of the expected sample signal h(i) and the residual echo signal c(i) of the present invention. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0060] Example 1
[0061] The present embodiment describes an acoustic echo cancellation method with a variable number of reused input data based on the ADALINE model. The method uses the ADALINE neural network model to complete speech signal cancellation. The steps are as follows:
[0062] K1: Get the initial signal at time i:
[0063] At time i, the voice signal input from the far end is sampled and processed to obtain the discrete value s(i) of the voice signal at time i, and s(i) is used as the input sample signal of the ADALINE neural network; at the same time, the signal picked up by the near-end microphone is sampled to obtain the expected sample signal h(i) of the ADALINE neural network, which includes the echo signal generated by the far-end input sample signal s(i) through the echo path.
[0064] K2: Calculate the acoustic echo prediction signal g(i) of the ADALINE neural network at time i:
[0065] Collect the discrete value samples of s(i) from time i to time i-L+1 in step K1, and combine them into the input data reuse sample vector s(i) of the ADALINE neural network at the current time i, denoted as s(i) = [s(i), s(i-1)..., s(i-L+1)] T , where L represents the length of the ADALINE neural network, and the symbol T represents the transpose of the vector;
[0066] Calculate the acoustic echo prediction signal g(i) of the ADALINE neural network at time i, expressed as g(i)=Ψ T (i)s(i), where Ψ(i)=[Ψ(1),Ψ(2)...,Ψ(L)] T is the tap weight vector of the ADALINE neural network, which is initially set to a zero vector; the acoustic echo prediction signal g(i) is the prediction value of the ADALINE neural network for the echo component in the expected sample signal h(i).
[0067] K3: Implement acoustic echo cancellation and obtain the residual echo signal c(i) at time i:
[0068] At time i, the acoustic echo prediction signal g(i) is inverted and then superimposed with the expected sample signal h(i), thereby eliminating the acoustic echo contained in the expected sample signal h(i) and achieving acoustic echo cancellation, where c(i)=h(i)-g(i) represents the residual echo signal.
[0069] K4: Change the number of reused input data and calculate the number of reused input data at time i M(i):
[0070] K4.1: Use the M(i) input data reuse sample vectors from time i to iM(i)+1 closest to the input sample vector s(i) in step K2 of the claim to form an input data reuse sample matrix S of order L×M(i) at time i M(i) (i), denoted by S M(i) (i) = [s(i), s(i-1), ..., s(iM(i)+1)], where M(i) is the number of reused input data at time i. In the present invention, the value of M(i) is time-varying, and the specific calculation of the time-varying M(i) is shown in step K4.7 in the claims;
[0071] K4.2: Use the expected sample signal h(i) and acoustic echo prediction signal g(i) from time i to iM(i)+1 to respectively construct the expected sample signal vector h(i) and acoustic echo prediction signal vector g(i) at time i, denoted as h(i)=[h(i),h(i-1),...,h(iM(i)+1)] T and g(i)=[g(i),g(i-1),...,g(iM(i)+1)] T ;
[0072] K4.3: Calculate the residual echo signal c(i) at time i using step K3 described in the claims, and combine with step K4.2 to obtain the residual echo signal vector c at time i M(i) (i) That is c M(i) (i) = h(i) - g(i), denoted by c M(i) (i)=[c(i),c(i-1),...,c(iM(i)+1)] T ;
[0073] K4.4: At time i, calculate the parameter used to change the number of input data reuses It represents the variance prediction value of the residual echo signal c(i) after eliminating noise;
[0074]
[0075] Where: χ∈(0.9,1) is the smoothing factor, ||·|| 2 represents the square of the Euclidean norm, ε is a non-zero parameter, and its parameter limit is usually between 0.0001 and 0.001. and The initial settings of are all zero, and The start of is set to zero vector;
[0076] K4.5: At time i, the parameter used to change the number of input data reuses is calculated by the following formula: It represents the variance estimate of the noise;
[0077]
[0078] in: It is also a smoothing factor, and its value range is usually (0.9, 1). and denote the variance estimates of the expected sample signal h(i) and the acoustic echo prediction signal g(i), respectively, and and The initial settings are all zero;
[0079] K4.6: Using the parameters in claim step K4.4 and the parameters in step K4.5 Calculate the mixing factor at time i
[0080]
[0081] K4.7: Using the mixing factor in step K4.6 of claim Calculate the number of reused sample vectors M(i) of the ADALINE neural network input data at time i:
[0082]
[0083] Among them, round(·) means rounding the calculation result.
[0084] K5: Calculate the gain coefficient matrix at time i:
[0085] k5.1: The calculation of the gain coefficient is as follows:
[0086]
[0087] Where: G l(i-1) represents the gain coefficient assigned to the l-th ADALINE neural network weight (0≤l≤L-1), and -1<ζ<1, the best choice of parameter ζ is -0.5, 0 and 0.5;
[0088] k5.2: Calculation of the gain coefficient matrix with memory:
[0089] P′ M(i) (i)=[G(i-1)⊙s(i),G(i-2)⊙s(i-1),…,G(iM(i))vs(iM(i)+1)]
[0090] Among them: G(i-1)=[G0(i-1),G1(i-1),...,G L-1 (i-1)] T represents the proportional gain vector, and the symbol ⊙ is the Hadamard product operator, which represents the product of corresponding elements between two vectors of the same length.
[0091] K6: Update the tap weight vector of the ADALINE neural network at time i:
[0092] Update the tap weight vector Ψ(i) of the ADALINE neural network at time i. The ADALINE neural network uses a data reuse algorithm for optimization learning. The optimization process is to adjust the weight vector by self-learning so that the acoustic echo prediction signal g(i) and the expected sample signal h(i) are infinitely close. The tap weight vector of the ADALINE neural network is updated as follows:
[0093]
[0094] Where: m is the learning rate, δ is a small positive number (it is to avoid the matrix irreversible), and I M(i) and(·) -1 They represent the identity matrix of order M(i)×M(i) and the matrix inverse operation respectively.
[0095] K7: Let time i=i+1, and re-execute steps K1 to K6 of the ADALINE neural network. By training more samples, the acoustic echo can be completely removed. The ADALINE neural network training will run through the entire call process.
[0096] Example 2
[0097] In order to verify the effectiveness of the present invention, simulation experiments were carried out, and in order to create a fair comparison environment, the present invention expanded the comparison algorithms APA, E-APA and SO-APA into proportional type algorithms, which are respectively denoted as PAPA, E-PAPA and SO-PAPA.
[0098] 1. Simulation conditions
[0099] The real speech signal is sampled to obtain the input sample signal s(i), such as Figure 1 As shown. The impulse response Y of the acoustic echo path o ,like Figure 2 shown.
[0100] The expected sample signal h(i) captured by the near-end microphone is obtained by the formula h(i)=s T (i)Y o +v(i) is calculated, where v(i) represents white Gaussian noise and the signal-to-noise ratio (SNR) is 30dB. The regularization parameter is calculated by the formula in Represents the variance of the input speech signal. The present invention uses the detuning The unit is decibel) and the acoustic return loss gain ERLE (10log 10 [E(h 2 (i)) / E(c 2 (i))]) to evaluate the performance of each algorithm, respectively. Figure 3 and Figure 4 At the same time, in order to create a fair comparison environment, the parameter values of each algorithm are listed in Table 1.
[0101] Table 1 Parameter settings of each algorithm
[0102]
[0103]
[0104] from Figure 3 First of all, it can be seen that the E-APA algorithm learns very quickly, but its misalignment has not reached the lowest. This is because in the steady-state stage, the evolution of the number of data reuses in the algorithm will be greater than 1, resulting in the misalignment not being minimized. Secondly, although the SO-PAPA algorithm has fast learning with m1=1 and low misalignment with m2=0.2 in parameter settings, the overall performance is not outstanding. At the same time, the learning speed and misalignment of the CSS-PAPA algorithm in the existing patent CN201710155109.6 are more balanced. Finally, compared with these comparison algorithms, the present invention has a faster learning speed while maintaining the lowest misalignment, and its overall performance is better than that of the comparison algorithm. Therefore, this also means that the acoustic echo cancellation effect of the present invention is better than the comparison algorithm. Figure 4It is composed of a speech signal and an echo loss gain ERLE curve of each algorithm. According to the ERLE curve, it can be seen that compared with the PAPA, SO-PAPA, E-PAPA and CSS-PAPA algorithms, the echo loss gain curve of the present invention is higher, which indicates that its performance is more superior and can show better effects in acoustic echo cancellation applications. Figure 5 It is a comparison between the expected sample signal h(i) and the residual echo signal c(i). It can be seen from the figure that the residual echo signal c(i) is negligible compared with the expected sample signal h(i), which shows that the present invention has an excellent echo cancellation effect.
[0105] In summary, the present invention proposes an acoustic echo cancellation method with a variable number of input data reuses based on the ADALINE model, which solves the problem that the number of algorithm input data reuses is fixed, and improves the learning speed of the algorithm in a sparse system. Compared with the prior art and patents, the present invention not only has a variable number of input data reuses, but also considers proportional history. When applied to the acoustic echo cancellation scenario, it shows the characteristics of fast learning speed, low steady-state imbalance, and good acoustic echo cancellation effect.
[0106] The preferred embodiments of the present invention disclosed above are only used to help illustrate the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. An acoustic echo cancellation method with a variable number of reused input data based on an ADALINE model, wherein the method uses an ADALINE neural network model to complete acoustic echo cancellation, and is characterized in that: Here are the steps: K1: At time i, the far-end input speech signal is sampled to obtain the input sample signal s(i), and the signal picked up by the near-end microphone is sampled to obtain the expected sample signal h(i), which includes the acoustic echo signal; K2: Calculate the acoustic echo prediction signal g(i) output by the ADALINE neural network at time i; K3: invert the acoustic echo prediction signal g(i), and then superimpose it with the expected sample signal h(i) to eliminate the acoustic echo contained in the expected sample signal h(i) and achieve acoustic echo cancellation; K4: Change the number of reused input data and calculate the number of reused input data M(i) at time i; K5: Calculate the gain coefficient matrix P' at time i M(i) (i); K6: Update the tap weight vector Ψ(i) of the ADALINE neural network at time i; K7: Let time i=i+1, and re-execute steps K1 to K6 of the ADALINE neural network. By training more samples, the acoustic echo can be completely removed, and the training of the ADALINE neural network will run through the entire call process.
2. The acoustic echo cancellation method with variable number of reused input data based on the ADALINE model as claimed in claim 1, characterized in that: The step K1 specifically includes: at time i, sampling and processing the voice signal input from the far end to obtain the discrete value s(i) of the voice signal at time i, and using s(i) as the input sample signal of the ADALINE neural network; at the same time, sampling the signal picked up by the near-end microphone to obtain the expected sample signal h(i) of the ADALINE neural network, that is, the echo signal generated by the far-end input sample signal s(i) through the echo path.
3. The acoustic echo cancellation method with variable number of reused input data based on the ADALINE model as claimed in claim 1, characterized in that: The step K2 specifically includes: collecting discrete value samples of s(i) from time i to time i-L+1 in step K1, and combining them into the input data reuse sample vector s(i) of the ADALINE neural network at the current time i, recorded as s(i)=[s(i),s(i-1)...,s(i-L+1)] T , where L represents the length of the ADALINE neural network, and the symbol T represents the transpose of the vector; Calculate the acoustic echo prediction signal g(i) of the ADALINE neural network at time i, expressed as g(i)=Ψ T (i)s(i), where Ψ(i)=[Ψ(1),Ψ(2)...,Ψ(L)] T is the tap weight vector of the ADALINE neural network, which is initially set to a zero vector; the acoustic echo prediction signal g(i) is the prediction value of the ADALINE neural network for the echo component in the expected sample signal h(i).
4. The acoustic echo cancellation method with variable number of reused input data based on the ADALINE model as claimed in claim 1, characterized in that: The step K3 specifically includes: at time i, inverting the acoustic echo prediction signal g(i), and then superimposing it with the expected sample signal h(i), thereby eliminating the acoustic echo contained in the expected sample signal h(i) and achieving acoustic echo cancellation, where c(i)=h(i)-g(i) represents the residual echo signal.
5. The acoustic echo cancellation method with variable number of reused input data based on the ADALINE model as claimed in claim 1, characterized in that: The step K4 specifically includes the following sub-steps: K4.1: Use the M(i) input data reuse sample vectors from time i to iM(i)+1 closest to the input sample vector s(i) in step K2 of the claim to form an input data reuse sample matrix S of order L×M(i) at time i M(i) (i), denoted by S M(i) (i) = [s(i), s(i-1), ..., s(iM(i)+1)], where M(i) is the number of reused input data at time i. In the present invention, the value of M(i) is time-varying, and the specific calculation of the time-varying M(i) is shown in step K4.7 in the claims; K4.2: Use the expected sample signal h(i) and acoustic echo prediction signal g(i) from time i to iM(i)+1 to respectively construct the expected sample signal vector h(i) and acoustic echo prediction signal vector g(i) at time i, denoted as h(i)=[h(i),h(i-1),...,h(iM(i)+1)] T and g(i)=[g(i),g(i-1),...,g(iM(i)+1)] T ; K4.3: Calculate the residual echo signal c(i) at time i using step K3 described in the claims, and combine with step K4.2 to obtain the residual echo signal vector c at time i M(i) (i) That is c M(i) (i) = h(i) - g(i), denoted by c M(i) (i)=[c(i),c(i-1),...,c(iM(i)+1)] T ; K4.4: At time i, calculate the parameter used to change the number of input data reuses It represents the variance prediction value of the residual echo signal c(i) after eliminating noise; Where: χ∈(0.9,1) is the smoothing factor, ||·|| 2 represents the square of the Euclidean norm, ε is a non-zero parameter, and its parameter limit is usually between 0.0001 and 0.
001. and The initial settings of are all zero, and The start of is set to zero vector; K4.5: At time i, the parameter used to change the number of input data reuses is calculated by the following formula: It represents the variance estimate of the noise; in: It is also a smoothing factor, and its value range is usually (0.9, 1). and denote the variance estimates of the expected sample signal h(i) and the acoustic echo prediction signal g(i), respectively, and and The initial settings are all zero; K4.6: Using the parameters in claim step K4.4 and the parameters in step K4.5 Calculate the mixing factor at time i K4.7: Using the mixing factor in step K4.6 of claim Calculate the number of reused sample vectors M(i) of the ADALINE neural network input data at time i: Among them, round(·) means rounding the calculation result.
6. The acoustic echo cancellation method with variable number of reused input data based on the ADALINE model as claimed in claim 1, characterized in that: The step K5 specifically includes the following sub-steps: k5.1: The calculation of the gain coefficient is as follows: Where: G l (i-1) represents the gain coefficient assigned to the l-th ADALINE neural network weight (0≤l≤L-1), and -1<ζ<1, the best choice of parameter ζ is -0.5, 0 and 0.5; k5.2: Calculation of the gain coefficient matrix with memory: P′ M(i) (i)=[G(i-1)⊙s(i),G(i-2)⊙s(i-1),…,G(i-M(i))⊙s(i-M(i)+1)] Among them: G(i-1)=[G0(i-1),G1(i-1),...,G L-1 (i-1)] T represents the proportional gain vector, and the symbol ⊙ is the Hadamard product operator, which represents the product of corresponding elements between two vectors of the same length.
7. The acoustic echo cancellation method with variable number of reused input data based on the ADALINE model as claimed in claim 1, characterized in that: The step K6 specifically includes: Update the tap weight vector Ψ(i) of the ADALINE neural network at time i. The ADALINE neural network uses a data reuse algorithm for optimization learning. The optimization process is to adjust the weight vector by self-learning so that the acoustic echo prediction signal g(i) and the expected sample signal h(i) are infinitely close. The tap weight vector of the ADALINE neural network is updated as follows: Where: m is the learning rate, δ is a small positive number (it is to avoid the matrix irreversible), and I M(i) and(·) -1 They represent the identity matrix of order M(i)×M(i) and the matrix inverse operation respectively.
8. The method as described in any one of claims 1 to 7 is applied in an ADALINE neural network, and steps K1 to K6 of the ADALINE neural network are re-executed. By training more samples, the acoustic echo can be completely removed, and the ADALINE neural network training process will run through the entire call process.
Citation Information
Patent Citations
Method for eliminating combined step length proportional affine projection echo
CN107105111A
