Abnormal sound detection method, device, electronic equipment and storage medium
By converting the sound signal into a digital signal, processing it into a frequency domain signal, and mapping it into an image for comparison, the detection error problem caused by relying on empirical judgment in the existing technology is solved, and higher accuracy of abnormal sound detection is achieved.
Patent Information
- Application Number
- CN202011040530.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-28
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-09-28
AI Technical Summary
Existing noise detection methods rely on the experience and judgment of operators, resulting in large detection errors and low accuracy.
Convert the sound signal to be detected into a digital signal sequence, perform time domain signal processing, calculate the frequency domain signal, and map it into a test image. Enter the preset recognition model for comparison to obtain the abnormal sound detection results and reduce the experience dependence.
Through automated signal processing and recognition model comparison, the accuracy of abnormal sound detection is significantly improved and human errors are reduced.
Smart Images

Figure CN112233692B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of signal processing, and in particular to an abnormal sound detection method, device, electronic equipment and storage medium. Background Art
[0002] Abnormal sound detection is one of the items in the quality inspection of some equipment. For example, the abnormal sound detection of fans requires detecting whether the fan makes abnormal sounds during operation, such as abnormal noises from bearings. The existing method of detecting abnormal noises in equipment is mainly for operators to place the equipment to be tested in a silent room and then start the equipment to be tested. The operator listens to see if there is any abnormal sound from the started equipment to be tested. The existing abnormal sound detection is mainly judged by the operators based on their own experience. Due to the different experiences of different operators, the judgment error of equipment abnormal sound detection is relatively large. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention provides an abnormal sound detection method, device, electronic device and storage medium, which can effectively improve the accuracy of abnormal sound detection.
[0004] According to a first aspect of an embodiment of the present invention, a method for detecting an abnormal sound is provided, comprising the following steps:
[0005] Converting the sound signal to be detected into a sound digital signal sequence;
[0006] Processing the sound digital signal sequence to obtain a time domain signal;
[0007] Calculating the time domain signal to obtain a frequency domain signal;
[0008] Mapping the frequency domain signal into a test image;
[0009] The inspection image is input into a preset recognition model to obtain a strange sound detection result of the sound signal.
[0010] The abnormal sound detection method according to the embodiment of the present invention has at least the following beneficial effects: the embodiment of the present invention converts the sound signal to be detected into a sound digital signal sequence, then processes the sound digital signal sequence to obtain a time domain signal, then calculates the time domain signal to obtain a frequency domain signal, and maps the frequency domain signal into a test image, and finally compares the test image with the image database to obtain the abnormal sound detection data of the sound signal. The above-mentioned abnormal sound detection method steps do not need to rely on the experience of the operator to obtain. Mainly by mapping the sound signal to be detected step by step into the test image, and then comparing the test image with the data in the image database, the abnormal sound detection result of the sound signal to be detected can be obtained, which can effectively improve the accuracy of abnormal sound detection.
[0011] According to some embodiments of the present invention, converting the sound signal to be detected into a sound digital signal sequence includes:
[0012] Converting the sound signal from an analog signal to a digital signal;
[0013] The sound digital signal sequence is formed according to the sound signal converted into a digital signal.
[0014] According to some embodiments of the present invention, calculating the time domain signal to obtain the frequency domain signal includes:
[0015] The time domain signal is subjected to Fourier transform calculation to obtain the frequency domain signal.
[0016] According to some embodiments of the present invention, mapping the frequency domain signal into a test image comprises:
[0017] Extracting time features, intensity features and frequency features of a plurality of consecutive frames of frequency domain signals within a preset time period;
[0018] A coordinate system is constructed with the time feature as the ordinate and the frequency feature as the abscissa, and the intensity feature is converted into a data point of a corresponding grayscale value or a corresponding color brightness according to the intensity;
[0019] According to the matching relationship between the intensity feature and the time feature and the frequency feature, the data points are distributed on the coordinate system to obtain the inspection image.
[0020] According to some embodiments of the present invention, the step of inputting the inspection image into a preset recognition model to obtain a detection result of an abnormal sound of the sound signal includes:
[0021] Calibrate a number of existing inspection images to obtain a number of calibrated inspection images;
[0022] Establishing a recognition model according to the calibrated inspection image;
[0023] The inspection image is input into a recognition model to obtain a strange sound detection result of the sound signal.
[0024] According to some embodiments of the present invention, establishing a recognition model based on the calibrated inspection image includes:
[0025] Several calibrated test images are input into the neural network to obtain a trained recognition model.
[0026] According to some embodiments of the present invention, the abnormal sound detection result includes judging the sound signal to be detected as one of friction sound, interference sound, foreign object sound, abnormal bearing sound, fan blade buzzing sound, and normal sound.
[0027] A second aspect of an embodiment of the present invention provides an abnormal sound detection device, including:
[0028] A sound signal processing module, used for converting the sound signal to be detected into a sound digital signal sequence;
[0029] A signal conversion module, used for processing the sound digital signal sequence to obtain a time domain signal;
[0030] A signal calculation module, used to calculate the time domain signal to obtain a frequency domain signal;
[0031] A signal mapping module, used for mapping the frequency domain signal into a test image;
[0032] The detection module is used to input the inspection image into a preset recognition model to obtain the abnormal sound detection result of the sound signal.
[0033] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, including:
[0034] at least one memory;
[0035] at least one processor;
[0036] at least one program;
[0037] The program is stored in the memory, and the processor executes at least one of the programs to implement the above-mentioned abnormal sound detection method.
[0038] According to a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the steps of the above-mentioned abnormal sound detection method are implemented.
[0039] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0041] Figure 1 is a schematic diagram of an electronic device according to an embodiment of the present invention;
[0042] Figure 2 is a flow chart of an abnormal sound detection method according to an embodiment of the present invention;
[0043] Figure 3 A frequency domain image of a single frame of sound signal of the abnormal sound detection method according to an embodiment of the present invention;
[0044] Figure 4 A detection image without abnormal sound according to the abnormal sound detection method of an embodiment of the present invention;
[0045] Figure 5 This is a detection image containing an abnormal sound in the abnormal sound detection method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0046] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0047] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0048] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0049] Reference Figure 1 , the components of the electronic device 100 include but are not limited to a memory 110 and a processor 120. The processor 120 is connected to the memory 110 via a bus 130, and the database 160 is used to store data.
[0050] The electronic device 100 also includes an access device 140 that enables the electronic device 100 to communicate via one or more networks 150. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 1400 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.
[0051] In some specific embodiments of the present invention, the above components of the electronic device 100 and Figure 1 Other components not shown in the figure may be connected to each other, for example, via a bus. It should be understood that Figure 1 The electronic device structure block diagram shown is for illustrative purposes only and is not intended to limit the scope of the present invention. Those skilled in the art may add or replace other components as needed. The electronic device may be any type of electronic device, such as a computer, a smart phone, a smart tablet, etc.
[0052] The processor 120 may execute Figure 2 The steps in the abnormal sound detection method are shown. Figure 2 FIG. 1 is a flowchart of a method for detecting abnormal sound according to an embodiment of the present invention. Figure 2 , including steps S100 to S500.
[0053] Step S100: converting the sound signal to be detected into a sound digital signal sequence.
[0054] In some specific embodiments of the present invention, converting the sound signal to be detected into a sound digital signal sequence includes: converting the sound signal from an analog signal into a digital signal; and forming a sound digital signal sequence based on the sound signal converted into a digital signal.
[0055] It is understandable that in the existing related technologies, there are many methods or devices for collecting sound signals, such as using a microphone to collect sound signals. The initially collected sound signals are usually analog signals, and for the convenience of subsequent processing, the analog signals are converted into digital signals.
[0056] Step S200: Process the sound digital signal sequence to obtain a time domain signal.
[0057] The sound digital signal sequence is processed with time as the horizontal axis and intensity as the vertical axis, so as to convert the sound digital signal that changes with time into a time domain signal.
[0058] Step S300: Calculate the time domain signal to obtain the frequency domain signal.
[0059] Reference Figure 3 In some specific embodiments of the present invention, calculating the time domain signal to obtain the frequency domain signal includes: performing Fourier transform calculation on the time domain signal to obtain the frequency domain signal. The frequency domain signal has frequency as the horizontal coordinate and intensity as the vertical coordinate.
[0060] Step S400: Map the frequency domain signal into a test image.
[0061] Reference Figure 4 and Figure 5 In some specific embodiments of the present invention, mapping the frequency domain signal into a test image includes: extracting the time characteristics, intensity characteristics and frequency characteristics of the frequency domain signal of multiple consecutive frames within a preset time period; constructing a coordinate system with the time characteristics as the vertical coordinate and the frequency characteristics as the horizontal coordinate, and converting the intensity characteristics into data points corresponding to the grayscale value or the color brightness according to the intensity; and distributing the data points on the coordinate system according to the matching relationship between the intensity characteristics and the time characteristics and the frequency characteristics to obtain the test image.
[0062] Step S500: input the inspection image into a preset recognition model to obtain the abnormal sound detection result of the sound signal.
[0063] In some specific embodiments of the present invention, the test image is input into a preset recognition model to obtain an abnormal sound detection result of the sound signal, including: calibrating a number of existing test images to obtain a number of calibrated test images; establishing a recognition model based on the calibrated test images; inputting the test image into the recognition model to obtain an abnormal sound detection result of the sound signal. Establishing a recognition model based on the calibrated test images includes: inputting a number of calibrated test images into a neural network to obtain a trained recognition model. The abnormal sound detection result includes judging the sound signal to be detected as one of friction sound, interference sound, foreign body sound, bearing abnormal sound, fan blade buzzing sound, and normal sound.
[0064] It should be noted that the recognition model mentioned in the embodiment of the present application is mainly completed by a neural network, such as a convolutional neural network. Taking the abnormal sound detection of a fan as an example, a staff member familiar with the abnormal sound detection of a fan calibrates the detection images of various abnormal sound conditions based on experience. For example, different detection images are calibrated as friction sound, interference sound, foreign body sound, abnormal bearing sound, fan blade buzzing sound, and normal sound, and then the initial parameters are set up through the convolutional neural network to establish an initial model, and then several calibrated test images are input into the initial model, and the initial model is trained to finally obtain a recognition model with a high recognition rate. After the sound signal to be detected is converted into a test image, the test image is input into the recognition model, and finally the recognition model outputs the recognition result, which can be one of friction sound, interference sound, foreign body sound, abnormal bearing sound, fan blade buzzing sound, and normal sound.
[0065] It can be understood that from the detection images that meet the detection standards and the images that do not meet the detection standards, it can be seen that the detection images that meet the detection standards, that is, the sound signal to be detected has no or fewer abnormal sounds, have a smaller frequency coverage range of data points, while the image data points that do not meet the detection standards have a larger frequency coverage range.
[0066] The embodiment of the present invention converts the sound signal to be detected into a sound digital signal sequence, then processes the sound digital signal sequence to obtain a time domain signal, then calculates the time domain signal to obtain a frequency domain signal, and maps the frequency domain signal into a test image, and finally compares the test image with the image database to obtain the abnormal sound detection data of the sound signal. The above-mentioned abnormal sound detection method steps do not need to rely on the experience of the operator to obtain. Mainly by mapping the sound signal to be detected step by step into the test image, the test image is input into the preset recognition model to obtain the abnormal sound detection result of the sound signal, and the abnormal sound detection result of the sound signal to be detected can be obtained, which can effectively improve the accuracy of abnormal sound detection. In the prior art, although there is a way to directly compare the sound to obtain the abnormal sound result, the accuracy of this method is not high, and the amount of data required to be implemented in the program is too large, which is not conducive to improving production efficiency.
[0067] The embodiment of the present invention further provides an abnormal sound detection device, comprising:
[0068] A sound signal processing module, used for converting the sound signal to be detected into a sound digital signal sequence;
[0069] A signal conversion module is used to process the sound digital signal sequence to obtain a time domain signal;
[0070] A signal calculation module is used to calculate the time domain signal to obtain the frequency domain signal;
[0071] A signal mapping module, used for mapping the frequency domain signal into a test image;
[0072] The detection module is used to input the inspection image into a preset recognition model to obtain the abnormal sound detection result of the sound signal.
[0073] An embodiment of the present invention provides an electronic device, including:
[0074] at least one memory;
[0075] at least one processor;
[0076] at least one program;
[0077] The programs are stored in the memory, and the processor executes at least one program to implement the above-mentioned abnormal sound detection method.
[0078] The embodiment of the present invention further provides a computer-readable storage medium storing a computer program, which implements the steps of the above-mentioned abnormal sound detection method when executed by a processor.
[0079] It should be noted that the technical solution of the computer-readable storage medium and the technical solution of the above-mentioned abnormal sound detection method belong to the same concept. For details not described in detail in the technical solution of the computer-readable storage medium, please refer to the description of the technical solution of the above-mentioned abnormal sound detection method.
[0080] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0081] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0082] In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0083] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
[0084] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.
[0085] The embodiments of the present invention are described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments. Various changes can be made within the knowledge scope of ordinary technicians in the technical field without departing from the purpose of the present invention.
Claims
1. A method for detecting abnormal sound, It is characterized in that The following steps are involved: Converting the sound signal to be detected into a sound digital signal sequence; Processing the sound digital signal sequence to obtain a time domain signal; Calculating the time domain signal to obtain a frequency domain signal; Mapping the frequency domain signal into a test image; Inputting the inspection image into a preset recognition model to obtain a detection result of an abnormal sound of the sound signal; Wherein, mapping the frequency domain signal into a test image comprises: extracting the time feature, intensity feature and frequency feature of a plurality of consecutive frames of the frequency domain signal within a preset time period; constructing a coordinate system with the time feature as the ordinate and the frequency feature as the abscissa, converting the intensity feature into data points corresponding to the grayscale value or the color brightness according to the intensity; distributing the data points on the coordinate system according to the matching relationship between the intensity feature and the time feature and the frequency feature, so as to obtain the test image; The step of inputting the inspection image into a preset recognition model to obtain the abnormal sound detection result of the sound signal includes: calibrating a plurality of existing inspection images to obtain a plurality of calibrated inspection images; establishing a recognition model according to the calibrated inspection images; and inputting the inspection image into the recognition model to obtain the abnormal sound detection result of the sound signal; The step of establishing a recognition model based on the calibrated inspection images includes: inputting a number of calibrated inspection images into a neural network to obtain a trained recognition model; The abnormal sound detection result includes judging the sound signal to be detected as one of friction sound, interference sound, foreign body sound, abnormal bearing sound, fan blade buzzing sound, and normal sound.
2. The abnormal sound detection method according to claim 1, It is characterized in that Convert the sound signal to be detected into a sound digital signal sequence, including: Converting the sound signal from an analog signal to a digital signal; The sound digital signal sequence is formed according to the sound signal converted into a digital signal.
3. The abnormal sound detection method according to claim 1, It is characterized in that Calculating the time domain signal to obtain a frequency domain signal includes: The time domain signal is subjected to Fourier transform calculation to obtain the frequency domain signal.
4. A device for detecting abnormal sound, It is characterized in that include: A sound signal processing module, used for converting the sound signal to be detected into a sound digital signal sequence; A signal conversion module, used for processing the sound digital signal sequence to obtain a time domain signal; A signal calculation module, used to calculate the time domain signal to obtain a frequency domain signal; A signal mapping module, used for mapping the frequency domain signal into a test image; The detection module is used to input the inspection image into a preset recognition model to obtain the abnormal sound detection result of the sound signal; wherein, mapping the frequency domain signal into the inspection image includes: extracting the time characteristics, intensity characteristics and frequency characteristics of the frequency domain signal of multiple consecutive frames within a preset time period; constructing a coordinate system with the time characteristics as the vertical coordinate and the frequency characteristics as the horizontal coordinate, converting the intensity characteristics into data points of corresponding grayscale values or corresponding color brightness according to the intensity size; distributing the data points on the coordinate system according to the matching relationship between the intensity characteristics and the time characteristics and the frequency characteristics to obtain the inspection image; The test image is input into a preset recognition model to obtain the abnormal sound detection result of the sound signal, including: calibrating several existing test images to obtain several calibrated test images; establishing a recognition model according to the calibrated test images; inputting the test image into the recognition model to obtain the abnormal sound detection result of the sound signal; establishing a recognition model according to the calibrated test image, including: inputting several calibrated test images into a neural network to obtain a trained recognition model; the abnormal sound detection result includes judging the sound signal to be detected as one of friction sound, interference sound, foreign body sound, abnormal bearing sound, fan blade buzzing sound, and normal sound.
5. An electronic device, It is characterized in that include: at least one memory; at least one processor; at least one program; The program is stored in the memory, and the processor executes at least one of the programs to implement the abnormal sound detection method according to any one of claims 1 to 3.
6. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the abnormal sound detection method according to any one of claims 1 to 3 are implemented.
