Respiratory flow rate data processing method and system, computer device

By using methods such as integerization, differential processing, flag addition, and Delta-Delta compression coding, respiratory flow data is compressed, solving the data storage requirement problem and achieving more efficient data storage and resource utilization.

CN116155299BActive Publication Date: 2026-06-05RESVENT MEDICAL TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
RESVENT MEDICAL TECH CO LTD
Filing Date
2022-12-29
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

As the scale of respiratory flow data grows, existing technologies struggle to effectively reduce storage requirements, leading to increased system resource consumption and costs.

Method used

Respiratory flow data is compressed by using methods such as integerization, differential processing, flag addition, absolute value processing, and Delta-Delta compression coding to reduce the number of sign bits in data storage.

Benefits of technology

It improves the compression efficiency of respiratory flow data, reduces storage requirements, and lowers system resource consumption and costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116155299B_ABST
    Figure CN116155299B_ABST
Patent Text Reader

Abstract

The application provides a processing method of respiratory flow data, comprising: performing integer processing on initial flow data to obtain integer flow data; performing difference processing on the integer flow data to obtain difference flow data, the difference flow data comprising a plurality of difference values arranged in sequence, the difference values comprising zero, positive values and negative values; adding a flag value before a difference value which is a positive value or zero when a previous difference value of the difference value is a negative value, or adding a flag value before a difference value which is a negative value when a previous difference value of the difference value is a positive value or zero; performing absolute value processing on the difference values to obtain absolute values; and encoding the flag values and the absolute values to obtain encoded flow data. The processing method of respiratory flow data provided by the application can effectively improve the compression efficiency of respiratory flow data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of ventilator technology, and in particular to a method and system for processing respiratory flow data, and a computer device. Background Technology

[0002] Time-series data is a common type of data exhibiting specific patterns. It includes collections of measurements acquired at equal time intervals, such as respiratory flow data collected by a ventilator. In recent years, with the rapid development of medical technology, more and more people have become aware of the dangers of respiratory diseases. Ventilators, as medical devices for treating some respiratory diseases, have wide applications. Therefore, the scale of respiratory flow data as time-series data has experienced explosive growth. However, the ever-increasing volume of respiratory flow data requires substantial storage capacity to meet the data storage demands. Larger and more extensive storage capacities will consume greater system expenditures and energy resources, resulting in a significant cost burden. Summary of the Invention

[0003] In view of this, it is necessary to provide a method and system for processing respiratory flow data, as well as computer equipment, which can effectively improve the compression efficiency of respiratory flow data.

[0004] In a first aspect, embodiments of this application provide a method for processing respiratory flow data, the method comprising:

[0005] The initial traffic data is integerized to obtain integer traffic data.

[0006] The integer flow data is differentially processed to obtain differential flow data, which includes several differential values ​​arranged in order, including zero, positive and negative values.

[0007] When the difference value is positive or zero, and the preceding difference value is negative, a flag value is added before the difference value that is positive or zero; or when the difference value is negative, and the preceding difference value is positive or zero, a flag value is added before the difference value that is negative.

[0008] The absolute values ​​of the difference values ​​are processed to obtain absolute values; and

[0009] The flag value and the absolute value are encoded to obtain encoded traffic data.

[0010] Secondly, embodiments of this application provide a computer device, the computer device comprising:

[0011] Memory, used to store program instructions; and

[0012] A processor is used to execute the program instructions to implement the respiratory flow data processing method described above.

[0013] Thirdly, embodiments of this application provide a respiratory flow data processing system, the respiratory flow data processing system comprising:

[0014] The integer processing module is used to convert the initial traffic data into integers to obtain integer traffic data.

[0015] The differential processing module is used to perform differential processing on the integer flow data to obtain differential flow data. The differential flow data includes a number of differential values ​​arranged in order, and the differential values ​​include zero, positive values ​​and negative values.

[0016] An add module is used to add a flag value before the difference value that is positive or zero when the difference value is positive or zero and the previous difference value is negative, or to add a flag value before the difference value that is negative when the difference value is negative and the previous difference value is positive or zero.

[0017] An absolute value processing module is used to perform absolute value processing on the difference values ​​to obtain absolute values; and

[0018] The encoding module is used to encode the flag value and the absolute value to obtain encoded traffic data.

[0019] The aforementioned method, system, and computer equipment for processing respiratory flow data first integerizes the initial flow data to obtain integer flow data. The first two integer values ​​of the integer flow data sequence remain unchanged, while the remaining integer values ​​undergo a second-order difference operation to form differential flow data. Based on the periodic and monotonic nature of respiratory flow data—that is, the sign of the difference values ​​changes periodically—a set flag value is used to represent the sign change of adjacent difference values. This allows subsequent difference values ​​with the same sign to be ignored, thereby reducing the number of sign bits in the data storage. Finally, using Delta-Delta compression coding, the differential flow data is encoded and compressed to obtain encoded flow data, thus completing the compression of the initial flow data and obtaining encoded flow data with higher compression efficiency. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.

[0021] Figure 1 A flowchart illustrating a method for processing respiratory flow data provided in an embodiment of this application.

[0022] Figure 2 This is a first sub-flowchart of the method for processing respiratory flow data provided in an embodiment of this application.

[0023] Figure 3 This is a second sub-flowchart of the respiratory flow data processing method provided in the embodiments of this application.

[0024] Figure 4 This is a third sub-flowchart of the respiratory flow data processing method provided in the embodiments of this application.

[0025] Figure 5 The fourth sub-flowchart of the respiratory flow data processing method provided in the embodiments of this application.

[0026] Figure 6 The fifth sub-flowchart of the respiratory flow data processing method provided in the embodiments of this application.

[0027] Figure 7 This is a schematic diagram illustrating an application scenario of the respiratory flow data processing method provided in the embodiments of this application.

[0028] Figure 8 for Figure 1 The time series diagram of the initial flow data is shown.

[0029] Figure 9 for Figure 1 The time series diagram of the differential flow data is shown.

[0030] Figure 10 for Figure 6 The table showing the number of bits in the encoded traffic data is shown.

[0031] Figure 11 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of this application.

[0032] Figure 12 A schematic diagram of the internal structure of the respiratory flow data processing system provided in the embodiments of this application.

[0033] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0034] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0035] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar planned objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data are interchangeable where appropriate; in other words, the described embodiments are implemented according to a sequence other than that illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, may also include other content; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0036] It should be noted that the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, features defined with "first" and "second" may explicitly or implicitly include one or more of that feature. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed in this application.

[0037] Please refer to the following: Figure 1 and Figure 7 , Figure 1 This is a flowchart of a method for processing respiratory flow data provided in an embodiment of this application. Figure 7 This diagram illustrates an application scenario of the respiratory flow data processing method provided in this embodiment. The respiratory flow data processing method is applied to ventilation therapy equipment such as ventilators to process the respiratory flow data generated by the equipment, thereby compressing the respiratory flow data.

[0038] by Figure 7Taking the illustrated application scenario as an example, the processing platform 30 is used to execute a method for processing respiratory flow data. In this embodiment, the processing platform 30 is communicatively or electrically connected to the ventilation therapy device. The relevant functions of the processing platform 30 can be implemented by a single device, multiple devices working together, or one or more functional modules within a single device; no specific limitations are made here. It is understood that the aforementioned functions can be network elements within hardware devices, software functions running on dedicated hardware, a combination of hardware and software, or virtualization functions instantiated on a platform (e.g., a cloud platform).

[0039] The specific steps involved in processing respiratory flow data are as follows.

[0040] Step S102: Integerize the initial traffic data to obtain integer traffic data.

[0041] The processing platform 30 receives initial flow data from the ventilation therapy device. This initial flow data is time-series data, exhibiting periodic and monotonic characteristics, such as... Figure 8 As shown. In this embodiment, the initial traffic data includes several initial values ​​arranged in sequence. It can be understood that the initial values ​​are arranged in chronological order to form the initial traffic data.

[0042] After receiving the initial flow data from the ventilation therapy device, the processing platform 30 performs integerization on the initial flow data to obtain integer flow data. The integer flow data consists of several integer values. Correspondingly, these integer values ​​are arranged sequentially, that is, in chronological order.

[0043] The specific process of converting the initial traffic data to integers to obtain integer traffic data will be described in detail below.

[0044] Step S104: Differential processing is performed on the integer flow data to obtain differential flow data.

[0045] The processing platform 30 performs differential processing on the integer traffic data to obtain differential traffic data. The differential traffic data includes several differential values. Correspondingly, these differential values ​​are arranged sequentially, i.e., in chronological order. In this embodiment, the differential values ​​include zero, positive, and negative values. Because the differential values ​​have signs, a sign bit is required for data storage to distinguish between positive and negative numbers.

[0046] The differential processing of integer flow data to obtain differential flow data specifically includes: the processing platform 30 calculates the second-order difference of the integer values ​​to obtain the differential values. Preferably, the processing platform 30 calculates the differential values ​​starting from the third integer value of the integer flow data. Specifically, the processing platform 30 saves the first two integer values ​​of the integer flow data as their original values, and starting from the third integer value, replaces the third integer value and all subsequent integer values ​​with the second-order difference values ​​to obtain the differential values. That is, the first two integer values ​​of the integer flow data are not processed, and the corresponding differential values ​​are calculated starting from the third integer value to form the differential flow data.

[0047] In this embodiment, the processing platform 30 calculates the difference value according to the difference calculation formula. Specifically, the difference calculation formula is: D = (t n -t n-1 )-(t n-1 -t n-2 Where D represents the difference value, t n-2 t n-1 t n It represents three consecutive integer values ​​arranged in chronological order.

[0048] Because the initial flow data has a periodic and monotonic characteristic, the processed differential flow data also has a periodic and monotonic characteristic. For example... Figure 9 As shown, some of the difference values ​​are negative and are consecutive in time, while some of the difference values ​​are positive and are consecutive in time, with consecutive negative and consecutive positive values ​​alternating.

[0049] Step S106: When the difference value is positive or zero and the previous difference value is negative, add a flag value before the difference value that is positive or zero; or when the difference value is negative and the previous difference value is positive or zero, add a flag value before the difference value that is negative.

[0050] The processing platform 30 judges the continuity of the difference values. When the difference value preceding a positive or zero difference value is a negative value, a flag value is added before the positive or zero difference value, that is, a flag value is added after the negative difference value.

[0051] Step S108: Perform absolute value processing on the difference values ​​to obtain the absolute values.

[0052] The processing platform 30 performs absolute value processing on all differential values ​​to obtain absolute values. In this embodiment, the processing platform 30 removes the negative sign from negative differential values, thereby subtracting a sign bit from the negative value to obtain the absolute value of the negative differential value; similarly, it removes the positive sign from positive differential values, thereby subtracting a sign bit from the positive value to obtain the absolute value of the positive differential value. It is understood that the processed differential flow data currently includes both zero and absolute values. That is, all values ​​in the processed differential flow data are non-negative, and all values ​​do not include a sign.

[0053] Step S110: Encode the flag value and absolute value to obtain encoded traffic data.

[0054] The processing platform 30 encodes the flag value and the absolute value respectively to obtain encoded traffic data. The encoded traffic data includes several encoded values. Correspondingly, the encoded values ​​are arranged sequentially, that is, in chronological order. In this embodiment, the processing platform 30 encodes the flag value and the absolute value using Delta-Delta compression encoding to obtain the corresponding encoded values, thereby forming the encoded traffic data.

[0055] After obtaining the encoded traffic data, the processing platform 30 can store the encoded traffic data in the corresponding database.

[0056] The specific process of encoding the flag values ​​and absolute values ​​to obtain encoded traffic data will be described in detail below.

[0057] In the above embodiments, the initial flow data is first integerized to obtain integer flow data. The first two integer values ​​of the integer flow data sequence remain unchanged, while the other integer values ​​undergo a second-order difference operation to form differential flow data. Based on the periodic monotonicity of respiratory flow data—that is, the sign of the difference values ​​changes periodically—a set flag value is used to represent the sign change of adjacent difference values. This allows subsequent difference values ​​with the same sign to be ignored, thereby reducing the number of sign bits in data storage. Finally, using Delta-Delta compression coding, the differential flow data is encoded and compressed to obtain encoded flow data, thus completing the compression of the initial flow data and obtaining encoded flow data with higher compression efficiency.

[0058] Since a series of consecutive positive or negative values ​​share the same sign, when a difference value changes from positive to negative, or vice versa, a flag value can be used to indicate the change, replacing the positive sign of consecutive positive values ​​or the negative sign of consecutive negative values. This eliminates the need for the sign bit in subsequent difference values, reducing the number of bits required for data storage and ensuring that all encoded values ​​are either 0 or positive. By processing the sign bit of traffic data and using Delta-Delta compression coding, a higher data compression ratio can be achieved, making it well-suited for periodically monotonic data.

[0059] Please refer to the following: Figure 2 This is a first sub-flowchart of the respiratory flow data processing method provided in the embodiments of this application. Step S102 specifically includes the following steps.

[0060] Step S202: Obtain accuracy requirement information.

[0061] The processing platform 30 acquires precision requirement information. In this embodiment, the precision requirement information includes the number of decimal places. The number of decimal places indicates the number of digits after the decimal point that the initial value needs to retain. For example, if the number of decimal places is 1, the initial value can retain 1 significant decimal place; if the number of decimal places is 2, the initial value can retain 2 significant decimal places. The specific number of decimal places can be set according to actual needs and is not limited here.

[0062] Step S204: Multiply each initial value in the initial flow data by the corresponding multiple according to the number of decimal places to obtain the corresponding integer value.

[0063] The processing platform 30 multiplies each initial value by a corresponding factor based on the number of decimal places, and then rounds it to the nearest integer value. In this embodiment, the multiplier is 10 to the power of n, where n is equal to the number of decimal places. For example, if there are 1 decimal place, the initial value is multiplied by 10 and rounded; if there are 2 decimal places, the initial value is multiplied by 100 and rounded.

[0064] In the above embodiments, the initial flow data to be compressed is integerized according to the accuracy requirements to generate integer flow data, which facilitates subsequent processing.

[0065] Please refer to the following: Figure 3 and Figure 4 , Figure 3 This is a second sub-flowchart of the respiratory flow data processing method provided in the embodiments of this application. Figure 4This is a third sub-flowchart of the respiratory flow data processing method provided in the embodiments of this application. Step S110 specifically includes the following steps.

[0066] Step S302: Set the encoded value corresponding to the absolute value that is zero to 0.

[0067] Processing platform 30 sets the encoded value of absolute values ​​that are zero to 0.

[0068] Step S304: Set the code value corresponding to the flag value to a preset value.

[0069] The processing platform 30 sets the encoded value corresponding to the flag value to a preset value. In this embodiment, the preset value is 10000000. In some feasible embodiments, the preset value can be set according to the actual situation, and is not limited here.

[0070] Step S306: Encode the non-zero absolute values ​​according to the preset encoding rules to obtain the corresponding encoded values.

[0071] The processing platform 30 encodes non-zero absolute values ​​according to preset encoding rules to obtain corresponding encoded values. In this embodiment, the encoded value includes a prefix value and a suffix value, which are concatenated to form the encoded value. Details are as follows.

[0072] Step S402: Convert the absolute value into binary code.

[0073] Processing platform 30 converts all absolute values ​​into binary code. For example, if the absolute value is 8, the corresponding binary code is 0001000.

[0074] Step S404: Select the code value of the corresponding number of bits in the binary code as the suffix value according to the preset range.

[0075] The processing platform 30 selects code values ​​from the binary code according to a preset range to obtain the suffix value of the corresponding encoded value. In this embodiment, the preset range includes 1 to 63, 64 to 255, 256 to 2047, and others.

[0076] The specific process of selecting the code value of the corresponding bit in the binary code according to the preset range as the suffix value will be described in detail below.

[0077] Step S406: Add the corresponding prefix value before the suffix value according to the preset range to obtain the encoded value.

[0078] The processing platform 30 obtains the corresponding prefix value according to the preset range and adds it before the suffix value to obtain the corresponding encoded value.

[0079] The specific process of adding a corresponding prefix value before the suffix value according to a preset range to obtain the encoded value will be described in detail below.

[0080] Please refer to the following: Figure 5 This is the fourth sub-flowchart of the respiratory flow data processing method provided in this application embodiment. The processing platform 30 matches each absolute value with a preset range. Step S404 specifically includes the following steps.

[0081] Step S502: When the absolute value is between 1 and 63, select the last 6 bits of the binary code as the suffix value.

[0082] When the absolute value is between 1 and 63, the processing platform 30 selects the last 6 bits of the binary code as the suffix value. It can be understood that the range that a 6-bit binary code can represent is exactly 1 to 63. Therefore, only the last 6 bits need to be selected as the suffix value. For example, the binary code for the absolute value 8 is 0001000, so the corresponding suffix value is 001000.

[0083] Step S504: When the absolute value is between 64 and 255, select the last 8 bits of the binary code as the suffix value.

[0084] When the absolute value is between 64 and 255, the processing platform 30 selects the last 8 bits of the binary code as the suffix value. It is understandable that the range that an 8-bit binary code can represent is exactly 64 to 255. Therefore, only the last 8 bits need to be selected as the suffix value.

[0085] Step S506: When the absolute value is between 256 and 2047, select the last 11 bits of the binary code as the suffix value.

[0086] When the absolute value is between 256 and 2047, the processing platform 30 selects the last 11 bits of the binary code as the suffix value. It is understandable that the range that an 11-bit binary code can represent is exactly 256 to 2047. Therefore, only the last 11 bits need to be selected as the suffix value.

[0087] Step S508: When the absolute value is other, select the last 31 bits of the binary code as the suffix value.

[0088] When the absolute value is other than 11, the processing platform 30 selects the last 31 bits of the binary code as the suffix value. It is understood that a 31-bit binary code can represent values ​​after 2048. Therefore, only the last 31 bits need to be selected as the suffix value. In some feasible embodiments, the processing platform 30 may also select the last m bits of the binary code as the suffix value. Here, m is greater than 11, and can be set according to the actual situation.

[0089] Please refer to the following: Figure 6 This is the fifth sub-flowchart of the respiratory flow data processing method provided in the embodiments of this application. Step S406 specifically includes the following steps.

[0090] Step S602: When the absolute value is between 1 and 63, add 10 as a prefix value before the suffix value.

[0091] When the absolute value is between 1 and 63, the processing platform 30 adds 10 as a prefix to the suffix value. For example, the suffix value of the absolute value 8 is 001000, so the corresponding encoded value is 10001000.

[0092] Step S604: When the absolute value is between 64 and 255, add 110 as a prefix value before the suffix value.

[0093] When the absolute value is between 64 and 255, the processing platform 30 adds 110 as a prefix value before the suffix value.

[0094] Step S606: When the absolute value is between 256 and 2047, add 1110 as a prefix value before the suffix value.

[0095] When the absolute value is between 256 and 2047, the processing platform 30 adds 1110 as a prefix to the suffix value.

[0096] Step S608: When the absolute value is other, add 1111 as a prefix value before the suffix value.

[0097] When the absolute value is other than the given value, the processing platform 30 adds 1111 as a prefix value before the suffix value.

[0098] Within different preset ranges, the bit counts of the encoded values ​​obtained by processing respiratory flow data using the processing method and the compressed values ​​obtained by Delta-Delta compression encoding are compared as follows: Figure 10 As shown. Under the same preset range, the compressed value has one more bit than the encoded value. It can be understood that, compared to directly compressing the initial traffic data using Delta-Delta compression encoding, the above embodiment inserts a flag value into the differential traffic data to distinguish the continuity of positive and negative values, so that the encoded value does not need to record the sign bit, thus reducing the number of bits in all encoded values ​​by one.

[0099] In some feasible embodiments, the specific numerical value of the prefix value corresponding to each preset range can be set according to the actual situation, and is not limited here.

[0100] In the above embodiments, all values ​​that need to be encoded are first converted into easily stored binary codes, and then the corresponding binary codes are processed according to a preset range to obtain encoded values.

[0101] Please refer to the following: Figure 11 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of this application. The computer device 10 includes a memory 11 and a processor 12. The memory 11 is used to store program instructions, and the processor 12 is used to execute the program instructions to implement the above-described method for processing respiratory flow data.

[0102] In some embodiments, the processor 12 may be a central processing unit (CPU), controller, microcontroller, microprocessor or other data processing chip, used to run program instructions stored in the memory 11.

[0103] The memory 11 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of a computer device, such as a hard disk. In other embodiments, the memory 11 may be an external storage device of a computer device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., provided on the computer device. Furthermore, the memory 11 may include both internal and external storage units of the computer device. The memory 11 can be used not only to store application software and various types of data installed on the computer device, such as code implementing methods for processing respiratory flow data, but also to temporarily store data that has been output or will be output.

[0104] Please refer to the following: Figure 12 This is a schematic diagram of the internal structure of the respiratory flow data processing system provided in this application embodiment. The respiratory flow data processing system 20 is applied to ventilation therapy equipment such as ventilators to process the respiratory flow data generated by the ventilation therapy equipment to compress the respiratory flow data. The respiratory flow data processing system 20 includes an integer processing module 21, a difference processing module 22, an addition module 23, an absolute value processing module 24, and an encoding module 25.

[0105] Integer processing module 21 is used to perform integer processing on the initial traffic data to obtain integer traffic data.

[0106] Integer processing module 21 receives initial flow data from the ventilation therapy device. This initial flow data is time-series data, exhibiting periodic and monotonic characteristics, such as... Figure 8 As shown. In this embodiment, the initial traffic data includes several initial values ​​arranged in sequence. It can be understood that the initial values ​​are arranged in chronological order to form the initial traffic data.

[0107] After receiving the initial flow data from the ventilation therapy device, the integer processing module 21 performs integer processing on the initial flow data to obtain integer flow data. The integer flow data includes several integer values. Correspondingly, these integer values ​​are arranged sequentially, that is, in chronological order.

[0108] The differential processing module 22 is used to perform differential processing on integer flow data to obtain differential flow data.

[0109] The differential processing module 22 performs differential processing on the integer flow data to obtain differential flow data. The differential flow data includes several differential values. Correspondingly, these differential values ​​are arranged sequentially, i.e., in chronological order. In this embodiment, the differential values ​​include zero, positive values, and negative values. Since the differential values ​​have signs, a sign bit is required for data storage to distinguish between positive and negative numbers.

[0110] The differential processing of integer flow data to obtain differential flow data specifically includes: the differential processing module 22 calculates the second-order difference of the integer values ​​to obtain the differential values. Preferably, the differential processing module 22 calculates the differential values ​​starting from the third integer value of the integer flow data. Specifically, the processing platform 30 saves the first two integer values ​​of the integer flow data as their original values, and starting from the third integer value, replaces the third integer value and all subsequent integer values ​​with the second-order difference values ​​to obtain the differential values. That is, the first two integer values ​​of the integer flow data are not processed, and the corresponding differential values ​​are calculated starting from the third integer value to form the differential flow data.

[0111] In this embodiment, the difference processing module 22 calculates the difference value according to the difference calculation formula. Specifically, the difference calculation formula is: D = (t n -t n-1 )-(t n-1 -t n-2 Where D represents the difference value, t n-2 t n-1 t n It represents three consecutive integer values ​​arranged in chronological order.

[0112] Because the initial flow data has a periodic and monotonic characteristic, the processed differential flow data also has a periodic and monotonic characteristic. For example... Figure 9 As shown, some of the difference values ​​are negative and are consecutive in time, while some of the difference values ​​are positive and are consecutive in time, with consecutive negative and consecutive positive values ​​alternating.

[0113] Add module 23 to add a flag value before the positive or zero difference value when the difference value is positive or zero and the preceding difference value is negative, or to add a flag value before the negative difference value when the difference value is negative and the preceding difference value is positive or zero.

[0114] Add module 23 to determine the continuity of difference values. When the difference value preceding a positive or zero difference value is negative, add a flag value before the positive or zero difference value, that is, add a flag value after the negative difference value; when the difference value preceding a negative difference value is positive or zero, add a flag value before the negative difference value, that is, add a flag value after the positive or zero difference value.

[0115] The absolute value processing module 24 is used to perform absolute value processing on the difference values ​​to obtain the absolute values.

[0116] The absolute value processing module 24 performs absolute value processing on all differential values ​​to obtain absolute values. In this embodiment, the absolute value processing module 24 removes the negative sign of negative differential values, thereby subtracting a sign bit from the negative value to obtain the absolute value of the negative differential value; it also removes the positive sign of positive differential values, thereby subtracting a sign bit from the positive value to obtain the absolute value of the positive differential value. It can be understood that the processed differential flow data currently includes both zero and absolute values. That is, all values ​​in the processed differential flow data are non-negative, and all values ​​do not include a sign.

[0117] Encoding module 25 is used to encode the flag value and absolute value to obtain encoded traffic data.

[0118] The encoding module 25 encodes the flag value and the absolute value respectively to obtain encoded traffic data. The encoded traffic data includes several encoded values. Correspondingly, the encoded values ​​are arranged sequentially, that is, in chronological order. In this embodiment, the encoding module 25 encodes the flag value and the absolute value using Delta-Delta compression encoding to obtain the corresponding encoded values, thereby forming the encoded traffic data.

[0119] After obtaining the encoded traffic data, the encoding module 25 can store the encoded traffic data in the corresponding database.

[0120] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

[0121] The above-listed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A method for processing respiratory flow data, characterized in that, The method for processing the respiratory flow data includes: The initial traffic data is integerized to obtain integer traffic data. The integer flow data is differentially processed to obtain differential flow data, which includes several differential values ​​arranged in order, including zero, positive and negative values. When the difference value is positive or zero, and the preceding difference value is negative, a flag value is added before the difference value that is positive or zero; or when the difference value is negative, and the preceding difference value is positive or zero, a flag value is added before the difference value that is negative. The absolute values ​​of the difference values ​​are processed to obtain absolute values; and The flag value and the absolute value are encoded to obtain encoded traffic data.

2. The method for processing respiratory flow data as described in claim 1, characterized in that, Encoding the flag value and the absolute value to obtain encoded traffic data specifically includes: Set the encoded value corresponding to the absolute value that is zero to 0; Set the encoded value corresponding to the flag value to a preset value; and Non-zero absolute values ​​are encoded according to preset encoding rules to obtain the corresponding encoded values.

3. The method for processing respiratory flow data as described in claim 2, characterized in that, Encoding non-zero absolute values ​​according to preset encoding rules to obtain corresponding encoded values ​​specifically includes: Convert the absolute value into binary code; The code value of the corresponding bit in the binary code is selected as the suffix value according to a preset range; and According to the preset range, a corresponding prefix value is added before the suffix value to obtain the encoded value.

4. The method for processing respiratory flow data as described in claim 3, characterized in that, The preset range includes 1 to 63, 64 to 255, 256 to 2047, and others. Selecting the code value of the corresponding number of bits in the binary code as the suffix value according to the preset range specifically includes: When the absolute value is between 1 and 63, the last 6 bits of the binary code are selected as the suffix value. When the absolute value is between 64 and 255, the last 8 bits of the binary code are selected as the suffix value. When the absolute value is between 256 and 2047, the last 11 bits of the binary code are selected as the suffix value; and When the absolute value is other than the given value, the last 31 bits of the binary code are selected as the suffix value.

5. The method for processing respiratory flow data as described in claim 3, characterized in that, The preset range includes 1 to 63, 64 to 255, 256 to 2047, and others. Adding a corresponding prefix value before the suffix value according to the preset range to obtain the encoded value specifically includes: When the absolute value is between 1 and 63, add 10 before the suffix value as the prefix value; When the absolute value is between 64 and 255, add 110 before the suffix value as the prefix value; When the absolute value is between 256 and 2047, add 1110 before the suffix value as the prefix value; and When the absolute value is other than the given value, add 1111 before the suffix value as the prefix value.

6. The method for processing respiratory flow data as described in claim 1, characterized in that, The integer flow data includes several integer values ​​arranged in sequence. The differential flow data obtained by differential processing the integer flow data specifically includes: The second-order difference of the integer value is calculated to obtain the difference value.

7. The method for processing respiratory flow data as described in claim 6, characterized in that, Calculating the second difference of the integer value to obtain the difference value specifically includes: The difference value is calculated starting from the third integer value of the integer flow data.

8. The method for processing respiratory flow data as described in claim 1, characterized in that, The process of converting the initial traffic data to integers to obtain integer traffic data specifically includes: Obtain precision requirement information, including the number of decimal places; and Each initial value in the initial flow data is multiplied by a corresponding multiple according to the number of decimal places to obtain the corresponding integer value, and the integer flow data includes the integer value.

9. A computer device, characterized in that, The computer device includes: Memory, used to store program instructions; and A processor for executing the program instructions to implement the method for processing respiratory flow data as described in any one of claims 1 to 8.

10. A system for processing respiratory flow data, characterized in that, The respiratory flow data processing system includes: The integer processing module is used to convert the initial traffic data into integers to obtain integer traffic data. The differential processing module is used to perform differential processing on the integer flow data to obtain differential flow data. The differential flow data includes a number of differential values ​​arranged in order, and the differential values ​​include zero, positive values ​​and negative values. An add module is used to add a flag value before the difference value that is positive or zero when the difference value is positive or zero and the previous difference value is negative, or to add a flag value before the difference value that is negative when the difference value is negative and the previous difference value is positive or zero. An absolute value processing module is used to perform absolute value processing on the difference values ​​to obtain absolute values; and The encoding module is used to encode the flag value and the absolute value to obtain encoded traffic data.