Abnormal-sound detection method and system based on diffusion denoising for air conditioner outdoor unit
Through the method of diffusion and noise removal, Gaussian hybrid model and neural network model are trained, which solves the problem of abnormal sound detection of air conditioners under industrial complex noise interference, and realizes contactless real-time detection and high accuracy, reducing labor costs.
Patent Information
- Application Number
- PCT/CN2023/141102
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-11-13
- Filing Date
- 2023-12-22
- Publication Date
- 2025-05-22
AI Technical Summary
Under the conditions of complex industrial noise interference, traditional air conditioner external unit abnormal sound detection methods are difficult to correctly determine whether the sound of the air conditioner running is normal, which is inefficient and has artificial subjective influence.
Using a diffusion and noise-de-deletion method, the sound data of the normal operation of the air conditioner external unit and the sound data of the environmental interference sound data are obtained, and the time-frequency characteristics are extracted, and the Gaussian hybrid model and neural network model are trained to realize the anti-interference abnormality detection of the sound of the air conditioner external unit.
It realizes contactless real-time detection under complex industrial noise interference conditions, reduces labor costs, and improves the production quality and inspection accuracy of air conditioning units.
Smart Images

Figure CN2023141102_22052025_PF_FP_ABST
Abstract
Description
Abnormal sound detection method and system for air conditioner outdoor unit based on diffusion denoising Technical Field
[0001] The present invention relates to the field of detection technology for air conditioner outdoor units, and in particular to the fields of deep learning, machine learning, and audio processing. More specifically, the present invention provides a method and system for detecting abnormal sound from an air conditioner outdoor unit based on diffusion denoising. Background Art
[0002] Before leaving the factory, air conditioner outdoor units undergo a pre-operational test, where manual auscultation is performed to confirm the presence of abnormal noise. This method is inefficient, and human subjectivity significantly impacts the results. With the rapid development of artificial intelligence and deep learning technologies, sound anomaly detection technology based on acoustic sensing has been increasingly proposed and has achieved considerable success.
[0003] Unsupervised learning-based sound anomaly detection technology typically classifies sounds that match the learned characteristics (such as normal air conditioner operation) as normal, while classifying sounds that differ from normal (such as abnormal air conditioner operation and other non-air conditioner operation sounds that have not been learned) as abnormal. However, in real-world industrial scenarios such as air conditioner operation testing, where background noise is complex, the microphone not only picks up the air conditioner's operating sound, but also surrounding interference noise such as motor noise and valve noise. In the presence of these interferences, conventional abnormal sound detection methods cannot accurately determine whether the air conditioner's operating sound is normal.
[0004] Summary of the Invention
[0005] In view of this, the purpose of the present invention is to propose a method and system for detecting abnormal sounds of air-conditioning outdoor units based on diffusion denoising, which can perform contactless real-time detection of the operating sounds of air-conditioning outdoor units under complex industrial noise interference conditions, reduce labor costs, and improve the production quality of air-conditioning outdoor units.
[0006] To achieve the above-mentioned and other related purposes, the present invention provides the following technical solutions:
[0007] In a first aspect, the present invention provides a method for detecting abnormal sound of an air conditioner outdoor unit based on diffusion denoising, comprising the following steps:
[0008] Acquire sound data of normal operation of the air conditioner outdoor unit to obtain first sound data, and acquire interference sound data in the environment where the air conditioner is tested to obtain second sound data;
[0009] Preprocessing the first sound data and the second sound data to obtain time-frequency features, thereby obtaining third sound data and fourth sound data;
[0010] training a Gaussian mixture model using the fourth sound data to obtain a fourth sound data distribution, and superimposing sound data sampled from the fourth sound data distribution onto the third sound data to obtain fifth sound data and a corresponding sampling step label;
[0011] Obtaining a neural network model, wherein the neural network model includes an audio noise reduction module and an anomaly detection module;
[0012] Training the neural network model using the third sound data and the fifth sound data, first fixing the weights of the audio noise reduction module, using the third sound data to train and update the parameters of the anomaly detection module, then fixing the weights of the anomaly detection module, and using the fifth sound data and sampling step labels to train the parameters of the audio noise reduction module;
[0013] According to the neural network model update method, the method is repeated multiple times until the neural network model converges, thereby obtaining a trained air conditioner outdoor unit anti-interference abnormal noise detection model;
[0014] Acquire the operating sound data of the air conditioner to be tested, and obtain sixth sound data through preprocessing, and use the trained anti-interference abnormal sound detection model of the air conditioner outdoor unit to perform abnormality detection on the sixth sound data.
[0015] In some optional implementations, obtaining interference sound data in the environment where the air conditioner is detected includes:
[0016] The multi-channel sound transmission device collects the running sound of the transmission device, the movement sound of the cylinder, the running sound of the motor and the movement and impact sound of the mechanical structure.
[0017] In some optional implementations, the preprocessing of the first sound data and the second sound data is time-frequency feature transformation, and the processing process includes:
[0018] First, the sound data is framed and windowed, with some overlap between frames. Then, a short-time Fourier transform is performed on each frame of data to obtain the logarithmic time-frequency feature map.
[0019] In some optional embodiments, the fourth sound data is used to train a Gaussian mixture model to determine the distribution of the fourth sound data. include:
[0020] Initialize the Gaussian mixture model parameters and use the EM algorithm to iteratively solve the fourth sound data distribution, its density function Expressed as:
[0021] Where x is the sound data, M is the number of components of the Gaussian mixture model, μ i is the mean of the corresponding component, Σ iis the covariance matrix of the corresponding component, n is the dimension of sample x, i is the i-th Gaussian distribution function, and T is the matrix transpose.
[0022] In some optional embodiments, based on the third sound data having N samples, t interference noise samples are randomly sampled from the Gaussian mixture density function in t steps for each sample in the third sound data, and are superimposed one by one with the third sound data to obtain the fifth sound data containing N×t sound samples, and N×t corresponding sampling step labels S.
[0023] In some optional embodiments, the fifth sound data is obtained by combining the third sound data and the density function The noise samples obtained by sampling are superimposed and described as:
[0024] in, is the i-th sample in the third sound data, for The fifth sound data sample is generated by superimposing the interference noise obtained by sampling in the tth step, and the weight α t =1-β t , for is the noise obtained by sampling, β is the manually set parameter, j is the jth step;
[0025] The sampling step label S is normalized to (0, 1).
[0026] In some optional implementations, the audio noise reduction module is a diffusion model, and the anomaly detection module is a deep convolutional autoencoder model.
[0027] In some optional embodiments, training the neural network model includes:
[0028] First, the third sound data is input into the network, the weight of the audio noise reduction module is fixed, and the anomaly detection module reconstructs the third sound data to update the network. Then, the weight of the anomaly detection module is fixed, and the audio noise reduction module sequentially estimates the interference noise superimposed on the fifth sound data and generates an estimated sampling step corresponding to the interference noise. The fifth sound data is then subtracted from the estimated interference noise and re-input into the audio noise reduction module. After all the fifth sound data are estimated, the fifth sound data obtained in the last step is input into the anomaly detection module. This process is repeated until the neural network model converges. The loss function of the neural network model is determined according to the following formula:
[0029] Where ∈ is the interference noise obtained by actual sampling, ∈ θis the interference noise estimated by the audio noise reduction module, t is the true value of the interference noise sampling step, is the interference noise sampling step prediction value estimated by the audio noise reduction module, x is the sound data after noise reduction, Reconstructed sound data for the anomaly detection module; θ and γ are both weight parameters of network loss.
[0030] In some optional implementations, the trained anti-interference abnormal sound detection model for the air conditioner outdoor unit includes:
[0031] The acquired air conditioner outdoor unit operating sound data is preprocessed to obtain time-frequency features, which are then input into the trained air conditioner outdoor unit anti-interference abnormal sound detection model; first, the estimated noise ∈ θ , and the estimated sampling step Then, the time-frequency feature is subtracted from the estimated noise and then re-input into the audio noise reduction module until the estimated sampling step output by the audio noise reduction module is If the value is less than the threshold th_denoise~(0,1), the corresponding audio noise reduction module input is subtracted from the estimated interference noise and then input into the abnormality detection module to obtain the reconstruction error e; when the reconstruction error e is greater than the threshold th, it is judged that the air conditioner operation sound is abnormal, otherwise it is normal.
[0032] In a second aspect, the present application provides an air conditioner outdoor unit abnormal sound detection system based on diffusion denoising, comprising:
[0033] An audio data acquisition unit is configured to acquire sound data of normal operation of the air conditioner outdoor unit to obtain first sound data, and acquire interference sound data in the environment in which the air conditioner is tested to obtain second sound data;
[0034] a time-frequency feature extraction unit, configured to pre-process the first sound data and the second sound data to obtain time-frequency features, and then obtain third sound data and fourth sound data;
[0035] a Gaussian mixture model training unit, configured to train a Gaussian mixture model using the fourth sound data to obtain a fourth sound data distribution, and to superimpose sound data sampled from the fourth sound data distribution onto the third sound data to obtain fifth sound data and a corresponding sampling step label;
[0036] A neural network model acquisition unit, configured to acquire a neural network model, wherein the neural network model includes an audio noise reduction module and an anomaly detection module;
[0037] a neural network model training unit, configured to train the neural network model using the third sound data and the fifth sound data, first fixing the weights of the audio noise reduction module, using the third sound data to train and update the parameters of the anomaly detection module, then fixing the weights of the anomaly detection module, and training the parameters of the audio noise reduction module using the fifth sound data and sampling step labels;
[0038] an abnormal sound detection model obtaining unit, configured to obtain a trained anti-interference abnormal sound detection model for an air conditioner outdoor unit by repeatedly updating the neural network model until the neural network model converges;
[0039] The abnormal sound detection unit is used to obtain the operating sound data of the air conditioner to be tested, obtain sixth sound data through preprocessing, and perform abnormality detection on the sixth sound data using the trained anti-interference abnormal sound detection model of the air conditioner outdoor unit.
[0040] The proposed method for detecting abnormal sound from an air conditioner outdoor unit based on diffusion denoising captures sound data from the unit's operation and uses this data to determine whether the unit's operating status is normal. Compared to traditional manual auscultation, the proposed method can perform contactless, real-time detection of the unit's operating status even under complex industrial noise interference conditions, thereby reducing the defective rate of finished air conditioners and improving their production quality.
[0041] It should be understood that the air-conditioning outdoor unit abnormal sound detection system based on diffusion denoising provided in the second aspect corresponds to the method of the first aspect provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0043] FIG1 is a flow chart of a method for detecting abnormal sound of an air conditioner outdoor unit based on diffusion denoising according to an embodiment of the present invention;
[0044] FIG2 is a schematic diagram of a training process for an air conditioner outdoor unit anti-interference abnormal sound detection model according to an embodiment of the present invention;
[0045] 3 is a schematic diagram of a detection process of an anti-interference abnormal noise detection model for an air conditioner outdoor unit according to an embodiment of the present invention;
[0046] 4 is a schematic diagram of an abnormal sound detection system for an air conditioner outdoor unit based on diffusion denoising according to an embodiment of the present invention;
[0047] FIG5 is a block diagram of an electronic device provided in an example of this application. DETAILED DESCRIPTION
[0048] For ease of understanding, some explanations of concepts related to the embodiments of the present application are exemplarily provided for reference. It should be noted that in the present application, "at least one" refers to one or more, and "a plurality" refers to two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims, and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.
[0049] In order to better understand the abnormal sound detection method and system for the air conditioner outdoor unit based on diffusion denoising provided by the embodiments of the present invention, the embodiments of the present application will be introduced below with reference to the accompanying drawings.
[0050] Example 1
[0051] FIG1 is a flow chart of a method for detecting abnormal sound of an air conditioner outdoor unit based on diffusion denoising according to an embodiment of the present invention.
[0052] The present invention provides a method for detecting abnormal sound of an air conditioner outdoor unit based on diffusion denoising, comprising the following steps:
[0053] S101, obtaining sound data of normal operation of an air conditioner outdoor unit to obtain first sound data, and obtaining interference sound data in an environment where the air conditioner is detected to obtain second sound data.
[0054] The first sound data is collected by a multi-channel microphone from the air conditioner's normal operation in a static environment. The second sound data is interference sound data from the air conditioner's production test environment, such as the sound of a running conveyor belt, valve operation, mechanical mechanism operation, and motor operation.
[0055] S102 , preprocessing the first sound data and the second sound data to obtain time-frequency features, thereby obtaining third sound data and fourth sound data.
[0056] The sound features extracted from sound data may include time domain features such as short-time average energy, short-time average zero-crossing rate, resonance peak, pitch period, etc., and may also include transform domain features such as linear prediction coefficient (LPC), linear prediction cepstrum coefficient (LPCC), Mel frequency cepstrum coefficient (MFCC), and perceptual linear prediction (PLP).
[0057] In one embodiment of the present application, extracting logarithmic time-frequency features from sound data specifically includes: performing a discrete Fourier transform (DFT, such as a fast Fourier transform) on the sound data to obtain a spectrum of the sound data; calculating a discrete energy spectrum of the sound data based on the spectrum of the sound data; and performing a logarithmic operation on the discrete energy spectrum of the sound data to obtain a logarithmic power spectrum of the sound data.
[0058] In one embodiment of the present application, when performing discrete Fourier transform on the sound data, the number of Fourier transform points is 2048.
[0059] In the embodiment of the present application, the sound features corresponding to one frame of sound data can be used as a sound sample, or the sound features corresponding to multiple frames of sound data can be used as a sound sample. If the sound features corresponding to every n frames of sound data are used as a sound sample, then m sound samples can be obtained per second of sound data:
[0060] in, Indicates rounding down, fs is the sampling frequency, n_fft is the number of Fourier transform points per frame, n is the number of frames corresponding to each sound sample, and n is an integer greater than or equal to 1.
[0061] For example, if the number of Fourier transform points per frame is 2048 and n is 5, then
[0062] In one embodiment of the present application, the sampling frequency is 44.1 kHz.
[0063] In the embodiment of the present application, preprocessing the sound data may include pre-emphasizing the sound data.
[0064] The purpose of pre-emphasis is to enhance the high frequency components in the sound data and make the signal spectrum flat. Pre-emphasis is generally implemented using a high-pass filter, and the transfer function of the high-pass filter can be: H(z) = 1-kz-1 , 0.9≤k≤1.0.
[0065] Wherein, k is the pre-emphasis coefficient, and its preferred value is between 0.94-0.97.
[0066] Preprocessing the sound data may further include dividing the sound data into frames.
[0067] Framing is achieved by windowing the sound data. To avoid excessive changes in the amplitude of two adjacent frames, the frames need to overlap. In one embodiment of the present application, each frame is 25 milliseconds, and there is a 15 millisecond overlap between two adjacent frames, that is, a frame is taken every 10 milliseconds.
[0068] Commonly used window functions include rectangular window, Hamming window and Hanning window.
[0069] S103 : Using the fourth sound data to train a Gaussian mixture model to obtain a fourth sound data distribution, and adding the sound data sampled from the fourth sound data distribution to the third sound data to obtain fifth sound data and a corresponding sampling step label.
[0070] In one embodiment of the present application, a Gaussian mixture model is trained using the fourth sound data to obtain the probability density function of the collected interference noise distribution. It can be described as:
[0071] Where x is the sound data, M is the number of components of the Gaussian mixture model, μ i is the mean of the corresponding component, Σ i is the covariance matrix of the corresponding component, n is the dimension of sample x, i is the i-th Gaussian distribution function, and T is the matrix transpose.
[0072] In one example of the present application, based on the third sound data having N samples, t interference noise samples are randomly sampled from the Gaussian mixture density function in t steps for each sample in the third sound data, and are superimposed one by one with the third sound data to obtain the fifth sound data containing N×t sound samples, and N×t corresponding sampling step labels S, the sampling step t is set to 1000, the sampling step interval is 2, and β0=0.0001.
[0073] Furthermore, the fifth sound data is obtained by combining the third sound data and the density function The noise samples obtained by sampling are superimposed and described as:
[0074] in, is the i-th sample in the third sound data, for The fifth sound data sample is generated by superimposing the interference noise obtained by sampling in the tth step, and the weight α t =1-β t , for is the noise obtained by sampling, β is the manually set parameter, j is the jth step;
[0075] The corresponding sampling step label S is normalized to (0, 1), and the label value of any step t is t / 1000.
[0076] S104: Acquire a neural network model, where the neural network model includes an audio noise reduction module and an anomaly detection module.
[0077] In one example of the present application, the audio noise reduction module is a diffusion model, whose network structure is a U-net network, and the anomaly detection module is a deep convolutional autoencoder model.
[0078] S105, training the neural network model using the third sound data and the fifth sound data, first fixing the weights of the audio noise reduction module, using the third sound data to train and update the parameters of the anomaly detection module, then fixing the weights of the anomaly detection module, and using the fifth sound data and sampling step labels to train the parameters of the audio noise reduction module.
[0079] As shown in FIG2 , in some optional embodiments, training the neural network model includes:
[0080] First, the third sound data is input into the network, the weight of the audio noise reduction module is fixed, and the anomaly detection module reconstructs the third sound data to update the network. Then, the weight of the anomaly detection module is fixed, and the audio noise reduction module sequentially estimates the interference noise superimposed on the fifth sound data and generates an estimated sampling step corresponding to the interference noise. The fifth sound data is then subtracted from the estimated interference noise and re-input into the audio noise reduction module. After all the fifth sound data are estimated, the fifth sound data obtained in the last step is input into the anomaly detection module. This process is repeated until the neural network model converges. The loss function of the neural network model is determined according to the following formula:
[0081] Where ∈ is the interference noise obtained by actual sampling, ∈ θ is the interference noise estimated by the audio noise reduction module, t is the true value of the interference noise sampling step, is the interference noise sampling step prediction value estimated by the audio noise reduction module, x is the sound data after noise reduction, Reconstructed sound data for the anomaly detection module. θ and γ are both weight parameters of network loss. θ=1000,γ=1.
[0082] S106, participating in an update method according to the neural network model, repeating multiple times until the neural network model converges, and obtaining a trained air conditioner outdoor unit anti-interference abnormal sound detection model.
[0083] S107, using the trained anti-interference abnormal sound detection model for the air-conditioning outdoor unit to perform abnormality detection on the operating sound of the air-conditioning outdoor unit.
[0084] As shown in FIG3 , in some optional implementations, the trained anti-interference abnormal noise detection model for the air conditioner outdoor unit includes:
[0085] The acquired air conditioner outdoor unit operating sound data is preprocessed to obtain time-frequency features, which are then input into the trained air conditioner outdoor unit anti-interference abnormal sound detection model. First, the estimated noise ∈ θ , and the estimated sampling step Then, the time-frequency feature is subtracted from the estimated noise and then re-input into the audio noise reduction module until the estimated sampling step output by the audio noise reduction module is If the value is less than the threshold th_denoise~(0,1), the corresponding audio noise reduction module input is subtracted from the estimated interference noise and then input into the anomaly detection module to obtain the reconstruction error e. If the reconstruction error e is greater than the threshold th, the air conditioner is judged to be operating abnormally, otherwise it is normal.
[0086] Example 2
[0087] As shown in FIG4 , the present application provides an abnormal sound detection system for an air conditioner outdoor unit based on diffusion denoising, comprising an audio data acquisition unit, a time-frequency feature extraction unit, a Gaussian mixture model training unit, a neural network model acquisition unit, a neural network model training unit, an abnormal sound detection model acquisition unit, and an abnormal sound detection unit;
[0088] The audio data acquisition unit is used to acquire the sound data of the normal operation of the air conditioner outdoor unit to obtain the first sound data, and acquire the interference sound data in the environment where the air conditioner is detected to obtain the second sound data;
[0089] The time-frequency feature extraction unit is used to pre-process the first sound data and the second sound data to obtain time-frequency features, and then obtain third sound data and fourth sound data;
[0090] The Gaussian mixture model training unit is configured to train a Gaussian mixture model using the fourth sound data to obtain a fourth sound data distribution, and to superimpose the sound data sampled from the fourth sound data distribution onto the third sound data to obtain fifth sound data and a corresponding sampling step label;
[0091] The neural network model acquisition unit is used to acquire a neural network model, and the neural network model includes an audio noise reduction module and an anomaly detection module;
[0092] The neural network model training unit is configured to train the neural network model using the third sound data and the fifth sound data, first fixing the weights of the audio noise reduction module, and using the third sound data to train and update the parameters of the anomaly detection module, then fixing the weights of the anomaly detection module, and using the fifth sound data and sampling step labels to train the parameters of the audio noise reduction module;
[0093] The abnormal sound detection model obtaining unit is used to participate in the updating method according to the neural network model, repeating multiple times until the neural network model converges, to obtain a trained air conditioner outdoor unit anti-interference abnormal sound detection model;
[0094] The abnormal sound detection unit is used to obtain the operating sound data of the air conditioner to be tested, obtain sixth sound data through preprocessing, and use the trained air conditioner outdoor unit anti-interference abnormal sound detection model to perform abnormality detection on the sixth sound data.
[0095] Other features in this embodiment of the present invention are the same as those in Example 1, and therefore will not be described again here.
[0096] Example 3
[0097] Based on the same concept, the present invention also provides a schematic diagram of a physical structure, as shown in Figure 5. The server may include: a processor 810, a communication interface 820, a memory 830, and a communication bus 840. The processor 810, the communication interface 820, and the memory 830 communicate with each other via the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the steps of the method for detecting abnormal sound from an air conditioner outdoor unit based on diffusion denoising.
[0098] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, 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. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0099] Example 4
[0100] Based on the same concept, the present invention also provides a non-transitory computer-readable storage medium, which stores a computer program. The computer program includes at least one segment of code, which can be executed by a main control device to control the main control device to implement the steps of the air-conditioning outdoor unit abnormal sound detection method based on diffusion denoising.
[0101] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive).
[0102] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[0103] It is obvious to those skilled in the art that the present application is not limited to the details of the above-mentioned exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic characteristics of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes that fall within the meaning and scope of the equivalent elements of the claims are included in the present application. Any accompanying figure marks in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other modules or steps, and the singular does not exclude the plural. Multiple modules or devices stated in the system claims can also be implemented by one module or device through software or hardware. Words such as first and second are used to indicate names and do not indicate any particular order.
Claims
1. A method for detecting abnormal sound of air conditioner outdoor unit based on diffusion denoising. It is characterized in that The steps include: Acquire the sound data of normal operation of the air conditioner outdoor unit to obtain the first sound data, and acquire the interference sound data in the environment where the air conditioner is detected to obtain the second sound data; Preprocessing the first sound data and the second sound data to obtain time-frequency features, and then obtaining third sound data and fourth sound data; Using the fourth sound data to train a Gaussian mixture model to obtain a fourth sound data distribution, and adding the sound data sampled from the fourth sound data distribution to the third sound data to obtain fifth sound data and a corresponding sampling step label; Acquire a neural network model, wherein the neural network model includes an audio noise reduction module and an anomaly detection module; The neural network model is trained by the third sound data and the fifth sound data, the weight of the audio noise reduction module is first fixed, the parameters of the anomaly detection module are updated by training using the third sound data, the weight of the anomaly detection module is then fixed, and the parameters of the audio noise reduction module are trained using the fifth sound data and the sampling step label; According to the neural network model, the updating method is repeated multiple times until the neural network model converges, thereby obtaining a trained air conditioner outdoor unit anti-interference abnormal sound detection model; The operating sound data of the air conditioner to be tested is obtained through preprocessing to obtain sixth sound data, and the trained anti-interference abnormal sound detection model for the air conditioner outdoor unit is used to perform abnormality detection on the sixth sound data.
2. The method for detecting abnormal sound of an air conditioner outdoor unit based on diffusion denoising according to claim 1, It is characterized in that The obtaining of interference sound data in the environment where the air conditioner is detected includes: The multi-channel sound transmission device collects the operation sound of the transmission device, the operation sound of the cylinder, the operation sound of the motor and the operation and impact sound of the mechanical structure.
3. The method for detecting abnormal sound of an air conditioner outdoor unit based on diffusion denoising according to claim 1, It is characterized in that The preprocessing of the first sound data and the second sound data is time-frequency feature transformation, and the processing process includes: First, the sound data is framed and windowed, and the frames are partially overlapped. Then, a short-time Fourier transform is performed on each frame of data to obtain the logarithmic time-frequency feature map.
4. The method for detecting abnormal sound of an air conditioner outdoor unit based on diffusion denoising according to claim 1, It is characterized in that The Gaussian mixture model is trained using the fourth sound data to determine the distribution of the fourth sound data. include: Initialize the Gaussian mixture model parameters and use the EM algorithm to iteratively solve the fourth sound data distribution, and its density function It is expressed as: Where x is the sound data, M is the number of components in the Gaussian mixture model, and μ i is the mean of the corresponding component, Σ i is the covariance matrix of the corresponding component, n is the dimension of sample x, i is the i-th Gaussian distribution function, and T is the matrix transpose.
5. The method for detecting abnormal sound of an air conditioner outdoor unit based on diffusion denoising according to claim 4, It is characterized in that According to the third sound data having N samples, t interference noise samples are obtained by randomly sampling each sample in the third sound data from the Gaussian mixture density function in t steps, and are superimposed one by one with the third sound data to obtain the fifth sound data containing N×t sound samples and N×t corresponding sampling step labels S.
6. The method for detecting abnormal sound of an air conditioner outdoor unit based on diffusion denoising according to claim 5, It is characterized in that The fifth sound data is obtained by combining the third sound data and the density function The noise samples obtained by sampling are superimposed and described as: in, is the i-th sample in the third sound data, for The fifth sound data sample is generated by superimposing the interference noise obtained by sampling in the tth step, is the noise obtained by sampling; weight α t =1-β t , for j is the jth step, β is the manually set parameter; The sampling step label S is normalized to (0, 1).
7. The method for detecting abnormal sound of an air conditioner outdoor unit based on diffusion denoising according to claim 1, It is characterized in that The audio noise reduction module is a diffusion model, and the anomaly detection module is a deep convolutional autoencoder model.
8. The method for detecting abnormal sound of an air conditioner outdoor unit based on diffusion denoising according to claim 1, It is characterized in that Training the neural network model includes: First, the third sound data is input into the network, the weight of the audio noise reduction module is fixed, and the anomaly detection module reconstructs the third sound data to update the network. Then, the weight of the anomaly detection module is fixed, and the audio noise reduction module sequentially estimates the interference noise superimposed on the fifth sound data, and the corresponding interference noise generates an estimated sampling step. Then, the fifth sound data is subtracted from the estimated interference noise and re-input into the audio noise reduction module until all the fifth sound data are estimated. Then, the fifth sound data obtained in the last step is input into the anomaly detection module, and the process is repeated until the neural network model converges. The loss function of the neural network model is determined according to the following formula: Where ∈ is the interference noise actually sampled, ∈ θ is the interference noise estimated by the audio noise reduction module, t is the true value of the interference noise sampling step, is the interference noise sampling step prediction value estimated by the audio noise reduction module, x is the sound data after noise reduction, Reconstructed sound data for the anomaly detection module; θ and γ are weight parameters of network loss.
9. The method for detecting abnormal sound of an air conditioner outdoor unit based on diffusion denoising according to claim 1, It is characterized in that According to the trained air conditioner outdoor unit anti-interference abnormal sound detection model, it includes: The acquired air conditioner outdoor unit operation sound data is preprocessed to obtain time-frequency features, which are then input into the trained air conditioner outdoor unit anti-interference abnormal sound detection model; first, the estimated noise ∈ θ , and the estimated sampling step Then, the estimated noise is subtracted from the time-frequency feature and re-input into the audio noise reduction module until the estimated sampling step output by the audio noise reduction module is is less than the threshold th_denoise~(0,1), and then the corresponding audio noise reduction module input is subtracted from the estimated interference noise and input into the abnormality detection module to obtain the reconstruction error e; when the reconstruction error e is greater than the threshold th, it is judged that the air conditioner is running abnormally, otherwise it is normal.
10. An abnormal sound detection system for air conditioner outdoor unit based on diffusion denoising, It is characterized in that include: An audio data acquisition unit, configured to acquire sound data of normal operation of an air conditioner outdoor unit to obtain first sound data, and acquire interference sound data in an environment where the air conditioner is detected to obtain second sound data; a time-frequency feature extraction unit, configured to obtain time-frequency features by preprocessing the first sound data and the second sound data, respectively, and then obtain third sound data and fourth sound data; a Gaussian mixture model training unit, configured to train a Gaussian mixture model using the fourth sound data to obtain a fourth sound data distribution, and to superimpose the sound data sampled from the fourth sound data distribution onto the third sound data to obtain fifth sound data and a corresponding sampling step label; A neural network model acquisition unit, used to acquire a neural network model, wherein the neural network model includes an audio noise reduction module and an anomaly detection module; A neural network model training unit, configured to train the neural network model using the third sound data and the fifth sound data, first fixing the weight of the audio noise reduction module, using the third sound data to train and update the parameters of the anomaly detection module, then fixing the weight of the anomaly detection module, and using the fifth sound data and the sampling step label to train the parameters of the audio noise reduction module; An abnormal sound detection model acquisition unit is used to participate in the updating method according to the neural network model, repeat multiple times until the neural network model converges, and obtain a trained air conditioner outdoor unit anti-interference abnormal sound detection model; The abnormal sound detection unit is used to obtain the operating sound data of the air conditioner to be tested, obtain sixth sound data through preprocessing, and perform abnormality detection on the sixth sound data using the trained anti-interference abnormal sound detection model for the air conditioner outdoor unit.
Citation Information
Patent Citations
Sound detection method based on neural network, and industrial acoustic detection system and method
CN113140229A
Mechanical equipment abnormal sound detection method based on self-supervised feature extraction
CN113792597A
Abnormal sound recognition model construction method and abnormal sound detection method and system
CN114724584A
Cement plant equipment fault diagnosis method based on sound characteristics
CN115424635A
Mechanical equipment anomaly detection method and system, storage medium and equipment
CN116659829A
Cited By
Thermal power plant equipment anomaly detection method based on Gaussian mixture model
CN120429590A
Machine abnormal sound detection method based on mutual information estimation and comparative learning
CN120656477A
State recognition model training method, state recognition method, device and equipment
CN121565208A