Data compression method, data decompression method and related device
By performing matching differential and uniform quantization entropy coding processing on multi-dimensional data, the problem that multi-dimensional data compression in the existing technology cannot meet the accuracy requirements is solved, precise control of each element after decompression is achieved, and compression performance is improved.
Patent Information
- Application Number
- PCT/CN2023/089028
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-18
- Publication Date
- 2024-10-24
AI Technical Summary
Existing multi-dimensional data compression technology cannot make each element meet the given accuracy requirements after decompression, resulting in the error after data decompression being unable to be strictly controlled within a given upper bound.
By matching the data to be received at the receiving end with the data that has been successfully received, differential processing is performed, and the differential data is uniformly quantized and entropy encoded and compressed to ensure that the decompressed data error meets the given accuracy requirements.
Effectively utilize the time-related characteristics of data to reduce the amount of compressed data, and the error after decompression of each element can meet the given accuracy requirements, improving compression performance and accuracy.
Smart Images

Figure CN2023089028_24102024_PF_FP_ABST
Abstract
Description
Data compression method, data decompression method and related devices Technical Field
[0001] The present application relates to the field of data compression, and in particular to a data compression method, a data decompression method, and related devices. Background Art
[0002] Existing compression techniques for multidimensional data fall into two main categories: vector quantization (VQ), and transform-domain compression. These include compression methods based on linear transforms such as the discrete cosine transform (DCT) and discrete wavelet transform (DWT), as well as nonlinear transform-domain compression methods based on deep learning tools such as variational auto-encoders (VAEs) and flow models. VQ is an effective lossy compression technique developed in the late 1970s, based on Shannon's rate-distortion theory. The basic principle of vector quantization is to replace the input vector with the index of the codeword in the codebook that best matches it for transmission and storage, while decoding requires only a simple table lookup. Its key advantages are high compression ratios, simple decoding, and excellent preservation of signal details. While we will not discuss the details of these various methods here, it should be noted that none of these compression methods can guarantee that every element in the decompressed data meets a given accuracy requirement, that is, they cannot ensure that the error between the decompressed value and the original value is strictly less than a given upper bound. Therefore, it is necessary to study compression technology that can ensure that each element meets the given accuracy requirements after decompression.
[0003] Summary of the Invention
[0004] The embodiments of the present application disclose a data compression method, a data decompression method and related devices, which can ensure that each element meets a given accuracy requirement after decompression.
[0005] In a first aspect, an embodiment of the present application provides a data compression method, which includes: matching elements in a first group of data with elements in a second group of data to obtain a first matching relationship, wherein the first group of data is data to be received by a receiving end, and the second group of data is data that has been successfully received by the receiving end; based on the first matching relationship, differentiating the matching elements in the first group of data and the second group of data to obtain first differential data; uniformly quantizing each dimension of data in the first differential data to obtain a first quantization result; performing entropy coding compression based on the first quantization result to obtain compressed data; and sending the compressed data to the receiving end.
[0006] In this embodiment of the present application, matching elements in the first and second sets of data are differentiated to obtain first differential data. This effectively utilizes the time-correlated characteristics of the data to reduce the amount of compressed data, i.e., the amount of compressed data. Each dimension of the data in the first differential data is uniformly quantized to obtain a first quantization result. This ensures that the error between each element of the decompressed data at the receiving end and the true value meets a given accuracy requirement.
[0007] In one possible implementation, performing entropy coding compression based on the first quantization result to obtain compressed data includes: transforming the first quantization result into a non-negative integer to obtain a first transformation result; and performing entropy coding compression on the first transformation result to obtain the compressed data.
[0008] In a possible implementation, uniformly quantizing each dimension of data in the first differential data to obtain a first quantization result includes uniformly quantizing each dimension of data in the first differential data according to a preset error accuracy to obtain the first quantization result.
[0009] In this implementation, each dimension of data in the first differential data is uniformly quantized according to a preset error precision, so that each element of the data decompressed at the receiving end can meet the absolute precision requirement.
[0010] In a possible implementation, the matching of elements in the first group of data with elements in the second group of data includes: based on the first matching relationship, differentiating the matching elements in the first group of data and the second group of data to obtain the first differential data, where the first matching relationship is a presumed matching relationship between the elements in the first group of data and the elements in the second group of data; uniformly quantizing each dimension of data in the first differential data to obtain the first quantization result; determining a first code length of a codeword obtained by entropy coding compression based on the first quantization result; and based on the second matching relationship, differentiating the matching elements in the first group of data and the second group of data. Obtain second differential data, where the second matching relationship is the assumed matching relationship between the elements in the first group of data and the elements in the second group of data, and the second matching relationship is different from the first matching relationship; uniformly quantize each dimension of the second differential data to obtain a second quantization result; determine the second code length of the codeword obtained by entropy coding compression based on the second quantization result; when the first code length is the shortest code length among the multiple code lengths obtained by entropy coding compression of the first group of data, use the first matching relationship as the matching relationship between the elements in the first group of data and the elements in the second group of data, and the multiple code lengths include the first code length and the second code length. An example of this implementation method is: based on all possible matching relationships (or pairing relationships) between the elements in the first group of data and the elements in the second group of data, the first group of data is actually compressed once, and the first matching relationship of the codeword with the shortest code length obtained by actual compression is selected. In this application, matching and pairing have the same meaning. The shortest of the multiple code lengths may be referred to as the first short code length, the shortest code length among the multiple code lengths other than the first short code length may be referred to as the second short code length, the shortest code length among the multiple code lengths other than the first short code length and the second segment code length may be referred to as the third short code length, and so on. When the first code length is the shortest code length among the multiple code lengths obtained by performing entropy coding compression on the first group of data, the first matching relationship may be replaced by the following: when the first code length is the Sth short code length among the multiple code lengths obtained by performing entropy coding compression on the first group of data, the first matching relationship may be replaced by the following: when the first code length is the Sth short code length among the multiple code lengths obtained by performing entropy coding compression on the first group of data, the first matching relationship may be replaced by the following: the first matching relationship may be replaced by the matching relationship between the elements in the first group of data and the elements in the second group of data, where S is an integer greater than 0. For example, S is 1, 2, 3, 4, or 5, and S may be less than a preset value, such as 6, 8, 10, etc.
[0011] In this implementation, when the first code length is the shortest code length among multiple code lengths obtained by entropy coding and compressing the first group of data, the first matching relationship is used as the matching relationship between the elements in the first group of data and the elements in the second group of data; the compression effect can be improved.
[0012] In a possible implementation, the matching of elements in the first group of data with elements in the second group of data includes: based on the first matching relationship, differentiating the matching elements in the first group of data and the second group of data to obtain the first differential data, the first matching relationship being the assumed matching relationship between the elements in the first group of data and the elements in the second group of data; uniformly quantizing each dimension of data in the first differential data to obtain the first quantization result; transforming each dimension of data in the first quantization result into a non-negative integer to obtain a first transformation result; determining a first code length of a codeword obtained by entropy coding compression based on the first group of entropy coding parameters and the first transformation result; based on the second matching relationship, differentiating the matching elements in the first group of data and the second group of data to obtain the second differential data, the second matching relationship being the assumed matching relationship between the elements in the first group of data and the elements in the second group of data, the second matching relationship being different from the first matching relationship; uniformly quantizing each dimension of data in the second differential data The method comprises the steps of: performing entropy coding compression on the first group of data and the second group of data to obtain a second quantization result; transforming each dimension of data in the second quantization result into a non-negative integer to obtain a second transformation result; determining a second code length of a codeword obtained by performing entropy coding compression based on a second set of entropy coding parameters and the second transformation result, wherein the second set of entropy coding parameters are the same as or different from the first set of entropy coding parameters; when the first code length is the shortest code length among multiple code lengths obtained by performing entropy coding compression on the first group of data, using the first matching relationship as a matching relationship between elements in the first group of data and elements in the second group of data, wherein the multiple code lengths include the first code length and the second code length; performing entropy coding compression based on the first quantization result to obtain compressed data comprises: transforming each dimension of data in the first quantization result into a non-negative integer to obtain a first transformation result; and performing entropy coding compression on the data of the corresponding dimension in the first transformation result using the entropy coding parameters of each dimension in the first set of entropy coding parameters to obtain the compressed data, wherein the compressed data includes first indication information, wherein the first indication information is used to indicate the first set of entropy coding parameters. The main principle of this implementation is to jointly optimize the matching relationship and the entropy coding parameters so as to perform entropy coding compression on the first group of data using the jointly optimized matching relationship and entropy coding parameters.
[0013] In this implementation, when the first code length is the shortest code length among multiple code lengths obtained by entropy coding and compressing the first group of data, the first matching relationship is used as the matching relationship between the elements in the first group of data and the elements in the second group of data; a matching relationship and entropy coding parameters with better compression performance can be obtained, thereby improving the compression performance.
[0014] In one possible implementation, when the number of elements in the first set of data is less than the number of elements in the second set of data, the compressed data includes a first bitmap, where one bit in the first bitmap corresponds to an element in the second set of data, and the first bitmap is used to indicate whether an element in the second set of data matches an element in the first set of data.
[0015] In this implementation, the compressed data includes a first bitmap, so that the receiving end determines the matching relationship between the elements in the second set of data and the elements in the first set of data according to the first bitmap.
[0016] In a possible implementation, the arrangement order of elements corresponding to the bits in the first bitmap is the same as the compression encoding or decoding order of elements in the second set of data.
[0017] In this implementation, the receiving end can perform decoding faster.
[0018] In a possible implementation, the compressed data further includes second indication information, where the second indication information is used to indicate the number of third data groups, and the second data group is obtained by combining two or more third data groups.
[0019] In this implementation, the compressed data also includes second indication information, which enables the receiving end to determine the number of the third data groups.
[0020] In one possible implementation, the order of the elements in the compressed data corresponds to the order in which the elements in the second set of data are decoded at the receiving end. In this application, the order in which the elements in the second set of data are decoded at the receiving end is equivalent to the order in which the elements in the second set of data are decompressed at the receiving end.
[0021] In this implementation, the receiving end can decode faster and reduce the workload of decoding.
[0022] In one possible implementation, after matching the elements in the first group of data with the elements in the second group of data to obtain a first matching relationship, the method further includes: when the number of elements in the first group of data is greater than the number of elements in the second group of data, matching a first part of the elements in the first group of data with a second part of the elements to obtain a third matching relationship, where the first part of the elements are elements in the first group of data that do not match the elements in the second group of data, and the second part of the elements are elements in the first group of data that match the elements in the second group of data; based on the third matching relationship, performing a difference between the matching elements in the first part of the elements and the second part of the elements to obtain third differential data; performing uniform quantization on each dimension of the data in the third differential data to obtain a third quantization result; performing entropy coding compression based on the first quantization result to obtain compressed data includes: performing entropy coding compression based on the first quantization result and the third quantization result to obtain the compressed data, where the compressed data includes a second bitmap, where one bit in the second bitmap corresponds to one element in the second part of the elements, and the second bitmap indicates whether the element in the second part of the elements matches the element in the first part of the elements.
[0023] In this implementation, when the number of elements in the first set of data is greater than the number of elements in the second set of data, the first part of the elements in the first set of data is matched with the second part of the elements; when the number of elements in the first set of data is greater than the number of elements in the second set of data, data compression can also be performed by first differencing and then compressing.
[0024] In a possible implementation, the arrangement order of the elements corresponding to the bits in the second bitmap is the same as the compression encoding or decoding order of the elements in the second part of elements.
[0025] In this implementation, the arrangement order of elements corresponding to the bits in the second bitmap is the same as the compression encoding or decoding order of elements in the second part of elements, so that the receiving end can determine the elements corresponding to the bits in the second bitmap.
[0026] In one possible implementation, the compressed data includes first sub-compressed data and second sub-compressed data, the first sub-compressed data corresponds to the first differential data, the second sub-compressed data corresponds to the third differential data, the order of elements in the first sub-compressed data corresponds to the decoding order of elements in the second group of data at the receiving end, the order of elements in the second sub-compressed data corresponds to the decoding order of elements in the third part of elements at the receiving end, and the elements of the third part are elements in the second part of elements that match the elements in the first part of elements.
[0027] In a possible implementation, the compressed data further includes third indication information, where the third indication information is used to indicate whether the compressed data is obtained using a differential method.
[0028] In one possible implementation, the compressed data further includes fourth indication information, which is used to indicate whether the transmitting end successfully decoded the receiving end's most recent ACK (Acknowledgement) signaling for data feedback from the transmitting end. The ACK signaling indicates that the receiving end successfully received the data from the transmitting end.
[0029] In this implementation, the compressed data further includes fourth indication information so as to determine the data referenced by the compressed data sent by the sending end.
[0030] In one possible implementation, the first set of data is ray tracing data, multi-target positioning data, or channel status information (CSI) data. The first set of data is time-correlated air interface timing data, such as ray tracing data, multi-target positioning data, or CSI data.
[0031] In second aspect, an embodiment of the present application provides a data decompression method, which includes: receiving compressed data from a sending end; decoding based on the compressed data to obtain first differential data; adding each element in the first differential data to the reference element corresponding to each element to obtain a first group of data, each element in the first differential data corresponds to an element in the second group of data, the reference element of the first element in the first differential data is the element corresponding to the first element in the second group of data, the second group of data is data that the receiving end has successfully received, and the first element is any element in the first differential data.
[0032] In an embodiment of the present application, each element in the first differential data is added to the reference element corresponding to each element to obtain a first set of data; this can ensure that the error between each element of the decompressed data at the receiving end and the true value meets the given accuracy requirements.
[0033] In one possible implementation, the compressed data includes first indication information, where the first indication information is used to indicate the first set of entropy coding parameters; decoding based on the compressed data to obtain first differential data includes: determining the first set of entropy coding parameters based on the first indication information; and using the entropy coding parameters of each dimension in the first set of entropy coding parameters to decode the data of the corresponding dimensions in the compressed data to obtain the first differential data.
[0034] In this implementation, the entropy coding parameters of each dimension in the first group of entropy coding parameters are used to decode the data of the corresponding dimension in the compressed data, so that each element of the decompressed data at the receiving end can meet the absolute accuracy requirement.
[0035] In one possible implementation, the compressed data includes a first bitmap, a bit in the first bitmap corresponds to an element in the second set of data, and the first bitmap is used to indicate whether the element in the second set of data matches the element in the first set of data; the method also includes: determining, based on the first bitmap, a reference element corresponding to each element in the first differential data.
[0036] In this implementation, the first bitmap is used to indicate whether the elements in the second set of data match the elements in the first set of data. The receiving end can determine the matching relationship between the elements in the second set of data and the elements in the first set of data based on the first bitmap.
[0037] In a possible implementation, the arrangement order of elements corresponding to the bits in the first bitmap is the same as the compression encoding or decoding order of elements in the second set of data.
[0038] In this implementation, the receiving end can decode faster and reduce signaling overhead.
[0039] In a possible implementation, the compressed data further includes second indication information, where the second indication information is used to indicate the number of third data groups, and the second data group is obtained by combining two or more third data groups.
[0040] In this implementation, the compressed data also includes second indication information, which enables the receiving end to determine the number of the third data groups.
[0041] In a possible implementation, the order of the elements in the compressed data corresponds to the order in which the elements in the second set of data are decoded at the receiving end.
[0042] In this implementation, the receiving end can decode faster and reduce the workload of decoding.
[0043] In one possible implementation, decoding based on the compressed data to obtain the first differential data includes: decoding based on the compressed data to obtain the first differential data and third differential data, the compressed data includes a second bitmap, a bit in the second bitmap corresponds to an element in the first differential data, and the second bitmap indicates whether the element in the first differential data matches the element in the third differential data; adding each element in the first differential data to the reference element corresponding to each element to obtain the first group of data includes: adding each element in the first differential data to the reference element corresponding to each element, and adding each element in the third differential data to the reference element corresponding to each element to obtain the first group of data, the reference element corresponding to the second element in the third differential data is the sum of the third element corresponding to the second element in the first differential data and the reference element corresponding to the third element, and the second element is any element in the third differential data.
[0044] In this implementation, each element in the third differential data is added to the reference element corresponding to each element, and a first set of data containing more elements than the second set of data serving as the reference data can be decoded.
[0045] In a possible implementation, the arrangement order of elements corresponding to the bits in the second bitmap is the same as the compression encoding or decoding order of elements in the first differential data.
[0046] In this implementation, the receiving end can decode faster and reduce the workload of decoding.
[0047] In one possible implementation, the order of elements in the first differential data corresponds to the decoding order of elements in the second set of data at the receiving end, and the order of elements in the third differential data corresponds to the decoding order of elements in the first differential data associated with the third differential data at the receiving end.
[0048] In this implementation, the receiving end can decode faster and reduce the workload of decoding.
[0049] In a possible implementation, the compressed data further includes third indication information, where the third indication information is used to indicate whether the compressed data is obtained using a differential method.
[0050] In a possible implementation, the compressed data further includes fourth indication information, where the fourth indication information is used to indicate whether the transmitting end successfully decodes the latest acknowledgment ACK signaling from the receiving end for data feedback from the transmitting end.
[0051] In this implementation, the compressed data further includes fourth indication information, and the receiving end can determine the data referenced by the compressed data sent by the sending end.
[0052] In a possible implementation, the first set of data is ray tracing data, multi-target positioning data, or CSI data. The first set of data is time-correlated air interface timing data, such as ray tracing data, multi-target positioning data, or CSI data.
[0053] In a third aspect, an embodiment of the present application provides a communication device having the function of implementing the behavior in the method embodiment of the first aspect above. The communication device can be a communication device, or a component of a communication device (such as a processor, a chip, or a chip system, etc.), or a logic module or software that can implement all or part of the functions of the communication device. The functions of the communication device can be implemented by hardware, or by hardware executing corresponding software, and the hardware or software includes one or more modules or units corresponding to the above functions. In one possible implementation, the communication device includes a transceiver unit and a processing unit, wherein: the processing unit is used to match elements in a first set of data with elements in a second set of data to obtain a first matching relationship, the first set of data is data to be received by the receiving end, and the second set of data is data that has been successfully received by the receiving end; based on the first matching relationship, the matching elements in the first set of data and the second set of data are differentiated to obtain first differential data; each dimension of the first differential data is uniformly quantized to obtain a first quantization result; entropy coding is performed based on the first quantization result to obtain compressed data; the transceiver unit is used to send the compressed data to the receiving end.
[0054] In a possible implementation, the processing unit is specifically configured to transform the first quantization result into a non-negative integer to obtain a first transformation result; and perform entropy coding compression on the first transformation result to obtain the compressed data.
[0055] In a possible implementation, the processing unit is specifically configured to uniformly quantize each dimension of data in the first differential data according to a preset error accuracy to obtain the first quantization result.
[0056] In one possible implementation, the processing unit is specifically configured to, based on the first matching relationship, perform a differential operation on matching elements in the first group of data and the second group of data to obtain first differential data, where the first matching relationship is an assumed matching relationship between elements in the first group of data and elements in the second group of data; uniformly quantize each dimension of data in the first differential data to obtain a first quantization result; determine a first code length of a codeword obtained by entropy coding compression based on the first quantization result; perform a differential operation on matching elements in the first group of data and the second group of data based on a second matching relationship to obtain second differential data, where the second matching relationship is an assumed matching relationship between elements in the first group of data and elements in the second group of data, the second matching relationship being different from the first matching relationship; uniformly quantize each dimension of data in the second differential data to obtain a second quantization result; and determine a second code length of a codeword obtained by entropy coding compression based on the second quantization result; and when the first code length is the shortest of multiple code lengths obtained by entropy coding compression on the first group of data, the first matching relationship is used as the matching relationship between the elements in the first group of data and the elements in the second group of data, where the multiple code lengths include the first code length and the second code length. An example of this implementation method is: based on all possible matching relationships (or pairing relationships) between elements in the first group of data and elements in the second group of data, the first group of data is actually compressed, and the first matching relationship that actually compresses to obtain a codeword with the shortest code length is selected.
[0057] In one possible implementation, the processing unit is specifically used to differentiate the matching elements in the first group of data and the second group of data based on the first matching relationship to obtain the first differential data, where the first matching relationship is the assumed matching relationship between the elements in the first group of data and the elements in the second group of data; uniformly quantize each dimension of data in the first differential data to obtain the first quantization result; transform each dimension of data in the first quantization result into a non-negative integer to obtain the first transformation result; determine the first code length of the codeword obtained by entropy coding compression based on the first group of entropy coding parameters and the first transformation result; differentiate the matching elements in the first group of data and the second group of data based on the second matching relationship to obtain the second differential data, where the second matching relationship is the assumed matching relationship between the elements in the first group of data and the elements in the second group of data, and the second matching relationship is different from the first matching relationship; uniformly quantize each dimension of data in the second differential data to obtain the second quantization result. result; transforming each dimension of data in the second quantization result into a non-negative integer to obtain a second transformation result; determining a second code length of a codeword obtained by entropy coding compression based on a second set of entropy coding parameters and the second transformation result, wherein the second set of entropy coding parameters are the same as or different from the first set of entropy coding parameters; when the first code length is the shortest code length among multiple code lengths obtained by entropy coding compression of the first set of data, using the first matching relationship as the matching relationship between elements in the first set of data and elements in the second set of data, the multiple code lengths include the first code length and the second code length; performing entropy coding compression based on the first quantization result to obtain compressed data includes: transforming each dimension of data in the first quantization result into a non-negative integer to obtain a first transformation result; using the entropy coding parameters of each dimension in the first set of entropy coding parameters to perform entropy coding compression on the data of the corresponding dimension in the first transformation result to obtain the compressed data, wherein the compressed data includes first indication information, and the first indication information is used to indicate the first set of entropy coding parameters.
[0058] In one possible implementation, the processing unit is specifically configured to, when the number of elements in the first set of data is less than the number of elements in the second set of data, comprise a first bitmap in the compressed data, wherein one bit in the first bitmap corresponds to one element in the second set of data, and the first bitmap is used to indicate whether an element in the second set of data matches an element in the first set of data.
[0059] In a possible implementation, the processing unit is specifically configured to ensure that an arrangement order of elements corresponding to bits in the first bitmap is the same as a compression encoding or decoding order of elements in the second set of data.
[0060] In a possible implementation, the processing unit, specifically for compressing the data, further includes second indication information, where the second indication information is used to indicate the number of third data groups, and the second group of data is obtained by combining two or more third data.
[0061] In a possible implementation, the processing unit is specifically configured to cause an order of elements in the compressed data to correspond to an order in which elements in the second set of data are decoded at the receiving end.
[0062] In one possible implementation, the processing unit is further used to match the first part of elements in the first group of data with the second part of elements when the number of elements in the first group of data is greater than the number of elements in the second group of data, to obtain a third matching relationship, where the first part of elements are elements in the first group of data that do not match the elements in the second group of data, and the second part of elements are elements in the first group of data that match the elements in the second group of data; based on the third matching relationship, perform a differential operation on the matching elements in the first part of elements and the second part of elements to obtain third differential data; perform uniform quantization on each dimension of data in the third differential data to obtain a third quantization result; the processing unit is specifically used to perform entropy coding compression based on the first quantization result and the third quantization result to obtain the compressed data, where the compressed data includes a second bitmap, where one bit in the second bitmap corresponds to one element in the second part of elements, and the second bitmap indicates whether the element in the second part of elements matches the element in the first part of elements.
[0063] In a possible implementation, the arrangement order of the elements corresponding to the bits in the second bitmap is the same as the compression encoding or decoding order of the elements in the second part of elements.
[0064] In one possible implementation, the compressed data includes first sub-compressed data and second sub-compressed data, the first sub-compressed data corresponds to the first differential data, the second sub-compressed data corresponds to the third differential data, the order of elements in the first sub-compressed data corresponds to the decoding order of elements in the second group of data at the receiving end, the order of elements in the second sub-compressed data corresponds to the decoding order of elements in the third part of elements at the receiving end, and the elements of the third part are elements in the second part of elements that match the elements in the first part of elements.
[0065] In a possible implementation, the compressed data further includes third indication information, where the third indication information is used to indicate whether the compressed data is obtained using a differential method.
[0066] In a possible implementation, the compressed data further includes fourth indication information, where the fourth indication information is used to indicate whether the transmitting end successfully decodes the latest acknowledgment ACK signaling from the receiving end for data feedback from the transmitting end.
[0067] Possible implementations of the communication method of the third aspect may refer to various possible implementations of the first aspect.
[0068] For the technical effects brought about by various possible implementations of the third aspect, reference may be made to the introduction to the technical effects of the first aspect or various possible implementations of the first aspect.
[0069] In a fourth aspect, an embodiment of the present application provides a communication device having the function of implementing the behavior in the embodiment of the method of the second aspect above. The communication device can be a communication device, or a component of a communication device (such as a processor, a chip, or a chip system, etc.), or a logic module or software that can implement all or part of the functions of the communication device. The functions of the communication device can be implemented by hardware, or by hardware executing corresponding software implementations, and the hardware or software includes one or more modules or units corresponding to the above functions. In one possible implementation, the communication device includes a transceiver unit and a processing unit, wherein: the transceiver unit is used to receive compressed data from a transmitting end; the processing unit is used to decode based on the compressed data to obtain first differential data; each element in the first differential data is added to a reference element corresponding to each element to obtain a first set of data, each element in the first differential data corresponds to an element in a second set of data, the reference element of the first element in the first differential data is the element corresponding to the first element in the second set of data, the second set of data is the data successfully received by the receiving end, and the first element is any element in the first differential data.
[0070] In one possible implementation, the compressed data includes first indication information, where the first indication information is used to indicate the first set of entropy coding parameters; the processing unit is used to determine the first set of entropy coding parameters based on the first indication information; and use the entropy coding parameters of each dimension in the first set of entropy coding parameters to decode the data of the corresponding dimensions in the compressed data to obtain the first differential data.
[0071] In one possible implementation, the compressed data includes a first bitmap, a bit in the first bitmap corresponds to an element in the second set of data, and the first bitmap is used to indicate whether the element in the second set of data matches the element in the first set of data; the processing unit is further used to determine the reference element corresponding to each element in the first differential data based on the first bitmap.
[0072] In a possible implementation, the arrangement order of elements corresponding to the bits in the first bitmap is the same as the compression encoding or decoding order of elements in the second set of data.
[0073] In a possible implementation, the compressed data further includes second indication information, where the second indication information is used to indicate the number of third data groups, and the second data group is obtained by combining two or more third data groups.
[0074] In a possible implementation, the order of the elements in the compressed data corresponds to the order in which the elements in the second set of data are decoded at the receiving end.
[0075] In one possible implementation, the processing unit is specifically used to perform decoding based on the compressed data to obtain the first differential data and the third differential data, the compressed data including a second bitmap, a bit in the second bitmap corresponding to an element in the first differential data, and the second bitmap indicating whether the element in the first differential data matches the element in the third differential data; adding each element in the first differential data to the reference element corresponding to each element to obtain the first set of data includes: adding each element in the first differential data to the reference element corresponding to each element, and adding each element in the third differential data to the reference element corresponding to each element to obtain the first set of data, the reference element corresponding to the second element in the third differential data is the sum of the third element corresponding to the second element in the first differential data and the reference element corresponding to the third element, and the second element is any element in the third differential data.
[0076] In a possible implementation, the arrangement order of elements corresponding to the bits in the second bitmap is the same as the compression encoding or decoding order of elements in the first differential data.
[0077] In one possible implementation, the order of elements in the first differential data corresponds to the decoding order of elements in the second set of data at the receiving end, and the order of elements in the third differential data corresponds to the decoding order of elements in the first differential data associated with the third differential data at the receiving end.
[0078] In a possible implementation, the compressed data further includes third indication information, where the third indication information is used to indicate whether the compressed data is obtained using a differential method.
[0079] In a possible implementation, the compressed data further includes fourth indication information, where the fourth indication information is used to indicate whether the transmitting end successfully decodes the latest acknowledgment ACK signaling from the receiving end for data feedback from the transmitting end.
[0080] In a fifth aspect, an embodiment of the present application provides another communication device, which includes a processor, which is coupled to a memory, and the memory is used to store programs or instructions. When the program or instructions are executed by the processor, the communication device executes the method shown in any one of the first to second aspects above.
[0081] In the embodiment of the present application, during the execution of the above method, the process of sending information (or signals) in the above method can be understood as the process of outputting information based on the instructions of the processor. When outputting information, the processor outputs the information to the transceiver so that it can be transmitted by the transceiver. After being output by the processor, the information may also need to undergo other processing before reaching the transceiver. Similarly, when the processor receives input information, the transceiver receives the information and inputs it into the processor. Furthermore, after the transceiver receives the information, the information may need to undergo other processing before being input into the processor.
[0082] For operations such as sending and / or receiving involved in the processor, unless otherwise specified, or unless they conflict with their actual functions or internal logic in the relevant descriptions, they can be generally understood as instructions output based on the processor.
[0083] During implementation, the processor may be a processor specifically configured to execute these methods, or may be a processor that executes computer instructions in a memory to execute these methods, such as a general-purpose processor. For example, the processor may also be configured to execute a program stored in a memory. When the program is executed, the communication device performs the method described in the first aspect or any possible implementation of the first aspect.
[0084] In a possible implementation, the memory is located outside the communication device. In a possible implementation, the memory is located inside the communication device.
[0085] In a possible implementation, the processor and the memory may also be integrated into one device, that is, the processor and the memory may also be integrated together.
[0086] In a possible implementation, the communication device further includes a transceiver, and the transceiver is used to receive signals or send signals.
[0087] In a sixth aspect, the present application provides another communication device, which includes a processing circuit and an interface circuit, wherein the interface circuit is used to acquire data or output data; the processing circuit is used to execute the method shown in any one of the first to second aspects above.
[0088] In the seventh aspect, the present application provides a computer-readable storage medium, which stores a computer program, and the computer program includes program instructions, which, when executed, enable the computer to execute the method shown in any one of the above-mentioned first to second aspects.
[0089] In an eighth aspect, the present application provides a computer program product, which includes a computer program, and the computer program includes program instructions, which, when executed, enable the computer to execute the method shown in any one of the above-mentioned first to second aspects.
[0090] In a ninth aspect, the present application provides a communication system, comprising the communication device described in the third aspect or any possible implementation of the third aspect, and the communication device described in the fourth aspect or any possible implementation of the fourth aspect.
[0091] In a tenth aspect, the present application provides a chip comprising a processor and a communication interface, wherein the processor reads instructions stored in a memory through the communication interface and executes the method as shown in any one of the first to second aspects above. BRIEF DESCRIPTION OF THE DRAWINGS
[0092] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the drawings required for use in the embodiments of the present application or the background technology will be described below.
[0093] FIG1 is a schematic diagram of ray tracing paths provided in an embodiment of the present application;
[0094] FIG2 is a schematic diagram of the definition of the horizontal angle and vertical angle of the departure angle / arrival angle provided in an embodiment of the present application;
[0095] FIG3 is an example of a scenario in which a receiver moves slowly, provided by an embodiment of the present application;
[0096] FIG4 is a schematic diagram of ray tracing arrival angle data at two adjacent moments in an embodiment of the present application;
[0097] FIG5 is a schematic diagram of the architecture of a communication system 1000 used in an embodiment of the present application;
[0098] FIG6 is a flow chart of a data compression method provided in an embodiment of the present application;
[0099] FIG7 is a schematic diagram of matching elements in a first set of data and elements in a second set of data provided in an embodiment of the present application;
[0100] FIG8 is a schematic diagram of a loss function calculation method for a matching optimization problem provided by an embodiment of the present application;
[0101] FIG9 is a flow chart of a method for matching elements in a first set of data with elements in a second set of data provided by an embodiment of the present application;
[0102] FIG10 is a flow chart of a method for matching elements in a first set of data with elements in a second set of data provided by an embodiment of the present application;
[0103] FIG11 is an example of content exchanged between a sending end and a receiving end provided in an embodiment of the present application;
[0104] FIG12 is a schematic diagram of matching when the number of elements in the first set of data is less than the number of elements in the second set of data provided by an embodiment of the present application;
[0105] FIG13 is a schematic diagram of the contents of compressed data provided in an embodiment of the present application;
[0106] FIG14 is a schematic diagram of matching when the number of elements in the first set of data is greater than the number of elements in the second set of data provided by an embodiment of the present application;
[0107] FIG15 is a schematic diagram of the contents of compressed data provided in an embodiment of the present application;
[0108] FIG16 is a flow chart of a data compression method provided in an embodiment of the present application;
[0109] FIG17 is a flow chart of a data compression method provided in an embodiment of the present application;
[0110] FIG18 is an example of the content of compressed data provided by an embodiment of the present application;
[0111] FIG19 is a flow chart of another data compression method provided in an embodiment of the present application;
[0112] FIG20A is a feedback signaling design and interaction process in a basic mode provided by an embodiment of the present application;
[0113] FIG20B is a flow chart of feedback signaling design and interaction in an enhanced mode provided by an embodiment of the present application;
[0114] FIG21 is a schematic structural diagram of a communication device 2100 provided in an embodiment of the present application;
[0115] FIG22 is a schematic structural diagram of another communication device 220 provided in an embodiment of the present application;
[0116] FIG23 is a schematic structural diagram of another communication device 230 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0117] The terms "first" and "second" in the specification, claims and drawings of the present application are only used to distinguish different objects, rather than to describe a specific order. It will be understood that the various digital numbers involved in the embodiments of the present application are only for the convenience of description and are not used to limit the scope of the embodiments of the present application. The size of the sequence number of each of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and inherent logic. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0118] References to "embodiments" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it refer to independent or alternative embodiments that are mutually exclusive of other embodiments. It will be understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0119] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear contrary indication in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The term "multiple" used in the present application refers to two or more. In the textual description of the present application, the character " / " generally indicates that the objects associated before and after are in an "or" relationship. The term "at least one" used in the present application refers to one or more.
[0120] It is understood that in each embodiment of the present application, "A corresponds to B" means that there is a corresponding relationship between A and B, and B can be determined according to A. However, it should also be understood that determining (or generating) B according to (or based on) A does not mean that B is determined (or generated) only according to (or based on) A, and B can also be determined (or generated) according to (or based on) A and / or other information.
[0121] In order to facilitate understanding of the solutions of the present application, the following first introduces the terms involved in the embodiments of the present application.
[0122] Time-correlated air interface timing data
[0123] If there is a strong correlation between two sets of data sent by the transmitter at different times, the two sets of data can be regarded as time-correlated air interface timing data. N} and another set of data (obtained by the receiving end) each element {y1,y2,…,y N}, the two sets of data can be considered as time-correlated air interface time series data. Time-correlated air interface time series data can be, for example, ray tracing data, multi-target positioning data, or CSI data. This application uses ray tracing data as an example to demonstrate how to compress and decompress time-correlated air interface time series data.
[0124] The ray tracing data is mainly composed of data of multiple ray paths, where each path consists of time delay, path loss, departure angle (divided into horizontal departure angle and vertical departure angle) and arrival angle (also divided into horizontal and vertical). The principle diagram of each ray tracing path is shown in Figure 1. Figure 1 is a principle diagram of each ray tracing path provided by an embodiment of the present application. In Figure 1, two rectangular blocks represent buildings, and there are multiple ray paths between the transmitter and the receiver, where LoS (line of sight) represents the direct line of sight between the transmitter and the receiver, and ground represents the ground. Figure 2 is a schematic diagram of the definition of the horizontal angle and vertical angle of the departure angle (angle of departure) / arrival angle (angle of arrival) provided in an embodiment of the present application. As shown in Figure 2, the azimuth is the horizontal angle (horizontal), which is the angle between the projection of the line connecting the origin and the vertex (zenith) on the horizontal plane (xy plane) and the y-axis. The vertical angle is the angle between the line connecting the origin and the vertex and the horizontal plane.
[0125] Ray tracing data can be compactly represented as a high-dimensional vector set {x1,x2,…,x N}, where each x i is a multidimensional vector (corresponding to the angle, path loss, or delay in ray tracing data, etc.), and N is the number of data points to be transmitted (i.e., the number of ray tracing paths). In fact, many other native air interface data can also be written in this form. For example, for multi-target positioning data, N is the number of positioning targets, and each x i This corresponds to the position coordinates of the i-th target. Both ray tracing data and multi-target positioning data are generated by the cellular system's air interface, not by upper-layer applications. Their primary function is to enhance air interface communication performance, so they are referred to as native air interface data. Currently, the most widely known native air interface data in 5G systems is CSI data.
[0126] Ray tracing data is typically used to estimate large-scale channel fading and assist in network optimization. Future communication systems will significantly improve their perception capabilities and environmental modeling accuracy. Ray tracing data can accurately estimate some main path information and be directly used to assist communications (such as beam management and channel estimation), including but not limited to the following scenarios:
[0127] The terminal device feeds back the main path data of ray tracing to assist the base station in downlink precoding and beam management.
[0128] The base station uses ray tracing data to assist in downlink precoding (no compression required);
[0129] The terminal device feeds back the main path data of ray tracing to assist the base station in downlink precoding;
[0130] The base station sends down some of the main path data of ray tracing to assist the terminal device in downlink reception or uplink transmission.
[0131] In the sidelink scenario, the base station obtains part of the main path data between devices based on the location information of the terminal device and sends it to assist in communication between devices.
[0132] In the above scenarios, the transmitter (referred to as the transmitter) sends the main path information (such as delay / path loss / arrival angle) obtained by ray tracing to the receiver (referred to as the receiver). Depending on the specific application scenario, the compression and transmission of ray tracing data must meet given accuracy requirements. For example, for delay data, the error between the delay of each path recovered by decompression at the receiver and the delay of the original data must be strictly less than a given upper bound ε, where ε depends on the receiver bandwidth (time resolution) and the application scenario. The compression accuracy requirements for angle data and path loss data are similar. Obviously, these requirements are also applicable to the compression feedback of other air interface native data. Here, only ray tracing data is used as an example for explanation.
[0133] The following is an example of the arrival angle time series data of ray tracing. The solution provided by this application is also applicable to the compression and transmission of other air interface time series data with time correlation, such as the perceived multi-target position, speed and other data. For the time series data of the ray tracing scenario, a typical example is that the transmitter (or the transmitting end) is fixed in position, the surrounding electromagnetic reflection environment also remains stationary, and the receiver (or the receiving end) moves slowly along a certain path, as shown in Figure 3 below. Figure 3 provides an example of a scenario in which the receiver moves slowly in an embodiment of the present application. In the scenario shown in Figure 3, the arrival angle data obtained by ray tracing at two adjacent moments (i.e., the previous moment and the current moment) is shown in Figure 4. Figure 4 provides a schematic diagram of the ray tracing arrival angle data at two adjacent moments in time in an embodiment of the present application. As shown in Figure 4, the circle represents the arrival angle data obtained by ray tracing at the current moment, i.e., the first set of data; the square represents the arrival angle data obtained by ray tracing at the previous moment, i.e., the second set of data. As can be seen from Figure 4, there is a strong correlation between the first set of data and the second set of data in Figure 4.
[0134] Figure 5 is a schematic diagram of the architecture of a communication system 1000 used in an embodiment of the present application. As shown in Figure 5, the communication system includes a radio access network 100 and a core network 200. Optionally, the communication system 1000 may also include the Internet 300. The radio access network 100 may include at least one radio access network device (such as 110a and 110b in Figure 5) and at least one terminal (such as 120a-120j in Figure 5). The terminal (i.e., terminal device) is wirelessly connected to the radio access network device, and the radio access network device is wirelessly or wiredly connected to the core network. The core network device and the radio access network device may be independent and distinct physical devices, or the functions of the core network device and the logical functions of the radio access network device may be integrated into the same physical device, or a single physical device may integrate some of the functions of the core network device and some of the functions of the radio access network device. Terminals and radio access network devices may be connected to each other via wired or wireless means. FIG5 is only a schematic diagram. The communication system may further include other network devices, such as wireless relay devices and wireless backhaul devices, which are not shown in FIG5 .
[0135] Radio access network equipment is the access device that terminals use to wirelessly access a communication system. Radio access network equipment can be a base station, an evolved NodeB (eNodeB), a transmission reception point (TRP), a next-generation NodeB (gNB) in fifth-generation (5G) mobile communication systems, a next-generation base station in sixth-generation (6G) mobile communication systems, a base station in future mobile communication systems, or an access node in a WiFi system. It can also be a module or unit that performs some of the functions of a base station, such as a centralized unit (CU) or a distributed unit (DU). The CU here completes the functions of the radio resource control protocol and the packet data convergence protocol (PDCP) of the base station, and can also complete the function of the service data adaptation protocol (SDAP); the DU completes the functions of the radio link control layer and the medium access control (MAC) layer of the base station, and can also complete the functions of part of the physical layer or all of the physical layer. For the specific description of each of the above protocol layers, please refer to the relevant technical specifications of the 3rd Generation Partnership Project (3GPP). The wireless access network device can be a macro base station (such as 110a in Figure 5), a micro base station or an indoor station (such as 110b in Figure 5), or a relay node or a donor node, etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the wireless access network device. For the convenience of description, the following description takes the base station as an example of the wireless access network device.
[0136] A terminal is a device with wireless transceiver capabilities that can send signals to a base station or receive signals from a base station. A terminal may also be referred to as a terminal device, user equipment (UE), mobile station, mobile terminal, etc. Terminals can be widely used in various scenarios, such as device-to-device (D2D), vehicle-to-everything (V2X) communication, machine-type communication (MTC), Internet of Things (IoT), virtual reality, augmented reality, industrial control, autonomous driving, telemedicine, smart grid, smart furniture, smart office, smart wearable, smart transportation, smart city, etc. A terminal can be a mobile phone, tablet computer, computer with wireless transceiver capabilities, wearable device, vehicle, airplane, ship, robot, robotic arm, smart home device, etc. The embodiments of this application do not limit the specific technology and specific device form adopted by the terminal.
[0137] Base stations and terminals can be fixed or mobile. They can be deployed on land, indoors or outdoors, handheld or vehicle-mounted; on water; or on aircraft, balloons, and satellites. The embodiments of this application do not limit the application scenarios of base stations and terminals.
[0138] The roles of base stations and terminals can be relative. For example, the helicopter or drone 120i in Figure 5 can be configured as a mobile base station. To terminals 120j accessing the wireless access network 100 via 120i, terminal 120i is a base station. However, to base station 110a, 120i is a terminal, meaning that communication between 110a and 120i occurs via a wireless air interface protocol. Of course, communication between 110a and 120i can also occur via a base station-to-base station interface protocol. In this case, 120i is also a base station relative to 110a. Therefore, base stations and terminals can be collectively referred to as communication devices. 110a and 110b in Figure 5 can be referred to as communication devices with base station functionality, while 120a-120j in Figure 5 can be referred to as communication devices with terminal functionality.
[0139] Communication between base stations and terminals, between base stations, and between terminals can be carried out through authorized spectrum, unauthorized spectrum, or both; communication can be carried out through spectrum below 6 gigahertz (GHz), spectrum above 6 GHz, or spectrum below 6 GHz and spectrum above 6 GHz. The embodiments of the present application do not limit the spectrum resources used for wireless communication.
[0140] In the embodiments of the present application, the functions of the base station may also be performed by a module (such as a chip) in the base station, or by a control subsystem that includes the base station function. The control subsystem that includes the base station function here may be a control center in the above-mentioned application scenarios such as smart grid, industrial control, smart transportation, and smart city. The functions of the terminal may also be performed by a module (such as a chip or modem) in the terminal, or by a device that includes the terminal function.
[0141] In this application, a base station sends downlink signals or downlink information to a terminal, and the downlink information is carried on a downlink channel; the terminal sends uplink signals or uplink information to the base station, and the uplink information is carried on an uplink channel. In order to communicate with the base station, the terminal needs to establish a wireless connection with the cell controlled by the base station. The cell with which the terminal has established a wireless connection is called the serving cell of the terminal. When the terminal communicates with the serving cell, it will also be subject to interference from signals in neighboring cells.
[0142] The data compression scheme and data decompression scheme provided by this application are introduced below with reference to the accompanying drawings.
[0143] FIG6 is a flow chart of a data compression method provided in an embodiment of the present application. As shown in FIG6 , the method includes:
[0144] 601. The sending end matches elements in the first set of data with elements in the second set of data to obtain a first matching relationship.
[0145] The above-mentioned first group of data is the data to be received by the receiving end (which may be simply referred to as the receiving end), and the above-mentioned second group of data is the data that has been successfully received by the above-mentioned receiving end. The first group of data can be understood as the data to be sent by the sending end (which may be simply referred to as the sending end) to the receiving end. The first group of data and the second group of data are data of the same type. The first group of data and the second group of data can be air interface timing data with time correlation. For example, the first group of data and the second group of data are both ray tracing data, multi-target positioning data, or CSI data, etc. For example, the second group of data is the ray tracing data sent by the sending end to the receiving end at time 1, and the second group of data is successfully received by the receiving end. The first group of data is the ray tracing data that the sending end needs to send to the receiving end at the current moment, and time 1 is the moment before the current moment. The first matching relationship is used to indicate the matching relationship between the elements in the first group of data and the elements in the second group of data. For example, a first set of data includes element A1, element A2, element A3, ..., element A6, and the number and order of the elements in the first set of data are not limited. A second set of data includes element B1, element B2, element B3, ..., element B6, and the number and order of the elements in the second set of data are not limited. The first matching relationship is used to indicate that A1 matches B1, A2 matches B2, A3 matches B3, ..., and A6 matches B6. Each element in the first set of data is an m-dimensional vector, and each element in the second set of data is an m-dimensional vector, where m is an integer greater than 0, for example, m is 1, 2, 3, 4, 5, etc.
[0146] To fully utilize the correlation between the two sets of data (i.e., the first set of data and the second set of data), the present embodiment proposes a solution for optimizing the matching relationship between the two sets of elements, with the goal of directly minimizing the length of the compressed codeword. Possible implementations of step 601 will be described in detail later.
[0147] 602. Based on the first matching relationship, perform a differential operation on the matching elements in the first set of data and the second set of data to obtain first differential data.
[0148] For example, the first group of data includes element A1, element A2, element A3, ..., element A6, and the number of elements in the first group of data and the order of each element are not limited. The second group of data includes element B1, element B2, element B3, ..., element B6, and the number of elements in the second group of data and the order of each element are not limited. The first matching relationship is used to indicate that A1 matches B1, A2 matches B2, A3 matches B3, ..., A6 matches B6; an example of step 602 is as follows: calculate the value of A1 minus B1 to obtain C1; calculate the value of A2 minus B2 to obtain C2; calculate the value of A3 minus B3 to obtain C3; and so on, the first differential data includes C1, C2, C3..., C6.
[0149] 603. Perform uniform quantization on each dimension of data in the first differential data to obtain a first quantization result.
[0150] A possible implementation of step 603 is as follows: each dimension of data in the first differential data is uniformly quantized according to a preset error precision (i.e., the quantization error precision of each dimension of data) to obtain the first quantization result. For example, before data transmission, the transmitting end and the receiving end can configure the quantization error precision of each dimension of data and the entropy coding (e.g., Golomb code) parameter set for each dimension (not required for LZ coding or adaptive arithmetic coding). The entropy coding parameter set for each dimension is optional. In this implementation, each dimension of data in the first differential data is uniformly quantized according to the preset error precision, which can ensure the absolute accuracy requirements of the decompressed data. The technical purpose of step 603 is to quantize the first differential data according to the preset error precision. The transmitting end can also use other methods to quantize the first differential data, as long as they can meet the preset error precision.
[0151] 604. The transmitting end performs entropy coding compression based on the first quantization result to obtain compressed data.
[0152] A possible implementation of step 604 is as follows: transform the first quantization result into a non-negative integer to obtain a first transformation result; perform entropy coding compression on the above-mentioned first transformation result to obtain the above-mentioned compressed data. A possible way for the transmitter to transform the first quantization result into a non-negative integer is to take the absolute value of the above-mentioned first quantization result. This method requires that the sign bits of all elements are also retained and sent to the receiving end. In other words, the first transformation result is the absolute value of the first quantization result. A possible way for the transmitter to transform the first quantization result into a non-negative integer is to first determine the value range [ymin, ymax] (where ymin is negative and ymax is positive) of the first quantization result (denoted as t), and denote the smaller absolute value of the two as T = min{|ymin|,|ymax|}. Then t is converted into a non-negative integer through the following transformation f(t):
[0153] The transmitter can perform entropy coding compression based on the first quantization result using various entropy coding methods. For example, the transmitter can use LZ coding, arithmetic coding (without entropy coding parameters), Huffman coding (with entropy coding parameters), Golomb coding (with entropy coding parameters), etc. LZ coding is short for Lempel-Ziv coding.
[0154] 605. The sending end sends the compressed data to the receiving end.
[0155] Correspondingly, the receiving end receives the compressed data from the sending end.
[0156] In one possible implementation, when the number of elements in the first set of data is less than the number of elements in the second set of data, the compressed data includes a first bitmap, where each bit in the first bitmap corresponds to an element in the second set of data, and the first bitmap is used to indicate whether an element in the second set of data matches an element in the first set of data. The length of the first bitmap is equal to the number of elements in the second set of data. Optionally, the order of the elements corresponding to the bits in the first bitmap is the same as the compression encoding or decoding order of the elements in the second set of data. For example, the first set of data includes 6 elements and the second set of data includes 8 elements, and the first bitmap is 11100111. The order of the elements corresponding to the bits in the first bitmap is the same as the compression encoding or decoding order of the elements in the second set of data. Bits with a value of 1 in the first bitmap correspond to elements in the first set of data, and bits with a value of 0 in the first bitmap correspond to elements in the first set of data. In this example, the first bitmap indicates that the first to third elements (sorted in compression or decompression order) and the sixth to eighth elements in the second set of data match elements in the first set of data. For another example, the first set of data includes 6 elements, the second set of data includes 8 elements, and the first bitmap is 00011000. The arrangement order of the elements corresponding to the bits in the first bitmap is the same as the compression encoding or decoding order of the elements in the second set of data. The elements corresponding to the bits with a bit value of 0 in the first bitmap match the elements in the first set of data, and the elements corresponding to the bits with a bit value of 1 in the first bitmap do not match the elements in the first set of data. In this example, the first bitmap indicates that the first to third elements (sorted in compression or decompression order) and the sixth to eighth elements in the second set of data match the elements in the first set of data. In this implementation, the compressed data includes the first bitmap so that the receiving end can determine the matching relationship between the elements in the second set of data and the elements in the first set of data based on the first bitmap.
[0157] In one possible implementation, the compressed data further includes second indication information, which is used to indicate the number of third data groups. The second data group is a group of data that has been successfully received by the receiving end, that is, a third data group. Alternatively, the second data group is obtained by combining two or more third data groups. The sending end and the receiving end can first configure the number of selectable sets. Then, the second indication information (such as a subscript) is used to indicate the number to be selected. For example, Then 00 (the second indication information) represents 1, 01 represents 2, 10 represents 3, and 11 represents 4, which is agreed upon by the sending end and the receiving end. For example, the sending end needs to send the first set of data to the receiving end at the current moment, and the sending end has sent the second set of data to the receiving end at the last moment and the receiving end has successfully received it; the sending end uses the second set of data as a data group for reference in sending the first set of data, and then executes steps 601 to 605 to obtain compressed data. The second indication information in the compressed data is 00, and the second indication information is used to indicate that the number of the third data group is 1. In other words, the first indication information is used to indicate that the data group for reference in sending the first set of data by the sending end is the second set of data sent at the last moment. For another example, the sending end needs to send the first set of data to the receiving end at the current moment, and the sending end has sent a set of data to the receiving end at the last moment. And it is successfully received by the receiving end. The sending end has sent a set of data to the receiving end at the previous moment. and is successfully received by the receiving end; the sending end can and Synthesize into a new set of data That is, the second set of data; the sending end uses the second set of data as a data group for reference in sending the first set of data, and then executes steps 601 to 605 to obtain compressed data. The second indication information in the compressed data is 01, and the second indication information is used to indicate that the number of the third data group is 2. In other words, the second indication information is used to instruct the sending end to send the first set of data as a data group for reference, which is a set of data sent by the sending end at the last moment (i.e. ) and a set of data sent at the previous moment, namely In this application, the current time is the time at which the transmitter is about to send the first set of data, the previous time is the time at which the transmitter last sent a set of data temporally correlated with the first set of data, and the previous previous time is the time at which the transmitter last sent a set of data temporally correlated with the first set of data. In this implementation, the compressed data also includes second indication information, which enables the receiver to determine the number of third data sets.
[0158] In a possible implementation, the order of elements in the compressed data corresponds to the decoding order of elements in the second set of data at the receiving end. In other words, the order of elements in the compressed data obtained by compressing the elements in the first set of data corresponds to the decoding order of elements in the second set of data at the receiving end. For example, the first set of data includes element A1, element A2, element A3, ..., element A6, and the second set of data includes element B1, element B2, element B3, ..., element B6, a total of 6 elements. The decoding order of the elements in the second set of data at the receiving end is: B2, B3, B4, B1, B5, B6, and the first matching relationship is: A1 matches B1, A2 matches B2, A3 matches B3, ..., A6 matches B6; an example of step 602 is as follows: calculate A1 minus B 1 to obtain C1; calculate the value of A2 minus B2 to obtain C2; calculate the value of A3 minus B3 to obtain C3; and so on, the first differential data includes C1, C2, C3..., C6; the first quantization result obtained in step 603 includes D1, D2, D3..., D6; the compressed data obtained in step 604 includes E1, E2, E3..., E6, where E1 can be regarded as an element compressed from A1, E2 can be regarded as data compressed from A2, E3 can be regarded as data compressed from A3, and so on. In this example, the order of the elements (i.e., E1, E2, E3..., E6) in the compressed data obtained in step 604 that are compressed from the elements in the first set of data is E2, E3, E4, E1, E5, E6. It should be understood that the transmitting end can adjust the order of the elements in the compressed data according to the decoding order of the elements in the second set of data at the receiving end, so that the order of the elements in the compressed data corresponds to the decoding order of the elements in the second set of data at the receiving end. In this implementation, the receiving end can perform decoding faster and reduce the decoding workload.
[0159] In a possible implementation, the compressed data further includes third indication information, and the third indication information is used to indicate whether the compressed data is obtained by using a differential method.
[0160] In one possible implementation, the compressed data further includes fourth indication information, which is used to indicate whether the transmitting end successfully decoded the receiving end's most recent ACK (Acknowledgement) signaling for data feedback from the transmitting end. In this implementation, the compressed data further includes the fourth indication information to determine the data referenced by the compressed data sent by the transmitting end.
[0161] 606. The receiving end performs decoding based on the compressed data to obtain first differential data.
[0162] The transmitting end and the receiving end are different terminals. Alternatively, the transmitting end and the receiving end are different access network devices, such as base stations. Alternatively, the transmitting end is a terminal and the receiving end is an access network device. Alternatively, the transmitting end is an access network device and the receiving end is a terminal. The receiving end decodes the compressed data to obtain the first differential data, which can be: the receiving end decodes the differential data of each dimension (row by row) based on the compressed data to obtain the first differential data. For example, the elements in the compressed data are E2, E3, E4, E1, E5, and E6 in the decoding order, and the first differential data are C2, C3, C4, C1, C5, and C6 in the decoding order. C1 can be regarded as obtained by decoding E1, C2 can be regarded as obtained by decoding E2, and so on.
[0163] 607. The receiving end adds each element in the first differential data to the reference element corresponding to each element to obtain a first set of data.
[0164] Each element in the first differential data corresponds to an element in the second set of data. The reference element of the first element in the first differential data is the element in the second set of data to which the first element corresponds. The second set of data is data successfully received by the receiving end. The first element is any element in the first differential data. For example, the elements in the first differential data are C2, C3, C4, C1, C5, and C6 in decoding order, and the elements in the second set of data are B2, B3, B4, B1, B5, and B6 in decoding order. The reference element corresponding to C2 is B2, the reference element corresponding to C3 is B2, the reference element corresponding to C4 is B4, the reference element corresponding to C1 is B1, the reference element corresponding to C5 is B5, and the reference element corresponding to C6 is B6. An example of step 607 is as follows: C2 plus B2 obtains element A2, C3 plus B3 obtains element A3, C4 plus B4 obtains element A4, C1 plus B1 obtains element A1, C5 plus B5 obtains element A5, and C6 plus B6 obtains element A6; the elements in the first set of data are A2, A3, A4, A1, A5, and A6 in decoding order.
[0165] In this embodiment of the present application, matching elements in the first and second data sets are differentiated to obtain first differential data. This effectively utilizes the time-correlated characteristics of the data to reduce the amount of data to be compressed. Each dimension of the data in the first differential data is uniformly quantized to obtain a first quantization result, thereby improving the absolute accuracy of the compressed data.
[0166] The following details the implementation of matching the elements in the first set of data with the elements in the second set of data.
[0167] The embodiment of the present application proposes a solution for optimizing the matching relationship between two groups of elements, with the goal of directly minimizing the length of the compressed codeword.
[0168] The specific solution is to use the code length of the (parameterized) entropy coding compression output of a set of data to be output as the loss function, and solve a matching optimization problem (i.e., find the optimal matching difference method) or a matching & entropy coding parameter joint optimization problem, i.e., find the optimal entropy coding parameters and the optimal matching difference method at the same time to achieve the best compression effect. The essence of matching is to find multiple pairs of relationships between the two sets of data elements, as shown in Figure 7 below, where the first set of data is: {x1, x2, ..., x N}, the second set of data is: {y1,y2,…,y N}, where x i and y j are all m-dimensional vectors, and m=2 is taken as an example here. The following description is made by taking the example that each element in the first set of data and the second set of data includes a vector of the first dimension and a vector of the second dimension. For example, the data of the first dimension is the horizontal angle of the arrival angle, and the data of the second dimension is the vertical angle of the arrival angle. Figure 7 is a schematic diagram of the matching of elements in the first set of data and elements in the second set of data provided by an embodiment of the present application. As shown in Figure 7, a circle corresponds to an element in the first set of data, and a square corresponds to an element in the second set of data. If there is a dotted arrow between a circle and a square, it indicates that the element corresponding to the circle matches the element corresponding to the square. The first set of data is a set of data that needs to be sent at the current moment, and the second set of data is a set of data that has been sent by the transmitter at the last moment.
[0169] The above matching optimization problem can be expressed as the following integer programming problem to solve:
[0170] The constraints are (subject to): T ij ∈{0,1} (2);
[0171] in, represents the entropy coding parameter set of the data of the first dimension, represents the entropy coding parameter set of the data of the second dimension, k1 represents the entropy coding parameter of the data of the first dimension, k2 represents the entropy coding parameter of the data of the second dimension, T ij Indicates whether the i-th element in the first set of data matches the j-th element in the second set of data. ij Is 0 or 1. T ij Equal to 1 means that the i-th element in the first set of data matches the j-th element in the second set of data, T ijEqual to 0 means that the i-th element in the first set of data does not match the j-th element in the second set of data. Formula (3) means that for any element in the first set of data, there is one and only one element in the second set of data that matches that element. Formula (4) means that for any element in the second set of data, there is one and only one element in the first set of data that matches that element. Both the first set of data and the second set of data include N elements, where N is an integer greater than 1.
[0172] The loss function (cost) in the above matching problem is: C i,j (k1, k2) = f(d1, k1) + f(d2, k2), and f(d1, k1) and f(d2, k2) represent the compressed output codeword lengths, as shown in Figure 8 below. Figure 8 is a schematic diagram of a loss function calculation method for a matching optimization problem provided by an embodiment of the present application. As shown in Figure 8, d1 represents x i and y j The difference in the horizontal coordinates of , d2 represents x i and y j The difference in the vertical coordinates of . f(d1,k1) and f(d2,k2) can be found in the following formula (5).
[0173] Depending on the chosen entropy code, there are several ways to calculate the loss function (matrix) for the matching optimization problem:
[0174] Method 1: If the code length of the output data cannot be directly calculated by performing (parameterized) entropy coding on it, all possible pairs are compressed and the actual compression length is used as the loss function for the matching problem. Examples include LZ coding and arithmetic coding (without entropy coding parameters), and Huffman coding (with entropy coding parameters).
[0175] Method 2: If the code length of a set of output data can be directly calculated by a formula after (parameterized) entropy coding compression, the result of the formula is used as the loss function, such as Golomb code (with entropy coding parameters).
[0176] For example, the Golomb code with parameter k performs lossless compression on a non-negative integer d. The formula for the output codeword length is:
[0177] in, Express Round down, Indicates rounding up log2k.
[0178] FIG9 is a flow chart of a method for matching elements in a first set of data with elements in a second set of data provided by an embodiment of the present application. As shown in FIG9 , the method includes:
[0179] 901. The sending end performs a differential operation on matching elements in the first set of data and the second set of data based on a first matching relationship to obtain first differential data.
[0180] The first matching relationship is a matching relationship between an element in the assumed first set of data and an element in the second set of data.
[0181] 902. Perform uniform quantization on each dimension of data in the first differential data to obtain a first quantization result.
[0182] 903. Determine a first code length of a codeword obtained by performing entropy coding compression based on the first quantization result.
[0183] A possible implementation of step 903 is as follows: transform each dimension of data in the first quantization result into a non-negative integer to obtain a first transformation result; and determine a first code length of a codeword obtained by entropy coding compression based on the first transformation result.
[0184] 904. Based on the second matching relationship, perform a differential operation on the matching elements in the first set of data and the second set of data to obtain second differential data.
[0185] The second matching relationship is a matching relationship between an element in the assumed first set of data and an element in the second set of data. The first matching relationship and the second matching relationship are different.
[0186] 905. Perform uniform quantization on each dimension of data in the second differential data to obtain a second quantization result.
[0187] 906. Determine a second code length of a codeword obtained by performing entropy coding compression based on the second quantization result.
[0188] A possible implementation of step 906 is as follows: transforming each dimension of data in the second quantization result into a non-negative integer to obtain a second transformation result; and determining a second code length of a codeword obtained by entropy coding compression based on the second transformation result.
[0189] It should be noted that steps 901 to 903 can be understood as determining the code length for differential and entropy coding compression output of the first set of data under a first matching relationship, and steps 904 to 906 can be understood as determining the code length for differential and entropy coding compression output of the first set of data under a second matching relationship. Steps 901 to 903, and steps 904 to 906 are two independent steps and do not limit the order of precedence. It should be understood that steps 901 to 903, and steps 904 to 906 are examples of determining the code length for differential and entropy coding compression output of the first set of data under different matching relationships. In some embodiments, the transmitting end can determine the code length for differential and entropy coding compression output of the first set of data under all possible matching relationships in order to find the optimal matching relationship, that is, the matching relationship that results in the shortest code length output.
[0190] 907. When the first code length is the shortest code length among multiple code lengths obtained by performing entropy coding compression on the first group of data, the first matching relationship is used as the matching relationship between the elements in the first group of data and the elements in the second group of data.
[0191] The above-mentioned multiple code lengths include the above-mentioned first code length and the above-mentioned second code length. The first code length is a code length obtained by the transmitter performing entropy coding and compression on the first set of data under the first matching relationship, and the second code length is a code length obtained by the transmitter performing entropy coding and compression on the first set of data under the second matching relationship. The multiple code lengths may include code lengths output by the transmitter performing differential and entropy coding and compression on the first set of data under all possible matching relationships. The first matching relationship can be considered the optimal matching relationship. The method flow in Figure 9 is an example of the above-mentioned method one.
[0192] Step 907 can be replaced by: when the first code length is shorter than the preset code length, the first matching relationship is used as the matching relationship between the elements in the first set of data and the elements in the second set of data. The preset code length can be set according to actual needs and is not limited here. In some embodiments, the transmitting end successively determines the code length of the first set of data output by differential and entropy coding compression under multiple matching relationships; when the code length of the first set of data output by differential and entropy coding compression under a certain matching relationship is shorter than the preset code length, the matching relationship is used as the matching relationship between the elements in the first set of data and the elements in the second set of data; this can reduce the workload.
[0193] In an embodiment of the present application, when the first code length is the shortest code length among multiple code lengths obtained by entropy coding and compressing the first group of data, the first matching relationship is used as the matching relationship between the elements in the first group of data and the elements in the second group of data; the compression effect can be improved.
[0194] FIG10 is a flow chart of a method for matching elements in a first set of data with elements in a second set of data provided by an embodiment of the present application. As shown in FIG10 , the method includes:
[0195] 1001. The sending end performs a differential operation on matching elements in the first set of data and the second set of data based on a first matching relationship to obtain first differential data.
[0196] Step 1001 may refer to step 901 .
[0197] 1002. Perform uniform quantization on each dimension of data in the first differential data to obtain a first quantization result.
[0198] Step 1002 may refer to step 902 .
[0199] 1003. Transform each dimension of data in the first quantization result into a non-negative integer to obtain a first transformation result.
[0200] 1004. Determine a first code length of a codeword obtained by performing entropy coding compression based on the first set of entropy coding parameters and the first transformation result.
[0201] The first set of entropy coding parameters is an assumed set of entropy coding parameters.
[0202] 1005. The sending end performs a differential operation on the matching elements in the first set of data and the second set of data based on the second matching relationship to obtain second differential data.
[0203] 1006. Perform uniform quantization on each dimension of data in the second differential data to obtain a second quantization result.
[0204] 1007. Transform each dimension of data in the second quantization result into a non-negative integer to obtain a second transformation result.
[0205] 1008. Determine a second code length of a codeword obtained by performing entropy coding compression based on the second set of entropy coding parameters and the second transformation result.
[0206] The second set of entropy coding parameters is another set of assumed entropy coding parameters, and the second set of entropy coding parameters is different from the first set of entropy coding parameters.
[0207] It should be noted that steps 1001 to 1004 can be understood as determining the code length for differential encoding and entropy coding of the first set of data under a first matching relationship and a first set of entropy coding parameters, and steps 1005 to 1008 can be understood as determining the code length for differential encoding and entropy coding of the first set of data under a second matching relationship and a second set of entropy coding parameters. Steps 1001 to 1004 and steps 1005 to 1008 are independent of each other and are not necessarily ordered. It should be understood that steps 1001 to 1004 and steps 1005 to 1008 are examples of determining the code length for differential encoding and entropy coding of the first set of data under different combinations of matching relationships and entropy coding parameters. In some embodiments, the transmitting end may determine the code length for differential encoding and entropy coding of the first set of data under all possible combinations of matching relationships and entropy coding parameters in order to find the optimal matching relationship and entropy coding parameters, i.e., the matching relationship and entropy coding parameters that result in the shortest code length.
[0208] 1009. When the first code length is the shortest code length among multiple code lengths obtained by performing entropy coding compression on the first set of data, the first matching relationship is used as the matching relationship between the elements in the first set of data and the elements in the second set of data.
[0209] The above-mentioned multiple code lengths include the above-mentioned first code length and the above-mentioned second code length. The first code length is a code length obtained by the transmitter performing entropy coding compression on the first group of data under the combination of the first matching relationship and the first set of entropy coding parameters, and the second code length is a code length obtained by the transmitter performing entropy coding compression on the first group of data under the combination of the second matching relationship and the second set of entropy coding parameters. The multiple code lengths may include the code lengths output by the transmitter performing differential and entropy coding compression on the first group of data under all possible combinations of matching relationships and entropy coding parameters. The first matching relationship can be regarded as the optimal matching relationship, and the first set of entropy coding parameters can be regarded as the optimal set of entropy coding parameters. The method flow in Figure 10 is an example of the above-mentioned method 2. The method flow in Figure 10 is a process for jointly optimizing the matching relationship and entropy coding parameters, that is, finding the optimal entropy coding parameters and the optimal matching differential method.
[0210] The transmitting end may also perform the following operation: using the first group of entropy coding parameters as the entropy coding parameters to be adopted for entropy coding compression of the first group of data. The method flow of Figure 6 performs entropy coding compression based on the first quantization result to obtain compressed data, which may be: transforming the data of each dimension in the above-mentioned first quantization result into non-negative integers respectively to obtain the first transformation result; using the entropy coding parameters of each dimension in the above-mentioned first group of entropy coding parameters to perform entropy coding compression on the data of the corresponding dimension in the above-mentioned first transformation result respectively to obtain the above-mentioned compressed data, and the above-mentioned compressed data includes first indication information, and the above-mentioned first indication information is used to indicate the above-mentioned first group of entropy coding parameters. The first indication information is used to indicate the entropy coding parameters of each dimension of data, that is, the first group of entropy coding parameters. It should be understood that the transmitting end can dynamically indicate the entropy coding parameters of each dimension of data, for example, the entropy coding parameters of each dimension of data are represented by the subscript of the coding parameter set configured by the selected parameter at the transmitting end. Figure 11 is an example of the content of interaction between a transmitting end and a receiving end provided in an embodiment of the present application. As shown in Figure 11, the transmitting end dynamically indicates the entropy coding parameters of each dimension of data, that is, k1, k2, ..., k D , dimension 1, dimension 2, ..., dimension D represent the entropy coding data of D different dimensions, e1, e2, ..., e D Represents the quantization error accuracy of data of D different dimensions, The entropy coding parameter sets for data of D different dimensions are represented; the order of the entropy coded data in the compressed data sent by the transmitter (or the order in which the differential values in the differential data are entropy coded and compressed) is consistent with the decoding order of the elements in the second set of data at the receiver. D is an integer greater than 1. In some embodiments, the core network can configure the quantization error accuracy and entropy coding parameter sets for each dimension to the transmitter and receiver via higher-layer signaling.
[0211] Step 1009 can be replaced by: when the first code length is shorter than the preset code length, the first matching relationship is used as the matching relationship between the elements in the first group of data and the elements in the second group of data. The preset code length can be set according to actual needs and is not limited here. In some embodiments, the transmitting end successively determines the code length of the differential and entropy coding compression output of the first group of data under a combination of multiple matching relationships and entropy coding parameters; when the code length of the differential and entropy coding compression output of the first group of data under a certain combination of matching relationships and entropy coding parameters is shorter than the preset code length, the matching relationship is used as the matching relationship between the elements in the first group of data and the elements in the second group of data; this can reduce the workload.
[0212] In an embodiment of the present application, when the first code length is the shortest code length among multiple code lengths obtained by entropy coding and compressing the first group of data, the first matching relationship is used as the matching relationship between the elements in the first group of data and the elements in the second group of data; the compression effect can be improved.
[0213] The method provided in the embodiment of this application for matching elements in the first set of data and elements in the second set of data is applicable to both the case where the number of elements in the first set of data is equal to the number of elements in the second set of data and the case where the number of elements in the first set of data is not equal to the number of elements in the second set of data.
[0214] When the number of elements in the first set of data (at the current moment) is less than the number of elements in the second set of data (at the previous moment), since some elements belonging to the second set of data do not match the elements in the first set of data (as shown in Figure 12), it is necessary to further introduce a first bitmap to indicate which elements in the second set of data match the elements in the first set of data (as shown in Figure 13). The joint optimization can solve the original matching problem with a slight modification (adding dummy elements).
[0215] The integer programming problem of formula (1) can solve the case where the number of elements in the two sets of data is equal (both are N). For the case where the number of elements in the two sets of data is not equal, let's assume that the number of elements in the first set of data is M and the number of elements in the second set of data is N (M < N). At this time, it can be achieved by adding (N - M) dummy elements to the elements in the first set of data. Denote the subscripts i of these (N - M) dummy elements as (M + 1), (M + ②), … (N - M) respectively. In the original problem (1), set the values of C corresponding to these dummy elements ij to very large quantities (assuming the largest value among the values of C corresponding to the non - dummy element subscripts is denoted as Max, then the C corresponding to these dummy elements ij is not less than Max * (M + N)). Then solve the integer programming problem corresponding to formula (1) to obtain the matching relationship T ij . The last step is to delete all the values of T corresponding to the dummy element subscripts ij (M + 1 ≤ i ≤ N - M), and then we get the T corresponding to only the first i ≤ M original elements in the first set of data ij . Then, according to the values of these T ij , it can be determined which element in the second set of data each element in the first set of data matches, and which elements in the second set of data are not matched.
[0216] Figure 12 is a matching diagram when the number of elements in the first set of data provided by an embodiment of the present application is less than the number of elements in the second set of data. As shown in Figure 12, a circle represents an element in the first set of data, a square represents an element in the second set of data, 6 elements in the first set of data match 6 elements in the second set of data, and 2 elements in the second set of data do not match the elements in the first set of data. Figure 13 is a schematic diagram of the content in the compressed data provided by an embodiment of the present application. As shown in Figure 13, the compressed data includes a first bitmap, first indication information (optional) and entropy coded data; the first indication information is used to indicate the entropy coding parameters of the data of D dimensions, i.e., k1, k2, ..., k D , dimension 1, dimension 2, ..., dimension D represent entropy coded data of data of D different dimensions. The order of the entropy coded data in the compressed data (or the order when the differential values in the differential data are entropy coded and compressed) is consistent with the decoding order of the elements in the second set of data at the receiving end; the first bitmap is 11100111, the second set of data includes 6 elements, the bit string length (6 bits) in the first bitmap is equal to the number of elements in the second set of data, one bit in the first bitmap corresponds to one element in the second set of data, and the arrangement order of the elements corresponding to the bits in the first bitmap is the same as the compression coding or decoding order of the elements in the second set of data. When a bit in the first bitmap is 1, the element corresponding to the bit matches the element in the first set of data; when a bit in the first bitmap is 0, the element corresponding to the bit does not match the element in the first set of data. In this application, the order of the entropy coded data in the compressed data can be the order of the elements (or differential values) in the differential data (e.g., the first differential data) when entropy coding is compressed.
[0217] When the number of elements in the first set of data (current moment) is less than the number of elements in the second set of data (previous moment), the receiving end first decodes the entropy coding parameters of each dimension, and decodes (row by row) the differential data of each dimension accordingly. Then, according to the first bitmap, each differential value is added to the corresponding element of the second set of data (column by column) to restore the elements in the first set of data at the current moment.
[0218] When the number of elements in the first group of data (current moment) is greater than the number of elements in the second group of data (previous moment), if the matching scheme described above is used, some elements in the first group of data will be extra, as shown in Figure 14. Figure 14 is a matching schematic diagram when the number of elements in the first group of data provided by the embodiment of the present application is greater than the number of elements in the second group of data. As shown in Figure 14, a circle represents an element in the first group of data, and a square represents an element in the second group of data. The first group of data includes a total of 8 elements, 6 elements in the first group of data match the elements in the second group of data, and 2 elements in the first group of data do not match the elements in the second group of data. Since some remaining elements in the first group of data are not paired with elements in the second group of data, in the embodiment of the present application, the transmitting end can use the paired elements in the first group of data as a reference for differential, and at this time use a second bitmap to indicate the pairing relationship between the unpaired elements in the first group of data and the paired elements in the first group of data (as shown in Figure 15). The elements in the first set of data are divided into a first portion of elements and a second portion of elements. The first portion of elements are the elements in the first set of data that do not match the elements in the second set of data, and the second portion of elements are the elements in the first set of data that match the elements in the second set of data. Each bit in the second bitmap corresponds to an element in the second portion of elements. The length of the bit string in the second bitmap is equal to the number of elements in the second portion of elements. The second bitmap indicates whether an element in the second portion of elements matches an element in the first portion of elements.
[0219] FIG15 is a schematic diagram of the content of the compressed data provided by an embodiment of the present application. As shown in FIG15 , the compressed data includes a second bitmap, first indication information (optional), and entropy coded data; the first indication information is used to indicate the entropy coding parameters of the data of D dimensions, i.e., k1, k2, ..., k D, dimension 1, dimension 2, ..., dimension D represent entropy coded data of data of D different dimensions, the order of a portion of the entropy coded data in the compressed data (the first sub-compressed data, i.e., the entropy coded data indicated by 1 in FIG. 15 ) is consistent with the decoding order of the elements in the second group of data at the receiving end, and the order of another portion of the entropy coded data in the compressed data (the second sub-compressed data, i.e., the entropy coded data indicated by 2 in FIG. 15 ) is consistent with the decoding order of the selected elements in the first group of data that have matched the elements in the second group of data at the receiving end; the second bitmap is 000101, the number of elements in the first group of data that match the elements in the second group of data is 6, the length of the bit string in the second bitmap is equal to the number of elements in the first group of data that match the elements in the second group of data, one bit in the second bitmap corresponds to one element in the second portion of elements, the arrangement order of the elements corresponding to the bits in the second bitmap is the same as the compression coding or decoding order of the elements in the second portion of elements, and the second bitmap indicates that the fourth and sixth elements in the second portion of elements arranged in the compression coding or decoding order match the elements in the first portion of elements.
[0220] The receiving end may first decode the entropy coding parameters of each dimension, and decode (row by row) the differential data of each dimension accordingly, then decode (column by column) the elements of the first set of data that match the elements of the second set of data, for example, by adding the differential data obtained after decoding the first sub-compressed data to the corresponding elements of the second set of data, and finally decode the elements of the first set of data that do not match the elements of the second set of data, for example, by adding the elements of the differential data obtained by decoding the second sub-compressed data to the elements selected as references in the decoded first set of data. In other words, the elements of the differential data obtained by decoding the second sub-compressed data are added to the reference elements corresponding to each element. The receiving end may determine the reference element corresponding to each element in the differential data obtained by decoding the second sub-compressed data based on the second bitmap. An example of the decoding process at the receiving end is as follows: the elements in the second group of data are B2, B3, B4, B1, B5, and B6 in decoding order, and the second bitmap in the compressed data is 000101; the receiving end first decodes the entropy coding parameters of each dimension in the compressed data; according to the entropy coding parameters of each dimension, decode (row by row) the differential data of each dimension to obtain the first differential data, and the elements in the first differential data are C2, C3, C4, C1, C5, C6, C7, and C8 in decoding order; the elements in the first differential data that match the elements in the second group of data are added to their corresponding parameter elements to obtain the first part of the elements. The elements in the first part of the elements are A2, A3, A4, A1, A5, and A6 in decoding order, wherein C2 plus B2 obtains element A2, C3 plus B3 obtains element A3, C4 plus B4 obtains element A4, C1 plus B1 obtains element A1, C5 plus B5 obtains element A5, and C6 plus B6 obtains element A6; according to the second bitmap, the elements in the first differential data that do not match the elements in the second set of data are added to their corresponding parameter elements to obtain the second part of the elements, and the elements in the second part of the elements are A7 and A8 in decoding order, wherein C7 plus A4 obtains A7, and C8 plus A6 obtains A8.
[0221] FIG16 is a flow chart of a data compression method provided in an embodiment of the present application. As shown in FIG16 , the method includes:
[0222] 1601. The transmitting end determines a first matching relationship and a first set of entropy coding parameters based on the first set of data and the second set of data.
[0223] For example, the first matching relationship and the first set of entropy coding parameters are the optimal entropy coding parameters (i.e., the first set of entropy coding parameters) and the optimal matching differential method obtained by the transmitting end by executing the process of jointly optimizing the matching relationship and entropy coding parameters in Figure 10, i.e., the first matching relationship. For another example, the first matching relationship and the first set of entropy coding parameters are a set of relatively optimal matching relationships and entropy coding parameter combinations obtained by the transmitting end by executing the process of jointly optimizing the matching relationship and entropy coding parameters in Figure 10, i.e., the combination of the first set of entropy coding parameters and the first matching relationship. The transmitting end may also jointly optimize the matching relationship and entropy coding parameters in other ways, which is not limited in this application.
[0224] 1602. Based on the first matching relationship, perform a differential operation on the matching elements in the first set of data and the second set of data to obtain first differential data.
[0225] Step 1602 may refer to step 602 .
[0226] 1603. Perform uniform quantization on each dimension of data in the first differential data to obtain a first quantization result.
[0227] Step 1603 may refer to step 603 .
[0228] 1604. Transform the first quantization result into a non-negative integer to obtain a first transformation result.
[0229] 1605. Use the entropy coding parameters of each dimension in the first group of entropy coding parameters to perform entropy coding compression on the data of the corresponding dimension in the first transformation result to obtain compressed data.
[0230] The compressed data includes first indication information, and the first indication information is used to indicate a first set of entropy coding parameters.
[0231] 1606. The sending end sends the compressed data to the receiving end.
[0232] Correspondingly, the receiving end receives the compressed data from the sending end.
[0233] 1607. The receiving end obtains a first set of entropy coding parameters based on the first indication information in the compressed data.
[0234] 1608. The receiving end decodes the entropy coded data in the compressed data according to the entropy coding parameters of each dimension in the first group of entropy coding parameters to obtain first differential data.
[0235] 1609. The receiving end adds each element in the first differential data to the reference element corresponding to each element to obtain a first set of data.
[0236] Step 1609 can refer to step 607. The method flow in Figure 16 is applicable to scenarios where the number of elements in the first set of data is less than or equal to the number of elements in the second set of data. When the number of elements in the first set of data is equal to the number of elements in the second set of data, the sending end and the receiving end can implement compression and transmission of the first set of data using the method flow in Figure 16.
[0237] When the number of elements in the first set of data is less than the number of elements in the second set of data, the compressed data includes a first bitmap, where each bit in the first bitmap corresponds to an element in the second set of data, and the first bitmap is used to indicate whether an element in the second set of data matches an element in the first set of data. Based on the method flow of FIG16 , before executing step 1609, the transmitting end determines the reference element corresponding to each element in the first differential data based on the first bitmap. Optionally, the order of the elements corresponding to the bits in the first bitmap is the same as the compression encoding or decoding order of the elements in the second set of data. For example, the first group of data includes 6 elements, the second group of data includes 8 elements, the first bitmap is 11100111, the arrangement order of the elements corresponding to the bits in the first bitmap is the same as the compression coding or decoding order of the elements in the second group of data, the order of the elements in the first differential data corresponds to the decoding order of the elements in the second group of data at the receiving end, the elements corresponding to the bits with a bit value of 1 in the first bitmap match the elements in the first group of data, and the elements corresponding to the bits with a bit value of 0 in the first bitmap do not match the elements in the first group of data. The sending end determines, based on the first bitmap, that the reference element of the first element in the first differential data sorted by decoding is the second group of data. The first element in the data sorted by decoding, the reference element of the second element in the first differential data sorted by decoding is the second element in the second group of data sorted by decoding, the reference element of the third element in the first differential data sorted by decoding is the third element in the second group of data sorted by decoding, the reference element of the fourth element in the first differential data sorted by decoding is the sixth element in the second group of data sorted by decoding, the reference element of the fifth element in the first differential data sorted by decoding is the seventh element in the second group of data sorted by decoding, and the reference element of the sixth element in the first differential data sorted by decoding is the eighth element in the second group of data sorted by decoding.
[0238] In the embodiment of the present application, the matching relationship and entropy coding parameters are jointly optimized to improve compression performance. Each dimension of the first differential data is uniformly quantized to obtain a first quantization result, thereby improving the absolute accuracy of the compressed data.
[0239] In some embodiments, the transmitting end may use multiple sets of data as matching references to seek a better compression result. The following example allows the transmitting end to use two sets of data as references, but the embodiments of the present application are not limited thereto.
[0240] FIG17 is a flow chart of a data compression method provided by an embodiment of the present application. As shown in FIG17 , the method includes:
[0241] 1701. The sending end combines the two sets of data used as references into a second set of data.
[0242] The two sets of data used as reference by the sender are the data sent by the sender to the receiver at different times and successfully received by the receiver. For example, the set of data used as reference by the sender is the set of data that the sender has sent to the receiver at the last moment and successfully received by the receiver. The other set of data is the set of data that the sender has sent to the receiver at the last moment and has been successfully received by the receiver. The sender can and Synthesize into a new set of data That is the second set of data.
[0243] 1702. The transmitting end determines a first matching relationship and a first set of entropy coding parameters based on the first set of data and the second set of data.
[0244] Step 1702 may refer to step 1601 .
[0245] 1703. Based on the first matching relationship, perform a differential operation on the matching elements in the first set of data and the second set of data to obtain first differential data.
[0246] Step 1703 may refer to step 602 .
[0247] 1704. Perform uniform quantization on each dimension of data in the first differential data to obtain a first quantization result.
[0248] Step 1704 may refer to step 603 .
[0249] 1705. Transform the first quantization result into a non-negative integer to obtain a first transformation result.
[0250] 1706. Use the entropy coding parameters of each dimension in the first group of entropy coding parameters to perform entropy coding compression on the data of the corresponding dimension in the first transformation result to obtain compressed data.
[0251] The compressed data includes first indication information and second indication information. The first indication information is used to indicate the first set of entropy coding parameters. The second indication information is used to indicate the number of data groups to be sent by the transmitter for reference to the first set of data, that is, the number of third data groups. The transmitter and receiver can first configure the number of selectable sets. Then, the second indication information (such as a subscript) is used to indicate the number to be selected. For example, Then 00 (second indication information) represents 1, 01 represents 2, 10 represents 3, and 11 represents 4, which is agreed upon by the sending end and the receiving end. The sending end and the receiving end may agree that the number indicated by the second indication information is the number of data groups that the receiving end has recently successfully received from the sending end. Based on the second indication information, the receiving end may first determine the number of data groups referenced by the first group of data, and then obtain the second group of data. Figure 18 is an example of the content of compressed data provided by an embodiment of the present application. As shown in Figure 18, the compressed data includes a first bitmap, a first indication information, a second indication information, and entropy coded data. The first bitmap is 1010001010101. The length of the bit string in the first bitmap (13 bits) is equal to the number of elements in the second group of data. One bit in the first bitmap corresponds to one element in the second group of data. The arrangement order of the elements corresponding to the bits in the first bitmap is the same as the decoding order of the elements in the second group of data at the receiving end. The first indication information is used to indicate the entropy coding parameters of data of D dimensions, i.e., k1, k2, ..., k D , dimension 1, dimension 2, …, dimension D represent entropy coded data of data of D different dimensions, the second indication information is 01, and the order of the entropy coded data in the compressed data (or the order when the differential values in the differential data are entropy coded and compressed) is consistent with the decoding order of the elements in the second group of data at the receiving end.
[0252] 1707. The sending end sends the compressed data to the receiving end.
[0253] Correspondingly, the receiving end receives the compressed data from the sending end.
[0254] 1708. The receiving end obtains a first set of entropy coding parameters based on the first indication information in the compressed data.
[0255] 1709. The receiving end decodes the entropy coded data in the compressed data according to the entropy coding parameters of each dimension in the first group of entropy coding parameters to obtain first differential data.
[0256] 1710. The receiving end obtains a second set of data based on the second indication information in the compressed data.
[0257] The order of step 1701, step 1708 and step 1709 is not limited. For example, the first indication information in the compressed data indicates that the number of data groups for which the sender sends the first set of data reference is 2, and the receiver receives the two sets of data from the sender based on the two most recent successful data received. and The second set of data is obtained by merging, namely
[0258] 1711. The receiving end adds each element in the first differential data to the reference element corresponding to each element to obtain a first set of data.
[0259] Step 1711 may refer to step 607 .
[0260] In an embodiment of the present application, the sending end uses multiple groups of data as matching references in order to seek a better compression result.
[0261] FIG19 is a flow chart of another data compression method provided by an embodiment of the present application. The method flow in FIG19 is applicable to a scenario where the number of elements in the first set of data (at the current moment) is greater than the number of elements in the second set of data (at the previous moment). As shown in FIG19 , the method includes:
[0262] 1901. The sending end matches elements in the first set of data with elements in the second set of data to obtain a first matching relationship.
[0263] Step 1901 may refer to step 601. For example, the elements in the second set of data are B2, B3, B4, B1, B5, and B6 in decoding order, and the first set of data includes A1, A2, A3, A4, A5, A6, A7, and A8. The first matching relationship includes: A1 matches (or is paired with) B1, A2 matches B2, A3 matches B3, A4 matches B4, A5 matches B5, and A6 matches B6.
[0264] 1902. When the number of elements in the first set of data is greater than the number of elements in the second set of data, match the first part of elements in the first set of data with the second part of elements to obtain a third matching relationship.
[0265] The first part of the elements is the elements in the first set of data that do not match the elements in the second set of data. The second part of the elements is the elements in the first set of data that match the elements in the second set of data. For example, the elements in the second set of data are B2, B3, B4, B1, B5, and B6 in decoding order, and the first set of data includes A1, A2, A3, A4, A5, A6, A7, and A8. The first matching relationship includes: A1 matches (or pairs) with B1, A2 matches with B2, A3 matches with B3, A4 matches with B4, A5 matches with B5, and A6 matches with B6. The first part of the elements in the first set of data includes A7 and A8, the second part of the elements includes A1, A2, A3, A4, A5, and A6, and the third matching relationship includes A7 matching with A1, and A8 matching with A6.
[0266] 1903. Based on the first matching relationship, perform a differential operation on the matching elements in the first set of data and the second set of data to obtain first differential data.
[0267] Each element in the first differential data corresponds to an element in the second set of data, and the reference element of any element in the first differential data is the element corresponding to the element in the second set of data. For example, the first matching relationship includes: A1 matches (or pairs) with B1, A2 matches with B2, A3 matches with B3, A4 matches with B4, A5 matches with B5, and A6 matches with B6; based on the first matching relationship, an example of differentiating the matching elements in the first set of data and the second set of data is as follows: A1 minus B1 obtains C1, A2 minus B2 obtains C2, A3 minus B3 obtains C3, A4 minus B4 obtains C4, A5 minus B5 obtains C5, and A6 minus B6 obtains C6. The first differential data includes C1, C2, C3, C4, C5, and C6.
[0268] 1904. Perform uniform quantization on each dimension of data in the first differential data to obtain a first quantization result.
[0269] For example, the first differential data includes C1, C2, C3, C4, C5, and C6, and the first quantization result includes D1, D2, D3, D4, D5, and D6, where D1 is obtained by uniformly quantizing C1, D2 is obtained by uniformly quantizing C2, D3 is obtained by uniformly quantizing C3, D4 is obtained by uniformly quantizing C4, D5 is obtained by uniformly quantizing C5, and D6 is obtained by uniformly quantizing C6.
[0270] 1905. Transform each dimension of data in the first quantization result into a non-negative integer to obtain a first transformation result.
[0271] For example, the first quantization result includes D1, D2, D3, D4, D5, and D6, and the first transformation result includes E1, E2, E3, E4, E5, and E6, where E1 is obtained by transforming each dimensional data in D1 into a non-negative integer, E2 is obtained by transforming each dimensional data in D2 into a non-negative integer,..., E6 is obtained by transforming each dimensional data in D6 into a non-negative integer.
[0272] 1906. Based on the third matching relationship, perform a differential operation on the matching elements in the first part of elements and the second part of elements to obtain third differential data.
[0273] For example, the third matching relationship includes: A7 matches A4, and A8 matches A6; based on the third matching relationship, the difference between the matching elements in the first part and the second part is: A7 minus A4 to obtain C7, A8 minus A6 to obtain C8; the third differential data includes C7 and C8.
[0274] 1907. Perform uniform quantization on each dimension of data in the third differential data to obtain a third quantization result.
[0275] For example, the third differential data includes C7 and C8, and the third quantization result includes D7 and D8. D7 is obtained by uniformly quantizing C7, and D8 is obtained by uniformly quantizing C8.
[0276] 1908. Transform each dimension of data in the third quantization result into a non-negative integer to obtain a third transformation result.
[0277] For example, the third quantization result includes D7 and D8, and the third transformation result includes E7 and E8. E7 is obtained by transforming each dimension data in D7 into a non-negative integer, and E8 is obtained by transforming each dimension data in D8 into a non-negative integer.
[0278] 1909. Perform entropy coding compression on the first transformation result and the third transformation result to obtain compressed data.
[0279] One possible implementation of step 1909 is as follows: using the entropy coding parameters for each dimension in the first set of entropy coding parameters, entropy coding and compressing the data of the corresponding dimensions in the first transform result and the third transform result to obtain compressed data. The compressed data includes first indication information, and the first indication information is used to indicate the first set of entropy coding parameters.
[0280] The transmitter may perform entropy coding compression on the first transform result by sequentially performing entropy coding compression on each element in the first transform result according to the compression or decompression order of the elements in the second set of data corresponding to each element in the first transform result. For example, the first transform result includes E1, E2, E3, E4, E5, and E6, and the elements in the second set of data are B2, B3, B4, B1, B5, and B6 in decoding order, with E1 corresponding to B1, E2 corresponding to B2, E3 corresponding to B3, E4 corresponding to B4, E5 corresponding to B5, and E6 corresponding to B6. The transmitter may perform entropy coding compression on E2, E3, E4, E1, E5, and E6 in sequence. The transmitter may perform entropy coding compression on the third transform result by sequentially performing entropy coding compression on each element in the third transform result according to the compression or decompression order of the elements in the second part corresponding to each element in the third transform result. For example, the third transformation results include E7 and E8. E7 corresponds to A1, and E8 corresponds to A6. Since A1 is compressed before A6, the sender first performs entropy coding on E7 and then on E8. The entropy coded data in the compressed data are F2, F3, F4, F1, F5, F6, F7, and F8 in decoding order. F2 is obtained by entropy coding E2, F3 is obtained by entropy coding E3, ..., and F8 is obtained by entropy coding E8.
[0281] 1910. The sender sends compressed data to the receiver.
[0282] Correspondingly, the receiving end receives the compressed data from the sending end.
[0283] 1911. The receiving end obtains a first set of entropy coding parameters based on the first indication information in the compressed data.
[0284] 1912. The receiving end decodes the entropy coded data in the compressed data according to the entropy coding parameters of each dimension in the first group of entropy coding parameters to obtain first differential data and third differential data.
[0285] Steps 1911 to 1912 may be replaced by: decoding the compressed data to obtain first differential data and third differential data. The first indication information in the compressed data is optional. For example, the transmitting end may use LZ coding or arithmetic coding to perform entropy coding compression on the first transformation result and the third transformation result.
[0286] For example, the entropy coded data in the compressed data are F2, F3, F4, F1, F5, F6, F7, and F8 in the decoding order, the elements in the first differential data are C2, C3, C4, C1, C5, and C6 in the decoding order, and the elements in the third differential data are C7 and C8 in the decoding order.
[0287] 1913. Add each element in the first differential data to the reference element corresponding to each element, and add each element in the third differential data to the reference element corresponding to each element, to obtain a first set of data.
[0288] Each element in the first differential data corresponds to an element in the second set of data, and the reference element for any element in the first differential data is the element corresponding to that element in the second set of data. Each element in the third differential data corresponds to an element in the first differential data. The compressed data includes a second bitmap, wherein each bit in the second bitmap corresponds to an element in the first differential data. The second bitmap indicates whether an element in the first differential data matches an element in the third differential data. For example, if the second bitmap is 000101, the second bitmap indicates that the fourth and sixth elements in the first differential data, in decoding order, match elements in the third differential data, and that the other elements do not match elements in the third differential data. For another example, if the second bitmap is 000101, the elements in the third differential data, in decoding order, are C7 and C8, respectively, with C7 corresponding to the fourth element in the first differential data, in decoding order, and C8 corresponding to the sixth element in the first differential data, in decoding order. The reference element corresponding to the second element in the third differential data is the sum of the third element corresponding to the second element in the first differential data and the reference element corresponding to the third element. The second element is any element in the third differential data. For example, the elements in the first differential data are C2, C3, C4, C1, C5, and C6 in decoding order, the elements in the third differential data are C7 and C8 in decoding order, the second bitmap is 000101, and the elements in the second group of data are B2, B3, B4, B1, B5, and B6 in decoding order, C2 corresponds to B2, C3 corresponds to B3, C4 corresponds to B4, C1 corresponds to B1, C5 corresponds to B5, C6 corresponds to B6, C7 corresponds to C1, and C8 corresponds to C6; Adding each element in the first differential data to the reference element corresponding to each element includes: adding C2 and B2 to obtain A2, adding C3 and B3 to obtain A3, adding C4 and B4 to obtain A4, adding C1 and B1 to obtain A1, adding C5 and B5 to obtain A5, adding C6 and B6 to obtain A6, adding C7 and A1 to obtain A7, and adding C8 and A6 to obtain A8; the first group of data is A2, A3, A4, A1, A5, A6, A7, and A8 in decoding order.
[0289] In the embodiment of the present application, each element in the third differential data is added to the reference element corresponding to each element, and a first set of data containing more elements than the number of elements in the second set of data serving as the reference data can be decoded.
[0290] In the embodiments of the present application, a necessary condition for successful decoding at the receiving end is that the transceiver (i.e., the transmitting end and the receiving end) use the same reference data. Due to transmission errors, the receiving end may not successfully decode a certain set of data. The transmitting end needs to be aware of this event, so feedback signaling is required. The receiving end provides feedback on the decoding result of the set of data based on whether the decoding was successful. The embodiments of the present application introduce two operating modes that introduce feedback signaling, namely basic mode and enhanced mode.
[0291] Basic mode: The sender decides whether to use the differential transmission mode based on the feedback of the previous set of data and the effect of differential compression. For example, if the previous set of data sent by the sender is lost or the feedback signaling ACK / NACK for the previous set of data is lost, the sender can only send the non-differential transmission mode, see Figure 20A. Figure 20A shows the feedback signaling design and interaction process under the basic mode. In other words, the sender successfully receives the ACK signaling of the receiver for the previous set of data, and the sender transmits the previous set of data as parameter data in a differential manner. The sender can add a 1-bit or multi-bit mode indication in the message sent to indicate whether differential is currently used or not. In basic mode, if differential is used, only the previous set of data is used as a reference.
[0292] Compared to the basic mode, the enhanced mode is not limited to using only the last transmitted data as a reference. Instead, it allows the sender to use the most recently successfully received data (and the feedback ACK also successfully received by the sender) as the differential reference data (as shown in Figure 20B , where the following line is used as an example; the uplink interaction process is similar). Figure 20B shows the feedback signaling design and interaction process in the enhanced mode. In this case, a one-bit ACK confirmation indication signaling is required.
[0293] ACK confirmation signaling (denoted as A indication): This signaling is carried with each data transmission, and is used to indicate whether the transmitter has successfully decoded the ACK signaling most recently fed back by the receiver. Referring to FIG20B , when the ACK signaling most recently fed back by the receiver is successfully received by the transmitter, the ACK confirmation signaling value flips. The receiver needs to select the same differential reference as the transmitter based on the ACK confirmation signaling, that is, the data most recently successfully received by the receiver from the transmitter's perspective, to combat the feedback loss problem. As shown in FIG20B , the transmitter first uses a non-differential transmission method to send data 1 to the receiver, and the value of the ACK confirmation indication signaling in data 1 is 0; after the transmitter successfully receives the ACK sent by the receiver for data 1, it uses a differential transmission method to send data 2 to the receiver using data 1 as parameter data, and the value of the ACK confirmation indication signaling in data 2 is 1; the receiver determines that data 2 sent by the transmitter uses data 1 as parameter data based on the ACK confirmation indication signaling in data 2.
[0294] The following describes the structure of the communication device (transmitter and receiver) that can implement the embodiments of the present application with reference to the accompanying drawings.
[0295] Figure 21 is a schematic diagram of the structure of a communication device 2100 provided in an embodiment of the present application. The communication device 2100 can implement the functions or steps implemented by the transmitting end in each of the above-mentioned method embodiments, and can also implement the functions or steps implemented by the receiving end in each of the above-mentioned method embodiments. The communication device may include a processing module 2110 and a transceiver module 2120. Optionally, it may also include a storage unit, which can be used to store instructions (code or program) and / or data. The processing module 2110 and the transceiver module 2120 can be coupled to the storage unit. For example, the processing module 2110 can read the instructions (code or program) and / or data in the storage unit to implement the corresponding method. The above-mentioned units can be set independently or partially or fully integrated. For example, the transceiver module 2120 may include a transmitting module and a receiving module. The transmitting module can be a transmitter, and the receiving module can be a receiver. The entity corresponding to the transceiver module 2120 can be a transceiver or a communication interface.
[0296] In some possible implementations, the communication device 2100 can implement the behaviors and functions of the transmitting end in the above-mentioned method embodiments. For example, the communication device 2100 can be a transmitting end, or it can be a component (such as a chip or circuit) used in the transmitting end. The transceiver module 2120 can be used to perform all receiving or sending operations performed by the transmitting end in the embodiments of Figures 6, 9, 10, 16, 17, and 19, and / or other processes for supporting the technology described herein. The processing module 2110 is used to perform all operations except the transceiver operations performed by the transmitting end in the embodiments of Figures 6, 9, 10, 16, 17, and 19.
[0297] In some possible implementations, the communication device 2100 can implement the behaviors and functions of the receiving end in the above-mentioned method embodiments. For example, the communication device 2100 can be a receiving end, or it can be a component (such as a chip or circuit) used in the receiving end. The transceiver module 2120 can be used to perform all receiving or sending operations performed by the receiving end in the embodiments of Figures 6, 16, 17, and 19, and / or to support other processes of the technology described herein. The processing module 2110 is used to perform all operations other than the transceiver operations performed by the receiving end in the embodiments of Figures 6, 16, 17, and 19.
[0298] FIG22 is a schematic diagram of the structure of another communication device 220 provided in an embodiment of the present application. The communication device in FIG22 can be the aforementioned transmitting end or the aforementioned receiving end. As shown in FIG22 , the communication device 220 includes at least one processor 2210 and a transceiver 2220.
[0299] In some embodiments of the present application, the processor 2210 and the transceiver 2220 may be configured to execute functions or operations performed by the transmitting end. The transceiver 2220, for example, executes all receiving or transmitting operations performed by the transmitting end in the embodiments of Figures 6, 9, 10, 16, 17, and 19, and / or other processes for supporting the techniques described herein. The processor 2210, for example, executes all operations performed by the transmitting end in the embodiments of Figures 6, 9, 10, 16, 17, and 19, except for the transmitting and receiving operations.
[0300] In some embodiments of the present application, the processor 2210 and the transceiver 2220 may be configured to execute functions or operations performed by an access terminal. For example, the transceiver 2220 executes all receiving or transmitting operations performed by the receiving terminal in the embodiments of Figures 6, 16, 17, and 19, and / or other processes supporting the technologies described herein. The processor 2210, for example, executes all operations performed by the receiving terminal in the embodiments of Figures 6, 16, 17, and 19, except for the transmitting and receiving operations.
[0301] The transceiver 2220 is used to communicate with other devices / apparatuses via a transmission medium. The processor 2210 utilizes the transceiver 2220 to transmit and receive data and / or signaling, and is used to implement the methods described in the above method embodiments. The processor 2210 can implement the functions of the processing module 2110, and the transceiver 2220 can implement the functions of the transceiver module 2120.
[0302] Optionally, transceiver 2220 may include a radio frequency circuit and an antenna. The radio frequency circuit is primarily used for converting baseband signals into radio frequency signals and processing radio frequency signals. The antenna is primarily used for transmitting and receiving radio frequency signals in the form of electromagnetic waves. Input and output devices, such as a touch screen, display, and keyboard, are primarily used for receiving user input and outputting data to the user.
[0303] Optionally, the communication device 220 may further include at least one memory 2230 for storing program instructions and / or data. The memory 2230 is coupled to the processor 2210. Coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units, or modules, which may be electrical, mechanical, or other forms, and is used for information exchange between devices, units, or modules. The processor 2210 may operate in conjunction with the memory 2230. The processor 2210 may execute program instructions stored in the memory 2230. At least one of the at least one memory may be included in the processor.
[0304] When the communication device 220 is powered on, the processor 2210 can read the software program in the memory 2230, interpret and execute the instructions of the software program, and process the data of the software program. When data needs to be sent wirelessly, the processor 2210 performs baseband processing on the data to be transmitted and outputs the baseband signal to the radio frequency circuit. The radio frequency circuit performs radio frequency processing on the baseband signal and then transmits the radio frequency signal to the outside in the form of electromagnetic waves via the antenna. When data is sent to the communication device, the radio frequency circuit receives the radio frequency signal via the antenna, converts the radio frequency signal into a baseband signal, and outputs the baseband signal to the processor 2210. The processor 2210 converts the baseband signal into data and processes the data.
[0305] In another implementation, the above-mentioned RF circuit and antenna can be set independently of the processor performing baseband processing. For example, in a distributed scenario, the RF circuit and antenna can be arranged remotely from the communication device.
[0306] The specific connection medium between the transceiver 2220, processor 2210, and memory 2230 is not limited in the embodiments of the present application. In Figure 22, the memory 2230, processor 2210, and transceiver 2220 are connected via a bus 2240. The bus is represented by a bold line in Figure 22. The connection methods between other components are merely schematic and are not limiting. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, Figure 22 only uses a single bold line, but this does not mean that there is only one bus or only one type of bus.
[0307] In the embodiments of the present application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the present application may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0308] Figure 23 is a schematic diagram of the structure of another communication device 230 provided in an embodiment of the present application. As shown in Figure 23, the communication device shown in Figure 23 includes a logic circuit 2301 and an interface 2302. The processing module 2110 in Figure 21 can be implemented with a logic circuit 2301, and the transceiver module 2120 in Figure 21 can be implemented with an interface 2302. Among them, the logic circuit 2301 can be a chip, a processing circuit, an integrated circuit or a system on chip (SoC) chip, etc., and the interface 2302 can be a communication interface, an input and output interface, etc. In the embodiment of the present application, the logic circuit and the interface can also be coupled to each other. The embodiment of the present application does not limit the specific connection method of the logic circuit and the interface.
[0309] In some embodiments of the present application, the logic circuit and interface may be used to execute the functions or operations performed by the aforementioned transmitting end.
[0310] In some embodiments of the present application, the logic circuit and interface may be used to execute the functions or operations performed by the aforementioned receiving end.
[0311] The present application also provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is executed on a computer, the computer executes the method of the above embodiment.
[0312] The present application also provides a computer program product, which includes instructions or a computer program. When the instructions or the computer program are run on a computer, the method in the above embodiment is executed.
[0313] The present application also provides a communication system, comprising the above-mentioned transmitting end and the above-mentioned receiving end.
[0314] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the above claims.
Claims
1. A data compression method, characterized in that: include: Matching elements in the first group of data with elements in the second group of data to obtain a first matching relationship, wherein the first group of data is data to be received by the receiving end, and the second group of data is data successfully received by the receiving end; Based on the first matching relationship, performing a difference between the matching elements in the first set of data and the second set of data to obtain first differential data; Uniformly quantizing each dimension of data in the first differential data to obtain a first quantization result; Performing entropy coding compression based on the first quantization result to obtain compressed data; The compressed data is sent to the receiving end.
2. The method according to claim 1, characterized in that: The matching of the elements in the first set of data with the elements in the second set of data includes: Based on the first matching relationship, performing a difference between the matching elements in the first group of data and the second group of data to obtain the first differential data, wherein the first matching relationship is a presumed matching relationship between the elements in the first group of data and the elements in the second group of data; Uniformly quantizing each dimension of data in the first differential data to obtain the first quantization result; Determine a first code length of a codeword obtained by performing entropy coding compression based on the first quantization result; Based on a second matching relationship, performing a difference on the matching elements in the first group of data and the second group of data to obtain second differential data, wherein the second matching relationship is a matching relationship between an assumed element in the first group of data and an element in the second group of data, and the second matching relationship is different from the first matching relationship; Uniformly quantizing each dimension of data in the second differential data to obtain a second quantization result; Determine a second code length of a codeword obtained by performing entropy coding compression based on the second quantization result; When the first code length is the shortest of multiple code lengths obtained by entropy coding and compressing the first group of data, the first matching relationship is used as the matching relationship between elements in the first group of data and elements in the second group of data, and the multiple code lengths include the first code length and the second code length.
3. The method according to claim 1, characterized in that The matching of the elements in the first set of data with the elements in the second set of data includes: Based on the first matching relationship, performing a difference between the matching elements in the first group of data and the second group of data to obtain the first differential data, wherein the first matching relationship is a presumed matching relationship between the elements in the first group of data and the elements in the second group of data; Uniformly quantizing each dimension of data in the first differential data to obtain the first quantization result; Transform each dimension of data in the first quantization result into a non-negative integer to obtain a first transformation result; Determine a first code length of a codeword obtained by performing entropy coding compression based on the first set of entropy coding parameters and the first transformation result; Based on a second matching relationship, performing a difference on the matching elements in the first group of data and the second group of data to obtain second differential data, wherein the second matching relationship is a matching relationship between an assumed element in the first group of data and an element in the second group of data, and the second matching relationship is different from the first matching relationship; Uniformly quantizing each dimension of data in the second differential data to obtain a second quantization result; Transform each dimension of data in the second quantization result into a non-negative integer to obtain a second transformation result; Determine a second code length of a codeword obtained by performing entropy coding compression based on a second set of entropy coding parameters and the second transformation result, wherein the second set of entropy coding parameters is the same as or different from the first set of entropy coding parameters; When the first code length is the shortest code length among multiple code lengths obtained by performing entropy coding compression on the first group of data, the first matching relationship is used as a matching relationship between elements in the first group of data and elements in the second group of data, and the multiple code lengths include the first code length and the second code length; The performing entropy coding compression based on the first quantization result to obtain compressed data includes: Transform each dimension of data in the first quantization result into a non-negative integer to obtain a first transformation result; Entropy coding and compression are performed on data of corresponding dimensions in the first transformation result using entropy coding parameters of each dimension in the first group of entropy coding parameters to obtain the compressed data, wherein the compressed data includes first indication information, and the first indication information is used to indicate the first group of entropy coding parameters.
4. The method according to any one of claims 1 to 3, characterized in that: When the number of elements in the first group of data is less than the number of elements in the second group of data, the compressed data includes a first bitmap, a bit in the first bitmap corresponds to an element in the second group of data, and the first bitmap is used to indicate whether an element in the second group of data matches an element in the first group of data.
5. The method according to claim 4, characterized in that The arrangement order of elements corresponding to the bits in the first bitmap is the same as the compression encoding or decoding order of elements in the second set of data.
6. The method according to claim 4 or 5, characterized in that: The compressed data also includes second indication information, where the second indication information is used to indicate the number of third data groups, and the second group of data is obtained by combining two or more third data.
7. The method according to any one of claims 1 to 6, characterized in that: The order of the elements in the compressed data corresponds to the decoding order of the elements in the second set of data at the receiving end.
8. The method according to any one of claims 1 to 4, characterized in that: After matching the elements in the first set of data with the elements in the second set of data to obtain a first matching relationship, the method further includes: When the number of elements in the first group of data is greater than the number of elements in the second group of data, a first part of elements in the first group of data is matched with a second part of elements to obtain a third matching relationship, where the first part of elements are elements in the first group of data that are not matched with elements in the second group of data, and the second part of elements are elements in the first group of data that are matched with elements in the second group of data; Based on the third matching relationship, performing a differential operation on the matching elements in the first part of elements and the second part of elements to obtain third differential data; Uniformly quantizing each dimension of data in the third differential data to obtain a third quantization result; The performing entropy coding compression based on the first quantization result to obtain compressed data includes: Entropy coding compression is performed based on the first quantization result and the third quantization result to obtain the compressed data, wherein the compressed data includes a second bitmap, a bit in the second bitmap corresponds to an element in the second part of elements, and the second bitmap indicates whether the elements in the second part of elements match the elements in the first part of elements.
9. The method according to claim 8, characterized in that The arrangement order of elements corresponding to the bits in the second bitmap is the same as the compression encoding or decoding order of elements in the second part of elements.
10. The method according to claim 8 or 9, characterized in that: The compressed data includes first sub-compressed data and second sub-compressed data, the first sub-compressed data corresponds to the first differential data, the second sub-compressed data corresponds to the third differential data, the order of elements in the first sub-compressed data corresponds to the decoding order of elements in the second group of data at the receiving end, the order of elements in the second sub-compressed data corresponds to the decoding order of elements in the third part of elements at the receiving end, and the elements of the third part are elements in the second part of elements that match the elements in the first part of elements.
11. The method according to claims 1 to 10, characterized in that The compressed data further includes third indication information, and the third indication information is used to indicate whether the compressed data is obtained by using a differential method.
12. The method according to claims 1 to 10, characterized in that The compressed data further includes fourth indication information, where the fourth indication information is used to indicate whether the sending end has successfully decoded the latest ACK signaling from the receiving end in response to data feedback from the sending end.
13. A data decompression method, characterized in that: include: receiving compressed data from the sender; Decoding the compressed data to obtain first differential data; Add each element in the first differential data to the reference element corresponding to each element to obtain a first group of data, wherein each element in the first differential data corresponds to an element in the second group of data, the reference element corresponding to the first element in the first differential data is the element corresponding to the first element in the second group of data, the second group of data is the data that the receiving end has successfully received, and the first element is any element in the first differential data.
14. The method according to claim 13, characterized in that The compressed data includes first indication information, where the first indication information is used to indicate the first group of entropy coding parameters; The decoding based on the compressed data to obtain the first differential data includes: Determine the first set of entropy coding parameters based on the first indication information; The entropy coding parameters of each dimension in the first group of entropy coding parameters are used to decode the data of the corresponding dimension in the compressed data to obtain the first differential data.
15. The method according to claim 13 or 14, characterized in that The compressed data includes a first bitmap, a bit in the first bitmap corresponds to an element in the second set of data, and the first bitmap is used to indicate whether an element in the second set of data matches an element in the first set of data; The method further comprises: According to the first bitmap, a reference element corresponding to each element in the first differential data is determined.
16. The method according to claim 15, characterized in that The arrangement order of elements corresponding to the bits in the first bitmap is the same as the compression encoding or decoding order of elements in the second set of data.
17. The method according to claim 15 or 16, characterized in that The compressed data also includes second indication information, where the second indication information is used to indicate the number of third data groups, and the second group of data is obtained by combining two or more third data.
18. The method according to any one of claims 13 to 17, characterized in that The order of the elements in the compressed data corresponds to the decoding order of the elements in the second set of data at the receiving end.
19. The method according to claim 13, characterized in that The decoding based on the compressed data to obtain the first differential data includes: Decoding based on the compressed data to obtain the first differential data and the third differential data, the compressed data comprising a second bitmap, a bit in the second bitmap corresponding to an element in the first differential data, and the second bitmap indicating whether an element in the first differential data matches an element in the third differential data; The step of adding each element in the first differential data to a reference element corresponding to each element to obtain a first set of data includes: Each element in the first differential data is added to a reference element corresponding to each element, and each element in the third differential data is added to a reference element corresponding to each element, to obtain the first set of data, wherein the reference element corresponding to the second element in the third differential data is the sum of the third element corresponding to the second element in the first differential data and the reference element corresponding to the third element, and the second element is any element in the third differential data.
20. The method according to claim 19, characterized in that The arrangement order of elements corresponding to the bits in the second bitmap is the same as the compression encoding or decoding order of elements in the first differential data.
21. The method according to claim 19 or 20, characterized in that The order of elements in the first differential data corresponds to the decoding order of elements in the second set of data at the receiving end, and the order of elements in the third differential data corresponds to the decoding order of elements in the first differential data associated with the third differential data at the receiving end.
22. The method according to any one of claims 13 to 21, characterized in that The compressed data further includes third indication information, and the third indication information is used to indicate whether the compressed data is obtained by using a differential method.
23. The method according to any one of claims 13 to 21, characterized in that The compressed data further includes fourth indication information, where the fourth indication information is used to indicate whether the sending end has successfully decoded the latest ACK signaling from the receiving end in response to data feedback from the sending end.
24. A communication device, characterized in that: The method comprises a module or a unit for implementing the method according to any one of claims 1 to 12.
25. A communication device, characterized in that: The method comprises a module or a unit for implementing the method according to any one of claims 13 to 23.
26. A communication system, characterized in that: The communication system includes the communication device according to claim 24 and the communication device according to claim 25.
27. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed, the computer is enabled to perform the method according to any one of claims 1 to 23.
28. A communication device, characterized in that: The device comprises a processor, the processor is coupled to a memory, the memory stores computer program instructions, and the processor is used to execute the computer program instructions so that the communication device performs the method according to any one of claims 1 to 23.
29. A computer program product, characterized in that The computer program product comprises a computer program, wherein the computer program comprises program instructions, and when the program instructions are executed, the computer is caused to perform the method according to any one of claims 1 to 23.
Citation Information
Patent Citations
Entropy Coder for Image Compression
US20120082395A1
Compressing and decompressing data about radio signals
US20180136308A1
Method and appartus for compression of point cloud data
US20200175725A1
Quantization parameter signaling for joint chroma residual mode in video coding
US20210099732A1
Methods and apparatus of residual and coefficient coding
US20220353538A1
