Noise reduction method, electronic device, storage medium and program product
Through ultrasonic sensors, the problem of noise reduction affecting the acquisition of effective acoustic signals in the prior art is solved, and more effective internal noise control is achieved, and the comfort and safety in the vehicle are improved.
Patent Information
- Application Number
- CN202411717025.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-04-04
AI Technical Summary
The existing noise reduction technology can easily affect the acquisition of effective sound wave signals during the noise reduction process, resulting in poor internal noise control effect of the vehicle.
By using ultrasonic sensors to detect the window vibration signal, determine the vibration characteristics of the window, and generate an inverting signal based on these characteristics, and output an inverting signal through the audio execution module to achieve noise reduction in the interior of the vehicle.
It effectively reduces the impact of noise reduction on effective sound wave signal acquisition, improves the effect of noise control inside the vehicle, and enhances the comfort and safety in the vehicle.
Smart Images

Figure CN119763531A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of noise reduction, and in particular to a noise reduction method, electronic equipment, storage medium and program product. Background Art
[0002] With the development of the automobile industry and people's increasing requirements for driving comfort, vehicle interior noise control has become an important research direction.
[0003] At present, a microphone (microphone, referred to as mic) is usually used to collect the sound wave signal inside the vehicle, and then a reverse sound wave signal with the opposite phase and the same amplitude as the sound wave signal inside the vehicle is generated according to the characteristics of the sound wave signal inside the vehicle, and the reverse sound wave signal is output through the speaker inside the vehicle, thereby achieving noise reduction of the sound wave signal inside the vehicle. However, this method may affect the acquisition of effective sound wave signals. Summary of the invention
[0004] The present application provides a noise reduction method, an electronic device, a storage medium and a program product to reduce the influence of noise reduction on the acquisition of effective sound wave signals.
[0005] In a first aspect, the present application provides a noise reduction method, comprising:
[0006] Use ultrasonic sensors to detect and obtain window vibration signals;
[0007] determining a vibration characteristic of the vehicle window based on the vehicle window vibration signal;
[0008] generating an anti-phase signal of the window vibration signal according to the vibration characteristics;
[0009] The inverted signal is output through the audio execution module to reduce the noise inside the vehicle.
[0010] In a possible implementation, the inverted signal is generated by applying an adaptive filter, and after the inverted signal is output by the audio execution module, the method further includes:
[0011] Determine the current noise level inside the vehicle;
[0012] According to the noise level, the parameters of the adaptive filter are adjusted, and the parameters determine the vibration characteristics of the output reverse signal.
[0013] In a possible implementation, the ultrasonic sensor includes an ultrasonic transmitter and an ultrasonic receiver, and the ultrasonic sensor is used to detect and obtain the window vibration signal, including:
[0014] Controlling the ultrasonic transmitter to transmit a first ultrasonic signal;
[0015] collecting a second ultrasonic signal received by the ultrasonic receiver;
[0016] A difference signal between the second ultrasonic signal and the first ultrasonic signal is determined to obtain a vehicle window vibration signal.
[0017] In a possible implementation manner, there are multiple ultrasonic transmitters, and determining a difference signal of the second ultrasonic signal relative to the first ultrasonic signal to obtain a vehicle window vibration signal includes:
[0018] Identifying a transmission source of a second ultrasonic signal;
[0019] Determine, from the first ultrasonic signal, a third ultrasonic signal having the same transmission source as the second ultrasonic signal;
[0020] determining a first difference signal of the second ultrasonic signal relative to the third ultrasonic signal;
[0021] A vehicle window vibration signal is obtained according to the first difference signal.
[0022] In a possible implementation manner, there are multiple ultrasonic receivers, and determining a difference signal of the second ultrasonic signal relative to the first ultrasonic signal to obtain a window vibration signal includes:
[0023] Determine a second difference signal between a second ultrasonic signal received by any ultrasonic receiver and the first ultrasonic signal;
[0024] A vehicle window vibration signal is obtained according to the second difference signal.
[0025] In a possible implementation manner, determining the vibration characteristics of the vehicle window based on the vehicle window vibration signal includes:
[0026] Based on fast Fourier transform, the spectrum analysis of the window vibration signal is performed to determine the vibration characteristics of the window.
[0027] In a second aspect, the present application provides a noise reduction device, comprising:
[0028] A data acquisition module is used to detect and obtain a window vibration signal using an ultrasonic sensor;
[0029] A signal processing module, for determining a vibration characteristic of the vehicle window based on the vehicle window vibration signal;
[0030] An active noise reduction module, used for generating an anti-phase signal of a window vibration signal according to vibration characteristics;
[0031] The execution module is used to output an inverted signal through the audio execution module to reduce noise inside the vehicle.
[0032] In a possible implementation, the noise reduction device further includes an adjustment module, and the adjustment module is specifically used to:
[0033] Determine the current noise level inside the vehicle;
[0034] According to the noise level, the parameters of the adaptive filter are adjusted, and the parameters determine the vibration characteristics of the output reverse signal.
[0035] In a possible implementation, the ultrasonic sensor includes an ultrasonic transmitter and an ultrasonic receiver, and the data acquisition module is specifically used for:
[0036] Controlling the ultrasonic transmitter to transmit a first ultrasonic signal;
[0037] collecting a second ultrasonic signal received by the ultrasonic receiver;
[0038] A difference signal between the second ultrasonic signal and the first ultrasonic signal is determined to obtain a vehicle window vibration signal.
[0039] In a possible implementation manner, there are multiple ultrasonic transmitters, and the data acquisition module is specifically used for:
[0040] Identifying a transmission source of a second ultrasonic signal;
[0041] Determine, from the first ultrasonic signal, a third ultrasonic signal having the same transmission source as the second ultrasonic signal;
[0042] determining a first difference signal of the second ultrasonic signal relative to the third ultrasonic signal;
[0043] A vehicle window vibration signal is obtained according to the first difference signal.
[0044] In a possible implementation manner, there are multiple ultrasonic receivers, and the data acquisition module is specifically used for:
[0045] Determine a second difference signal between a second ultrasonic signal received by any ultrasonic receiver and the first ultrasonic signal;
[0046] A vehicle window vibration signal is obtained according to the second difference signal.
[0047] In a possible implementation manner, the signal processing module is specifically used to:
[0048] Based on fast Fourier transform, the spectrum analysis of the window vibration signal is performed to determine the vibration characteristics of the window.
[0049] In a third aspect, the present application provides an electronic device, including: a memory, a processor;
[0050] Memory stores computer-executable instructions;
[0051] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.
[0052] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed, they are used to implement the above first aspect and / or various possible implementations of the first aspect.
[0053] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed, implements the above first aspect and / or various possible implementations of the first aspect.
[0054] The noise reduction method, electronic device, storage medium and program product provided by the present application relate to the field of noise reduction technology. The present application includes: using an ultrasonic sensor to detect and obtain a window vibration signal; based on the window vibration signal, determining the vibration characteristics of the window; generating an inverted signal of the window vibration signal according to the vibration characteristics; outputting the inverted signal through an audio execution module to reduce the noise inside the vehicle. The present application uses an ultrasonic sensor to accurately detect and obtain a window vibration signal, thereby achieving real-time monitoring of the window vibration and improving the detection sensitivity; based on the window vibration signal, determining the vibration characteristics of the window, and then generating an inverted signal of the window vibration signal, and outputting the inverted signal through an audio execution module, effectively achieving active noise control, thereby reducing the noise inside the vehicle and reducing the impact of noise reduction on the acquisition of effective sound wave signals. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0056] Figure 1 Schematic diagram of the noise reduction method provided in the embodiment of the present application Figure 1 ;
[0057] Figure 2 A schematic diagram of the structure of a noise reduction device provided in one embodiment of the present application;
[0058] Figure 3 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application.
[0059] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0060] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0061] Current technology usually relies on microphones to collect sound wave signals inside the vehicle. However, this method is prone to collecting normal sounds inside the vehicle, such as passengers' conversations, phone calls, and voice control commands. When these sound wave signals are processed for noise reduction, normal sound signals may also be mistaken for noise and weakened. This situation may lead to reduced call quality, failure of voice recognition function, and poor entertainment system experience. This not only affects the user's comfort, but may also pose a safety hazard in some cases, because the driver may not receive important audio information or instructions in time.
[0062] In order to solve the above problems, the present application provides a noise reduction solution, which uses an ultrasonic sensor to accurately detect the window vibration signal, so as to avoid collecting the normal sound inside the vehicle. According to the detected window vibration signal, a targeted anti-phase signal is generated to effectively realize active noise control and reduce the impact of noise reduction on the acquisition of effective sound wave signals.
[0063] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0064] Figure 1 Schematic diagram of the noise reduction method provided in the embodiment of the present application Figure 1 ,like Figure 1 As shown, the method includes:
[0065] S101: Using an ultrasonic sensor to detect and obtain a vehicle window vibration signal.
[0066] When the ultrasonic sensor is working, it will actively emit high-frequency sound waves to the car window or its surrounding medium. These high-frequency sound waves will be reflected back when they encounter the car window, and the ultrasonic sensor is responsible for receiving these reflected waves. When the car window vibrates, the vibration will affect the medium environment in which the ultrasonic wave propagates. Specifically, the vibration will cause the physical properties of the medium to change at the microscopic level. These changes will further affect the propagation characteristics of the ultrasonic wave, including the speed and path.
[0067] The ultrasonic sensor receives the reflected ultrasonic signals, which carry information about the vibration of the car window. Due to the different vibration frequencies and amplitudes of the car window, the reflected waves will show corresponding changes. By analyzing these changes, the ultrasonic sensor can obtain the vibration signal of the car window.
[0068] S102: Determine a vibration characteristic of the vehicle window based on the vehicle window vibration signal.
[0069] The window vibration signal records the changes of various physical quantities of the window over time during the vibration process. Therefore, the vibration characteristics of the window can be analyzed from the window vibration signal, where the vibration characteristics include vibration amplitude and vibration frequency. The vibration characteristic refers to the maximum distance that the vibrating object deviates from the equilibrium position. In the vibration signal, the amplitude usually indicates the intensity or size of the vibration; the vibration frequency refers to the number of times the vibrating object completes the vibration cycle in a unit time, reflecting the speed of the vibration.
[0070] Furthermore, the specific implementation method of determining the vibration characteristics of the vehicle window based on the vehicle window vibration signal can be set according to actual needs, and the embodiments of the present application are not limited to this.
[0071] In one implementation, the vibration characteristics of the vehicle window are determined by performing envelope detection on the vehicle window vibration signal.
[0072] In another implementation, the vehicle window vibration signal is decomposed into a plurality of intrinsic mode functions, each of which represents a different frequency component. By analyzing the intrinsic mode functions, the vibration characteristics of the vehicle window can be determined.
[0073] S103: Generate an inverted signal of the vehicle window vibration signal according to the vibration characteristics.
[0074] Among them, the anti-phase signal means that the amplitudes of two signals are equal at any time, but the phase difference between the two signals is 180°.
[0075] Optionally, assuming that the vehicle window vibration signal is Y(t)=Bsin(2ωt), then the inverse signal of the vehicle window vibration signal is Y1(t)=Bsin(2ωt+Π).
[0076] S104: Outputting an inverted signal through an audio execution module to reduce noise inside the vehicle.
[0077] The inverted signal generated in S103 is output through an audio execution module, wherein the audio execution module includes a speaker, an earphone, and the like.
[0078] In one implementation, the anti-phase signal is output through a speaker inside the vehicle.
[0079] Furthermore, the output anti-phase signal can reduce the noise inside the vehicle because: according to the principle of sound wave superposition, when two sound waves with the same frequency and opposite phases are superimposed at the human ear, they will cancel each other out, thereby reducing the noise heard by the human ear and completing the noise reduction work inside the vehicle.
[0080] The embodiment of the present application uses an ultrasonic sensor to accurately detect and obtain a window vibration signal, thereby realizing real-time monitoring of the window vibration condition and improving the detection sensitivity; based on the window vibration signal, the vibration characteristics of the window are determined, and then an inverted signal of the window vibration signal is generated, and the inverted signal is output through an audio execution module, thereby effectively realizing active noise control, thereby reducing the noise inside the vehicle and reducing the impact of noise reduction on the acquisition of effective sound wave signals.
[0081] Based on the above embodiment, the inverted signal is generated by applying an adaptive filter. After the inverted signal is output through the audio execution module, it also includes: determining the current noise level inside the vehicle; adjusting the parameters of the adaptive filter according to the noise level, and the parameters determine the vibration characteristics of the output reverse signal.
[0082] The process for adjusting the anti-phase signal in real time to minimize the noise inside the vehicle involves updating of the adaptive filter output, the error signal, and the adaptive filter weight.
[0083] The formula for calculating the output of the adaptive filter is:
[0084]
[0085] Among them, y(n) is the output of the adaptive filter, w i (n) is the adaptive filter weight, M is the adaptive filter order, and x(n) is the input signal.
[0086] The error signal is calculated as:
[0087] e(n)=d(n)-y(n)
[0088] Among them, e(n) is the error signal and d(n) is the desired signal.
[0089] The updating of adaptive filter weights is done as follows:
[0090] wi(n+1)=wi(n)+m×e(n)x(ni)
[0091] Among them, m is the learning rate. The learning rate is an important hyperparameter in machine learning and optimization algorithms. It is usually used to control the step size of the model's weight update at each iteration and determines the speed at which the model adjusts its parameters during training.
[0092] The filter output, error signal, and update of the adaptive filter weights are interrelated and together constitute a mechanism for real-time adjustment of the entire anti-phase signal to reduce the noise inside the vehicle.
[0093] Furthermore, after applying the adaptive filter to generate the inverted signal, the inverted signal needs to be output by the audio execution module. After the inverted signal is output, the current noise level inside the vehicle needs to be determined. The noise level inside the vehicle is determined based on the sound intensity inside the vehicle, and the sound intensity inside the vehicle is determined by the sound collected by the microphone inside the vehicle.
[0094] Furthermore, after determining the current noise level inside the vehicle, it is necessary to adjust the parameters of the adaptive filter accordingly according to the determined noise level, and the parameters determine the vibration characteristics of the output reverse signal.
[0095] Optionally, if the determined noise level is relatively large, the amplitude parameter of the adaptive filter needs to be increased.
[0096] The embodiment of the present application can significantly reduce the noise inside the vehicle by adjusting the parameters of the adaptive filter according to the noise level inside the vehicle.
[0097] Based on the above embodiment, the ultrasonic sensor includes an ultrasonic transmitter and an ultrasonic receiver. The ultrasonic sensor is used to detect and obtain a window vibration signal, including: controlling the ultrasonic transmitter to transmit a first ultrasonic signal; collecting a second ultrasonic signal received by the ultrasonic receiver; determining a difference signal between the second ultrasonic signal and the first ultrasonic signal to obtain a window vibration signal.
[0098] Optionally, a digital output pin of the microcontroller is connected to the trigger pin of the ultrasonic transmitter. When the microcontroller sends a short high-level pulse to the trigger pin, the ultrasonic transmitter can be controlled to transmit a first ultrasonic signal. A digital input pin of the microcontroller is connected to the output pin of the ultrasonic receiver. When the ultrasonic receiver receives the second ultrasonic signal, it outputs the second ultrasonic signal to the microcontroller.
[0099] After the first ultrasonic signal and the second ultrasonic signal are acquired, a difference signal between the two signals is determined, and the vehicle window vibration signal is determined according to the difference signal.
[0100] Since ultrasonic sensors have high sensitivity and can detect tiny vibration signals, the ultrasonic sensors used in the embodiments of the present application can accurately detect window vibration signals and improve anti-interference capabilities and detection accuracy.
[0101] Furthermore, the number of ultrasonic transmitters and ultrasonic receivers can be set according to actual needs, and the embodiments of the present application do not limit this.
[0102] In one implementation, when the number of ultrasonic receivers is one and the number of ultrasonic transmitters is multiple, determining a difference signal of a second ultrasonic signal relative to a first ultrasonic signal to obtain a window vibration signal includes: identifying an emission source of the second ultrasonic signal; determining, from the first ultrasonic signal, a third ultrasonic signal having the same emission source as the second ultrasonic signal; determining a first difference signal of the second ultrasonic signal relative to the third ultrasonic signal; and obtaining a window vibration signal based on the first difference signal.
[0103] Since there are multiple ultrasonic transmitters, the ultrasonic receiver receives multiple second ultrasonic signals. If one wants to determine the difference signals of the multiple second ultrasonic signals relative to the first ultrasonic signal, it is necessary to identify the emission source of each second ultrasonic signal, that is, to determine which ultrasonic transmitter emitted the signal received by the ultrasonic receiver.
[0104] The specific implementation method of identifying the emission source of each second ultrasonic signal can be set according to actual needs.
[0105] Optionally, different ultrasonic transmitters transmit a first ultrasonic signal at different frequencies, and the ultrasonic receiver can identify the emission source of the second ultrasonic signal by analyzing the frequency of the received second ultrasonic signal; different ultrasonic transmitters modulate the emitted first ultrasonic signal with different coding sequences, and the ultrasonic receiver can identify the second ultrasonic source by decoding the received second ultrasonic signal.
[0106] After identifying the emission source of the second ultrasonic signal, a third ultrasonic signal having the same emission source as the second ultrasonic signal is determined, and a vehicle window vibration signal is obtained based on a first difference signal between the third ultrasonic signal and the third ultrasonic signal; based on the first difference signal.
[0107] The specific implementation method of obtaining the vehicle window vibration signal according to the first difference signal can be set according to actual needs.
[0108] For example, an average value of the plurality of first difference signals is determined as the vehicle window vibration signal, or a weighted average value of the plurality of first difference signals is determined as the vehicle window vibration signal.
[0109] It should be noted that different ultrasonic transmitters are deployed at different positions on the vehicle window, and the deployment positions of the ultrasonic receiver and the ultrasonic transmitter are also different.
[0110] Each ultrasonic transmitter has its own coverage area. When multiple ultrasonic transmitters are working, it helps to expand the signal coverage area, improve the accuracy of the first difference signal, and improve the accuracy of window vibration detection.
[0111] In another implementation, when the number of ultrasonic transmitters is one and the number of ultrasonic receivers is multiple, a difference signal of the second ultrasonic signal relative to the first ultrasonic signal is determined to obtain a window vibration signal, including: determining a second difference signal of the second ultrasonic signal received by any ultrasonic receiver relative to the first ultrasonic signal; and obtaining the window vibration signal based on the second difference signal.
[0112] Since there are multiple ultrasonic receivers and one ultrasonic transmitter, different ultrasonic receivers need to receive the signal transmitted by the ultrasonic transmitter. In order to achieve that different ultrasonic receivers receive the signal transmitted by the ultrasonic transmitter, corresponding processing is required, and the specific processing can be set according to actual needs.
[0113] In one example, an ultrasonic transmitter modulates a first ultrasonic signal to different frequencies for transmission, each frequency corresponds to an independent channel, and multiple receivers are set in advance to receive the frequency of the signal.
[0114] In another example, the ultrasonic transmitter uses different spread spectrum codes to perform spread spectrum processing on the first ultrasonic signal before sending it, and each receiver uses the spread spectrum code corresponding to the first ultrasonic signal sent to itself to perform despreading.
[0115] Furthermore, the specific implementation method of obtaining the vehicle window vibration signal according to the second difference signal can be set according to actual needs.
[0116] For example, an average value of the plurality of second difference signals is determined as the vehicle window vibration signal, or a weighted average value of the plurality of second difference signals is determined as the vehicle window vibration signal.
[0117] When there is only one ultrasonic transmitter but multiple ultrasonic receivers, ultrasonic receivers at different locations can receive signals within the coverage range of the ultrasonic transmitter, thereby enhancing the quality of the signal received by the ultrasonic receiver, improving the accuracy of the second difference signal, and improving the accuracy of window vibration detection.
[0118] On the basis of the above embodiment, the vibration characteristics of the vehicle window are determined based on the vehicle window vibration signal, including: performing spectrum analysis on the vehicle window vibration signal based on fast Fourier transform to determine the vibration characteristics of the vehicle window.
[0119] Among them, Fast Fourier Transform (FFT) is an algorithm used to convert time domain signals into frequency domain signals to extract the vibration characteristics of the signal. The formula of FFT can be expressed as:
[0120]
[0121] Among them, X(k) is the frequency domain signal; x(n) is the time domain signal; N is the signal length; k is the frequency index.
[0122] Furthermore, the vibration characteristics of the vehicle window include the vehicle window vibration amplitude and the vehicle window vibration frequency. The vehicle window vibration frequency can be determined by the following formula:
[0123] fpeak=argmax|X(k)|
[0124] Among them, X(k) represents the spectrum, arg max means finding the index k that maximizes |X(k)| and converting it into the actual frequency fpeak.
[0125] The window vibration amplitude can be determined by the following formula:
[0126] Apeak=max|X(k)|
[0127] Among them, X(k) represents the frequency spectrum, max represents finding the maximum value of |X(k), and Apeak represents the vibration amplitude of the car window.
[0128] The embodiment of the present application converts the vehicle window vibration signal from the time domain to the frequency domain through fast Fourier transform, thereby specifically improving the quality of the vehicle window vibration signal.
[0129] Next, an example will be given to illustrate how to use the noise reduction method provided in the embodiment of the present application. The method includes the following steps:
[0130] Ultrasonic sensors are installed at multiple corners of the vehicle windows. The ultrasonic sensors include ultrasonic transmitters and ultrasonic receivers. It is necessary to ensure that at least one ultrasonic transmitter and one ultrasonic receiver are installed.
[0131] The microcontroller sends a trigger signal to the ultrasonic transmitter to trigger the ultrasonic transmitter to transmit a signal;
[0132] The microcontroller obtains the signal received by the ultrasonic receiver;
[0133] The microcontroller transmits both the trigger signal and the signal received by the ultrasonic receiver to the computer or embedded system;
[0134] The computer or embedded system determines a difference signal between the trigger signal and the signal received by the ultrasonic receiver, and performs spectrum analysis on the difference signal based on fast Fourier transform to extract vibration characteristics of the difference signal, wherein the vibration characteristics include vibration frequency and amplitude;
[0135] The computer or embedded system generates an anti-phase signal using an adaptive filter according to the vibration characteristics extracted from the difference signal;
[0136] Output the inverted signal through the speaker or other actuators in the car;
[0137] The sound inside the car is collected by a microphone and transmitted to a computer or an embedded system, and the computer or embedded system determines the corresponding noise level according to the sound intensity inside the car;
[0138] The computer or embedded system adjusts the parameters of the adaptive filter according to the noise level to cope with the dynamically changing noise environment and ensure the best noise reduction effect.
[0139] In summary, the noise reduction method and system based on ultrasonic detection of window vibration provided in the embodiment of the present application achieves a significant noise reduction effect through a high-precision ultrasonic sensor, a real-time dynamically adjusted feedback control module, and an efficient adaptive filter. This method can effectively avoid environmental noise interference, adapt to dynamically changing noise environments in real time, and optimize low-frequency noise in particular. Compared with traditional sound insulation materials, this application not only reduces vehicle weight and fuel consumption, but also improves in-vehicle comfort and safety. Overall, this application has important value and has broad application prospects.
[0140] Furthermore, the noise reduction method and system based on ultrasonic detection of window vibration provided in the embodiments of the present application are intended to improve the detection sensitivity and accuracy of the window vibration signal, simplify the layout, and achieve real-time and effective control of the noise caused by the window vibration, thereby improving the quiet effect inside the vehicle. Furthermore, this non-microphone method of collecting sounds inside the vehicle avoids safety hazards and improves comfort.
[0141] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0142] Figure 2 This is a schematic diagram of the structure of a noise reduction device provided in one embodiment of the present application. Figure 2 As shown, the noise reduction device 200 provided in this embodiment includes:
[0143] The data acquisition module 201 is used to obtain the window vibration signal by using the ultrasonic sensor;
[0144] A signal processing module 202, for determining a vibration characteristic of the vehicle window based on the vehicle window vibration signal;
[0145] An active noise reduction module 203, used to generate an anti-phase signal of the vehicle window vibration signal according to the vibration characteristics;
[0146] The execution module 204 is used to output an inverted signal through the audio execution module to reduce noise inside the vehicle.
[0147] In a possible implementation, the noise reduction device further includes an adjustment module (not shown), which is specifically used to: determine the current noise level inside the vehicle; and adjust the parameters of the adaptive filter according to the noise level, wherein the parameters determine the vibration characteristics of the output reverse signal.
[0148] In a possible implementation, the ultrasonic sensor includes an ultrasonic transmitter and an ultrasonic receiver, and the data acquisition module 201 is specifically used to: control the ultrasonic transmitter to transmit a first ultrasonic signal; collect a second ultrasonic signal received by the ultrasonic receiver; determine a difference signal between the second ultrasonic signal and the first ultrasonic signal to obtain a window vibration signal.
[0149] In a possible implementation, there are multiple ultrasonic transmitters, and the data acquisition module 201 is specifically used to: identify the emission source of the second ultrasonic signal; determine, from the first ultrasonic signal, a third ultrasonic signal having the same emission source as the second ultrasonic signal; determine a first difference signal between the second ultrasonic signal and the third ultrasonic signal; and obtain a window vibration signal based on the first difference signal.
[0150] In a possible implementation, there are multiple ultrasonic receivers, and the data acquisition module 201 is specifically used to: determine a second difference signal between a second ultrasonic signal received by any ultrasonic receiver and the first ultrasonic signal; and obtain a window vibration signal according to the second difference signal.
[0151] In a possible implementation manner, the signal processing module 202 is specifically configured to: perform spectrum analysis on the vehicle window vibration signal based on fast Fourier transform to determine the vibration characteristics of the vehicle window.
[0152] Furthermore, the data acquisition module further includes an ultrasonic sensor module, wherein the ultrasonic sensor module includes an ultrasonic transmitter and an ultrasonic receiver;
[0153] Data acquisition module: Use a microcontroller to connect the ultrasonic sensor to collect the transmitted and received ultrasonic signals in real time. The microcontroller can be Arduino or Raspberry Pi. The ultrasonic sensors are installed at the four corners of the car window to form a detection network.
[0154] Signal processing module: The microcontroller transmits the collected transmitted and received ultrasonic signals to the computer or embedded system, uses the fast Fourier transform algorithm to perform spectrum analysis, and extracts the vibration frequency and amplitude;
[0155] Active noise reduction module: Based on the extracted vibration characteristics, an adaptive filter is used to generate an anti-phase signal, which is then emitted through the in-car speakers.
[0156] Furthermore, the above-mentioned noise reduction device also includes a feedback control module (not shown), which monitors the noise reduction effect in real time and adjusts the adaptive filter parameters and the inverted signal to ensure a better noise reduction effect.
[0157] The noise reduction device provided in the embodiment of the present application can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.
[0158] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the processing module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0159] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module is implemented in the form of a processing element to allocate program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0160] Figure 3 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 3As shown, the electronic device 300 provided in the embodiment of the present application may include: a processor 301, and a memory 302 connected to the processor in communication, wherein:
[0161] Memory stores computer-executable instructions;
[0162] The processor executes the computer-executable instructions stored in the memory to implement the method described in the foregoing method embodiment.
[0163] It should be understood that the processor 301 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can be any conventional processor, etc. The steps of the method disclosed in the application can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor. The memory 302 may include a high-speed random access memory (RAM), and may also include non-volatile storage NVM (non-volatile memory), such as at least one disk storage, and can also be a USB flash drive, a mobile hard disk, a read-only memory, a disk or an optical disk, etc.
[0164] Optionally, the electronic device 300 may further include a communication interface 303. In a specific implementation, if the communication interface 303, the memory 302 and the processor 301 are implemented independently, the communication interface 303, the memory 302 and the processor 301 may be interconnected through a bus and communicate with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.
[0165] Optionally, in a specific implementation, if the communication interface 303, the memory 302 and the processor 301 are integrated on a chip, the communication interface 303, the memory 302 and the processor 301 can complete communication through an internal interface.
[0166] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed, they are used to implement the method described in any of the aforementioned embodiments.
[0167] It is understood that the computer readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special computer.
[0168] An exemplary computer-readable storage medium is coupled to a processor so that the processor can read information from the computer-readable storage medium and write information to the computer-readable storage medium. Of course, the computer-readable storage medium can also be an integral part of the processor. The processor and the computer-readable storage medium can be located in an ASIC. Of course, the processor and the computer-readable storage medium can also exist in an electronic device as discrete components.
[0169] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a computer-readable storage medium, including a number of instructions for enabling an electronic device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application.
[0170] An embodiment of the present application also provides a computer program product, including a computer program, which implements the method described in any of the above embodiments when executed.
[0171] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
[0172] It should be further noted that, although the various steps in the flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0173] In the above embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0174] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0175] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A noise reduction method, characterized in that: include: Use ultrasonic sensors to detect and obtain window vibration signals; Determining a vibration characteristic of the vehicle window based on the vehicle window vibration signal; generating an inverted signal of the vehicle window vibration signal according to the vibration characteristic; The inverted signal is outputted through the audio execution module to reduce the noise inside the vehicle.
2. The method according to claim 1, characterized in that The inverted signal is generated by applying an adaptive filter, and after the inverted signal is output by the audio execution module, the method further includes: Determine the current noise level inside the vehicle; According to the noise level, the parameters of the adaptive filter are adjusted, and the parameters determine the vibration characteristics of the output reverse signal.
3. The method according to claim 2, characterized in that The ultrasonic sensor includes an ultrasonic transmitter and an ultrasonic receiver. The method of using the ultrasonic sensor to detect and obtain the window vibration signal includes: Controlling the ultrasonic transmitter to transmit a first ultrasonic signal; collecting a second ultrasonic signal received by the ultrasonic receiver; A difference signal between the second ultrasonic signal and the first ultrasonic signal is determined to obtain the vehicle window vibration signal.
4. The method according to claim 3, characterized in that There are multiple ultrasonic transmitters, and determining a difference signal between the second ultrasonic signal and the first ultrasonic signal to obtain the window vibration signal includes: Identifying a transmission source of the second ultrasonic signal; Determine, from the first ultrasonic signal, a third ultrasonic signal having the same transmission source as the second ultrasonic signal; determining a first difference signal of the second ultrasonic signal relative to the third ultrasonic signal; The vehicle window vibration signal is obtained according to the first difference signal.
5. The method according to claim 3, characterized in that: The number of the ultrasonic receivers is multiple, and the determining a difference signal of the second ultrasonic signal relative to the first ultrasonic signal to obtain the vehicle window vibration signal includes: Determine a second difference signal between a second ultrasonic signal received by any ultrasonic receiver and the first ultrasonic signal; The vehicle window vibration signal is obtained according to the second difference signal.
6. The method according to any one of claims 1 to 5, wherein determining the vibration characteristics of the vehicle window based on the vehicle window vibration signal comprises: Based on fast Fourier transform, spectrum analysis is performed on the vehicle window vibration signal to determine the vibration characteristics of the vehicle window.
7. A noise reduction device, characterized in that: include: A data acquisition module is used to detect and obtain a window vibration signal using an ultrasonic sensor; A signal processing module, used for determining a vibration characteristic of the vehicle window based on the vehicle window vibration signal; An active noise reduction module, used for generating an anti-phase signal of the vehicle window vibration signal according to the vibration characteristics; The execution module is used to output the anti-phase signal through the audio execution module to reduce the noise inside the vehicle.
8. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.
10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 6 when being executed by a processor.