Method and system for storing icodextrin peritoneal dialysis fluid production data

By dividing the production data of iacodextrin peritoneal dialysate into local time periods, adjusting the difference range and screening the difference data, the feature loss problem caused by data mutations in the storage process is solved, and the quality of iacodextrin peritoneal dialysate is achieved and Accurate analysis of purity.

CN118611679BActive Publication Date: 2024-11-19SHANDONG HUAMAO PHARM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411080791.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-11-19
Estimated Expiration
2044-08-08

AI Technical Summary

Technical Problem

In the existing methods, the production data of iacodextrin peritoneal dialysate may be caused by mutation during storage, resulting in too large difference value exceeding the preset range, resulting in deviations in the compression results of the differential coding algorithm, and some changes are lost, so it is impossible to accurately analyze. Liquid mass and purity.

Method used

Divide the preset time period into local time periods, obtain the production mode switching degree value according to the changes in production data in adjacent local time periods, adjust the difference range in each local time period, filter out the difference data, and use each The difference between each time and adjacent time and the difference between predicted data are stored to ensure the accuracy of the data.

Benefits of technology

By adaptively adjusting the differential range and screening differential data, the compressed storage accuracy of production data is improved, the changing characteristics of the data are retained, and the accurate analysis of the quality and purity of the peritoneal dialysate of the emcodextrin is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611679B_ABST
    Figure CN118611679B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of electronic digital data processing, and in particular to a storage method and system for icodextrin peritoneal dialysis fluid production data. The method obtains each type of production data of icodextrin peritoneal dialysis fluid at each moment; according to the difference in the change of each type of production data in adjacent local time periods, the production mode switching degree value is obtained to adjust the change range of each type of production data in the local time period to obtain the differential range; according to the difference between each type of production data at each moment and the adjacent moments, and the difference between each type of production data at each moment and the predicted production data, the differential data is screened out; and the production data is stored according to the differential data and the differential range. The present invention adaptively obtains the differential range and differential data of each type of production data in each local time period, and then accurately stores each production data in each local time period, thereby avoiding the loss of the change characteristics of the production data during the storage process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electrical digital data processing, and in particular to a storage method and system for icodextrin peritoneal dialysis fluid production data. Background Art

[0002] Icodextrin peritoneal dialysis solution is a solution used for peritoneal dialysis treatment, with icodextrin as the main osmotic agent. Peritoneal dialysis is an alternative kidney treatment method. During the peritoneal dialysis process, icodextrin peritoneal dialysis solution is injected into the patient's abdominal cavity, using the natural filtration function of the peritoneum to remove toxins and excess water from the patient's body. In order to accurately determine the quality and purity of icodextrin peritoneal dialysis solution, it is necessary to accurately analyze the production data of icodextrin peritoneal dialysis solution. Therefore, when storing the collected icodextrin peritoneal dialysis solution production data, it is necessary to ensure that it is accurately stored to ensure the accuracy of the icodextrin peritoneal dialysis solution production data.

[0003] In the existing method, the production data of icodextrin peritoneal dialysis fluid is stored through a differential coding algorithm. However, in actual situations, normal mutations may occur in the production data of different types of icodextrin peritoneal dialysis fluid, resulting in excessively large differential values ​​that exceed the preset differential range, thereby causing deviations in the compression results of the differential coding algorithm and causing the loss of some change characteristics of the production data of icodextrin peritoneal dialysis fluid, making it impossible to accurately analyze the quality and purity of icodextrin peritoneal dialysis fluid. Summary of the invention

[0004] In order to solve the technical problem that normal mutations may occur in the production data of different types of icodextrin peritoneal dialysis fluids, resulting in excessively large differential values, exceeding the preset differential range, thereby causing deviations in the compression results of the differential encoding algorithm, and causing the loss of some change characteristics of the production data of icodextrin peritoneal dialysis fluids, the object of the present invention is to provide a storage method and system for the production data of icodextrin peritoneal dialysis fluids, and the technical solutions adopted are specifically as follows:

[0005] In a first aspect, an embodiment of the present invention provides a method for storing icodextrin peritoneal dialysis fluid production data, the method comprising the following steps:

[0006] Obtaining each type of production data of icodextrin peritoneal dialysis fluid at each time within a preset time period;

[0007] Divide the preset time period into a preset number of local time periods, and obtain the production mode switching degree value of the preset time period according to the difference in the change of each production data in adjacent local time periods;

[0008] Adjusting the variation range of each type of production data in each local time period according to the production mode switching degree value to obtain the differential range of each type of production data in each local time period;

[0009] According to the difference between each moment in each local time period and each production data at adjacent moments, and the difference between each production data at each moment and the predicted production data of the same type at the same moment, the difference degree value of each production data at each moment in each local time period is obtained; based on the difference degree value, the difference data of each production data in each local time period is screened out;

[0010] Each type of production data at each moment in each local time period is stored according to the difference between each type of production data at each moment in each local time period and the adjacent differential data of the same type in the local time period, as well as the differential range of each type of production data in each local time period.

[0011] Furthermore, the method for obtaining the production mode switching degree value is:

[0012] For any type of production data, the difference in the mean of the production data between any two adjacent local time periods is taken as the first difference;

[0013] Obtaining a change degree value of the production data according to a difference in the degree of fluctuation of the production data between any two adjacent local time periods and a difference between any two adjacent first differences;

[0014] The average value of the normalized change degree values ​​of all types of production data is obtained as the production mode switching degree value of the preset time period.

[0015] Furthermore, the calculation formula of the change degree value is:

[0016] ; In the formula, is the change degree value of the k-th production data; N is the total number of local time periods; is the variance of the kth type of production data in the nth local time period; is the variance of the k-th production data in the n+1-th local time period; is the mean value of the kth type of production data in the nth local time period; is the mean value of the k-th type of production data in the n+1-th local time period; is the mean value of the k-th type of production data in the n+2-th local time period; is the absolute value function; is the first preset constant, which is greater than 0; exp is an exponential function with a natural constant as the base; The first difference.

[0017] Furthermore, the method for obtaining the differential range is:

[0018] For any type of production data in any local time period, the difference between the largest production data of this type and the smallest production data of this type in this local time period is taken as the extreme value of this type of production data in this local time period;

[0019] Adjusting the extreme value of the production data in the local time period according to the production mode switching degree value to obtain the maximum difference value of the production data in the local time period;

[0020] The maximum differential value is used as the upper limit of the differential range of the production data in the local time period, and the opposite of the maximum differential value is used as the lower limit of the differential range of the production data in the local time period to obtain the differential range of the production data in the local time period.

[0021] Furthermore, the calculation formula of the maximum difference value is:

[0022] ; In the formula, is the maximum difference value of the kth type of production data in the i-th local time period; V is the degree of production mode switching; is the largest k-th production data in the i-th local time period; is the smallest k-th production data in the i-th local time period; It is the second preset constant, which is greater than 0.

[0023] Furthermore, the calculation formula of the difference degree value is:

[0024] ; In the formula, is the difference degree value of the x-th type of production data at the t-th moment in the i-th local time period; is the x-th type of production data at the t-th moment in the i-th local time period; is the x-th type of production data at the t+1-th time in the i-th local time period; is the predicted production data of the x-th type of production data at the t-th moment in the i-th local time period; is the third preset constant, ; is the absolute value function; exp is the exponential function with a natural constant as the base.

[0025] Furthermore, the method for obtaining the differential data is:

[0026] When the normalized difference degree value is greater than or equal to a preset difference degree value threshold, the corresponding production data is used as difference data.

[0027] Furthermore, the method for storing each type of production data at each moment in each local time period according to the difference between each type of production data at each moment in each local time period and adjacent differential data of the same type in the local time period, and the differential range of each type of production data in each local time period is:

[0028] For any type of production data at any moment in any local time period, obtain the difference between the type of production data at that moment in the local time period and the previous adjacent differential data of the same type in the local time period as the differential value of the type of production data at that moment in the local time period;

[0029] When the differential value of the production data at the time in the local time period is within the differential range of the production data at the time in the local time period, the differential value of the production data at the time in the local time period is used as the compression storage result in the differential encoding algorithm;

[0030] When the differential value of the production data at that moment in the local time period is not within the differential range of the production data in the local time period, the production data at that moment in the local time period is not compressed by the differential encoding algorithm and is directly stored.

[0031] Furthermore, the method for obtaining the predicted production data is:

[0032] The predicted production data of each type of production data at each moment in the preset time period is obtained through the time series prediction algorithm.

[0033] In a second aspect, another embodiment of the present invention provides a storage system for icodextrin peritoneal dialysis fluid production data, the system comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of any one of the above methods are implemented.

[0034] The present invention has the following beneficial effects:

[0035] The preset time period is divided into a preset number of local time periods to improve the accuracy of the analysis of the production data, which is conducive to the subsequent accurate storage of the production data; according to the difference in the change of each type of production data in adjacent local time periods, the production mode switching degree value of the preset time period is obtained, and the overall fluctuation of the production data in the preset time period is predicted; then, according to the production mode switching degree value, the change range of each type of production data in each local time period is adjusted to obtain the differential range of each type of production data in each local time period, accurately determine the fluctuation range of each type of production data in each local time period, and improve the accuracy of compressed storage of each type of production data; in order to more accurately compress and store each type of production data in each local time period, further according to each moment in each local time period and each type of production data at adjacent moments , and the difference between each production data at each moment and the predicted production data of the same type at the same moment, the differential data of each production data in each local time period is accurately screened out, the influence of abnormal production data on the compressed storage of production data is avoided, and the change characteristics of production data are accurately retained in the process of storing production data; therefore, according to the difference between each production data at each moment in each local time period and the adjacent differential data of the same type in the local time period, as well as the differential range of each production data in each local time period, each production data at each moment in each local time period is accurately stored, saving storage data space while retaining the characteristic information of production data, ensuring the accuracy of production data, and facilitating accurate analysis of the quality and purity of icodextrin peritoneal dialysis fluid based on the stored production data. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0037] Figure 1 A schematic flow chart of a method for storing icodextrin peritoneal dialysis fluid production data provided by one embodiment of the present invention;

[0038] Figure 2 A flowchart of a specific process of obtaining a production mode switching degree value for a preset time period provided by an embodiment of the present invention;

[0039] Figure 3 A schematic flow chart of a method for obtaining differential data of each type of production data in each local time period provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a storage method and system for icodextrin peritoneal dialysis fluid production data proposed by the present invention, its specific implementation, structure, features and effects as follows in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0041] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0042] The following is a detailed description of a specific method for storing icodextrin peritoneal dialysis fluid production data provided by the present invention in conjunction with the accompanying drawings.

[0043] The specific scenario of the embodiment of the present invention is: in the existing method, the icodextrin peritoneal dialysis fluid production data is stored by a differential coding algorithm, but in actual situations, different types of icodextrin peritoneal dialysis fluid production data may undergo normal mutations, resulting in excessively large differential values, exceeding a preset differential range, thereby causing a deviation in the compression result of the differential coding algorithm, resulting in the loss of some change characteristics of the icodextrin peritoneal dialysis fluid production data during the storage process. Therefore, the embodiment of the present invention divides the preset time period into a preset number of local time periods, obtains the production mode switching degree value of the preset time period according to the difference in the change of each production data in adjacent local time periods, and predicts the overall fluctuation of the production data in the preset time period; then, the change range of each production data in each local time period is adjusted according to the production mode switching degree value, the differential range of each production data in each local time period is accurately obtained, the fluctuation range of each production data in each local time period is determined, and the accuracy of compressing and storing each production data is improved; further, according to the difference between each production data at each moment in each local time period and the adjacent moments, and the difference between each production data at each moment and the predicted production data of the same type at the same moment, the differential data of each production data in each local time period is accurately screened out, and the influence of abnormal production data on the compressed storage of production data is removed; therefore, according to the difference between each production data at each moment in each local time period and the adjacent differential data of the same type in the local time period where it is located, and the differential range of each production data in each local time period, each production data at each moment in each local time period is accurately stored, saving storage data space while retaining the characteristic information of the production data, thereby ensuring the accuracy of the production data. Among them, the differential encoding algorithm is a well-known technology and will not be described in detail.

[0044] See also Figure 1 , which shows a flow chart of a method for storing icodextrin peritoneal dialysis fluid production data provided by one embodiment of the present invention, the method comprising the following steps:

[0045] Step S1: Acquire each type of production data of icodextrin peritoneal dialysis fluid at each time within a preset time period.

[0046] Specifically, in order to accurately and efficiently store the production data of icodextrin peritoneal dialysis fluid, it is necessary to first obtain each type of production data of icodextrin peritoneal dialysis fluid at each moment within a preset time period through other sensors such as temperature sensors, pH sensors and osmotic pressure sensors. Among them, the preset time period is the time period corresponding to the complete process of producing icodextrin peritoneal dialysis fluid, that is, the time period corresponding to the production of icodextrin peritoneal dialysis fluid from the beginning of production of icodextrin peritoneal dialysis fluid to the generation of icodextrin peritoneal dialysis fluid, wherein the time interval between two adjacent moments is set to 2 seconds, and the implementer can set the size of the preset time period and the time interval between two adjacent moments according to actual conditions, which is not limited here. The production data includes temperature data, pH value and osmotic pressure data and other types of production data. It should be noted that osmotic pressure data is an important parameter in the production process of icodextrin peritoneal dialysis fluid, and osmotic pressure data is related to the efficiency of material exchange between icodextrin peritoneal dialysis fluid and patient blood. Therefore, the osmotic pressure data is required to be very accurate to ensure that icodextrin peritoneal dialysis fluid can effectively remove excess water and dissolved substances in the patient's body.

[0047] Step S2: Divide the preset time period into a preset number of local time periods, and obtain the production mode switching degree value of the preset time period according to the difference in the change of each production data in adjacent local time periods.

[0048] Specifically, the production data of icodextrin peritoneal dialysis fluid will have different data change characteristics during the production process due to changes in the production stage and production mode. Specifically, various production data fluctuate randomly within a fixed fluctuation range within a preset time period. For example, the fixed fluctuation range of pH value within the preset time period is . Various production data will have increasing or decreasing change characteristics as the production stage of icodextrin peritoneal dialysis fluid changes. For example, in the initial stage of the production of icodextrin peritoneal dialysis fluid, the temperature data will gradually increase with the change of time until it becomes stable. At the same time, when the production mode of icodextrin peritoneal dialysis fluid changes, the temperature data will have an increasing or decreasing change trend. During the change process, some production data may have too large a fluctuation degree. When the production data is compressed and stored by the differential coding algorithm, some of the change characteristics of the production data may be lost during the compression process. In order to accurately store the production data of icodextrin peritoneal dialysis fluid, the embodiment of the present invention divides the preset time period into a preset number of local time periods. Because the changes in the production stage and the production mode are continuous, the change of each production data in the adjacent local time periods is analyzed. When the change of each production data between the adjacent local time periods is more similar, it means that the production mode of each production data in the adjacent local time periods is more likely to be consistent, which indirectly means that the more the production mode changes in the preset time period, the greater the degree of change of each production data in the preset time period. The embodiment of the present invention sets the preset number to 10. The implementer can set the size of the preset number according to the actual situation, and it is not limited here. It should be noted that the preset time period is divided into 10 local time periods as evenly as possible. If it cannot be evenly divided, the remainder of the total number of moments in the preset time period divided by the preset number is obtained, and the last remainder moments in the preset time period are divided into the last local time period. For example, there are 92 moments in the preset time period, and the number of moments in the first 9 local time periods is 9, and the number of moments in the last local time period is 11. Furthermore, the embodiment of the present invention obtains the production mode switching degree value of the preset time period according to the difference in the change of each production data in adjacent local time periods. Among them, the larger the production mode switching degree value, the larger the fluctuation range of the production data in the preset time period.

[0049] Preferably, the method for obtaining the production mode switching degree value is as follows: for any kind of production data, the difference in the mean of the production data between any two adjacent local time periods is taken as the first difference; when a first difference is more similar to the next adjacent first difference, the production data is more likely to be in the stage or initial stage of production mode change, the production data changes with time, and the fluctuation range of the production data may be larger. At the same time, when the variance of the production data between any two adjacent local time periods is more equal, it means that the fluctuation of the production data in the corresponding two adjacent local time periods is more similar, and the production data is more likely to have the same increasing or decreasing change in the corresponding two adjacent local time periods, which indirectly indicates that the fluctuation range of the production data in the preset time period may be larger. Therefore, according to the difference in the fluctuation degree of the production data between any two adjacent local time periods and the difference between any two adjacent first differences, the change degree value of the production data is obtained; wherein, the larger the change degree value, the larger the fluctuation range of the production data in the preset time period may be. Then, the average of the normalized change degree values ​​of all types of production data is obtained as the production mode switching degree value of the preset time period. The larger the production mode switching degree value is, the larger the fluctuation range of the production data within the preset time period may be.

[0050] As an example, the specific process of obtaining the production mode switching degree value for a preset time period is as follows: Figure 2 As shown:

[0051] S2-001: Get the change degree value.

[0052] As an example, taking the k-th production data as an example, the calculation formula for obtaining the change degree value of the k-th production data is:

[0053] ; In the formula, is the change degree value of the k-th production data; N is the total number of local time periods; is the variance of the kth type of production data in the nth local time period; is the variance of the k-th production data in the n+1-th local time period; is the mean value of the kth type of production data in the nth local time period; is the mean value of the k-th type of production data in the n+1-th local time period; is the mean value of the k-th type of production data in the n+2-th local time period; is the absolute value function; is the first preset constant, which is greater than 0; exp is an exponential function with a natural constant as the base; The first difference.

[0054] The embodiment of the present invention will Set to 1 to avoid the denominator being 0. Implementers can set it according to actual conditions. The size is not limited here.

[0055] It should be noted that The smaller, and The more equal they are, the more likely the k-th production data is to experience the same increasing or decreasing changes in the n-th local time period and the n+1-th local time period, which indirectly indicates that the fluctuation range of the k-th production data in the preset time period may be larger. The bigger, The bigger; The smaller, and The more equal they are, the more likely the k-th production data is to be in an increasing or decreasing stage of change, which indirectly indicates that the fluctuation range of the k-th production data may be larger within the preset time period. The bigger, The larger the The larger the value is, the greater the fluctuation range of the k-th production data may be within the preset time period.

[0056] According to the method for obtaining the change degree value of the k-th type of production data, the change degree value of each type of production data is obtained.

[0057] S2-002: Get the production mode switching degree value.

[0058] It is known that the larger the change degree value is, the larger the fluctuation range of the corresponding type of production data within the preset time period may be. In order to analyze the overall fluctuation of the production data within the preset data segment, the calculation formula for obtaining the production mode switching degree value of the preset time period is obtained according to the change degree value of each type of production data:

[0059] ; In the formula, V is the production mode switching degree value; U is the total number of types of production data; is the variation degree of the u-th production data; norm is the normalization function.

[0060] It should be noted that The larger the value is, the larger the fluctuation range of the u-th type of production data may be within the preset time period, and the larger V is; therefore, the larger the value is, the longer the duration corresponding to the change in production mode within the preset time period is, and the larger the fluctuation range of each type of production data may be.

[0061] Step S3: adjusting the variation range of each type of production data in each local time period according to the production mode switching degree value, and obtaining the differential range of each type of production data in each local time period.

[0062] Specifically, if each type of production data within a preset time period is directly compressed and stored using a differential coding algorithm, it is easy to cause some change characteristics of the production data to be lost. In order to reduce the possibility of information loss during the compression process, the embodiment of the present invention stores each type of production data within each local time period separately. In order to more accurately compress and store each type of production data within each local time period using a differential coding algorithm, the embodiment of the present invention adjusts the change range of each type of production data within each local time period through the production mode switching degree value, and adaptively obtains the differential range of each type of production data within each local time period, so as to better retain the change characteristics of each type of production data within each local time period.

[0063] Preferably, the method for obtaining the differential range is: for any kind of production data in any local time period, the difference between the largest production data of the kind and the smallest production data of the kind in the local time period is taken as the extreme value of the production data in the local time period; the larger the extreme value, the greater the fluctuation degree of the production data in the local time period. In order to better compress and store the production data in the local time period through the differential coding algorithm, the differential range of the production data in the local time period should be larger. At the same time, considering that the larger the production mode switching degree value, the larger the fluctuation range of the production data in the preset time period, therefore, the extreme value of the production data in the local time period is further adjusted according to the production mode switching degree value, the maximum differential value of the production data in the local time period is obtained, and the maximum differential value that can be allowed to exist in the production data in the local time period is determined. Further, the maximum differential value is taken as the upper limit of the differential range of the production data in the local time period, and the opposite number of the maximum differential value is taken as the lower limit of the differential range of the production data in the local time period, and the differential range of the production data in the local time period is obtained.

[0064] As an example, taking the k-th type of production data in the i-th local time period as an example, the calculation formula for obtaining the maximum difference value of the k-th type of production data in the i-th local time period is:

[0065] ; In the formula, is the maximum difference value of the kth type of production data in the i-th local time period; V is the degree of production mode switching; is the largest k-th production data in the i-th local time period; is the smallest k-th production data in the i-th local time period; It is the second preset constant, which is greater than 0.

[0066] The embodiment of the present invention will Set to 2 to determine the initial maximum difference value of the kth type of production data in the i-th local time period. The implementer can set it according to the actual situation. The size is not limited here.

[0067] It should be noted that The larger the value is, the greater the fluctuation of the k-th production data in the i-th local time period is. The larger the V, the greater the fluctuation of the production data in the preset time period, which indirectly indicates that the fluctuation of the k-th production data in the i-th local time period is greater. The larger the The larger the value is, the larger the differential range of the k-th production data in the i-th local time period is. When it is 0, there is no change in the k-th production data in the ith local time period, which means that the ith local time period is a stable stage, and the differential range of the k-th production data in the ith local time period does not need to be adjusted. Therefore, the k-th production data in the ith local time period is directly compressed and stored through the differential coding algorithm.

[0068] when When it is not 0, according to the obtained , determine the difference range of the kth type of production data in the i-th local time period as , that is, the difference value of the k-th production data in the i-th local time period must be within Inside.

[0069] According to the method for obtaining the differential range of the kth type of production data in the i-th local time period, the differential range of each type of production data in each local time period is obtained. It should be noted that each production data in the local time period with a differential range is a production data with fluctuations. Among them, the subsequent local time periods are all local time periods in which each type of production data has fluctuations.

[0070] Step S4: According to the difference between each moment in each local time period and each production data at adjacent moments, and the difference between each production data at each moment and the predicted production data of the same type at the same moment, obtain the difference degree value of each production data at each moment in each local time period; based on the difference degree value, filter out the differential data of each production data in each local time period.

[0071] Specifically, in the differential coding algorithm, for the k-th production data in any local time period, the difference between the k-th production data at the t-th moment in the local time period and the k-th production data at the t-1-th moment is taken as the differential value of the k-th production data at the t-th moment, that is, the compression and storage result of the k-th production data at the t-th moment in the local time period in the differential coding algorithm. Among them, the k-th production data at the t-1-th moment in the local time period is the differential data of the k-th production data at the t-th moment.

[0072] However, in actual situations, there may be an abnormality in a certain production data itself, resulting in a large difference between two production data of the same type at adjacent moments, which in turn leads to errors in the compression of production data. When a certain moment in a certain local time period is more similar to a certain production data at the next adjacent moment, it means that the production data at that moment in the local time period is more normal, and it is more likely to be differential data of the production data in the local time period. The predicted production data of each production data at each moment in the preset time period is obtained by the time series prediction algorithm. When each production data at each moment is more equal to the predicted production data of the same type at the same moment, it can be more accurate to show that the production data of the corresponding type at the corresponding moment is more likely to be differential data. Among them, the time series prediction algorithm is a well-known technology and will not be described in detail. Therefore, according to the difference between each moment in each local time period and each production data at the adjacent moment, and the difference between each production data at each moment and the predicted production data of the same type at the same moment, the difference degree value of each production data at each moment in each local time period is obtained. Among them, the larger the difference degree value, the more likely the corresponding type of production data at the corresponding moment in the corresponding local time period is differential data. Then, based on the difference degree value of each production data at each moment in each local time period, the difference data of each production data in each local time period is screened out. Among them, the method for obtaining the difference data of each production data in each local time period is as follows: Figure 3 As shown:

[0073] S4-001: Get the difference degree value.

[0074] As an example, taking the x-th type of production data at the t-th time in the i-th local time period as an example, the calculation formula for obtaining the difference degree value of the x-th type of production data at the t-th time in the i-th local time period is:

[0075] ; In the formula, is the difference degree value of the x-th type of production data at the t-th moment in the i-th local time period; is the x-th type of production data at the t-th moment in the i-th local time period; is the x-th type of production data at the t+1-th time in the i-th local time period; is the predicted production data of the x-th type of production data at the t-th time in the i-th local time period; is the third preset constant, ; is the absolute value function; exp is the exponential function with a natural constant as the base.

[0076] The embodiment of the present invention will Set to 0.4 and confirm and Get The proportion of participation can be set by the implementer according to the actual situation. The size is not limited here.

[0077] It should be noted that The smaller, and The more equal they are, the more likely the x-th production data at the t-th moment in the i-th local time period is to be the differential data of the x-th production data at the t+1-th moment in the i-th local time period. The bigger, The bigger; The smaller, that is The closer it is to 1, and The more equal, the The more accurate it is, the more likely the x-th production data at the t-th time in the i-th local time period is differential data. The bigger, The larger the The larger it is, the more likely the x-th production data at the t-th moment in the ith local time period is differential data.

[0078] According to the method for obtaining the differential degree value of the x-th type of production data at the t-th moment in the i-th local time period, the differential degree value of each type of production data at each moment in each local time period is obtained. It should be noted that the last moment in each local time period does not have an adjacent next moment, so the differential degree value of each type of production data at the last moment in each local time period is not obtained.

[0079] S4-002: Obtain differential data.

[0080] It is known that the larger the difference degree value is, the more likely the corresponding production data is differential data. Therefore, the embodiment of the present invention sets the preset difference degree value threshold to 0.9. The implementer can set the preset difference degree value threshold according to the actual situation, which is not limited here. When the normalized difference degree value is greater than or equal to the preset difference degree value threshold, the corresponding production data is used as differential data. At this point, the differential data of each type of production data in each local time period is determined, and the influence of abnormal production data on the compressed storage of production data is removed.

[0081] Step S5: Store each type of production data at each moment in each local time period according to the difference between each type of production data at each moment in each local time period and the adjacent differential data of the same type in the local time period, and the differential range of each type of production data in each local time period.

[0082] Specifically, for any type of production data at any moment in any local time period, the difference between the type of production data at that moment in the local time period and the previous adjacent differential data of the same type in the local time period is obtained as the differential value of the type of production data at that moment in the local time period.

[0083] For example, if the k-th production data at the first moment in the i-th local time period is differential data, then the difference between the k-th production data at the second moment in the i-th local time period and the k-th production data at the first moment is the differential value of the k-th production data at the second moment in the i-th local time period.

[0084] When the kth production data at the second moment in the i-th local time period is not differential data, then the difference between the kth production data at the third moment in the i-th local time period and the kth production data at the first moment is the differential value of the kth production data at the third moment in the i-th local time period.

[0085] When the differential value of the production data at that moment in the local time period is within the differential range of the production data in the local time period, the differential value of the production data at that moment in the local time period is used as the compressed storage result in the differential coding algorithm; when the differential value of the production data at that moment in the local time period is not within the differential range of the production data in the local time period, the production data at that moment in the local time period is not compressed through the differential coding algorithm and is directly stored.

[0086] It should be noted that if the time corresponding to the first differential data of the production data in the local time period is not the initial time in the local time period, the production data at each time between the initial time in the local time period and the time corresponding to the first differential data is directly stored. Thus, each type of production data in each local time period is accurately stored, avoiding the situation where the change characteristics of the production data are lost during the storage process. The storage of the production data of icodextrin peritoneal dialysis fluid is completed.

[0087] So far, the present invention is completed.

[0088] In summary, the embodiment of the present invention obtains each type of production data of icodextrin peritoneal dialysis fluid at each moment; according to the difference in the change of each type of production data in adjacent local time periods, the production mode switching degree value is obtained to adjust the change range of each type of production data in the local time period to obtain the differential range; according to the difference between each type of production data at each moment and the adjacent moments, and the difference between each type of production data at each moment and the predicted production data, the differential data is screened out; the production data is stored according to the differential data and the differential range. The present invention adaptively obtains the differential range and differential data of each type of production data in each local time period, and then accurately stores each production data in each local time period, thereby avoiding the loss of the change characteristics of the production data during the storage process.

[0089] Based on the same inventive concept as the above method embodiment, the present invention also provides a storage system for icodextrin peritoneal dialysis fluid production data, the system comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the computer program to implement the steps in the above method embodiment for storing icodextrin peritoneal dialysis fluid production data, such as Figure 1 The method for storing the production data of icodextrin peritoneal dialysis fluid has been described in detail in the above embodiments and will not be described in detail again.

[0090] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0091] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. A method for storing icodextrin peritoneal dialysis fluid production data, characterized in that: The method comprises the following steps: Obtaining each type of production data of icodextrin peritoneal dialysis fluid at each time within a preset time period; Divide the preset time period into a preset number of local time periods, and obtain the production mode switching degree value of the preset time period according to the difference in the change of each production data in adjacent local time periods; Adjusting the variation range of each type of production data in each local time period according to the production mode switching degree value to obtain the differential range of each type of production data in each local time period; According to the difference between each moment in each local time period and each production data at adjacent moments, and the difference between each production data at each moment and the predicted production data of the same type at the same moment, the difference degree value of each production data at each moment in each local time period is obtained; based on the difference degree value, the difference data of each production data in each local time period is screened out; According to the difference between each type of production data at each moment in each local time period and the adjacent differential data of the same type in the local time period, and the differential range of each type of production data in each local time period, each type of production data at each moment in each local time period is stored; The method for obtaining the production mode switching degree value is: For any type of production data, the difference in the mean of the production data between any two adjacent local time periods is taken as the first difference; Obtaining a change degree value of the production data according to a difference in the degree of fluctuation of the production data between any two adjacent local time periods and a difference between any two adjacent first differences; Obtaining the average of the normalized change degree values ​​of all types of production data as the production mode switching degree value for a preset time period; The calculation formula of the change degree value is: ; In the formula, is the change degree value of the k-th production data; N is the total number of local time periods; is the variance of the kth type of production data in the nth local time period; is the variance of the k-th production data in the n+1-th local time period; is the mean value of the kth type of production data in the nth local time period; is the mean value of the k-th type of production data in the n+1-th local time period; is the mean value of the k-th type of production data in the n+2-th local time period; is the absolute value function; is the first preset constant, which is greater than 0; exp is an exponential function with a natural constant as the base; is the first difference; The method for obtaining the differential range is: For any type of production data in any local time period, the difference between the largest production data of this type and the smallest production data of this type in this local time period is taken as the extreme value of this type of production data in this local time period; Adjusting the extreme value of the production data in the local time period according to the production mode switching degree value to obtain the maximum difference value of the production data in the local time period; The maximum difference value is used as the upper limit of the difference range of the production data in the local time period, and the opposite number of the maximum difference value is used as the lower limit of the difference range of the production data in the local time period to obtain the difference range of the production data in the local time period; The calculation formula of the maximum difference value is: ; In the formula, is the maximum difference value of the kth type of production data in the i-th local time period; V is the degree of production mode switching; is the largest k-th production data in the i-th local time period; is the smallest k-th production data in the i-th local time period; is the second preset constant, which is greater than 0; The calculation formula of the difference degree value is: ; In the formula, is the difference degree value of the x-th type of production data at the t-th moment in the i-th local time period; is the x-th type of production data at the t-th moment in the i-th local time period; is the x-th type of production data at the t+1-th time in the i-th local time period; is the predicted production data of the x-th type of production data at the t-th time in the i-th local time period; is the third preset constant, ; is the absolute value function; exp is the exponential function with a natural constant as the base; The method for obtaining the differential data is: When the normalized difference degree value is greater than or equal to the preset difference degree value threshold, the corresponding production data is used as the difference data; The method for storing each type of production data at each moment in each local time period according to the difference between each type of production data at each moment in each local time period and adjacent differential data of the same type in the local time period, and the differential range of each type of production data in each local time period is as follows: For any type of production data at any moment in any local time period, obtain the difference between the type of production data at that moment in the local time period and the previous adjacent differential data of the same type in the local time period as the differential value of the type of production data at that moment in the local time period; When the differential value of the production data at the time in the local time period is within the differential range of the production data at the time in the local time period, the differential value of the production data at the time in the local time period is used as the compression storage result in the differential encoding algorithm; When the differential value of the production data at that moment in the local time period is not within the differential range of the production data in the local time period, the production data at that moment in the local time period is not compressed by the differential encoding algorithm and is directly stored.

2. A method for storing icodextrin peritoneal dialysis fluid production data as claimed in claim 1, characterized in that: The method for obtaining the predicted production data is: The predicted production data of each type of production data at each moment in the preset time period is obtained through the time series prediction algorithm.

3. A storage system for icodextrin peritoneal dialysis fluid production data, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When executing the computer program, the processor implements the steps of a method for storing icodextrin peritoneal dialysis fluid production data as described in any one of claims 1 to 2.