A data denoising method and device, electronic equipment and readable storage medium
By using thresholds determined based on parameters such as channel bandwidth, data volume, migration rate, and wavelet coefficients in cloud storage, and combining hard thresholding and soft thresholding methods, the problem of low data accuracy after noise reduction in cloud storage is solved, achieving a more efficient data noise reduction effect.
Patent Information
- Application Number
- CN202310900930.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-21
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-07-21
AI Technical Summary
In existing technologies, data denoising methods in cloud storage suffer from low accuracy after denoising, especially since hard thresholding is not thorough and soft thresholding has a constant deviation.
High-frequency data is processed using a pre-set threshold, which is determined based on channel bandwidth, data volume, migration rate, wavelet coefficient length, and decomposition level. Data processing is performed by combining hard threshold, soft threshold, and a function between the two, and the noise reduction effect is optimized by adjusting the coefficients.
It improves the accuracy of the data after noise reduction, effectively removes noise and retains the effective signal, and adapts to the needs of different data transmission environments.
Smart Images

Figure CN116962222B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and specifically to a data noise reduction method, apparatus, electronic device, and readable storage medium. Background Technology
[0002] With the development of cloud computing technology, the demand for cloud storage of network big data is constantly growing. Cloud storage is a virtual storage platform formed by the network, which migrates and stores network big data. In related technologies, due to the large amount of noise in cloud storage, it is necessary to denoise the data using soft or hard thresholding before migrating the denoised data. However, in these technologies, hard thresholding for data denoising results in incomplete noise removal, while soft thresholding has a constant bias, leading to low accuracy of the denoised data.
[0003] It is evident that the related technologies suffer from low accuracy of the data after noise reduction. Summary of the Invention
[0004] This invention provides a data noise reduction method, apparatus, electronic device, and readable storage medium to solve the problem of low accuracy of noise-reduced data in the prior art.
[0005] To solve the above problems, the present invention is implemented as follows:
[0006] In a first aspect, embodiments of the present invention provide a data noise reduction method, comprising:
[0007] Acquire target data, which includes high-frequency data, wherein the high-frequency data is signal data whose signal frequency is greater than a set frequency threshold;
[0008] The high-frequency data is subjected to target processing based on a pre-set threshold to obtain noise-reduced high-frequency data. The threshold is determined according to target parameters, which include at least the following: channel bandwidth, data volume of the high-frequency data, migration rate, length of wavelet coefficients corresponding to the target data, and number of decomposition layers corresponding to the high-frequency data.
[0009] Secondly, embodiments of the present invention also provide a data noise reduction device, comprising:
[0010] The acquisition module is used to acquire target data, which includes high-frequency data, and the high-frequency data is signal data whose signal frequency is greater than a set frequency threshold.
[0011] The noise reduction module is used to perform target processing on the high-frequency data based on a pre-set threshold to obtain noise-reduced high-frequency data. The threshold is determined according to target parameters, which include at least the following: channel bandwidth, data volume of the high-frequency data, migration rate, length of wavelet coefficients corresponding to the target data, and number of decomposition layers corresponding to the high-frequency data.
[0012] Thirdly, embodiments of the present invention also provide an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the data noise reduction method described in the first aspect above.
[0013] Fourthly, embodiments of the present invention also provide a readable storage medium for storing a program, which, when executed by a processor, implements the steps of the data noise reduction method described in the first aspect above.
[0014] In this embodiment of the application, target data including high-frequency data is acquired, and the high-frequency data is processed based on a pre-set threshold to obtain denoised high-frequency data. The threshold is determined by at least a portion of the channel bandwidth, the amount of high-frequency data, the migration rate, and the length of the wavelet coefficients corresponding to the target data, so that the threshold can better remove noise, retain effective signals, and improve the accuracy of the denoised data. Attached Figure Description
[0015] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a flowchart of a data noise reduction method provided in an embodiment of the present invention;
[0017] Figure 2 This is a schematic diagram of the noise reduction process provided in an embodiment of the present invention;
[0018] Figure 3 This is a structural diagram of a data noise reduction device provided in an embodiment of the present invention;
[0019] Figure 4 This is a structural diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0021] Please see Figure 1 , Figure 1 This is a flowchart of a data noise reduction method provided in an embodiment of the present invention, such as... Figure 1 As shown, it includes the following steps:
[0022] Step 101: Obtain target data, which includes high-frequency data, and the high-frequency data is signal data whose signal frequency is greater than a set frequency threshold.
[0023] The aforementioned target data refers to the data obtained after wavelet function decomposition of the original data, including high-frequency and low-frequency data. It should be understood that decomposing signal data using a wavelet function yields high-frequency and low-frequency data, and then denoising the high-frequency data achieves noise reduction. In this application, the target data is the data after wavelet decomposition, including the high-frequency data. By acquiring the target data and then denoising the high-frequency data within it, noise reduction is achieved.
[0024] Among them, high-frequency data refers to signal data whose frequency is greater than a set frequency threshold after wavelet function decomposition; correspondingly, low-frequency data refers to signal data whose frequency is less than or equal to a set frequency threshold after wavelet function decomposition.
[0025] It should be understood that noise in massive big data storage can be broadly categorized into two types: classification noise and missing noise. Classification noise specifically refers to errors in data input or insufficient label information in labeled data, making it difficult to distinguish between categories. This type of noise often occurs at boundaries, such as when data of some categories is replaced by other categories with similar characteristics, causing noise. Missing noise refers to the corruption of one or more attribute values in big data. Missing noise often originates from data transmission processes or failures in big data storage devices. This type of noise is random and deviates slightly from the correct values. In massive big data storage migration scenarios, this type of noise is one of the main factors affecting migration efficiency and integrity. Therefore, in this embodiment, the wavelet function chosen is the symN wavelet basis. This wavelet basis can flexibly balance the boundary problems brought about by massive big data, and it also has better symmetry, which is beneficial for reducing missing noise during big data migration.
[0026] Step 102: Perform target processing on the high-frequency data based on a pre-set threshold to obtain denoised high-frequency data. The threshold is determined according to target parameters, which include at least the following: channel bandwidth, data volume of the high-frequency data, migration rate, length of wavelet coefficients corresponding to the target data, and number of decomposition layers corresponding to the high-frequency data.
[0027] The aforementioned threshold is determined by factors such as channel bandwidth, the amount of high-frequency data, migration rate, the length of wavelet coefficients, and a portion of the decomposition layers. In contrast, the threshold in related technologies is determined solely by the signal length of the data. This allows the threshold in this application to be tailored to the characteristics of the target data (i.e., the amount of data, migration rate, the channel through which the target data is migrated, and the number of decomposition layers) compared to the threshold in related technologies. The target data is then processed using the threshold to ensure that the resulting denoised high-frequency data can better remove noise and retain the effective signal.
[0028] Among them, the change of the threshold is positively correlated with the channel bandwidth, data volume, and wavelet coefficient length, while the change of the threshold is negatively correlated with the migration rate and the number of decomposition layers.
[0029] For example, the threshold is determined by the migration rate, channel bandwidth, and data volume. When the migration rate is high or the channel bandwidth is low, less noise is generated during the migration process, resulting in a lower threshold, which helps retain the effective signal. Conversely, when the migration rate is low or the channel bandwidth is high, more noise is generated during the migration process, resulting in a higher threshold, which better removes noise from the data. Furthermore, when the data volume is large, more noise is generated during the migration process, leading to a higher threshold, which enhances the noise removal effect.
[0030] In this embodiment of the application, target data including high-frequency data is acquired, and the high-frequency data is processed based on a pre-set threshold to obtain denoised high-frequency data. The threshold is determined by at least a portion of the channel bandwidth, the amount of high-frequency data, the migration rate, and the length of the wavelet coefficients corresponding to the target data, so that the threshold can better remove noise, retain effective signals, and improve the accuracy of the denoised data.
[0031] In one embodiment, the high-frequency data is the wavelet coefficients of a signal, and the target processing of the high-frequency data based on a pre-set threshold to obtain denoised high-frequency data includes:
[0032] If the absolute value of the high-frequency data is greater than the threshold, the high-frequency data and the threshold are input into a set processing model for data processing to output the first sub-data.
[0033] If the absolute value of the high-frequency data is less than or equal to the threshold, the high-frequency data is set to zero to obtain the second sub-data.
[0034] The first sub-data and the second sub-data are combined to obtain the noise-reduced high-frequency data.
[0035] The above-mentioned processing model is used to process data whose absolute value is greater than a threshold in high-frequency data. The data can be processed using a hard threshold function, a soft threshold function, or a function between the hard and soft threshold functions. This ensures that the first sub-data processed by the processing model retains the effective signal in the high-frequency data.
[0036] If the absolute value of the high-frequency data is less than or equal to the threshold, the high-frequency data is set to zero to obtain the second sub-data, thereby filtering out noise in the high-frequency data.
[0037] After obtaining the first sub-data that retains the effective signal and the second sub-data that filters out noise, the first and second sub-data are combined to obtain the noise-reduced high-frequency data, so that the noise-reduced high-frequency data retains the effective signal while removing noise.
[0038] In one embodiment, the parameters of the setting processing model include a first adjustment coefficient and a second adjustment coefficient. The first adjustment coefficient is used to adjust the function shape of the noise-reduced high-frequency data, and the second adjustment coefficient is used to adjust the function asymptote of the noise-reduced high-frequency data.
[0039] After combining the first sub-data and the second sub-data to obtain the noise-reduced high-frequency data, the method further includes:
[0040] The first adjustment coefficient and the second adjustment coefficient in the set processing model are adjusted so that the first similarity is greater than the first set similarity threshold, where the first similarity is the similarity between the denoised high-frequency data and the pre-acquired wavelet coefficient model.
[0041] It should be understood that processing high-frequency data using either hard or soft thresholding functions results in relatively poor accuracy of the denoised high-frequency data. Specifically, the process of processing high-frequency data using a hard thresholding function involves substituting the high-frequency data and the threshold value into the hard thresholding function for data processing to output the first sub-data. The hard thresholding function is as follows:
[0042]
[0043] in, For wavelet coefficients of high-frequency data to reduce noise, wj,k Let λ represent the wavelet coefficients of the high-frequency data, and λ be the threshold. As can be seen from the hard threshold function, when the absolute value of the high-frequency data exceeds the threshold, that portion of the data is retained. However, in high-frequency data, both data exceeding and falling below the threshold include valid signals and noise. Clearly, the hard threshold function cannot effectively capture the noise in the data exceeding the threshold, resulting in low accuracy of the denoised data.
[0044] The process of processing high-frequency data using a soft threshold function is as follows: The high-frequency data and the threshold value are substituted into the soft threshold function for data processing to output the first sub-data. The soft threshold function is as follows:
[0045]
[0046] Here, is the sng() symbolic function. As seen from the soft thresholding function, even when the absolute value of high-frequency data exceeds the threshold, this portion of data can still be denoised using the function, removing some noise. However, the denoised high-frequency data processed by the soft thresholding function always has a constant deviation from the original high-frequency data, resulting in low accuracy of the denoised data.
[0047] Therefore, in this embodiment of the application, a first adjustment coefficient and a second adjustment coefficient are added to the processing model to improve the accuracy of the data after noise reduction.
[0048] The aforementioned wavelet coefficient model is a pre-defined ideal wavelet model. The accuracy of the denoised high-frequency data is determined by establishing the first similarity between the denoised high-frequency data and the wavelet coefficient model. Specifically, the closer the shape of the denoised high-frequency data is to the wavelet coefficient model (i.e., the larger the first similarity), the better the denoising effect is considered. On the other hand, if the shape of the denoised high-frequency data differs significantly from the wavelet coefficient model (i.e., the smaller the first similarity), the denoising effect is considered poor. In this case, it is necessary to adjust the first and second adjustment coefficients in the set processing model to improve the denoising effect of the set processing model.
[0049] In one embodiment, the step of performing target processing on the high-frequency data based on a pre-set threshold to obtain denoised high-frequency data includes:
[0050] The high-frequency data is processed based on a pre-set threshold and a first preset formula to obtain noise-reduced high-frequency data.
[0051] The first preset formula is:
[0052]
[0053] in, The high-frequency data for noise reduction. For the first sub-data, sng() is the symbolic function, and w j,k The high-frequency data is j, the decomposition level is n, the first adjustment coefficient is α, and the second adjustment coefficient is α∈[0,1].
[0054] The first preset formula mentioned above includes a first adjustment coefficient n, a second adjustment coefficient α, and a decomposition level j. The first adjustment coefficient n and the second adjustment coefficient α are used to adjust the first similarity between the denoised high-frequency data and the wavelet coefficient model, where α∈[0,1].
[0055] When α = 1, the function approaches a hard threshold function; when α → 0, the function approaches a soft threshold function. By adjusting the value of α, the first preset formula can flexibly switch between soft and hard threshold functions, when |w j,k When |≥λ, It will gradually approach w j,k This allows for effective noise reduction of high-frequency data exceeding a threshold.
[0056] The above decomposition level refers to the number of levels by which the initial signal data is decomposed using the wavelet function. The first preset formula differs for different decomposition levels, which allows for different noise reduction of different high-frequency data, making the denoised data closer to the wavelet coefficient model.
[0057] In one embodiment, the target parameters include channel bandwidth, the amount of high-frequency data, migration rate, the length of wavelet coefficients corresponding to the target data, and the number of decomposition layers corresponding to the high-frequency data; the threshold is obtained by the following method:
[0058] The channel bandwidth, the amount of high-frequency data, the migration rate, the length of the wavelet coefficients corresponding to the target data, and the number of decomposition layers corresponding to the high-frequency data are substituted into the second preset formula for processing to obtain the preset threshold.
[0059] The second preset formula is:
[0060]
[0061] σ is the noise variance, N is the length of the wavelet coefficients corresponding to the target data, B is the channel bandwidth, S is the data volume of the high-frequency data, C is the migration rate, j is the decomposition level, and the noise variance σ is obtained by substituting the mean of the wavelet coefficients of the high-frequency data into the third preset formula.
[0062] The third preset formula is:
[0063] σ = MAD / 0.6745
[0064] MAD is the mean of the wavelet coefficients of the high-frequency data.
[0065] It should be understood that the second preset formula simultaneously determines the threshold from multiple parameters such as channel bandwidth, data volume of high-frequency data, migration rate, length of wavelet coefficients corresponding to the target data, and number of decomposition layers corresponding to the high-frequency data, so that the threshold value can simultaneously reduce noise from high-frequency data from multiple aspects such as data volume, migration rate, channel of the target data being migrated, and number of decomposition layers.
[0066] Since the channel bandwidth B is fixed, the larger the ratio of migration rate C to channel bandwidth B, i.e., C / B, the less noise is generated. In this case, reducing the threshold is beneficial to the preservation of effective signals. Similarly, when the amount of migration data S is larger, there is more noise. By increasing the threshold, the removal of noise in the data is enhanced, thereby achieving a better big data denoising effect.
[0067] Furthermore, the relevant parameters in the second preset formula can be adjusted to adapt to different data transmission environments. For example, if the threshold is determined by the target parameters, and the target parameters only include the channel bandwidth B, the amount of high-frequency data S, the migration rate C, and the length N of the wavelet coefficients corresponding to the target data (i.e., excluding the number of decomposition layers), the number of decomposition layers j in the second preset formula can be adjusted to a constant. This allows the improved second preset formula to determine the threshold based on the channel bandwidth B, the amount of high-frequency data S, the migration rate C, and the length N of the wavelet coefficients corresponding to the target data.
[0068] In one embodiment, acquiring the target data includes:
[0069] Obtain initial data, which includes redundant data and intermediate data, wherein the similarity between the redundant data and the intermediate data is greater than a second set similarity threshold;
[0070] Redundant data is removed from the initial data, and the intermediate data is dimensionality reduced to obtain dimensionality-reduced data.
[0071] The dimensionality-reduced data is decomposed using wavelet function at level j to obtain the first data corresponding to each level of the decomposition. The high-frequency data is any one of the first data in level j, where j is a positive integer greater than 0.
[0072] The redundant and intermediate data in the initial data are obtained after similarity screening. The similarity between different data in the initial data is obtained through similarity screening. If the similarity of multiple data is greater than the second set similarity threshold, one of the multiple data is set as intermediate data and the other data is set as redundant data. Then the redundant data is deleted from the initial data, so that the similarity between the intermediate data is low and the mutual interference between data is avoided.
[0073] After obtaining intermediate data, dimensionality reduction can reduce the amount of data, making it easier to decompose and reduce noise.
[0074] In the process of performing wavelet function j-level decomposition on the dimensionality-reduced data, the first level of decomposition is performed on the dimensionality-reduced data to obtain the first level of high-frequency data and the first level of low-frequency data. Then, the first level of low-frequency data is decomposed to obtain the second level of high-frequency data and the second level of low-frequency data, and so on, until the j-level decomposition is completed.
[0075] It should be understood that as the number of decomposition layers increases, the interval between data frequency band divisions becomes smaller, and the different characteristics of noise and effective signals in the wavelet domain become more obvious, which is more conducive to their separation. However, as the number of decomposition layers increases, the proportion of wavelet coefficients of the effective signal that are thresholded also increases, leading to information loss and distortion in the reconstructed signal. Therefore, during the j-layer decomposition process, it is necessary to select an appropriate decomposition layer based on the frequency composition characteristics of the initial data, so as to eliminate noise interference to the greatest extent without losing feature information. In this embodiment, the preferred value of j is 4, that is, the initial data is decomposed into 4 layers to obtain 4 sets of high-frequency data from different layers and a fourth layer of low-frequency data. The high-frequency data is then denoised, and the denoised data is reconstructed with the low-frequency data to obtain denoised data with better denoising effect.
[0076] In one embodiment, the method further includes:
[0077] The dimensionality-reduced data is decomposed using wavelet function at level j to obtain low-frequency data after level j decomposition. The low-frequency data is signal data whose signal frequency is greater than the set frequency threshold.
[0078] After performing target processing on the high-frequency data based on a pre-set threshold to obtain denoised high-frequency data, the process further includes:
[0079] The noise-reduced high-frequency data and the low-frequency data are reconstructed to obtain noise-reduced data.
[0080] It should be understood that after performing wavelet function decomposition on the dimensionality-reduced data at level j, j high-frequency data points and the j-th low-frequency data points obtained after the final level j decomposition will be obtained. Each of the j high-frequency data points contains both valid signal and noise. Therefore, each high-frequency data point needs to be denoised to obtain denoised high-frequency data, thus removing the noise. The j denoised high-frequency data points and the low-frequency data points are then reconstructed to obtain the denoised data.
[0081] For example, Figure 2 This is a schematic diagram of the process of performing a layer of noise reduction on the initial data D, which includes noise. The data D is passed through a low-pass filter to obtain low-frequency data CA1; the data D is then passed through a high-pass filter to obtain high-frequency data CD1; the high-frequency data CD1 is then subjected to target processing based on a threshold to obtain the first sub-data and the second sub-data; the noise-reduced high-frequency data is obtained through the first sub-data and the second sub-data; the high-frequency signal is reconstructed based on the noise-reduced high-frequency data, and the low-frequency signal is reconstructed based on the low-frequency data CA1 to obtain the noise-reduced data D'.
[0082] Please see Figure 3 , Figure 3 This is a structural diagram of a data noise reduction device provided in an embodiment of the present invention, as shown below. Figure 3 As shown, the data noise reduction device 300 includes:
[0083] Acquisition module 301 is used to acquire target data, the target data including high-frequency data, the high-frequency data being signal data with a signal frequency greater than a set frequency threshold;
[0084] The noise reduction module 302 is used to perform target processing on the high-frequency data based on a preset threshold to obtain noise-reduced high-frequency data. The threshold is determined according to target parameters, which include at least the following: channel bandwidth, data volume of the high-frequency data, migration rate, length of wavelet coefficients corresponding to the target data, and number of decomposition layers corresponding to the high-frequency data.
[0085] Optionally, the high-frequency data is the wavelet coefficients of the signal, and the noise reduction module 302 includes:
[0086] The first noise reduction unit is used to input the high-frequency data and the threshold threshold into a set processing model for data processing when the absolute value of the high-frequency data is greater than the threshold threshold, so as to output the first sub-data.
[0087] The second noise reduction unit is used to reduce the high-frequency data to zero when the absolute value of the high-frequency data is less than or equal to the threshold, so as to obtain the second sub-data.
[0088] The first processing unit is used to combine the first sub-data with the second sub-data to obtain the noise-reduced high-frequency data.
[0089] Optionally, the parameters of the setting processing model include a first adjustment coefficient and a second adjustment coefficient. The first adjustment coefficient is used to adjust the function shape of the noise-reduced high-frequency data, and the second adjustment coefficient is used to adjust the function asymptote of the noise-reduced high-frequency data.
[0090] Following the processing unit, the noise reduction module 302 further includes:
[0091] An adjustment unit is used to adjust the first adjustment coefficient and the second adjustment coefficient in the set processing model so that the first similarity is greater than the first set similarity threshold, wherein the first similarity is the similarity between the denoised high-frequency data and the pre-acquired wavelet coefficient model.
[0092] Optionally, the noise reduction module 302 includes:
[0093] The second processing unit is used to perform target processing on the high-frequency data based on a preset threshold and a first preset formula to obtain noise-reduced high-frequency data.
[0094] The first preset formula is:
[0095]
[0096] in, The high-frequency data for noise reduction. For the first sub-data, sng() is the symbolic function, and w j,k The high-frequency data is j, the decomposition level is n, the first adjustment coefficient is α, and the second adjustment coefficient is α∈[0,1].
[0097] Optionally, the target parameters include channel bandwidth, the amount of high-frequency data, migration rate, the length of wavelet coefficients corresponding to the target data, and the number of decomposition layers corresponding to the high-frequency data; the threshold is obtained by the following method:
[0098] The channel bandwidth, the amount of high-frequency data, the migration rate, the length of the wavelet coefficients corresponding to the target data, and the number of decomposition layers corresponding to the high-frequency data are substituted into the second preset formula for processing to obtain the preset threshold.
[0099] The second preset formula is:
[0100]
[0101] σ is the noise variance, N is the length of the wavelet coefficients corresponding to the target data, B is the channel bandwidth, S is the data volume of the high-frequency data, C is the migration rate, j is the decomposition level, and the noise variance σ is obtained by substituting the mean of the wavelet coefficients of the high-frequency data into the third preset formula.
[0102] The third preset formula is:
[0103] σ = MAD / 0.6745
[0104] MAD is the mean of the wavelet coefficients of the high-frequency data.
[0105] Optionally, the acquisition module 301 includes:
[0106] An acquisition unit is used to acquire initial data, which includes redundant data and intermediate data, wherein the similarity between the redundant data and the intermediate data is greater than a second preset similarity threshold.
[0107] The deletion unit is used to delete redundant data in the initial data and reduce the dimensionality of the intermediate data to obtain dimensionality-reduced data.
[0108] The first decomposition unit is used to perform wavelet function j-level decomposition on the dimensionality-reduced data to obtain the first data corresponding to each level of decomposition after j-level decomposition. The high-frequency data is any one of the first data in the j-level decomposition, where j is a positive integer greater than 0.
[0109] Optionally, the acquisition module 301 further includes:
[0110] The second decomposition unit is used to perform wavelet function j-level decomposition on the dimensionality-reduced data to obtain low-frequency data after j-level decomposition. The low-frequency data is signal data whose signal frequency is greater than the set frequency threshold.
[0111] Following the noise reduction module 302, the data noise reduction device 300 further includes:
[0112] The processing module is used to reconstruct the noise-reduced high-frequency data and the low-frequency data to obtain noise-reduced data.
[0113] The data noise reduction device provided in this embodiment of the invention can realize each process of each embodiment of the above-mentioned data noise reduction method. The technical features are one-to-one and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0114] The device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. Non-mobile electronic devices can also be servers, network attached storage (NAS), personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc. This application embodiment does not specifically limit the scope of the device.
[0115] Optionally, such as Figure 4 As shown, this application embodiment also provides an electronic device, including a processor 401 and a memory 402. The memory 402 stores a program or instructions that can run on the processor 401. When the program or instructions are executed by the processor 401, they implement the various steps of the above method embodiments and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0116] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0117] This invention also provides a readable storage medium storing a computer program, which, when executed by a processor, can perform the above-described functions. Figure 1 Any step in the corresponding method embodiment, which achieves the same technical effect, will not be described again here to avoid repetition. The storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0118] In the embodiments of this invention, the terms "first," "second," etc., are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or devices. Additionally, the use of "and / or" in this application indicates at least one of the connected objects, such as A and / or B and / or C, representing seven possibilities: A alone, B alone, C alone, both A and B present, both B and C present, both A and C present, and A, B, and C present.
[0119] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0120] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or second terminal device, etc.) to execute the methods of the various embodiments of this application.
[0121] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A data noise reduction method, characterized in that, include: Acquire target data, which includes high-frequency data, wherein the high-frequency data is signal data whose signal frequency is greater than a set frequency threshold; The high-frequency data is subjected to target processing based on a pre-set threshold to obtain noise-reduced high-frequency data. The threshold is determined according to target parameters, which include at least the following: channel bandwidth, data volume of the high-frequency data, migration rate, length of wavelet coefficients corresponding to the target data, and number of decomposition layers corresponding to the high-frequency data. The process of performing target processing on the high-frequency data based on a pre-set threshold to obtain denoised high-frequency data includes: The high-frequency data is processed based on a pre-set threshold and a first preset formula to obtain noise-reduced high-frequency data. The first preset formula is: in, The high-frequency data for noise reduction. For the first sub-data, For symbolic functions, The high-frequency data is defined as j, where j is the number of decomposition layers and n is the first adjustment coefficient. This is the second adjustment factor. ; The target parameters include channel bandwidth, the amount of high-frequency data, migration rate, the length of wavelet coefficients corresponding to the target data, and the number of decomposition layers corresponding to the high-frequency data; the threshold is obtained by the following method: The channel bandwidth, the amount of high-frequency data, the migration rate, the length of the wavelet coefficients corresponding to the target data, and the number of decomposition layers corresponding to the high-frequency data are substituted into the second preset formula for processing to obtain the preset threshold. The second preset formula is: For noise variance, B is the length of the wavelet coefficients corresponding to the target data, S is the channel bandwidth, C is the data volume of the high-frequency data, j is the migration rate, j is the number of decomposition layers, and the noise variance is... The average value of the wavelet coefficients of the high-frequency data is obtained by substituting it into the third preset formula. The third preset formula is: The mean value of the wavelet coefficients of the high-frequency data.
2. The method according to claim 1, characterized in that, The high-frequency data are wavelet coefficients of the signal. The target processing of the high-frequency data based on a pre-set threshold to obtain denoised high-frequency data includes: If the absolute value of the high-frequency data is greater than the threshold, the high-frequency data and the threshold are input into a set processing model for data processing to output the first sub-data. If the absolute value of the high-frequency data is less than or equal to the threshold, the high-frequency data is set to zero to obtain the second sub-data. The first sub-data and the second sub-data are combined to obtain the noise-reduced high-frequency data.
3. The method according to claim 2, characterized in that, The parameters of the processing model include a first adjustment coefficient and a second adjustment coefficient. The first adjustment coefficient is used to adjust the function shape of the noise-reduced high-frequency data, and the second adjustment coefficient is used to adjust the function asymptote of the noise-reduced high-frequency data. After combining the first sub-data and the second sub-data to obtain the noise-reduced high-frequency data, the method further includes: The first adjustment coefficient and the second adjustment coefficient in the set processing model are adjusted so that the first similarity is greater than the first set similarity threshold, where the first similarity is the similarity between the denoised high-frequency data and the pre-acquired wavelet coefficient model.
4. The method according to claim 1, characterized in that, The acquisition of target data includes: Obtain initial data, which includes redundant data and intermediate data, wherein the similarity between the redundant data and the intermediate data is greater than a second set similarity threshold; Redundant data is removed from the initial data, and the intermediate data is dimensionality reduced to obtain dimensionality-reduced data. The dimensionality-reduced data is decomposed using wavelet function at level j to obtain the first data corresponding to each level of the decomposition. The high-frequency data is any one of the first data in level j, where j is a positive integer greater than 0.
5. The method according to claim 4, characterized in that, The method further includes: The dimensionality-reduced data is decomposed using wavelet function at level j to obtain low-frequency data after level j decomposition. The low-frequency data is signal data whose signal frequency is less than the set frequency threshold. After performing target processing on the high-frequency data based on a pre-set threshold to obtain denoised high-frequency data, the process further includes: The noise-reduced high-frequency data and the low-frequency data are reconstructed to obtain noise-reduced data.
6. A data noise reduction device, characterized in that, include: The acquisition module is used to acquire target data, which includes high-frequency data, and the high-frequency data is signal data whose signal frequency is greater than a set frequency threshold. The noise reduction module is used to perform target processing on the high-frequency data based on a pre-set threshold to obtain noise-reduced high-frequency data. The threshold is determined according to target parameters, which include at least the following: channel bandwidth, data volume of the high-frequency data, migration rate, length of wavelet coefficients corresponding to the target data, and number of decomposition layers corresponding to the high-frequency data. The noise reduction module includes: The second processing unit is used to perform target processing on the high-frequency data based on a preset threshold and a first preset formula to obtain noise-reduced high-frequency data. The first preset formula is: in, The high-frequency data for noise reduction. For the first sub-data, For symbolic functions, The high-frequency data is defined as j, where j is the number of decomposition layers and n is the first adjustment coefficient. This is the second adjustment factor. ; The target parameters include channel bandwidth, the amount of high-frequency data, migration rate, the length of wavelet coefficients corresponding to the target data, and the number of decomposition layers corresponding to the high-frequency data; the threshold is obtained by the following method: The channel bandwidth, the amount of high-frequency data, the migration rate, the length of the wavelet coefficients corresponding to the target data, and the number of decomposition layers corresponding to the high-frequency data are substituted into the second preset formula for processing to obtain the preset threshold. The second preset formula is: For noise variance, B is the length of the wavelet coefficients corresponding to the target data, S is the channel bandwidth, C is the data volume of the high-frequency data, j is the migration rate, j is the number of decomposition layers, and the noise variance is... The average value of the wavelet coefficients of the high-frequency data is obtained by substituting it into the third preset formula. The third preset formula is: The mean value of the wavelet coefficients of the high-frequency data.
7. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the data noise reduction method as described in any one of claims 1 to 5.
8. A readable storage medium for storing a program, characterized in that, When the program is executed by the processor, it implements the steps in the data noise reduction method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
MEMS (Micro-electromechanical Systems) gyroscope random error predication method based on grey wavelet neural network
CN103900610A
Method for denoising underwater acoustic signal on the basis of adaptive window filtering and wavelet threshold optimization
WO2021258832A1
