A data quality detection method and system based on the Internet of Things
By adjusting the filter window and analyzing envelope change characteristics, the noise and noise-free components are segmented, which solves the problem of unsatisfactory noise decomposition in IoT sensor signals and achieves more accurate signal quality assessment and data analysis reliability.
Patent Information
- Application Number
- CN202410063533.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-16
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-01-16
AI Technical Summary
Existing technologies cannot effectively decompose noise in IoT sensor signals, resulting in inaccurate signal quality assessment and inability to accurately judge the quality of IoT device signal data.
By adjusting the filter window size, analyze the baseline signal changes under different size filter windows, obtain the maximum size filter window, select the target filter window for baseline removal processing, analyze the envelope change characteristics, segment the noise and noise-free amplitude components, and combine fitting The function is decomposed, and the optimal decomposition results are screened for quality inspection.
It improves the accuracy of sensor data decomposition, enables objective and effective evaluation of signal quality, enhances the credibility of quality assessment of IoT sensor signal data, and ensures the reliability of data analysis.
Smart Images

Figure CN117951508B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing of Internet of Things devices, and in particular to a data quality detection method and system based on the Internet of Things. Background Art
[0002] IoT data quality testing refers to the evaluation and verification of data collected from various IoT devices and sensors to ensure the accuracy, integrity and reliability of the data. Since IoT systems involve a large number of devices and sensors, there may be a variety of factors that lead to data quality issues, such as sensor failure, noise, data loss, etc. Therefore, data quality testing is essential to ensure the normal operation of IoT systems and improve the reliability of data analysis.
[0003] In the existing IoT sensor data, the signal data with complex interference sources itself has large volatility, and it is impossible to directly and effectively evaluate the actual signal quality. It is a common technical solution to decompose the sensor signal data into components and evaluate the data quality of the complete signal based on the component signal quality. However, the traditional independent component analysis algorithm cannot directly assume that the signal components in the signal data are independent of each other. Therefore, the noise decomposition effect of the IoT sensor equipment is not ideal, and the actual signal quality cannot be effectively evaluated, and thus the quality of the IoT device signal data cannot be judged. Summary of the invention
[0004] In order to solve the technical problem that the existing method has an unsatisfactory effect on the noise decomposition of IoT sensor devices, resulting in inaccurate judgment of the quality of IoT device signal data, the present invention provides a data quality detection method and system based on the IoT, and the technical solution adopted is as follows:
[0005] A data quality detection method based on the Internet of Things, the method comprising:
[0006] Acquire mixed signals from IoT sensors;
[0007] Processing the mixed signal according to a window filtering algorithm of a preset size filtering window to obtain a baseline signal; analyzing the change characteristics of the baseline signal to obtain baseline signal parameters; increasing the preset size filtering window to obtain a maximum size filtering window according to the change of the baseline signal parameters;
[0008] Select any size filter window between the maximum size filter window and the preset size filter window as the target filter window; under the target filter window, obtain a target baseline signal; obtain a baseline-removed mixed signal according to the target baseline signal and the mixed signal; analyze the envelope change characteristics of the baseline-removed mixed signal to obtain envelope characteristic parameters; segment the amplitude of the baseline-removed mixed signal using a preset segmentation method to obtain a noise amplitude component set and a noise-free amplitude component set; obtain a first target parameter according to the amplitude change characteristics of the noise amplitude component set and the noise-free amplitude component set and in combination with the envelope characteristic parameters; adjust the segmentation method of the baseline-removed mixed signal to obtain an optimal noise-free amplitude component set according to the change of the first target parameter; fit the optimal noise-free amplitude component set with a preset fitting function, and obtain a second target parameter according to the fitting result;
[0009] Traversing all target filter windows from the maximum size filter window to the preset size filter window to obtain a second target parameter corresponding to each size filter window; selecting an optimal filter window according to all the second target parameters and obtaining an optimal decomposition result;
[0010] The quality of IoT sensor signal data is tested according to the optimal decomposition result.
[0011] Furthermore, the method for obtaining the baseline signal parameters includes:
[0012] Obtain the slope of the baseline signal at each sampling point; obtain the slope variance based on the slopes of all sampling points, obtain the amplitude range of the baseline signal and normalize it by negative correlation mapping, use the normalized result as the denominator, the slope variance as the numerator, and the fraction as the baseline signal parameter.
[0013] Furthermore, the method for obtaining the maximum size filtering window includes:
[0014] The size of the preset size filter window is increased, and when the minimum value of the baseline signal parameter is obtained, the filter window of the corresponding size is the maximum size filter window.
[0015] Furthermore, the method for obtaining the envelope characteristic parameters includes:
[0016] The maximum envelope of the baseline-removed mixed signal is obtained, and the standard deviation of the envelope value on the maximum envelope is used as an envelope characteristic parameter.
[0017] Furthermore, the method for obtaining the first target parameter includes:
[0018] According to the amplitude statistical characteristics of the noise amplitude component set and the noise-free amplitude component set, the mean and standard deviation corresponding to the respective sets are obtained; the kurtosis parameter is obtained according to the mean and standard deviation of the amplitude of the noise-free amplitude component set; the absolute value of the difference between the standard deviation of the noise amplitude component set and the envelope characteristic parameter is used as a penalty parameter; and the sum of the kurtosis parameter and the penalty parameter is used as the first target parameter.
[0019] Furthermore, the method for obtaining the optimal noise-free amplitude component set includes:
[0020] When the first target parameter reaches the minimum, the corresponding noise-free amplitude component set is the optimal noise-free amplitude component set.
[0021] Furthermore, the method for obtaining the second target parameter includes:
[0022] Obtain the residual in the fitting result; obtain the adjacent spacing of the non-zero residual in the time series, and obtain the adjacent spacing standard deviation according to the adjacent spacing; use the standard deviation of the residual and the Euclidean norm of the adjacent spacing standard deviation as the first parameter, use the mean of the residual and the sum of the preset zero division parameter as the second parameter, obtain the quotient of the first parameter and the second parameter, and use the quotient as the second target parameter.
[0023] Furthermore, the method for obtaining the optimal decomposition result includes:
[0024] The largest second target parameter among all the second target parameters is taken as the optimal second target parameter; the decomposition result corresponding to the optimal second target parameter is taken as the optimal decomposition result; the optimal decomposition result includes: the baseline component corresponding to the baseline signal, the noise component corresponding to the noise amplitude component set, the fluctuation component corresponding to the residual in the fitting result, and the normal signal component.
[0025] Furthermore, the method for performing quality detection on IoT sensor signal data according to the optimal decomposition result includes:
[0026] The signal-to-noise ratio of the mixed signal of the IoT sensor is obtained. When the signal-to-noise ratio is lower than a preset signal-to-noise ratio threshold, it is determined that the data of the IoT sensor has quality problems.
[0027] The present invention also proposes a data quality detection system based on the Internet of Things, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements any one of the steps of the data quality detection method based on the Internet of Things when executing the computer program.
[0028] The present invention has the following beneficial effects:
[0029] The present invention adjusts the filter window size, analyzes the changes in the baseline signals corresponding to filter windows of different sizes, obtains the maximum-size filter window with the most stable baseline signal and the highest degree of smoothness of the mixed signal after the baseline signal is removed, and provides an adjustment range for subsequent adjustment of the filter window size to obtain different decomposition results; further selects a filter window of any size as a target filter window, takes the target filter window as an example, analyzes the envelope change characteristics of the baseline-removed mixed signal, obtains envelope characteristic parameters, and provides evaluation parameters for the segmentation result obtained by segmenting the baseline-removed mixed signal; further segments the baseline-removed mixed signal, obtains the first target parameter according to the characteristics of the two amplitude component sets obtained by segmentation and the envelope characteristic parameters, and obtains the first target parameter according to different The change of the first target parameter under the segmentation method obtains the optimal noise-free component set corresponding to the optimal segmentation method, thereby separating the noise component from the baseline-removed mixed signal; further, the optimal noise-free amplitude component set is fitted with the preset fitting function, and the second target parameter is obtained according to the fitting result to judge the noise separation effect, so that the determination process of independent components is a mutual verification process, which greatly improves the sensor data decomposition accuracy; further, the optimal decomposition result is screened out and the IoT sensor signal data is quality tested, which can objectively and effectively evaluate the signal quality under the premise of eliminating the influence of the signal fluctuation itself, thereby improving the credibility of quality assessment of IoT sensor signal data and ensuring the reliability of data analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] 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.
[0031] Figure 1 The present invention provides a flowchart of a data quality detection method based on the Internet of Things according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the data quality detection method and system based on the Internet of Things proposed by the present invention, its specific implementation method, structure, characteristics and effects, 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.
[0033] 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.
[0034] The following is a detailed description of a data quality detection method and system based on the Internet of Things provided by the present invention in conjunction with the accompanying drawings.
[0035] See also Figure 1 , which shows a flow chart of a data quality detection method based on the Internet of Things provided by an embodiment of the present invention, specifically comprising:
[0036] Step S1: Obtain mixed signals from IoT sensors.
[0037] In order to analyze and determine the data quality of IoT sensors, it is first necessary to obtain the mixed signals of IoT sensors.
[0038] Different sensors acquire different signals. For example, vibration signals can detect mechanical failures, imbalances, bearing damage, etc. by analyzing the spectrum, amplitude, and waveform of vibration signals. Temperature signals can indicate equipment overheating, cooling problems, or insufficient coolant flow by analyzing temperature signals. They are widely used in industrial furnaces, electronic equipment, and engine monitoring. Common sensor signals include pressure signals, humidity signals, gas concentration signals, etc. In one embodiment of the present invention, the data quality of IoT sensors is tested by taking vibration signals as an example. In other embodiments of the present invention, implementers can select mixed signal types at their own discretion.
[0039] Step S2: Process the mixed signal according to the window filtering algorithm of the preset size filtering window to obtain the baseline signal; analyze the change characteristics of the baseline signal to obtain the baseline signal parameters; increase the preset size filtering window and obtain the maximum size filtering window according to the change of the baseline signal parameters.
[0040] In order to obtain the most accurate quality detection results, it is necessary to obtain the most accurate signal decomposition results and set the most appropriate filter window size. Removing the baseline component in the signal can make the signal smoother and the analysis result more accurate. The baseline signals obtained by filter windows of different sizes are different, so the baseline signal parameters of the baseline signal are obtained to obtain the upper limit of the filter window size, which is convenient for subsequent screening of the optimal decomposition results between the maximum size filter window and the preset size filter window.
[0041] Because the baseline signal represents the long-term trend, background component or baseline level of the original mixed signal, the changes in the baseline signal can characterize the long-term dynamic characteristics and changes in the background environment in the original mixed signal. The baseline signal parameters can be obtained by analyzing the change characteristics of the baseline signal. The baseline signal parameters can be used to evaluate the stability of the baseline signal, and then the increase in size of the preset size filter window can be controlled according to the baseline signal parameters to obtain an accurate upper limit on the size of the filter window.
[0042] When the mixed signal is smoothed to the maximum extent after removing the baseline signal, the fluctuation of the baseline signal is the most stable, and the amplitude range in the baseline signal can reflect the local convexity of the baseline signal, and the fluctuation of the amplitude slope can reflect the fluctuation of the baseline signal; therefore, the baseline signal parameters can be obtained through the fluctuation change characteristics of the baseline signal amplitude. In a preferred embodiment of the present invention: the slope of the baseline signal at each sampling point is obtained; the amplitude range of the baseline signal is obtained according to the slope variance obtained from the slopes of all sampling points and normalized by negative correlation mapping, the normalized result is used as the denominator, the slope variance is used as the numerator, and the fraction is used as the baseline signal parameter. The calculation formula of the baseline signal parameter includes:
[0043]
[0044] Where Q represents the baseline signal parameter; P represents the total number of baseline signal data points; i represents the data point number; k i represents the slope value at the i-th data point; represents the average of all slope values; w max Indicates the maximum value of the baseline signal amplitude; w min Indicates the minimum amplitude of the baseline signal; e is a natural constant.
[0045] In the calculation formula of the baseline signal parameters, the larger the slope variance, the greater the fluctuation of the baseline signal, and the larger the baseline signal parameter; the larger the amplitude range, the larger the local convexity of the baseline signal, the smaller the denominator, and the larger the baseline signal parameter.
[0046] In one embodiment of the present invention, the preset size is 3, that is, the window size is 3×3, and the mean filtering algorithm is selected as the window filtering algorithm; the filter window size is an odd number, and the filter window size is adjusted from small to large. When the minimum value of the baseline signal parameter is obtained, the filter window of the corresponding size is the maximum size filter window. It should be noted that the baseline signal obtained by the maximum size filter window is not a real baseline component, but only an upper limit of the filter window size is found through the baseline signal parameters; mean filtering is a technical means well known to those skilled in the art, and will not be described here; in other embodiments of the present invention, the implementer can set other preset sizes according to actual conditions, and can choose other suitable filtering methods such as local polynomial fitting and weighted moving average filtering.
[0047] Step S3: select any size filter window between the maximum size filter window and the preset size filter window as the target filter window; obtain the target baseline signal under the target filter window; obtain the baseline-removed mixed signal according to the target baseline signal and the mixed signal; analyze the envelope change characteristics of the baseline-removed mixed signal to obtain envelope characteristic parameters; segment the amplitude of the baseline-removed mixed signal using a preset segmentation method to obtain a noise amplitude component set and a noise-free amplitude component set; obtain the first target parameter according to the amplitude change characteristics of the noise amplitude component set and the noise-free amplitude component set and in combination with the envelope characteristic parameters; adjust the segmentation method of the baseline-removed mixed signal to obtain the optimal noise-free amplitude component set according to the change of the first target parameter; fit the optimal noise-free amplitude component set with a preset fitting function, and obtain the second target parameter according to the fitting result.
[0048] After obtaining the filter window size analysis range, the decomposition result of a filter window of any size can be obtained. Taking any target filter window as an example, the filter result acquisition process corresponding to filter windows of all sizes is the same and will not be repeated one by one. After the mixed signal passes through the mean filter of the target filter window, the target baseline signal can be obtained, and the baseline-removed mixed signal can be obtained by a simple subtraction operation, making the subsequent signal processing and analysis more accurate. Because the envelope of the signal provides useful information about the dynamic characteristics and important features of the signal, the envelope characteristic parameters are obtained to provide an evaluation basis for the segmentation results of the baseline-removed mixed signal. Further, the first target parameters are obtained by combining the envelope characteristic parameters with the characteristics of the two types of amplitude component sets obtained by segmentation, so as to establish the optimal segmentation method of noise and noise-free signals and obtain the optimal noise-free amplitude component set. The optimal noise-free amplitude component set is further fitted to further decompose the signal, and the second target parameters are obtained to prepare for the subsequent selection of the optimal decomposition result.
[0049] Preferably, in one embodiment of the present invention, considering that the envelope can describe the amplitude part of the prominent features, theoretically, when the envelope is a straight line, the amplitude set of these prominent features has the maximum non-Gaussianity, so the amplitude dispersion of the envelope is calculated to obtain the envelope characteristic parameters, which can roughly estimate the interference degree of the noise part superimposed on the original signal, and the envelope is usually calculated by extracting the maximum amplitude of the signal in the window, so the maximum envelope is analyzed. Therefore, the envelope characteristic parameters are obtained by the standard deviation of the envelope value that can reflect the fluctuation characteristics of the envelope, which is used to represent the fluctuation characteristics of the envelope.
[0050] The specific method for obtaining the envelope characteristic parameters includes: obtaining the maximum envelope of the baseline-removed mixed signal, and taking the standard deviation of the envelope value on the maximum envelope as the envelope characteristic parameter. The calculation formula of the envelope characteristic parameters includes:
[0051]
[0052] Wherein, γ represents the envelope characteristic parameter; M represents the total number of envelope values on the maximum envelope line; i represents the sequence number of the envelope value on the maximum envelope line; g i Indicates the envelope value with number i on the maximum envelope line; Represents the mean of all envelope values on the maximum envelope line.
[0053] In the calculation formula of the envelope characteristic parameter, the larger the standard deviation of the envelope value, the greater the envelope fluctuation of the baseline-removed mixed signal, the greater the interference degree of the noise, and the larger the envelope characteristic parameter.
[0054] The envelope characteristic parameters representing the degree of interference are used as guiding parameters in the process of decomposing the baseline-removed mixed signal amplitude set. That is, when performing optimal decomposition, the noise intensity of the decomposed noise component set needs to be as close to the envelope characteristic parameters as possible. From the information entropy theory, it can be seen that the lower the kurtosis of the data set, the larger the information entropy, the more stable the data structure, and the more likely it is to be an independent component. Therefore, the kurtosis of the noise-free amplitude component set is obtained, and the first target parameter is obtained by combining the kurtosis of the noise-free amplitude component set, the noise amplitude component set and the degree of convergence of the envelope characteristic parameters to obtain the optimal segmentation method.
[0055] Preferably, in one embodiment of the present invention, the method for obtaining the first target parameter includes: obtaining the mean and standard deviation corresponding to the noise amplitude component set and the noise-free amplitude component set according to the amplitude statistical characteristics of the noise amplitude component set and the noise-free amplitude component set; obtaining the kurtosis parameter according to the mean and standard deviation of the amplitude of the noise-free amplitude component set; using the absolute value of the difference between the standard deviation of the noise amplitude component set and the envelope characteristic parameter as a penalty parameter; and using the sum of the kurtosis parameter and the penalty parameter as the first target parameter. The calculation formula of the first target parameter includes:
[0056]
[0057] Wherein, E1 represents the first target parameter; R represents the total number of amplitudes of the noise-free amplitude component set; r represents the sequence number of the amplitude data of the noise-free amplitude component set; ρ r represents the amplitude with serial number r in the noise-free amplitude component set; μ and σ are the mean and standard deviation of the amplitude of the noise-free amplitude component set; σ ′ represents the standard deviation of the amplitude of the noise amplitude component set; γ represents the envelope characteristic parameter; |σ ′ -γ| represents the penalty parameter.
[0058] In the calculation formula of the first target parameter, the smaller the kurtosis of the amplitude of the noise-free amplitude component set, the more stable the data structure, the more likely it is an independent component, and the smaller the first target parameter; the smaller the absolute value of the difference between the standard deviation of the noise amplitude component set and the envelope characteristic parameter, the smaller the penalty parameter, which means that the noise amplitude component set is closer to the envelope characteristic parameter fluctuation characteristics, and the smaller the first target parameter.
[0059] It can be seen from the process of obtaining the first target parameter that when the first target parameter is minimum, the segmentation effect of the noise amplitude and the noise-free amplitude is best. Therefore, in a preferred embodiment of the present invention, when the first target parameter reaches the minimum, the corresponding noise-free amplitude component set is the optimal noise-free amplitude component set.
[0060] In one embodiment of the present invention, the preset segmentation method is exhaustive segmentation in order to find the most accurate minimum first target parameter; in other embodiments of the present invention, the implementer may select other segmentation methods such as iterative binary division according to actual conditions.
[0061] After separating the baseline component and the noise component in the mixed signal, the optimal noise-free amplitude component set only contains the normal vibration signal component and the random abnormal fluctuation vibration signal component. In order to describe the normal vibration signal component in the noise-free signal to the greatest extent, in one embodiment of the present invention, a sinusoidal signal is used as a normal vibration signal, and the sinusoidal signal is used as a preset fitting function to fit the optimal noise-free amplitude component set, and the residual obtained by fitting is the fluctuation vibration signal component. When the condition that the residual component is the smallest and has the maximum discreteness is met, the sinusoidal signal can be verified to be a normal vibration signal, and the credibility of the decomposed noise component can also be verified.
[0062] Preferably, in one embodiment of the present invention, the method for obtaining the second target parameter includes: obtaining the residual in the fitting result; obtaining the adjacent spacing of the non-zero residual in the time series, and obtaining the adjacent spacing standard deviation according to the adjacent spacing; using the standard deviation of the residual and the Euclidean norm of the adjacent spacing standard deviation as the first parameter, using the mean of the residual and the sum of the preset zero division parameter as the second parameter, obtaining the quotient of the first parameter and the second parameter, and using the quotient as the second target parameter. The calculation formula of the second target parameter includes:
[0063]
[0064] Where E2 represents the second target parameter; σ B and μ B Represent the standard deviation and mean of the residuals respectively; D represents the adjacent spacing of non-zero residuals in the time series, σ D represents the standard deviation of adjacent intervals of non-zero residuals in the time series; f represents the preset zero division parameter, In one embodiment of the present invention, f=1.
[0065] In the calculation formula of the second target parameter, the larger the first parameter is, the greater the discrete degree of the residual is, which means that the residual can better represent the discrete abnormal signals caused by random failures and jams of varying degrees in the equipment, and the larger the second target parameter is; the smaller the mean of the residual is, the fewer discrete abnormal signals appear, which is more consistent with the actual situation, and the larger the second target parameter is.
[0066] Step S4: traverse all target filter windows from the maximum size filter window to the preset size filter window to obtain the second target parameter corresponding to each size filter window; select the optimal filter window according to all the second target parameters and obtain the optimal decomposition result.
[0067] The second target parameter provides a basis for judging the filter window size and signal decomposition effect. The larger the second target parameter, the better the decomposition effect and the more appropriate the filter window size. In order to obtain the optimal decomposition result under the optimal filter window size, all target filter windows between the maximum size filter window and the preset size filter window are traversed to screen the optimal filter window and obtain the optimal decomposition result.
[0068] Preferably, in one embodiment of the present invention, the largest second target parameter among all the second target parameters is used as the optimal second target parameter; the target filtering window corresponding to the optimal second target parameter is used as the optimal filtering window; the decomposition result corresponding to the optimal second target parameter is used as the optimal decomposition result; the optimal decomposition result includes: the baseline component corresponding to the baseline signal, the noise component corresponding to the noise amplitude component set, the fluctuation component corresponding to the residual in the fitting result, and the normal signal component.
[0069] Step S5: Perform quality detection on IoT sensor signal data according to the optimal decomposition result.
[0070] The signal-to-noise ratio is a measure of the relative strength or clarity between a signal and noise. By obtaining the signal-to-noise ratio of a signal, it is possible to determine whether the data transmitted by an IoT sensor has quality problems. In a preferred embodiment of the present invention, a logarithmic transformation is performed on the ratio of the amplitude variance of a mixed signal to the amplitude variance of the remaining components of the mixed signal after the noise component is removed. The signal-to-noise ratio of the mixed signal of the IoT sensor is obtained by multiplying the transformation result by 10. When the signal-to-noise ratio is lower than a preset signal-to-noise ratio threshold of 40 dB, it is determined that the data of the IoT sensor has quality problems.
[0071] In summary, the present invention faces the technical problem that the existing methods have unsatisfactory noise decomposition effects on IoT sensor devices, resulting in inaccurate judgment of the quality of IoT device signal data. First, according to the characteristics of the continuous change of baseline signal parameters under different size filter windows, the maximum size filter window is obtained to determine the size range of the optimal size filter window corresponding to the optimal decomposition effect; further, taking any size filter window as an example, the envelope change characteristics of the baseline-removed signal are analyzed, and the amplitude characteristics of the two component sets obtained by segmenting the baseline-removed mixed signal are combined to obtain the optimal noise-free amplitude component set; further, the preset fitting function is combined with the optimal noise-free amplitude component set to obtain the second target parameter that can judge the decomposition result, and the optimal decomposition result is screened out according to the second target parameters of all size windows and the quality detection of IoT sensor data is performed. The present invention constructs the correlation between the decomposition components, so that the determination process of the independent components is a mutual verification process, avoiding the problem that the noise component and the fluctuation component cannot be decomposed using the independent component analysis algorithm, and the problem of confusion between the noise component and the fluctuation component, greatly improving the accuracy of sensor data decomposition, and then the signal quality can be objectively and effectively evaluated on the premise of eliminating the influence of the signal fluctuation itself, improving the credibility of the quality assessment of IoT sensor signal data, and ensuring the reliability of data analysis.
[0072] An embodiment of the present invention provides a data quality detection system based on the Internet of Things, the system includes a memory, a processor and a computer program, wherein the memory is used to store the corresponding computer program, the processor is used to run the corresponding computer program, and when the computer program runs in the processor, it can implement a data quality detection method based on the Internet of Things described in steps S1 to S5.
[0073] An embodiment of a data decomposition method based on the Internet of Things:
[0074] In the existing IoT sensor data, the signal data with complex interference sources itself has large volatility. The traditional independent component analysis algorithm cannot directly assume that the signal components in the signal data are independent of each other, so the noise decomposition effect of IoT sensor equipment is not ideal.
[0075] In order to solve the technical problem that the existing methods have unsatisfactory noise decomposition effects on IoT sensor devices, a data decomposition method based on IoT is proposed, which specifically includes:
[0076] Step S1: Obtain mixed signals from IoT sensors.
[0077] Step S2: Process the mixed signal according to the window filtering algorithm of the preset size filtering window to obtain the baseline signal; analyze the change characteristics of the baseline signal to obtain the baseline signal parameters; increase the preset size filtering window and obtain the maximum size filtering window according to the change of the baseline signal parameters.
[0078] Step S3: select any size filter window between the maximum size filter window and the preset size filter window as the target filter window; obtain the target baseline signal under the target filter window; obtain the baseline-removed mixed signal according to the target baseline signal and the mixed signal; analyze the envelope change characteristics of the baseline-removed mixed signal to obtain envelope characteristic parameters; segment the amplitude of the baseline-removed mixed signal using a preset segmentation method to obtain a noise amplitude component set and a noise-free amplitude component set; obtain the first target parameter according to the amplitude change characteristics of the noise amplitude component set and the noise-free amplitude component set and in combination with the envelope characteristic parameters; adjust the segmentation method of the baseline-removed mixed signal to obtain the optimal noise-free amplitude component set according to the change of the first target parameter; fit the optimal noise-free amplitude component set with a preset fitting function, and obtain the second target parameter according to the fitting result.
[0079] Step S4: traverse all target filter windows from the maximum size filter window to the preset size filter window to obtain the second target parameter corresponding to each size filter window; select the optimal filter window according to all the second target parameters and obtain the optimal decomposition result.
[0080] Since the specific implementation process of a data decomposition method based on the Internet of Things has been described in detail in the above-mentioned data quality detection method and system based on the Internet of Things, it will not be repeated here.
[0081] In summary, the present invention faces the technical problem that the existing methods have unsatisfactory noise decomposition effects on IoT sensor devices. First, according to the characteristics of the continuous changes in baseline signal parameters under filter windows of different sizes, the maximum size filter window is obtained to determine the size range of the optimal size filter window corresponding to the optimal decomposition effect; further, taking any size filter window as an example, the envelope change characteristics of the baseline-removed signal are analyzed, and the amplitude characteristics of the two component sets obtained by segmenting the baseline-removed mixed signal are combined to obtain the optimal noise-free amplitude component set; further, a preset fitting function is used in combination with the optimal noise-free amplitude component set to obtain a second target parameter that can judge the decomposition result, and the optimal decomposition result is screened out according to the second target parameters of all size windows. The present invention constructs a correlation between the decomposition components, so that the determination process of the independent components is a mutual verification process, avoiding the problem that the noise component and the fluctuation component cannot be decomposed using the independent component analysis algorithm, and the problem of confusion between the noise component and the fluctuation component, thereby greatly improving the decomposition accuracy of the sensor data.
[0082] It should be noted that the sequence of the above embodiments of the present invention is only for description 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.
[0083] 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.
Claims
1. A data quality detection method based on the Internet of Things, It is characterized in that The method comprises: Acquire mixed signals from IoT sensors; Processing the mixed signal according to a window filtering algorithm of a preset size filtering window to obtain a baseline signal; analyzing the change characteristics of the baseline signal to obtain baseline signal parameters; increasing the preset size filtering window to obtain a maximum size filtering window according to the change of the baseline signal parameters; Select any size filter window between the maximum size filter window and the preset size filter window as the target filter window; under the target filter window, obtain a target baseline signal; obtain a baseline-removed mixed signal according to the target baseline signal and the mixed signal; analyze the envelope change characteristics of the baseline-removed mixed signal to obtain envelope characteristic parameters; segment the amplitude of the baseline-removed mixed signal using a preset segmentation method to obtain a noise amplitude component set and a noise-free amplitude component set; obtain a first target parameter according to the amplitude change characteristics of the noise amplitude component set and the noise-free amplitude component set and in combination with the envelope characteristic parameters; adjust the segmentation method of the baseline-removed mixed signal to obtain an optimal noise-free amplitude component set according to the change of the first target parameter; fit the optimal noise-free amplitude component set with a preset fitting function, and obtain a second target parameter according to the fitting result; Traversing all target filter windows from the maximum size filter window to the preset size filter window to obtain a second target parameter corresponding to each size filter window; selecting an optimal filter window according to all the second target parameters and obtaining an optimal decomposition result; Performing quality detection on IoT sensor signal data according to the optimal decomposition result; The method for obtaining the baseline signal parameters includes: Obtain the slope of the baseline signal at each sampling point; obtain the slope variance according to the slopes of all sampling points, obtain the amplitude range of the baseline signal and normalize it by negative correlation mapping, use the normalization result as the denominator, the slope variance as the numerator, and the fraction as the baseline signal parameter; The method for obtaining the envelope characteristic parameters includes: Obtaining a maximum envelope of the baseline-removed mixed signal, and taking a standard deviation of envelope values on the maximum envelope as an envelope characteristic parameter; The method for obtaining the first target parameter includes: According to the amplitude statistical characteristics of the noise amplitude component set and the noise-free amplitude component set, the mean and standard deviation corresponding to the respective sets are obtained; the kurtosis parameter is obtained according to the mean and standard deviation of the amplitude of the noise-free amplitude component set; the absolute value of the difference between the standard deviation of the noise amplitude component set and the envelope characteristic parameter is used as a penalty parameter; the sum of the kurtosis parameter and the penalty parameter is used as a first target parameter; The method for obtaining the second target parameter includes: Obtain the residual in the fitting result; obtain the adjacent spacing of the non-zero residual in the time series, and obtain the adjacent spacing standard deviation according to the adjacent spacing; use the standard deviation of the residual and the Euclidean norm of the adjacent spacing standard deviation as the first parameter, use the mean of the residual and the sum of the preset zero division parameter as the second parameter, obtain the quotient of the first parameter and the second parameter, and use the quotient as the second target parameter; The method for obtaining the optimal decomposition result includes: The largest second target parameter among all the second target parameters is taken as the optimal second target parameter; the decomposition result corresponding to the optimal second target parameter is taken as the optimal decomposition result; the optimal decomposition result includes: the baseline component corresponding to the baseline signal, the noise component corresponding to the noise amplitude component set, the fluctuation component corresponding to the residual in the fitting result, and the normal signal component.
2. According to the data quality detection method based on the Internet of Things described in claim 1, It is characterized in that The method for obtaining the maximum size filtering window includes: The size of the preset size filter window is increased, and when the minimum value of the baseline signal parameter is obtained, the filter window of the corresponding size is the maximum size filter window.
3. According to the data quality detection method based on the Internet of Things described in claim 1, It is characterized in that The method for obtaining the optimal noise-free amplitude component set includes: When the first target parameter reaches the minimum, the corresponding noise-free amplitude component set is the optimal noise-free amplitude component set.
4. According to the data quality detection method based on the Internet of Things described in claim 1, It is characterized in that The method for performing quality detection on IoT sensor signal data according to the optimal decomposition result comprises: The signal-to-noise ratio of the mixed signal of the IoT sensor is obtained. When the signal-to-noise ratio is lower than a preset signal-to-noise ratio threshold, it is determined that the data of the IoT sensor has quality problems.
5. A data quality detection system based on the Internet of Things, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of a data quality detection method based on the Internet of Things as described in any one of claims 1 to 4 are implemented.
