A method and system for compressing and storing steady-state recording data

By decomposing the steady-state recorded data and establishing a hash indexed week waveform dictionary, the problems of low compression rate and data loss in the prior art are solved, and efficient lossless compressed storage is achieved.

CN119377229BActive Publication Date: 2025-04-18BEIJING SIFANG JIBAO ENG TECH +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411945405.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-04-18
Estimated Expiration
2044-12-27

AI Technical Summary

Technical Problem

In the prior art, the compression rate of steady-state recording data is low and may lead to the loss of original data information.

Method used

By decomposing the input steady-state recording data with a preset decomposition range, a dictionary of the circumferential waveform based on the hash index is established, and the stored circumferential wave data is stored in the preset compression format.

Benefits of technology

Lossless compression of steady-state recording data is achieved, with a high compression rate, greatly saving storage space.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119377229B_ABST
    Figure CN119377229B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of electric power systems, and provides a method and system for compressing and storing steady-state recording data, the method comprising: decomposing input steady-state recording data according to a preset decomposition range to obtain a number of cycle data to be stored; determining a cycle waveform dictionary based on a hash index; the cycle waveform dictionary includes a number of cycle samples, waveform repetition frequencies and waveform numbers; searching the cycle waveform dictionary according to the cycle data to be stored; when the cycle data to be stored matches the cycle waveform dictionary, storing the cycle data to be stored according to a preset compression format; the preset compression format includes a recording frequency and a recording number; the recording number is the same as the waveform number corresponding to the matching cycle sample. The present invention can achieve lossless compression of input steady-state recording data, and has a high compression rate, which greatly saves storage space.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power systems, and in particular to a method and system for compressing and storing steady-state recorded wave data. Background Art

[0002] As the complexity of power systems and industrial equipment grows, real-time monitoring and fault diagnosis of these devices have become essential. Traditional fault diagnosis methods rely on manual inspection and empirical judgment, which is not only inefficient but also prone to errors. In order to ensure the safe and stable operation of the power system, intelligent fault recorders have emerged. They assist operation and maintenance personnel in quickly discovering and analyzing the causes of faults by recording the status of equipment in real time. Among the functions of intelligent fault recorders, steady-state recording is particularly critical. It can use accumulated historical data to analyze the performance of equipment under different working conditions, identify potential risks in a timely manner, and take preventive measures before a fault occurs, thereby reducing the risk of large-scale power outages. In addition, it can also help formulate reasonable maintenance and overhaul plans, reduce unnecessary maintenance costs, and improve maintenance efficiency.

[0003] Steady-state recording involves long-term continuous recording of line sampling data in substations, which generates a large amount of data. If the data is directly stored on the hard disk, it will not only take up a lot of storage space, but also the frequent read and write operations will shorten the service life of the hard disk. In order to solve the problem of excessive data volume, a common practice is to downsample the sampled data. There are two specific methods: one is to record only one of every four sampled values ​​and discard the first three sampled points; the other is to calculate multiple harmonic parameters and interpolate the original data to obtain sampled data of any frequency. Although these methods can reduce the amount of data, they may also cause the loss of original sampled data information. Summary of the invention

[0004] The present invention provides a method and system for compressing and storing steady-state recording data, which is used to solve the defects of original data loss and low compression rate in the prior art. The present invention can realize lossless compression of input steady-state recording data, and has a high compression rate, which greatly saves storage space.

[0005] The present invention provides a method for compressing and storing steady-state recorded data, comprising: decomposing input steady-state recorded data according to a preset decomposition range to obtain a plurality of cycle data to be stored; determining a cycle waveform dictionary based on a hash index; the cycle waveform dictionary includes a plurality of cycle samples, waveform repetition frequencies and waveform numbers; the data storage structure of the cycle waveform dictionary is a hash index linked list; searching the cycle waveform dictionary according to the cycle data to be stored; storing the cycle data to be stored according to a preset compression format when the cycle data to be stored matches the cycle waveform dictionary; the preset compression format includes a recording frequency and a recording number; the recording number is the same as the waveform number corresponding to the matched cycle sample.

[0006] According to a method for compressing and storing steady-state recorded data provided by the present invention, after searching the frequency waveform dictionary according to the frequency data to be stored, the method further includes: when the frequency data to be stored does not match the frequency waveform dictionary, storing the frequency data to be stored according to a preset storage format; the preset storage format includes a preset number, length bytes, waveform length and waveform data.

[0007] According to a method for compressing and storing steady-state recorded wave data provided by the present invention, the preset decomposition range is a range determined by searching for waveform extreme points according to the rated frequency of the input steady-state recorded wave data.

[0008] According to a method for compressing and storing steady-state recorded data provided by the present invention, the determining of a frequency waveform dictionary based on a hash index comprises: obtaining a plurality of the frequency samples; performing waveform matching by mapping a hash function to a corresponding hash index linked list and / or a harmonic matching method according to the frequency samples, determining a plurality of initial dictionary units, and setting the waveform repetition frequency of the stored frequency samples accordingly; sorting the plurality of frequency samples in descending order of waveform repetition frequency to obtain a sorting result; and selecting a preset number of dictionary units from the plurality of initial dictionary units as final dictionary units according to the sorting result, and setting the waveform numbers of the frequency samples stored in the final dictionary units.

[0009] According to a method for compressing and storing steady-state recorded data provided by the present invention, when the cycle data to be stored matches the cycle waveform dictionary, the recording frequency is superimposed according to the number of repetitions of the same waveform, and when a preset number of times is reached, the count is reset.

[0010] A method for compressing and storing steady-state recorded wave data provided by the present invention further includes: simultaneously storing the input steady-state recorded wave data of multiple channels.

[0011] The present invention also provides a compression storage system for steady-state recorded data, comprising: a decomposition module, used for decomposing input steady-state recorded data according to a preset decomposition range to obtain a plurality of cycle data to be stored; a dictionary determination module, used for determining a cycle waveform dictionary based on a hash index; the cycle waveform dictionary includes a plurality of cycle samples, waveform repetition frequencies and waveform numbers; the data storage structure of the cycle waveform dictionary is a hash index linked list; a search module, used for searching the cycle waveform dictionary according to the cycle data to be stored; a compression module, used for storing the cycle data to be stored in a preset compression format when the cycle data to be stored matches the cycle waveform dictionary; the preset compression format includes a recording frequency and a recording number; the recording number is the same as the waveform number corresponding to the matching cycle sample.

[0012] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the processor executes the computer program, the method for compressing and storing steady-state recorded data as described in any one of the above is implemented.

[0013] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for compressing and storing steady-state recorded data as described in any one of the above is implemented.

[0014] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for compressing and storing steady-state recorded data as described in any one of the above is implemented.

[0015] The present invention provides a method and system for compressing and storing steady-state recording data, the method comprising: decomposing input steady-state recording data according to a preset decomposition range to obtain a number of cycle data to be stored; determining a cycle waveform dictionary based on a hash index; the cycle waveform dictionary includes a number of cycle samples, waveform repetition frequencies and waveform numbers; searching the cycle waveform dictionary according to the cycle data to be stored; when the cycle data to be stored matches the cycle waveform dictionary, storing the cycle data to be stored according to a preset compression format; the preset compression format includes recording frequency and recording number; the recording number is the same as the waveform number corresponding to the matching cycle sample. The present invention can achieve lossless compression of input steady-state recording data, and has a high compression rate, greatly saving storage space. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 The present invention is a flowchart of a method for compressing and storing steady-state recorded wave data.

[0018] Figure 2 It is a specific flow chart of a method for compressing and storing steady-state recorded wave data provided by the present invention.

[0019] Figure 3 This is one of the schematic diagrams of the principle of decomposing input steady-state recorded wave data provided by the present invention.

[0020] Figure 4 This is the second schematic diagram of the principle of decomposing input steady-state recorded wave data provided by the present invention.

[0021] Figure 5 It is one of the principle schematic diagrams of determining a frequency waveform dictionary based on a hash index provided by the present invention.

[0022] Figure 6 This is the second schematic diagram of the principle of determining a frequency waveform dictionary based on a hash index provided by the present invention.

[0023] Figure 7 It is a structural schematic diagram of a compression storage system for steady-state recorded wave data provided by the present invention.

[0024] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0025] 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 the drawings of the present invention. Obviously, the described embodiments are 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.

[0026] Please refer to Figure 1 , Figure 1 A schematic flow chart of a method for compressing and storing steady-state recorded wave data provided by the present invention.

[0027] Please refer to Figure 2 , Figure 2A schematic diagram of a specific flow chart of a method for compressing and storing steady-state recorded wave data provided by the present invention.

[0028] The present invention provides a method for compressing and storing steady-state recorded wave data, comprising:

[0029] 101: Decompose the input steady-state recording data according to a preset decomposition range to obtain a plurality of cycle data to be stored.

[0030] Please refer to Figure 3 , Figure 3 This is one of the schematic diagrams of the principle of decomposing input steady-state recorded wave data provided by the present invention.

[0031] Please refer to Figure 4 , Figure 4 The second schematic diagram of the principle of decomposing input steady-state recorded data provided by the present invention.

[0032] As a preferred embodiment, the preset decomposition range is a range determined by searching for waveform extreme points based on the rated frequency of the input steady-state recorded data.

[0033] In this embodiment, the steady-state recording data of current and voltage is a sine wave. Considering the possibility of harmonics, the interval between two adjacent maximum or minimum points of the waveform can be found according to the rated frequency of the input steady-state recording data as a preset decomposition range. According to the preset decomposition range, the cycle data is used as a data unit for repeated data matching, and the continuously input steady-state recording data is decomposed and converted into a number of continuously input cycle data to be stored. For example: the rated frequency of the input steady-state recording data is 50Hz, and the sampling frequency is 4000Hz, then the number of cycle sampling points is 80, and the maximum point can be found within the range of 120 points, and the sampling data between the two maximum points is the cycle data to be stored.

[0034] 102: Determine a frequency waveform dictionary based on hash index; the frequency waveform dictionary includes a number of frequency samples, waveform repetition frequency and waveform number; the data storage structure of the frequency waveform dictionary is a hash index linked list.

[0035] Please refer to Figure 5 , Figure 5 One of the schematic diagrams of the principle of determining a cycle waveform dictionary based on a hash index provided by the present invention.

[0036] Please refer to Figure 6 , Figure 6 The second schematic diagram of the principle of determining a frequency waveform dictionary based on a hash index provided by the present invention.

[0037] As a preferred embodiment, determining a frequency waveform dictionary based on hash index includes: obtaining a plurality of frequency samples; performing waveform matching based on the plurality of frequency samples by mapping a hash function to a corresponding hash index linked list and / or a harmonic matching method, determining a plurality of initial dictionary units, and correspondingly setting the waveform repetition frequency of the stored frequency samples; sorting the plurality of frequency samples in descending order of waveform repetition frequency to obtain a sorting result; and selecting a preset number of dictionary units from the plurality of initial dictionary units as final dictionary units based on the sorting result, and setting the waveform numbers of the frequency samples stored in the final dictionary units.

[0038] In order to determine the cycle waveform dictionary based on hash index, in this embodiment, firstly obtain a number of cycle samples, and then perform waveform matching according to the method of mapping the number of cycle samples to the corresponding hash index linked list through hash function and / or harmonic matching. The matching rules of the data units in the cycle waveform dictionary can be set according to the waveform characteristics, and the waveform matching can be completely equal in value, or equal or harmonically the same within a certain error range. If the waveform matches the waveform of the cycle waveform dictionary, the waveform repetition frequency of the corresponding dictionary unit in the cycle waveform dictionary is increased by one; if there is no matching waveform dictionary unit, a new dictionary unit is inserted, and the current input cycle is cached according to the dictionary index, so that multiple initial dictionary units can be obtained. The corresponding relationship of the data in the cycle waveform dictionary is the waveform repetition frequency and waveform number corresponding to the dictionary unit. The hash value of each cycle sample is calculated by the hash function, and these samples can be mapped to the corresponding hash index linked list, which speeds up the search speed and solves the hash conflict, that is, when different cycle samples generate the same hash value, they will be stored in the same linked list. The waveform repetition frequency is used to record the number of times each cycle sample appears in the cycle waveform dictionary, and the waveform number is the identifier of each cycle sample. The waveform number can be determined according to the waveform repetition frequency. Specifically, after n times, the waveform dictionary is initialized by performing waveform index encoding according to the waveform repetition frequency. The dictionary units in the cycle waveform dictionary can be sorted in descending order according to the waveform repetition frequency to obtain the sorting result; according to the sorting result, a preset number of dictionary units are selected from multiple initial dictionary units as the final dictionary units (for example, 15). Then the waveform number is assigned to the cycle samples stored in the final dictionary unit.

[0039] This embodiment uses the cycle samples as the dictionary unit for data repetition comparison and numbers the waveforms according to the repetition frequency of continuous waveforms, which greatly saves storage space. For steady-state recording, the cycle data is the same and repeated most of the time. Based on these characteristics, the cycle data can be used as the dictionary unit to have a higher waveform repetition frequency. The 2 waveforms with the highest repetition frequency are selected. a -1 waveform numbering occupies a bit, the value range is 0~2a -2, and then use b bits to represent the frequency of waveform repetition. If the data of a cycle is k points with 4 bytes per point, then the data space for t consecutive cycles is 4×k×t bytes, and the stored data is (a+b) / 8 bytes. The cycle waveform is stored in a separate file with the dictionary and contains 2 a - 1 waveform, each waveform occupies 4×k bytes.

[0040] For example: select the 15 waveforms with the highest waveform repetition frequency for numbering (coding), which takes up 4 bits ranging from 0 to 14. When all 4 bits are 1, it means recording the original data. Then use 12 bits to represent the waveform repetition frequency. The waveform repetition frequency and waveform number take up 2 bytes. It can represent a maximum of 4096 consecutive repetitive waveforms and about 1.25M sampling data. The waveform can also be recorded directly.

[0041] By constructing an effective cycle waveform dictionary through this embodiment, it is the basis of the compression storage process, which allows the rapid identification and storage of repeated waveforms, thereby significantly reducing the storage space requirements. In addition, this method also has good scalability and adaptability, and can be applied to power system data of different sizes and types.

[0042] 103: Perform a frequency waveform dictionary search based on the frequency data to be stored.

[0043] 104: When the frequency data to be stored matches the frequency waveform dictionary, the frequency data to be stored is stored according to a preset compression format; the preset compression format includes a recording frequency and a recording number; the recording number is the same as the waveform number corresponding to the matched frequency sample.

[0044] As a preferred embodiment, when the frequency data to be stored matches the frequency waveform dictionary, the recording frequency is superimposed according to the number of repetitions of the same waveform, and when the preset number is reached, the count is reset.

[0045] In the present embodiment, the inputted cycle data to be stored is searched in the cycle waveform dictionary. When the cycle data to be stored matches the cycle waveform dictionary, after the corresponding waveform number is found, the recording number is the same as the waveform number corresponding to the matching cycle sample. The recording frequency is superimposed according to the number of repetitions of the same waveform. If it is the same as the cycle waveform of the previous recording, the recording frequency of the current cycle to be stored is the recording frequency of the previously stored cycle plus one. The recording frequency can also be saved and the count reset when the preset number of times is reached. If it is different from the cycle waveform of the previous recording, the recording frequency of the current cycle to be stored is counted according to the number of re-counts. The recording frequency of the subsequent cycles to be stored is also analogous, and this embodiment will not be repeated here.

[0046] For the encoding of a continuously repeated waveform, for example: the first waveform is encoded as 1001, then the encoding of the 23rd waveform is 000000010111, and finally the encoding of the entire waveform is 1001000000010111. The present invention does not make any special limitation here.

[0047] As a preferred embodiment, after searching the frequency waveform dictionary according to the frequency data to be stored, it also includes: when the frequency data to be stored does not match the frequency waveform dictionary, storing the frequency data to be stored according to a preset storage format; the preset storage format includes a preset number, length bytes, waveform length and waveform data.

[0048] In this embodiment, when the frequency data to be stored does not match the frequency waveform dictionary, the frequency data to be stored is stored according to a preset storage format; the preset storage format includes a preset number, length bytes, waveform length and waveform data.

[0049] The preset number is a number that identifies the unmatched frequency data, and can be a fixed value or a serial number generated according to a certain rule, and is used to quickly locate the data during retrieval or analysis.

[0050] The length byte number refers to the number of bytes required to store the waveform data.

[0051] The waveform length is the number of sample points in the waveform data.

[0052] The waveform data is the actual waveform sampling value.

[0053] For example, if the recording mode is that the first 4 bits are all 1, followed by 1 length byte, the frequency of 80 points can be counted as 0xF0 0x010x50 {80 sampling values}.

[0054] As a preferred embodiment, it also includes: simultaneously storing input steady-state recording data of multiple channels.

[0055] In this embodiment, when it is necessary to record data of multiple channels simultaneously, the waveform data of m channels can be recorded in units of 2. b Waveforms are recorded in sequence; long-term recordings can be recorded in multiple files, each file records m×2 b An integer multiple of m waveforms, m channel dictionary tables can be stored in one file, and the number of channels and frequency m are written in the file header.

[0056] For example, when storing waveform data into a file, for the sampling data of 25 channels, it is stored once every 4096 cycles, and the channel number 25 and the frequency number 4096 are written in the file header. The initial incomplete frequency data is stored as original data, and then the first channel starts to store 4096 cycles, and then the data of the second channel is stored, and 25 cycles are stored in sequence. This method is also applicable to storing any cycle corresponding to the situation where there are less than 4096 cycles. The waveform dictionary can be stored in a separate file, in which 25 channels, 15 cycles per channel and their encoding information are stored in sequence.

[0057] The compression storage method for steady-state recording data provided by the present invention can express a maximum of 4096 waveform data using only 2 bytes for recording a stable normal waveform, can achieve lossless compression of input steady-state recording data, and has a high compression rate, greatly saving storage space and extending the service life of the hard disk.

[0058] In addition, when you need to decompress a recording, you can restore the compressed data by following the steps below:

[0059] Read the dictionary file, obtain the waveform dictionary information, and establish a one-to-one mapping between the frequency data of each channel and the waveform number of each channel;

[0060] Read the record file header to obtain the number of cycles m and the number of channels 2b;

[0061] Read the recorded data part. According to the waveform dictionary, read (a+b) / 8 bytes. The first a bits of data represent the waveform number M, and the last b bits of data represent the number of repetitions N. If the number A is less than 2a-1, find the corresponding waveform according to the number M, repeat the found waveform data N times, and restore it to the original sampled data.

[0062] Read 2b waveform data as the recording data of channel 1, then read 2b waveform data as the recording data of channel 2, and read the data of m channels in sequence, and finally complete the restoration of the sampling data of m channels;

[0063] The acquired data can be converted into the required file format according to requirements.

[0064] The following is a description of the compression storage system for steady-state recorded data provided by the present invention. The compression storage system for steady-state recorded data described below and the compression storage method for steady-state recorded data described above can be referenced to each other.

[0065] Please refer to Figure 7 , Figure 7 A schematic structural diagram of a compression storage system for steady-state recorded wave data provided by the present invention.

[0066] The present invention also provides a compression storage system for steady-state recorded data, comprising: a decomposition module 701, used to decompose input steady-state recorded data according to a preset decomposition range to obtain a plurality of cycle data to be stored; a dictionary determination module 702, used to determine a cycle waveform dictionary based on a hash index; the cycle waveform dictionary includes a plurality of cycle samples, waveform repetition frequencies and waveform numbers; the data storage structure of the cycle waveform dictionary is a hash index linked list; a search module 703, used to search the cycle waveform dictionary according to the cycle data to be stored; a compression module 704, used to store the cycle data to be stored according to a preset compression format when the cycle data to be stored matches the cycle waveform dictionary; the preset compression format includes the recording frequency and the recording number; the recording number is the same as the waveform number corresponding to the matched cycle sample.

[0067] As a preferred embodiment, it also includes a mismatch module, which is used to store the frequency data to be stored according to a preset storage format when the frequency data to be stored does not match the frequency waveform dictionary; the preset storage format includes a preset number, length bytes, waveform length and waveform data.

[0068] As a preferred embodiment, it also includes a multi-channel module for simultaneously storing input steady-state recording data of multiple channels.

[0069] Figure 8 An example of a structural diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the compression storage method of the steady-state recording data, the method comprising: decomposing the input steady-state recording data according to the preset decomposition range to obtain a plurality of cycle data to be stored; determining a cycle waveform dictionary based on hash index; the cycle waveform dictionary includes a plurality of cycle samples, waveform repetition frequency and waveform number; the data storage structure of the cycle waveform dictionary is a hash index linked list; searching the cycle waveform dictionary according to the cycle data to be stored; when the cycle data to be stored matches the cycle waveform dictionary, storing the cycle data to be stored according to the preset compression format; the preset compression format includes the recording frequency and the recording number; the recording number is the same as the waveform number corresponding to the matching cycle sample.

[0070] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0071] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the compression storage method of steady-state recorded data provided by the above methods, the method including: decomposing the input steady-state recorded data according to a preset decomposition range to obtain a plurality of cycle data to be stored; determining a cycle waveform dictionary based on a hash index; the cycle waveform dictionary includes a plurality of cycle samples, waveform repetition frequencies and waveform numbers; the data storage structure of the cycle waveform dictionary is a hash index linked list; performing a cycle waveform dictionary search according to the cycle data to be stored; when the cycle data to be stored matches the cycle waveform dictionary, storing the cycle data to be stored according to a preset compression format; the preset compression format includes the recording frequency and the recording number; the recording number is the same as the waveform number corresponding to the matching cycle sample.

[0072] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the compression storage method of steady-state recorded data provided by the above-mentioned methods, the method comprising: decomposing the input steady-state recorded data according to a preset decomposition range to obtain a plurality of cycle data to be stored; determining a cycle waveform dictionary based on a hash index; the cycle waveform dictionary includes a plurality of cycle samples, waveform repetition frequencies and waveform numbers; the data storage structure of the cycle waveform dictionary is a hash index linked list; performing a cycle waveform dictionary search according to the cycle data to be stored; when the cycle data to be stored matches the cycle waveform dictionary, storing the cycle data to be stored according to a preset compression format; the preset compression format includes a recording frequency and a recording number; the recording number is the same as the waveform number corresponding to the matched cycle sample.

[0073] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0074] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0075] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for compressing and storing steady-state recorded wave data, characterized in that: include: Decomposing the input steady-state recording data according to a preset decomposition range to obtain a plurality of cycle data to be stored; the preset decomposition range is a range determined by searching for waveform extreme points according to the rated frequency of the input steady-state recording data; Determine a cycle waveform dictionary based on a hash index; the cycle waveform dictionary includes a number of cycle samples, waveform repetition frequencies and waveform numbers; The data storage structure of the cycle waveform dictionary is a hash index linked list; The step of determining a cycle waveform dictionary based on a hash index comprises: Acquire a number of the frequency samples; According to the plurality of the cycle samples, waveform matching is performed by mapping a hash function to the corresponding hash index linked list and / or harmonic matching, a plurality of initial dictionary units are determined, and the waveform repetition frequency of the stored cycle samples is set accordingly; Sorting the plurality of cycle samples in descending order of waveform repetition frequency to obtain a sorting result; According to the sorting result, selecting a preset number of dictionary units from the plurality of initial dictionary units as final dictionary units, and setting waveform numbers of the cycle samples stored in the final dictionary units; Performing a cycle waveform dictionary search according to the cycle data to be stored; When the frequency data to be stored matches the frequency waveform dictionary, the frequency data to be stored is stored in a preset compression format; the preset compression format includes a recording frequency and a recording number; the recording number is the same as the waveform number corresponding to the matching frequency sample.

2. The method for compressing and storing steady-state recorded wave data according to claim 1, characterized in that: After performing the cycle waveform dictionary search according to the cycle data to be stored, the method further includes: In the case where the frequency data to be stored does not match the frequency waveform dictionary, the frequency data to be stored is stored according to a preset storage format; the preset storage format includes a preset number, length bytes, waveform length and waveform data.

3. The method for compressing and storing steady-state recorded wave data according to claim 1, characterized in that: In the case where the cycle data to be stored matches the cycle waveform dictionary, the recording frequency is superimposed according to the number of repetitions of the same waveform, and when the preset number of times is reached, the count is reset.

4. The method for compressing and storing steady-state recorded wave data according to any one of claims 1 to 3, characterized in that: Also includes: The input steady-state recording data of multiple channels are stored simultaneously.

5. A compression storage system for steady-state recorded wave data, characterized in that: include: A decomposition module, used to decompose the input steady-state recording data according to a preset decomposition range to obtain a plurality of cycle data to be stored; the preset decomposition range is a range determined by searching for waveform extreme points according to the rated frequency of the input steady-state recording data; A dictionary determination module, used to determine a cycle waveform dictionary based on a hash index; the cycle waveform dictionary includes a number of cycle samples, waveform repetition frequencies and waveform numbers; The data storage structure of the cycle waveform dictionary is a hash index linked list; The step of determining a cycle waveform dictionary based on a hash index comprises: Acquire a number of the frequency samples; According to the plurality of the cycle samples, waveform matching is performed by mapping a hash function to the corresponding hash index linked list and / or harmonic matching, a plurality of initial dictionary units are determined, and the waveform repetition frequency of the stored cycle samples is set accordingly; Sorting the plurality of cycle samples in descending order of waveform repetition frequency to obtain a sorting result; According to the sorting result, selecting a preset number of dictionary units from the plurality of initial dictionary units as final dictionary units, and setting waveform numbers of the cycle samples stored in the final dictionary units; A search module, used for searching the cycle waveform dictionary according to the cycle data to be stored; A compression module is used to store the frequency data to be stored in accordance with a preset compression format when the frequency data to be stored matches the frequency waveform dictionary; the preset compression format includes a recording frequency and a recording number; the recording number is the same as the waveform number corresponding to the matching frequency sample.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the method for compressing and storing steady-state recorded data as described in any one of claims 1 to 4 is implemented.

7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for compressing and storing steady-state recorded data as claimed in any one of claims 1 to 4 is implemented.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for compressing and storing steady-state recorded data as claimed in any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Digital waveform compression method, device and equipment based on dictionary compression algorithm

    CN115622569A

  • Dynamic compression method for lightning waveform data and hardware implementation method

    CN115801017A