New peak point frequency positioning method, device and equipment based on DBSCAN algorithm

The peak point frequency template is generated by the DBSCAN algorithm and the peak-seeking algorithm to identify the new peak point frequency of mechanical equipment, which solves the identification deficiency of the traditional spectrum analysis method when the fault frequency is unknown, and improves the accuracy of fault diagnosis and data mining capabilities. .

CN118376839BActive Publication Date: 2024-09-13硕橙(厦门)科技有限公司
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410814720.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-13
Estimated Expiration
2044-06-24

AI Technical Summary

Technical Problem

Traditional spectrum analysis methods fail when the fault frequency of mechanical equipment is unknown, and it is difficult to identify the frequency of new peak points, affecting the accuracy of fault diagnosis.

Method used

Using the DBSCAN algorithm combined with the peak-finding algorithm, the noise and vibration time domain signals of the machine and equipment are obtained, converted into spectrum, the frequency sequence and amplitude sequence are extracted, clustered, the peak point frequency template is generated, and the peaks in the spectrum to be detected are identified and judged. Whether the point frequency is the new peak point frequency.

Benefits of technology

It improves the identification accuracy of new peak points, reveals potential periodicity or regularity information, and supports more accurate fault diagnosis and data mining.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118376839B
    Figure CN118376839B
Patent Text Reader

Abstract

The present invention discloses a method, device and equipment for locating newly added peak point frequencies based on DBSCAN algorithm, the method comprising: obtaining noise time domain signals and vibration time domain signals of machine equipment, converting the noise time domain signals and vibration time domain signals into frequency spectrums by using FFT, and extracting frequency sequence and amplitude sequence of the frequency spectrum; using several pairs of frequency sequences and amplitude sequences of the frequency spectrum to obtain the peak point frequencies in the frequency spectrum; clustering the peak point frequencies by using DBSCAN algorithm, removing the noise peak point frequencies, recording the center point frequencies of all the clusters and their corresponding clustering radius, and generating a peak point frequency template; obtaining the peak point frequencies in the spectrum to be detected, and judging whether the peak point frequencies in the spectrum to be detected are newly added peak point frequencies based on the center point frequencies of all clusters in the peak point frequency template and their corresponding clustering radius. The present invention can more accurately identify and analyze newly added peak point frequencies in a spectrum data set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of spectrum analysis, and in particular discloses a method, a device and equipment for locating a new peak point frequency based on a DBSCAN algorithm. Background Art

[0002] In the field of spectrum analysis, diagnosing mechanical equipment faults through spectrum analysis is a commonly used fault diagnosis method.

[0003] At present, traditional spectrum analysis often uses the known fault frequency of mechanical equipment to diagnose and judge the operating status of the equipment. However, when the fault frequency of mechanical equipment is unknown, the traditional spectrum analysis method will fail. Summary of the invention

[0004] In the process of implementing the present invention, the inventors found that when a machine device shows early signs of failure or serious problems, regular peak point frequencies often appear in the spectrum. Finding such peak point frequencies is helpful for performing spectrum analysis under specific modes.

[0005] As a density-based clustering method, the DBSCAN algorithm has shown significant advantages in finding clusters of arbitrary shapes in the spectrum; the peak-finding algorithm can be used to locate the peak frequency in the spectrum. Combining these two algorithms can help overcome the shortcomings of traditional analysis methods to a certain extent and improve the recognition accuracy of newly added peak points.

[0006] In view of this, the present invention provides a method, device and equipment for locating the frequency of a newly added peak point based on the DBSCAN algorithm, specifically:

[0007] The embodiment of the present invention provides a method for locating a new peak point frequency based on a DBSCAN algorithm, which includes:

[0008] S101, obtaining a noise time domain signal and a vibration time domain signal of a machine device, converting the noise time domain signal and the vibration time domain signal into corresponding frequency spectra using FFT, and extracting a frequency sequence and an amplitude sequence of the frequency spectra;

[0009] S102, using a plurality of pairs of frequency sequences and amplitude sequences of the frequency spectrum to obtain peak point frequencies in the frequency spectrum;

[0010] S103, clustering the peak point frequencies using a DBSCAN algorithm, removing the noise peak point frequencies, recording the center point frequencies of all the clusters and their corresponding clustering radii, and generating a peak point frequency template;

[0011] S104, obtaining the peak point frequency in the spectrum to be detected, and judging whether the peak point frequency in the spectrum to be detected is a newly added peak point frequency based on the center point frequencies of all clusters in the peak point frequency template and their corresponding cluster radius.

[0012] Preferably, step S101 specifically includes:

[0013] Acquire the noise time domain signal and vibration time domain signal of the machine equipment to be identified collected by the noise sensor and vibration sensor with set sampling rate;

[0014] Preprocessing the noise time domain signal and the vibration time domain signal of the machine equipment using a Butterworth filter with a set filter order and a frequency interception range, and converting the preprocessed noise time domain signal and the vibration time domain signal into a frequency spectrum using FFT;

[0015] Extract the frequency sequence and amplitude sequence of the spectrum.

[0016] Preferably, the sampling rates of the noise sensor and the vibration sensor are 48000 and 50000 respectively; the filter order is 34, and the frequency interception range is [0.1, 10000].

[0017] Preferably, step S102 specifically includes:

[0018] Calculate the length of the noise signal and the vibration signal of the machine equipment according to the time length and sampling rate of the noise time domain signal and the vibration time domain signal of the machine equipment; wherein, signal length = time length × sampling rate; the length of the amplitude sequence and the length of the frequency sequence are both half of the signal length;

[0019] The frequency range is obtained by subtracting the minimum frequency value from the maximum frequency value in the frequency sequence, and the moving window length is obtained according to the signal length and the frequency range; wherein the moving window length is obtained by rounding down the quotient of the signal length divided by the frequency range;

[0020] The moving window, the amplitude sequence, and the frequency sequence are respectively marked using an index sequence starting with 0; the end indexes of the moving window, the amplitude sequence, and the frequency sequence are respectively represented by the current moving window length minus 1, the current amplitude sequence length minus 1, and the current frequency sequence length minus 1;

[0021] Starting from the starting index 0 of the amplitude sequence, aligning the center point index of the moving window with the current index of the amplitude sequence, smoothing the amplitude sequence using a bidirectional moving average algorithm until the end index, and obtaining a basis sequence equal to the length of the amplitude sequence; wherein, if the length of the moving window is an even number, using a smaller index located at the center of the moving window as the center point index;

[0022] Subtract the base sequence from the amplitude sequence, perform subtraction in an index-aligned manner, and then use a ReLU activation function to act on the difference sequence obtained by subtracting the base sequence from the amplitude sequence, thereby obtaining a frequency peak sequence of the same length as the amplitude sequence; wherein ReLU(x)=max(0,x), and x represents an element in the difference sequence;

[0023] Using a triangular threshold algorithm on the amplitude sequence to obtain a peak point threshold, and using the peak point threshold to obtain a maximum value index of the frequency sequence in all the moving windows;

[0024] Using the moving window length, the maximum value indexes in all the moving windows are correspondingly restored to their indexes in the amplitude sequence, so as to serve as the peak point index of the spectrum;

[0025] The peak point frequency of the frequency spectrum is acquired using the frequency peak sequence and the peak point index.

[0026] Preferably, step S103 specifically includes:

[0027] Obtaining the peak point frequency of the spectrum, and treating each peak point frequency of the spectrum as a sample point, and arranging them into a data format suitable for DBSCAN algorithm processing;

[0028] The frequency of the peak points of the spectrum is clustered using the DBSCAN algorithm with preset parameters. The peak points of the spectrum are assigned corresponding category labels, and the noise points are marked separately. The preset parameters include the neighborhood radius and the minimum number of points. The neighborhood radius defines the neighborhood size of the sample point, and the minimum number of points determines the minimum number of neighbors required for a sample point to become a core point.

[0029] After removing the noise points, the spectrum peak point frequencies are divided into corresponding clusters according to the category labels, the center point frequencies of all clusters and their corresponding cluster radii are calculated, and the center point frequencies of all clusters and their corresponding cluster radii are saved as peak point templates.

[0030] Preferably, the neighborhood radius of the DBSCAN algorithm is at least larger than the frequency resolution of the spectrum.

[0031] Preferably, step S104 specifically includes:

[0032] Obtain the peak point frequency in the spectrum to be detected;

[0033] Calculating the distance between the peak point frequency of the spectrum to be detected and the center point frequencies of all clusters in the peak point frequency template, and determining whether the distance is less than the cluster radius corresponding to the center point frequency of any cluster;

[0034] If yes, then determine the next spectrum to be detected;

[0035] If not, further determining whether the peak point frequency of the spectrum data to be detected belongs to any frequency multiple sequence of the peak point frequency of the spectrum to be detected;

[0036] If yes, the current peak point frequency is used as the new peak point frequency;

[0037] If it does not belong to, determine the frequency of the next peak point.

[0038] Preferably, judging whether the peak point frequency of the spectrum data to be detected belongs to any frequency doubling sequence of the peak point frequency of the spectrum to be detected is specifically as follows:

[0039] sorting the peak point frequencies of the spectrum to be detected from small to large;

[0040] Based on a preset tolerance search range and arithmetic error tolerance, searching for all arithmetic sequences in the peak points of the spectrum to be detected;

[0041] The preset geometric error tolerance is recorded as error_degree, the arithmetic sequence is List, and assuming that the length of List is L, the index positions of all elements therein are recorded as 0, ..., L-1 respectively;

[0042] When the length of the arithmetic sequence is 2, if the inequality:

[0043] List[1] - List[0] <error_degree·List[0]

[0044] If it holds, then the arithmetic sequence is a frequency-doubling sequence;

[0045] When the length of the arithmetic sequence is greater than 2, the arithmetic sequence is traversed from index j=2 until j=L-1. If there is an index , so that the inequality

[0046] |List[j] - List[j - 1]- List[0]| <error_degree·List[0]·(j + 1)

[0047] If it holds, then the arithmetic sequence is a frequency-doubling sequence.

[0048] The embodiment of the present invention further provides a new peak point frequency positioning device based on the DBSCAN algorithm, which includes:

[0049] An extraction unit, used to obtain a noise time domain signal and a vibration time domain signal of a machine device, convert the noise time domain signal and the vibration time domain signal into corresponding frequency spectra by using FFT, and extract a frequency sequence and an amplitude sequence of the frequency spectra;

[0050] A peak point frequency acquisition unit, used for acquiring the peak point frequency in the spectrum using a plurality of pairs of frequency sequences and amplitude sequences of the spectrum;

[0051] A clustering unit, used to cluster the peak point frequencies using a DBSCAN algorithm, remove the noise peak point frequencies, record the center point frequencies of all the clusters and their corresponding clustering radii, and generate a peak point frequency template;

[0052] The judging unit is used to obtain the peak point frequency in the spectrum to be detected, and judge whether the peak point frequency in the spectrum to be detected is a newly added peak point frequency based on the center point frequencies of all clusters in the peak point frequency template and their corresponding cluster radius.

[0053] An embodiment of the present invention also provides a new peak point frequency positioning device based on the DBSCAN algorithm, which includes a memory and a processor, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement the new peak point frequency positioning method based on the DBSCAN algorithm as described above.

[0054] In summary, this embodiment generates a peak point frequency template based on the DBSCAN algorithm and the peak finding algorithm, and then performs frequency doubling analysis on the vibration time domain signal and noise time domain signal of the machine equipment in combination with the peak point frequency template, so as to more accurately identify and analyze the newly added peak point frequencies in the spectrum data set, revealing potential periodicity or regularity information, which is helpful for further data mining and decision support. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A schematic diagram of a flow chart of a method for locating a new peak point frequency based on a DBSCAN algorithm provided in the first embodiment of the present invention;

[0056] Figure 2 A schematic diagram of the structure of a newly added peak point frequency locating device based on the DBSCAN algorithm provided in the second embodiment of the present invention. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0058] refer to Figure 1 As shown, the first embodiment of the present invention discloses a method for locating a newly added peak point frequency based on the DBSCAN algorithm, which can be performed by a newly added peak point frequency locating device based on the DBSCAN algorithm (hereinafter referred to as a locating device), and in particular, by one or more processors in the locating device to implement the following method:

[0059] S101. Acquire a noise time domain signal and a vibration time domain signal of a machine device, convert the noise time domain signal and the vibration time domain signal into corresponding frequency spectra using FFT, and extract a frequency sequence and an amplitude sequence of the frequency spectra.

[0060] In this embodiment, the positioning device may be a computer, a server, a workstation, a gateway or other device with data processing capability, and the present invention does not make any specific limitation thereto.

[0061] In this embodiment, noise sensors and vibration sensors are first installed at appropriate locations of the machine equipment to be identified, and then, according to the current scene requirements, the sensor sampling rates of the noise sensors and vibration sensors are set to be compatible with the scene requirements. For example, the sampling rates of the noise sensor and the vibration sensor are set to 48000 and 50000 respectively, so as to collect the noise time domain signal and vibration time domain signal of the machine equipment.

[0062] Next, the noise time domain signal and the vibration time domain signal of the machine equipment are preprocessed using a Butterworth filter with a set filter order and a frequency cutoff range, and the noise time domain signal and the vibration time domain signal of the machine equipment are converted into a frequency spectrum using FFT.

[0063] Specifically, the filter order is 34, and the frequency cutoff range is [0.1, 10000], but is not limited thereto.

[0064] Among them, FFT is Fast Fourier Transform (FFT).

[0065] S102: Use several pairs of frequency sequences and amplitude sequences of the frequency spectrum to obtain peak point frequencies in the frequency spectrum.

[0066] In this embodiment, specifically:

[0067] First, the length of the noise signal and the vibration signal of the machine equipment is calculated according to the time length (unit: s) and sampling rate (unit: Hz) of the noise time domain signal and the vibration time domain signal of the machine equipment:

[0068] Signal length = time length × sampling rate

[0069] It is worth noting that the lengths of the amplitude sequence and the frequency sequence are both half of the signal length.

[0070] Then, the frequency range is obtained by subtracting the minimum frequency value from the maximum frequency value in the frequency sequence, and the moving window length is obtained by combining the signal length, wherein the moving window length is obtained by rounding down the quotient of the signal length divided by the frequency range, that is, (signal length ÷ frequency range);

[0071] Next, an index sequence starting with 0 is used to mark the moving window, the amplitude sequence, and the frequency sequence respectively. The end indexes of the moving window, the amplitude sequence, and the frequency sequence are correspondingly represented as the current moving window length minus 1, the current amplitude sequence length minus 1, and the current frequency sequence length minus 1.

[0072] Next, starting from the starting index 0 of the amplitude sequence, aligning the center point index of the moving window with the current index of the amplitude sequence, and smoothing the amplitude sequence using a bidirectional moving average algorithm until the end index, thereby obtaining a basis sequence equal to the length of the amplitude sequence, wherein if the length of the moving window is an even number, a smaller index located at the center of the moving window is used as the center point index;

[0073] Next, the amplitude sequence is subtracted from the basis sequence, and the difference is made in the index alignment manner. Then, the ReLU activation function is applied to the difference sequence obtained by subtracting the basis sequence from the amplitude sequence, thereby obtaining a frequency peak sequence with the same length as the amplitude sequence; wherein ReLU(x)=max(0,x), and x represents an element in the difference sequence;

[0074] Next, a triangular threshold algorithm is used on the amplitude sequence to obtain a peak point threshold.

[0075] Among them, according to the scene requirements, the peak point threshold size is adjusted by a preset weight coefficient; for example, the weight coefficient of the peak point threshold size can be adjusted to 3.

[0076] Next, using the peak point threshold, obtaining the maximum value index of the frequency peak sequence in all the moving windows;

[0077] Next, using the moving window length, the maximum value indexes in all the moving windows are correspondingly restored to their indexes in the amplitude sequence, and used as the peak point index of the spectrum;

[0078] Finally, the peak point frequency of the spectrum is obtained using the frequency sequence and the peak point index.

[0079] S103, clustering the peak point frequencies using the DBSCAN algorithm, removing the noise peak point frequencies, recording the center point frequencies of all the clusters and their corresponding cluster radii, and generating a peak point frequency template.

[0080] Specific:

[0081] First, the peak point frequency of the spectrum is obtained, and each peak point frequency of the spectrum is regarded as a sample point, and is sorted into a data format suitable for DBSCAN algorithm processing;

[0082] Then, the DBSCAN algorithm with preset parameters is used to cluster the spectrum peak point frequencies, the spectrum peak point frequencies will be assigned corresponding category labels, and the noise points (i.e., points that do not belong to any cluster) will be marked separately; wherein the preset parameters include the neighborhood radius and the minimum number of points; the neighborhood radius defines the neighborhood size of the sample point, and the minimum number of points determines the minimum number of neighbors required for a sample point to become a core point.

[0083] In particular, the neighborhood radius of the DBSCAN algorithm is at least larger than the frequency resolution of the spectrum (the frequency resolution is the inverse of the time length), and the minimum number of neighbors is set to 2.

[0084] Finally, after removing the noise points, the spectrum peak point frequencies are divided into corresponding clusters according to the category labels, the center point frequencies of all clusters and their corresponding cluster radii are calculated, and the center point frequencies of all clusters and their corresponding cluster radii are saved as peak point templates.

[0085] S104, obtaining the peak point frequency in the spectrum to be detected, and judging whether the peak point frequency in the spectrum to be detected is a newly added peak point frequency based on the center point frequencies of all clusters in the peak point frequency template and their corresponding cluster radius.

[0086] Specifically,

[0087] First, the peak point frequency in the spectrum to be detected is obtained in the manner as in step S102.

[0088] Then, the distance from the peak point frequency of the spectrum to be detected to the center point frequency of all clusters in the peak point frequency template is calculated, and it is determined whether the distance is less than the cluster radius corresponding to the center point frequency of any cluster;

[0089] If yes, then determine the next spectrum to be detected;

[0090] If not, it is further determined whether the peak point frequency of the spectrum data to be detected belongs to any frequency multiple sequence of the peak point frequency of the spectrum to be detected.

[0091] Among them, in the spectrum analysis, the frequency doubling analysis of the newly added peak point frequency is helpful to extract the potential periodicity or regularity information and further analyze and understand the characteristics of the peak point frequency. Specifically:

[0092] sorting the peak point frequencies of the spectrum to be detected from small to large;

[0093] Based on a preset tolerance search range and arithmetic error tolerance, searching for all arithmetic sequences in the peak points of the spectrum to be detected;

[0094] The preset geometric error tolerance is recorded as error_degree, the arithmetic sequence is List, and assuming that the length of List is L, the index positions of all elements therein are recorded as 0, ..., L-1 respectively;

[0095] When the length of the arithmetic sequence is 2, if the inequality:

[0096] List[1] - List[0] <error_degree·List[0]

[0097] If it holds, then the arithmetic sequence is a frequency-doubling sequence;

[0098] When the length of the arithmetic sequence is greater than 2, the arithmetic sequence is traversed from index j=2 until j=L-1. If there is an index , so that the inequality

[0099] |List[j] - List[j - 1]- List[0]| <error_degree·List[0]·(j + 1)

[0100] If it holds, then the arithmetic sequence is a frequency-doubling sequence;

[0101] Among them, in this embodiment, according to the current scenario requirements, the preset tolerance search range is [0, 1000], indicating that the tolerance of the arithmetic sequence in the peak point frequency of the spectrum to be detected is greater than 0 and less than 1000; the first-order discrete difference sequence of the arithmetic sequence is calculated, and the arithmetic error tolerance is 10, indicating that the difference between any two points in the first-order discrete difference sequence is less than 10; the preset geometric error tolerance error_degree is 0.01.

[0102] If yes, the current peak point frequency is used as the new peak point frequency;

[0103] If it does not belong to, determine the frequency of the next peak point.

[0104] In summary, this embodiment generates a peak point frequency template based on the DBSCAN algorithm and the peak finding algorithm, and then performs frequency doubling analysis on the vibration time domain signal and noise time domain signal of the machine equipment in combination with the peak point frequency template, so as to more accurately identify and analyze the newly added peak point frequencies in the spectrum data set, revealing potential periodicity or regularity information, which is helpful for further data mining and decision support.

[0105] See also Figure 2 The second embodiment of the present invention further provides a new peak point frequency positioning device based on the DBSCAN algorithm, comprising:

[0106] The extraction unit 210 is used to obtain the noise time domain signal and the vibration time domain signal of the machine equipment, convert the noise time domain signal and the vibration time domain signal into corresponding frequency spectra by using FFT, and extract the frequency sequence and amplitude sequence of the frequency spectra;

[0107] A peak point frequency acquisition unit 220, configured to acquire a peak point frequency in the spectrum using a plurality of pairs of frequency sequences and amplitude sequences of the spectrum;

[0108] The clustering unit 230 is used to cluster the peak point frequencies using the DBSCAN algorithm, remove the noise peak point frequencies, record the center point frequencies of all the clusters and their corresponding clustering radii, and generate a peak point frequency template;

[0109] The judgment unit 240 is used to obtain the peak point frequency in the spectrum to be detected, and judge whether the peak point frequency in the spectrum to be detected is a newly added peak point frequency based on the center point frequencies of all clusters in the peak point frequency template and their corresponding cluster radii.

[0110] The third embodiment of the present invention also provides a new peak point frequency positioning device based on the DBSCAN algorithm, which includes a memory and a processor, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement the new peak point frequency positioning method based on the DBSCAN algorithm as described above.

[0111] The fourth embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program can be executed by a processor of a device where the computer-readable storage medium is located to implement the newly added peak point frequency positioning method based on the DBSCAN algorithm as described above.

[0112] Exemplarily, the above-mentioned devices and process steps can be implemented by a computer program. The computer program can be divided into one or more units. The one or more units are stored in the memory and executed by the processor to complete the present invention.

[0113] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0114] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the present invention by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0115] Wherein, if the electronic device or printer integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0116] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0117] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A new peak point frequency location method based on DBSCAN algorithm, characterized in that: include: S101, obtaining a noise time domain signal and a vibration time domain signal of a machine device, converting the noise time domain signal and the vibration time domain signal into corresponding frequency spectra using FFT, and extracting a frequency sequence and an amplitude sequence of the frequency spectra; S102, using several pairs of frequency sequences and amplitude sequences of the spectrum to obtain the peak point frequency in the spectrum; specifically: calculating the noise signal length and vibration signal length of the machine equipment according to the time length and sampling rate of the noise time domain signal and vibration time domain signal of the machine equipment; wherein, signal length = time length × sampling rate; the length of the amplitude sequence and the frequency sequence are both half of the signal length; using the maximum frequency value in the frequency sequence to subtract the minimum frequency value to obtain the frequency range, and obtaining the moving window length according to the signal length and the frequency range; wherein the moving window length is obtained by rounding down the quotient of the signal length divided by the frequency range; using an index sequence with 0 as the starting index to mark the moving window, the amplitude sequence, and the frequency sequence respectively; the end indexes of the moving window, the amplitude sequence, and the frequency sequence are correspondingly represented as the current moving window length minus 1, the current amplitude sequence length minus 1, and the current frequency sequence length minus 1; starting from the starting index 0 of the amplitude sequence, the center point index of the moving window is added to the amplitude sequence The current index of the amplitude sequence is aligned, and the amplitude sequence is smoothed by a bidirectional moving average algorithm until the termination index, so as to obtain a base sequence of the same length as the amplitude sequence; wherein, if the moving window length is an even number, a smaller index located at the center of the moving window is used as the center point index; the base sequence is subtracted from the amplitude sequence, and the difference is made in the manner of index alignment, and then the ReLU activation function is applied to the difference sequence obtained by subtracting the base sequence from the amplitude sequence, so as to obtain a frequency peak sequence of the same length as the amplitude sequence; wherein, ReLU(x)=max(0,x), and x represents an element in the difference sequence; a triangular threshold algorithm is used for the amplitude sequence to obtain a peak point threshold, and the peak point threshold is used to obtain the maximum value index of the frequency sequence in all the moving windows; the moving window length is used to restore the maximum value index in all the moving windows to its index in the amplitude sequence correspondingly, so as to serve as the peak point index of the spectrum; the peak point frequency of the spectrum is obtained by using the frequency peak sequence and the peak point index; S103, clustering the peak point frequencies using a DBSCAN algorithm, removing the noise peak point frequencies, recording the center point frequencies of all the clusters and their corresponding clustering radii, and generating a peak point frequency template; S104, obtaining the peak point frequency in the spectrum to be detected, and judging whether the peak point frequency in the spectrum to be detected is a newly added peak point frequency based on the center point frequencies of all clusters in the peak point frequency template and their corresponding cluster radius.

2. The method for locating the newly added peak point frequency based on the DBSCAN algorithm according to claim 1, characterized in that: Step S101 specifically includes: Acquire the noise time domain signal and vibration time domain signal of the machine equipment to be identified collected by the noise sensor and vibration sensor with set sampling rate; Preprocessing the noise time domain signal and the vibration time domain signal of the machine equipment using a Butterworth filter with a set filter order and a frequency interception range, and converting the preprocessed noise time domain signal and the vibration time domain signal into a frequency spectrum using FFT; Extract the frequency sequence and amplitude sequence of the spectrum.

3. The method for locating the newly added peak point frequency based on the DBSCAN algorithm according to claim 2, characterized in that: The sampling rates of the noise sensor and the vibration sensor are 48000 and 50000 respectively; the filter order is 34, and the frequency interception range is [0.1, 10000].

4. The method for locating the newly added peak point frequency based on the DBSCAN algorithm according to claim 1, characterized in that: Step S103 specifically includes: Obtaining the peak point frequency of the spectrum, and treating each peak point frequency of the spectrum as a sample point, and arranging them into a data format suitable for DBSCAN algorithm processing; The frequency of the peak points of the spectrum is clustered using the DBSCAN algorithm with preset parameters. The peak points of the spectrum are assigned corresponding category labels, and the noise points are marked separately. The preset parameters include the neighborhood radius and the minimum number of points. The neighborhood radius defines the neighborhood size of the sample point, and the minimum number of points determines the minimum number of neighbors required for a sample point to become a core point. After removing the noise points, the spectrum peak point frequencies are divided into corresponding clusters according to the category labels, the center point frequencies of all clusters and their corresponding cluster radii are calculated, and the center point frequencies of all clusters and their corresponding cluster radii are saved as peak point templates.

5. The method for locating the newly added peak point frequency based on the DBSCAN algorithm according to claim 1, characterized in that: The neighborhood radius of the DBSCAN algorithm is at least larger than the frequency resolution of the spectrum.

6. The method for locating the newly added peak point frequency based on the DBSCAN algorithm according to claim 1, characterized in that: Step S104 specifically includes: Obtain the peak point frequency in the spectrum to be detected; Calculating the distance between the peak point frequency of the spectrum to be detected and the center point frequencies of all clusters in the peak point frequency template, and determining whether the distance is less than the cluster radius corresponding to the center point frequency of any cluster; If yes, determine the next spectrum to be detected; If not, further determining whether the peak point frequency of the spectrum data to be detected belongs to any frequency multiple sequence of the peak point frequency of the spectrum to be detected; If yes, the current peak point frequency is used as the new peak point frequency; If it does not belong to, determine the frequency of the next peak point.

7. The method for locating the newly added peak point frequency based on the DBSCAN algorithm according to claim 6, characterized in that: Determining whether the peak point frequency of the spectrum data to be detected belongs to any frequency doubling sequence of the peak point frequency of the spectrum to be detected is specifically as follows: sorting the peak point frequencies of the spectrum to be detected from small to large; Based on a preset tolerance search range and arithmetic error tolerance, searching for all arithmetic sequences in the peak points of the spectrum to be detected; The preset geometric error tolerance is recorded as error_degree, the arithmetic sequence is List, and assuming that the length of List is L, the index positions of all elements therein are recorded as 0, ..., L-1 respectively; When the length of the arithmetic sequence is 2, if the inequality: List[1]- List[0] < error_degree·List[0] If it holds, then the arithmetic sequence is a frequency-doubling sequence; When the length of the arithmetic sequence is greater than 2, the arithmetic sequence is traversed from index j=2 until j=L-1. If there is an index , so that the inequality |List[j] - List[j - 1] - List[0]| < error_degree·List[0]·(j + 1) If it holds, then the arithmetic sequence is a frequency-doubling sequence.

8. A new peak point frequency positioning device based on DBSCAN algorithm, characterized in that: include: An extraction unit, used to obtain a noise time domain signal and a vibration time domain signal of a machine device, convert the noise time domain signal and the vibration time domain signal into corresponding frequency spectra by using FFT, and extract a frequency sequence and an amplitude sequence of the frequency spectra; A peak frequency acquisition unit is used to obtain the peak frequency in the spectrum using several pairs of frequency sequences and amplitude sequences of the spectrum; wherein the peak frequency acquisition unit is specifically used to: calculate the noise signal length and vibration signal length of the machine equipment according to the time length and sampling rate of the noise time domain signal and vibration time domain signal of the machine equipment; wherein signal length = time length × sampling rate; the length of the amplitude sequence and the length of the frequency sequence are both half of the signal length; the frequency range is obtained by subtracting the minimum frequency value from the maximum frequency value in the frequency sequence, and the moving window length is obtained according to the signal length and the frequency range; wherein the moving window length is obtained by rounding down the quotient of the signal length divided by the frequency range; the moving window, the amplitude sequence, and the frequency sequence are respectively marked with an index sequence with 0 as the starting index; the termination indexes of the moving window, the amplitude sequence, and the frequency sequence are correspondingly represented as the current moving window length minus 1, the current amplitude sequence length minus 1, and the current frequency sequence length minus 1; starting from the starting index 0 of the amplitude sequence, the center point of the moving window is The index is aligned with the current index of the amplitude sequence, and the amplitude sequence is smoothed using a bidirectional moving average algorithm until the termination index, so as to obtain a base sequence of the same length as the amplitude sequence; wherein, if the moving window length is an even number, a smaller index located at the center of the moving window is used as the center point index; the base sequence is subtracted from the amplitude sequence, and the difference is made in the manner of index alignment, and then the ReLU activation function is applied to the difference sequence obtained by subtracting the base sequence from the amplitude sequence, so as to obtain a frequency peak sequence of the same length as the amplitude sequence; wherein, ReLU(x)=max(0,x), and x represents an element in the difference sequence; a triangular threshold algorithm is used for the amplitude sequence to obtain a peak point threshold, and the peak point threshold is used to obtain the maximum value index of the frequency sequence in all the moving windows; the moving window length is used to restore the maximum value index in all the moving windows to its index in the amplitude sequence, so as to serve as the peak point index of the spectrum; the peak point frequency of the spectrum is obtained using the frequency peak sequence and the peak point index; A clustering unit, used to cluster the peak point frequencies using a DBSCAN algorithm, remove the noise peak point frequencies, record the center point frequencies of all the clusters and their corresponding clustering radii, and generate a peak point frequency template; The judging unit is used to obtain the peak point frequency in the spectrum to be detected, and judge whether the peak point frequency in the spectrum to be detected is a newly added peak point frequency based on the center point frequencies of all clusters in the peak point frequency template and their corresponding cluster radius.

9. A new peak point frequency positioning device based on DBSCAN algorithm, characterized in that: It includes a memory and a processor, wherein the memory stores a computer program, and the computer program can be executed by the processor to implement the newly added peak point frequency positioning method based on the DBSCAN algorithm as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • False mode removing method based on density clustering

    CN107609291A

  • Noise evaluation method and device thereof

    CN112562714A

  • System and method for automatic detection of bearing defects

    CN116257773A

  • Broadband voltage signal measuring method and system

    CN117434337A

  • Intelligent fault diagnosis and self-learning method and system for speed reducer

    CN117609869A