An automatic labeling method for peritoneal dialysis diagnosis and treatment data
Through the acquisition of electronic spring scales and the model processing of denoising simulation algorithms, the problem of unauthorized data collection of peritoneal dialysis treatment is solved, real-time and individualized acquisition and processing of peritoneal dialysis treatment data is realized, and a reliable data basis is provided for remote treatment of CAPD.
Patent Information
- Application Number
- CN202111580963.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2041-12-22
AI Technical Summary
The prior art lacks effective algorithms to automate data acquisition during labeled peritoneal dialysis treatment, resulting in data recording that is not real-time and unautomated, affecting the implementation of remote and individualized programs for CAPD treatment.
By constructing an automatic labeling method for peritoneal dialysis diagnosis and treatment data collected using electronic spring scales, including data collection, uploading, storage, and denoising simulation algorithm model processing, automatically identifying the weight and time points of peritoneal fluid, and generating a treatment form.
Real-time and personalized collection and processing of peritoneal dialysis treatment data is realized, the accuracy and real-time nature of data acquisition are improved, and a reliable data foundation is provided for remote treatment of CAPD.
Smart Images

Figure CN114267442B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of peritoneal dialysis, and in particular is an automatic marking method for diagnosis and treatment data of peritoneal dialysis. Background Art
[0002] End-stage renal disease (i.e. uremia) is the terminal stage of chronic kidney disease. Asia is a high-incidence area for end-stage renal disease. In my country, new cases of uremia account for about one in ten thousand of the total population each year. The renal replacement therapy for this group of people costs more than 150 billion yuan each year, and this group is a huge treatment group. Doing a good job in renal replacement therapy for this group, improving treatment effects and quality of life, and striving to enable them to return to society have become the common direction of efforts of nephrology medical practitioners.
[0003] Renal replacement therapy for end-stage renal disease includes three methods: peritoneal dialysis, hemodialysis and allogeneic renal transplantation (hereinafter referred to as "kidney transplantation"). End-stage renal disease patients must choose one of the above three methods. The main bottleneck of kidney transplantation is the acquisition of kidney sources. Due to the difficulty in obtaining kidney sources, kidney transplantation is "unrequestable", and the one-time medical investment in kidney transplantation is too high to be accepted by ordinary patients. Peritoneal dialysis and hemodialysis are the two main methods of renal replacement therapy. A large amount of literature data shows that there is no statistical difference between peritoneal dialysis and hemodialysis in clinical effects, quality of life, and survival rate. From the perspective of cost analysis alone, various research data show that the medical expenses of peritoneal dialysis are generally lower than those of hemodialysis. In many countries, the treatment cost of two peritoneal dialysis patients is equivalent to the treatment cost of one hemodialysis patient. Compared with hemodialysis, peritoneal dialysis can better protect residual renal function, has less impact on the human heart, blood and circulatory system, is less likely to cause various complications such as heart disease, and can be treated at home. The treatment plan is more flexible. Giving priority to peritoneal dialysis helps patients with uremia gain overall survival time for renal replacement therapy, and it is gradually recognized by doctors and generally accepted by patients.
[0004] Continuous ambulatory peritoneal dialysis (CAPD) is a method of retaining 2L of dialysate in the peritoneal cavity for 4-8 hours and exchanging 4-6 times a day. It is a continuous low-flow dialysis that meets physiological requirements and has little impact on the internal environment. It is the most widely used peritoneal dialysis method in clinical practice.
[0005] The Internet of Things is also known as the sensor network internationally. It is another wave of information industry after computers, the Internet and mobile communication networks. Everything in the world, from watches and keys to cars and buildings, can be made intelligent by embedding a micro-sensing chip, and the object can "speak automatically". With the help of wireless network technology, people can "talk" to objects, and objects can "communicate" with each other. This is the Internet of Things.
[0006] Mode refers to the value with a clear central trend point in the statistical distribution, representing the general level of the data. It is also the value that appears most frequently in a set of data. Sometimes there are several modes in a set of numbers. It is represented by M.
[0007] At present, the mainstream treatment of peritoneal dialysis is continuous ambulatory peritoneal dialysis (CAPD) at home. Compared with hemodialysis, peritoneal dialysis can provide patients with better opportunities to return to their families and society, and is more "natural". It is accepted by more and more patients with uremia. The world's more developed countries and regions in the medical industry advocate the treatment concept of "peritoneal dialysis first". For example, Hong Kong, China is a region that has successfully implemented the "peritoneal dialysis first" policy. Patients with end-stage renal disease will only be arranged for hemodialysis when they have contraindications to peritoneal dialysis or are not suitable for continuing peritoneal dialysis treatment due to complications of peritoneal dialysis. This policy greatly reduces medical costs and reduces the demand for purchasing hemodialysis machines and opening hemodialysis treatment centers. It is also supported by the majority of such patients. In the vast remote mountainous areas and economically underdeveloped areas of China, hemodialysis is difficult to carry out due to the lack of effective medical professional technical support and hardware support. Carrying out peritoneal dialysis in these areas can make up for the above shortcomings. Faced with the ever-growing population of end-stage renal disease patients in China and the increasing space and economic burden, giving priority to and implementing peritoneal dialysis is an important measure at present.
[0008] In recent years, the trend of CAPD medical quality management has gradually strengthened. Many peritoneal dialysis centers are strengthening patient follow-up services. Some units have built remote follow-up systems and even developed remote diagnosis and treatment with electronic weighing tools as supporting interfaces. In recent years, reports have begun to appear on the use of flat scales to record CAPD treatment data. Although this solution can remotely record CAPD weighing data, it is unable to record and automatically mark the time series correlation relationship of the weighing data throughout the process. The intermediate process needs to be filled in manually, which reduces the user experience. Therefore, there is still a lack of effective public disclosure of algorithms for the automatic marking of data in the treatment data collection process using electronic spring scales.
[0009] By constructing an automated labeling algorithm model for peritoneal dialysis diagnosis and treatment data collected using an electronic spring scale, it is possible to effectively extract the characteristic data labels and process the collected data chain, which can be used as the data basis for automatically generating treatment forms, providing the possibility for the effective implementation of CAPD remote, real-time, and personalized peritoneal dialysis programs, and is expected to fill the research and application gaps in this field. Summary of the invention
[0010] The purpose of the present invention is to overcome the defects of the prior art and provide a method for automatically marking diagnosis and treatment data of peritoneal dialysis.
[0011] To achieve the above object, the present invention adopts the following technical solutions:
[0012] A method for automatically labeling peritoneal dialysis diagnosis and treatment data, comprising the following steps:
[0013] S1 data collection, obtaining peritoneal dialysis fluid weight data;
[0014] S2 peritoneal dialysis fluid weight data is uploaded to the server;
[0015] S3 data storage;
[0016] S4 sorts out the collection time points and peritoneal dialysis fluid weight, and forms a data chain based on the time sequence;
[0017] S5 automatically identifies the collection time point and peritoneal dialysis fluid weight through a denoising simulation algorithm model;
[0018] S6 displays the prediction results on the front end.
[0019] Preferably, in step S1, data collection includes:
[0020] Home CAPD patients use electronic spring scales to collect peritoneal dialysis fluid weighing data to obtain peritoneal dialysis fluid weight data.
[0021] Preferably, in step S2, uploading the peritoneal dialysis fluid weight data to the server includes:
[0022] The peritoneal dialysis fluid weight data is packaged, encrypted, and asynchronously communicated to the server through the smartphone APP or WeChat applet corresponding to the data communication interface of the electronic spring scale device.
[0023] Preferably, in step S3, data storage includes:
[0024] Decryption, unpacking, standardization, integration and other operations are completed on the server background, and data entry is completed.
[0025] Preferably, in step S5, the collection time point and the peritoneal dialysis fluid weight are automatically marked by a denoising simulation algorithm model, including the following sub-steps:
[0026] S501 sets the peritoneal dialysis fluid packaging quality control value P;
[0027] S502 sets the remaining liquid control value Z at the end of liquid inlet;
[0028] S503 marks all peritoneal dialysis fluid weight data in time series, with the starting value of the sequence being 1, which is a natural number sequence;
[0029] S504 extracts the mode M of all weight data collected at the time that is greater than 0 and not greater than the peritoneal dialysis solution packaging quality control value P;
[0030] S505 sets the corresponding values of the mode M at 90%, 80%, 70%, 60%, 50%, 40%, 30%, 20%, and 10% for a total of 9 nodes, and records them as the ideal weight value L of the peritoneal dialysis fluid inlet. i , receiving diagnosis and treatment data generated during the peritoneal dialysis process sent by a user, wherein the diagnosis and treatment data includes multiple time points and peritoneal dialysis fluid weight data corresponding to each time point;
[0031] S506 Calculate the distance L from each ideal weight value of peritoneal dialysis fluid inflow i The original value index of the most recent value;
[0032] S507 corresponds to each X i , find out the weight data of the corresponding serial number and record it as L i The corresponding nearest weight value Y i , that is, record Y1, Y2, ..., Y9 in sequence;
[0033] S508 Based on the above record (X i , Y i ) is used for straight line fitting, that is, the straight line equation Y=kX+b passing through the above 9 points (X1, Y1), (X2, Y2)..., (X9, Y9) is fitted;
[0034] S509 records the intersection of the fitted straight line equation Y=kX+b and the line Y=M of the mode M as Q1, whose abscissa is XQ1, wherein its ordinate is YQ1 and the weight value corresponding to XQ1 as the serial number, and XQ1 is rounded to ((Mb) / k);
[0035] S510 calculates the mode Me of the weight data whose index is greater than X9 and less than the control value Z of the residual liquid at the end of the liquid inlet;
[0036] S511 calculates the earliest appearing index Xe corresponding to the majority Me;
[0037] S512 calculates the last weight less than the residual liquid control value Z at the end of the liquid inlet and the sequence value greater than Xe, and records it as Xend ;
[0038] S513 calculates the index number to be greater than X end The mode M whose weight is greater than 0 and less than the quality control value P of peritoneal dialysis fluid packaging end ;
[0039] S514 re-simulates the inlet and outlet liquid curve Yn=f(X), the order of each point on the curve is consistent with the order of the original data (curve), and the curve is constructed with the order as the horizontal coordinate and the weight as the vertical coordinate;
[0040] S515 takes out the corresponding six key points Q0', Q1', Q2', Q3', Q4', and Q5' according to the re-simulated inlet and outlet liquid curve Yn=f(X), and the coordinates of these six key points are (X0', Y0'), (X1', Y1')..., (X5', Y5'), respectively. Then X0' is numbered 1, X1' is numbered XQ1, X2' is the number of the first weight equal to the mode Me on the new simulation curve, X3' is numbered Xe, and X4' is the number of the first weight equal to the mode M on the new simulation curve. end X5' is the largest number; Y0', Y1', ..., Y5' are the 6 ordinates corresponding to X0', X1', ..., X5' on the new simulation curve, among which Q0' is the starting point, Q1' is the starting point of liquid inlet or the end point of liquid outlet, Q2' is the end point of liquid inlet or the starting point of tube sealing, Q3' is the end point of tube sealing, Q4' is the starting point of waste liquid weighing, and Q5' is the end point.
[0041] Preferably, in step S501, the peritoneal dialysis fluid packaging quality control value P is the maximum possible value of all collected weight data.
[0042] Preferably, in step S502, the remaining liquid control value Z at the end of liquid inlet is the remaining amount control value of all collected weight data.
[0043] Preferably, in step S506, the distance from each ideal peritoneal dialysis fluid inlet weight value L is calculated. i The raw value sequence of the most recent value, including:
[0044] Subtract the corresponding L from the peritoneal dialysis fluid weight data starting from index 1. i , take the absolute value and record it, traverse all the collected peritoneal dialysis fluid weight data to do the above calculation of the absolute value record sequence, the minimum absolute value is L i The corresponding weight is obtained and the corresponding sequence is recorded as the nearest value label X corresponding to Li i , L i Starting from L1 to L9, repeat the above steps and record X1, X2, ..., X9.
[0045] Preferably, in step S514, the new simulation curve is composed of four parts: (1) a straight line with a horizontal coordinate XQ1 and the previous points being Y=M; (2) a straight line with a horizontal coordinate greater than XQ1 and less than or equal to XQ1. end , if Y i =kX i +b meets Y i is greater than the mode Me, then it is a straight line Y = kX + b; (3) the horizontal coordinate is greater than XQ1 and less than or equal to Y end , if Y i =kX i +b meets Y i is less than or equal to the mode Me, then it is a straight line with Y = Me; (4) the horizontal coordinate is greater than X end , which is Y=M end straight line.
[0046] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0047] In the present invention, by delivering an electronic spring scale with a data transmission function to CAPD patients and performing diagnosis and treatment operations in accordance with customized operating procedures, the electronic spring scale will automatically collect the peritoneal dialysis fluid weight and collection time during the CAPD treatment process, and automatically mark the inlet and outlet time points, inlet weight, outlet time points, and outlet weight accordingly, thereby significantly improving data acquisition, improving data quality, and achieving real-time and effective data acquisition, thereby calculating single residence time and ultrafiltration volume data.
[0048] In the present invention, characteristic data of the fluid exchange treatment process of CAPD patients can be effectively extracted, and this data can be used as the data basis for automatically generating treatment forms, thereby providing the possibility for effectively carrying out CAPD remote, real-time, and individualized peritoneal dialysis programs. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a flow chart of a method for automatically marking diagnosis and treatment data of peritoneal dialysis according to the present invention;
[0050] Figure 2 It is a schematic diagram of corresponding fields in a method for automatically marking diagnosis and treatment data of peritoneal dialysis according to the present invention;
[0051] Figure 3 It is a schematic diagram of the simulation results in the automatic labeling method for peritoneal dialysis diagnosis and treatment data of the present invention. DETAILED DESCRIPTION
[0052] The following is combined with Figure 1-3 , further illustrating a specific implementation of a method for automatically marking diagnosis and treatment data of peritoneal dialysis of the present invention. The method for automatically marking diagnosis and treatment data of peritoneal dialysis of the present invention is not limited to the description of the following embodiments.
[0053] Embodiment 1:
[0054] This embodiment provides a specific implementation method of a method for automatically marking diagnosis and treatment data of peritoneal dialysis. Figure 1 As shown, the following steps are included:
[0055] S1 data collection, obtaining peritoneal dialysis fluid weight data;
[0056] S2 peritoneal dialysis fluid weight data is uploaded to the server;
[0057] S3 data storage;
[0058] S4 sorts out the collection time points and peritoneal dialysis fluid weight, and forms a data chain based on the time sequence;
[0059] S5 automatically identifies the collection time point and peritoneal dialysis fluid weight through a denoising simulation algorithm model;
[0060] S6 displays the prediction results on the front end.
[0061] Furthermore, in step S1, data collection includes:
[0062] The peritoneal dialysis fluid weight data of the CAPD patients at home were collected by electronic spring scale equipment, as shown in Table 1.
[0063]
[0064] Furthermore, in step S2, the peritoneal dialysis fluid weight data is uploaded to the server, including:
[0065] The peritoneal dialysis fluid weight data is packaged, encrypted, and asynchronously communicated to the server through the smartphone APP or WeChat applet corresponding to the data communication interface of the electronic spring scale device.
[0066] Furthermore, in step S3, data storage includes:
[0067] Decryption, unpacking, standardization, integration and other operations are completed on the server background, and data entry is completed.
[0068] Furthermore, in step S5, the collection time point and the peritoneal dialysis fluid weight are automatically marked by a denoising simulation algorithm model, such as Figure 2 As shown, it includes the following sub-steps:
[0069] S501 sets the peritoneal dialysis fluid packaging quality control value P;
[0070] S502 sets the remaining liquid control value Z at the end of liquid inlet;
[0071] S503 marks all peritoneal dialysis fluid weight data in time series, with the starting value of the sequence being 1, which is a natural number sequence;
[0072] S504 extracts the mode M of all weight data collected at the time that is greater than 0 and not greater than the peritoneal dialysis solution packaging quality control value P;
[0073] S505 sets the corresponding values of the mode M at 90%, 80%, 70%, 60%, 50%, 40%, 30%, 20%, and 10% for a total of 9 nodes, and records them as the ideal weight value L of the peritoneal dialysis fluid inlet. i , receiving diagnosis and treatment data generated during the peritoneal dialysis process sent by the user, wherein the diagnosis and treatment data includes multiple time points and peritoneal dialysis fluid weight data corresponding to each time point;
[0074] S506 calculates the original value sequence of the value closest to the ideal weight value Li of each peritoneal dialysis fluid inlet;
[0075] S507 corresponds to each X i , find out the weight data of the corresponding serial number and record it as L i The corresponding most recent weight value Yi, that is, record Y1, Y2, ..., Y9 in sequence;
[0076] S508 Based on the above record (X i , Y i ) is used for straight line fitting, that is, the straight line equation Y=kX+b passing through the above 9 points (X1, Y1), (X2, Y2)..., (X9, Y9) is fitted;
[0077] S509 records the intersection of the fitted straight line equation Y=kX+b and the line Y=M of the mode M as Q1, whose abscissa is XQ1, wherein its ordinate is YQ1 and the weight value corresponding to XQ1 as the serial number, and XQ1 is rounded to ((Mb) / k);
[0078] S510 calculates the mode Me of the weight data whose index is greater than X9 and less than the control value Z of the residual liquid at the end of the liquid inlet;
[0079] S511 calculates the earliest appearing index Xe corresponding to the majority Me;
[0080] S512 calculates the last weight less than the residual liquid control value Z at the end of the liquid inlet and the sequence value greater than Xe, and records it as X end ;
[0081] S513 calculates the index number to be greater than X end The mode M whose weight is greater than 0 and less than the quality control value P of peritoneal dialysis fluid packaging end ;
[0082] S514 re-simulates the inlet and outlet liquid curve Yn=f(X), the order of each point on the curve is consistent with the order of the original data (curve), and the curve is constructed with the order as the horizontal coordinate and the weight as the vertical coordinate;
[0083] S515 takes out the corresponding six key points Q0', Q1', Q2', Q3', Q4', and Q5' according to the re-simulated inlet and outlet liquid curve Yn=f(X), and the coordinates of these six key points are (X0', Y0'), (X1', Y1') ..., (X5', Y5'), respectively. Then X0' is the index 1, X1' is the index XQ1, X2' is the index of the first weight equal to the mode Me on the new simulation curve, X3' is the index Xe, X4' is the index of the first weight equal to the mode Mend on the new simulation curve, and X5' is the maximum index; the six ordinates Y0', Y1', ..., Y5' are the six ordinates corresponding to X0', X1', ..., X5' on the new simulation curve, such as Figure 3 As shown, the solid line (with noise) graph is the original data graph, and the dotted line graph is the denoising simulation algorithm result graph, wherein Q0' is the starting point, Q1' is the liquid inlet starting point or the liquid outlet end point, Q2' is the liquid inlet end point or the tube sealing starting point, Q3' is the tube sealing end point, Q4' is the waste liquid weighing starting point, and Q5' is the end point.
[0084] Furthermore, in step S501, the peritoneal dialysis fluid packaging quality control value P is the maximum possible value of all collected weight data.
[0085] Furthermore, in step S502, the remaining liquid control value Z at the end of the liquid inlet is the remaining amount control value of all collected weight data.
[0086] Further, in step S506, the distance from each ideal peritoneal dialysis fluid inlet weight value L is calculated. i The raw value sequence of the most recent value, including:
[0087] Subtract the corresponding Li from the peritoneal dialysis fluid weight data starting from index 1, take the absolute value and record it, traverse all the collected peritoneal dialysis fluid weight data to perform the above calculation on the absolute value record sequence. The absolute value with the minimum value in the sequence is the weight corresponding to Li, take the index corresponding to the weight and record it as the nearest value label X corresponding to Li i , L i Starting from L1 to L9, repeat the above steps and record X1, X2, ..., X9.
[0088] Furthermore, in step S514, the new simulation curve is composed of four parts: (1) a straight line with a horizontal coordinate XQ1 and previous points where Y=M; (2) a straight line with a horizontal coordinate greater than XQ1 and less than or equal to XQ1. end , if Y i =kX i +b meets Yi is greater than the mode Me, then it is a straight line Y = kX + b; (3) the horizontal coordinate is greater than XQ1 and less than or equal to Y end , if Y i =kX i +b satisfies the condition that Yi is less than or equal to the mode Me, then it is a straight line with Y = Me; (4) the horizontal coordinate is greater than X end , which is Y=M end straight line.
[0089] principle:
[0090] Peritoneal dialysis has an advantage in cost-effectiveness among current renal replacement therapies, and is more likely to allow patients to return to society than hemodialysis. It is accepted by more and more medical workers and patients, and foreign developed countries also use peritoneal dialysis as a preferred method. Home CAPD is currently the mainstream mode of peritoneal dialysis. Dynamic decision-making on the optimal peritoneal dialysis prescription for patients can help improve the patient's efficacy, among which the prediction of therapeutic ultrafiltration volume is a key link.
[0091] This method constructs an automated labeling algorithm model for peritoneal dialysis diagnosis and treatment data collected using an electronic spring scale. It can effectively extract the characteristic data labels and process the collected data chain, and use this as the data basis for automatically generating treatment forms, providing the possibility for the effective implementation of CAPD remote, real-time, and personalized peritoneal dialysis programs, and is expected to fill the research and application gaps in this field.
[0092] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A method for automatically labeling diagnosis and treatment data of peritoneal dialysis, characterized in that: The following steps are involved: S1 data collection, obtaining peritoneal dialysis fluid weight data; S2 peritoneal dialysis fluid weight data is uploaded to the server; S3 data storage; S4 sorts out the collection time points and peritoneal dialysis fluid weight, and forms a data chain based on the time sequence; S5 automatically identifies the collection time point and peritoneal dialysis fluid weight through a denoising simulation algorithm model; S6 displays the prediction results on the front end; In the step S5, the collection time point and the peritoneal dialysis fluid weight are automatically marked by a denoising simulation algorithm model, which includes the following sub-steps: S501 sets the peritoneal dialysis fluid packaging quality control value P; S502 sets the remaining liquid control value Z at the end of liquid inlet; S503 marks all peritoneal dialysis fluid weight data in time series, with the starting value of the sequence being 1, which is a natural number sequence; S504 extracts the mode M of all weight data collected at the time that is greater than 0 and not greater than the peritoneal dialysis solution packaging quality control value P; S505 sets the corresponding values of the mode M at 90%, 80%, 70%, 60%, 50%, 40%, 30%, 20%, and 10% for a total of 9 nodes, and records them as the ideal weight value L of the peritoneal dialysis fluid inlet. i , receiving diagnosis and treatment data generated during the peritoneal dialysis process sent by a user, wherein the diagnosis and treatment data includes multiple time points and peritoneal dialysis fluid weight data corresponding to each time point; S506 Calculate the distance L from each ideal weight value of peritoneal dialysis fluid inflow i The original value order of the most recent value; S507 corresponds to each X i , find out the weight data of the corresponding serial number and record it as L i The corresponding nearest weight value Y i , that is, record Y1, Y2, ..., Y9 in sequence; S508 Based on the above record (X i , Y i ) is used for straight line fitting, that is, the straight line equation Y=kX+b passing through the above 9 points (X1, Y1), (X2, Y2)..., (X9, Y9) is fitted; S509 records the intersection of the fitted straight line equation Y=kX+b and the line Y=M of the mode M as Q1, whose abscissa is XQ1, wherein its ordinate is YQ1 and the weight value corresponding to XQ1 as the serial number, and XQ1 is rounded to ((Mb) / k); S510 calculates the mode Me of the weight data whose index is greater than X9 and less than the control value Z of the residual liquid at the end of the liquid inlet; S511 calculates the earliest appearing index Xe corresponding to the majority Me; S512 calculates the last weight less than the residual liquid control value Z at the end of the liquid inlet and the sequence value greater than Xe, and records it as X end ; S513 calculates the index number to be greater than X end The mode M whose weight is greater than 0 and less than the quality control value P of peritoneal dialysis fluid packaging end ; S514 re-simulates the liquid inlet and outlet curve Yn=f(X), the order of each point on the curve is consistent with the order of the original data, and the curve is constructed with the order as the horizontal axis and the weight as the vertical axis; S515 takes out the corresponding six key points Q0', Q1', Q2', Q3', Q4', and Q5' according to the re-simulated inlet and outlet liquid curve Yn=f(X), and the coordinates of these six key points are (X0', Y0'), (X1', Y1')..., (X5', Y5'), respectively. Then X0' is numbered 1, X1' is numbered XQ1, X2' is the number of the first weight equal to the mode Me on the new simulation curve, X3' is numbered Xe, and X4' is the number of the first weight equal to the mode M on the new simulation curve. end The six ordinates Y0', Y1', ..., Y5' are the six ordinates corresponding to X0', X1', ..., X5' on the new simulation curve, among which Q0' is the starting point, Q1' is the starting point of liquid inflow or the end point of liquid outflow, Q2' is the end point of liquid inflow or the starting point of tube sealing, Q3' is the end point of tube sealing, Q4' is the starting point of waste liquid weighing, and Q5' is the end point; In the step S501, the peritoneal dialysis solution packaging quality control value P is the maximum possible value of all collected weight data; In the step S502, the remaining liquid control value Z at the end of the liquid inlet is the remaining amount control value of all collected weight data; In step S506, the distance from each ideal peritoneal dialysis fluid inlet weight value L is calculated. i The raw value sequence of the most recent value, including: Subtract the corresponding L from the peritoneal dialysis fluid weight data starting from index 1. i , take the absolute value and record it, traverse all the collected peritoneal dialysis fluid weight data to do the above calculation of the absolute value record sequence, the minimum absolute value is L i The corresponding weight is obtained and the corresponding sequence is recorded as the nearest value label X corresponding to Li i , L i Starting from L1 to L9, repeat the above steps and record X1, X2, ..., X9.
2. The method for automatically marking diagnosis and treatment data of peritoneal dialysis according to claim 1, characterized in that: In step S1, data collection includes: Home CAPD patients use electronic spring scales to collect peritoneal dialysis fluid weighing data to obtain peritoneal dialysis fluid weight data.
3. The method for automatically marking diagnosis and treatment data of peritoneal dialysis according to claim 1, characterized in that: In step S2, the peritoneal dialysis fluid weight data is uploaded to the server, including: The peritoneal dialysis fluid weight data is packaged, encrypted, and asynchronously communicated to the server through the smartphone APP or WeChat applet corresponding to the data communication interface of the electronic spring scale device.
4. The method for automatically marking diagnosis and treatment data of peritoneal dialysis according to claim 1, characterized in that: In step S3, data storage includes: Decryption, unpacking, standardization and integration operations are completed on the server background, and data storage is completed.
5. The method for automatically marking diagnosis and treatment data of peritoneal dialysis according to claim 1, characterized in that: In step S514, the new simulation curve is composed of four parts: (1) a straight line with a horizontal coordinate XQ1 and the previous points being Y=M; (2) a straight line with a horizontal coordinate greater than XQ1 and less than or equal to XQ1. end , if Y i =kX i +b meets Y i is greater than the mode Me, then it is a straight line Y = kX + b; (3) the horizontal coordinate is greater than XQ1 and less than or equal to Y end , if Y i =kX i +b meets Y i is less than or equal to the mode Me, then it is a straight line with Y = Me; (4) the horizontal coordinate is greater than X end , which is Y=M end straight line.
