Data denoising method, device, computer-readable storage medium and electronic device

By performing exception processing and wavelet packet decomposition on ocean energy power station data, the noise problem in ocean energy power station data is solved, and the data quality and analysis accuracy are improved.

CN114153824BActive Publication Date: 2024-09-06DALIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010933254.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-08
Publication Date
2024-09-06
Estimated Expiration
2040-09-08

AI Technical Summary

Technical Problem

The operating data collected in ocean energy power stations is complex and contains a large amount of inaccurate and abnormal data, which affects the accuracy of data analysis. The existing technology lacks targeted data noise reduction technology.

Method used

By obtaining the time series data collected at the measurement points of the marine power station, we perform exception processing, determine the wavelet basis function and decomposition level, perform discrete wavelet packet decomposition, estimate the decomposition coefficient that does not contain noise, and use the inverse wavelet transform formula to reconstruct the denoising time. sequence data.

Benefits of technology

The quality of the data is improved, ensuring that the denoised data more accurately reflects the operation of the ocean power station, reducing noise interference and improving the accuracy of subsequent analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114153824B
    Figure CN114153824B
Patent Text Reader

Abstract

The present invention discloses a data denoising method, device, readable medium and electronic device, the method comprising: obtaining second time series data obtained after abnormal data processing for first time series data collected at a measuring point of an ocean power station; determining a wavelet basis function and a decomposition level according to the second time series data; performing discrete wavelet packet decomposition on the second time series data according to the wavelet basis function and the decomposition level to determine at least two first decomposition coefficients corresponding to the decomposition level; determining second decomposition coefficients corresponding to each first decomposition coefficient, the second decomposition coefficient being a decomposition coefficient estimated from the first decomposition coefficient and not containing noise; reconstructing the second time series data according to the second decomposition coefficients corresponding to each first decomposition coefficient and an inverse wavelet transform formula to determine denoised time series data. The technical solution of the present invention can realize denoising of the collected operation data of an ocean power station.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of energy technology, and in particular to a data denoising method, a device, a computer-readable storage medium and an electronic device. Background Art

[0002] Using ocean energy to generate electricity is a renewable and clean energy source. Ocean energy has many advantages such as being inexhaustible, having high energy density and being highly predictable. Therefore, it has received extensive attention and has been vigorously developed in recent years, and is a hot topic in the field of new energy exploration.

[0003] In an ocean energy power station, the operation data of the ocean energy power station can be collected and analyzed to better monitor the working status of the ocean energy power station.

[0004] It is understandable that the operating data collected in an ocean power station is usually very complex and may be accompanied by a large amount of inaccurate and abnormal data, which will directly affect the accuracy of subsequent data analysis and processing results. The prior art lacks a targeted data noise reduction technology to solve this technical problem. Summary of the invention

[0005] The present invention provides a data denoising method, device, readable medium and electronic equipment, which can realize denoising processing of collected operating data of an ocean tidal energy power generation platform.

[0006] In a first aspect, the present invention provides a data denoising method, comprising:

[0007] Acquire second time series data obtained by performing abnormal data processing on first time series data collected at a measuring point of an ocean power station;

[0008] Determining a wavelet basis function and a decomposition level according to the second time series data;

[0009] According to the wavelet basis function and the decomposition level, performing discrete wavelet packet decomposition on the second time series data to determine at least two first decomposition coefficients corresponding to the decomposition level;

[0010] Determine second decomposition coefficients corresponding to the first decomposition coefficients, respectively, where the second decomposition coefficients are decomposition coefficients estimated from the first decomposition coefficients and do not contain noise;

[0011] The second time series data is reconstructed according to the second decomposition coefficients respectively corresponding to the first decomposition coefficients and an inverse wavelet transform formula to determine denoised time series data.

[0012] In a second aspect, the present invention provides a data noise reduction device, comprising:

[0013] An acquisition module is used to acquire second time series data obtained by performing abnormal data processing on first time series data collected at a measuring point of an ocean power station;

[0014] A parameter determination module, used for determining a wavelet basis function and a decomposition level according to the second time series data;

[0015] A decomposition module, configured to perform discrete wavelet packet decomposition on the second time series data according to the wavelet basis function and the decomposition level, so as to determine at least two first decomposition coefficients corresponding to the decomposition level;

[0016] An estimation module, used for determining second decomposition coefficients corresponding to the first decomposition coefficients, respectively, where the second decomposition coefficients are decomposition coefficients estimated from the first decomposition coefficients and excluding noise;

[0017] The reconstruction module is used to reconstruct the second time series data according to the second decomposition coefficients corresponding to the first decomposition coefficients and the inverse wavelet transform formula to determine the denoised time series data.

[0018] In a third aspect, the present invention provides a readable medium, comprising execution instructions. When a processor of an electronic device executes the execution instructions, the electronic device executes any method described in the first aspect.

[0019] In a fourth aspect, the present invention provides an electronic device, comprising a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor executes any method described in the first aspect.

[0020] The present invention provides a data denoising method, device, computer-readable storage medium and electronic device. The method obtains second time series data obtained by performing abnormal data processing on first time series data collected at a measuring point of an ocean power station. Here, the second time series data is time series data after performing abnormal data processing on the first time series data, thereby reducing the influence of abnormal data on the second time series data, thereby ensuring that the second time series can more accurately reflect the operation of the ocean power station. Then, according to the second time series data, a wavelet basis function and a decomposition level are determined. Then, according to the wavelet basis function and the decomposition level, a discrete wavelet packet decomposition is performed on the second time series data to determine a plurality of first decomposition coefficients corresponding to the decomposition level. Then, second decomposition coefficients corresponding to each first decomposition coefficient are determined. The second decomposition coefficients are decomposition coefficients that do not contain noise estimated from the first decomposition coefficients. Then, according to the second decomposition coefficients corresponding to each first decomposition coefficient and an inverse wavelet transform formula, the second time series data is reconstructed to determine denoised time series data. The denoised time series data obtained improves data quality because the decomposition coefficients that do not contain noise in the decomposition coefficients are considered. In summary, through the technical solution provided by the present invention, noise reduction processing of the operating data of the ocean power station can be achieved while ensuring the noise reduction effect.

[0021] The further effects of the above-mentioned non-conventional preferred manner will be described below in conjunction with specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the present embodiment or the existing technical solution, the drawings required for use in the embodiment or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0023] Figure 1 A schematic diagram of a flow chart of a data noise reduction method provided by an embodiment of the present invention;

[0024] Figure 2 A schematic diagram of a decomposition result in a data denoising method provided by an embodiment of the present invention;

[0025] Figure 3 A schematic diagram of a flow chart of a data noise reduction device provided by an embodiment of the present invention;

[0026] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] like Figure 1 As shown, it is a specific embodiment of the data denoising method provided by the present invention. In this embodiment, the method specifically includes the following steps:

[0029] Step 101: Acquire second time series data obtained by performing abnormal data processing on first time series data collected at a measuring point of an ocean power station.

[0030] Specifically, the ocean energy power station can be a tidal power station, an ocean temperature difference power station, a wave power station, a tidal power station or a seawater salt concentration difference power station. The embodiment of the present invention does not make any specific limitation, and a tidal power station is preferred.

[0031] Specifically, the measuring point can be understood as a data acquisition device that can be used to collect the operating data of the ocean power station. Considering that the data generated by the ocean power station during operation is time-sensitive, optionally, a sensor that outputs the collected data in the form of a time series can be used to set the measuring point to obtain the first time series data of the ocean power station.

[0032] Specifically, the first time series data can be understood as unprocessed data, that is, original time series data, including a variable corresponding to a certain device in an ocean power station. For example, when the ocean power station is a tidal power station, the equipment in the tidal power station includes any one of a turbine, a motor, a frame, and a main bearing. When the device is a turbine, the variable is any one of a turbine speed, a turbine pressure, and a turbine temperature. When the device is a motor, the variable is any one of a motor speed, a motor current, and a motor temperature. When the device is a frame, the variable is any one of a frame displacement, a frame vibration, and a frame corrosion degree. When the device is a main bearing shaft, the variable is the main bearing vibration or the main bearing torque. It should be noted that different variables of different devices are processed in the same way.

[0033] Specifically, the second time series data can be understood as the time series data obtained after the first time series data is processed for abnormal data. Considering that the first time series data is the original time series data collected by the measuring point, it is inevitable that there are defects of abnormal data such as measurement errors, outliers and noise, and the abnormal data in the first time series data may cause the average value, variance, etc. to deviate from the actual situation. Therefore, by processing the abnormal data of the first time series data, the impact of the abnormal data on the time series data is reduced, and the second time series data that can more accurately reflect the operation of the marine power station is determined, and the data quality of the second time series data is ensured, and the data quality of the denoised data obtained after the subsequent denoising processing using the second time series data is improved.

[0034] In one embodiment, the second time series data may be determined by the following method:

[0035] Acquire first time series data collected at a measuring point for an ocean power station; perform outlier detection and filtering on the first time series data to determine third time series data; perform null value filling on the third time series data to determine fourth time series data; perform singular value detection processing on the fourth time series data to determine second time series data.

[0036] Specifically, outliers can be understood as data anomalies caused by measurement point failures or data management processes. The detection and filtering of outliers belong to the existing technology and will not be described in detail in this embodiment. Different outlier detection and filtering methods can be selected in combination with the actual situation of the data. Optionally, outliers can be automatically detected and filtered through expert knowledge, trend regression fitting, or upper and lower effective values.

[0037] Specifically, null value filling can be understood as the data missing caused by the shutdown of measurement points and data storage in the marine power station. The null value filling method is a prior art and will not be elaborated here. Different null value filling methods can be selected based on the actual situation of the data. Optionally, the null value filling method can select upper and lower values, middle values ​​and average values, trend regression fitting or standard values.

[0038] Specifically, singular values ​​can be understood as data that misleads the trend, fit or prediction of the data. Considering that singular values ​​may affect the bias of data trends, change data fitting estimates or data prediction directions, if singular value detection is not performed, subsequent data analysis and mining may be greatly misleading, reducing the reference value of information mined from the data. Singular value detection and processing are both prior art, and this embodiment will not be described in detail here. The singular value detection and processing method can be selected in combination with the actual situation of the data. Optionally, the singular value detection method includes a local outlier factor method, a Mahalanobis distance method or a box plot method; optionally, singular value processing includes deletion, processing as a missing value, or correcting the singular value according to the average value of multiple data points in the neighborhood.

[0039] This embodiment performs abnormal value detection and filtering, null value filling and singular value detection processing on the first time series data in sequence, thereby ensuring that the second time series data can more accurately reflect the operation status of the ocean power station.

[0040] Step 102: Determine a wavelet basis function and a decomposition level according to the second time series data.

[0041] Specifically, the wavelet basis function can be understood as a series of functions obtained by scaling and translating the mother wavelet, which are used to construct the signal and make the signal easy to process by using its inherent characteristics. Among them, the mother wavelet is a type of wave function with a fast decaying finite length. The decomposition level can be understood as the number of decomposition layers.

[0042] In one embodiment, the wavelet basis function and the decomposition level can be determined by the following method:

[0043] Determine at least two candidate decomposition combinations, the decomposition combinations include candidate orthogonal wavelet basis functions and candidate decomposition levels, and different candidate decomposition combinations have different candidate orthogonal wavelet basis functions and / or candidate decomposition levels; perform discrete wavelet packet decomposition on the second time series data according to the candidate orthogonal wavelet basis functions and candidate decomposition levels in the candidate decomposition combinations, determine the decomposition results corresponding to each reference decomposition coefficient of the candidate decomposition level, and compare the decomposition results corresponding to each reference decomposition coefficient with the second time series data to determine evaluation information corresponding to the candidate decomposition combinations; determine a target decomposition combination from the multiple candidate decomposition combinations according to the evaluation information corresponding to the multiple candidate decomposition combinations; determine the candidate orthogonal wavelet basis functions and candidate decomposition levels in the target decomposition combination as the wavelet basis functions and the decomposition levels, respectively.

[0044] Specifically, determining at least two candidate decomposition combinations can be achieved in the following manner: selecting a number of candidate orthogonal wavelet basis functions and a number of decomposition levels, performing non-repetitive combinations of the candidate orthogonal wavelet basis functions and the decomposition levels, and determining a number of candidate decomposition combinations, each candidate decomposition combination consisting of a candidate orthogonal wavelet basis function and a decomposition level. Optionally, the several candidate orthogonal wavelet bases include but are not limited to Daubechies wavelet basis functions and Coiflet wavelet basis functions. Optionally, the several decomposition levels include but are not limited to 2 layers, 3 layers, 4 layers and 5 layers. It should be noted that the number of candidate decomposition combinations should be reasonable. Too many may affect the computational efficiency, and too few may not guarantee the decomposition effect of the selected decomposition combination.

[0045] Specifically, the evaluation information specifically refers to the information representation degree of the second time series data for evaluating the decomposition results corresponding to all reference decomposition coefficients in the candidate decomposition combination.

[0046] Specifically, the decomposition result corresponding to the reference decomposition coefficient can be understood as a time-frequency curve obtained after processing the second time series data based on the reference decomposition coefficient.

[0047] Optionally, determining a target decomposition combination from multiple candidate decomposition combinations based on the evaluation information respectively corresponding to the multiple candidate decomposition combinations can be achieved in the following manner: displaying the evaluation information respectively corresponding to the multiple candidate decomposition combinations, and the user clicking on the target decomposition combination based on the evaluation information respectively corresponding to the multiple candidate decomposition combinations, thereby determining the target decomposition combination.

[0048] In one embodiment, the evaluation information includes data trend similarity, and the evaluation information corresponding to the candidate decomposition combination can be determined by the following method:

[0049] Determine the data trend decomposition result from the decomposition results corresponding to each reference decomposition coefficient; determine the data trend similarity corresponding to the data trend decomposition result, the data trend similarity indicates the similarity between the data trend of the data trend decomposition result and the data trend of the second time series; add the data trend similarity corresponding to the data trend decomposition result to the evaluation information corresponding to the candidate decomposition combination.

[0050] Specifically, the number of data trend decomposition results is one. Considering that data trends can reflect the characteristics and methods of data changes, which is of great significance to subsequent data analysis, data trend decomposition results are selected to evaluate the information extraction effect of candidate decomposition combinations.

[0051] Optionally, the data trend similarity corresponding to the data trend decomposition result may be determined by the following implementation method.

[0052] As a possible implementation manner, all decomposition results and the second time series data are displayed, and the user selects a certain decomposition result as the data trend decomposition result, and inputs the data trend similarity corresponding to the data trend decomposition result.

[0053] As another possible implementation method, a comparison is performed based on the second time series data and each decomposition result to determine a data trend decomposition result from each of the decomposition results. The data trend decomposition result should be the one among the decomposition results that is closest to the data trend of the second time series data. Then, the data trend of the data trend decomposition result is identified and compared with the result of identifying the data trend of the second time series data, so as to determine the data trend similarity corresponding to the data trend decomposition result.

[0054] It should be noted that the higher the data trend similarity, the closer the data trend decomposition result is to the data trend of the second time series data. It can also be understood that the data trend information of the second time series data decomposed by the candidate decomposition combination has relatively high accuracy and effectiveness. Determining the data trend similarity corresponding to the data trend decomposition result is a prior art, and this embodiment will not go into details about this.

[0055] Correspondingly, according to the evaluation information corresponding to multiple candidate decomposition combinations, determining the target decomposition combination from multiple candidate decomposition combinations can be achieved by the following method: determining the maximum value of the data trend similarities corresponding to the multiple candidate decomposition combinations, and determining the candidate decomposition combination corresponding to the maximum value as the target decomposition combination.

[0056] In one embodiment, the evaluation information includes data trend similarity and high-frequency component similarity. Based on the above embodiment, the high-frequency component similarity in the evaluation information can be determined by the following method:

[0057] According to the decomposition results corresponding to each reference decomposition coefficient, the high-frequency decomposition result is determined; according to the high-frequency decomposition result, the high-frequency component similarity corresponding to the high-frequency decomposition result is determined, and the high-frequency component similarity indicates the similarity between the high-frequency decomposition result and the high-frequency component of the second time series; the high-frequency component similarity corresponding to the high-frequency decomposition result is added to the evaluation information corresponding to the candidate decomposition combination.

[0058] Considering that high-frequency components indicate the faster-changing parts of the data and have a greater impact on the data, high-frequency decomposition results are selected to evaluate the information extraction effect of candidate decomposition combinations.

[0059] Specifically, the high-frequency decomposition result can be understood as the result of fusing other decomposition results other than the data trend decomposition result. For example, there are 8 reference decomposition coefficients in total, and one of the 8 reference decomposition coefficients is a data trend decomposition result. Then, the result of fusing the other 7 decomposition results is the high-frequency decomposition result. Among them, the result of fusing other decomposition results can be understood as expressing the other decomposition results in the same coordinate system, thereby obtaining a time-frequency curve obtained by fusing other decomposition results.

[0060] Optionally, the high-frequency decomposition result and the second time series data are displayed, and the user inputs the similarity of the high-frequency components of the high-frequency decomposition result and the second time series data to obtain the high-frequency component similarity corresponding to the high-frequency decomposition result.

[0061] Optionally, the high-frequency components in the high-frequency decomposition result are identified and compared with the result of identifying the high-frequency components of the second time series data, so as to determine the similarity of the high-frequency components corresponding to the high-frequency decomposition result.

[0062] It should be noted that the higher the similarity of the high-frequency components, the more accurately the high-frequency decomposition result can represent the high-frequency components in the second time series data. It can also be understood that the high-frequency component information of the second time series data decomposed by the candidate decomposition combination has relatively high accuracy and effectiveness.

[0063] It should also be noted that determining the similarity of high-frequency components corresponding to the high-frequency decomposition results is a prior art, which will not be described in detail in this embodiment.

[0064] Correspondingly, according to the evaluation information corresponding to multiple candidate decomposition combinations, determining the target decomposition combination from multiple candidate decomposition combinations can be achieved by the following method: comparing the data trend similarities and high-frequency component similarities corresponding to multiple candidate decomposition combinations, determining a candidate decomposition combination with greater data trend similarity and high-frequency component similarity, and determining the candidate decomposition combination as the target decomposition combination.

[0065] In one embodiment, the evaluation information includes data trend similarity, high-frequency component similarity, and high-frequency proportion. Based on the above embodiment, the high-frequency proportion in the evaluation information can be determined by the following method:

[0066] According to the high-frequency decomposition results, determine the high-frequency proportion corresponding to the high-frequency decomposition results, and the high-frequency proportion is determined based on the frequency interval of the high-frequency decomposition results and the frequency interval of the data trend decomposition results; add the high-frequency proportion corresponding to the high-frequency decomposition results to the evaluation information corresponding to the candidate decomposition combination.

[0067] Specifically, the high frequency proportion corresponding to the high frequency decomposition result can be the ratio of the difference between the maximum and minimum values ​​of the frequency interval of the high frequency decomposition result to the difference between the maximum and minimum values ​​of the frequency interval of the data trend decomposition result.

[0068] Correspondingly, according to the evaluation information corresponding to multiple candidate decomposition combinations, determining the target decomposition combination from multiple candidate decomposition combinations can be achieved by the following method: comparing the data trend similarity, high-frequency component similarity and high-frequency proportion corresponding to the multiple candidate decomposition combinations, determining the candidate decomposition combination with large data trend similarity and high-frequency component similarity and small high-frequency proportion, and determining the candidate decomposition combination as the target decomposition combination.

[0069] Please refer to Figure 2 , assuming Figure 2 The figure shows the decomposition results corresponding to the 8 reference decomposition coefficients obtained after the discrete wavelet packet decomposition of the second time series data is performed based on the candidate decomposition level of 3 layers and the candidate orthogonal wavelet basis function of Daubechies wavelet basis function. Among them, A represents the data trend decomposition result, B represents the high-frequency decomposition result, and the high-frequency decomposition result is the fusion of the other 7 decomposition results except the data trend decomposition result. It is assumed that after comparing the evaluation information corresponding to several candidate decomposition combinations, Figure 2 The data trend similarity of the data trend decomposition results and the high-frequency component similarity of the high-frequency decomposition results are both high. At the same time, the high frequency proportion of the high-frequency decomposition results is small. The decomposition level can be determined as 3 layers, and the wavelet basis function can be determined as the Daubechies wavelet basis function.

[0070] This embodiment judges the effect of different wavelet basis functions and decomposition levels on the detail information extraction of the second time series data, thereby selecting a suitable wavelet basis function and decomposition level for the second time series data, improving the accuracy and effectiveness of subsequent data denoising, and ensuring the data denoising effect.

[0071] Step 103: Perform discrete wavelet packet decomposition on the second time series data according to the wavelet basis function and the decomposition level to determine at least two first decomposition coefficients corresponding to the decomposition level.

[0072] In order to obtain the information of the high-frequency part and achieve a finer and adjustable resolution, this embodiment selects discrete wavelet packets to decompose the second time series data.

[0073] In one embodiment, the decomposition level is 3, the wavelet basis function is the Daubechies wavelet basis function, the number of first decomposition coefficients is 8, and the 8 first decomposition coefficients are formed by 4 scaling coefficients and 4 wavelet coefficients.

[0074] Step 104: determine second decomposition coefficients corresponding to the first decomposition coefficients, respectively, where the second decomposition coefficients are decomposition coefficients that are estimated from the first decomposition coefficients and do not contain noise.

[0075] In one embodiment, for each first decomposition coefficient, a Bayesian threshold denoising analysis is performed on the first decomposition coefficient to determine a second decomposition coefficient corresponding to the first decomposition coefficient.

[0076] Considering that it is difficult to determine how much noise is contained in the first time series data. If the time series data with less noise is over-denoised, useful information may be removed from the data, resulting in reduced accuracy of the results of subsequent analysis. If the data with more noise is not sufficiently denoised, the noise present in the data will lead to inaccurate subsequent analysis. The denoising method of selecting the Bayesian threshold takes into account the uncertainty of noisy data and avoids the strict filtering of all signals by the traditional wavelet threshold method. It can improve the accuracy and effectiveness of data denoising, balance excessive denoising and insufficient denoising, and thus obtain a more accurate denoising effect.

[0077] It should be noted that this embodiment is not intended to limit the Bayesian threshold denoising method, and any Bayesian threshold denoising method in the prior art may be used.

[0078] Optionally, assume that the kth first decomposition coefficient of the jth layer is d jk (j=j0,…,J-1; k=0,1,…,2 j -1), the first decomposition coefficient d jk The Gaussian white noise ε jk pollution, then d jk and ε jk The relationship is shown in the following formula (1):

[0079]

[0080] in, represents the noise-free coefficient, the noise term ε jk ~N(0,1) is an independent and identically distributed error vector, σ j It represents the standard deviation of the noise in the j-th layer decomposition.

[0081] Optionally, for and The conditional distribution of is shown in the following formula (2):

[0082]

[0083] in, Noise-free coefficient conditional estimate.

[0084] Formula (2) is the conditional distribution expression of formula (1), assuming The prior distribution of is shown in the following formula (3):

[0085]

[0086] Among them, γ jk is an independent Bernoulli distribution π j A binary random variable, that is, p(γ jk =1) = 1- p(γ jk =0) = π j ; Denotes the jth layer The scale can be obtained by the sigma assumption. In practical applications, each first decomposition coefficient in the jth layer is assigned the same value. and π j , using the median of the first decomposition coefficients of the discrete wavelet packet of the jth layer and a Bayesian threshold factor η jk The ratio of the noise standard deviation σ j , optionally, π j =0.5, τ j =1, Bayesian threshold factor η jk It is 0.6745.

[0087] According to formula (2) and (3), we can get The posterior distribution of is shown in the following formula (4):

[0088]

[0089] exist for When, through a normal distribution and the mass δ(0) at zero, we get The marginal conditional posterior distribution of is shown in the following formula (5):

[0090]

[0091] in, is the posterior distribution of formula (4), and the non-zero

[0092]

[0093] Among them, η jk The expression of is shown in the following formula (7):

[0094]

[0095] Specifically, There are only two possible situations. or Use γ jk =0 means Use γ jk =1 means Assumption γ jk = 0 and γ jk =1 holds true is p(γ jk =0) and p(γ jk =1), the posterior probability is as well as and γ jk = 0 and γ jk =1 posterior ratio η jk , η jk is also the Bayesian threshold factor, then when hour, That is, the second decomposition coefficient is 0, otherwise That is the final decomposition coefficient, where I(η jk <1) means when η jk <1, I(n jk <1)=1.

[0096] Step 105: reconstruct the second time series data according to the second decomposition coefficients corresponding to the first decomposition coefficients and an inverse wavelet transform formula to determine denoised time series data.

[0097] Specifically, the inverse wavelet transform formula is as follows:

[0098]

[0099] in, Represents the reconstructed time series data; s j (k) represents the scaling factor of the kth node in the jth layer; φ j,k (t i ) indicates that the kth node in the jth layer is i Scaling function of time; w j (k) represents the wavelet coefficient of the kth node in the jth layer; ψ j,k (t i ) indicates that the kth node in the jth layer is in the tth i The wavelet basis function at time .

[0100] It should be noted that the second decomposition coefficients corresponding to the first decomposition coefficients and the inverse wavelet transform formula are conventional technologies for reconstructing the second time series data, which will not be described in detail in this embodiment.

[0101] The denoised time series data obtained in this embodiment reduces noise interference in the data and improves the accuracy of subsequent analysis.

[0102] It should also be noted that the data denoising method provided in this embodiment is applied to an edge server or a local server, preferably an edge server. Afterwards, the denoised time series data is transmitted to a data center or the cloud through the edge server or the local server, thereby reducing the cloud computing workload and data transmission volume.

[0103] It can be seen from the above technical scheme that the beneficial effects of this embodiment are: by performing abnormal data processing on the first time series data, the quality of the data is improved, and the second time series data that can more accurately reflect the operation status of the marine power station is obtained, and the denoising method of discrete wavelet packet plus Bayesian threshold is selected to denoise the second time series data, which balances excessive denoising and insufficient denoising, and ensures the denoising effect of the second time series data, thereby obtaining denoised time series data with relatively high reference value and data quality, reducing noise interference in the denoised time series data, and ensuring the accuracy of subsequent data analysis based on the denoised time series data.

[0104] Based on the same concept as the embodiment of the method of the present invention, please refer to Figure 3 This embodiment also provides a data denoising device, including:

[0105] The data acquisition module 301 is used to acquire second time series data obtained by performing abnormal data processing on first time series data collected at a measuring point of an ocean power station;

[0106] A parameter determination module 302, used to determine a wavelet basis function and a decomposition level according to the second time series data;

[0107] A decomposition module 303, configured to perform discrete wavelet packet decomposition on the second time series data according to the wavelet basis function and the decomposition level, so as to determine at least two first decomposition coefficients corresponding to the decomposition level;

[0108] An estimation module 304 is used to determine second decomposition coefficients corresponding to the first decomposition coefficients, respectively, where the second decomposition coefficients are decomposition coefficients estimated from the first decomposition coefficients and do not contain noise;

[0109] The reconstruction module 305 is used to reconstruct the second time series data according to the second decomposition coefficients corresponding to the first decomposition coefficients and the inverse wavelet transform formula to determine the denoised time series data.

[0110] It should be noted that the data denoising device provided in this embodiment is applied in an edge server or a local server, preferably an edge server. Afterwards, the denoised time series data is transmitted to a data center or a cloud via the edge server or the local server, thereby reducing the cloud computing workload and data transmission volume.

[0111] In addition Figure 3 Based on the embodiment shown, preferably, the parameter determination module 302 includes: a combination unit, an evaluation unit and a parameter determination unit; wherein,

[0112] The combination unit is used to determine at least two candidate decomposition combinations, wherein the decomposition combinations include candidate orthogonal wavelet basis functions and candidate decomposition levels, and different candidate decomposition combinations have different candidate orthogonal wavelet basis functions and / or candidate decomposition levels;

[0113] The evaluation unit is used to perform discrete wavelet packet decomposition on the second time series data according to the candidate orthogonal wavelet basis functions and the candidate decomposition levels in the candidate decomposition combination, determine the decomposition results corresponding to each reference decomposition coefficient of the candidate decomposition level, and compare the decomposition results corresponding to each reference decomposition coefficient with the second time series data to determine the evaluation information corresponding to the candidate decomposition combination;

[0114] The parameter determination unit is used to determine a target decomposition combination from a plurality of candidate decomposition combinations according to evaluation information respectively corresponding to the plurality of candidate decomposition combinations, and to determine the candidate orthogonal wavelet basis functions and candidate decomposition levels in the target decomposition combination as wavelet basis functions and decomposition levels respectively.

[0115] In one embodiment, the evaluation unit includes: a first result determination subunit, a first similarity determination subunit and a first adding subunit; wherein,

[0116] The first result determination subunit is used to determine the data trend decomposition result from the decomposition results corresponding to each of the reference decomposition coefficients;

[0117] A first similarity determination subunit is used to determine a data trend similarity corresponding to the data trend decomposition result, wherein the data trend similarity indicates a similarity between a data trend of the data trend decomposition result and a data trend of the second time series;

[0118] The first adding subunit is used to add the data trend similarity corresponding to the data trend decomposition result to the evaluation information corresponding to the candidate decomposition combination.

[0119] In one embodiment, the evaluation unit further includes: a second result determination subunit, a second similarity determination subunit and a second adding subunit; wherein,

[0120] The second result determination subunit is used to determine the high-frequency decomposition result according to the decomposition results corresponding to each of the reference decomposition coefficients;

[0121] The second similarity determination subunit is used to determine the high-frequency component similarity corresponding to the high-frequency decomposition result according to the high-frequency decomposition result, wherein the high-frequency component similarity indicates the similarity between the high-frequency decomposition result and the high-frequency component of the second time series;

[0122] The second adding subunit is used to add the high-frequency component similarity corresponding to the high-frequency decomposition result to the evaluation information corresponding to the candidate decomposition combination.

[0123] In one embodiment, the evaluation unit further includes: a proportion determination subunit and a third adding subunit; wherein,

[0124] The proportion determination subunit is used to determine the high frequency proportion corresponding to the high frequency decomposition result according to the high frequency decomposition result, and the high frequency proportion is determined based on the frequency interval of the high frequency decomposition result and the frequency interval of the data trend decomposition result;

[0125] The third adding subunit is used to add the high frequency proportion corresponding to the high frequency decomposition result to the evaluation information corresponding to the candidate decomposition combination.

[0126] In one embodiment, the number of decomposition layers includes 3 layers;

[0127] The wavelet basis function is a Daubechies wavelet basis function or a Coiflet wavelet basis function.

[0128] In one embodiment, the estimation module 304 is used to perform a Bayesian threshold denoising analysis on the first decomposition coefficient to determine a second decomposition coefficient corresponding to the first decomposition coefficient.

[0129] In one embodiment, the data acquisition module 301 includes: an acquisition unit, an abnormal value processing unit, a null value processing unit and a singular value processing unit; wherein,

[0130] The acquisition unit is used to acquire first time series data collected at a measuring point for an ocean power station;

[0131] The outlier processing unit is used to perform outlier detection and filtering on the first time series data to determine the third time series data;

[0132] The null value processing unit is used to perform null value filling on the third time series data to determine fourth time series data;

[0133] The singular value processing unit is used to perform singular value detection processing on the fourth time series data to determine the second time series data.

[0134] Figure 4 4 is a schematic diagram of the structure of an electronic device provided in this embodiment. At the hardware level, the electronic device includes a processor 401 and a memory 402 storing execution instructions, and optionally also includes an internal bus 403 and a network interface 404. Among them, the memory 402 may include a memory 4021, such as a high-speed random access memory (Random-Access Memory, RAM), and may also include a non-volatile memory 4022 (non-volatile memory), such as at least one disk storage, etc.; the processor 401, the network interface 404 and the memory 402 can be interconnected through an internal bus 403, and the internal bus 403 can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc.; the internal bus 403 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the figure, but it does not mean that there is only one bus or one type of bus. Of course, the electronic device may also include hardware required for other services. When the processor 401 executes the execution instruction stored in the memory 402, the processor 401 executes the method in any embodiment of the present invention, and is at least used to execute the following steps: Figure 1 The method shown.

[0135] In a possible implementation, the processor reads the corresponding execution instruction from the non-volatile memory into the memory and then runs it, and can also obtain the corresponding execution instruction from other devices to form a data denoising device at the logical level. The processor executes the execution instruction stored in the memory to implement a data denoising method provided in any embodiment of the present invention through the execution of the execution instruction.

[0136] The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in this embodiment can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0137] This embodiment also provides a computer-readable storage medium, including an execution instruction. When a processor of an electronic device executes the execution instruction, the processor executes the method provided in any embodiment of the present invention. The electronic device may be specifically as follows Figure 4 The electronic device shown; the execution instruction is a computer program corresponding to a data denoising device.

[0138] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods or computer program products. Therefore, the present invention may be implemented in the form of a complete hardware embodiment, a complete software embodiment, or a combination of software and hardware.

[0139] The various embodiments of the present invention are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0140] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0141] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims

1. A data denoising method, applied to an edge server or a local server, transmitting denoised time series data to a data centre or a cloud through the edge server or the local server, so that the data centre or the cloud can monitor the working status of an ocean power station based on the denoised time series data; characterized in that: The method comprises: Acquire second time series data obtained by performing abnormal data processing on first time series data collected at a measuring point of an ocean power station; Determining a wavelet basis function and a decomposition level according to the second time series data; According to the wavelet basis function and the decomposition level, performing discrete wavelet packet decomposition on the second time series data to determine at least two first decomposition coefficients corresponding to the decomposition level; Determine second decomposition coefficients corresponding to the first decomposition coefficients, respectively, where the second decomposition coefficients are decomposition coefficients estimated from the first decomposition coefficients and do not contain noise; The second time series data is reconstructed according to the second decomposition coefficients respectively corresponding to the first decomposition coefficients and an inverse wavelet transform formula to determine the denoised time series data.

2. The method according to claim 1, characterized in that The step of determining a wavelet basis function and a decomposition level according to the second time series data includes: Determine at least two candidate decomposition combinations, the decomposition combinations comprising candidate orthogonal wavelet basis functions and candidate decomposition levels, and different candidate decomposition combinations have different candidate orthogonal wavelet basis functions and / or candidate decomposition levels; According to the candidate orthogonal wavelet basis functions and the candidate decomposition levels in the candidate decomposition combination, the second time series data is subjected to discrete wavelet packet decomposition, and the decomposition results corresponding to each reference decomposition coefficient of the candidate decomposition level are determined, and the decomposition results corresponding to each reference decomposition coefficient are compared with the second time series data to determine the evaluation information corresponding to the candidate decomposition combination; According to the evaluation information respectively corresponding to the plurality of candidate decomposition combinations, a target decomposition combination is determined from the plurality of candidate decomposition combinations, and the candidate orthogonal wavelet basis functions and candidate decomposition levels in the target decomposition combination are respectively determined as the wavelet basis functions and the decomposition levels.

3. The method according to claim 2, characterized in that The step of comparing the decomposition results corresponding to each of the reference decomposition coefficients with the second time series data to determine the evaluation information corresponding to the candidate decomposition combination includes: Determine the data trend decomposition result from the decomposition results corresponding to each of the reference decomposition coefficients; Determine a data trend similarity corresponding to the data trend decomposition result, wherein the data trend similarity indicates a similarity between a data trend of the data trend decomposition result and a data trend of the second time series; The data trend similarity corresponding to the data trend decomposition result is added to the evaluation information corresponding to the candidate decomposition combination.

4. The method according to claim 3, characterized in that The step of comparing the decomposition results corresponding to each of the reference decomposition coefficients with the second time series data to determine the evaluation information corresponding to the candidate decomposition combination further includes: Determine a high-frequency decomposition result according to the decomposition results corresponding to each of the reference decomposition coefficients; Determine, according to the high-frequency decomposition result, a high-frequency component similarity corresponding to the high-frequency decomposition result, wherein the high-frequency component similarity indicates a similarity between the high-frequency decomposition result and a high-frequency component of the second time series; The high-frequency component similarity corresponding to the high-frequency decomposition result is added to the evaluation information corresponding to the candidate decomposition combination.

5. The method according to claim 4, characterized in that The step of comparing the decomposition results corresponding to each of the reference decomposition coefficients with the second time series data to determine the evaluation information corresponding to the candidate decomposition combination further includes: According to the high frequency decomposition result, determine the high frequency proportion corresponding to the high frequency decomposition result, wherein the high frequency proportion is determined based on the frequency interval of the high frequency decomposition result and the frequency interval of the data trend decomposition result; The high frequency proportion corresponding to the high frequency decomposition result is added to the evaluation information corresponding to the candidate decomposition combination.

6. The method according to claim 1, characterized in that The number of decomposition layers includes 3 layers; The wavelet basis function is a Daubechies wavelet basis function or a Coiflet wavelet basis function.

7. The method according to claim 1, characterized in that The determining of the second decomposition coefficients respectively corresponding to the first decomposition coefficients comprises: A Bayesian threshold denoising analysis is performed on the first decomposition coefficient to determine a second decomposition coefficient corresponding to the first decomposition coefficient.

8. The method according to claim 1, characterized in that The obtaining of second time series data obtained by performing abnormal data processing on first time series data collected at a measuring point of an ocean power station comprises: Acquire first time series data collected at a measuring point for an ocean power station; Performing outlier detection and filtering on the first time series data to determine third time series data; Filling the third time series data with null values ​​to determine fourth time series data; A singular value detection process is performed on the fourth time series data to determine the second time series data.

9. A data denoising device, applied to an edge server or a local server, transmitting denoised time series data to a data centre or a cloud through the edge server or the local server, so that the data centre or the cloud can monitor the working status of an ocean power station based on the denoised time series data; characterized in that: The device comprises: A data acquisition module, used to acquire second time series data obtained by performing abnormal data processing on first time series data collected at a measuring point of an ocean power station; A parameter determination module, used for determining a wavelet basis function and a decomposition level according to the second time series data; A decomposition module, configured to perform discrete wavelet packet decomposition on the second time series data according to the wavelet basis function and the decomposition level, so as to determine at least two first decomposition coefficients corresponding to the decomposition level; An estimation module, used to determine second decomposition coefficients corresponding to the first decomposition coefficients, respectively, where the second decomposition coefficients are decomposition coefficients estimated from the first decomposition coefficients and do not contain noise; The reconstruction module is used to reconstruct the second time series data according to the second decomposition coefficients corresponding to the first decomposition coefficients and the inverse wavelet transform formula to determine the denoised time series data.

10. An electronic device, comprising a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor executes the method according to any one of claims 1 to 8.