Active noise cancellation method, device, electronic device and storage medium
The combination of nonlinear modeling of the active noise cancellation system and adaptive filters through deep learning solves the problem of reduced noise reduction effect and stability of the active noise cancellation system in strong noise environments, and achieves better noise cancellation effects. and robustness.
Patent Information
- Application Number
- CN202111296363.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-03
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-11-03
Smart Images

Figure CN113889068B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the technical field of noise cancellation, and in particular, to an active noise cancellation method, device, electronic device, and storage medium. Background Art
[0002] At present, active noise cancellation technology mainly eliminates noise in a certain spatial position to protect human hearing, prevent hearing damage and reduce ear fatigue. Since active noise reduction technology plays control signals through speakers and propagates them to the noise cancellation area through a certain acoustic path, this process inevitably introduces some nonlinear responses and is particularly obvious in strong noise environments. In active noise cancellation technology, the adaptive filtering method of traditional signal processing has limited modeling capabilities for nonlinearity, and often requires a priori assumptions about the nonlinearity in the path, which reduces the robustness of the technology in actual use scenarios. In active noise cancellation technology based on deep neural networks, the nonlinear path in the active noise cancellation system is modeled by training the neural network to eliminate the impact of nonlinear factors on anti-noise. However, in actual applications, it is required that its use scenario is consistent with the training scenario, resulting in poor robustness to different environmental changes. Summary of the invention
[0003] The embodiments of the present application address the problem that the current active noise cancellation system is subject to internal nonlinear problems in the system, resulting in a significant decrease in its noise reduction effect and stability in a strong noise environment. The nonlinearities within the system are modeled through deep learning, and the iterative update of the adaptive filter is assisted to achieve a stable and good noise reduction effect.
[0004] To achieve the above objectives, in a first aspect, an embodiment of the present application discloses an active noise cancellation method, which is an active noise cancellation method based on an adaptive filter and integrating deep learning for nonlinear process modeling and error conversion.
[0005] An embodiment of the present application provides a method for active noise elimination, characterized in that the method includes: inputting a reference signal in the time domain into an adaptive filter to obtain a control signal, wherein the reference signal is a signal emitted by a noise source and collected by a reference microphone; forming an anti-noise signal through a nonlinear secondary path with the control signal; the nonlinear secondary path refers to linear and nonlinear transformations caused by a loudspeaker, a microphone and an acoustic transmission path; superimposing the anti-noise signal with the original noise to obtain residual noise; the original noise is the noise signal at the error microphone after the noise source propagates through the main path; the residual noise is the signal collected by the error microphone; obtaining an original noise signal estimate based on the control signal, a nonlinear secondary path model and the residual noise; obtaining an error signal based on the original noise signal estimate, an inverse nonlinear secondary path model and the control signal; and updating the adaptive filter according to the error signal to achieve active noise elimination.
[0006] In a feasible embodiment, the method also includes training a nonlinear secondary path model based on a deep neural network, including: taking the control signal as the input of the deep neural network model, and taking the anti-noise signal as the target output of the deep neural network model; calculating the approximation error between the estimated output and the target output; taking the approximation error as a first loss function, and training to obtain the trained nonlinear secondary path model.
[0007] In a feasible embodiment, the method also includes training an inverse nonlinear secondary path model based on a deep neural network, including: taking the original noise as the input of the deep neural network model, and taking the optimal control signal as the target output, the optimal control signal being a control signal that can achieve the highest noise reduction in the original noise; calculating the noise reduction amount between the estimated signal output by the neural network model and the target output; taking the noise reduction amount as a second loss function, and training to obtain the trained inverse nonlinear secondary path model.
[0008] In a feasible implementation, the deep neural network model includes: 4 layers of one-dimensional convolutional neural networks, with output channel numbers of 32, 32, 32, 64, 64, 64, and convolution kernel sizes of 64, 64, 32, 16, 8, and 8, respectively; 2 layers of long short-term memory neural networks, each layer including 64 memory nodes; 4 layers of one-dimensional deconvolutional neural networks, with output channel numbers of 64, 64, 32, 32, 32, and 1, and convolution kernel sizes of 8, 8, 16, 32, 64, and 64, respectively; batch normalization is used on the output of each convolution layer, and then the PRelu activation function is used.
[0009] In a feasible implementation, obtaining the original noise signal estimate based on the control signal, the nonlinear secondary path model and the anti-noise signal includes: inputting the control signal into the nonlinear secondary path model to output the anti-noise signal estimate; and subtracting the anti-noise signal estimate from the residual noise to obtain the original noise signal estimate.
[0010] In a feasible implementation manner, the error signal is obtained based on the original noise signal estimate, the inverse nonlinear secondary path model and the control signal, comprising: inputting the original noise signal estimate into the inverse nonlinear secondary path model to obtain an optimal control signal estimate; and subtracting the optimal control signal estimate from the control signal to obtain the error signal.
[0011] In a feasible implementation manner, updating the adaptive filter according to the error signal includes: updating and iterating the adaptive filter using a minimum square error method according to the error signal.
[0012] In a second aspect, an embodiment of the present application is an active noise elimination device, the device comprising: a filtering module, used to input a reference signal in the time domain into an adaptive filter to obtain a control signal, the reference signal being a signal emitted by a noise source and collected by a reference microphone; an anti-noise module, used to form an anti-noise signal from the control signal through a nonlinear secondary path; the nonlinear secondary path refers to linear and nonlinear transformations caused by a loudspeaker, a microphone and an acoustic transmission path; a superposition module, used to superimpose the anti-noise signal with the original noise to obtain residual noise; the original noise is a signal at the position of an error microphone after the noise source propagates through a main path; the residual noise is a signal collected by the error microphone; a noise estimation module, used to obtain an estimate of the original noise signal based on the control signal, a nonlinear secondary path model and the residual noise; an error estimation module, used to obtain an error signal based on the original noise signal estimate, an inverse nonlinear secondary path model and the control signal; an adaptive update module, used to update the adaptive filter according to the error signal to achieve active noise elimination.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising: at least one memory for storing programs; and at least one processor for executing the programs stored in the memory, when the programs stored in the memory are executed, the processor is used to execute any method described in the first aspect.
[0014] In a fourth aspect, an embodiment of the present application provides a storage medium, wherein instructions are stored in the storage medium. When the instructions are executed on a terminal, the first terminal executes any method described in the first aspect.
[0015] The advantages of the embodiments of the present application are: better noise elimination effect and stability are achieved through the fusion of deep neural networks and adaptive filters than traditional adaptive filters; the modeling of nonlinear paths in active noise elimination is performed through deep neural networks, which has higher modeling accuracy than the modeling method of traditional adaptive filters based on prior physical models; real-time modeling of main path changes is completed through adaptive filters, ensuring its robustness in different environments; residual noise is converted into filter output error through deep neural networks, ensuring that the stability of the adaptive filter will not be affected by nonlinearity when nonlinearity occurs. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the multiple embodiments disclosed in this specification, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only the multiple embodiments disclosed in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] The following is a brief introduction to the drawings required for describing the embodiments or prior art.
[0018] Figure 1 A scene diagram of an active noise cancellation method provided in an embodiment of the present application;
[0019] Figure 2 A flowchart of an active noise cancellation method provided in an embodiment of the present application;
[0020] Figure 3 A schematic diagram of an active noise cancellation device provided in an embodiment of the present application;
[0021] Figure 4 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0023] In the following description, the terms "first\second\third, etc." or module A, module B, module C, etc. are only used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that the specific order or sequence can be interchanged where permitted so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0024] In the following description, the numbers representing the steps, such as S110, S120, etc., do not necessarily mean that the steps must be executed in this manner. If permitted, the order of the previous and next steps can be interchanged, or the steps can be executed simultaneously.
[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0026] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0027] Figure 1 is a scene graph of an active noise cancellation method. Figure 1 As shown, the reference signal x(n) of the nth sampling point in the time domain is input into the adaptive filter w(n) to obtain the control signal y(n), where the reference signal x(n) is the signal emitted by the noise source and collected by the reference microphone 11; the control signal y(n) is formed into an anti-noise signal ys(n) through a nonlinear secondary path S; the nonlinear secondary path S refers to the linear and nonlinear transformations caused by the loudspeaker, the microphone and the acoustic transmission path; the anti-noise signal ys(n) is superimposed with the original noise d(n) to obtain the residual noise e(n); the original noise d(n) is the noise signal at the error microphone 12 after the noise source propagates through the main path; the residual noise e(n) is the signal collected by the error microphone 12; the original noise signal is estimated based on the control signal y(n), the nonlinear secondary path model 13 and the residual noise e(n) According to the original noise signal estimation The inverse nonlinear secondary path model 14 and the control signal y(n) yield the error signal The error signal The adaptive filter w(n) is updated by the adaptive algorithm 15 to achieve active noise cancellation.
[0028] Figure 2 FIG. 1 is a flow chart of an active noise cancellation method. Figure 2 As shown, including:
[0029] S101, input a time domain reference signal x as an input signal into an adaptive filter, and output a control signal y.
[0030] The reference signal x is a signal emitted by the noise source and collected by the reference microphone.
[0031] In a specific embodiment, the control signal y(n) generated by the nth sampling point reference signal x(n) input into the adaptive filter is:
[0032] y(n)=w(n)*x(n)
[0033] Wherein, w(n) is the coefficient of the adaptive filter, x(n) is the reference signal, and n represents the nth sampling point.
[0034] S102, the control signal y forms an anti-noise signal y through a nonlinear secondary path s .
[0035] The nonlinear secondary path is the linear and nonlinear transformation caused by the speaker, microphone and acoustic transmission path. s is the signal at the error microphone after the control signal y propagates through the nonlinear secondary path.
[0036] In a specific embodiment, the control signal y(n) at the nth sampling point is passed through a nonlinear secondary path to obtain an anti-noise signal y s (n):
[0037] y s (n) = S (y (n))
[0038] where S{·} is a nonlinear secondary path.
[0039] S103, anti-noise signal y s It is superimposed with the original noise d to perform noise elimination and form the residual noise e.
[0040] The original noise x is the signal at the error microphone after the noise source signal propagates through the main path.
[0041] The residual noise e is the signal collected by the error microphone.
[0042] In a specific embodiment, the anti-noise signal y of the nth sampling point is s After the noise is eliminated by superimposing the original noise d(n) with the residual noise e(n), it is:
[0043] e(n)=d(n)+y s (n)
[0044] S104, obtaining an original noise signal estimate according to the control signal, the nonlinear secondary path model and the residual noise.
[0045] In a specific embodiment, step S104 is implemented by the following steps S1041-S1042.
[0046] S1041, input the control signal into the nonlinear secondary path model to output an anti-noise signal estimate.
[0047] In a specific embodiment, the control signal can be input into the input of the trained nonlinear secondary path model to estimate the anti-noise signal and output the anti-noise signal estimate.
[0048]
[0049] S1042: Subtract the anti-noise signal estimate from the residual noise to obtain an original noise signal estimate.
[0050] In a specific embodiment, the anti-noise signal estimate can be subtracted from the residual noise to restore the original noise signal to obtain the original noise signal estimate
[0051]
[0052] Among them, the nonlinear secondary path model is obtained by training a deep neural network.
[0053] In a specific embodiment, the nonlinear secondary path model can be trained based on a deep neural network, including: taking the control signal as the input of the deep neural network, taking the anti-noise signal as the target output, calculating the approximation error between the estimated signal and the target output as the loss function, and training to obtain the nonlinear secondary path model.
[0054] In a specific embodiment, the nonlinear secondary path model is composed of 4 layers of one-dimensional convolutional neural networks connected to 2 layers of long short-term memory neural networks connected to 4 layers of one-dimensional deconvolutional neural networks, the output channels of the 4 layers of one-dimensional convolutional neural networks are 32, 32, 32, 64, 64, 64, respectively, and the convolution kernel sizes are 64, 64, 32, 16, 8, 8, respectively, the 2 layers of long short-term memory neural networks each have 64 memory nodes, the output channels of the 4 layers of one-dimensional deconvolutional neural networks are 64, 64, 32, 32, 32, 1, respectively, and the convolution kernel sizes are 8, 8, 16, 32, 64, 64, respectively. Batch normalization is used on the output of each convolutional layer, and then the PRelu activation function is used, and the activation function expression is:
[0055]
[0056] The approximation error between the estimated signal and the target output is calculated as the loss function:
[0057]
[0058] in For noise-resistant signal estimation, Φ S It is a nonlinear secondary path model. By continuously iterating the model parameters to reduce the above loss function, the nonlinear secondary path model is trained.
[0059] S105, obtaining an error signal according to the original noise signal estimation, the inverse nonlinear secondary path model and the control signal.
[0060] In a specific embodiment, step S105 is implemented by the following steps S1051-S1052.
[0061] S1051, inputting the original noise signal estimate into the inverse nonlinear secondary path model to obtain the optimal control signal estimate.
[0062] In a specific embodiment, the original noise signal can be used to estimate Input the trained inverse nonlinear secondary path model 14, estimate the optimal control signal, and output the optimal control signal estimate
[0063]
[0064] S1052, subtract the optimal control signal estimate from the control signal to obtain an error signal.
[0065] In a specific embodiment, the control signal and the optimal control signal estimate can be subtracted to obtain the error signal of the filter:
[0066]
[0067] Among them, the inverse nonlinear secondary path model is obtained by training a deep neural network.
[0068] In a specific embodiment, the inverse nonlinear secondary path model is composed of 4 layers of one-dimensional convolutional neural networks, 2 layers of long short-term memory neural networks, and 4 layers of one-dimensional deconvolutional neural networks in sequence. Preferably, the output channels of the 4 layers of one-dimensional convolutional neural networks are 32, 32, 32, 64, 64, 64, and the sizes of convolution kernels are 64, 64, 32, 16, 8, 8, respectively; the 2 layers of long short-term memory neural networks have 64 memory nodes; the output channels of the 4 layers of one-dimensional deconvolutional neural networks are 64, 64, 32, 32, 32, 1, and the sizes of convolution kernels are 8, 8, 16, 32, 64, 64, respectively. Batch normalization is used on the output of each convolutional layer, and then the PRelu activation function is used. The activation function expression is:
[0069]
[0070] The original noise signal estimate is obtained through the trained nonlinear secondary path model, the original noise signal estimate is input into the inverse nonlinear secondary path model and the optimal control signal estimate is output, and the noise reduction amount of the optimal control signal estimate is calculated and used as the loss function:
[0071]
[0072] in, The optimal control signal is estimated, and the output of the inverse nonlinear secondary path model is:
[0073]
[0074] By continuously iterating the model parameters to reduce the above loss function, the inverse nonlinear secondary path model is trained
[0075] In a specific embodiment, the control signal estimate is used to estimate the final noise reduction amount through a nonlinear secondary path model, and the final noise reduction amount estimate is used as a loss function to train the inverse nonlinear secondary path model; wherein the optimal control signal estimate is the control signal with the highest noise reduction amount that can be achieved in the original noise.
[0076] In a specific embodiment, the final noise reduction amount of the predicted optimal control signal is estimated by using the trained inverse nonlinear secondary path model.
[0077] S106, updating the adaptive filter according to the error signal to achieve active noise cancellation.
[0078] In a specific embodiment, the error signal may be updated and iterated by a minimum variance method to obtain an adaptive filter:
[0079]
[0080] Where μ is the update step size of the filter, and ω(n) is the coefficient of the adaptive filter at the nth sampling point.
[0081] An active noise elimination method provided by an embodiment of the present application completes active noise elimination in a nonlinear noise elimination system by combining deep learning technology with adaptive filter technology. By introducing a deep neural network, the modeling of nonlinear secondary paths is completed, avoiding the reliance of traditional digital signal processing technology on a priori models. The residual noise is converted into a filter output error by an inverse secondary path model, which ensures the stability of the filter update and generates an anti-noise signal in real time.
[0082] Figure 3 An active noise cancellation device is provided in an embodiment of the present application. Figure 3As shown, the filtering module 31 of the device inputs a reference signal in the time domain into an adaptive filter to obtain a control signal, wherein the reference signal is a signal emitted by a noise source and collected by a reference microphone; the anti-noise module 32 forms an anti-noise signal from the control signal through a nonlinear secondary path; the nonlinear secondary path refers to the linear and nonlinear transformations caused by a loudspeaker, a microphone and an acoustic transmission path; the superposition module 33 superimposes the anti-noise signal with the original noise to obtain residual noise; the original noise is the signal at the position of the error microphone after the noise source propagates through the main path; the residual noise is the signal collected by the error microphone; the noise estimation module 34 obtains an estimate of the original noise signal based on the control signal, the nonlinear secondary path model and the residual noise; the error estimation module 35 obtains an error signal based on the original noise signal estimate, the inverse nonlinear secondary path model and the control signal; the adaptive update module 36 updates the adaptive filter according to the error signal to achieve active noise elimination.
[0083] Figure 4 An electronic device 1100 provided in an embodiment of the present application, such as Figure 4 As shown, it includes: at least one memory 1102 for storing programs; and at least one processor 1101 for executing the programs stored in the memory. When the programs stored in the memory 1102 are executed, the processor 1101 is used to execute the methods of any of the above embodiments.
[0084] An embodiment of the present application provides a storage medium 1103, in which instructions are stored. When the instructions are executed on a terminal, the first terminal executes the method of any of the above embodiments.
[0085] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
[0086] In addition, various aspects or features of the embodiments of the present application may be methods, devices or products using standard programming and / or engineering techniques. The term "product" used in this application covers computer programs that can be accessed from any computer-readable device, carrier or medium. For example, computer-readable media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks or tapes, etc.), optical disks (e.g., compact discs (CDs), digital versatile discs (DVDs), etc.), smart cards and flash memory devices (e.g., erasable programmable read-only memory (EPROM), cards, sticks or key drives, etc.). In addition, the various storage media described herein may represent one or more devices and / or other machine-readable media for storing information. The term "machine-readable medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing and / or carrying instructions and / or data.
[0087] It should be understood that in various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0088] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0089] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0090] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0091] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or an access network device, etc.) to perform all or part of the steps of the method described in each embodiment of the embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0092] The above is only a specific implementation of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited to this. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiments of the present application, which should be covered within the protection scope of the embodiments of the present application.
Claims
1. A method for active noise cancellation, characterized in that: The method comprises: Inputting a reference signal in the time domain into an adaptive filter to obtain a control signal, wherein the reference signal is a signal emitted by a noise source and collected by a reference microphone; The control signal is formed into an anti-noise signal through a nonlinear secondary path; the nonlinear secondary path refers to the linear and nonlinear transformations caused by the speaker, the microphone and the acoustic transmission path; The anti-noise signal is superimposed on the original noise to obtain residual noise; the original noise is the noise signal at the error microphone after the noise source propagates through the main path; the residual noise is the signal collected by the error microphone; obtaining an original noise signal estimate based on the control signal, the nonlinear secondary path model and the residual noise; Obtaining an error signal based on the original noise signal estimate, the inverse nonlinear secondary path model and the control signal; The method further includes updating the adaptive filter according to the error signal to achieve active noise cancellation; the method also includes training a nonlinear secondary path model based on a deep neural network, including: Using the control signal as an input of a deep neural network model and using the anti-noise signal as a target output of the deep neural network model; Calculating an approximation error between an estimated output and the target output; Using the approximation error as a first loss function, training is performed to obtain the trained nonlinear secondary path model; The method also includes training an inverse nonlinear secondary path model based on a deep neural network, including: Using the original noise as the input of the deep neural network model and using the optimal control signal as the target output, wherein the optimal control signal is a control signal that achieves the highest noise reduction in the original noise; Calculating the noise reduction amount between the estimated signal output by the neural network model and the target output; The noise reduction amount is used as the second loss function to perform training to obtain the trained inverse nonlinear secondary path model.
2. The method according to claim 1, characterized in that: The deep neural network model includes: 4-layer one-dimensional convolutional neural network, the number of output channels are 32, 32, 32, 64, 64, 64, and the convolution kernel sizes are 64, 64, 32, 16, 8, 8 respectively; 2-layer long short-term memory neural network, each layer includes 64 memory nodes; A 4-layer one-dimensional deconvolutional neural network with output channels of 64, 64, 32, 32, 32, and 1, and kernel sizes of 8, 8, 16, 32, 64, and 64, respectively. Batch normalization is used on the output of each convolutional layer, and then the PRelu activation function is used.
3. The method according to claim 1, characterized in that The obtaining of an original noise signal estimate according to the control signal, the nonlinear secondary path model and the anti-noise signal comprises: inputting the control signal into the nonlinear secondary path model output anti-noise signal estimate; The anti-noise signal estimate is subtracted from the residual noise to obtain an original noise signal estimate.
4. The method according to claim 1, characterized in that: The step of obtaining an error signal according to the original noise signal estimation, the inverse nonlinear secondary path model and the control signal comprises: Inputting the original noise signal estimate into the inverse nonlinear secondary path model to obtain an optimal control signal estimate; The error signal is obtained by subtracting the optimal control signal estimate from the control signal.
5. The method according to claim 1, characterized in that The updating of the adaptive filter according to the error signal comprises: The adaptive filter is updated and iterated using a minimum square error method according to the error signal.
6. An active noise cancellation device, characterized in that: The device comprises: A filtering module, used for inputting a reference signal in the time domain into an adaptive filter to obtain a control signal, wherein the reference signal is a signal emitted by a noise source and collected by a reference microphone; An anti-noise module, used for converting the control signal into an anti-noise signal through a nonlinear secondary path; the nonlinear secondary path refers to the linear and nonlinear transformations caused by the speaker, the microphone and the acoustic transmission path; A superposition module, used for superimposing the anti-noise signal with the original noise to obtain residual noise; the original noise is the signal at the position of the error microphone after the noise source propagates through the main path; the residual noise is the signal collected by the error microphone; A noise estimation module, configured to obtain an estimate of an original noise signal based on the control signal, the nonlinear secondary path model and the residual noise; An error estimation module, used for obtaining an error signal according to the original noise signal estimation, the inverse nonlinear secondary path model and the control signal; An adaptive updating module, used for updating the adaptive filter according to the error signal to achieve active noise cancellation; Training a nonlinear secondary path model based on a deep neural network includes: using the control signal as an input of the deep neural network model and using the anti-noise signal as a target output of the deep neural network model; calculating an approximation error between an estimated output and the target output; using the approximation error as a first loss function to perform training to obtain the trained nonlinear secondary path model; The inverse nonlinear secondary path model is trained based on a deep neural network, including: using the original noise as the input of the deep neural network model and the optimal control signal as the target output, wherein the optimal control signal is a control signal that achieves the highest noise reduction in the original noise; calculating the noise reduction amount between the estimated signal output by the neural network model and the target output; using the noise reduction amount as a second loss function to perform training to obtain the trained inverse nonlinear secondary path model.
7. An electronic device, characterized in that: include: at least one memory for storing a program; and At least one processor is used to execute the program stored in the memory. When the program stored in the memory is executed, the processor is used to execute the method according to any one of claims 1 to 5.
8. A storage medium storing instructions, wherein when the instructions are executed on a terminal, the first terminal executes the method according to any one of claims 1 to 5.
Citation Information
Cited By
Fine-tuning a neural network model
US20240394551A1
