Data compression system and data compression method
Patent Information
- Application Number
- JP2022023881
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2022-02-18
- Publication Date
- 2024-08-28
- Estimated Expiration
- 2042-02-18
AI Technical Summary
Existing data compression techniques do not optimize the compression ratio for different portions of data, leading to suboptimal results when a single compression method is used, particularly for large-scale data generated by IoT devices.
A data compression system that employs multiple irreversible compression methods, combining a first compression technique with a second compression technique to generate and store difference information, allowing for tailored compression based on the characteristics of each data portion.
This approach improves the compression ratio by using the most appropriate technique for each data segment, enhancing storage and transfer efficiency.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to reduction of data volume.
Background Art
[0002] A storage system for reducing data volume is known (for example, Patent Document 1). Such a storage system generally reduces the data volume by compression. As one of the existing compression methods, there is known a method of dictionaryizing a string that appears frequently within a predetermined block unit, such as the run-length method, and replacing it with a code of a smaller size.
[0003] As a technique for reducing data volume rather than reversible compression such as the run-length method, an irreversible compression technique is known. For example, for video data, High Efficiency Video Coding (HEVC) and Versatile Video Coding (VVC), which are standardized compression techniques, are known (hereinafter, standard codec).
[0004] Also, as a technique (DeepVideo Compression) for reducing the data volume of video by a compressor and an expander configured by a Deep Neural Network (DNN), there is, for example, Non-Patent Document 2.
Prior Art Documents
Patent Documents
[0005]
Patent Document 1
Non-Patent Documents
[0006]
Non-Patent Document 1
[0007] From the perspective of reducing the costs associated with data storage and transfer, highly efficient, lossy compression is considered necessary for storing and transferring large amounts of data generated by IoT (Internet-of-Things) devices and other devices.
[0008] However, because the optimal lossy compression technique differs for each portion of the data, using only a single compression technique presents the challenge of not achieving optimal compression. For example, in intra-frame encoding for video compression, the optimal compression ratio of a standard codec or Deep Video Compression may vary depending on the spatial region of each frame.
[0009] This issue is not limited to standard codecs and Deep Video Compression for video data, but can occur with two or more compression techniques for various types of data. [Means for solving the problem]
[0010] A data compression system according to one aspect of the present invention includes one or more processors and one or more storage devices. The one or more processors compress the original data using a first lossy compression method to generate first compressed data, decompress the first compressed data to generate first decompressed data, extract difference information between the original data and the first decompressed data, compress the difference information using a second lossy compression method different from the first lossy compression method to generate second compressed data, and store the first compressed data and the second compressed data in the one or more storage devices. [Effects of the Invention]
[0011] According to one aspect of the present invention, since an appropriate compression technique can be selectively used for each part of data, the compression ratio is improved as compared with the case where only a single compression technique is used.
Brief Description of Drawings
[0012] [Figure 1] Outline of Example 1 [Figure 2] System Configuration Diagram in Example 1 [Figure 3] Memory Configuration in Example 1 [Figure 4] Compressed Data Management Table in Example 1 [Figure 5] Flowchart of Data Compression Program in Example 1 [Figure 6] Flowchart of Data Decompression Program in Example 1 [Figure 7] Block Diagram of Intra-Frame Encoding Processing in Example 1 [Figure 8] Block Diagram of First Example of Inter-Frame Encoding Processing in Example 1 [Figure 9] Block Diagram of Second Example of Inter-Frame Encoding Processing in Example 1 [Figure 10] Block Diagram of Learning Processing in Example 1 [Figure 11] Outline of Example of Loss Function in Example 1
Modes for Carrying Out the Invention
[0013] Next, examples of this specification will be described based on the drawings. Note that the present invention is not limited to the examples described below.
Examples
[0014] (1-1) Outline First, the outline of Example 1 will be described using FIG. 1. FIG. 1 shows the logical configuration of the system. The system includes a data generation source 100, a client 101, a compression unit 102, an expansion unit 103, a storage / communication unit 104, and a storage 105.
[0015] The data generation source 100 is the entity that generates the data to be compressed. For example, it is an image sensor that generates video data. In this example, the case where the data generation source 100 is an image sensor that generates video data will be described as an example. However, the data generation source 100 and the data it generates are not limited to this, and for example, it may be an image sensor that generates still image data, a vibration sensor that generates one-dimensional time-series data, etc.
[0016] Also, the data generation source 100 is not limited to sensors, and it may be software such as Computer Graphics that generates video data or still image data. Further, the data generation source 100 may be data obtained by processing the data generated by sensors, software, etc., such as a Segmentation Map obtained by Semantic Segmentation of each frame of video data. Also, there may be multiple data generation sources 100.
[0017] The compression unit 102 is a module that compresses the data generated by the data generation source 100. When the compression unit 102 receives the video data to be compressed, it inputs the frame of the data (hereinafter, the original frame) to the compressor 120 (hereinafter, compressor A) of the first compression technology, and obtains the compressed data Main stream 121 obtained as its output. The first compression technology is an irreversible compression technology. At this time, the Main stream is generated so that the bit consumption amount is less than when compressed to a desired image quality using only the first compression technology. The bit consumption amount represents the size of the compressed data, and the smaller the value, the higher the compression ratio.
[0018] Bit consumption can be reduced by any method. For example, bit consumption can be reduced by uniformly increasing the quantization parameter (QP) across the entire frame, or by comparing the compression ratios of the first and second compression techniques for each region within the frame and increasing QP in regions where the compression ratio of the second compression technique is better, thereby reducing bit consumption. The second compression technique is a lossy compression technique.
[0019] The compression parameter setter 128 is a block in the compression unit 102 that determines the parameters for compressor A120, or compressor B125, or both. The compression parameter setter 128 can reduce the bit consumption by compressor A120 across the entire frame by, for example, setting a QP obtained by adding a constant to a QP specified by the user as a parameter for compressor A120.
[0020] Alternatively, for example, the compression parameter setter 128 may set the parameters of compressor A120 to increase the QP of compressor A120 in regions where the compression ratio of compressor B125 is good, based on the compression ratio measured by actually compressing each patch obtained by dividing the original frame into tiles using compressors A120 and B125. Alternatively, for example, the compression parameter setter 128 may output parameters that result in the image quality specified by the user, based on the relationship between bit consumption and image quality measured in advance.
[0021] Furthermore, the compression parameter setter 128 may, for example, set the learned parameters of the neural network of compressor B125 corresponding to the parameters of compressor A120 if compressor B125, described later, is a compressor composed of a neural network that has been trained for each parameter of compressor A120.
[0022] However, the compression parameter setter 128 is not limited to these. Also, if the parameters of compressors A120 and B125 are fixed values, or if the user is allowed to specify the parameters, the compression parameter setter 128 may not be necessary.
[0023] Next, the compression unit 102 inputs the Main stream 121 to the decompressor 122 (hereinafter referred to as decompressor A) of the first compression technology to obtain a decompressed frame (hereinafter referred to as the first decompressed frame). Next, the compression unit 102 inputs the original frame and the first decompressed frame to the second compression unit 123 to obtain the Side stream 126, which is compressed data obtained as its output.
[0024] At this time, the bit consumption of the side stream is controlled to improve the image quality in the region where the compression ratio of the second compression technique is good, relative to the first compression technique. Any control method may be used, but for example, it can be controlled by a Deep Neural Network (DNN) as described later. Alternatively, it can be controlled by the compression parameter setter 128 as described above.
[0025] The second compression unit 123 includes an image quality improvement information extractor 124 and a compressor 125 (hereinafter referred to as compressor B) of the second compression technology. The image quality improvement information extractor 124 takes the original frame and the first decompressed frame as input and outputs data in a format that can be compressed by compressor B 125. For example, the image quality improvement information extractor 124 subtracts the first decompressed frame element by element from the original frame and outputs a new frame representing the residuals between the two. The output of the image quality improvement information extractor 124 is compressed into a side stream by compressor B 125.
[0026] However, the image quality improvement information extractor 124 is not limited to this; for example, it may be a block that outputs a frame obtained by dividing the original frame element by element by the first decompressed frame, or it may be a block composed of any other computable process. Also, the second compression unit 123 does not need to consist of an independent image quality improvement information extractor 124 and a compressor B125, but may be a single functional block that encompasses the functions of both. For example, as will be described later, the second compression unit 123 may be a single DNN that takes the original frame and the first decompressed frame as input and outputs a Side stream 126.
[0027] Furthermore, the blocks included in the second compression unit 123 are not limited to the image quality improvement information extractor 124 and the compressor B125, but may also include other functional blocks. For example, it may include a block that outputs the setting information of the compressor B125 from the original frame and the first decompressed frame.
[0028] Finally, the compression unit 102 associates the Main stream 121 and the Side stream 126 using the compressed data management table 127. The compression unit 102 then transmits this as the final compressed data to the storage and communication unit 104.
[0029] The storage and communication unit 104 is a module that stores data received from the compression unit 102 in the storage unit 105, transfers it to the decompression unit 103, and responds to requests from the decompression unit 103 by providing the compressed data stored in the storage unit 105 to the decompression unit 103. The decompression unit 103 is a module that decompresses the compressed data obtained from the storage and communication unit 104 and responds to requests from the client 101.
[0030] The client 101 may be a different computer from the computer that processes the decompression unit 103, or it may be software such as video display software or video analysis software that runs on the same computer as the decompression unit 103, or it may be any other hardware and software that consumes the decompressed data. The client 101 may request data from the decompression unit 103 frame by frame, or request data for each video, or request the data generated by the data source 100 to be sent as it is generated, or request data under any other arbitrary conditions.
[0031] When the decompression unit 103 receives compressed data from the storage and communication unit 104, it obtains the Main stream 130 and Side stream 132 from the compressed data management table 136 that constitutes the data. Next, it inputs the Main stream to the decompressor A122 to obtain the first decompressed frame. Then, it inputs the Side stream 132 and the first decompressed frame to the second decompression unit 133 to obtain the final decompressed frame (hereinafter referred to as the final decompressed frame) and responds to the client 101.
[0032] The second decompression unit 133 includes a decompressor 134 (hereinafter referred to as decompressor B) of the second compression technology and a frame generator 135. The frame generator 135 is a block that takes the output of compressor B 134 and the first decompressed frame as input to obtain the final decompressed frame. For example, if the image quality improvement information extractor 124 outputs the residual between the original frame and the first decompressed frame, the corresponding frame generator 135 can perform the process of adding the first decompressed frame and the output of decompressor B 134.
[0033] However, the frame generator 135 is not limited to this and may be a block consisting of any computable process. Furthermore, the frame generator 135 is not limited to the inverse transformation process of the image quality improvement information extractor 124.
[0034] Furthermore, the second decompression unit 133 does not need to consist of an independent decompressor B134 and a frame generator 135, but may be a single functional block that encompasses the functions of both. For example, as will be described later, the second decompression unit 133 may be a single DNN that takes the first decompressed frame and the side stream 132 as inputs and outputs a final decompressed frame. Also, the blocks included in the second decompression unit 133 are not limited to the decompressor B134 and the frame generator 135, but may include other functional blocks.
[0035] The processing of the compression unit 102 and the decompression unit 103 described above may be performed for each frame of the video, or for each unit of multiple frames. When processing multiple frames together, the first compression technique, the second compression technique, or both may perform encoding that takes temporal redundancy into consideration, similar to inter-frame coding in video compression.
[0036] (1-2) System Configuration The system configuration of Example 1 will be explained using Figure 2. The compression unit 102, the decompression unit 103, and the storage / communication unit 104 are computers equipped with hardware resources such as a processor, memory, and network interface, and software resources such as an operating system, middleware, data compression program, and data decompression program. The switch 206 interconnects the compression unit 102, the decompression unit 103, and the storage / communication unit 104.
[0037] The compression unit 102 consists of a Front-end Interface 220, a processor 221, RAM 223, a Back-end Interface 226, and a switch 222. The Front-end Interface 220 is an interface for connecting the compression unit 102 to the data generation source 100. The processor 221 controls the entire compression unit 102 via the switch 222, based on the program 224 and management information (metadata) 225 stored in the RAM 223. The Back-end Interface 226 connects the compression unit 102 to the storage and communication unit 104.
[0038] The extension unit 103 consists of a Front-end Interface 230, a processor 231, RAM 233, a Back-end Interface 236, and a switch 232. The Front-end Interface 230 is an interface for connecting the extension unit 103 to the client 101. The processor 231 controls the entire extension unit 103 via the switch 232, based on the program 234 and management information (metadata) 235 stored in the RAM 233. The Back-end Interface 236 connects the extension unit 103 to the storage and communication unit 104.
[0039] In Figure 2, the detailed configuration of the storage and communication unit 104 is omitted, but it can have a configuration similar to, for example, the compression unit 102 and the decompression unit 103.
[0040] Processors 221 and 231 may be general-purpose arithmetic units such as CPUs (Central Processing Units), accelerators such as GPUs (Graphical Processing Units) or FPGAs (Field Programmable Gate Arrays), hardware encoders / decoders for standard codecs such as HEVC, or combinations thereof.
[0041] The storage 105 may be a block device composed of a Hard Disk Drive (HDD) or Solid State Drive (SSD), a file storage device, a content storage device, a volume built on a storage system, or any other method of storing data using one or more storage devices.
[0042] The compression unit 102, the decompression unit 103, and the storage / communication unit 104 may be configured by interconnecting hardware such as ICs (Integrated Circuits) that implement the components described above, or some of them may be implemented as a single semiconductor element such as an ASIC (Application Specific Integrated Circuit) or FPGA, or they may be implemented as a VM (Virtual Machine) in software. In addition, components other than those shown herein may be added.
[0043] Furthermore, the data generation source 100, client 101, compression unit 102, decompression unit 103, and storage / communication unit 104 may be different hardware devices, different VMs running on the same computer, different containers running on the same OS (Operating System), different applications running on the same OS, each of them may consist of multiple computers, or a combination of these.
[0044] For example, the data generation source 100 may be an image sensor, the compression unit 102 may be an edge device connected to the image sensor and composed of a CPU and a GPU, the client 101 and the decompression unit 103 may be programs running on the same PC, and the storage and communication unit 104 may be a program running on Hyper Converged Infrastructure.
[0045] (1-3)RAM configuration Figure 3 shows the data configuration 300 stored in the RAM 223 of the compression unit 102 and the RAM 233 of the decompression unit 103. The RAM stores the program 310 executed by the processor and the management information 320 used by the program.
[0046] Program 310 includes a data compression program 311, a data decompression program 312, and a data learning program 313. Management information 320 includes compressed data 132. Note that the program 224 of the compression unit 102 does not necessarily include the data decompression program 312, and the program 234 of the decompression unit 103 does not necessarily include the data compression program 311.
[0047] Furthermore, if DNN training is performed on a third computer not included in the system shown in Figure 2, the training program 313 does not need to be included in the compression unit 102 or the decompression unit 103. However, in that case, the training program 313 will be expanded on the RAM of the third computer. Note that the RAM may contain data other than the program and configuration information described above.
[0048] The data compression program 311 is a program that compresses data in the compression unit 102. The data decompression program 312 is a program that decompresses the compressed data in the decompression unit 103. The learning program 313 is a program that performs learning on the DNN if the compression unit 102 and the decompression unit 103 include a DNN.
[0049] The compressed data 321 is a memory area that stores the compressed data, and is a data structure that includes a Main stream and a Side stream.
[0050] (1-4) Table structure Figure 4 shows the compressed data management table 400, which is a data structure that constitutes the compressed data 321. Note that the representation method of the compressed data 132 is not limited to the format of the compressed data management table 400, and may also be represented by data structures other than tables, such as XML (Extensible Markup Language), YAML (YAML Ain't a Markup Language), hash tables, or tree structures.
[0051] The data name column 401 of the compressed data management table 400 is a field that stores an identifier representing the data source 100. The identifier may be a string named by the user for the data source 100, a Media Access Control (MAC) address or Internet Protocol (IP) address assigned to the data source 100, or any other code that can identify the data source 100. Furthermore, if the data source 100 is obvious, the data name column 401 may not exist.
[0052] The Main stream column 402 is a field that stores the Main stream 121 obtained by compressing the data received from the data source 100 by the compressor A120. The Side stream column 403 is a field that stores the Side stream 126, which is the output of the second compression unit 123.
[0053] The Model ID column 404 is a field that stores information identifying the model used to generate the Sidestream, for example, when the second compression technique is Deep Video Compression and multiple models are available for each target image quality. However, the Model ID column 404 is optional and does not have to be included in the Compressed Data Management Table 400. In addition, fields other than those mentioned above, such as the settings information for the first compression technique and timestamps, may be included in the Compressed Data Management Table 400.
[0054] (1-5) Data compression and data decompression Figure 5 is a flowchart of the data compression program 311. The processor 221 of the compression unit 102 starts the data compression program 311 upon receiving the video data generated by the data source 100 (S500).
[0055] S501 is a step in which the processor 221 obtains one or more frames of the video received by the compression unit 102 from the data generation source 100 via the Front-end Interface 220.
[0056] S502 is a step in which the processor 221 compresses the frame acquired in S501 using the compressor A120 to generate the Main stream 121.
[0057] S503 is the step in which the processor 221 inputs the Main stream 121 generated in S501 to the decompressor A122 to generate a first decompressed frame. S504 is the step in which the processor 221 uses the frame acquired in S501 and the first decompressed frame generated in S502 as input to the second compression unit 123 to generate a Side stream 126.
[0058] Step S505 involves storing the Main stream 121 generated in S502 and the Side stream 126 generated in S504 into the compressed data management table 400 within the compressed data 321. If necessary, information such as the data name 401 and model ID 404 is also set in this step.
[0059] S506 is the step of transmitting the information from the compressed data management table 400 created in S505 to the storage and communication unit 104 via the Back-end Interface 226. After that, the data compression program 311 terminates (S507).
[0060] Figure 6 is a flowchart of the data decompression program 312. The processor 231 of the decompression unit 103 starts the data decompression program 312 upon receiving compressed data from the storage and communication unit 104 (S600).
[0061] S601 is a step in which the processor 231 obtains the compressed data received by the decompression unit 103 from the storage and communication unit 104 from the Back-end Interface 236 and stores it in the compressed data area 321 of the RAM 233 in the form of a compressed data management table 400.
[0062] S602 is the step in which the processor 231 obtains the Main stream 130 from the compressed data management table 400 in the compressed data area 321. S603 is the step in which the processor 231 decompresses the Main stream 130 obtained in S602 into a first decompressed frame using the decompressor A122.
[0063] S604 is the step in which the processor 231 retrieves the side stream 132 from the compressed data management table 400.
[0064] S605 is a step in which the processor 231 inputs the first decompressed frame generated in S603 and the Side stream acquired in S604 to the second decompression unit 133 to generate the final decompressed frame.
[0065] S606 is the step of sending the final decompressed frame generated in S605 to the client 101 through the Front-end Interface 230. After that, the data decompression program 312 terminates (S607).
[0066] The flow of data compression program 311 and data decompression program 312 has been described above. Below, we will explain three more specific examples of the flow when the first compression technique is a standard codec and the second compression technique is Deep Video Compression. However, data compression program 311 and data decompression program 312 are not limited to the examples described below.
[0067] Furthermore, two or more of the examples described below may be combined. For example, keyframes may be encoded within frames at regular intervals, while the frames in between are encoded using inter-frame encoding. The frequency of intra-frame encoding can be, for example, every predetermined number of frames, but it can also be any other frequency, such as a variable frequency.
[0068] Furthermore, all frames may be encoded using intra-frame coding. Inter-frame coding is not limited to being based on the frame immediately preceding it; for example, it may be based on a frame two or more frames earlier, or on a frame that is later in time but has already been decompressed, or a combination of these. In addition, intra-frame coding and inter-frame coding may be synchronized between the first and second compression techniques, or each may encode each frame in an independent manner.
[0069] Figure 7 shows an example of in-frame encoding of a video. The compression process 700 is a block diagram representing the compression process of in-frame encoding. The original frame 701 generated by the data source 100 is input to the compressor A120, which is a compressor of the standard codec, and compressed into Main stream 121. At this time, the bit consumption of Main stream 121 is made less than the amount required to achieve the desired image quality using only the standard codec. For example, as described above, the bit consumption may be reduced by increasing the QP of the standard codec throughout the entire frame, or the bit consumption may be selectively reduced in areas where the compression ratio of the standard codec is worse than the compression ratio of Deep Video Compression.
[0070] Next, the main stream 121 is input to decompressor A122, which is a decompressor of the standard codec, to obtain the first decompressed frame 702. Then, the original frame 701 and the first decompressed frame 702 are input to encoder 703, which is configured using a DNN.
[0071] Encoder 703 is a DNN composed of convolutional and pooling layers that takes as input a 6×Height×Width tensor, formed by concatenating a tensor of the original frame (3×Height×Width in size, represented in RGB format) and a tensor of the first expanded frame 702 (of the same size) along the channel axis, and outputs a 3D tensor.
[0072] The encoder 704 encodes the tensor output by the encoder 703 into a bit sequence and outputs a side stream 126. The encoder 704 may simply serialize the floating-point bit sequence representing the tensor output by the encoder 703, or, in order to improve the compression ratio, it may estimate the probability of each element of the tensor occurring using an entropy estimator such as an Auto Regressive Model or Hyper Prior Network composed of a DNN, and perform entropy coding such as Range Coder based on the results, or any other arbitrary means may be used.
[0073] Furthermore, the DNN included in the encoder 703 and encoder 704 may be trained to allocate particularly large amounts of bits in the region where the compression ratio of Deep Video Compression is better than that of the standard codec. An example of the training process will be described later. The encoder 703 and encoder 704 constitute the second compression unit 123. The function of the image quality improvement information extractor 124 is included in the encoder 703, and the encoder 704 has a compression function.
[0074] The decompression process 710 is a block diagram representing the decompression process of in-frame coding. The main stream 130 is input to decompressor A122, which is a decompressor of the standard codec, and is decompressed into the first decompressed frame 711. The side stream 132 is input to decoder 712 and is decoded from a bit sequence into a tensor or other format. The decoder 712 is, for example, the inverse transform of the encoder 704, so when entropy coding is performed by encoder 704, decoder 712 performs decoding using the same entropy model used by encoder 704.
[0075] The decoded tensor and the first decompressed frame 711 are input to the decoder 713, which generates the final decompressed frame 714. The decoder 713 is a DNN composed of transpose convolutional layers, etc., which takes as input the tensor of the first decompressed frame 711, which is represented in RGB format and has a size of 3 × Height × Width, and the tensor output by the decoder 712, and outputs the final decompressed frame 714, which has a size of 3 × Height × Width. The encoder 704 and decoder 713 constitute the second decompression unit 133. The encoder 704 has a decompression function. The function of the frame generator 135 is included in the decoder 713.
[0076] Figure 8 shows the first example of interframe coding of a video. Of the arrows connecting the blocks, the thick lines represent the paths required during decompression. During compression, both the thin and thick lines are used.
[0077] The original frame 801 generated by the data source 100 is compressed by the compressor A120, which is the compressor of the standard codec, and converted to the Main stream 121. Then, it is converted to the first decompressed frame 802 by the decompressor A122, which is the decompressor of the standard codec. At this time, similar to intra-frame encoding, the bit consumption of the Main stream 121 is suppressed.
[0078] Next, the original frame 801 and the first expanded frame 802 are converted into Feature 804, which is represented in the form of a tensor, by the image quality improvement information extractor 803. The image quality improvement information extractor 803 is a DNN composed of, for example, convolutional layers and pooling layers. The image quality improvement information extractor 803 takes as input a tensor of size 6 × Height × Width, which is formed by concatenating the tensor of the original frame 801, which is represented in RGB format and has a size of 3 × Height × Width, and the tensor of the first expanded frame 802, which has the same size, along the channel axis, and outputs a 3D tensor Feature 804.
[0079] Next, the first extended frame 805, which is one frame earlier in time than the original frame 801, and the final extended frame 806 are input to the image quality improvement information extractor 807 to extract the Feature 808 (hereinafter referred to as the forward Feature) from the previous frame.
[0080] The image quality improvement information extractor 807 used at this time may be the same as or different from the image quality improvement information extractor 803. Furthermore, the image quality improvement information extractors 803 and 807 do not necessarily use a DNN; for example, they may perform a process that calculates the difference between two input frames.
[0081] Furthermore, the first extended frame 805 and the final extended frame 806 are not limited to a frame that is one frame earlier in time than the original frame 801, but may be frames that are two or more frames earlier, or frames that are later in time but have already been extended. Forward features can be extracted from these frames by the image quality improvement information extractor 807.
[0082] Next, Feature 804 and forward Feature 808 are input to motion extraction 809 to extract the information necessary for the subsequent motion compensation 812. Motion extraction 809 may be, for example, a trained DNN that estimates optical flow, a DNN that is trained end-to-end together with other DNNs included in Figure 8, a motion vector predictor used in standard codecs, or any other arbitrary process.
[0083] Motion compression 810 compresses the output of motion extraction 809 into a bit sequence. Motion compression 810, for example, transforms the tensor output by motion extraction 809 using a DNN including a convolutional layer, and then encodes the resulting tensor using an entropy estimator such as an Auto Regressive model constructed with a DNN, using a Range Coder or the like. Note that the method of motion compression 810 is not limited to this.
[0084] The output of motion compression 810 is expanded by motion expansion 811 and then input to motion compensation 812 along with forward feature 808. Motion compensation 812 is a process that corrects forward feature 808 based on the information output by motion expansion 811. Motion compensation 812 is a block that, for example, warps forward feature 808, which is a 3D tensor, using offset information output by motion expansion 811, which has the same width and height as forward feature 808 and has 2 channels, but is not limited to this.
[0085] Next, the residual extractor 813 subtracts the tensor obtained as a result of motion compensation 812 from the feature 804 element by element to output residual information. However, the residual extractor 813 is not limited to this and may be a DNN or the like. The difference information is compressed into a bit string by the residual compression 814. The residual compression 814 may use the same technique as the motion compression 810, or any other compression technique may be used.
[0086] Side stream 126 is a data structure containing the bit sequence generated by motion compression 810 and the bit sequence generated by residual compression 814. The bit sequence generated by residual compression 814 is expanded by residual expansion 815 and then input to residual compensator 816 along with the output of motion compensation 812. The residual compensator 816 outputs a tensor 817 (hereinafter referred to as the expanded feature) obtained by adding the output of residual expansion 815 and the output of motion compensation 812 element by element, but is not limited to this.
[0087] Finally, the first decompressed frame 802 and the decompressed feature 817 are input to the frame generator 818 to obtain the final decompressed frame 819. The frame generator 818 is a DNN composed of transposed convolutional layers, but is not limited to this.
[0088] In the above example, motion extraction 809 and motion compensation 812 were shown using the expanded first expanded frame 805 and the final expanded frame 806. However, the method is not limited to this, and for example, the expanded expanded Feature 817 may be buffered and used as the forward Feature 808.
[0089] Figure 9 shows a second example of interframe coding. First, let's explain the compression process. The original frame 901, consisting of multiple frames, is input to the compressor A120, which is the compressor of the standard codec, to obtain the Main stream 902. Then, its decompressor A122 obtains the first decompressed frame 903, which consists of multiple frames.
[0090] Next, the original frame 901 and the first expanded frame 903 are input to the encoder 904 simultaneously for multiple frames. The encoder 904 is a DNN composed of two-dimensional convolutional layers, which takes as input a 6N × Height × Width tensor, for example, formed by connecting the original frame 901 and the first expanded frame, each with a size of 3 × Height × Width and represented in RGB format for N frames, in the direction of the channel axis, and outputs a three-dimensional tensor.
[0091] Furthermore, the encoder 904 may perform a process that converts the original frames 901, which consist of N frames with a size of 3 × Height × Width and are represented in RGB format, and the first expanded frame into a tensor of 6 × N × Height × Width, by connecting them in the channel axis direction and the frame axis direction, using a DNN composed of a 3D convolutional layer or the like, or it may perform any other arbitrary process.
[0092] The encoder 905 converts the data, such as tensors, generated by the encoder 904 into a bit sequence to generate a side stream 906. The encoder 905 is, for example, a process that encodes the tensor output by the encoder 904 using an entropy estimator of an Auto Regressive model constructed with a DNN, using a Range Coder or the like, but is not limited to this.
[0093] Next, the decompression process will be explained. The decompressor A122 outputs the first decompressed frame 903 from the Main stream 902. The decoder 907 decodes the Side stream 906 into data such as tensors. Finally, the first decompressed frame 903 and the output of the decoder 907 are input to the decoder 908 to obtain the final decompressed frame 909 for multiple frames.
[0094] Decoder 908 is a DNN composed of a 2D transposed convolutional layer, for example, that outputs a tensor of size 3N × Height × Width to output the final expanded frame 909 for N frames. Alternatively, decoder 908 may be a DNN composed of a 3D convolutional layer that takes multiple 3D tensors as input and outputs multiple tensors of size 3 × Height × Width, or it may be any other arbitrary processing.
[0095] (1-6) DNN training process Figure 10 shows an overview of the DNN training program 313. Below, we will show an overview of the training using the intra-frame coding shown in Figure 7 as an example, but the DNN can be trained in a similar manner for inter-frame coding shown in Figures 8 and 9. Note that the DNN training method is not limited to that described below, and any training data, optimizer, loss function, etc. may be used.
[0096] The training dataset 1000 is the data used to train the DNN. The original frame 1001 is data consisting of frames from the video before compression. The first decompressed frame 1002 is a frame obtained by compressing and decompressing the original frame 1001 using intra-frame encoding of a standard codec.
[0097] Let's explain the DNN training flow. First, from the training dataset 1000, we obtain the original frames 1001 equal to the batch size used for training, and the corresponding first decompressed frames 1002. Next, the original frames 1001 and the first decompressed frames 1002 are input to the encoder 703, which outputs features such as tensors 1010.
[0098] If the output of encoder 703 includes a process to quantize the value of Feature 1010 into an integer, then during training, modifications such as adding noise to the tensor instead of quantization may be made to enable backpropagation. Alternatively, other generally known approximation methods for quantization that enable backpropagation may be used. Next, Feature 1010 and the first decompressed frame 1002 are input to decoder 713 to obtain the final decompressed frame 1011.
[0099] Next, the image quality between the acquired final expanded frame 1011 and the original frame 1001 is quantified using Mean Squared Error (MSE) 1014 or the like. Note that the image quality metric is not limited to MSE; any metric such as L1 norm or Multi-scale Structural Similarity may be used. If an encoder 704 that entropy encodes Feature 1010 is used, the probability of each element of Feature 1010 occurring is estimated by an entropy estimator 1012, such as an Auto Regressive Model composed of a DNN.
[0100] Next, based on the estimation results of the entropy estimator 1012, the bit-per-pixel (bpp) consumption of Feature 1010 after encoding is calculated by the bit-per-pixel (bpp) calculator 1013. Bpp is an index representing the bit consumption per pixel. The bpp calculated by 1013 and the MSE calculated by 1014 are input to the Loss function 1015, and the learning loss value is calculated.
[0101] Subsequently, based on the value of the Loss function, the DNN learning parameters included in the encoder 703, decoder 713, entropy estimator 1012, etc., are updated using methods such as backpropagation. Note that the input to the Loss function 1015 is not limited to the calculated bpp and MSE; the DNN learning parameters may also be used as input, and regularization such as weight decay may be reflected in the learning process. Furthermore, if the entropy estimator 1012 is a Hyper Prior Network, the bpp of the Hyper Prior may be estimated in the same way and used as input to the Loss function 1015.
[0102] Loss function 1015 is a function that linearly combines bpp and MSE using the hyperparameter a (L = MSE + a × bpp). Hyperparameter a is a parameter that adjusts the bit consumption of Side stream 126.
[0103] Alternatively, the following formula (1) may be used as the Loss function 1015.
[0104]
number
[0105] By using equation (1), the DNN can be trained to maximize the reduction in bit consumption of this embodiment compared to the standard codec without adjusting the hyperparameter a. Equation (1) is an equation that expresses the ratio of bit consumption to the bit consumption of the standard codec as a percentage, in terms of the image quality of the final decompressed frame 1011.
[0106] Equation (1) is explained using Figure 11. Curve 1100 represents the rate distortion curve of the standard codec in training batch x. The function rate_x(mse) is a function that represents curve 1100 and returns the bit consumption of Main stream 126 when training batch x is compressed and decompressed with the standard codec so that the image quality is mse. This function can be obtained by interpolating with a quartic function or the like from the measured values of image quality and bit consumption when the original frame 1001 of training batch x is compressed with multiple QPs, but is not limited to this.
[0107] Furthermore, the measured values of image quality and bit consumption for each QP required for interpolation processing may be included in the training dataset 1000. Point 1101 is a point obtained when the original frame 1001 is compressed and decompressed into the first decompressed frame 1002 using a standard codec, and its BPP is set to bpp_main. Point 1102 is a point obtained when the original frame 1001 is compressed and decompressed according to this embodiment, and its image quality is set to mse_xhat.
[0108] If the bit consumption of Side stream 126 is denoted as bpp_side, then the bit consumption in this embodiment is bpp_main + bpp_side, which corresponds to the numerator of equation (1). When the original frame 1001 is compressed and decompressed using a standard codec and the image quality is mse_xhat, the bit consumption can be estimated as rate_x(mse_xhat), which corresponds to the denominator of equation (1).
[0109] In other words, by using equation (1) as the Loss function 1015, the DNN can be trained to achieve a bit consumption for Side stream 126 that minimizes the ratio of bit consumption in this embodiment to that of a standard codec when the image quality is equivalent. Note that the Loss function 1015 is not limited to the function described above, but may be any other function.
[0110] It should be noted that the present invention is not limited to the embodiments described above, and various modifications are included. For example, the embodiments described above are described in detail to make the present invention easier to understand, and are not necessarily limited to those having all the configurations described. Furthermore, it is possible to replace parts of the configuration of one embodiment with the configuration of another embodiment, and it is also possible to add configurations from other embodiments to the configuration of one embodiment. In addition, it is possible to add, delete, or replace parts of the configuration of each embodiment with other configurations.
[0111] Furthermore, each of the above-mentioned configurations, functions, and processing units may be implemented in hardware, either partially or entirely, by designing them as integrated circuits, for example. Alternatively, each of the above-mentioned configurations and functions may be implemented in software by having the processor interpret and execute programs that implement each function. Information such as programs, tables, and files that implement each function can be stored in memory, a recording device such as a hard disk or SSD (Solid State Drive), or a recording medium such as an IC card or SD card.
[0112] Furthermore, the control lines and information lines shown are those deemed necessary for explanatory purposes, and not all control lines and information lines are necessarily shown in the actual product. In practice, it is reasonable to assume that almost all components are interconnected. [Explanation of symbols]
[0113] 100 data sources 102 Compression section 103 Extension part 104 Storage and Communications Department 105 Storage 120, 125 Compressors 122 Stretcher 123 Second Compression Unit 124 Image Quality Improvement Information Extractor 128 Compression Parameter Setter 221, 231 processors 223, 233 RAM
Claims
1. 1. A data compression system comprising: one or more processors; one or more storage devices; The one or more processors: compressing the original data using a first lossy compression method to generate first compressed data; decompressing the first compressed data to generate first decompressed data; extracting difference information between the original data and the first decompressed data; compressing the difference information by a second lossy compression method different from the first lossy compression method to generate second compressed data; The data compression system stores the first compressed data and the second compressed data in the one or more storage devices.
2. 2. The data compression system of claim 1, A data compression system, wherein the first compressed data and the second compressed data are associated with each other and stored as compressed data of the original data in the one or more storage devices.
3. 2. The data compression system of claim 1, A data compression system, wherein one of the first lossy compression method or the second lossy compression method performs compression using a neural network, and the other of the first lossy compression method or the second lossy compression method performs compression without using a neural network.
4. 2. The data compression system of claim 1, a first lossy compression method for compressing a portion of the image data, the second lossy compression method for compressing a portion of the image data, the ...
5. 5. The data compression system of claim 4, wherein the one or more processors reduce bit consumption by the first lossy compression method in portions where the first lossy compression method has a lower compression ratio than the second lossy compression method.
6. 2. The data compression system of claim 1, the second lossy compression method uses a neural network; The data compression system, wherein the neural network is trained to achieve a large reduction in bit consumption relative to the first lossy compression method.
7. 2. The data compression system of claim 1, The one or more processors extract the difference information using a neural network.
8. 2. The data compression system of claim 1, The data compression system according to claim 1 , wherein the original data is video data.
9. 9. The data compression system of claim 8, A data compression system, wherein the second lossy compression method uses a neural network to perform at least one of intraframe coding and interframe coding.
10. A data compression method by a data compression system, comprising: compressing the original data using a first lossy compression method to generate first compressed data; decompressing the first compressed data to generate first decompressed data; extracting difference information between the original data and the first decompressed data; compressing the difference information by a second lossy compression method different from the first lossy compression method to generate second compressed data; The data compression method further comprises storing the first compressed data and the second compressed data in a storage.
