Display method and device for chest drainage volume data, electronic equipment and storage medium
By setting up a magnetic resistance sensor group on both sides of the drainage bottle to obtain height data, calculate the inclination angle and take the average value to display the drainage volume in the shaking state, the problem of inaccurate data when the drainage device is shaking is solved, and a more accurate and stable drainage volume display is achieved.
Patent Information
- Application Number
- CN202511231794.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-01
- Publication Date
- 2025-10-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing chest drainage devices display inaccurate drainage data when in a shaking state, resulting in unstable display and difficulty in providing data with reference value.
A magnetoresistive sensor group is set on both sides of the drainage bottle. The height data of the magnetic float is obtained through the two magnetoresistive sensor groups, and the inclination angle is calculated. The drainage volume data is directly displayed when there is no violent shaking. When there is violent shaking, the height data groups at multiple moments are taken for average calculation to display the drainage volume data.
It improves the accuracy and stability of drainage data, reduces calculation errors and display fluctuations caused by shaking, and provides a stable data reference.
Smart Images

Figure CN120733151A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical technology, and in particular to a method, device, electronic device, and storage medium for displaying chest drainage volume data. Background Art
[0002] Monitoring the drainage volume of drainage fluid using digital chest drainage devices is of great clinical significance during treatment, providing a quantitative basis for determining the timing of extubation. When monitoring the drainage volume, a level sensor first measures the liquid level in the drainage bottle, then calculates the drainage volume data and displays it on the chest drainage device's display.
[0003] There are several existing solutions for measuring liquid levels using liquid level sensors. For example, patent CN102121844B discloses installing several giant magnetoresistive sensors on one side of a container and a magnetic float inside. The giant magnetoresistive sensors are used to calculate the position of the magnetic float to determine the liquid level within the container. This solution is used to measure horizontal liquid levels. However, when measuring the liquid level when an inclined liquid surface is placed horizontally (hereinafter referred to as the inclined liquid level), existing technologies typically use a tilt sensor to first measure the tilt angle. The tilt angle and the height of the magnetic float are then used to calculate the inclined liquid level. However, due to data feedback delays and insufficient accuracy inherent in the tilt sensor, the calculated inclined liquid level is inaccurate. To address this issue, patent CN105004402B discloses installing three ultrasonic sensors above the container. These sensors first measure the liquid level at three different points on the inclined liquid surface, then use this to calculate the tilt angle, and finally the inclined liquid level. This solution eliminates the tilt sensor and instead uses the ultrasonic sensor itself to determine the tilt angle, resulting in improved accuracy.
[0004] However, when calculating the tilted liquid level height, the above-mentioned solutions all assume that the tilted liquid surface is a flat inclined surface. However, the digital chest drainage device is a portable device. If the patient moves during use, the liquid in the drainage bottle will shake. From the beginning to the end of the shaking, the entire liquid surface does not directly transition from a flat horizontal surface to a flat inclined surface, but will produce irregular fluctuations. Therefore, the liquid surface will not always remain flat in the shaking state, and the more severe the shaking, the more uneven the liquid surface. When the liquid is in a shaking state, if the digital chest drainage device adopts the solution in patent CN102121844B, the magnetic float will be affected by the shaking and will produce a certain offset in the liquid, which will lead to inaccurate calculation of the magnetic ball position, and thus the calculation of the tilted liquid level height will have a large error and will not be the true liquid level height. If the digital chest drainage device adopts the solution in patent CN105004402B, the liquid surface may be uneven in the shaking state, and the tilted liquid level height calculated based on the liquid level height at three points will still have a large error. Therefore, when the liquid in the drainage bottle is in a shaking state, the above error will cause the measured tilt liquid level height value to change continuously, and then the drainage volume value displayed on the display screen of the chest drainage device will also jump continuously and display unstable, while in fact the drainage volume has not changed much, which will make it difficult for patients or medical staff to obtain data of reference value.
[0005] Therefore, the current chest drainage devices have technical problems such as inaccurate display of drainage volume data, which needs to be improved. Summary of the Invention
[0006] The embodiments of the present application provide a method, device, electronic device, and storage medium for displaying chest drainage volume data, so as to alleviate the technical problem of inaccurate drainage volume data display existing in current chest drainage equipment.
[0007] To solve the above technical problems, the embodiments of the present application provide the following technical solutions:
[0008] The present application provides a method for displaying chest drainage volume data, the method being applicable to a chest drainage device, the chest drainage device comprising a main unit and a drainage bottle, the drainage bottle being detachably connected to the main unit, the drainage bottle comprising a first side and a second side arranged opposite to each other, a first magnetoresistive sensor group and a second magnetoresistive sensor group being respectively arranged on the outside of the first side and the outside of the second side, the first magnetoresistive sensor group comprising a first upper magnetoresistive sensor arranged at the top and a first lower magnetoresistive sensor arranged at the bottom, the second magnetoresistive sensor group comprising a second upper magnetoresistive sensor arranged at the top and a second lower magnetoresistive sensor arranged at the bottom, a first float channel and a second float channel being respectively arranged inside the first side and the second side, the first float channel being provided with a first magnetic float, and the second float channel being provided with a second magnetic float. The method comprises:
[0009] Acquire first height data of the first magnetic float at each moment using the first magnetoresistive sensor group at a first frequency, and acquire second height data of the second magnetic float at each moment using the second magnetoresistive sensor group at the first frequency to obtain a height data group at each moment;
[0010] Obtaining the tilt angle of the drainage bottle at each moment according to the width data of the drainage bottle and the height data group at each moment;
[0011] Determine whether the tilt angle at the current moment is greater than a preset angle;
[0012] If not, obtaining the central liquid level height data of the drainage bottle according to the average height value of the height data group at the current moment, obtaining the chest drainage volume data according to the central liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and displaying the data on the host at the first frequency;
[0013] If so, obtain n height data groups at n consecutive moments, determine m target height data groups from the n height data groups, obtain the central liquid level height data of the drainage bottle according to the average height values of the m target height data groups, obtain the chest drainage volume data according to the central liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display the data on the host at a second frequency, where the second frequency is equal to 1 / n of the first frequency, m and n are both integers greater than 1, and m is not greater than n.
[0014] In one embodiment, the step of obtaining n sets of height data at n consecutive moments includes:
[0015] Acquire the height data sets of n consecutive moments from the current moment to obtain the n height data sets.
[0016] In another embodiment, the step of obtaining n sets of altitude data at n consecutive moments includes:
[0017] Acquire the height data sets of n1 consecutive moments before the current moment and the height data sets of n2 consecutive moments from the current moment to obtain the n height data sets, where n1+n2=n.
[0018] In one embodiment, the step of determining m target height data sets from the n height data sets comprises:
[0019] Determine whether there is a non-target height data group among the n height data groups, and the inclination angle corresponding to the non-target height data group is equal to that of any other height data group;
[0020] If so, the non-target height data groups are removed from the n height data groups, and the remaining height data groups are determined as m target height data groups.
[0021] In another embodiment, the step of determining m target height data sets from the n height data sets comprises:
[0022] Obtaining the current drainage rate at the current moment;
[0023] Determining a reference central liquid level height range corresponding to each of the n consecutive moments according to the current drainage rate and the real-time shaking time;
[0024] Determine whether there is a non-target height mean among the n height means corresponding to the n height data groups, and the non-target height mean does not fall within the reference center liquid level height range at the corresponding moment;
[0025] If so, the height data group corresponding to the non-target height mean is removed from the n height data groups, and the remaining height data groups are determined as m target height data groups.
[0026] In one embodiment, the step of acquiring first height data of the first magnetic float at each moment using the first magnetoresistive sensor group at a first frequency, and acquiring second height data of the second magnetic float at each moment using the second magnetoresistive sensor group at the first frequency, to obtain a height data set at each moment includes:
[0027] When the drainage amount is zero, first minimum magnetic signal data and first maximum magnetic signal data of the first magnetic float are respectively obtained through the first upper magnetoresistance sensor and the first lower magnetoresistance sensor, and second minimum magnetic signal data and second maximum magnetic signal data of the second magnetic float are respectively obtained through the second upper magnetoresistance sensor and the second lower magnetoresistance sensor;
[0028] When the drainage amount is not zero, the first upper magnetic resistance sensor is used to obtain first magnetic signal data of the first magnetic float at each moment, and the second upper magnetic resistance sensor is used to obtain second magnetic signal data of the second magnetic float at each moment;
[0029] Obtaining first height data of the first magnetic float at each moment according to the first minimum magnetic signal data, the first maximum magnetic signal data, the first magnetic signal data, and the maximum height data of the drainage bottle;
[0030] Obtaining second height data of the second magnetic float at each moment according to the second minimum magnetic signal data, the second maximum magnetic signal data, the second magnetic signal data, and the maximum height data of the drainage bottle;
[0031] The first height data and the second height data at each moment are combined to obtain a height data group at each moment.
[0032] In one embodiment, the step of obtaining the first height data of the first magnetic float at each moment according to the first minimum magnetic signal data, the first maximum magnetic signal data, the first magnetic signal data, and the maximum height data of the drainage bottle includes:
[0033] Calculating a first difference between the first maximum magnetic signal data and the first minimum magnetic signal data, and a second difference between the first magnetic signal data and the first minimum magnetic signal data at each moment;
[0034] Calculating a first ratio of the first difference to the second difference at each moment, and calculating a first product of the first ratio and the maximum height data of the drainage bottle at each moment;
[0035] determining the first product at each moment as first height data of the first magnetic float at each moment;
[0036] The step of obtaining the second height data of the second magnetic float at each moment according to the second minimum magnetic signal data, the second maximum magnetic signal data, the second magnetic signal data, and the maximum height data of the drainage bottle comprises:
[0037] Calculating a third difference between the second maximum magnetic signal data and the second minimum magnetic signal data, and a fourth difference between the second magnetic signal data and the second minimum magnetic signal data at each time;
[0038] Calculating a second ratio of the third difference to the fourth difference at each moment, and calculating a second product of the second ratio and the maximum height data of the drainage bottle at each moment;
[0039] The second product at each moment is determined as the second height data of the second magnetic float at each moment.
[0040] At the same time, an embodiment of the present application further provides a display device for chest drainage volume data, the device being suitable for a chest drainage device, the chest drainage device comprising a main unit and a drainage bottle, the drainage bottle being detachably connected to the main unit, the drainage bottle comprising a first side and a second side arranged opposite to each other, a first magnetoresistive sensor group and a second magnetoresistive sensor group being respectively arranged on the outside of the first side and the outside of the second side, the first magnetoresistive sensor group comprising a first upper magnetoresistive sensor arranged at the top and a first lower magnetoresistive sensor arranged at the bottom, the second magnetoresistive sensor group comprising a second upper magnetoresistive sensor arranged at the top and a second lower magnetoresistive sensor arranged at the bottom, a first float channel and a second float channel extending along the height direction of the drainage bottle being respectively arranged inside the first side and the second side, a first magnetic float being arranged in the first float channel, and a second magnetic float being arranged in the second float channel, the device comprising:
[0041] an acquisition module, configured to acquire first height data of the first magnetic float at each moment using the first magnetoresistive sensor group at a first frequency, and acquire second height data of the second magnetic float at each moment using the second magnetoresistive sensor group at the first frequency, to obtain a height data group at each moment;
[0042] an obtaining module, configured to obtain the tilt angle of the drainage bottle at each moment according to the width data of the drainage bottle and the height data group at each moment;
[0043] A judging module, configured to judge whether the tilt angle at a current moment is greater than a preset angle;
[0044] a first display module, configured to, if no, obtain central liquid level height data of the drainage bottle according to the average height value of the height data group at the current moment, obtain chest drainage volume data according to the central liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display the data on the host at the first frequency;
[0045] The second display module is used to obtain n height data groups at n consecutive moments, determine m target height data groups from the n height data groups, obtain the central liquid level height data of the drainage bottle according to the average height values of the m target height data groups, obtain the chest drainage volume data according to the central liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display it on the host at a second frequency, where the second frequency is equal to 1 / n of the first frequency, m and n are both integers greater than 1, and m is not greater than n.
[0046] The present application also provides an electronic device, comprising a memory and a processor; the memory stores an application, and the processor is used to run the application in the memory to execute the steps in the method for displaying chest drainage volume data described in any one of the above items.
[0047] An embodiment of the present application provides a computer-readable storage medium, which stores a plurality of instructions suitable for loading by a processor to execute the steps in the above-mentioned method for displaying chest drainage volume data.
[0048] Beneficial effects: The present application provides a method, device, electronic device, and storage medium for displaying chest drainage volume data. The method provides magnetoresistive sensor groups on opposite sides of the outside of a drainage bottle. The two magnetoresistive sensor groups are used to obtain height data groups of a magnetic float, and the tilt angle is calculated based on this. When the tilt angle is not greater than a preset angle, it is determined that the drainage bottle has not entered a state of violent shaking. The chest drainage volume data at each moment is directly calculated based on the height data group at each moment, and displayed at a first frequency, which can ensure the display accuracy and timeliness of the chest drainage volume data. When the tilt angle is greater than a preset angle, it is determined that the drainage bottle has entered a state of violent shaking. At this time, height data groups of n consecutive moments are first obtained, and then m target height data groups are selected from them. The chest drainage volume data is calculated based on this and displayed at a second frequency. Since the second frequency is equal to 1 / n of the first frequency, it can not only solve the calculation error caused by the shaking of single-point values, but also alleviate the display jump caused by frequent changes in drainage volume data. The combination of the two makes the display of chest drainage volume data more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The following detailed description of the specific embodiments of the present application in conjunction with the accompanying drawings will make the technical solutions and other beneficial effects of the present application apparent.
[0050] Figure 1 A schematic diagram of a scenario of a method for displaying chest drainage volume data provided in an embodiment of the present application.
[0051] Figure 2 for Figure 1Top view of the mid-thoracic drainage device.
[0052] Figure 3 for Figure 1 Front view of the mid-thoracic drainage device.
[0053] Figure 4 A flowchart of a method for displaying chest drainage volume data provided in an embodiment of the present application.
[0054] Figure 5 A schematic diagram of the structure of a device for displaying chest drainage volume data provided in an embodiment of the present application.
[0055] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0056] Description of reference numerals:
[0057] Main unit 11; drainage bottle 12; display screen 111; first upper magnetoresistance sensor 1; first lower magnetoresistance sensor 2; second upper magnetoresistance sensor 3; second lower magnetoresistance sensor 4; first magnetic float 5; second magnetic float 6; first float channel 7; second float channel 8; first side 121; second side 122; acquisition module 10; obtaining module 20; judgment module 30; first display module 40; second display module 50; radio frequency circuit 101; memory 102; input unit 103; display unit 104; sensor 105; audio circuit 106; WiFi module 107; processor 108; power supply 109. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.
[0059] See also Figure 1 , Figure 1 This is a schematic diagram of a scenario in which the method for displaying chest drainage volume data provided in an embodiment of the present application is applied. The scenario includes a chest drainage device, Figure 2 and Figure 3 They are respectively the top view and the front view of the chest drainage device. Figures 1 to 3It can be seen that the chest drainage device includes a main unit 11 and a drainage bottle 12, which is detachably connected to the main unit 11. The drainage bottle 12 includes a first side 121 and a second side 122 that are arranged opposite to each other. In the connection area between the two, the outside of the first side 121 and the outside of the second side 122 are respectively provided with a first magnetoresistive sensor group and a second magnetoresistive sensor group. The first magnetoresistive sensor group includes a first upper magnetoresistive sensor 1 arranged at the top and a first lower magnetoresistive sensor 2 arranged at the bottom. The second magnetoresistive sensor group includes a second upper magnetoresistive sensor 3 arranged at the top and a second lower magnetoresistive sensor 4 arranged at the bottom. The inside of the first side 121 and the inside of the second side 122 are respectively provided with a first float channel 7 and a second float channel 8 extending along the height direction of the drainage bottle 12. A first magnetic float 5 is provided in the first float channel 7, and a second magnetic float 6 is provided in the second float channel 8.
[0060] The host 11 obtains the first height data of the first magnetic float 5 and the second height data of the second magnetic float 6 respectively through the first magnetoresistance sensor group and the second magnetoresistance sensor group, obtains the height data group at each moment, and uses this to calculate the tilt angle. When the tilt angle is not greater than the preset angle, it is determined that the drainage bottle 12 has not entered a violent shaking state, and the chest drainage volume data at each moment is directly calculated based on the height data group at each moment, and displayed on the display screen 111 of the host 11 at a first frequency, which can ensure the display accuracy and timeliness of the chest drainage volume data. When the tilt angle is greater than the preset angle, it is determined that the drainage bottle 12 has entered a violent shaking state. At this time, the height data groups of n consecutive moments are first taken, and then m target height data groups are selected from them. The chest drainage volume data is calculated based on this and displayed on the display screen 111 of the host 11 at a second frequency.
[0061] Because the second frequency is equal to 1 / n of the first frequency, it can not only resolve the calculation error caused by the jitter of the single-point value, but also alleviate the display jump caused by the frequent changes in the drainage volume data. The combination of these two factors makes the display of chest drainage volume data more accurate. In the following embodiments, the process of displaying chest drainage volume data will be described in detail in combination with the above structure.
[0062] See also Figure 4 , Figure 4 : is a flow chart of a method for displaying chest drainage volume data provided in an embodiment of the present application, which specifically includes:
[0063] S1: obtaining first height data of the first magnetic float at each moment using the first magnetoresistive sensor group at a first frequency, and obtaining second height data of the second magnetic float at each moment using the second magnetoresistive sensor group at the first frequency, to obtain a height data group at each moment.
[0064] Combine Figures 1 to 3As shown, the drainage bottle 12 is connected to the human chest cavity via a drainage tube. Under the control of the host 11, drainage fluid in the human chest cavity can flow into the drainage bottle 12. As drainage progresses, the level of the drainage fluid gradually rises, and the first magnetic float 5 and the second magnetic float 6 disposed within the first float channel 7 and the second float channel 8 also rise with the rise in the liquid level. The dotted line between the first magnetic float 5 and the second magnetic float 6 represents the inclined liquid surface. The first float channel 7 and the second float channel 8 can confine the first magnetic float 5 and the second magnetic float 6 within the channel, but drainage fluid from other areas can freely flow in and out of the first float channel 7 and the second float channel 8. Therefore, the liquid levels inside and outside the two channels can be kept essentially level. The height of the first magnetic float 5 and the second magnetic float 6 can be used to determine the liquid level at the location of the floats.
[0065] Each magnetoresistive sensor operates by utilizing the magnetoresistive effect, which refers to the change in resistivity of a magnetic material in an external magnetic field. Specifically, each magnetoresistive sensor contains a sensing element, and each magnetic float provides an external magnetic field. When the sensing element is affected by the applied magnetic field, its resistance changes. By measuring this resistance change, changes in the magnetic field can be determined. This magnetic field change is correlated with changes in the distance between the sensing element and the magnetic float. Therefore, the data measured by each magnetoresistive sensor can be converted from digital to analog, outputting an analog-to-digital value. This value is then used to determine the distance between the two elements, and thus the height of each magnetic float.
[0066] In the embodiment of the present application, the first height data of the first magnetic float 5 can be obtained through the magnetoresistive effect between the first magnetoresistive sensor group and the first magnetic float 5, and the second height data of the second magnetic float 6 can be obtained through the magnetoresistive effect between the second magnetoresistive sensor group and the second magnetic float 6. The first height data and the second height data obtained at the same moment together constitute the height data set at that moment. When acquiring the first and second height data, they are acquired at a first frequency, and the value of the first frequency can be set as needed. For example, a first frequency of 10 Hz means that data is acquired at 10 moments in 1 second, and the intervals between any two adjacent moments in the 10 moments are equal in length. For ease of explanation, in the following embodiments, Hl and Hr are used to represent the first and second height data, respectively.
[0067] In one embodiment, S1 specifically includes:
[0068] S11: When the drainage amount is zero, the first minimum magnetic signal data and the first maximum magnetic signal data of the first magnetic float are respectively obtained through the first upper magnetoresistance sensor and the first lower magnetoresistance sensor, and the second minimum magnetic signal data and the second maximum magnetic signal data of the second magnetic float are respectively obtained through the second upper magnetoresistance sensor and the second lower magnetoresistance sensor.
[0069] The magnetic signal data measured by the magnetoresistive sensor is negatively correlated with the distance between the magnetoresistive sensor and the magnetic float; that is, the closer the distance, the stronger the magnetic signal. In the initial state, there is no drainage fluid in the drainage bottle 12, and the drainage volume is zero. At this time, the first magnetic float 5 is located at the bottom of the first float channel 7. The first upper magnetoresistive sensor 1 can obtain the first minimum magnetic signal data Vmin1 of the first magnetic float 5, and the first lower magnetoresistive sensor 2 can obtain the first maximum magnetic signal data Vmax1 of the first magnetic float 5. Similarly, the second upper magnetoresistive sensor 3 can obtain the second minimum magnetic signal data Vmin2 of the second magnetic float 6, and the second lower magnetoresistive sensor 4 can obtain the second maximum magnetic signal data Vmax2 of the second magnetic float 6.
[0070] S12: When the drainage amount is not zero, the first magnetic signal data of the first magnetic float at each moment is obtained by the first upper magnetoresistive sensor, and the second magnetic signal data of the second magnetic float at each moment is obtained by the second upper magnetoresistive sensor.
[0071] At other times after the drainage starts, the drainage amount is not zero. At this time, the first magnetic float 5 is located between the top and bottom of the first float channel 7. The first upper magnetic resistance sensor 1 can obtain the first magnetic signal data Va1 of the first magnetic float 5, and the second upper magnetic resistance sensor 3 can obtain the second magnetic signal data Va2 of the second magnetic float 6.
[0072] S13: Obtaining first height data of the first magnetic float at each moment according to the first minimum magnetic signal data, the first maximum magnetic signal data, the first magnetic signal data, and the maximum height data of the drainage bottle.
[0073] In existing technology, a single magnetoresistive sensor directly measures the magnetic signal between it and the magnetic float. This signal is then converted to the height of the magnetic float, which is then used as the liquid level at the location of the magnetic float. However, zero offset in the magnetoresistive sensor can lead to inaccurate liquid level monitoring. For example, when the drainage volume is zero, the liquid level at the location of the magnetic float is actually zero, but the magnetoresistive sensor may measure a non-zero value. This results in errors in all subsequent height measurements, resulting in significant errors in the liquid level.
[0074] In an embodiment of the present application, after obtaining the above data, relevant calculations are performed on these data at each moment to remove the influence caused by the zero point offset of the first magnetoresistive sensor group. The first height data H1 of the first magnetic float 5 finally obtained can reflect the actual liquid level height of the position.
[0075] S14: Obtaining second height data of the second magnetic float at each moment according to the second minimum magnetic signal data, the second maximum magnetic signal data, the second magnetic signal data, and the maximum height data of the drainage bottle.
[0076] Similarly, after obtaining the above data, relevant calculations are performed on these data at each moment to remove the influence of the zero offset of the second magnetoresistive sensor group. The second height data Hr of the second magnetic float 6 finally obtained can reflect the actual liquid level height at that position.
[0077] S15: Combining the first height data and the second height data at each moment to obtain a height data group at each moment.
[0078] By combining the first height data H1 and the second height data Hr at each moment, a height data group at each moment can be obtained.
[0079] In one embodiment, S14 specifically includes:
[0080] S141: Calculate a first difference between the first maximum magnetic signal data and the first minimum magnetic signal data, and a second difference between the first magnetic signal data and the first minimum magnetic signal data at each moment.
[0081] S142: Calculate a first ratio of the first difference to the second difference at each moment, and calculate a first product of the first ratio and the maximum height data of the drainage bottle at each moment.
[0082] S143: Determine the first product at each moment as the first height data of the first magnetic float at each moment.
[0083] The first difference Va1-Vmin1 is used to represent the change in the magnetic signal data measured by the first upper magnetic resistance sensor 1 from the moment when the drainage is zero to any moment when the drainage volume is not zero. The second difference Vmax1-Vmin1 is used to represent the magnetic signal data interval that can be measured within the capability of the first magnetic resistance sensor group. The first ratio of the two is (Va1-Vmin1) / (Vmax1-Vmin1). This ratio is used to represent the proportion of the change in the magnetic signal data corresponding to the first magnetic float 5 in the entire magnetic signal data interval. Since the magnetic signal data corresponds to the height data one-to-one, this ratio can be used to represent the proportion of the change in the height of the first magnetic float 5 in the entire height interval. This proportion is multiplied by the maximum height data Hmax of the drainage bottle 12, and the resulting first product is determined as the first height data Hl of the first magnetic float 5. This process can be represented by the following formula:
[0084] (Formula 1)
[0085] In one embodiment, S15 specifically includes:
[0086] S151: Calculate the third difference between the second maximum magnetic signal data and the second minimum magnetic signal data, and the fourth difference between the second magnetic signal data and the second minimum magnetic signal data at each moment.
[0087] S152: Calculate a second ratio of the third difference to the fourth difference at each moment, and calculate a second product of the second ratio and the maximum height data of the drainage bottle at each moment.
[0088] S153: Determine the second product at each moment as the second height data of the second magnetic float at each moment.
[0089] Similarly, the third difference Va2-Vmin2 is used to represent the change in magnetic signal data measured by the first upper magnetic resistance sensor 1 from the moment when the drainage zero is zero to any moment when the drainage volume is non-zero. The fourth difference Vmax2-Vmin2 is used to represent the magnetic signal data interval that can be measured within the capability of the second magnetic resistance sensor group. The second ratio of the two is (Va2-Vmin2) / (Vmax2-Vmin2). This ratio is used to represent the proportion of the change in magnetic signal data corresponding to the second magnetic float 6 within the entire magnetic signal data interval. Since the magnetic signal data corresponds to the height data one-to-one, this ratio can be used to represent the proportion of the change in the height of the second magnetic float 6 within the entire height interval. This proportion is multiplied by the maximum height data Hmax of the drainage bottle 12, and the resulting second product is determined as the second height data Hr of the second magnetic float 6. This process can be expressed by the following formula:
[0090] (Formula 2)
[0091] Since the proportion of height change in the entire height range is not affected by whether the magnetic sensor has zero offset, the calculated proportion is very accurate. The maximum height data Hmax of the drainage bottle 12 is a pre-designed fixed value. The first height data Hl and the second height data Hr obtained based on the above two formulas can eliminate the influence of zero offset and have higher accuracy.
[0092] S2: Obtaining the tilt angle of the drainage bottle at each moment according to the width data of the drainage bottle and the height data set at each moment.
[0093] Assuming that the width of the drainage bottle 12 is W, and the height data set at a certain moment includes the first height data H1 and the second height data Hr, then the tilt angle θ of the drainage bottle 12 at that moment satisfies the following formula:
[0094] (Formula 3)
[0095] According to this formula, the tilt angle at each moment under the first frequency can be calculated, and this value is also the tilt angle of the liquid surface at each moment.
[0096] S3: Determine whether the current tilt angle is greater than a preset angle.
[0097] The current moment can be any moment at the first frequency. After the tilt angle is calculated at the current moment, it is first determined whether its value is greater than a preset angle. The value of the preset angle can be set based on experience, such as 15 degrees. The setting standard of this value is that when the angle is exceeded, the liquid surface will shake more violently, otherwise the shaking will be more gentle.
[0098] S4: If not, obtain the central liquid level height data of the drainage bottle according to the average height of the height data group at the current moment, obtain the chest drainage volume data according to the central liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display it on the host at the first frequency.
[0099] If the judgment result is no, it means that the liquid surface is not shaking at the current moment, the liquid surface is a flat horizontal plane, or the shaking amplitude is small. When shaking, the liquid surface can roughly maintain a flat inclined surface and can quickly return to a flat horizontal plane. In this case, the first height data Hl and the second height data Hr contained in the height data group at the current moment can be directly averaged, and the calculated height average is used as the central liquid level height data of the drainage bottle. This value can represent the liquid level height after the inclined liquid surface is flattened. Let the central liquid level height be Hm, then Hm satisfies the following formula:
[0100] (Formula 4)
[0101] Assume that the maximum height of the drainage bottle is Hmax, and the maximum capacity of the drainage bottle is Vmax, then the chest drainage volume at the current moment is Satisfies the following formula:
[0102] (Formula 5)
[0103] In getting After that, it is displayed in the host at the first frequency, that is, every time a moment is calculated , are refreshed and displayed on the display screen 111 of the host 11.
[0104] S5: If so, obtain n height data groups of n consecutive moments, determine m target height data groups from the n height data groups, obtain the central liquid level height data of the drainage bottle according to the average height value of the m target height data groups, obtain the chest drainage volume data according to the central liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display it on the host at a second frequency, where the second frequency is equal to 1 / n of the first frequency, m and n are both integers greater than 1, and m is not greater than n.
[0105] If the judgment result is yes, it means that the current tilt degree is large and the liquid surface will enter a violent shaking state. Only the first height data Hl and the second height data Hr measured at a single point are used to calculate the center liquid level height Hm, and then the obtained There will be a large error, and this error will cause The value changes frequently. If it is still displayed according to the higher first frequency, the displayed data will jump significantly.
[0106] Therefore, in an embodiment of the present application, if the judgment result is yes, n height data groups of n consecutive moments will be obtained first, and n consecutive moments refer to n moments at the first frequency. When obtaining, a first data queue can be established for the first height data, and the pointer for inserting data at the initial moment points to 0. Each time a first height data is obtained from the first magnetoresistive sensor group, it is placed in the first data queue in order, and the pointer for inserting data is moved back one position. When the total number of data in the first data queue is n, it can be taken out as n height data groups, and the pointer for inserting data of the first data queue is re-pointed to 0, and the n height data groups of the next n consecutive moments are continued to be obtained. The same is true for the second height data, which will not be repeated here. After obtaining n height data groups, m target height data groups that meet the requirements can be selected from them, where m and n are both integers greater than 1, and m is not greater than n.
[0107] When m is equal to n, it means that all n height data groups meet the requirements. At this time, the mean of the m first height data H1 is calculated respectively. and the mean of m second height data Hr , and finally calculated and The height average is used as the center liquid level height data of the drainage bottle. This value can represent the liquid level height after the inclined liquid surface is leveled. Assume that the center liquid level height is ,but Satisfies the following formula:
[0108] (Formula 6)
[0109] Assume that the maximum height of the drainage bottle is Hmax, and the maximum capacity of the drainage bottle is Vmax, then the chest drainage volume data is Satisfies the following formula:
[0110] (Formula 7)
[0111] because It is calculated based on the data of n height data groups, and then it is displayed in the host at a second frequency. The second frequency is equal to 1 / n of the first frequency. If the first frequency is 10Hz and n is 10, the second frequency is 1Hz, that is, it is displayed once every 1 second from the current moment.
[0112] In this step, when the drainage bottle 12 is shaken violently, the average of the height data at multiple moments is taken to calculate the final chest drainage volume data, which plays a role of smoothing filtering. Compared with the single-point value taking and calculation scheme, the calculation results in this application are more accurate and the error is smaller. In addition, this application uses a lower second frequency to display the data, which will reduce the display jump problem caused by the above-mentioned error. The displayed chest drainage volume data can provide effective reference value for patients or medical staff.
[0113] There are multiple ways to obtain n sets of altitude data at n consecutive moments.
[0114] In one embodiment, S5 specifically includes:
[0115] S51: Acquire n consecutive height data sets from the current moment to obtain n height data sets.
[0116] In this embodiment, the current time t1 is taken as the starting time, and n height data sets are acquired sequentially starting from t1, so as to obtain n height data sets in total. This set of data can reflect the overall change of the liquid level since the current time.
[0117] In another embodiment, S5 specifically includes:
[0118] S52: Acquire the height data sets of n1 consecutive moments before the current moment and the height data sets of n2 consecutive moments from the current moment, to obtain n height data sets, n1+n2=n.
[0119] In this embodiment, taking the current moment t1 as the intermediate moment, a set of height data for n1 consecutive moments before t1 is acquired, and starting from t1, a set of height data for n2 moments is acquired, resulting in a total of n sets of height data. Typically, the sloshing state does not persist for a long time, and the change in liquid level from insignificant sloshing to significant sloshing does not change significantly. Since the calculated liquid level value before t1 is more accurate than that in the sloshing state, using n1 sets of height data from n1 moments before t1 for the calculation can reduce the error caused by the sloshing effect and make the result more accurate.
[0120] The above steps S51 and S52 are parallel technical solutions. Those skilled in the art can select one of the solutions to perform as needed to achieve the desired effect.
[0121] When m is less than n, it means that only some of the n height data sets meet the requirements and need to be further screened. Therefore, in one embodiment, after S51 or S52, the following steps are included:
[0122] S53: Determine whether there is a non-target height data group among the n height data groups, and whether the non-target height data group has the same inclination angle as any other height data group.
[0123] S54: If yes, remove non-target height data groups from the n height data groups, and determine the remaining height data groups as m target height data groups.
[0124] Normally, when the liquid surface is shaken violently, the highest and lowest points of the liquid surface will alternately appear at the positions of the first magnetic float 5 and the second magnetic float 6. During the alternating process, the left tilt angle and the right tilt angle may be equal in value. For example, at a certain moment, the position of the first magnetic float 5 is lower than the position of the second magnetic float 6, and the left tilt angle is 16 degrees. As the shaking continues, the position of the first magnetic float 5 continues to drop, and the position of the second magnetic float 6 continues to rise, and the left tilt angle reaches a maximum of 17 degrees. Then, the position of the first magnetic float 5 gradually rises, and the position of the second magnetic float 6 gradually drops, until the position of the first magnetic float 5 is higher than the position of the second magnetic float 6, and the right tilt angle is 16 degrees. If the value of n is large, or the maximum tilt angle is close to the preset angle, then there may be two height data groups in the n height data groups that have the same tilt angle (in opposite directions), and the height data contained in the two height data groups will be close. If the error of one is large, the error of the other will also be large. If both are included in the calculation of the mean, the error will be doubled and accumulated, and the final value will be The error is also large.
[0125] Therefore, in the embodiment of the present application, after obtaining n height data sets, it will first be determined whether there is a non-target height data set. If the non-target height data set has the same inclination angle as any other height data set, the non-target height data set will be removed and the remaining n-1 height data sets will be used as the m target height data sets. In this way, it can be ensured that the inclination angles corresponding to the m target height data sets are not equal, thereby avoiding the situation of doubling the accumulation of errors and improving the calculation accuracy. accuracy.
[0126] In another embodiment, after S51 or S52, the method further includes:
[0127] S55: Obtain the current drainage rate at the current moment.
[0128] S56: Determine the reference central liquid level height range corresponding to each of the n consecutive moments according to the current drainage rate and the real-time shaking time.
[0129] S57: Determine whether there is a non-target height mean among the n height mean values corresponding to the n height data groups, and the non-target height mean value does not fall within the reference center liquid level height range at the corresponding moment.
[0130] S58: If yes, remove the height data groups corresponding to the non-target height mean values from the n height data groups, and determine the remaining height data groups as m target height data groups.
[0131] Since the shaking time usually does not last for a long time, the drainage volume of fluid drawn from the chest cavity during the shaking period will not change significantly, and the corresponding central liquid level height will not change significantly either. If the central liquid level height calculated at a certain moment changes significantly, the data at that moment may have a large error and needs to be removed to reduce the error of the final calculation result.
[0132] When determining these data with large errors, it is necessary to first obtain the current drainage rate at the current moment, and then use the current drainage rate as a reference for all other moments from the current moment. For each moment, the reference center liquid level height range corresponding to each moment can be calculated based on the current drainage rate and the real-time shaking time, where the real-time shaking time refers to the difference between the shaking moment and the current moment. Specifically, assuming that the current drainage rate is v, the real-time shaking time from the current moment t1 to the next moment t2 is t2-t1, then the increase in drainage volume during this time is v*(t2-t1). Based on this value, the center liquid level height data at the current moment, and the width data of the drainage bottle, the reference center liquid level height corresponding to the next moment t2 can be calculated. Taking into account errors and fluctuations, the reference center liquid level height ±x% can be used as the reference center liquid level height range, and the value of x% can be set as needed, for example, 5%. For the moment t3 after moment t2, a reference center liquid level height range can also be obtained according to this method, and the same applies to other moments.
[0133] After obtaining n height data sets, for each height data set, the height mean of the first height data and the second height data contained therein is calculated, and then it is determined whether the height mean falls within the reference center liquid level height range corresponding to the moment. If it does, the height data set is retained. If not, the height data set is treated as a non-target height data set and removed from the n height data sets. The remaining height data sets are determined as m target height data sets.
[0134] By using the above method, non-target height data groups with obvious errors or large errors can be removed from the n height data groups, thereby improving the accuracy of the height data. accuracy.
[0135] The above steps S53 to S54 and S55 to S58 are two technical solutions. Those skilled in the art can select one of the solutions for screening according to their needs, or can combine the two solutions for screening to achieve the desired effect.
[0136] As can be seen from the above embodiments, the method for displaying chest drainage volume data provided by the present application includes disposing magnetoresistive sensor groups on opposite sides of the exterior of the drainage bottle. The two magnetoresistive sensor groups acquire height data sets of the magnetic float, which are then used to calculate the tilt angle. When the tilt angle is no greater than a preset angle, the drainage bottle is determined to be in a non-violent shaking state. The chest drainage volume data at each moment is calculated directly based on the height data sets at each moment and displayed at a first frequency, thereby ensuring the accuracy and timeliness of the chest drainage volume data display. When the tilt angle is greater than a preset angle, the drainage bottle is determined to be in a non-violent shaking state. At this time, n consecutive height data sets are first acquired, and then m target height data sets are selected from them. The chest drainage volume data is calculated based on these data sets and displayed at a second frequency. Since the second frequency is equal to 1 / n of the first frequency, this method can both resolve calculation errors caused by shaking in single-point values and alleviate display jitter caused by frequent changes in drainage volume data. The combination of these two factors results in more accurate display of chest drainage volume data.
[0137] Based on the method described in the above embodiment, this embodiment will be further described from the perspective of a device for displaying chest drainage volume data. The device is suitable for chest drainage equipment, which includes a main unit and a drainage bottle. The drainage bottle is detachably connected to the main unit. The drainage bottle includes a first side and a second side that are arranged opposite to each other. A first magnetoresistive sensor group and a second magnetoresistive sensor group are respectively provided on the outside of the first side and the outside of the second side. The first magnetoresistive sensor group includes a first upper magnetoresistive sensor provided at the top and a first lower magnetoresistive sensor provided at the bottom. The second magnetoresistive sensor group includes a second upper magnetoresistive sensor provided at the top and a second lower magnetoresistive sensor provided at the bottom. A first float channel and a second float channel extending along the height direction of the drainage bottle are respectively provided inside the first side and the second side. A first magnetic float is provided in the first float channel, and a second magnetic float is provided in the second float channel. Please refer to Figure 5 The device for displaying chest drainage volume data may include:
[0138] an acquisition module 10, configured to acquire first height data of the first magnetic float at each moment using the first magnetoresistive sensor group at a first frequency, and acquire second height data of the second magnetic float at each moment using the second magnetoresistive sensor group at the first frequency, to obtain a height data set at each moment;
[0139] An obtaining module 20 is configured to obtain the tilt angle of the drainage bottle at each moment according to the width data of the drainage bottle and the height data group at each moment;
[0140] A judging module 30, configured to judge whether the tilt angle at the current moment is greater than a preset angle;
[0141] a first display module 40 configured to, if no, obtain central liquid level height data of the drainage bottle based on the average height value of the height data group at the current moment, obtain chest drainage volume data based on the central liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display the data on the host at the first frequency;
[0142] The second display module 50 is used to obtain n height data groups at n consecutive moments, determine m target height data groups from the n height data groups, obtain the central liquid level height data of the drainage bottle according to the average height values of the m target height data groups, obtain the chest drainage volume data according to the central liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display the data on the host at a second frequency, where the second frequency is equal to 1 / n of the first frequency, m and n are both integers greater than 1, and m is not greater than n.
[0143] In one embodiment, the second display module 50 includes:
[0144] The first acquisition submodule is configured to acquire height data sets for n consecutive moments starting from the current moment, to obtain the n height data sets.
[0145] In one embodiment, the second display module 50 further includes:
[0146] The second acquisition submodule is used to acquire the height data groups of n1 consecutive moments before the current moment and the height data groups of n2 consecutive moments from the current moment, to obtain the n height data groups, n1+n2=n.
[0147] In one embodiment, the second display module 50 includes:
[0148] A first judgment submodule is configured to judge whether there is a non-target height data group among the n height data groups, and the inclination angle corresponding to the non-target height data group is equal to that corresponding to any other height data group;
[0149] The first determining submodule is configured to, if yes, remove the non-target height data groups from the n height data groups, and determine the remaining height data groups as m target height data groups.
[0150] In one embodiment, the second display module 50 further includes:
[0151] A third acquisition submodule is used to obtain the current drainage rate at the current moment;
[0152] A second determination submodule is configured to determine a reference central liquid level height range corresponding to each of the n consecutive moments according to the current drainage rate and the real-time shaking time;
[0153] The second judgment submodule is used to judge whether there is a non-target height mean among the n height means corresponding to the n height data groups, and the non-target height mean does not fall within the reference center liquid level height range at the corresponding moment;
[0154] The third determining submodule is configured to, if yes, remove the height data group corresponding to the non-target height mean from the n height data groups, and determine the remaining height data groups as m target height data groups.
[0155] In one embodiment, the acquisition module 10 includes:
[0156] a fourth acquisition submodule, configured to, when the drainage amount is zero, respectively acquire first minimum magnetic signal data and first maximum magnetic signal data related to the first magnetic float through the first upper magnetoresistance sensor and the first lower magnetoresistance sensor, and respectively acquire second minimum magnetic signal data and second maximum magnetic signal data related to the second magnetic float through the second upper magnetoresistance sensor and the second lower magnetoresistance sensor;
[0157] a fifth acquisition submodule, configured to acquire, when the drainage amount is not zero, first magnetic signal data of the first magnetic float at each moment through the first upper magnetoresistive sensor, and acquire second magnetic signal data of the second magnetic float at each moment through the second upper magnetoresistive sensor;
[0158] a first obtaining submodule, configured to obtain first height data of the first magnetic float at each moment according to the first minimum magnetic signal data, the first maximum magnetic signal data, the first magnetic signal data, and the maximum height data of the drainage bottle;
[0159] a second obtaining submodule, configured to obtain second height data of the second magnetic float at each moment according to the second minimum magnetic signal data, the second maximum magnetic signal data, the second magnetic signal data, and the maximum height data of the drainage bottle;
[0160] The third obtaining submodule is used to combine the first height data and the second height data at each moment to obtain a height data group at each moment.
[0161] In one embodiment, the first obtaining submodule includes:
[0162] a first calculating unit, configured to calculate a first difference between the first maximum magnetic signal data and the first minimum magnetic signal data, and a second difference between the first magnetic signal data and the first minimum magnetic signal data at each moment;
[0163] a second calculation unit, configured to calculate a first ratio of the first difference to the second difference at each moment, and calculate a first product of the first ratio and the maximum height data of the drainage bottle at each moment;
[0164] a first determining unit, configured to determine the first product at each moment as first height data of the first magnetic float at each moment;
[0165] The second submodule includes:
[0166] a third calculating unit, configured to calculate a third difference between the second maximum magnetic signal data and the second minimum magnetic signal data, and a fourth difference between the second magnetic signal data and the second minimum magnetic signal data at each moment;
[0167] a fourth calculation unit, configured to calculate a second ratio of the third difference to the fourth difference at each moment, and calculate a second product of the second ratio and the maximum height data of the drainage bottle at each moment;
[0168] The second determining unit is configured to determine the second product at each moment as the second height data of the second magnetic float at each moment.
[0169] Different from the prior art, the display device for chest drainage volume data provided by the present application has magnetoresistive sensor groups disposed on opposite sides of the exterior of the drainage bottle. The two magnetoresistive sensor groups are used to obtain height data groups of the magnetic float, and the tilt angle is calculated based on this. When the tilt angle is not greater than a preset angle, it is determined that the drainage bottle has not entered a state of violent shaking. The chest drainage volume data at each moment is directly calculated based on the height data groups at each moment and displayed at a first frequency, which can ensure the display accuracy and timeliness of the chest drainage volume data. When the tilt angle is greater than a preset angle, it is determined that the drainage bottle has entered a state of violent shaking. At this time, height data groups of n consecutive moments are first obtained, and then m target height data groups are selected from them. Based on this, the chest drainage volume data is calculated and displayed at a second frequency. Since the second frequency is equal to 1 / n of the first frequency, it can not only solve the calculation error caused by the shaking of single-point values, but also alleviate the display jump caused by frequent changes in drainage volume data. The combination of the two makes the display of chest drainage volume data more accurate.
[0170] Accordingly, the embodiment of the present application further provides an electronic device, such as Figure 6As shown, the electronic device may include components such as a radio frequency (RF) circuit 101, a memory 102 including one or more computer-readable storage media, an input unit 103, a display unit 104, a sensor 105, an audio circuit 106, a WiFi module 107, a processor 108 including one or more processing cores, and a power supply 109. It will be understood by those skilled in the art that Figure 6 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.
[0171] The radio frequency circuit 101 can be used to receive and transmit signals during information transmission or calls. Specifically, it receives downlink information from the base station and transmits it to one or more processors 108 for processing. It also transmits uplink data to the base station. The memory 102 can be used to store software programs and modules. The processor 108 executes various functional applications by running the software programs and modules stored in the memory 102. The input unit 103 can be used to receive digital or character input and generate keyboard, mouse, joystick, optical, or trackball signal input related to user settings and function control.
[0172] The display unit 104 may be used to display information input by a client or information provided to a client, as well as various graphical client interfaces of the server. These graphical client interfaces may be composed of graphics, text, icons, videos, or any combination thereof.
[0173] The electronic device may further include at least one sensor 105, such as a light sensor, a motion sensor, or other sensors. The audio circuit 106 may include a speaker, which may provide an audio interface between the user and the electronic device.
[0174] WiFi is a wireless transmission technology. Electronic devices can help customers send and receive emails, browse web pages and follow up streaming media through WiFi module 107. It provides customers with wireless broadband Internet follow-up. Figure 6 A WiFi module 107 is shown, but it is understandable that it is not an essential component of the electronic device and can be omitted as needed without changing the essence of the application.
[0175] The processor 108 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 102 and calling data stored in the memory 102, it performs various functions of the electronic device and processes data, thereby monitoring the entire mobile phone.
[0176] The electronic device also includes a power supply 109 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 108 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.
[0177] Although not shown, the electronic device may also include a camera, a Bluetooth module, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 108 in the server will load the executable files corresponding to one or more application processes into the memory 102 according to the following instructions, and the processor 108 will run the application stored in the memory 102, thereby achieving the following functions:
[0178] Acquire first height data of the first magnetic float at each moment using the first magnetoresistive sensor group at a first frequency, and acquire second height data of the second magnetic float at each moment using the second magnetoresistive sensor group at the first frequency to obtain a height data group at each moment;
[0179] Obtaining the tilt angle of the drainage bottle at each moment according to the width data of the drainage bottle and the height data group at each moment;
[0180] Determine whether the tilt angle at the current moment is greater than a preset angle;
[0181] If not, obtaining the central liquid level height data of the drainage bottle according to the average height value of the height data group at the current moment, obtaining the chest drainage volume data according to the central liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and displaying the data on the host at the first frequency;
[0182] If so, obtain n height data groups at n consecutive moments, determine m target height data groups from the n height data groups, obtain the central liquid level height data of the drainage bottle according to the average height values of the m target height data groups, obtain the chest drainage volume data according to the central liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display the data on the host at a second frequency, where the second frequency is equal to 1 / n of the first frequency, m and n are both integers greater than 1, and m is not greater than n.
[0183] The electronic device provided in this application can make the display of chest drainage volume data more accurate.
[0184] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, please refer to the detailed description above and will not be repeated here.
[0185] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0186] To this end, an embodiment of the present application provides a computer-readable storage medium, which can be set.
[0187] The computer-readable storage medium stores a plurality of instructions, which can be loaded by the processor to implement the following functions:
[0188] Acquire first height data of the first magnetic float at each moment using the first magnetoresistive sensor group at a first frequency, and acquire second height data of the second magnetic float at each moment using the second magnetoresistive sensor group at the first frequency to obtain a height data group at each moment;
[0189] Obtaining the tilt angle of the drainage bottle at each moment according to the width data of the drainage bottle and the height data group at each moment;
[0190] Determine whether the tilt angle at the current moment is greater than a preset angle;
[0191] If not, obtaining the central liquid level height data of the drainage bottle according to the average height value of the height data group at the current moment, obtaining the chest drainage volume data according to the central liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and displaying the data on the host at the first frequency;
[0192] If so, obtain n height data groups at n consecutive moments, determine m target height data groups from the n height data groups, obtain the central liquid level height data of the drainage bottle according to the average height values of the m target height data groups, obtain the chest drainage volume data according to the central liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display the data on the host at a second frequency, where the second frequency is equal to 1 / n of the first frequency, m and n are both integers greater than 1, and m is not greater than n.
[0193] The computer-readable storage medium provided in this application can make the display of chest drainage volume data more accurate.
[0194] The above is a detailed introduction to a method, device, electronic device and computer-readable storage medium for displaying chest drainage volume data provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the technical solutions and core ideas of the present application. Ordinary technicians in this field should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or replace some of the technical features therein with equivalents; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for displaying chest drainage volume data, characterized in that: The method is applicable to a chest drainage device, which includes a main unit and a drainage bottle, wherein the drainage bottle is detachably connected to the main unit, the drainage bottle including a first side and a second side arranged opposite to each other, a first magnetoresistive sensor group and a second magnetoresistive sensor group being respectively arranged on the outside of the first side and the outside of the second side, the first magnetoresistive sensor group including a first upper magnetoresistive sensor arranged at the top and a first lower magnetoresistive sensor arranged at the bottom, the second magnetoresistive sensor group including a second upper magnetoresistive sensor arranged at the top and a second lower magnetoresistive sensor arranged at the bottom, a first float channel and a second float channel extending along the height direction of the drainage bottle being respectively arranged inside the first side and the second side, a first magnetic float being arranged in the first float channel, and a second magnetic float being arranged in the second float channel. The method includes: Acquire first height data of the first magnetic float at each moment using the first magnetoresistive sensor group at a first frequency, and acquire second height data of the second magnetic float at each moment using the second magnetoresistive sensor group at the first frequency to obtain a height data group at each moment; Obtaining the tilt angle of the drainage bottle at each moment according to the width data of the drainage bottle and the height data group at each moment; Determine whether the tilt angle at the current moment is greater than a preset angle; If not, obtaining the central liquid level height data of the drainage bottle according to the average height value of the height data group at the current moment, obtaining the chest drainage volume data according to the central liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and displaying the data on the host at the first frequency; If so, obtain n height data groups at n consecutive moments, determine m target height data groups from the n height data groups, obtain the central liquid level height data of the drainage bottle according to the average height values of the m target height data groups, obtain the chest drainage volume data according to the central liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display the data on the host at a second frequency, where the second frequency is equal to 1 / n of the first frequency, m and n are both integers greater than 1, and m is not greater than n.
2. The method for displaying chest drainage volume data according to claim 1, characterized in that: The steps of obtaining n sets of height data at n consecutive moments include: Acquire the height data sets of n consecutive moments from the current moment to obtain the n height data sets.
3. The method for displaying chest drainage volume data according to claim 1, characterized in that: The steps of obtaining n sets of height data at n consecutive moments include: Acquire the height data sets of n1 consecutive moments before the current moment and the height data sets of n2 consecutive moments from the current moment to obtain the n height data sets, where n1+n2=n.
4. The method for displaying chest drainage volume data according to claim 2 or 3, characterized in that: The step of determining m target height data sets from the n height data sets comprises: Determine whether there is a non-target height data group among the n height data groups, and the inclination angle corresponding to the non-target height data group is equal to that of any other height data group; If so, the non-target height data groups are removed from the n height data groups, and the remaining height data groups are determined as m target height data groups.
5. The method for displaying chest drainage volume data according to claim 2 or 3, characterized in that: The step of determining m target height data sets from the n height data sets comprises: Obtaining the current drainage rate at the current moment; Determining a reference central liquid level height range corresponding to each of the n consecutive moments according to the current drainage rate and the real-time shaking time; Determine whether there is a non-target height mean among the n height means corresponding to the n height data groups, and the non-target height mean does not fall within the reference center liquid level height range at the corresponding moment; If so, the height data group corresponding to the non-target height mean is removed from the n height data groups, and the remaining height data groups are determined as m target height data groups.
6. The method for displaying chest drainage volume data according to claim 1, characterized in that: The step of acquiring first height data of the first magnetic float at each moment using the first magnetoresistive sensor group at a first frequency, and acquiring second height data of the second magnetic float at each moment using the second magnetoresistive sensor group at the first frequency, to obtain a height data set at each moment includes: When the drainage amount is zero, first minimum magnetic signal data and first maximum magnetic signal data of the first magnetic float are respectively obtained through the first upper magnetoresistance sensor and the first lower magnetoresistance sensor, and second minimum magnetic signal data and second maximum magnetic signal data of the second magnetic float are respectively obtained through the second upper magnetoresistance sensor and the second lower magnetoresistance sensor; When the drainage amount is not zero, the first upper magnetic resistance sensor is used to obtain first magnetic signal data of the first magnetic float at each moment, and the second upper magnetic resistance sensor is used to obtain second magnetic signal data of the second magnetic float at each moment; Obtaining first height data of the first magnetic float at each moment according to the first minimum magnetic signal data, the first maximum magnetic signal data, the first magnetic signal data, and the maximum height data of the drainage bottle; Obtaining second height data of the second magnetic float at each moment according to the second minimum magnetic signal data, the second maximum magnetic signal data, the second magnetic signal data, and the maximum height data of the drainage bottle; The first height data and the second height data at each moment are combined to obtain a height data group at each moment.
7. The method for displaying chest drainage volume data according to claim 6, characterized in that: The step of obtaining the first height data of the first magnetic float at each moment according to the first minimum magnetic signal data, the first maximum magnetic signal data, the first magnetic signal data, and the maximum height data of the drainage bottle comprises: Calculating a first difference between the first maximum magnetic signal data and the first minimum magnetic signal data, and a second difference between the first magnetic signal data and the first minimum magnetic signal data at each moment; Calculating a first ratio of the first difference to the second difference at each moment, and calculating a first product of the first ratio and the maximum height data of the drainage bottle at each moment; determining the first product at each moment as first height data of the first magnetic float at each moment; The step of obtaining the second height data of the second magnetic float at each moment according to the second minimum magnetic signal data, the second maximum magnetic signal data, the second magnetic signal data, and the maximum height data of the drainage bottle comprises: Calculating a third difference between the second maximum magnetic signal data and the second minimum magnetic signal data, and a fourth difference between the second magnetic signal data and the second minimum magnetic signal data at each time; Calculating a second ratio of the third difference to the fourth difference at each moment, and calculating a second product of the second ratio and the maximum height data of the drainage bottle at each moment; The second product at each moment is determined as the second height data of the second magnetic float at each moment.
8. A display device for chest drainage volume data, characterized in that: The device is suitable for chest drainage equipment, which includes a main unit and a drainage bottle, which is detachably connected to the main unit, and includes a first side and a second side arranged opposite to each other. A first magnetoresistive sensor group and a second magnetoresistive sensor group are respectively provided on the outside of the first side and the outside of the second side. The first magnetoresistive sensor group includes a first upper magnetoresistive sensor arranged at the top and a first lower magnetoresistive sensor arranged at the bottom. The second magnetoresistive sensor group includes a second upper magnetoresistive sensor arranged at the top and a second lower magnetoresistive sensor arranged at the bottom. A first float channel and a second float channel extending along the height direction of the drainage bottle are respectively provided inside the first side and the second side. A first magnetic float is provided in the first float channel, and a second magnetic float is provided in the second float channel. The device includes: an acquisition module, configured to acquire first height data of the first magnetic float at each moment using the first magnetoresistive sensor group at a first frequency, and acquire second height data of the second magnetic float at each moment using the second magnetoresistive sensor group at the first frequency, to obtain a height data group at each moment; an obtaining module, configured to obtain the tilt angle of the drainage bottle at each moment according to the width data of the drainage bottle and the height data group at each moment; A judging module, configured to judge whether the tilt angle at a current moment is greater than a preset angle; a first display module, configured to, if no, obtain central liquid level height data of the drainage bottle according to the average height value of the height data group at the current moment, obtain chest drainage volume data according to the central liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display the data on the host at the first frequency; The second display module is used to obtain n height data groups at n consecutive moments, determine m target height data groups from the n height data groups, obtain the central liquid level height data of the drainage bottle according to the average height values of the m target height data groups, obtain the chest drainage volume data according to the central liquid level height data, the maximum height data of the drainage bottle, and the maximum capacity data of the drainage bottle, and display it on the host at a second frequency, where the second frequency is equal to 1 / n of the first frequency, m and n are both integers greater than 1, and m is not greater than n.
9. An electronic device, characterized in that: It comprises a memory and a processor; the memory stores an application program, and the processor is used to run the application program in the memory to execute the steps in the method for displaying chest drainage volume data according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps in the method for displaying chest drainage volume data according to any one of claims 1 to 7.
Citation Information
Patent Citations
Non-contact liquid level meter based on giant magneto-resistance sensors
CN102121844B
A Wireless Monitoring Method and System for Dynamic Liquid Level
CN105004402B
Digital thoracic cavity drainage device and operation method thereof
CN112618812A
Urea tank liquid level height monitoring system and testing method
CN117782265A
Fluid level sensor
US20170102261A1
Cited By
Thoracic cavity data monitoring method and device, electronic equipment and storage medium
CN121130199A