Data compression method and communication apparatus

By combining differential compression and prediction models, the compression mode is determined, which solves the problem of unsatisfactory compression results caused by data correlation differences, and improves the accuracy and efficiency of data compression.

WO2025140000A1PCT designated stage expired Publication Date: 2025-07-03HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/140634
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-29
Filing Date
2024-12-19
Publication Date
2025-07-03

AI Technical Summary

Technical Problem

In the next generation of wireless communication networks, the large difference in data correlation results in unsatisfactory data compression effect based on correlation, affecting compression rate and accuracy.

Method used

By obtaining the target data to be compressed, the compression mode is determined by combining differential compression method and prediction model, and the compression result information and mode indication information are sent to improve compression accuracy and efficiency.

Benefits of technology

It improves the accuracy and compression rate of data compression, reduces the computational complexity and resource overhead, and enhances data transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024140634_03072025_PF_FP_ABST
    Figure CN2024140634_03072025_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a data compression method and a communication apparatus, capable of improving the accuracy of compression results and improving the compression ratio. The data compression method comprises: a first device acquires target data to be compressed; the first device compresses the target data to obtain compression result information of the target data and indication information of a compression mode of the target data, wherein the compression result information comprises first compressed data of the target data, and the first compressed data corresponds to the compression mode; and the first device sends first information, wherein the first information comprises the compression result information of the target data and the indication information of the compression mode of the target data.
Need to check novelty before this filing date? Find Prior Art

Description

Data compression method and communication device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on December 29, 2023, with application number 202311864757.0 and application name “Data Compression Method and Communication Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communication technology, and in particular to a data compression method and a communication device. Background Art

[0003] The next generation of wireless communication networks involves a variety of new scenarios and corresponding new transmission requirements, which will generate a large amount of radio access network (RAN) native data, and its interaction and transmission will occupy a large amount of air interface resources. The sending end (such as a terminal) can compress the data to be transmitted before transmitting it to reduce the amount of data transmitted. After receiving the data, the receiving end (such as a network device) can restore the data according to the method corresponding to the data compression method of the sending end. In some implementations, compression can be performed based on the correlation between the data. However, the correlation of the data may vary greatly due to different scenarios or services. In some cases, the data correlation is poor, which will lead to the problem of unsatisfactory data compression effect based on correlation. Summary of the Invention

[0004] The embodiments of the present application provide a data compression method and a communication device, which can improve the accuracy of compression results and increase the compression rate.

[0005] To achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, a data compression method is provided. The data compression method includes: a first device obtaining target data to be compressed; the first device compressing the target data to obtain compression result information of the target data and information indicating a compression mode for the target data; the compression result information includes first compressed data of the target data, where the first compressed data corresponds to the compression mode; and the first device sending first information. The first information includes the compression result information of the target data and information indicating the compression mode for the target data.

[0007] Based on the method provided in the first aspect, the first device can compress the target data and report the compression result information and the compression mode indication information of the target data, that is, the above-mentioned first information, wherein the first compressed data in the compression result information corresponds to the indication information of the compression mode, that is, the compression mode used to compress the target data matches the first compressed data. In this way, the accuracy of the compression result can be improved, thereby improving the compression rate.

[0008] It should be understood that the first device in the first aspect can also be called a sending device. Unless otherwise specified, the "first device" in this application can refer to the first device itself (such as a network device or a terminal), or a component in the first device (for example, a processor, a chip or a chip system, etc.), or it can also be a logical module or software that can realize all or part of the functions of the first device.

[0009] In one possible implementation, the first compressed data may be a first difference, and the compression result information includes information indicating the first data. The first data is data in a first data set corresponding to the target data, the first data set including at least one data item, and the first difference is the difference between the target data and the first data item. In other words, the target data is compressed based on the first data in the first data set. This avoids the use of a prediction model for prediction, reduces computational complexity, and thereby improves the operating efficiency of the first device.

[0010] In one possible implementation, the compression mode of the target data is determined based on a first condition. The first condition is determined based on the target data and predicted data of the target data obtained based on a prediction model. In other words, the compression mode of the target data can be determined based on the target data and the predicted data of the target data obtained based on the prediction model. This allows for flexible matching of compression modes, thereby further improving the accuracy of the first compressed data.

[0011] In one possible implementation, the accuracy of the first compressed data is greater than the accuracy of the second compressed data. The second compressed data is determined based on the target data and the predicted data. Thus, the amount of the first compressed data can be smaller than the amount of the second compressed data, thereby reducing resource overhead.

[0012] In one possible implementation, the compression mode of the target data is determined based on the range of the second difference. The second difference is the difference between the target data and the predicted data. In this way, the compression mode can be matched based on the range of the second difference, further improving the accuracy of the first compressed data.

[0013] In one possible implementation, the range of the second difference is determined based on a prediction difference threshold, which is configured by the second device or agreed upon by a protocol. In this way, the prediction difference threshold can be adjusted to meet different task requirements, thereby flexibly adjusting the prediction accuracy.

[0014] In one possible implementation, if the second difference is less than or equal to the predicted difference threshold corresponding to the target data, the compression result information is determined based on the predicted data, and the first compressed data is the second difference. If the second difference is greater than the predicted difference threshold, the compression result information is determined based on the first data. The first compressed data is the first difference, and the compression result information includes indicative information of the first data. The first data is the data in the first data set corresponding to the target data, the first data set includes at least one data, and the first difference is the difference between the target data and the first data. That is, the compression mode can be matched according to the second difference, so that the accuracy of the compression result can be improved, thereby improving the compression rate.

[0015] In one possible implementation, the first data may be the data closest to the target data among all the data in the first data set. This can make the value of the first difference smaller and the amount of data occupied smaller, thereby further improving the compression effect and reducing resource overhead.

[0016] In one possible implementation, the compression result information may also include the first data, or the compression result information may also include the first data and information indicating that the second data set is updated. In this way, the first device can send the first data in a timely manner when the first data is updated.

[0017] In a possible implementation, the compression result information may further include indication information for indicating that a second data set corresponding to the target data is updated based on the first data.

[0018] In one possible implementation, the first data set is a data set obtained by replacing the second data in the second data set corresponding to the target data with the first data. The difference between the target data and the first data is less than or equal to the predicted difference threshold, and the difference between the target data and the second data is greater than the predicted difference threshold. In other words, when the difference between the target data and the second data is greater than the predicted difference threshold, the first data set can be obtained by replacing the second data in the second data set with the first data. That is, the data set can be updated according to the size of the difference between the target data and the second data, so that the difference between the target data and the first data is smaller, thereby further improving the accuracy of the compression result.

[0019] In one possible implementation, the second data may be the data in the second data set that is closest to the target data. Thus, by updating the data set based on the data in the data set that is closest to the target data, the difference between the target data and the second data is minimized, thereby reducing the frequency of data set updates and computational complexity.

[0020] In one possible implementation, the first data may be determined by the first device based on the target data, or the first data may be determined by the first device based on the target data and the second data. In other words, the first data is associated with the target data, which can minimize the difference between the first data and the target data, thereby further improving the accuracy of the compression result.

[0021] In one possible implementation, the first data set may be one of the candidate data sets corresponding to each of the multiple groups. The candidate data sets are used to predict the data to be compressed. In other words, different groups may correspond to different candidate data sets. In this way, candidate data sets can be set based on the characteristics of the data corresponding to different groups, further improving the accuracy of the compression results.

[0022] In one possible implementation, the method provided in the first aspect may further include: the first device receiving second information. The second information is used to indicate multiple groups and candidate data sets corresponding to each of the multiple groups. In other words, the multiple groups and candidate data sets corresponding to each of the multiple groups can be configured by another device, thereby reducing processing complexity of the first device and improving operational efficiency.

[0023] In a possible implementation, the second information is further used to indicate that: the multiple groups are configured by the second device, and the candidate data sets corresponding to the multiple groups are also configured by the second device.

[0024] In one possible implementation, the first information may further include information indicating a candidate data set corresponding to the group containing the target data, among the multiple groups. In this case, the first device may determine the candidate data set, i.e., the first data set, based on the target data, so that the first data set matches the target data, thereby further improving the accuracy of the compression result for the target data.

[0025] In one possible implementation, the method provided in the first aspect may further include: the first device receiving third information. The third information is used to indicate multiple groups. In this way, another device, such as the second device, can configure the multiple groups, reducing the operational complexity of the first device.

[0026] In one possible implementation, the method provided in the first aspect may further include: the first device transmitting fourth information. The fourth information is used to indicate a candidate data set corresponding to each of the multiple groups, where the candidate data set corresponding to each of the multiple groups is determined by the first device based on the multiple groups. For example, the first device may determine the candidate data set based on already compressed data, thereby further improving the accuracy of the compression result.

[0027] In a possible implementation, the third information is further used to indicate that: the multiple groups are configured by the second device, and the candidate data sets corresponding to the multiple groups are determined by the first device.

[0028] In one possible implementation, the method provided in the first aspect may further include: the first device receiving fifth information. The fifth information indicates that the first device has determined the plurality of groups and that the first device has determined the candidate data sets corresponding to the plurality of groups. In this manner, the first device can determine the candidate data sets based on the compressed data, further improving the accuracy of the compression result.

[0029] In a possible implementation, the first data set is determined by the first device, and the method provided in the first aspect may further include: the first device sends sixth information, where the sixth information is used to indicate the first data set.

[0030] In one possible implementation, before the first device compresses the target data and obtains compression result information and information indicating a compression mode for the target data, the method provided in the first aspect may further include: the first device receiving seventh information, wherein the seventh information is used to indicate the first data set.

[0031] In a second aspect, a data decompression method is provided. The data decompression method includes: a second device receiving first information. The first information includes compression result information of target data and information indicating a compression mode for the target data. The compression result information and the information indicating the compression mode for the target data are obtained by compressing the target data by the first device. The compression result information includes first compressed data of the target data, where the first compressed data corresponds to the compression mode. The second device recovers the target data based on the first information.

[0032] Based on the method provided in the second aspect, the second device can receive the first information and restore the target data based on the first information. Since the first information includes the compression result information of the target data and the indication information of the compression mode of the target data, the first compressed data corresponds to the compression mode. In this way, the accuracy of the data compression result can be improved, making the restored target data more accurate.

[0033] It should be understood that the second device in the second aspect can also be called a receiving device. Unless otherwise specified, the "second device" in this application can refer to the second device itself (such as a network device or a terminal), or a component in the second device (for example, a processor, a chip or a chip system, etc.), or it can also be a logical module or software that can realize all or part of the functions of the second device.

[0034] In one possible implementation, the first compressed data is a first difference, and the compression result information may include information indicating the first data. The first data is data in a first data set corresponding to the target data, the first data set includes at least one data, and the first difference is the difference between the target data and the first data.

[0035] In a possible implementation, the compression mode of the target data is determined according to a first condition, wherein the first condition is determined according to the target data and predicted data of the target data obtained based on a prediction model.

[0036] In a possible implementation, the accuracy of the first compressed data is better than the accuracy of the second compressed data, wherein the second compressed data is determined based on the target data and the predicted data.

[0037] In a possible implementation, the compression mode of the target data is determined based on the range of the second difference, where the second difference is the difference between the target data and the predicted data.

[0038] In a possible implementation, the range of the second difference is determined according to a predicted difference threshold, and the predicted difference threshold is configured by the second device or agreed upon by a protocol.

[0039] In one possible implementation, if the second difference is less than or equal to a predicted difference threshold corresponding to the target data, the compression result information is determined based on the predicted data, and the first compressed data is the second difference. If the second difference is greater than the predicted difference threshold, the compression result information is determined based on the first data. The first compressed data is the first difference, and the compression result information includes information indicating the first data. The first data is data in a first data set corresponding to the target data, the first data set includes at least one data, and the first difference is the difference between the target data and the first data.

[0040] In a possible implementation, the first data may be data closest to the target data among all the data in the first data set.

[0041] In a possible implementation, the compression result information further includes the first data, or the compression result information further includes the first data and information indicating that the second data set is updated.

[0042] In a possible implementation, the compression result information may further include indication information for indicating that a second data set corresponding to the target data is updated based on the first data.

[0043] In one possible implementation, the first data set is a data set obtained by replacing the first data with the second data in the second data set corresponding to the target data. The difference between the target data and the first data is less than or equal to a predicted difference threshold, and the difference between the target data and the second data is greater than the predicted difference threshold.

[0044] In a possible implementation, the second data may be data in the second data set that is closest to the target data.

[0045] In a possible implementation, the first data may be determined by the first device according to the target data, or the first data may be determined by the first device according to the target data and the second data.

[0046] In a possible implementation, the first data set may be one of the candidate data sets corresponding to the multiple groups, and the candidate data set is used to predict the data to be compressed.

[0047] In a possible implementation, the method provided in the second aspect may further include: the second device sending second information, wherein the second information is used to indicate a plurality of groups and candidate data sets corresponding to each of the plurality of groups.

[0048] In a possible implementation, the second information is further used to indicate that: the multiple groups are configured by the second device, and the candidate data sets corresponding to the multiple groups are also configured by the second device.

[0049] In a possible implementation, the first information may further include: indication information of the candidate data set corresponding to the group where the target data is located, among the multiple groups.

[0050] In a possible implementation, the method provided in the second aspect may further include: the second device sending third information, wherein the third information is used to indicate multiple groups.

[0051] In one possible implementation, the method provided in the second aspect may further include: the second device receiving fourth information. The fourth information is used to indicate a candidate data set corresponding to each of the multiple groups, where the candidate data set corresponding to each of the multiple groups is determined by the first device based on the multiple groups.

[0052] In a possible implementation, the third information is further used to indicate that: the multiple groups are configured by the second device, and the candidate data sets corresponding to the multiple groups are configured by the first device.

[0053] In one possible implementation, the method provided in the second aspect may further include: the second device sending fifth information, wherein the fifth information is used to indicate that the multiple groups are determined by the first device, and the candidate data sets corresponding to the multiple groups are determined by the first device.

[0054] In a possible implementation, the first data set is determined by the first device, and the method provided in the second aspect may further include: the second device receives sixth information, where the sixth information is used to indicate the first data set.

[0055] In a possible implementation, before the second device receives the first information, the method provided in the second aspect may further include: the second device sending seventh information, wherein the seventh information is used to indicate the first data set.

[0056] In addition, the technical effects of the method described in the second aspect can refer to the technical effects of the method described in the first aspect, and will not be repeated here.

[0057] In a third aspect, a data compression method is provided. The data compression method includes: a first device obtaining target data to be compressed; the first device compressing the target data to obtain compression result information of the target data; the compression result information includes first compressed data and information indicating the first data; the first data is data in a first data set corresponding to the target data, the first data set includes at least one data, and the first compressed data is determined based on the target data and the first data; the first device sending first information; the first information includes compression result information of the target data.

[0058] Based on the data compression method provided in the third aspect, the first device compresses the acquired target data to be compressed, and obtains compression result information of the target data. The compression result information includes the first compressed data and information indicating the first data. In other words, the target data can be compressed based on the first data in the first data set. This avoids the use of a prediction model for prediction, reduces computational complexity, and thereby improves the operating efficiency of the first device.

[0059] In a possible implementation, the first compressed data is a first difference, which is a difference between the target data and the first data.

[0060] In a possible implementation, the first data may be data closest to the target data among all the data in the first data set.

[0061] In a possible implementation, the compression result information may further include the first data, or the compression result information may further include the first data and information indicating that the second data set is updated.

[0062] In a possible implementation, the compression result information may further include indication information of updating a second data set corresponding to the target data based on the first data.

[0063] In one possible implementation, the first data set is a data set obtained by replacing the first data with the second data in the second data set corresponding to the target data. The difference between the target data and the first data is less than or equal to a predicted difference threshold, and the difference between the target data and the second data is greater than the predicted difference threshold.

[0064] In a possible implementation, the second data may be data in the second data set that is closest to the target data.

[0065] In a possible implementation, the first data may be determined by the first device according to the target data, or the first data may be determined by the first device according to the target data and the second data.

[0066] In a possible implementation, the first data set may be one of the candidate data sets corresponding to the multiple groups, and the candidate data set is used to predict the data to be compressed.

[0067] In a possible implementation, the method provided in the third aspect may further include: the first device receiving second information, wherein the second information is used to indicate a plurality of groups and candidate data sets corresponding to each of the plurality of groups.

[0068] In a possible implementation, the second information is further used to indicate that: the multiple groups are configured by the second device, and the candidate data sets corresponding to the multiple groups are also configured by the second device.

[0069] In a possible implementation, the first information may further include: indication information of the candidate data set corresponding to the group where the target data is located, among the multiple groups.

[0070] In a possible implementation, the method provided in the third aspect may further include: the first device receiving third information, wherein the third information is used to indicate a plurality of groups.

[0071] In one possible implementation, the method provided in the third aspect may further include: the first device sending fourth information. The fourth information is used to indicate a candidate data set corresponding to each of the multiple groups, where the candidate data set corresponding to each of the multiple groups is determined by the first device based on the multiple groups.

[0072] In a possible implementation, the third information is further used to indicate that: the multiple groups are configured by the second device, and the candidate data sets corresponding to the multiple groups are determined by the first device.

[0073] In one possible implementation, the method provided in the third aspect may further include: the first device receiving fifth information, wherein the fifth information is used to indicate that the plurality of groups are determined by the first device, and the candidate data sets corresponding to the plurality of groups are determined by the first device.

[0074] In a possible implementation, the first data set is determined by the first device, and the method provided in the third aspect may further include: the first device sends sixth information, where the sixth information is used to indicate the first data set.

[0075] In one possible implementation, before the first device compresses the target data and obtains compression result information of the target data, the method provided in the third aspect may further include: the first device receiving seventh information, wherein the seventh information is used to indicate the first data set.

[0076] Regarding the technical effects of the third aspect, you can refer to the technical effects of the corresponding features in the first aspect, and will not repeat them here.

[0077] In a fourth aspect, a data decompression method is provided. The data decompression method includes: a second device receiving first information. The first information includes compression result information of target data. The compression result information includes first compressed data and information indicating the first data. The first data is data in a first data set corresponding to the target data, the first data set includes at least one data, and the first compressed data is determined based on the target data and the first data. The second device recovers the target data based on the first information.

[0078] Based on the data compression method provided in the fourth aspect, the second device recovers the target data based on the received first information, and the compression result information includes the first compressed data and the indication information of the first data. That is to say, the target data can be recovered based on the first compressed data and the first data in the first data set. In this way, the use of a prediction model for prediction can be avoided, the computational complexity can be reduced, and the operating efficiency of the first device can be improved.

[0079] In a possible implementation, the first compressed data is a first difference, which is a difference between the target data and the first data.

[0080] In a possible implementation, the first data may be data closest to the target data among all the data in the first data set.

[0081] In a possible implementation, the compression result information may further include the first data, or the compression result information may further include the first data and information indicating that the second data set is updated.

[0082] In a possible implementation, the compression result information may further include indication information of updating a second data set corresponding to the target data based on the first data.

[0083] In one possible implementation, the first data set is a data set obtained by replacing the first data with the second data in the second data set corresponding to the target data. The difference between the target data and the first data is less than or equal to a predicted difference threshold, and the difference between the target data and the second data is greater than the predicted difference threshold.

[0084] In a possible implementation, the second data may be data in the second data set that is closest to the target data.

[0085] In a possible implementation, the first data may be determined by the first device according to the target data, or the first data may be determined by the first device according to the target data and the second data.

[0086] In a possible implementation, the first data set may be one of the candidate data sets corresponding to the multiple groups, and the candidate data set is used to predict the data to be compressed.

[0087] In a possible implementation, the method provided in the fourth aspect may further include: the second device sending second information, wherein the second information is used to indicate a plurality of groups and candidate data sets corresponding to each of the plurality of groups.

[0088] In a possible implementation, the second information is further used to indicate that: the multiple groups are configured by the second device, and the candidate data sets corresponding to the multiple groups are also configured by the second device.

[0089] In a possible implementation, the first information may further include: indication information of the candidate data set corresponding to the group where the target data is located, among the multiple groups.

[0090] In a possible implementation, the method provided in the fourth aspect may further include: the second device sending third information, wherein the third information is used to indicate multiple groups.

[0091] In one possible implementation, the method provided in the fourth aspect may further include: the second device receiving fourth information. The fourth information is used to indicate a candidate data set corresponding to each of the multiple groups, where the candidate data set corresponding to each of the multiple groups is determined by the first device based on the multiple groups.

[0092] In a possible implementation, the third information is further used to indicate that: the multiple groups are configured by the second device, and the candidate data sets corresponding to the multiple groups are determined by the first device.

[0093] In one possible implementation, the method provided in the fourth aspect may further include: the second device sending fifth information, wherein the fifth information is used to indicate that the multiple groups are determined by the first device, and the candidate data sets corresponding to the multiple groups are determined by the first device.

[0094] In a possible implementation, the first data set is determined by the first device, and the method provided in the fourth aspect may further include: the second device receives sixth information, where the sixth information is used to indicate the first data set.

[0095] In a possible implementation, before the first device compresses the target data and obtains compression result information of the target data, the method provided in the fourth aspect may further include: the second device sending seventh information, wherein the seventh information is used to indicate the first data set.

[0096] In addition, the technical effects of the method described in the fourth aspect can refer to the technical effects of the method described in the third aspect, and will not be repeated here.

[0097] In a fifth aspect, a communication device is provided, which is used to execute the method described in any one of the implementation modes of the first to fourth aspects.

[0098] In the present application, the communication device described in the fifth aspect can be a terminal or a network device, or a chip (system) or other parts or components that can be set in the terminal or network device, or a device that includes the terminal or network device.

[0099] It should be understood that the communication device described in the fifth aspect includes a module, unit, or means corresponding to the method described in any one of the first to fourth aspects above. The module, unit, or means can be implemented by hardware, software, or hardware executing the corresponding software implementation. The hardware or software includes one or more modules or units for performing the functions involved in the above method.

[0100] In a sixth aspect, a communication device is provided, comprising: a processor configured to execute the method described in any possible implementation of the first to fourth aspects.

[0101] In one possible implementation, the communication device described in the sixth aspect may further include a transceiver. The transceiver may be a transceiver circuit or an interface circuit. The transceiver may be used for the communication device described in the sixth aspect to communicate with other communication devices.

[0102] In one possible implementation, the communication device described in aspect 6 may further include a memory. The memory may be integrated with the processor or provided separately. The memory may be used to store the computer program and / or data involved in the method described in any one of aspects 1 to 4.

[0103] In the present application, the communication device described in the sixth aspect may be a terminal or a network device, or a chip (system) or other parts or components that can be set in the terminal or network device, or a device that includes the terminal or network device.

[0104] In a seventh aspect, a communication device is provided. The communication device includes: a processor coupled to a memory, the processor being configured to execute a computer program stored in the memory, so that the communication device performs the method described in any possible implementation of the first to fourth aspects.

[0105] In one possible implementation, the communication device described in the seventh aspect may further include a transceiver. The transceiver may be a transceiver circuit or an interface circuit. The transceiver may be used for the communication device described in the seventh aspect to communicate with other communication devices.

[0106] In the present application, the communication device described in the seventh aspect can be a terminal or a network device, or a chip (system) or other parts or components that can be set in the terminal or network device, or a device that includes the terminal or network device.

[0107] In an eighth aspect, a communication device is provided, comprising: a processor and a memory; the memory is used to store a computer program, and when the processor executes the computer program, the communication device executes the method described in any one of the implementation methods of the first to fourth aspects.

[0108] In a possible implementation, the communication device described in the eighth aspect may further include a transceiver. The transceiver may be a transceiver circuit or an interface circuit. The transceiver may be used for the communication device described in the eighth aspect to communicate with other communication devices.

[0109] In the present application, the communication device described in the eighth aspect can be a terminal or a network device, or a chip (system) or other parts or components that can be set in the terminal or network device, or a device that includes the terminal or network device.

[0110] In a ninth aspect, a communication device is provided, comprising: a processor; the processor is configured to couple with a memory, and after reading a computer program in the memory, execute a method as described in any one of the implementation methods of the first to fourth aspects according to the computer program.

[0111] In a possible implementation, the communication device described in the ninth aspect may further include a transceiver. The transceiver may be a transceiver circuit or an interface circuit. The transceiver may be used for the communication device described in the ninth aspect to communicate with other communication devices.

[0112] In the present application, the communication device described in the ninth aspect can be a terminal or a network device, or a chip (system) or other parts or components that can be set in the terminal or network device, or a device that includes the terminal or network device.

[0113] In a tenth aspect, a processor is provided, wherein the processor is configured to execute the method described in any possible implementation of the first to fourth aspects.

[0114] In an eleventh aspect, a communication system is provided, which includes one or more terminals and one or more network devices.

[0115] In the twelfth aspect, a computer-readable storage medium is provided, comprising: a computer program or instructions; when the computer program or instructions are run on a computer, the computer executes the method described in any possible implementation method of the first to fourth aspects.

[0116] In the thirteenth aspect, a computer program product is provided, comprising a computer program or instructions, which, when executed on a computer, enables the computer to execute the method described in any one of the possible implementations of the first to fourth aspects.

[0117] In addition, the technical effects of the communication devices described in the fifth to thirteenth aspects above can refer to the technical effects of the methods described in the first to fourth aspects above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0118] FIG1 is a schematic diagram of the architecture of a communication system provided in an embodiment of the present application;

[0119] FIG2 is a schematic diagram showing the relationship between data provided in the embodiments of the present application;

[0120] FIG3 is a schematic diagram of a method flow chart provided in an embodiment of the present application;

[0121] FIG4 is a schematic diagram showing the relationship between data and compression mode provided in an embodiment of the present application;

[0122] FIG5 is a schematic diagram of a first process flow of compressing target data by a first device;

[0123] FIG6 is a second schematic diagram of a process for compressing target data by a first device;

[0124] FIG7 is a schematic diagram of the structure of the first information provided in an embodiment of the present application;

[0125] FIG8 is a schematic diagram of grouping provided in an embodiment of the present application;

[0126] FIG9 is a second schematic diagram of a method flow chart provided in an embodiment of the present application;

[0127] FIG10 is a first structural diagram of a communication device provided in an embodiment of the present application;

[0128] FIG11 is a second structural diagram of the communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0129] The technical solution in this application will be described below with reference to the accompanying drawings.

[0130] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as wireless fidelity (WiFi) systems, vehicle to everything (V2X) communication systems, device-to-device (D2D) communication systems, Internet of Vehicles communication systems, 4th generation (4G) mobile communication systems, such as long term evolution (LTE) systems, world-wide interoperability for microwave access (WiMAX) communication systems, fifth generation (5G) mobile communication systems, such as new radio (NR) systems, and future communication systems, such as sixth generation (6G) mobile communication systems.

[0131] This application will present various aspects, embodiments, or features in the context of systems that may include multiple devices, components, modules, etc. It should be understood and appreciated that each system may include additional devices, components, modules, etc., and / or may not include all of the devices, components, modules, etc. discussed in conjunction with the figures. Furthermore, combinations of these aspects may also be used.

[0132] Additionally, in the embodiments of this application, words such as "exemplarily" and "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as an "exemplary" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of the word "exemplary" is intended to present concepts in a concrete manner.

[0133] In the embodiments of the present application, the terms "information," "signal," "message," "channel," and "signaling" may sometimes be used interchangeably. It should be noted that, when the distinction between them is not emphasized, the meanings they intend to convey are the same. The terms "of," "corresponding," and "corresponding" may sometimes be used interchangeably. It should be noted that, when the distinction between them is not emphasized, the meanings they intend to convey are the same.

[0134] The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field will know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0135] To facilitate understanding of the embodiments of the present application, a communication system applicable to the embodiments of the present application is first described in detail using the communication system shown in Figure 1 as an example. For example, Figure 1 is a schematic diagram of the architecture of a communication system applicable to the method provided in the embodiments of the present application.

[0136] As shown in FIG1 , the communication system includes at least one network device (such as network devices 101 a to 101 c ) and at least one terminal (such as terminals 102 a to 102 f ).

[0137] Among them, network devices (network devices 101a to 101c) and terminals (terminals 102a to 102f) can exchange information with each other. In the case of multiple terminals, any two terminals can also exchange information. Alternatively, in the case of multiple network devices, any two network devices can also exchange information.

[0138] A terminal may be a terminal with transceiver functions, or may be a chip or chip system provided in the terminal. The terminal may also be referred to as user equipment (UE), access terminal, subscriber unit, subscriber station, mobile station (MS), mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent, or user device. The terminal in the embodiments of the present application can be a mobile phone, a cellular phone, a smart phone, a tablet computer, a wireless data card, a personal digital assistant (PDA), a wireless modem, a handheld device (handset), a laptop computer, a machine type communication (MTC) terminal, a computer with wireless transceiver function, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a smart home device (for example, a refrigerator, a television, an air conditioner, an electric meter, etc.), an intelligent robot, a robotic arm, a workshop equipment, a wireless terminal in unmanned driving, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in telemedicine, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, a vehicle-mounted terminal, a roadside unit with terminal function, a roadside control unit (ROU), ... unit, RSU), etc., flying equipment (for example, intelligent robots, hot air balloons, drones, airplanes), etc. The terminal of the present application may also be an on-board module, on-board module, on-board component, on-board chip or on-board unit that is built into the vehicle as one or more components or units. The terminal may also be other devices with terminal functions. For example, the terminal may also be a device that serves as a terminal function in D2D communication. The embodiments of the present application do not limit the device form of the terminal. The device for realizing the function of the terminal may be a terminal; it may also be a device that can support the terminal to realize the function, such as a chip system. The device can be installed in the terminal or used in combination with the terminal. In the embodiments of the present application, the chip system may be composed of chips, or may include chips and other discrete devices.

[0139] The network device may be a device with wireless transceiver functions, or may be a chip or chip system provided in the device, located in the access network (AN) of the communication system, and used to provide access services to the terminal. For example, the network device may be referred to as a radio access network (RAN) device, and may specifically be a next-generation mobile communication system, such as a 6G access network device, such as a 6G base station. Alternatively, in the next-generation mobile communication system, the network device may also have other naming methods, all of which are covered within the scope of protection of the embodiments of this application, and this application does not impose any limitation on this. Alternatively, the network device may include 5G, such as a gNB in ​​a new radio (NR) system, or one or a group of antenna panels (including multiple antenna panels) of a base station in 5G, or a network node constituting a gNB, a transmission and reception point (TRP or TP), or a transmission measurement function (TMF), such as a central unit (CU), a distributed unit (DU), a CU-control plane (CP), a CU-user plane (UP), a radio unit (RU), an RSU with base station functions, a wired access gateway, or a 5G core network element. Alternatively, the network device may include an access point (AP) in a wireless fidelity (WiFi) system, a wireless relay node, a wireless backhaul node, various types of macro base stations, micro base stations (also known as small cells), relay stations, access points, wearable devices, vehicle-mounted devices, and the like.

[0140] Among them, the CU and DU can be set separately, or can also be included in the same network element, such as a baseband unit (BBU). The RU can be included in a radio frequency device or a radio frequency unit, such as a remote radio unit (RRU), an active antenna unit (AAU) or a remote radio head (RRH). It can be understood that the network device can be a CU node, a DU node, or a device including a CU node and a DU node. In addition, the CU can be divided into a network device in the access network RAN, or the CU can be divided into a network device in the core network CN, which is not limited here. In different systems, CU (or CU-CP and CU-UP), DU or RU can also have different names, but those skilled in the art can understand their meanings. For example, in the ORAN system, the CU can also be called O-CU (Open CU), the DU can also be called O-DU, the CU-CP can also be called O-CU-CP, the CU-UP can also be called O-CU-UP, and the RU can also be called O-RU. For ease of description, this application uses CU, CU-CP, CU-UP, DU, and RU as examples. Any of the CU (or CU-CP, CU-UP), DU, and RU in this application can be implemented through a software module, a hardware module, or a combination of a software module and a hardware module.

[0141] In the embodiments of the present application, the form of the network device is not limited. The device used to implement the function of the network device can be a network device; it can also be a device that can support the network device to implement the function, such as a chip system. The device can be installed in the network device or used in conjunction with the network device.

[0142] It should be noted that the method provided in the embodiment of the present application can be applied between any two nodes shown in Figure 1, such as between terminals, between network devices, and between terminals and network devices. The specific implementation can refer to the following method embodiment, which will not be repeated here.

[0143] It should be noted that the solutions in the embodiments of the present application can also be applied to other communication systems, and the corresponding names can also be replaced by the names of corresponding functions in other communication systems.

[0144] It should be understood that FIG1 is only a simplified schematic diagram for ease of understanding, and the communication system may also include other network devices and / or other terminals, which are not shown in FIG1 .

[0145] In a communication scenario, a device at the transmitting end, such as a terminal, can compress the data to be transmitted before transmitting it to reduce the amount of data transmitted. After receiving the data, the receiving end, such as a network device, can restore the data according to the method corresponding to the data compression method of the transmitting end. In some embodiments, compression can be performed based on the correlation between the data. For example, the transmitting end can predict a data based on the correlation between the data and the data that has been transmitted, and compress the target data based on the target data and the predicted data, and send the compressed result to the receiving end. Accordingly, the receiving end can receive the compression result, and predict a data based on the correlation between the data and the data that has been restored, and restore the target data based on the predicted data and the compression result. Typically, the transmitting end and the receiving end use a unified prediction method or model (for example, the same method is used to predict the data) to obtain the same or substantially the same prediction result.

[0146] For ease of understanding, the following describes the method of predicting data at the transmitter and receiver in conjunction with Figure 2. As shown in Figure 2, assume that data A, B, C, and D are all reconstructed data corresponding to the data that has been compressed by the transmitter, and the compression results corresponding to data A to data D have all been transmitted to the receiver, and the data to be compressed is X. Then, the transmitter can make a prediction based on the prediction model to obtain the predicted data of data X. For example, the prediction model can be the LOCO-I model, and the prediction principle of the prediction model is as follows: (1) If C ≥ max (A, B), that is, the value of C is greater than or equal to the larger value of A and B, then the predicted data of X is taken as the smaller of A and B, that is (2) If C ≤ min(A, B), that is, the value of C is less than or equal to the smaller value of A and B, then the predicted data of X is the larger of A and B, that is, (3) If neither (1) nor (2) is satisfied, then the predicted data of X is A+BC, that is

[0147] For example, the prediction model can be an autoregressive model. That is, given a sequence consisting of multiple data [X1, X2, ..., X n-1 ,X], where [X1,X2,…,X n-1 ] is the reconstructed data corresponding to the data compressed by the transmitter, then the predicted data of the target data is the linear weighted reconstructed data corresponding to the data compressed by the transmitter, that is, in is the weighting coefficient, and ε is the noise.

[0148] It should be understood that other existing models can also be used for implementation, and will not be discussed in detail here. The reconstructed data corresponding to a piece of data refers to the data itself, that is, the original data, or the data obtained after processing the data. Similarly, the receiving end can use a model similar to that used by the sending end to predict data X, and then restore data X based on the predicted data and the compression result. The difference is that the data A, B, C, and D are replaced in sequence with the data of A, B, C, and D recovered by the receiving end.

[0149] It can be seen that when the correlation between the data is poor, the difference between the predicted data and the target data is large, which will lead to the problem of poor compression effect. The first device in the embodiment of the present application can also be called a sending device. Unless otherwise specified, the "first device" in this application can refer to the first device itself (such as a network device or a terminal), or a component in the first device (such as a processor, a chip or a chip system, etc.), or a logical module or software that can realize all or part of the functions of the first device.

[0150] The second device in the embodiment of the present application may also be referred to as a receiving device. Unless otherwise specified, the "second device" in this application may refer to the second device itself (such as a network device or a terminal), or a component in the second 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 second device.

[0151] The method provided in the embodiment of the present application will be described in detail below with reference to Figures 3 to 9.

[0152] For example, Figure 3 is a flowchart diagram 1 of the method provided in an embodiment of the present application. The method can be applied to communication between any two devices shown in Figure 1.

[0153] As shown in FIG3 , the method includes the following steps:

[0154] S301: The first device obtains target data to be compressed.

[0155] The first device may be one end of the compressed target data, or in other words, the first device may be the transmitting end. Taking the communication system shown in FIG. 1 as an example, the first device may be a terminal or a network device. For example, in uplink transmission, the first device may be a terminal, and in downlink transmission, the first device may be a network device. In a sidelink, the first device may be a terminal. The scenarios here are for example only. In actual implementation, the first device may also have other possible scenarios, which will not be described here.

[0156] The target data is the data to be compressed. The target data may be a floating-point number, such as model parameters, device-sensed data, or point cloud data, or an integer, such as floating-point quantized data. It should be understood that the target data in the embodiments of this application is for example purposes only. In actual implementation, the target data may also be other possible data.

[0157] S302: The first device compresses the target data to obtain compression result information of the target data and indication information of the compression mode of the target data.

[0158] That is, the compression result information and the indication information of the compression mode of the target data are obtained by the first device compressing the target data.

[0159] The compression result information includes first compressed data of the target data, and the first compressed data corresponds to the compression mode.

[0160] Compression mode refers to the method used to compress data. For example, compression modes may include compression based on a prediction model and compression based on a data set. In a scheme based on a prediction model compression, the reconstructed data corresponding to the data that has been compressed can be input into a prediction model (such as the prediction model provided in FIG. 2 above), so that the predicted data corresponding to the data to be compressed can be obtained, and compressed data can be obtained based on the data to be compressed and the predicted data. In a scheme based on a data set compression, a data can be determined from a data set, and compressed data can be obtained based on the data to be compressed and the data determined from the data set. It can be understood that the compression mode here is only used for example, and in actual implementation, other compression modes may also exist. For example, compressing data based on different data sets can be understood as different compression modes. Regarding the implementation of the reconstructed data corresponding to the data that has been compressed, please refer to the above-mentioned relevant introduction, which will not be repeated here.

[0161] The compression mode of the target data is a compression method used to compress the target data. The compression mode of the target data may be one of the above-mentioned compression modes.

[0162] The indication information of the compression mode of the target data is information used to indicate the compression mode of the target data. In one possible implementation scheme, the indication information of the compression mode of the target data may include one or more bits. In other words, the compression mode of the target data may be indicated by one or more bits. For example, in the case where the compression mode includes compression based on a prediction model or compression based on a data set, the indication information of the compression mode of the target data may be implemented by one bit: if the bit is "0", it indicates that the compression mode of the target data is compression based on a prediction model, and if the bit is "1", it indicates that the compression mode of the target data is compression based on a data set; or, if the bit is "1", it indicates that the compression mode of the target data is compression based on a prediction model, and if the bit is "0", it indicates that the compression modulus of the target data is compression based on a data set. For another example, in the case where the compression mode indication includes three compression modes, compression mode 0 to compression mode 2, the indication information of the compression mode of the target data may be implemented by two bits, with bit "00" indicating that the compression mode of the target data is compression mode 0, bit "01" indicating that the compression mode of the target data is compression mode 1, and bit "11" indicating that the compression mode of the target data is compression mode 3.

[0163] In some possible implementations, different compression modes may correspond to different mode indexes, and the compression mode indication information of the target data may indicate the compression mode index. For example, different values ​​of one or more bits used to indicate different compression modes may correspond to different compression mode indexes.

[0164] It should be understood that the relationship between the number of compression modes and the number of bits is not limited to that shown in the examples of the embodiments of the present application. The indication information of the compression mode of the target data can also be implemented in other possible ways, which will not be repeated here.

[0165] The first compressed data is data obtained by compressing the target data according to the compression mode corresponding to the target data. There is a corresponding relationship between the first compressed data and the target data. It should be understood that there is a corresponding relationship between the first compressed data and the combination of the target data and the compression mode corresponding to the target data. There is also a corresponding relationship between the first compressed data and the compression mode used to compress the first compressed data. The compression mode corresponding to the first compressed data is the compression mode used to compress the target data to obtain the first compressed data.

[0166] In one possible implementation, the first compressed data may be a first difference, and the compression result information includes information indicating the first data. The first data is data in a first data set corresponding to the target data, the first data set including at least one data item, and the first difference is the difference between the target data and the first data item. In other words, the target data is compressed based on the first data in the first data set. This avoids the use of a prediction model for prediction, reduces computational complexity, and thereby improves the operating efficiency of the first device.

[0167] The first data set includes at least one data item, that is, the first data set may include one or more data items. For example, the first data set may include data items from data index 0 to data index N, where each of data index 0 to data index N corresponds to one data item, and the correspondence between the data index and the data item is shown in Table 1. N is a positive integer.

[0168] Table 1

[0169] The first data may be a data in the first data set, meaning that the first data may be any data in the first data set. For example, the first data may be a data in the first data set. Assume that the data in the first data set include 0.5, -0.1, 1.1, and 1.3, the multiple data closest to the target data are 2, and the first data is 1. Then, the multiple data close to the target data are 1.1 and 1.3, and the first data may be one of 1.1 and 1.3.

[0170] In one possible implementation, the first data may be the data closest to the target data among all the data in the first data set. This can make the value of the first difference smaller and the amount of data occupied smaller, thereby further improving the compression effect and reducing resource overhead.

[0171] It should be understood that the first data here is only used as an example. In actual implementation, the first data may also be implemented in other ways, which will not be described here.

[0172] For ease of understanding, the first data set and the first data are further explained below in combination with scenarios 1 to 3.

[0173] In Scenario 1, the first data set may be generated by the first device itself. In this case, the method provided in FIG3 may further include the solution of Design 1.0 in Design 1 below. For the principle of generating the first data set from the first data set, please refer to the relevant descriptions in Design 1.1 to Design 1.3 in Design 1 below.

[0174] Alternatively, the first data set may be configured by the second device. If the first data set is configured by the second device, the method provided in FIG3 may also include the scheme shown in Design 2.0 in Design 2 below, that is, the first data set is configured by the scheme shown in Design 2.0 in Design 2. It should be understood that when the second device configures the first data set, the first data set may be determined by the second device. The principle of the second device determining the first data set can refer to the relevant introduction of Design 2.1 to Design 2.3 in the following Design 2, which will not be repeated here.

[0175] In scenario 2, the first data set may be a data set updated by the first device based on an existing data set, such as the second data set.

[0176] In one possible implementation, the first data set is a data set obtained by replacing the second data in the second data set corresponding to the target data with the first data. The difference between the target data and the first data is less than or equal to the predicted difference threshold, and the difference between the target data and the second data is greater than the predicted difference threshold. In other words, when the difference between the target data and the second data is greater than the predicted difference threshold, the first data set can be obtained by replacing the second data in the second data set with the first data. That is, the data set can be updated according to the size of the difference between the target data and the second data, so that the difference between the target data and the first data is smaller, thereby further improving the accuracy of the compression result.

[0177] The second data set may be understood as an old first data set, that is, a first data set used in a process of compressing the target data before the current process of compressing the target data.

[0178] In one possible implementation, the second data may be the data in the second data set that is closest to the target data. Thus, by updating the data set based on the data in the data set that is closest to the target data, the difference between the target data and the second data is minimized, thereby reducing the frequency of data set updates and computational complexity.

[0179] In one possible implementation, the first data may be determined by the first device based on the target data, or the first data may be determined by the first device based on the target data and the second data. In other words, the first data is associated with the target data, which can minimize the difference between the first data and the target data, thereby further improving the accuracy of the compression result.

[0180] It should be understood that in scenario 2, the first data indicated in the first indication information is updated data whose difference with the target data satisfies the predicted difference threshold, which will not be elaborated here.

[0181] Scenario 3: Different groups correspond to different data sets, such as candidate data sets. The first data set is determined based on the group corresponding to the target data set.

[0182] In one possible implementation, the first data set may be one of the candidate data sets corresponding to each of the multiple groups. The candidate data sets are used to predict the data to be compressed. In other words, different groups may correspond to different candidate data sets. In this way, candidate data sets can be set based on the characteristics of the data corresponding to different groups, further improving the accuracy of the compression results.

[0183] A group refers to the location corresponding to the data to be compressed. It should be understood that the location may include the temporal location of the data to be compressed, the location of the spatial domain resources used to carry the data to be compressed, the location of the frequency domain resources used to carry the data to be compressed, or the location of the spatial and frequency domain resources used to carry the data to be compressed.

[0184] In an embodiment of the present application, the positions corresponding to the data to be compressed can be divided into multiple groups, each group containing non-repeating data to be compressed. For example, the data to be compressed is [1.2, 1.5, 0.8, 1.1, 8.3, 7.8, 10, 9.3, 11], and the positions corresponding to the data to be compressed are divided into two groups, group 1 and group 2. The data to be compressed corresponding to group 1 is: [1.2, 1.5, 0.8, 1.1], and the data to be compressed corresponding to group 2 is: [8.3, 7.8, 10, 9.3, 11].

[0185] Among them, multiple groups and the candidate data sets corresponding to the multiple groups can be implemented according to the solutions provided by any one of the following designs 3 to 5.

[0186] For a schematic diagram of the candidate data sets corresponding to the groups, please refer to FIG4 . As shown in FIG4 , each square represents the location of a data. Assuming that the groups include 3 groups, namely group 1 to group 3, as shown in (a) to (d) in FIG4 , each group in group 1 to group 3 corresponds to a candidate data set, and different groups may correspond to different candidate data sets, such as group 1 to group 3 corresponding to candidate data sets in sequence. It is understandable that different data transmission processes can also be divided into different groups. As shown in (e) in FIG4 , the location of the first transmitted data can be divided into group 1, and group 1 corresponds to candidate data set 1. The location of the second transmitted data can be divided into group 2, and group 2 corresponds to candidate data set 2. It should be understood that the grouping in FIG4 is only for example. In actual implementation, there may be other groups, which will not be described here.

[0187] It should be understood that the data set in the embodiments of the present application, such as the first data set, the second data set or the candidate data set, can also be referred to as a prediction codebook, and the data in the data set can also be referred to as a codeword.

[0188] The first data indication information may indicate the position or index of the first data in the first data set. For example, with reference to Table 1, if the first data is 1.3 (assuming there is only one data value of 1.3 in the first data set), the first data indication information may indicate the data index N. It will be understood that the first data set and first data herein are merely examples. In actual implementation, the first data set and first data may have other possible implementations, which will not be further described here.

[0189] In the embodiments of the present application, the difference can be understood as the error between two data, or the difference value. The first difference can also be said to be the error of the first data relative to the target data. It should be understood that in the embodiments of the present application, the value of the first difference is the difference between the target data and the first data, or in other words, the value of the first difference is the difference between the first data and the target data.

[0190] In one possible implementation, the compression mode of the target data is determined based on a first condition. The first condition is determined based on the target data and predicted data of the target data obtained based on a prediction model. In other words, the compression mode of the target data can be determined based on the target data and the predicted data of the target data obtained based on the prediction model. This allows for flexible matching of compression modes, thereby further improving the accuracy of the first compressed data.

[0191] In one possible implementation, the precision of the first compressed data is greater than the precision of the second compressed data. The second compressed data is determined based on the target data and the predicted data. For example, if both the first compressed data and the second compressed data are numerical values, the absolute value of the first compressed data is less than or equal to the absolute value of the second compressed data. In this way, the amount of the first compressed data can be smaller than that of the second compressed data, thereby reducing resource overhead.

[0192] In one possible implementation, the compression mode of the target data is determined based on the range of the second difference. The second difference is the difference between the target data and the predicted data. In this way, the compression mode can be matched based on the range of the second difference, further improving the accuracy of the first compressed data.

[0193] In one possible implementation, the range of the second difference is determined based on a prediction difference threshold, which is configured by the second device or agreed upon by the protocol. For example, if the compression mode includes two compression modes, the range of the second difference includes: a range where the second difference is less than or equal to the prediction difference threshold corresponding to the target data; or, the range of the second difference includes: a range where the second difference is greater than the prediction difference threshold. In this way, the prediction difference threshold can be adjusted to meet different task requirements, thereby flexibly adjusting prediction accuracy.

[0194] In one possible implementation, if the second difference is less than or equal to the predicted difference threshold corresponding to the target data, the compression result information is determined based on the predicted data, and the first compressed data is the second difference. If the second difference is greater than the predicted difference threshold, the compression result information is determined based on the first data. The first compressed data is the first difference, and the compression result information includes indicative information of the first data. The first data is the data in the first data set corresponding to the target data, the first data set includes at least one data, and the first difference is the difference between the target data and the first data. That is, the compression mode can be matched according to the second difference, so that the accuracy of the compression result can be improved, thereby improving the compression rate.

[0195] The above range of the second difference is for example only. In actual implementation, the range of the second difference may also be other possible implementations. For example, the range of the second difference may also include: the second difference is less than the predicted difference threshold corresponding to the target data; or the range of the second difference includes: the second difference is greater than or equal to the predicted difference threshold.

[0196] It should be understood that when the compression mode includes two or more compression modes, the number of predicted difference thresholds is related to the number of compression modes. For example, the number of predicted difference thresholds = the number of compression modes - 1. Assume that the compression mode includes compression mode 0 through compression mode 2. In this case, as shown in Table 2, each compression mode may correspond to a range of data. The range of the second difference may be one of the ranges shown in Table 2 below. In this case, the compression mode corresponding to the target data is determined based on Table 2. For example, if the second difference is 1, then the compression mode corresponding to the target data is compression mode 1.

[0197] Table 2

[0198] Among them, a0, a1, a2 and a3 are all positive numbers, and a0 <a1<a2<a3。

[0199] The compression result information is information that can be combined with the indication information of the compression mode to restore the target data.

[0200] In a possible implementation, the compression result information may further include the first data, or the compression result information may further include the first data and information indicating that the second data set is updated.

[0201] It is understood that the information used to indicate that the second data set has been updated can be implemented using a bitmap. For example, the information used to indicate that the second data set has been updated can be represented by a bit "1". In this case, a bit "0" can indicate that the second data set has not been updated. Alternatively, the information used to indicate that the second data set has been updated can be represented by a bit "0". In this case, a bit "1" can indicate that the second data set has not been updated. The information used here to indicate that the second data set has been updated is for example only. Other implementations are possible and will not be detailed here.

[0202] In this way, the first device can send the first data in a timely manner when the first data is updated.

[0203] In one possible implementation, the compression result information may further include information indicating that the second data set corresponding to the target data is updated based on the first data. For example, the information indicating that the second data set corresponding to the target data is updated based on the first data may be the index of the data in the second data set that is replaced by the first data, i.e., the index of the second data.

[0204] For ease of understanding, the principle of S302 is described below with reference to Figures 5 and 6. Figure 5 is a first flow chart of the first device compressing target data.

[0205] As shown in Figure 5, in scenario 1 or scenario 3, assuming that the target data is p, the compressed data includes A to D, and the predicted data obtained by inputting data A to D into the prediction model is That is, the prediction data of the target data is determined based on the prediction model. The first device determines the prediction data based on the prediction data. and the second difference Δ corresponding to the target data p, wherein the second difference Δ corresponding to the target data satisfies the relationship shown in the following formula (1):

[0206] The first device determines the range of the second difference Δ, that is, the relationship between the second difference Δ and the predicted difference threshold thd. If |Δ|≤thd, then the relevant steps in S303 can be executed. At this time, the first compressed data in the compression result information is the second difference Δ, and the indication information of the compression mode of the target data indicates compression based on the prediction model. If |Δ|>thd, then the first device determines the first data from the first data set. For example, the data closest to the target data in the first data set is determined as the first data. The first device calculates a first difference between the target data and the first data. Among them, the first difference The relationship shown in the following formula (2) is satisfied:

[0207] In this case, the relevant steps in S303 can be executed. At this time, the first compressed data in the compression result information is the first difference The indication information of the compression mode of the target data indicates compression based on a data set.

[0208] Figure 6 is a second flow chart of the process of compressing target data by the first device. As shown in Figure 6, in scenario 2, assuming that the target data is p, the compressed data includes data A to data D, and the predicted data obtained by inputting data A to data D into the prediction model is That is, the prediction data of the target data is determined based on the prediction model. and the second difference Δ corresponding to the target data p, wherein the second difference Δ corresponding to the target data satisfies the relationship shown in the above formula (1):

[0209] The first device determines the range of the second difference Δ, that is, the relationship between the second difference Δ and the predicted difference threshold thd. If |Δ|≤thd, then the relevant steps in S303 can be executed. At this time, the first compressed data in the compression result information is the second difference Δ, and the indication information of the compression mode of the target data indicates compression based on the prediction model. If |Δ|>thd, then the first device determines the first data from the first data set. For example, the data closest to the target data in the first data set is determined as the first data. The first device calculates a first difference between the target data and the first data. Among them, the first difference The relationship shown in the above formula (2) is satisfied. || indicates taking the absolute value.

[0210] The first device determines the range of the first difference. Then, the first device can update the first data in formula (2), thereby updating the first data set. The updated first data is p new In this case, the first data in formula (2) is the second data, and the first data set where the first data in formula (2) is located is the second data set. new For the implementation of the first data set, please refer to the relevant introduction in Scenario 2, which will not be repeated here.

[0211] The first device recalculates the first difference based on the updated first data and the updated first data set. The calculation principle can be referred to as shown in formula (2), where: The process of determining the range of the first difference and subsequent processes is then re-executed.

[0212] In the process shown in Figure 6, if Then, the relevant steps in S303 may be executed.

[0213] If the first difference calculated based on the updated first data satisfies At this time, the first compressed data in the compression result information is the first difference calculated based on the updated first data. The indication information of the compression mode of the target data indicates compression based on a data set.

[0214] S303: The first device sends the first information, and correspondingly, the second device receives the first information.

[0215] The first information includes compression result information of the target data and indication information of the compression mode of the target data.

[0216] As shown in Figure 7, assuming that the compression mode includes compression based on a prediction model and compression based on a data set, and bit "0" represents compression based on a data set, and bit "1" represents compression based on a prediction model, then when the compression mode of the target data is compression based on a prediction model, the compression result information of the target data includes the difference between the target data and the prediction data.

[0217] When the compression mode of the target data is data set-based compression, the compression result information of the target data includes an index of the first data and a difference between the target data and the first data. In addition, the compression result information of the target data may also include information indicating whether the second data set has been updated (i.e., a data set update indication) and / or the first data.

[0218] The first information can be carried on a physical uplink shared channel (PUSCH). It should be understood that PUSCH is only used as an example. In actual implementation, the first information can also be carried on other possible channels, which will not be described here. In an embodiment of the present application, if there are multiple target data, then the first indication information can include compression result information and compression mode indication information of the multiple target data. In this case, the first indication information can be packaged in the following manner:

[0219] Method 1: The compression result information and compression mode indication information for each target data item are packaged separately. As shown in Figure 8 (a), assuming there are Q target data items, the compression mode indication information for the qth target data item is packaged together with the compression result information for the qth target data item. Q is a positive integer, and q is a positive integer less than or equal to Q.

[0220] Method 2: Compression result information for all target data is packaged, and compression mode indication information for all target data is packaged. As shown in Figure 8(b), assuming that the number of target data is Q, then the compression mode indication information for Q target data is packaged, and the compression result information for Q target data is packaged.

[0221] It is understandable that, in the case where there are two compression modes, the indication information of the compression mode of each target data can be implemented by one bit or by other methods, which will not be described in detail here.

[0222] It should be understood that during the packaging process, the number of bits occupied by the compression mode indication information of different target data may be the same, or the number of bits occupied by the compression mode indication information of different target data may be different. In this case, there is information between the compression mode indication information of different target data for identifying that the compression mode indication information of one target data has ended.

[0223] S304: The second device restores the target data according to the first information.

[0224] In an embodiment of the present application, the second device may obtain the first compressed data from the target data, and restore the target data based on the first compressed data and the compression mode of the target data.

[0225] The following further explains this with reference to an example of the indication information of the compression mode of the target data in the first information.

[0226] If the target data's compression mode indication in the first information indicates compression based on a prediction model, the second device may input the data already recovered by the second device into the prediction model to obtain predicted data for the target data, and then recover the target data based on the predicted data for the target data and the first compressed data in the first indication information. For example, if the first compressed data in the first indication information = target data - predicted data, then the second device may recover the target data in the following manner: target data = first compressed data + predicted data.

[0227] It should be understood that the prediction model used by the second device is consistent with the prediction model used by the first device. This prediction model may be predetermined by the protocol, negotiated between the first and second devices through information exchange, or pre-configured in the first and second devices, and this is not limited in the present embodiment.

[0228] If the target data's compression mode indication in the first information indicates data set compression, the second device may determine the first data based on the index of the first data indicated in the first information, and restore the target data based on the first data and the first compressed data. For example, if the first compressed data in the first indication information = target data - first data, the second device may restore the target data as follows: target data = first compressed data - first data.

[0229] It should be understood that the target data restored by the second device can meet the performance indicators related to the target data of the first device compared to the target data of the first device. In other words, the second device can restore the target data that meets the performance indicators.

[0230] Based on the method provided in the first aspect, the first device can compress the target data and report compression result information and compression mode indication information of the target data, namely, the aforementioned first information, wherein the first compressed data in the compression result information corresponds to the compression mode indication information, that is, the compression mode used to compress the target data matches the first compressed data. In this way, the accuracy of the compression result can be improved, thereby improving the compression rate. Correspondingly, the second device can receive the first information and restore the target data based on the first information. Because the first information includes the compression result information of the target data and the compression mode indication information of the target data, the first compressed data corresponds to the compression mode. In this way, the accuracy of the data compression result can be improved, making the restored target data more accurate.

[0231] Design 1: The first data set is generated by the first device itself, or in other words, the first data set is determined by the first device.

[0232] Design 1.0

[0233] In one possible implementation, the method provided in FIG3 may further include: the first device sending sixth information. Correspondingly, the second device receiving the sixth information. That is, the first device may indicate the first data set to the second device.

[0234] The sixth information is used to indicate the first data set. It should be understood that the sixth information may be an index of the first data set, or other information that may include the index of the first data set. The index of the first data set may also be referred to as an identifier of the first data set.

[0235] In this scenario, the first device may determine the first data set through the following Designs 1.1 to 1.3.

[0236] Design 1.1

[0237] The first device generates a first data set based on the size of the prediction error corresponding to the data that has been compressed. For example, the first device can determine the data with a large prediction error in the prediction error corresponding to the data that has been compressed as the data in the first data set. For example, the data in the first data set whose probability of appearing in the data with a large prediction error is greater than a probability threshold is determined. The index of each data in the first data set can be positively correlated or negatively correlated with the size of the prediction error corresponding to each data that has been compressed. Here, the relationship between the index of each data in the first data set and the size of the prediction error corresponding to each data that has been compressed is only used for example and will not be repeated here.

[0238] It should be understood that the "data" in the embodiments of the present application, unless otherwise specified, refers to data that needs to be compressed by the first device before being transmitted to the second device. The data can be data that has been compressed or data to be compressed, and will not be further described later.

[0239] Design 1.2

[0240] The first device may determine the first data set based on the value range of the data to be compressed. For example, the first data set includes M data within the value range of the data to be compressed, and the intervals between any two adjacent data in the M data are equal. In other words, the prediction codebook is a uniform codebook.

[0241] Design 1.3

[0242] The first device may generate a first data set based on a mathematical distribution satisfied by the compressed data. For example, in the first data set, the interval between two adjacent data with a high frequency of occurrence is smaller than the interval between two adjacent data with a lower frequency of occurrence.

[0243] Design 2: The first data is configured by the second device.

[0244] Design 2.0

[0245] In one possible implementation, before the first device compresses the target data and obtains compression result information and information indicating the compression mode of the target data, the method provided in FIG3 may further include: the second device sending seventh information. Accordingly, the first device receives the seventh information. The seventh information is used to indicate the first data set. It should be understood that the sixth information may be an index to the first data set, or other information that may include the index to the first data set. The index to the first data set may also be considered an identifier for the first data set.

[0246] In this scenario, the second device may determine the first data set through the following Design 2.1 to Design 2.3.

[0247] Design 2.1

[0248] The second device generates a first data set based on the observed data, that is, the size of the prediction error corresponding to the data decompressed or restored by the second device. It can be understood that each observation data corresponds to a piece of data that has been compressed in Design 1.1. For example, the second device can determine the observation data with a large corresponding prediction error in the prediction error corresponding to the observation data as the data in the first data set. For example, the data in the first data set is determined by the data whose probability of appearing in the observation data with a large corresponding prediction error is greater than a probability threshold. Among them, the index of each data in the first data set can be positively correlated or negatively correlated according to the size of the prediction error corresponding to each observation data. Here, the relationship between the index of each data in the first data set and the size of the prediction error corresponding to each compressed data is only used for example and will not be repeated here.

[0249] Design 2.2

[0250] The second device may determine the first data set based on the value range of the data to be compressed. For example, the first data set includes M data within the value range of the data to be compressed, and the intervals between any two adjacent data in the M data are equal. In other words, the prediction codebook is a uniform codebook.

[0251] It should be understood that in this design, the value range of the data to be compressed can be indicated by the information sent by the first device to the second device.

[0252] Design 2.3

[0253] The second device may generate a first data set based on a mathematical distribution satisfied by the observed data. For example, in the first data set, the interval between two adjacent data with a high frequency of occurrence is smaller than the interval between two adjacent data with a lower frequency of occurrence.

[0254] Design 3

[0255] In one possible implementation, the method provided in FIG3 may further include: the second device sending second information. Accordingly, the first device receives the second information. The second information indicates multiple groups and candidate data sets corresponding to each of the multiple groups. In other words, multiple groups and candidate data sets corresponding to each of the multiple groups can be configured by another device. This reduces processing complexity on the first device, thereby improving operational efficiency.

[0256] In a possible implementation, the second information is further used to indicate that: the multiple groups are configured by the second device, and the candidate data sets corresponding to the multiple groups are also configured by the second device.

[0257] In one possible implementation, the first information may further include information indicating a candidate data set corresponding to the group containing the target data, among the multiple groups. In this case, the first device may determine the candidate data set, i.e., the first data set, based on the target data, so that the first data set matches the target data, thereby further improving the accuracy of the compression result for the target data.

[0258] Design 4

[0259] In one possible implementation, the method provided in FIG3 may further include: the second device sending third information. Accordingly, the first device receives the third information. The third information indicates multiple groups. In this manner, another device, such as the second device, can configure multiple groups to reduce operational complexity on the first device.

[0260] In one possible implementation, the method provided in FIG. 3 may further include: the first device transmitting fourth information. Accordingly, the second device receives the fourth information. The fourth information indicates a candidate data set corresponding to each of the multiple groups. The candidate data set corresponding to each of the multiple groups is determined by the first device based on the multiple groups. For example, the first device may determine the candidate data set based on already compressed data, thereby further improving the accuracy of the compression result.

[0261] In a possible implementation, the third information is further used to indicate that: the multiple groups are configured by the second device, and the candidate data sets corresponding to the multiple groups are determined by the first device.

[0262] Design 5

[0263] In one possible implementation, the method provided in FIG. 3 may further include: the second device sending fifth information. Accordingly, the first device receiving the fifth information. The fifth information indicates that the first device determined the plurality of groups and that the first device determined the candidate data sets corresponding to the plurality of groups.

[0264] In this way, the first device can determine the candidate data set based on the compressed data, thereby further improving the accuracy of the compression result.

[0265] It should be understood that the solutions provided in the embodiments of the present application can be used in combination with each other if it is logical, and will not be described in detail here.

[0266] In some possible design solutions, a data compression method and a data decompression method are provided. The data compression method can compress the target data to be compressed based on a data set, thereby reducing computational complexity and improving operational efficiency. It should be understood that in this embodiment, the naming in this application is independent of the naming in the embodiment provided in FIG3 above. For details, please refer to the relevant introduction of this embodiment. The following is explained in conjunction with FIG9. As shown in FIG9, the method includes:

[0267] S901: The first device obtains target data to be compressed.

[0268] Regarding the implementation of the first device and the target data, please refer to the relevant introduction in S301. Regarding the implementation of S901, please refer to the relevant introduction in S301, which will not be repeated here.

[0269] S902: The first device compresses the target data to obtain compression result information of the target data.

[0270] The compression result information includes first compressed data and indication information of the first data, wherein the first data is data in a first data set corresponding to the target data, the first data set includes at least one data, and the first compressed data is determined based on the target data and the first data.

[0271] In a possible implementation, the first compressed data is a first difference, which is a difference between the target data and the first data.

[0272] In a possible implementation, the first data may be data closest to the target data among all the data in the first data set.

[0273] In a possible implementation, the compression result information may further include the first data, or the compression result information may further include the first data and information indicating that the second data set is updated.

[0274] In a possible implementation, the compression result information may further include indication information of updating a second data set corresponding to the target data based on the first data.

[0275] In one possible implementation, the first data set is a data set obtained by replacing the first data with the second data in the second data set corresponding to the target data. The difference between the target data and the first data is less than or equal to a predicted difference threshold, and the difference between the target data and the second data is greater than the predicted difference threshold.

[0276] In a possible implementation, the second data may be data in the second data set that is closest to the target data.

[0277] In a possible implementation, the first data may be determined by the first device according to the target data, or the first data may be determined by the first device according to the target data and the second data.

[0278] Regarding the implementation of the second data and the second data set, reference may be made to the relevant introduction to the second data and the second data set in S302 , which will not be repeated here.

[0279] In a possible implementation, the first data set may be one of the candidate data sets corresponding to the multiple groups, and the candidate data set is used to predict the data to be compressed.

[0280] Regarding the implementation of the compression result information, the first data, the first data set and the indication information of the first data, reference may be made to the relevant introduction in S302 and will not be repeated here.

[0281] For the implementation of S902, please refer to the relevant introduction of S302 in Figure 3, which will not be repeated here.

[0282] S903: The first device sends the first information, and correspondingly, the second device receives the first information.

[0283] For the implementation of S903, please refer to the relevant introduction of S303, which will not be repeated here.

[0284] S904: The second device restores the target data according to the first information.

[0285] For the implementation of S904, reference may be made to the relevant introduction when the indication information of the compression mode of the target data in the first information in S304 indicates compression based on the data set, which will not be repeated here.

[0286] The first information includes compression result information of the target data.

[0287] Based on the data compression method provided in FIG9 , the first device compresses the acquired target data to be compressed to obtain compression result information of the target data. The compression result information includes the first compressed data and the indication information of the first data. That is, the target data can be compressed based on the first data in the first data set. Accordingly, in this way, the use of a prediction model for prediction can be avoided, the computational complexity can be reduced, and the operating efficiency of the first device can be improved. Correspondingly, the second device restores the target data based on the received first information. The compression result information includes the first compressed data and the indication information of the first data. That is, the second device can restore the target data based on the first compressed data and the first data in the first data set. In this way, the use of a prediction model for prediction can be avoided, the computational complexity can be reduced, and the operating efficiency of the second device can be improved.

[0288] The method provided by the embodiment of the present application is described in detail above in conjunction with Figures 3 to 9. The communication device for executing the method provided by the embodiment of the present application is described in detail below in conjunction with Figures 10 and 11.

[0289] For example, Figure 10 is a structural diagram of a communication device according to an embodiment of the present application. As shown in Figure 10 , the communication device 1000 includes a processing module 1001 and a transceiver module 1002. For ease of illustration, Figure 10 only shows the main components of the communication device 1000.

[0290] In some embodiments, the communication apparatus 1000 may be applicable to the communication system shown in FIG. 1 , and perform the function of the first device in the method shown in FIG. 3 .

[0291] Processing module 1001 is configured to obtain target data to be compressed. Processing module 1001 is further configured to compress the target data to obtain compression result information of the target data and information indicating a compression mode for the target data. The compression result information includes first compressed data of the target data, which corresponds to a compression mode. Transceiver module 1002 is configured to transmit first information. The first information includes the compression result information of the target data and information indicating a compression mode for the target data.

[0292] In one possible implementation, the first compressed data may be a first differential, and the compression result information includes information indicating the first data. The first data is data in a first data set corresponding to the target data, the first data set includes at least one data, and the first differential is the difference between the target data and the first data.

[0293] In a possible implementation, the compression mode of the target data is determined according to a first condition, wherein the first condition is determined according to the target data and predicted data of the target data obtained based on a prediction model.

[0294] In a possible implementation, the accuracy of the first compressed data is better than the accuracy of the second compressed data, wherein the second compressed data is determined based on the target data and the predicted data.

[0295] In a possible implementation, the compression mode of the target data is determined based on the range of the second difference, where the second difference is the difference between the target data and the predicted data.

[0296] In a possible implementation, the range of the second difference is determined according to a predicted difference threshold, and the predicted difference threshold is configured by the second device or agreed upon by a protocol.

[0297] In one possible implementation, if the second difference is less than or equal to a predicted difference threshold corresponding to the target data, the compression result information is determined based on the predicted data, and the first compressed data is the second difference. If the second difference is greater than the predicted difference threshold, the compression result information is determined based on the first data. The first compressed data is the first difference, and the compression result information includes information indicating the first data. The first data is data in a first data set corresponding to the target data, the first data set includes at least one data, and the first difference is the difference between the target data and the first data.

[0298] In a possible implementation, the first data may be data closest to the target data among all the data in the first data set.

[0299] In a possible implementation, the compression result information may further include the first data, or the compression result information may further include the first data and information indicating that the second data set is updated.

[0300] In a possible implementation, the compression result information may further include indication information of updating a second data set corresponding to the target data based on the first data.

[0301] In one possible implementation, the first data set is a data set obtained by replacing the first data with the second data in the second data set corresponding to the target data. The difference between the target data and the first data is less than or equal to a predicted difference threshold, and the difference between the target data and the second data is greater than the predicted difference threshold.

[0302] In a possible implementation, the second data may be data in the second data set that is closest to the target data.

[0303] In a possible implementation, the first data may be determined by the communication device 1000 according to the target data, or the first data may be determined by the communication device 1000 according to the target data and the second data.

[0304] In a possible implementation, the first data set may be one of the candidate data sets corresponding to the multiple groups, and the candidate data set is used to predict the data to be compressed.

[0305] In a possible implementation, the transceiver module 1002 is further configured to receive second information, wherein the second information is configured to indicate a plurality of groups and candidate data sets corresponding to the plurality of groups.

[0306] In a possible implementation, the second information is further used to indicate that: the multiple groups are configured by the second device, and the candidate data sets corresponding to the multiple groups are also configured by the second device.

[0307] In a possible implementation, the first information may further include: indication information of the candidate data set corresponding to the group where the target data is located, among the multiple groups.

[0308] In a possible implementation, the transceiver module 1002 is further configured to receive third information, where the third information is used to indicate multiple groups.

[0309] In one possible implementation, the transceiver module 1002 is further configured to send fourth information, wherein the fourth information is configured to indicate a candidate data set corresponding to each of the multiple groups, where the candidate data set corresponding to each of the multiple groups is determined by the communication device 1000 based on the multiple groups.

[0310] In a possible implementation, the third information is further used to indicate that: the multiple groups are configured by the second device, and the candidate data sets corresponding to the multiple groups are determined by the communication apparatus 1000.

[0311] In a possible implementation, the transceiver module 1002 is further configured to receive fifth information, wherein the fifth information is used to indicate that the plurality of groups are determined by the communication device 1000 and that the candidate data sets corresponding to the plurality of groups are determined by the communication device 1000.

[0312] In a possible implementation, the first data set is determined by the communication device 1000, and the transceiver module 1002 is further configured to send sixth information, where the sixth information is used to indicate the first data set.

[0313] In a possible implementation, the transceiver module 1002 is further configured to receive seventh information, wherein the seventh information is used to indicate the first data set.

[0314] Optionally, the transceiver module 1002 may include a receiving module and a sending module (not shown in FIG10 ). The transceiver module 1002 is used to implement the sending function and the receiving function of the communication device 1000 .

[0315] Optionally, the communication device 1000 may further include a storage module (not shown in FIG10 ) storing a program or instruction. When the processing module 1001 executes the program or instruction, the communication device 1000 may perform the function of the first device in any of the methods shown in FIG3 .

[0316] It should be understood that the processing module 1001 involved in the communication device 1000 can be implemented by a processor or a processor-related circuit component, which can be a processor or a processing unit; the transceiver module 1002 can be implemented by a transceiver or a transceiver-related circuit component, which can be a transceiver or a transceiver unit.

[0317] It should be noted that the communication device 1000 can be a terminal or a network device, or a chip (system) or other parts or components that can be set in a terminal or a network device, or a device that includes a terminal or a network device. This application does not limit this.

[0318] In addition, the technical effects of the communication device 1000 can refer to the technical effects of any method shown in Figure 3, and will not be repeated here.

[0319] In some other embodiments, the communication apparatus 1000 may be applicable to the communication system shown in FIG. 1 to perform the function of the second device in the method shown in FIG. 3 .

[0320] The transceiver module 1002 is configured to receive first information. The first information includes compression result information of the target data and information indicating the compression mode of the target data. The compression result information and the information indicating the compression mode of the target data are obtained by compressing the target data by the first device. The compression result information includes first compressed data of the target data, where the first compressed data corresponds to the compression mode. The processing module 1001 is configured to restore the target data based on the first information.

[0321] In one possible implementation, the first compressed data is a first difference, and the compression result information may include information indicating the first data. The first data is data in a first data set corresponding to the target data, the first data set includes at least one data, and the first difference is the difference between the target data and the first data.

[0322] In a possible implementation, the compression mode of the target data is determined according to a first condition, wherein the first condition is determined according to the target data and predicted data of the target data obtained based on a prediction model.

[0323] In a possible implementation, the accuracy of the first compressed data is better than the accuracy of the second compressed data, wherein the second compressed data is determined based on the target data and the predicted data.

[0324] In a possible implementation, the compression mode of the target data is determined based on the range of the second difference, where the second difference is the difference between the target data and the predicted data.

[0325] In one possible implementation, the range of the second difference is determined based on a predicted difference threshold, which is configured by the communication device 1000 or agreed upon by a protocol.

[0326] In one possible implementation, if the second difference is less than or equal to a predicted difference threshold corresponding to the target data, the compression result information is determined based on the predicted data, and the first compressed data is the second difference. If the second difference is greater than the predicted difference threshold, the compression result information is determined based on the first data. The first compressed data is the first difference, and the compression result information includes information indicating the first data. The first data is data in a first data set corresponding to the target data, the first data set includes at least one data, and the first difference is the difference between the target data and the first data.

[0327] In a possible implementation, the first data may be data closest to the target data among all the data in the first data set.

[0328] In a possible implementation, the compression result information further includes the first data, or the compression result information further includes the first data and information indicating that the second data set is updated.

[0329] In a possible implementation, the compression result information further includes indication information of updating a second data set corresponding to the target data based on the first data.

[0330] In one possible implementation, the first data set is a data set obtained by replacing the first data with the second data in the second data set corresponding to the target data. The difference between the target data and the first data is less than or equal to a predicted difference threshold, and the difference between the target data and the second data is greater than the predicted difference threshold.

[0331] In a possible implementation, the second data may be data in the second data set that is closest to the target data.

[0332] In a possible implementation, the first data may be determined by the first device according to the target data, or the first data may be determined by the first device according to the target data and the second data.

[0333] In a possible implementation, the first data set may be one of the candidate data sets corresponding to the multiple groups, and the candidate data set is used to predict the data to be compressed.

[0334] In a possible implementation, the transceiver module 1002 is further configured to send second information, wherein the second information is configured to indicate a plurality of groups and candidate data sets corresponding to the plurality of groups.

[0335] In a possible implementation, the second information is further used to indicate that: the multiple groups are configured by the communication apparatus 1000 , and the candidate data sets corresponding to the multiple groups are configured by the communication apparatus 1000 .

[0336] In a possible implementation, the first information may further include: indication information of the candidate data set corresponding to the group where the target data is located, among the multiple groups.

[0337] In a possible implementation, the transceiver module 1002 is further configured to send third information, wherein the third information is used to indicate multiple groups.

[0338] In one possible implementation, the transceiver module 1002 is further configured to receive fourth information, wherein the fourth information is configured to indicate a candidate data set corresponding to each of the multiple groups, where the candidate data set corresponding to each of the multiple groups is determined by the first device based on the multiple groups.

[0339] In a possible implementation, the third information is further used to indicate that: the multiple groups are configured by the communication apparatus 1000, and the candidate data sets corresponding to the multiple groups are configured by the first device.

[0340] In a possible implementation, the transceiver module 1002 is further configured to send fifth information, wherein the fifth information is used to indicate that the plurality of groups are determined by the first device, and that the candidate data sets corresponding to the plurality of groups are determined by the first device.

[0341] In a possible implementation, the first data set is determined by the first device, and the transceiver module 1002 is further configured to receive sixth information, where the sixth information is used to indicate the first data set.

[0342] In a possible implementation, the transceiver module 1002 is further configured to send seventh information, wherein the seventh information is used to indicate the first data set.

[0343] Optionally, the transceiver module 1002 may include a receiving module and a sending module (not shown in FIG10 ). The transceiver module 1002 is used to implement the sending function and the receiving function of the communication device 1000 .

[0344] Optionally, the communication device 1000 may further include a storage module (not shown in FIG10 ) storing a program or instruction. When the processing module 1001 executes the program or instruction, the communication device 1000 may perform the function of the second device in any of the methods shown in FIG3 .

[0345] It should be understood that the processing module 1001 involved in the communication device 1000 can be implemented by a processor or a processor-related circuit component, which can be a processor or a processing unit; the transceiver module 1002 can be implemented by a transceiver or a transceiver-related circuit component, which can be a transceiver or a transceiver unit.

[0346] It should be noted that the communication device 1000 can be a terminal or a network device, or a chip (system) or other parts or components that can be set in a terminal or a network device, or a device that includes a terminal or a network device. This application does not limit this.

[0347] In addition, the technical effects of the communication device 1000 can refer to the technical effects of any method shown in Figure 3, and will not be repeated here.

[0348] In some other embodiments, the communication apparatus 1000 may be applicable to the communication system shown in FIG. 1 to perform the function of the first device in the method shown in FIG. 9 .

[0349] Processing module 1001 is configured to obtain target data to be compressed. Processing module 1001 is further configured to compress the target data to obtain compression result information of the target data. The compression result information includes first compressed data and information indicating the first data. The first data is data in a first data set corresponding to the target data, the first data set including at least one data, and the first compressed data is determined based on the target data and the first data. Transceiver module 1002 is configured to transmit first information. The first information includes compression result information of the target data.

[0350] In a possible implementation, the first compressed data is a first difference, which is a difference between the target data and the first data.

[0351] In a possible implementation, the first data may be data closest to the target data among all the data in the first data set.

[0352] In a possible implementation, the compression result information may further include the first data, or the compression result information may further include the first data and information indicating that the second data set is updated.

[0353] In a possible implementation, the compression result information may further include indication information of updating a second data set corresponding to the target data based on the first data.

[0354] In one possible implementation, the first data set is a data set obtained by replacing the first data with the second data in the second data set corresponding to the target data. The difference between the target data and the first data is less than or equal to a predicted difference threshold, and the difference between the target data and the second data is greater than the predicted difference threshold.

[0355] In a possible implementation, the second data may be data in the second data set that is closest to the target data.

[0356] In a possible implementation, the first data may be determined by the communication device 1000 according to the target data, or the first data may be determined by the communication device 1000 according to the target data and the second data.

[0357] In a possible implementation, the first data set may be one of the candidate data sets corresponding to the multiple groups, and the candidate data set is used to predict the data to be compressed.

[0358] In a possible implementation, the transceiver module 1002 is further configured to receive second information, wherein the second information is configured to indicate a plurality of groups and candidate data sets corresponding to the plurality of groups.

[0359] In a possible implementation, the second information is further used to indicate that: the multiple groups are configured by the second device, and the candidate data sets corresponding to the multiple groups are also configured by the second device.

[0360] In a possible implementation, the first information may further include: indication information of the candidate data set corresponding to the group where the target data is located, among the multiple groups.

[0361] In a possible implementation, the transceiver module 1002 is further configured to receive third information, where the third information is used to indicate multiple groups.

[0362] In one possible implementation, the transceiver module 1002 is further configured to send fourth information, wherein the fourth information is configured to indicate a candidate data set corresponding to each of the multiple groups, where the candidate data set corresponding to each of the multiple groups is determined by the communication device 1000 based on the multiple groups.

[0363] In a possible implementation, the third information is further used to indicate that: the multiple groups are configured by the second device, and the candidate data sets corresponding to the multiple groups are determined by the communication apparatus 1000.

[0364] In a possible implementation, the transceiver module 1002 is further configured to receive fifth information, wherein the fifth information is used to indicate that the plurality of groups are determined by the communication device 1000 and that the candidate data sets corresponding to the plurality of groups are determined by the communication device 1000.

[0365] In a possible implementation, the first data set is determined by the communication device 1000, and the transceiver module 1002 is further configured to send sixth information, where the sixth information is used to indicate the first data set.

[0366] In a possible implementation, the transceiver module 1002 is further configured to receive seventh information, wherein the seventh information is used to indicate the first data set.

[0367] Optionally, the transceiver module 1002 may include a receiving module and a sending module (not shown in FIG10 ). The transceiver module 1002 is used to implement the sending function and the receiving function of the communication device 1000 .

[0368] Optionally, the communication device 1000 may further include a storage module (not shown in FIG10 ) storing a program or instruction. When the processing module 1001 executes the program or instruction, the communication device 1000 may perform the function of the first device in any of the methods shown in FIG9 .

[0369] It should be understood that the processing module 1001 involved in the communication device 1000 can be implemented by a processor or a processor-related circuit component, which can be a processor or a processing unit; the transceiver module 1002 can be implemented by a transceiver or a transceiver-related circuit component, which can be a transceiver or a transceiver unit.

[0370] It should be noted that the communication device 1000 can be a terminal or a network device, or a chip (system) or other parts or components that can be set in a terminal or a network device, or a device that includes a terminal or a network device. This application does not limit this.

[0371] In addition, the technical effects of the communication device 1000 can refer to the technical effects of any method shown in Figure 9, and will not be repeated here.

[0372] In some other embodiments, the communication apparatus 1000 may be applicable to the communication system shown in FIG. 1 to perform the function of the second device in the method shown in FIG. 9 .

[0373] The transceiver module 1002 is configured to receive first information. The first information includes compression result information of target data. The compression result information includes first compressed data and information indicating the first data. The first data is data in a first data set corresponding to the target data, the first data set including at least one data, and the first compressed data is determined based on the target data and the first data. The processing module 1001 is configured to restore the target data based on the first information.

[0374] In a possible implementation, the first compressed data is a first difference, which is a difference between the target data and the first data.

[0375] In a possible implementation, the first data may be data closest to the target data among all the data in the first data set.

[0376] In a possible implementation, the compression result information may further include the first data, or the compression result information may further include the first data and information indicating that the second data set is updated.

[0377] In a possible implementation, the compression result information may further include indication information of updating a second data set corresponding to the target data based on the first data.

[0378] In one possible implementation, the first data set is a data set obtained by replacing the first data with the second data in the second data set corresponding to the target data. The difference between the target data and the first data is less than or equal to a predicted difference threshold, and the difference between the target data and the second data is greater than the predicted difference threshold.

[0379] In a possible implementation, the second data may be data in the second data set that is closest to the target data.

[0380] In a possible implementation, the first data may be determined by the first device according to the target data, or the first data may be determined by the first device according to the target data and the second data.

[0381] In a possible implementation, the first data set may be one of the candidate data sets corresponding to the multiple groups, and the candidate data set is used to predict the data to be compressed.

[0382] In a possible implementation, the transceiver module 1002 is further configured to send second information, wherein the second information is configured to indicate a plurality of groups and candidate data sets corresponding to the plurality of groups.

[0383] In a possible implementation, the second information is further used to indicate that: the multiple groups are configured by the communication apparatus 1000 , and the candidate data sets corresponding to the multiple groups are configured by the communication apparatus 1000 .

[0384] In a possible implementation, the first information may further include: indication information of the candidate data set corresponding to the group where the target data is located, among the multiple groups.

[0385] In a possible implementation, the transceiver module 1002 is further configured to send third information, wherein the third information is used to indicate multiple groups.

[0386] In one possible implementation, the transceiver module 1002 is further configured to receive fourth information, wherein the fourth information is configured to indicate a candidate data set corresponding to each of the multiple groups, where the candidate data set corresponding to each of the multiple groups is determined by the first device based on the multiple groups.

[0387] In a possible implementation, the third information is further used to indicate that: the multiple groups are configured by the communication apparatus 1000, and the candidate data sets corresponding to the multiple groups are determined by the first device.

[0388] In a possible implementation, the transceiver module 1002 is further configured to send fifth information, wherein the fifth information is used to indicate that the plurality of groups are determined by the first device, and that the candidate data sets corresponding to the plurality of groups are determined by the first device.

[0389] In a possible implementation, the first data set is determined by the first device, and the transceiver module 1002 is further configured to receive sixth information indicating the first data set.

[0390] In a possible implementation, the transceiver module 1002 is further configured to send seventh information, wherein the seventh information is used to indicate the first data set.

[0391] Optionally, the transceiver module 1002 may include a receiving module and a sending module (not shown in FIG10 ). The transceiver module 1002 is used to implement the sending function and the receiving function of the communication device 1000 .

[0392] Optionally, the communication device 1000 may further include a storage module (not shown in FIG10 ) storing a program or instruction. When the processing module 1001 executes the program or instruction, the communication device 1000 may perform the function of the second device in any of the methods shown in FIG9 .

[0393] It should be understood that the processing module 1001 involved in the communication device 1000 can be implemented by a processor or a processor-related circuit component, which can be a processor or a processing unit; the transceiver module 1002 can be implemented by a transceiver or a transceiver-related circuit component, which can be a transceiver or a transceiver unit.

[0394] It should be noted that the communication device 1000 can be a terminal or a network device, or a chip (system) or other parts or components that can be set in a terminal or a network device, or a device that includes a terminal or a network device. This application does not limit this.

[0395] In addition, the technical effects of the communication device 1000 can refer to the technical effects of any method shown in Figure 9, and will not be repeated here.

[0396] For example, FIG11 is a second structural diagram of a communication device provided in an embodiment of the present application. The communication device may be a terminal or a network device, or a chip (system) or other component or assembly that can be provided in a terminal or a network device. As shown in FIG11 , the communication device 1100 may include a processor 1101. Optionally, the communication device 1100 may further include a memory 1102 and / or a transceiver 1103. The processor 1101 is coupled to the memory 1102 and the transceiver 1103, such as by a communication bus.

[0397] The following is a detailed introduction to the various components of the communication device 1100 with reference to FIG11 :

[0398] The processor 1101 is the control center of the communication device 1100 and can be a single processor or a collective term for multiple processing elements. For example, the processor 1101 can be one or more central processing units (CPUs), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, such as one or more digital signal processors (DSPs) or one or more field programmable gate arrays (FPGAs).

[0399] Optionally, the processor 1101 may execute various functions of the communication device 1100 by running or executing a software program stored in the memory 1102 and calling data stored in the memory 1102 .

[0400] In a specific implementation, as an embodiment, the processor 1101 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG11 .

[0401] In a specific implementation, as an embodiment, the communication device 1100 may also include multiple processors, such as the processor 1101 and the processor 1104 shown in FIG11 . Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0402] Optionally, the memory 1102 may be integrated with the processor (eg, 1101 ).

[0403] Among them, the memory 1102 is used to store the software program for executing the solution of this application, and the execution is controlled by the processor 1101. The specific implementation method can refer to the above method embodiment and will not be repeated here.

[0404] Alternatively, the memory 1102 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1102 may be integrated with the processor 1101 or exist independently and be coupled to the processor 1101 via an interface circuit (not shown in FIG. 11 ) of the communication device 1100, which is not specifically limited in this embodiment of the present application.

[0405] The transceiver 1103 is used to communicate with other communication devices and can be an input / output interface or a communication interface. The transceiver can be an input / output interface, interface circuit, output circuit, input circuit, pin, or related circuit on a chip, chip system, or circuit.

[0406] Optionally, the transceiver 1103 may include a receiver and a transmitter (not shown separately in FIG11 ), wherein the receiver is used to implement a receiving function, and the transmitter is used to implement a transmitting function.

[0407] Optionally, the transceiver 1103 may be integrated with the processor 1101 or exist independently.

[0408] It should be noted that the structure of the communication device 1100 shown in FIG11 does not constitute a limitation on the communication device. An actual communication device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0409] In addition, the technical effects of the communication device 1000 can refer to the technical effects of the methods described in the above method embodiments, and will not be repeated here.

[0410] It should be understood that the processor in the embodiments of the present application may be a CPU, but may also be other general-purpose processors, DSPs, ASICs, FPGAs or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0411] It should also be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a ROM, a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an EEPROM, or a flash memory. The volatile memory can be a RAM, which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).

[0412] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (such as infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state drive.

[0413] It should be understood that the term "and / or" as used herein simply describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A alone, A and B together, or B alone. A and B can be singular or plural. Furthermore, the character " / " as used herein generally indicates an "or" relationship between the associated objects, but it may also indicate an "and / or" relationship. For specific understanding, please refer to the context.

[0414] In this application, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or plural.

[0415] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0416] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0417] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0418] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0419] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0420] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0421] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

Claims

1. A data compression method, characterized in that, Applied to a first device, the method includes: Obtain target data to be compressed; Compress the target data to obtain compression result information of the target data and indication information of a compression mode of the target data; the compression result information includes first compressed data of the target data, and the first compressed data corresponds to the compression mode; Send first information; the first information includes the compression result information of the target data and the indication information of the compression mode of the target data.

2. The method according to claim 1, characterized in that, The first compressed data is a first difference, and the compression result information includes indication information of first data; wherein, the first data is data in a first data set corresponding to the target data, the first data set includes at least one piece of data, and the first difference is the difference between the target data and the first data.

3. The method according to claim 1 or 2, characterized in that, The compression mode of the target data is determined according to a first condition, and the first condition is determined according to the target data and predicted data of the target data obtained based on a prediction model.

4. The method according to claim 3, characterized in that, The accuracy of the first compressed data is better than the accuracy of second compressed data; wherein, the second compressed data is determined according to the target data and the predicted data.

5. The method according to claim 3, wherein The compression mode of the target data is determined according to a range of a second difference; wherein, the second difference is the difference between the target data and the predicted data.

6. The method according to claim 5, wherein The range of the second difference is determined according to a predicted difference threshold, and the predicted difference threshold is configured by a second device or agreed upon by a protocol.

7. The method according to claim 5 or 6, wherein If the second difference is less than or equal to the predicted difference threshold corresponding to the target data, the compression result information is determined according to the predicted data, and the first compressed data is the second difference; If the second difference is greater than the predicted difference threshold, the compression result information is determined according to first data; the first compressed data is a first difference, and the compression result information includes indication information for indicating the first data; wherein, the first data is data in a first data set corresponding to the target data, the first data set includes at least one piece of data, and the first difference is the difference between the target data and the first data.

8. The method according to claim 7, wherein The first data is the data in the first data set that is closest to the target data.

9. The method according to claim 7 or 8, wherein The compression result information further includes the first data, or The compression result information further includes the first data and information for indicating that a second data set has been updated.

10. The method according to claim 7, characterized in that, The first data set is a data set obtained by replacing second data in a second data set corresponding to the target data with the first data; the difference between the target data and the first data is less than or equal to the predicted difference threshold, and the difference between the target data and the second data is greater than the predicted difference threshold.

11. The method according to claim 10, wherein, The second data is the data in the second data set that is closest to the target data.

12. The method according to claim 10 or 11, characterized in that, The first data is determined by the first device according to the target data, or the first data is determined by the first device according to the target data and the second data.

13. The method according to claim 2, or 7, or 8, characterized in that The first data set is one of the candidate data sets corresponding to multiple groups respectively, and the candidate data sets are used to predict the data to be compressed.

14. The method according to claim 13, characterized in that, The method further includes: Receiving second information, where the second information is used to indicate the multiple groups and the candidate data sets corresponding to the multiple groups respectively.

15. The method according to claim 14, wherein The first information further includes: indication information used to indicate the candidate data set corresponding to the group where the target data is located among the multiple groups.

16. The method according to claim 13, wherein The method further includes: Receiving third information; the third information is used to indicate the multiple groups.

17. The method according to claim 16, wherein The method further includes: sending fourth information; wherein, the fourth information is used to indicate the candidate data set corresponding to each of the multiple groups, and the candidate data set corresponding to each of the multiple groups is determined by the first device according to the multiple groups.

18. The method according to claim 13, wherein The method further includes: Receiving fifth information, where the fifth information is used to indicate that the multiple groups are determined by the first device and the candidate data sets corresponding to the multiple groups are determined by the first device.

19. A data decompression method, characterized in that, Applied to a second device, the method includes: Receiving first information; the first information includes compression result information of the target data and indication information of the compression mode of the target data; the compression result information and the indication information of the compression mode of the target data are obtained by the first device by compressing the target data; the compression result information includes first compressed data of the target data, and the first compressed data corresponds to the compression mode; Restoring the target data according to the first information.

20. The method according to claim 19, wherein The first compressed data is a first difference, and the compression result information includes indication information of first data; wherein, the first data is data in the first data set corresponding to the target data, the first data set includes at least one data, and the first difference is the difference between the target data and the first data.

21. The method according to claim 19 or 20, characterized in that, The compression mode of the target data is determined according to a first condition, and the first condition is determined according to the target data and the predicted data of the target data obtained based on a prediction model.

22. The method according to claim 21, wherein The accuracy of the first compressed data is better than the accuracy of the second compressed data; wherein, the second compressed data is determined according to the target data and the predicted data.

23. The method according to claim 21, wherein The compression mode of the target data is determined according to the range of a second difference; wherein, the second difference is the difference between the target data and the predicted data.

24. The method according to claim 23, wherein The range of the second difference is determined according to a predicted difference threshold, and the predicted difference threshold is configured by the second device or agreed upon by a protocol.

25. The method according to claim 23 or 24, characterized in that, If the second difference is less than or equal to the predicted difference threshold corresponding to the target data, the compression result information is determined according to the predicted data, and the first compressed data is the second difference; If the second difference is greater than the predicted difference threshold, the compression result information is determined based on the first data; the first compressed data is the first difference, and the compression result information includes indication information for indicating the first data; wherein, the first data is data in a first data set corresponding to the target data, the first data set includes at least one data, and the first difference is the difference between the target data and the first data.

26. The method according to claim 25, wherein The first data is the data in all the data of the first data set that is closest to the target data.

27. The method according to claim 25 or 26, characterized in that, The compression result information further includes the first data, or, The compression result information further includes the first data and information for indicating that the second data set has been updated.

28. The method according to claim 25, characterized in that, The first data set is a data set obtained by replacing the second data in a second data set corresponding to the target data with the first data; the difference between the target data and the first data is less than or equal to the predicted difference threshold, and the difference between the target data and the second data is greater than the predicted difference threshold.

29. The method according to claim 28, wherein The second data is the data in the second data set that is closest to the target data.

30. The method according to claim 28 or 29, characterized in that, The first data is determined by the first device according to the target data, or, the first data is determined by the first device according to the target data and the second data.

31. The method according to claim 20, or 25, or 26, characterized in that, The first data set is one of the candidate data sets corresponding to multiple groups respectively, and the candidate data sets are used to predict the data to be compressed.

32. The method according to claim 31, wherein The method further includes: Sending second information, where the second information is used to indicate the multiple groups and the candidate data sets corresponding to the multiple groups respectively.

33. The method according to claim 32, wherein The first information further includes: indication information for indicating the candidate data set corresponding to the group where the target data is located among the multiple groups.

34. The method according to claim 32, wherein The method further includes: Sending third information; the third information is used to indicate the multiple groups.

35. The method according to claim 34, wherein The method further includes: Receiving fourth information, where the fourth information is used to indicate the candidate data set corresponding to each of the multiple groups, and the candidate data set corresponding to each of the multiple groups is determined by the first device according to the multiple groups.

36. The method according to claim 31, characterized in that, The method further includes: Sending fifth information, where the fifth information is used to indicate that the multiple groups are determined by the first device and the candidate data sets corresponding to the multiple groups are determined by the first device.

37. A communication device, characterized in that, Including: A processor; The processor is used to be coupled with a memory, and after reading instructions in the memory, to implement the data compression method according to any one of claims 1-18, or to implement the data decompression method according to any one of claims 19-36.

38. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program or instructions, and when the computer program or instructions run on a computer, it causes the data compression method according to any one of claims 1-18 to be implemented, or causes the data decompression method according to any one of claims 19-36 to be implemented.

39. A computer program product, characterized in that, The computer program product includes: a computer program or instructions which, when run on a computer, cause the data compression method according to any one of claims 1-18 to be implemented, or cause the data decompression method according to any one of claims 19-36 to be implemented.

40. A communication system, characterized in that, The communication system includes a first device and a second device, wherein the first device is configured to implement the data compression method according to any one of claims 1-18, and the second device is configured to implement the data decompression method according to any one of claims 19-36.

Citation Information

Patent Citations

  • Data compression method and communication device

    CN120238954A

  • Data compression method and decompression method

    CN109634529A

  • Data compression transmission method, device and system and electronic equipment

    CN116668549A