Intelligent detection method of oil quality for smart IoT fan based on optical analysis
Through EMD decomposition and adaptive wavelet threshold adjustment technology, the problem of complex noise distribution in fan oil spectral data is solved, the denoising effect and detection accuracy are improved, and the reliability of fan oil quality detection is ensured.
Patent Information
- Application Number
- CN202410687913.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-05-30
AI Technical Summary
When denoising spectral data of fan oil products using the existing technology, the noise does not entirely exist in the high-frequency components, resulting in poor denoising effect, and conventional methods cannot effectively handle the noise interference in the complex spectral data of fan oil products.
The EMD decomposition algorithm is used to decompose the fan oil spectrum data. By calculating the period size and complexity factor of the IMF component, the adaptive wavelet threshold is determined, and the wavelet threshold is adjusted by combining the similarity factor and the abnormal factor to perform adaptive denoising.
It improves noise sensitivity and denoising effect, optimizes the accuracy and reliability of fan oil quality detection results, and ensures the integrity of the original signal information.
Smart Images

Figure CN118260556B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of spectral data processing, and in particular to an intelligent detection method for oil quality of smart IoT fan based on optical analysis. Background Art
[0002] Fan is a customary abbreviation for gas compression and gas delivery machinery. It can be used for ventilation, dust removal and cooling in factories, mines, tunnels, cooling towers, vehicles, ships and buildings. In the modern industrial field, fans are widely used as mechanical equipment. Their stable and reliable operation is crucial to the entire production process, and the lubrication system of the fan is a key component to ensure its normal operation. In the lubrication system, oil (such as lubricating oil) is the core medium, and its quality directly affects the performance and service life of the fan. Therefore, real-time and effective monitoring of the quality of fan oil has become a necessary means to improve the working efficiency of the fan and prevent failures.
[0003] Conventional fan oil quality detection usually uses existing spectral curve matching algorithms such as Pearson correlation coefficient calculation to collect fan oil spectral data and determine the similarity with the existing fan oil spectral curve under standard quality, thereby judging the quality of the current fan oil. However, due to the limitations of the acquisition equipment and environmental interference, the fan oil spectral data obtained will inevitably have noise interference, so it is often necessary to perform pre-noise removal processing to obtain more accurate oil quality detection results.
[0004] At present, the denoising of fan oil spectral data is usually carried out by EMD decomposition plus wavelet threshold transformation. However, the conventional method is usually to directly determine that the noise is in the high-frequency component after performing EMD decomposition on the spectral data, and manually set the wavelet threshold. However, in actual scenarios, since the components in fan oil are not a single type, the spectral data obtained is often more complex, and when EMD decomposition is performed, it is also divided based on the concept of envelope lines. Therefore, the noise does not exist entirely in the high-frequency component, but is randomly distributed in multiple components. Therefore, the conventional method of denoising fan oil spectral data is often ineffective.
[0005] Based on this, it is necessary to study a more scientific fan oil quality detection method to optimize the denoising effect of fan oil spectral data, thereby improving the accuracy and reliability of fan oil quality detection results. Summary of the invention
[0006] In order to solve the above technical problems, the purpose of the present invention is to provide an intelligent detection method for oil quality of smart IoT fan based on optical analysis. The technical solution adopted is as follows:
[0007] The present invention provides an intelligent detection method for oil quality of a smart IoT fan based on optical analysis, the method comprising:
[0008] Through the infrared spectrum sensor, the spectrum data of the fan oil is collected for multiple times continuously to obtain multiple oil quality spectrum data;
[0009] The EMD decomposition algorithm is used to decompose the oil quality spectrum data collected each time to obtain multiple corresponding IMF components;
[0010] Based on the period size corresponding to each IMF component, determining an equally divided window of the original signal and the component signal in each of the oil quality spectrum data;
[0011] Calculating the complexity factor of the original signal in each window of the oil quality spectrum data;
[0012] Calculating the similarity between the target oil quality spectrum data and other oil quality spectrum data in each IMF component based on the complex factor, and obtaining a corresponding similarity factor based on the similarity;
[0013] Using the similarity factor as a weight, combined with the complex factor difference between each window in the target oil quality spectrum data and the corresponding window in other oil quality spectrum data, a preliminary abnormal factor corresponding to each window in the target oil quality spectrum data is obtained;
[0014] Based on the preliminary abnormal factor and the difference between the original signal in the target oil quality spectrum data and other oil quality spectrum data in the same spectral band, calculate the final abnormal factor corresponding to each window in the target oil quality spectrum data;
[0015] According to the similarity factor corresponding to each IMF component in the target oil quality spectrum data and the final abnormal factor corresponding to each window, the wavelet threshold adjustment coefficient of each IMF component in the target oil quality spectrum data in each window is calculated;
[0016] Determine an adaptive wavelet threshold value of each IMF component in each window of the target oil quality spectrum data based on the wavelet threshold adjustment coefficient, and perform wavelet threshold denoising on each window of each IMF component in the target oil quality spectrum data according to the adaptive wavelet threshold value to obtain denoised oil quality spectrum data;
[0017] The denoised oil quality spectrum data is matched with the fan oil spectrum data under standard quality to obtain the fan oil quality detection result.
[0018] In some embodiments, determining the equally divided windows of the original signal and the component signal in each of the oil quality spectrum data based on the period size corresponding to each IMF component includes:
[0019] The period size of each IMF component is obtained through Hilbert transform;
[0020] Count all the period sizes corresponding to multiple IMF components in each oil quality spectrum data, and obtain the least common multiple corresponding to all the period sizes;
[0021] A first average value is calculated for the least common multiple corresponding to all the oil quality spectrum data, and the first average value is used as an equally divided window of the original signal and the component signal in each oil quality spectrum data.
[0022] In some embodiments, the calculating of the complexity factor of the original signal in each window of the oil quality spectrum data includes:
[0023] The standard deviation of the signal in each window is obtained, and the standard deviation is normalized to obtain the complexity factor of the original signal in each window in the oil quality spectrum data.
[0024] In some embodiments, the calculating the similarity between the target oil quality spectrum data and other oil quality spectrum data in each IMF component based on the complexity factor, and obtaining the corresponding similarity factor based on the similarity, includes:
[0025] Calculate the DTW distance between each group of corresponding data points in the corresponding IMF components of the target oil quality spectrum data and other oil quality spectrum data;
[0026] Obtaining a first parameter according to the DTW distance and a complexity factor of the window to which the data point belongs;
[0027] Calculate the sum of the first parameters corresponding to the multiple groups of data points contained in each of the IMF components, and take the reciprocal to obtain the similarity between the target oil quality spectrum data and other oil quality spectrum data in each IMF component;
[0028] The mean of the similarity between the target oil quality spectrum data and other oil quality spectrum data in the corresponding IMF components is calculated to obtain the similarity factor corresponding to each IMF component in the target oil quality spectrum data.
[0029] In some embodiments, the similarity factor is used as a weight, and the complex factor difference between each window in the target oil quality spectrum data and the corresponding window in other oil quality spectrum data is combined to obtain the preliminary abnormality factor corresponding to each window in the target oil quality spectrum data, including:
[0030] Get the complex factor corresponding to each window under each IMF component, and get the complex factor sequence corresponding to each window according to the component order;
[0031] According to the complex factor sequence corresponding to the target window in the target oil quality spectral data and the complex factor sequence corresponding to the reference window corresponding to the target window in other oil quality spectral data, the complex factor difference between each window of the target oil quality spectral data and other oil quality spectral data under each IMF component is obtained;
[0032] Obtaining a second parameter based on the difference in complex factors of the target window under the target IMF component relative to the target reference window, and the similarity factor corresponding to the target oil quality spectrum data and the oil quality spectrum data belonging to the target reference window under the target IMF component;
[0033] Calculate the sum of the second parameters corresponding to all IMF components to obtain the third parameter;
[0034] The sum of the third parameters corresponding to all other oil quality spectrum data is calculated, and the average value is obtained to obtain the preliminary abnormality factor corresponding to the target window.
[0035] In some embodiments, the second parameter is obtained based on the difference in complex factors of the target window under the target IMF component relative to the target reference window, and the similarity factor corresponding to the target oil quality spectrum data and the oil quality spectrum data belonging to the target reference window under the target IMF component, including:
[0036] The sum of the similarity factors corresponding to the target oil quality spectral data and the oil quality spectral data of the target reference window in the target IMF component is used as a weight, and is multiplied by the difference in complex factors of the target window relative to the target reference window under the target IMF component to obtain the second parameter.
[0037] In some embodiments, the calculation of the final abnormality factor corresponding to each window in the target oil quality spectral data based on the preliminary abnormality factor and the difference between the target oil quality spectral data and the original signal in other oil quality spectral data in the same spectral band includes:
[0038] Normalizing the preliminary anomaly factor corresponding to the target window to obtain a first normalized result, and normalizing the preliminary anomaly factor corresponding to the target reference window to obtain a second normalized result;
[0039] Based on the second normalization result, the difference between the corresponding spectral signal points in the target window and the target reference window, the average of the differences between all spectral signal points in the target window and the target reference window, and the difference between the corresponding spectral signal points in the target window and the target reference window before and after fitting, obtain a fourth parameter corresponding to each spectral signal point in the target window;
[0040] Calculating the average value of the fourth parameter corresponding to all spectral signal points in the target window, and performing arithmetic square root calculation to obtain a fifth parameter;
[0041] The average value of the fifth parameter corresponding to all other oil quality spectrum data is calculated and multiplied by the first normalization result to obtain a final abnormality factor corresponding to the target window.
[0042] In some embodiments, the fourth parameter corresponding to each spectral signal point in the target window is obtained based on the second normalization result, the difference between the corresponding spectral signal points in the target window and the target reference window, the average of the difference between all spectral signal points in the target window and the target reference window, and the difference between the corresponding spectral signal points in the target window and the target reference window before and after fitting, including:
[0043] Subtract the mean of the differences between all the spectral signal points in the target window and the target reference window from the difference between the corresponding target spectral signal points in the target window and the target reference window to obtain a first sub-parameter;
[0044] The difference between the target spectral signal point in the target window before and after fitting is subtracted from the difference between the target spectral signal point in the target window before and after fitting and the difference between the corresponding spectral signal point in the target reference window before and after fitting is normalized to obtain a second sub-parameter;
[0045] Subtracting the second normalization result from a preset maximum normalization value to obtain a third sub-parameter;
[0046] The first sub-parameter, the second sub-parameter and the third sub-parameter are multiplied to obtain a fourth parameter corresponding to the target spectral signal point.
[0047] In some embodiments, the wavelet threshold adjustment coefficient of each IMF component in the target oil quality spectral data in each window is calculated according to the similarity factor corresponding to each IMF component in the target oil quality spectral data and the final abnormality factor corresponding to each window, including:
[0048] The final abnormal factor corresponding to the target window is normalized to obtain the third normalization result;
[0049] Normalizing the similarity factor corresponding to the target IMF component to obtain a fourth normalized result;
[0050] The third normalization result is multiplied by the fourth normalization result to obtain a wavelet threshold adjustment coefficient of the target IMF component within the target window.
[0051] In some embodiments, the step of determining the adaptive wavelet threshold of each IMF component in each window of the target oil quality spectrum data based on the wavelet threshold adjustment coefficient includes:
[0052] The adaptive wavelet threshold is obtained by multiplying the wavelet threshold adjustment coefficient with a first preset parameter and adding a second preset parameter.
[0053] The present invention has the following beneficial effects:
[0054] In the intelligent detection method for smart IoT fan oil quality based on optical analysis provided in some embodiments of the present specification, the wavelet threshold adjustment coefficient is calculated by the similarity factor corresponding to each IMF component in the target oil quality spectral data and the final abnormality factor corresponding to each window, and the adaptive wavelet threshold is determined based on the wavelet threshold adjustment coefficient to perform wavelet threshold denoising on each window of each IMF component in the target oil quality spectral data. This can greatly improve the sensitivity to noise, optimize the denoising result, and ensure the integrity of the original signal information. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. 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 paying creative work.
[0056] Figure 1 An exemplary flow chart of an intelligent detection method for oil quality of smart IoT fan based on optical analysis provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0057] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation method, structure, characteristics and effects of a smart IoT fan oil quality intelligent detection method based on optical analysis proposed by the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0058] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0059] The specific scheme of the intelligent detection method of oil quality of smart IoT fan based on optical analysis provided by the present invention is described in detail below in conjunction with the accompanying drawings.
[0060] See also Figure 1 , which shows an exemplary flow chart 100 of an intelligent detection method for oil quality of smart IoT fan based on optical analysis provided by an embodiment of the present invention.
[0061] S110, using an infrared spectrum sensor, collecting spectrum data of the fan oil for multiple times continuously to obtain a plurality of spectrum data of oil quality.
[0062] The fan oil quality spectrum data can be collected by an infrared spectrum sensor. Since the fan oil quality spectrum data contains various components and the spectrum curve itself is relatively complex, it is often inappropriate to distinguish between noise and actual spectrum data based solely on local fluctuations. In some embodiments of the present application, considering the randomness of noise, multiple oil quality spectrum data corresponding to the oil to be tested are obtained by continuous spectrum data collection, so as to compare the fluctuation differences under the same local spectrum data as the basis for judging the existence of noise.
[0063] S120, using the EMD decomposition algorithm to decompose the oil quality spectrum data collected each time, to obtain a plurality of corresponding IMF components.
[0064] After being interfered by noise, each collected oil quality spectrum data will produce the problem of modal aliasing, which will cause each component to be interfered with to varying degrees. At this time, the spectral difference based entirely on the local area may not necessarily be able to fully characterize whether it is interfered with by noise. To address this problem, in some embodiments of the present application, the EMD (Empirical Mode Decomposition) decomposition algorithm can be used to decompose the oil quality spectrum data collected each time, and obtain multiple corresponding IMF (Intrinsic Mode Functions) components. It should be noted that the IMF components are the signal components of each layer obtained after the original signal in the oil quality spectrum data is decomposed by EMD. There may be differences between the IMF components obtained by the EMD decomposition algorithm. In the subsequent process, further analysis can be performed based on these differences, so as to analyze the differences caused by noise interference to the components of the oil quality spectrum data at each local position and the original signal.
[0065] The specific process of obtaining IMF components using the EMD decomposition algorithm can be regarded as the prior art and will not be discussed in detail in this specification.
[0066] S130, determining an equally divided window of the original signal and the component signal in each of the oil quality spectrum data based on the period size corresponding to each IMF component.
[0067] In some embodiments of the present application, the period size corresponding to each IMF component can be obtained, and then the equally divided windows of the original signal and the component signal in each oil quality spectrum data can be determined based on this. For example, in some embodiments, the period size of each IMF component can be obtained by Hilbert transform; then all the period sizes corresponding to multiple IMF components in each oil quality spectrum data are counted, and the least common multiple corresponding to all the period sizes is obtained; finally, the first average value of the least common multiple corresponding to all oil quality spectrum data is calculated, and the first average value is used as the equally divided windows of the original signal and the component signal in each oil quality spectrum data. The aforementioned Hilbert transform can be regarded as a well-known technology, and it will not be described in detail in this specification.
[0068] Specifically, assuming that the total number of the aforementioned multiple oil quality spectral data is , select the first The oil quality spectrum data is used as the target oil quality spectrum data (in this embodiment of the specification, the target oil quality spectrum data can be any one of the oil quality spectrum data), then for the The oil quality spectrum data can be obtained by Hilbert transforming the period of each IMF component signal, and then the period of the first Oil quality spectrum data All the period sizes of the IMF components are obtained, and the least common multiple of all the period sizes is obtained. Finally, The first average value L is obtained by averaging the least common multiples of all period sizes obtained for each oil quality spectrum data, and the first average value L is used as an equally divided window of the original signal and the component signal (i.e., the aforementioned IMF component) in each oil quality spectrum data.
[0069] It should be pointed out that in the embodiment of the present application, by using the aforementioned first average value L as an equally divided window of the original signal and the component signal in each oil quality spectrum data, the variables used in the subsequent process for local position comparison between different oil quality spectrum data can be made the same, thereby ensuring the accuracy of the analysis results.
[0070] S140, calculating the complexity factor of the original signal in each window of the oil quality spectrum data.
[0071] After obtaining the aforementioned first average value L, the original signal and the component signal may be divided based on the first average value L to obtain a plurality of windows.
[0072] Furthermore, in some embodiments of the present application, the standard deviation of the signal in each window can be obtained, and the standard deviation can be normalized (for example, using linear normalization) to obtain the complexity factor of the original signal in each window in the oil quality spectrum data. In some embodiments, each IMF component in the window can be processed to obtain the complexity factor corresponding to each IMF component. In this specification, the complexity factor corresponding to each IMF component can be used to describe the contribution rate of each IMF component to the fluctuation of the original signal. In other words, the complexity factor can be used to characterize the role and importance of the IMF component in the original signal.
[0073] S150, calculating the similarity between the target oil quality spectrum data and other oil quality spectrum data in each IMF component based on the complex factor, and obtaining a corresponding similarity factor based on the similarity.
[0074] After obtaining the complex factors in each window through the above steps, the similarity between the target oil quality spectrum data and other oil quality spectrum data in each IMF component can be calculated based on the complex factors, and the corresponding similarity factor can be obtained based on the similarity. The calculation process of the similarity between the target oil quality spectrum data and other oil quality spectrum data in each IMF component can be expressed as follows:
[0075]
[0076] in Indicates The oil quality spectrum data (i.e. the target oil quality spectrum data) and the The oil quality spectrum data is in The similarity of the IMF components. Indicates Oil quality spectral data and The oil quality spectrum data is in Among the IMF components, the corresponding The DTW (Dynamic TimeWarping) distance between group data points, Represents the total number of groups of data points that correspond to each other. Indicates Oil quality spectral data and The oil quality spectrum data is in Among the IMF components, the corresponding The complexity factor of the window to which each group of data points belongs. Respectively represent Oil quality spectral data and The first window.
[0077] In other words, in some embodiments of the present application, the DTW distance ( ); Then, according to the DTW distance and the complexity factor of the window to which the data point belongs ( ), to obtain the first parameter. In some embodiments, the first parameter can be expressed as Specifically, in some embodiments of the present application, the mean of the complex factors of the window to which each group of corresponding data points belongs in the corresponding IMF components of the target oil quality spectrum data and other oil quality spectrum data can be calculated ( ), and multiply it by the DTW distance between the data points in this group ( ), get the first parameter corresponding to each set of data points.
[0078] Furthermore, the sum of the first parameters corresponding to multiple groups of data points (P groups in total) contained in each IMF component can be calculated ( ), and take the reciprocal to obtain the similarity between the target oil quality spectrum data and other oil quality spectrum data in each IMF component ( ).
[0079] It is understandable that the aforementioned similarity The larger the value, the Oil quality spectral data and The oil quality spectrum data is in In some embodiments of the present application, when the accumulated DTW distance value at the denominator is smaller and closer to 1, and when the complexity factor is higher, it can be considered that the window may be seriously affected by noise. At this time, even if the DTW distance between it and the corresponding data point is small and similar, it should be constrained by a larger weight coefficient.
[0080] Furthermore, the mean of the similarity between the target oil quality spectrum data and other oil quality spectrum data in the corresponding IMF components can be calculated to obtain the similarity factor corresponding to each IMF component in the target oil quality spectrum data: Specifically, the The oil quality spectrum data and the rest The oil quality spectrum data is in The mean of the similarities of the IMF components is taken as the The oil quality spectrum data is in Similarity factors corresponding to IMF components .
[0081] It can be understood that the higher the similarity factor, the The first The less the IMF component signal is affected by noise, the higher the corresponding weight will be when the IMF component participates in the local difference analysis of other components in the subsequent process.
[0082] S160, using the similarity factor as a weight, combining the complex factor differences between each window in the target oil quality spectral data and the corresponding windows in other oil quality spectral data, to obtain a preliminary abnormality factor corresponding to each window in the target oil quality spectral data.
[0083] After obtaining the similarity factor corresponding to each IMF component in the target oil quality spectral data, the similarity factor can be used as a weight, combined with the complex factor difference between each window in the target oil quality spectral data and the corresponding window in other oil quality spectral data, to obtain the preliminary abnormal factor corresponding to each window in the target oil quality spectral data.
[0084] In some embodiments, The first of the oil quality spectrum data (i.e., the target oil quality spectrum data) The preliminary anomaly factor corresponding to a window can be calculated as follows:
[0085]
[0086] in, Indicates The oil quality spectrum data The preliminary anomaly factor corresponding to the window. Respectively represent Oil quality spectral data and The oil quality spectrum data The window in Complex factors under the IMF components. It means the Oil quality spectral data and The oil quality spectrum data The similarity factor corresponding to each IMF component. represents the total number of IMF components, Represents the total number of oil quality spectral data.
[0087] Specifically, in some embodiments, the complex factor corresponding to each window under each IMF component can be obtained ( ), and obtain the complex factor sequence corresponding to each window in component order , By repeating the above operation, you can get Oil quality spectral data and The complex factor sequence of oil quality spectrum data in each window.
[0088] Further, the target window (e.g. The oil quality spectrum data windows), and the reference windows corresponding to the target windows in other oil quality spectral data (e.g. The oil quality spectrum data The complex factor sequence corresponding to each window of the target oil quality spectrum data and other oil quality spectrum data is obtained to obtain the complex factor difference under each IMF component.
[0089] Then, based on the target window in the target IMF component (e.g. The complex factor difference ( ), as well as the target oil quality spectrum data and the oil quality spectrum data belonging to the target reference window (i.e. the aforementioned The similarity factor ( ), and get the second parameter ( Specifically, in the embodiment of the present application, the sum of the similarity factors corresponding to the target IMF component of the target oil quality spectrum data and the oil quality spectrum data belonging to the target reference window can be ( ) as the weight and multiplied by the difference in the complex factor of the target window relative to the target reference window under the target IMF component ( ), to obtain the second parameter. In some embodiments, the sum of the similarity factors of the target oil quality spectrum data and the oil quality spectrum data of the target reference window corresponding to the target IMF component can also be multiplied by a preset coefficient to obtain a corresponding weight, and then multiplied by the complex factor difference ( ), the second parameter is obtained. As an example only, in some embodiments of the present application, the preset coefficient may be 0.5, in other words, the average value of the two similarity factors may be used as the weight.
[0090] Furthermore, by calculating the sum of the second parameters corresponding to all IMF components, the third parameter can be obtained ( Finally, calculate the sum of the third parameters corresponding to all other oil quality spectrum data and find the average value ( ), the preliminary abnormality factor corresponding to the target window can be obtained .
[0091] It should be noted that, when noise interference is not considered, although the components in the oil quality spectrum data are complex, fixed components correspond to fixed spectral features, so the corresponding features of the multiple components that make up the original spectral signal should also be similar one by one. It can be seen that the features of the complex factor sequences of multiple windows constructed in a fixed order of components should be similar. If there is a large difference between a certain window and the corresponding window in other oil quality spectrum data, it may mean that the original signal corresponding to the window itself has a large noise interference.
[0092] In some embodiments, all complex factors in the complex factor sequence of each window may be processed with a sigmoid function so that all complex factors in the complex factor sequence under the window are assigned corresponding weights according to their sizes and the cumulative sum of all weights is 1.
[0093] It can be understood that in the embodiment of the present application, by calculating the Among the oil quality spectrum data, windows and the rest The oil quality spectrum data is in The difference in the complex factor sequence of the windows can be used to analyze the degree of noise or the degree of noise influence. Specifically, the larger the difference, the The first The original signal corresponding to each window may be relatively more seriously disturbed by noise, resulting in abnormal signal ratios of each component decomposed in the same spectral band. Furthermore, through the above analysis, each IMF component signal of each oil quality spectral data is obtained. Due to the differences between the corresponding windows, it can be considered that in the same IMF component, the more serious the noise or noise interference of different oil quality spectral data in this component, the weights of these IMF components will be relatively weakened when participating in the comparison of complex factor sequence differences under the same window.
[0094] S170, calculating a final abnormality factor corresponding to each window in the target oil quality spectral data based on the preliminary abnormality factor and the difference between the target oil quality spectral data and the original signal in other oil quality spectral data in the same spectral band.
[0095] Through the above steps, the preliminary anomaly factor corresponding to each window in the target oil quality spectral data can be obtained based on the complex factor differences between the corresponding windows in multiple oil quality spectral data. The preliminary anomaly factor can be used to reflect the noise interference characteristics of a single component in the target oil quality spectral data and the overall component corresponding to a certain window.
[0096] Furthermore, in some embodiments, based on the noise interference characteristics between each oil quality spectrum data obtained, the relationship between the original signal and the component signal, and the difference between the target oil quality spectrum data and the remaining oil quality spectrum data can be further analyzed to obtain the isolated noise difference of each component under each window again.
[0097] In some embodiments, the The first of the oil quality spectrum data (i.e., the target oil quality spectrum data) The complex factors of each component under a window (i.e., the target window) are accumulated, and normalized with the accumulated values of the complex factors of the components under each window in all the oil quality spectrum data to obtain the complex coefficient, and the preliminary abnormal factors corresponding to each window in each oil quality spectrum data are normalized.
[0098] Further, in some embodiments of the present application, the first The original spectral signal of each window is fitted by the least square method (the fifth-order least square method is used in this embodiment) to improve the sensitivity to local fluctuations and retain as many local details as possible. Moreover, after fitting, the difference before and after fitting corresponding to each data point in the oil quality spectrum data can be calculated according to the difference before and after fitting.
[0099] Furthermore, we can The oil quality spectrum data (i.e. the target oil quality spectrum data) and the rest The oil quality spectrum data is in The difference of the original signal in the window is calculated under the same spectral band, and the first The first The final anomaly factor corresponding to the window. In some embodiments, the calculation process of the final anomaly factor can be expressed as follows:
[0100]
[0101] in, Indicates The first The final anomaly factor corresponding to the window.
[0102] Indicates The first The normalized result obtained by normalizing the initial abnormal factors corresponding to the window (i.e., the target window) is Indicates The first The normalized result is obtained by normalizing the initial abnormal factor corresponding to the first window (i.e., the target reference window). This parameter is a preliminary evaluation of the noise interference obtained based on the relationship between multiple IMF components in the target window. Therefore, when evaluating here, it can be considered that when the oil quality spectrum data belonging to the target reference window (for example, the first oil quality spectrum data) in the target oil quality spectrum data (e.g. When calculating the oil quality spectrum data), the more serious the interference is, the smaller the weight should be, that is, the lower the reliability should be. Therefore, It is negatively correlated with the final abnormal factor. However, the initial abnormal factor of the target oil quality spectrum data itself needs to be used as the sensitivity of the window to the abnormality, so Positively correlated with the final abnormal factor.
[0103] Indicates Oil quality spectral data and The oil quality spectrum data is in In the window, The difference between the corresponding spectral signal points (also called data points) of the group, Indicates Oil quality spectral data and The oil quality spectrum data is in In the window, The mean of the difference between the spectral signal points of the group. and The difference between the original signals in the current window can be considered to be more chaotic, which indicates that the difference between the original signals in the current window is relatively higher. Further, by accumulating the first The oil quality spectrum data and the rest The difference in the oil quality spectral data makes the overall difference amplified. In other words, the higher the accumulated value of the difference is, the more serious the noise interference in the current window is.
[0104] Respectively represent Oil quality spectral data and The oil quality spectrum data is in In the window, The difference between a group of spectral signal points before and after fitting. It can be understood that in the embodiment of the present application, the fitting curve can characterize the trend characteristics of the current oil quality spectral data to a large extent. When the noise interference is serious, the trend will change greatly, which will lead to a large difference in the fitting results of different oil quality spectral data. Therefore, in the embodiment of the present application, the difference of the fitting difference is calculated by the absolute value. Specifically, the larger the difference, the more serious the degree of noise interference may be to the current spectral signal point (or data point). Therefore, the weight is positively correlated with the logical relationship of the preliminary abnormality factor calculated by the aforementioned process. Here, it is directly calculated by The function normalizes it as the weight.
[0105] Based on the above content, it can be seen that in some embodiments of the present application, the preliminary abnormality factor corresponding to the target window can be normalized (linear normalization or nonlinear normalization can be used) to obtain a first normalized result ( ), and normalize the preliminary anomaly factor corresponding to the target reference window (linear normalization or nonlinear normalization can be used) to obtain the second normalization result ( ); then based on the second normalization result, the difference between the corresponding spectral signal points in the target window and the target reference window ( ), the mean of the differences between all spectral signal points in the target window and the target reference window ( ), and the difference between the corresponding spectral signal points in the target window and the target reference window before and after fitting ( ), and obtain the fourth parameter corresponding to each spectral signal point in the target window ( ); Further, the average value of the fourth parameter corresponding to all spectral signal points in the target window can be calculated, and the arithmetic square root calculation can be performed to obtain the fifth parameter ( ); Finally, calculate the average value of the fifth parameter corresponding to all other oil quality spectrum data ( ), and multiply it by the first normalization result ( ), the final abnormal factor corresponding to the target window can be obtained .
[0106] Specifically, in some embodiments, the fourth parameter may be obtained in the following manner:
[0107] First, the difference between the corresponding target spectral signal points in the target window and the target reference window ( ) minus the mean of the difference between all spectral signal points in the target window and the target reference window ( ), get the first sub-parameter ( Then, the difference between the target spectral signal point in the target window before and after fitting ( ) minus the difference between the corresponding spectral signal point in the target reference window before and after fitting ( ), and conduct Normalized calculation, get the second sub-parameter ( ); further, the aforementioned second normalization result ( ) is subtracted from the preset maximum normalized value (1) to obtain the third sub-parameter ( ); Finally, the fourth parameter corresponding to the target spectral signal point can be obtained by multiplying the first sub-parameter, the second sub-parameter and the third sub-parameter.
[0108] S180, calculating the wavelet threshold adjustment coefficient of each IMF component in the target oil quality spectral data in each window according to the similarity factor corresponding to each IMF component in the target oil quality spectral data and the final abnormality factor corresponding to each window.
[0109] Through the above steps, the similarity factor corresponding to each IMF component in the target oil quality spectrum data can be obtained. And the final anomaly factor corresponding to each window Furthermore, the final anomaly factor corresponding to the target window can be Perform normalization processing (such as linear normalization or nonlinear normalization) to obtain the third normalization result , normalize the similarity factor corresponding to the target IMF component (such as linear normalization or nonlinear normalization) to obtain the fourth normalization result , and then the third normalized result With the fourth normalized result Multiply them to get the wavelet threshold adjustment coefficient of the target IMF component in the target window ( ).
[0110] S190, determining an adaptive wavelet threshold of each IMF component in each window of the target oil quality spectral data based on the wavelet threshold adjustment coefficient, and performing wavelet threshold denoising on each window of each IMF component in the target oil quality spectral data according to the adaptive wavelet threshold to obtain denoised oil quality spectral data.
[0111] After obtaining the wavelet threshold adjustment coefficient of the target IMF component within the target window Afterwards, the adaptive wavelet threshold of each IMF component in each window of the target oil quality spectral data can be determined based on the wavelet threshold adjustment coefficient. Since in the embodiment of the present application, the wavelet threshold adjustment coefficient is obtained by the similarity factor corresponding to each IMF component in the target oil quality spectral data and the final abnormality factor corresponding to each window, which comprehensively considers the relationship between the IMF components in the same window and the difference between the original signals, the adaptive wavelet threshold in each window is calculated by the wavelet threshold adjustment coefficient, and each window of each IMF component in the target oil quality spectral data is subjected to wavelet threshold denoising according to the adaptive wavelet threshold to obtain the denoised oil quality spectral data, which can greatly improve the sensitivity to noise while optimizing the denoising result and ensuring the integrity of the original signal information. The specific technical details of wavelet threshold denoising can be regarded as prior art and will not be repeated in this specification.
[0112] Specifically, in some embodiments of the present application, the aforementioned wavelet threshold adjustment coefficient can be multiplied by the first preset parameter and added with the second preset parameter to obtain the adaptive wavelet threshold corresponding to each window. As an example only, in some embodiments, the first preset parameter can be 0.6, and the second preset parameter can be 0.4 (i.e., the adaptive wavelet threshold ), so that the value range of the adaptive wavelet threshold is controlled within It should be noted that the above first preset parameter and the second preset parameter are only exemplary descriptions, and in some embodiments, the specific values of the first preset parameter and the second preset parameter can be adjusted according to requirements.
[0113] S1100, matching the denoised oil quality spectrum data with the fan oil spectrum data under standard quality to obtain a fan oil quality test result.
[0114] After wavelet threshold denoising is performed by the above-mentioned adaptive wavelet threshold, denoised oil quality spectrum data can be obtained. In some embodiments of the present application, the denoised oil quality spectrum data can be matched and compared with the fan oil spectrum data under standard quality to obtain the fan oil quality test result.
[0115] Specifically, in an embodiment of the present application, the difference between the denoised oil quality spectrum data and the fan oil spectrum data under standard quality can be calculated by existing spectral matching methods (such as Pearson coefficient or DTW, etc.). The larger the difference, the greater the possibility that the fan oil currently being tested is unqualified. Based on this, in some embodiments, when the difference is greater than a preset threshold, it can be determined that the fan oil currently being tested is unqualified. Among them, the preset threshold can be set according to actual needs and is not specifically limited in this specification.
[0116] In summary, the beneficial effects that may be brought about by the present invention include but are not limited to: (1) In the intelligent detection method for oil quality of smart IoT fan based on optical analysis provided in some embodiments of the present specification, the wavelet threshold adjustment coefficient is calculated by the similarity factor corresponding to each IMF component in the target oil quality spectrum data and the final abnormal factor corresponding to each window, and the adaptive wavelet threshold is determined based on the wavelet threshold adjustment coefficient to perform wavelet threshold denoising on each window of each IMF component in the target oil quality spectrum data, which can greatly improve the sensitivity to noise while optimizing the denoising result and ensuring the integrity of the original signal information; (2) In the intelligent detection method for oil quality of smart IoT fan based on optical analysis provided in some embodiments of the present specification, by counting the least common multiple of all period sizes corresponding to multiple IMF components in each oil quality spectrum data, and then calculating the first average value of the least common multiples corresponding to all oil quality spectrum data, and using the first average value as the equally divided window of the original signal and the component signal in each oil quality spectrum data, the variables when comparing the local positions between different oil quality spectrum data in the subsequent process can be made the same, thereby ensuring the accuracy of the analysis result.
[0117] It should be noted that different embodiments may produce different beneficial effects. In different embodiments, the beneficial effects that may be produced may be any one or a combination of the above, or may be any other beneficial effects that may be obtained.
[0118] It should also be noted that the order of the above embodiments of the present invention is for description only and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0119] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0120] The basic concepts of the present invention have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements and corrections to this specification. Such modifications, improvements and corrections are suggested in this specification, so such modifications, improvements and corrections still belong to the scope of the exemplary embodiments of this specification.
Claims
1. Intelligent detection method for oil quality of smart IoT fan based on optical analysis, characterized in that: The method comprises: Through the infrared spectrum sensor, the spectrum data of the fan oil is collected for multiple times continuously to obtain multiple oil quality spectrum data; The EMD decomposition algorithm is used to decompose the oil quality spectrum data collected each time to obtain multiple corresponding IMF components; Based on the period size corresponding to each IMF component, determining an equally divided window of the original signal and the component signal in each of the oil quality spectrum data; Calculating the complexity factor of the original signal in each window of the oil quality spectrum data; Calculating the similarity between the target oil quality spectrum data and other oil quality spectrum data in each IMF component based on the complex factor, and obtaining a corresponding similarity factor based on the similarity; Using the similarity factor as a weight, combined with the complex factor difference between each window in the target oil quality spectrum data and the corresponding window in other oil quality spectrum data, a preliminary abnormal factor corresponding to each window in the target oil quality spectrum data is obtained; Based on the preliminary abnormal factor and the difference between the original signal in the target oil quality spectrum data and other oil quality spectrum data in the same spectral band, calculate the final abnormal factor corresponding to each window in the target oil quality spectrum data; According to the similarity factor corresponding to each IMF component in the target oil quality spectrum data and the final abnormal factor corresponding to each window, the wavelet threshold adjustment coefficient of each IMF component in the target oil quality spectrum data in each window is calculated; Determine an adaptive wavelet threshold value of each IMF component in each window of the target oil quality spectrum data based on the wavelet threshold adjustment coefficient, and perform wavelet threshold denoising on each window of each IMF component in the target oil quality spectrum data according to the adaptive wavelet threshold value to obtain denoised oil quality spectrum data; Matching the denoised oil quality spectrum data with the fan oil spectrum data under standard quality to obtain the fan oil quality test result; The calculation of the complexity factor of the original signal in each window of the oil quality spectrum data includes: Obtaining the standard deviation of the signal in each window, and normalizing the standard deviation to obtain the complexity factor of the original signal in each window in the oil quality spectrum data; The calculating the similarity between the target oil quality spectrum data and other oil quality spectrum data in each IMF component based on the complex factor, and obtaining the corresponding similarity factor based on the similarity, includes: Calculate the DTW distance between each group of corresponding data points in the corresponding IMF components of the target oil quality spectrum data and other oil quality spectrum data; Obtaining a first parameter according to the DTW distance and a complexity factor of the window to which the data point belongs; Calculate the sum of the first parameters corresponding to the multiple groups of data points contained in each of the IMF components, and take the reciprocal to obtain the similarity between the target oil quality spectrum data and other oil quality spectrum data in each IMF component; Calculate the mean of the similarity between the target oil quality spectrum data and other oil quality spectrum data in the corresponding IMF components, and obtain the similarity factor corresponding to each IMF component in the target oil quality spectrum data; The similarity factor is used as a weight, and the complex factor difference between each window in the target oil quality spectrum data and the corresponding window in other oil quality spectrum data is combined to obtain the preliminary abnormal factor corresponding to each window in the target oil quality spectrum data, including: Get the complex factor corresponding to each window under each IMF component, and get the complex factor sequence corresponding to each window according to the component order; According to the complex factor sequence corresponding to the target window in the target oil quality spectral data and the complex factor sequence corresponding to the reference window corresponding to the target window in other oil quality spectral data, the complex factor difference between each window of the target oil quality spectral data and other oil quality spectral data under each IMF component is obtained; Obtaining a second parameter based on the difference in complex factors of the target window under the target IMF component relative to the target reference window, and the similarity factor corresponding to the target oil quality spectrum data and the oil quality spectrum data belonging to the target reference window under the target IMF component; Calculate the sum of the second parameters corresponding to all IMF components to obtain the third parameter; The sum of the third parameters corresponding to all other oil quality spectrum data is calculated, and the average value is obtained to obtain the preliminary abnormal factor corresponding to the target window.
2. The intelligent detection method for oil quality of smart IoT fan based on optical analysis according to claim 1 is characterized in that: The determining of the equally divided windows of the original signal and the component signal in each of the oil quality spectrum data based on the period size corresponding to each IMF component includes: The period size of each IMF component is obtained through Hilbert transform; Count all the period sizes corresponding to multiple IMF components in each oil quality spectrum data, and obtain the least common multiple corresponding to all the period sizes; A first average value is calculated for the least common multiple corresponding to all the oil quality spectrum data, and the first average value is used as an equally divided window of the original signal and the component signal in each oil quality spectrum data.
3. The intelligent detection method for oil quality of smart IoT fan based on optical analysis as claimed in claim 1 is characterized in that: The second parameter is obtained based on the difference in complex factors of the target window under the target IMF component relative to the target reference window, and the similarity factor corresponding to the target oil quality spectrum data and the oil quality spectrum data belonging to the target reference window under the target IMF component, including: The sum of the similarity factors corresponding to the target oil quality spectral data and the oil quality spectral data of the target reference window in the target IMF component is used as a weight, and is multiplied by the difference in complex factors of the target window relative to the target reference window under the target IMF component to obtain the second parameter.
4. The intelligent detection method for oil quality of smart IoT fan based on optical analysis as claimed in claim 3 is characterized in that: The method of calculating the final abnormality factor corresponding to each window in the target oil quality spectral data based on the preliminary abnormality factor and the difference between the target oil quality spectral data and the original signal in other oil quality spectral data in the same spectral band comprises: Normalizing the preliminary anomaly factor corresponding to the target window to obtain a first normalized result, and normalizing the preliminary anomaly factor corresponding to the target reference window to obtain a second normalized result; Based on the second normalization result, the difference between the corresponding spectral signal points in the target window and the target reference window, the average of the differences between all spectral signal points in the target window and the target reference window, and the difference between the corresponding spectral signal points in the target window and the target reference window before and after fitting, obtain a fourth parameter corresponding to each spectral signal point in the target window; Calculating the average value of the fourth parameter corresponding to all spectral signal points in the target window, and performing arithmetic square root calculation to obtain a fifth parameter; The average value of the fifth parameter corresponding to all other oil quality spectrum data is calculated and multiplied by the first normalization result to obtain a final abnormality factor corresponding to the target window.
5. The intelligent detection method for oil quality of smart IoT fan based on optical analysis as claimed in claim 4 is characterized in that: The fourth parameter corresponding to each spectral signal point in the target window is obtained based on the second normalization result, the difference between the corresponding spectral signal points in the target window and the target reference window, the average of the differences between all spectral signal points in the target window and the target reference window, and the difference between the corresponding spectral signal points in the target window and the target reference window before and after fitting, including: Subtract the mean of the differences between all the spectral signal points in the target window and the target reference window from the difference between the corresponding target spectral signal points in the target window and the target reference window to obtain a first sub-parameter; The difference between the target spectral signal point in the target window before and after fitting is subtracted from the difference between the target spectral signal point in the target window before and after fitting and the difference between the corresponding spectral signal point in the target reference window before and after fitting is normalized to obtain a second sub-parameter; Subtracting the second normalization result from a preset maximum normalization value to obtain a third sub-parameter; The first sub-parameter, the second sub-parameter and the third sub-parameter are multiplied to obtain a fourth parameter corresponding to the target spectral signal point.
6. The intelligent detection method for oil quality of smart IoT fan based on optical analysis as claimed in claim 5 is characterized in that: The method calculates the wavelet threshold adjustment coefficient of each IMF component in the target oil quality spectral data in each window according to the similarity factor corresponding to each IMF component in the target oil quality spectral data and the final abnormality factor corresponding to each window, including: The final abnormal factor corresponding to the target window is normalized to obtain the third normalization result; Normalizing the similarity factor corresponding to the target IMF component to obtain a fourth normalized result; The third normalization result is multiplied by the fourth normalization result to obtain a wavelet threshold adjustment coefficient of the target IMF component within the target window.
7. The intelligent detection method for oil quality of smart IoT fan based on optical analysis as claimed in claim 6 is characterized in that: The step of determining the adaptive wavelet threshold of each IMF component in each window of the target oil quality spectrum data based on the wavelet threshold adjustment coefficient includes: The adaptive wavelet threshold is obtained by multiplying the wavelet threshold adjustment coefficient with a first preset parameter and adding a second preset parameter.
