Time sequence data compression method and device
Through the combination of multi-layer forward lifting transform and Squeeze compressor, the problem of insufficient data compression ratio in distributed photovoltaic power systems is solved, and efficient time series data compression and classification are achieved, which is suitable for equipment with limited resources.
Patent Information
- Application Number
- CN202410932372.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-01
AI Technical Summary
The time series data collected in distributed photovoltaic power systems is huge, and existing lossless compression technology has compression ratio limitations that make it difficult to meet the needs of resource-constrained devices.
A method combining multi-layer forward lifting transform and Squeeze compressor is used to perform signal segmentation, prediction and correction on time series data, generate a set of approximate values, and perform fitting and binary output through Squeeze compressor to achieve efficient data compression.
While maintaining data characteristics, it achieves highly accurate time series classification, improves data compression ratio and classification performance, and reduces computing and storage requirements.
Smart Images

Figure CN118740167A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sensor data compression, and in particular to a time series data compression method and device. Background Art
[0002] Distributed photovoltaic power systems use advanced communication, control and information technology to achieve more efficient, reliable and sustainable power supply. The collection of time series data is becoming a common trend in distributed photovoltaic power systems. These data come from data generated in distributed photovoltaic power systems, such as power consumption data, power generation data, network status data, environmental data, user behavior data, etc., and are transmitted to the cloud or edge for processing.
[0003] One of the main problems of distributed photovoltaic power systems is the large volume of collected data. Currently, the amount of data transmission and storage is reduced by using onboard signal processing and compression algorithms. Among them, data compression can significantly reduce communication energy consumption by reducing the number of bits to be transmitted, thereby extending the service life of the equipment. However, data compression algorithms can be divided into two categories: lossless compression and lossy compression. Lossless compression does not cause data loss, while lossy compression does cause data loss. However, lossless compression has certain limitations in terms of the maximum compression that can be achieved. Especially in the context of distributed photovoltaic power data and resource-constrained devices, this limited compression ratio is an important disadvantage. Summary of the invention
[0004] In order to solve the above technical problems, an embodiment of the present invention provides a time series data compression method and device, which provides an efficient data compression method by combining forward lifting transformation and compression processing, and can achieve high-accuracy time series classification while maintaining data characteristics.
[0005] A first aspect of an embodiment of the present invention provides a time series data compression method, the method comprising:
[0006] Obtain time series data of distributed photovoltaic power systems;
[0007] Perform multi-layer forward lifting transformation on time series data to obtain a set of approximate values;
[0008] The data in the approximate value set is decompressed to obtain a compressed result, so that the target person can input the compressed result into a deep learning network for analysis.
[0009] In a possible implementation manner of the first aspect, a multi-layer forward lifting transformation is performed on the time series data to obtain an approximate value set, including:
[0010] Perform signal segmentation on time series data to obtain even samples and odd samples;
[0011] Using even number samples to make predictions to obtain new odd number samples, removing the new odd number samples to obtain an initial approximate value set, and correcting the initial approximate value set to obtain a corrected initial approximate value set;
[0012] Determine whether the preset number of forward lifting transform layers is reached. If reached, continue signal segmentation and prediction based on the modified initial approximation value set until the preset number of forward lifting transform layers is reached, stop signal segmentation, and obtain an approximation value set.
[0013] In a possible implementation manner of the first aspect, correcting the initial approximate value set includes:
[0014] Based on the approximation signal in the initial approximation value set, obtaining a first average value of the initial approximation value set;
[0015] According to the original signal in the time series data of the distributed photovoltaic power system, a second average value of the original signal is obtained. If the first average value is different from the second average value, the initial approximate value set is corrected and calculated to obtain a new first average value, and the correction is stopped until the new first average value is the same as the second average value.
[0016] In a possible implementation manner of the first aspect, performing time series reconstruction on data in the approximate value set to obtain a compression result includes:
[0017] Convert the approximate values in the approximate value set into a one-dimensional array to obtain a new approximate value set;
[0018] Fitting the new approximate value set using a preset compressor to obtain a first prediction result;
[0019] Based on the data in the new approximate value set that has not been predicted, a preset binary method is used for output to obtain a second prediction result, and a compression result is obtained according to the first prediction result and the second prediction result.
[0020] In a possible implementation manner of the first aspect, the preset compressor is a Squeeze compressor.
[0021] A second aspect of an embodiment of the present invention provides a time series data compression device, the device comprising:
[0022] An acquisition module, used to acquire time series data of a distributed photovoltaic power system;
[0023] Transformation module, used to perform multi-layer forward lifting transformation on time series data to obtain a set of approximate values;
[0024] The compression module is used to decompress the data in the approximate value set to obtain a compressed result so that the target person can input the compressed result into the deep learning network for analysis.
[0025] In a possible implementation manner of the second aspect, the transformation module includes a segmentation unit, a prediction unit, and an update unit.
[0026] Among them, the segmentation unit is used to perform signal segmentation on the time series data to obtain even samples and odd samples;
[0027] The prediction unit is used to use the even number samples to predict and obtain new odd number samples, remove the new odd number samples, obtain an initial approximate value set, and correct the initial approximate value set to obtain a corrected initial approximate value set;
[0028] The updating unit is used to determine whether the preset number of forward lifting transform layers is reached. If reached, signal segmentation and prediction are continued based on the modified initial approximation value set until the preset number of forward lifting transform layers is reached, signal segmentation is stopped, and an approximation value set is obtained.
[0029] In a possible implementation manner of the second aspect, the transform module includes a prediction unit and also includes an average value calculation subunit and a correction subunit.
[0030] The average value calculation subunit is used to obtain a first average value of the initial approximate value set based on the approximate signal in the initial approximate value set;
[0031] The correction subunit is used to obtain a second average value of the original signal based on the original signal in the time series data of the distributed photovoltaic power system. If the first average value is different from the second average value, the initial approximate value set is corrected and calculated to obtain a new first average value, and the correction is stopped until the new first average value is the same as the second average value.
[0032] The present invention obtains time series data of a distributed photovoltaic power system, performs a multi-layer forward lifting transformation on the time series data, obtains an approximate value set, decompresses the data in the approximate value set, and obtains a compressed result, so that the target personnel can input the compressed result into a deep learning network for analysis. This method provides an efficient data compression method by combining forward lifting transformation and compression processing, which can achieve high-accuracy time series classification while maintaining data characteristics. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 : A compression flow chart of an embodiment of the time series data compression method provided by the present invention;
[0034] Figure 2: A distributed photovoltaic power data hierarchical flow chart of an embodiment of the time series data compression method provided by the present invention;
[0035] Figure 3 : A time series classification compression scheme diagram of an embodiment of the time series data compression method provided by the present invention;
[0036] Figure 4 : A pseudo code diagram of a compression algorithm of an embodiment of the time series data compression method provided by the present invention;
[0037] Figure 5 : A device block diagram of an embodiment of the time series data compression method provided by the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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.
[0039] Please refer to Figure 1 , which is a flow chart of an embodiment of a time series data compression method provided by an embodiment of the present invention, including steps S101 to S103, each of which is specifically as follows:
[0040] S101. Acquire time series data of a distributed photovoltaic power system.
[0041] In this embodiment, the classification performance in IoT applications is studied. In the distributed photovoltaic power data architecture, time series data undergoes four stages: data generation and collection compression, IoT device and gateway communication, data processing and classification, and result interpretation and application. Figure 2 shown.
[0042] In the data generation and collection compression stage, time series data from distributed photovoltaic power systems are collected to meet the application requirements of distributed photovoltaic power systems. Subsequently, in the IoT device and gateway communication stage, the second layer uses different communication technologies to achieve communication between IoT devices and gateways, and transmits the output to the core of the entire analysis system, using tools such as Apache Storm and Spark to process the data, including the classification of time series data. Finally, in the result interpretation and application stage, the fourth layer is responsible for the interpretation and application of the generated results.
[0043] S102, performing a multi-layer forward lifting transformation on the time series data to obtain a set of approximate values.
[0044] In this embodiment, the proposed fast implementation of discrete wavelet transform (FDWT) method is used to accelerate the time series data processing. Discrete wavelet transform has many valuable properties in time series data mining. It uses wavelet functions to perform multi-resolution transformation and analysis of time series. DWT allows time-frequency representation of signals, which is achieved by using filters to decompose the signal into low-frequency components (approximations) and high-frequency components (details). Using DWT, redundant samples in the time domain can be combined with decorrelation coefficients in the time-frequency domain to achieve a compressed representation of the original samples.
[0045] The time series data is segmented, predicted, and updated using the column lifting method proposed in this method to obtain a set of approximate values. The segmentation operation separates the signal into even and odd samples, which can also be seen as an inert step of the wavelet transform. Due to the local correlation structure of the signal, there is a close correlation between even and odd samples, and the prediction step predicts odd samples from even samples. Finally, the update step ensures that the smoothed approximate signal has the same mean as the initial signal.
[0046] In some embodiments, step S102 includes but is not limited to the following steps:
[0047] Perform signal segmentation on time series data to obtain even samples and odd samples;
[0048] Using even number samples to make predictions to obtain new odd number samples, removing the new odd number samples to obtain an initial approximate value set, and correcting the initial approximate value set to obtain a corrected initial approximate value set;
[0049] Determine whether the preset number of forward lifting transform layers is reached. If reached, continue signal segmentation and prediction based on the modified initial approximation value set until the preset number of forward lifting transform layers is reached, stop signal segmentation, and obtain an approximation value set.
[0050] Specifically, the data collected from sensors in distributed photovoltaic power systems are usually multivariate time series. Multivariate time series X = [X1, X2, ..., X M ] consists of M different univariate time series. First, each univariate time series is decomposed using a lifting scheme to obtain an approximate value set and a detailed value set. This step is called column lifting. Then, the details are removed, leaving only the M-dimensional approximate value set A = [A1, A2, ..., A M The specific steps are as follows: according to the given number of decomposition levels L, the three operations of segmentation, prediction and update will be repeated L times. The result of this operation is an approximate coefficient matrix A (i.e., a set of approximate values) and a set of L detail coefficient matrices D{d1,...,d LWhen performing segmentation, the time series data is segmented to obtain even samples and odd samples, and then the even samples are used for prediction to obtain new odd samples. After removing the new odd samples, an initial approximate value set is obtained, and the initial approximate value set is corrected to obtain a corrected initial approximate value set. After repeating the three operations of segmentation, prediction and update for many times, an approximate value set is obtained.
[0051] It is worth noting that the scheme is based on Haar wavelet implementation, and multi-layer transformation can be completed by reapplying the wavelet function. Users can define the number of layers according to the requirements of the application and data.
[0052] In some embodiments, step S102 includes but is not limited to the following steps:
[0053] Based on the approximation signal in the initial approximation value set, obtaining a first average value of the initial approximation value set;
[0054] According to the original signal in the time series data of the distributed photovoltaic power system, a second average value of the original signal is obtained. If the first average value is different from the second average value, the initial approximate value set is corrected and calculated to obtain a new first average value, and the correction is stopped until the new first average value is the same as the second average value.
[0055] Specifically, the average value of the approximate signal in the initial approximate value set is calculated to be the same as the average value of the original signal in the time series data of the distributed photovoltaic power system. This ensures that the overall average value of the signal will not change significantly after the wavelet transform, thereby maintaining the basic characteristics of the signal.
[0056] S103, decompressing the data in the approximate value set to obtain a compressed result, so that the target person can input the compressed result into a deep learning network for analysis.
[0057] In this example, we use the Squeeze compressor to process the approximation array. SZ is a forecasting method that can affect its output depending on how smooth or jagged the time series is. The advantage of the above lifting scheme is that it produces a smoother version of the original time series, so that the best fit curve of SZ can better predict the data and control the error within the user's requirements.
[0058] When the data arrives at the edge / receiver, the reconstruction method of the time series includes decompressing the compressed approximate coefficients using the Squeeze compressor. The wavelet transformed data can then be input into the deep learning model without applying the inverse wavelet transform and recovering the original data, as in Figure 3 And algorithm pseudo code Figure 4 shown.
[0059] First, the approximation is converted into a one-dimensional array and a Squeeze compressor is applied to fit the best fit curve and the unpredictable data points are represented using IEEE 754 binary, which ultimately outputs a binary array to be transmitted to the sink / edge.
[0060] In some embodiments, step S103 includes but is not limited to the following steps:
[0061] Convert the approximate values in the approximate value set into a one-dimensional array to obtain a new approximate value set;
[0062] Fitting the new approximate value set using a preset compressor to obtain a first prediction result;
[0063] Based on the data in the new approximate value set that has not been predicted, a preset binary method is used for output to obtain a second prediction result, and a compression result is obtained according to the first prediction result and the second prediction result.
[0064] Specifically, the approximate values in the approximate value set are converted into a one-dimensional array to obtain a new approximate value set, the new approximate value set is fitted using a Squeeze compressor to obtain a first prediction result, and the data that has not been predicted in the new approximate value set is output using a preset binary method to obtain a second prediction result, and a compression result is obtained based on the first prediction result and the first prediction result. The compression result is a binary array.
[0065] In some embodiments, step S103 includes but is not limited to the following steps:
[0066] The default compressor is the Squeeze compressor.
[0067] The Squeeze (SZ) compressor was used for wavelet transform.
[0068] The present application also implements the technical solution provided in the embodiment of the present application. Compressed sensing is a digital signal processing technology that can effectively acquire and reconstruct signals by reducing the number of measurements. It is particularly effective for sparse signals, allowing these signals to be captured and represented at a much lower rate than required by the Nyquist-Shannon sampling theorem. Compressed sensing is a digital signal processing technology that can effectively acquire and reconstruct signals using fewer measurements. It is suitable for sparse signals, allowing these signals to be captured and represented at a lower rate than traditional sampling methods, while still satisfying the Nyquist-Shannon sampling theorem.
[0069] The basic measurement model of compressed sensing involves a sparse signal x of length N. Compressed sensing uses a measurement matrix Φ (of size M×N, where M is much smaller than N) to perform linear measurements on the signal. The measurement result y is an M-dimensional vector obtained by the following equation: Y=ΦX, where X is the original sparse signal of length N, Y is the compressed signal of length M, and Φ is the sensing matrix that can reconstruct the signal.
[0070] Sparse representation of signals Most signals show low sparsity in time domain representation, making them sparse in frequency domain or some basis. Assuming that the signal X can be represented by a sparse vector z on a specific basis, it can be represented as X = Ψz, where Ψ is the matrix that transforms the signal from the spectral domain to the time domain.
[0071] During signal reconstruction, the reconstruction of the signal involves solving a system of equations to calculate z from the compressed signal Y, i.e., Y = ΦΨz. To calculate z, the inverse discrete cosine transform can be applied to Ψ by considering the columns of the identity matrix. In addition, L1 norm minimization (also known as basis pursuit) can be used to recover the original signal X.
[0072] Discrete wavelet transform (DWT) is a transform method that decomposes a signal into different frequency components represented by wavelet coefficients. DWT decomposes the signal into low-frequency and high-frequency sub-bands, where the low-frequency sub-band represents the general trend of the signal and the high-frequency sub-band captures the signal details. By retaining important wavelet coefficients, a compressed representation of the signal can be achieved.
[0073] Squeeze is an error-based lossy compressor suitable for compressing and recovering time series data. It uses a predetermined error limit to control the information loss during the compression process. Squeeze achieves data compression by converting the original data into a residual sequence and compressing the residual sequence.
[0074] Comparing the time complexity of the DWT enhancement scheme and the Squeeze algorithm, it is found that the time complexity of the DWT enhancement scheme is 2^(N log N), where N represents the number of data points. On the other hand, the time complexity of the SZ algorithm is 2^N, which is higher than the SZ algorithm because the DWT enhancement scheme involves more computational steps.
[0075] The execution time test in the experimental evaluation involves testing the execution time of the DWT, SZ, and DWT+SZ methods implemented in C language on different numbers of floating point data. The experimental results show that the SZ technique exhibits lower execution time, while the DWT+SZ technique requires relatively less time to process different numbers of data points.
[0076] In addition, the effect of DWT on the compression ratio is evaluated by collecting accelerometer data for more than 80 cycles. The accelerometer data is compressed using the SZ algorithm and the DWT+SZ algorithm, and the transmitted byte size is compared. The results show that the DWT+SZ algorithm achieves a higher compression ratio in both stationary and walking states compared to the SZ algorithm alone. In terms of balancing time efficiency and compression performance, it can be concluded that the DWT enhancement scheme can improve the compression ratio and reduce the required transmission byte size.
[0077] By utilizing compressed sensing, discrete wavelet transform, and SZ compressor for compression, the focus is on their impact on compression ratio and classification performance. This method proposes a new method for wavelet transform using SZ compressor and considers multiple criteria such as compression ratio and classification performance. This method aims to effectively compress time series data while maintaining reasonable classification performance and reducing computational and storage requirements. The data after wavelet transform using this method can be directly input into the deep learning model for analysis and prediction without the need for inverse wavelet transform and data recovery steps. The compression scheme removes noise by discarding a set of details, thereby extracting important features and reducing the storage and transmission requirements of data. This combination can improve the efficiency of data processing and classification and reduce the time and resources required to transmit data at the edge / receiver.
[0078] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0079] In some embodiments, Figure 5 As shown, it shows a block diagram of a time series data compression device 500 provided in an embodiment of the present application, including: an acquisition module 501, a transformation module 502 and a compression module 503, wherein:
[0080] An acquisition module 501 is used to acquire time series data of a distributed photovoltaic power system;
[0081] Transformation module 502, used to perform multi-layer forward lifting transformation on the time series data to obtain an approximate value set;
[0082] The compression module 503 is used to decompress the data in the approximate value set to obtain a compression result, so that the target person can input the compression result into the deep learning network for analysis.
[0083] In some embodiments, the transform module 502 includes a segmentation unit, a prediction unit, and an update unit.
[0084] Among them, the segmentation unit is used to perform signal segmentation on the time series data to obtain even samples and odd samples;
[0085] The prediction unit is used to use the even number samples to predict and obtain new odd number samples, remove the new odd number samples, obtain an initial approximate value set, and correct the initial approximate value set to obtain a corrected initial approximate value set;
[0086] The updating unit is used to determine whether the preset number of forward lifting transform layers is reached. If reached, signal segmentation and prediction are continued based on the modified initial approximation value set until the preset number of forward lifting transform layers is reached, signal segmentation is stopped, and an approximation value set is obtained.
[0087] In some embodiments, the transform module 502 includes a prediction unit and an average value calculation subunit and a correction subunit.
[0088] The average value calculation subunit is used to obtain a first average value of the initial approximate value set based on the approximate signal in the initial approximate value set;
[0089] The correction subunit is used to obtain a second average value of the original signal based on the original signal in the time series data of the distributed photovoltaic power system. If the first average value is different from the second average value, the initial approximate value set is corrected and calculated to obtain a new first average value, and the correction is stopped until the new first average value is the same as the second average value.
[0090] In some embodiments, reconstructing the data in the approximate value set in time series to obtain a compression result includes:
[0091] Convert the approximate values in the approximate value set into a one-dimensional array to obtain a new approximate value set;
[0092] Fitting the new approximate value set using a preset compressor to obtain a first prediction result;
[0093] Based on the data in the new approximate value set that has not been predicted, a preset binary method is used for output to obtain a second prediction result, and a compression result is obtained according to the first prediction result and the second prediction result.
[0094] In some embodiments, the preset compressor is a Squeeze compressor.
[0095] In one embodiment of the present application, a computer device is provided, which includes a memory and a processor, wherein a computer program is stored in the memory, and the above steps are implemented when the processor executes the computer program; the computer device provided in this embodiment has an implementation principle and technical effects similar to those of the above method embodiments, and will not be repeated here.
[0096] In one embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and the above steps are implemented when the computer program is executed by a processor; the computer-readable storage medium provided in this embodiment has an implementation principle and technical effects similar to those of the above method embodiment, and will not be repeated here.
[0097] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0098] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0099] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A time series data compression method, characterized in that: include: Obtain time series data of distributed photovoltaic power systems; Performing a multi-layer forward lifting transformation on the time series data to obtain a set of approximate values; The data in the approximate value set is decompressed to obtain a compressed result, so that the target person can input the compressed result into a deep learning network for analysis.
2. The time series data compression method according to claim 1, characterized in that: The performing of a multi-layer forward lifting transformation on the time series data to obtain an approximate value set includes: Performing signal segmentation on the time series data to obtain even samples and odd samples; Using the even number samples to perform prediction to obtain new odd number samples, removing the new odd number samples to obtain an initial approximate value set, and correcting the initial approximate value set to obtain a corrected initial approximate value set; Determine whether the preset number of forward lifting transform layers is reached. If reached, continue signal segmentation and prediction based on the modified initial approximation value set until the preset number of forward lifting transform layers is reached, stop signal segmentation, and obtain an approximation value set.
3. The time series data compression method according to claim 2, characterized in that: The modifying of the initial approximate value set comprises: Based on the approximation signal in the initial approximation value set, obtaining a first average value of the initial approximation value set; According to the original signal in the time series data of the distributed photovoltaic power system, a second average value of the original signal is obtained. If the first average value is different from the second average value, the initial approximate value set is corrected and calculated to obtain a new first average value, and the correction is stopped until the new first average value is the same as the second average value.
4. The time series data compression method according to claim 1, characterized in that: The step of reconstructing the data in the approximate value set in time series to obtain a compression result includes: Convert the approximate values in the approximate value set into a one-dimensional array to obtain a new approximate value set; Using a preset compressor to fit the new approximate value set to obtain a first prediction result; Based on the data in the new approximate value set that cannot be predicted, a preset binary method is used for output to obtain a second prediction result, and a compression result is obtained according to the first prediction result and the first prediction result.
5. The time series data compression method according to claim 4, characterized in that: The preset compressor is a Squeeze compressor.
6. A time series data compression device, characterized in that: include: An acquisition module, used to acquire time series data of a distributed photovoltaic power system; A transformation module, used for performing a multi-layer forward lifting transformation on the time series data to obtain an approximate value set; The compression module is used to decompress the data in the approximate value set to obtain a compression result, so that the target person can input the compression result into the deep learning network for analysis.
7. The time series data compression device according to claim 6, characterized in that: The transformation module includes a segmentation unit, a prediction unit and an update unit. Wherein, the segmentation unit is used to perform signal segmentation on the time series data to obtain even samples and odd samples; The prediction unit is used to use the even samples to predict and obtain new odd samples, remove the new odd samples, obtain an initial approximate value set, and correct the initial approximate value set to obtain a corrected initial approximate value set; The updating unit is used to determine whether the preset number of forward lifting transform layers is reached. If reached, signal segmentation and prediction are continued based on the modified initial approximation value set until the preset number of forward lifting transform layers is reached, signal segmentation is stopped, and an approximation value set is obtained.
8. The time series data compression device according to claim 6, characterized in that: The transformation module includes a prediction unit, an average value calculation subunit and a correction subunit. The average value calculation subunit is used to obtain a first average value of the initial approximate value set based on the approximate signal in the initial approximate value set; The correction subunit is used to obtain a second average value of the original signal based on the original signal in the time series data of the distributed photovoltaic power system. If the first average value is different from the second average value, the initial approximate value set is corrected and calculated to obtain a new first average value, and the correction is stopped until the new first average value is the same as the second average value.
9. A computer device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the time series data compression method according to any one of claims 1 to 5 is implemented.
10. A computer-readable storage medium, characterized in that: It stores a computer program, which, when executed by a processor, implements the time series data compression method as described in any one of claims 1 to 5.
Citation Information
Cited By
Astronomical data processing method
CN119576881A
An astronomical data processing method
CN119576881B
