Hemodialysis venous bottle coagulation monitoring system and coagulation identification method
By combining a near-infrared light source with a CMOS camera, the coagulation of the venous pot during hemodialysis is identified and monitored, which solves the problems of low monitoring sensitivity and complex operation in the existing technology, and achieves high-sensitivity automated coagulation monitoring.
Patent Information
- Application Number
- CN202111176022.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-09
- Publication Date
- 2024-09-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing venous pot coagulation monitoring method during hemodialysis has low sensitivity, which causes coagulation to have already occurred when the machine alarms when coagulation occurs. The operator is also very demanding and time-consuming and labor-intensive.
A near-infrared LED light source is used to illuminate the intravenous pot, a near-infrared CMOS camera is used to receive the reflected light signal, and the coagulation point is identified through image processing, and a mechanical sliding structure and a buzzer are combined to achieve automated monitoring.
It improves the sensitivity of coagulation monitoring, realizes automated coagulation monitoring, and provides an effective monitoring solution for clinical hemodialysis.
Smart Images

Figure CN113962946B
Abstract
Description
Technical Field
[0001] The invention relates to a medical measurement technology, and in particular to a hemodialysis venous kettle coagulation monitoring system and a coagulation identification method. Background Art
[0002] Hemodialysis is a treatment method for patients with renal failure. In hemodialysis, the blood is drawn out through a permeable membrane and purified before being transported back into the human body by constructing an extracorporeal blood circulation. During this circulation process, coagulation will occur in the pipeline. Coagulation will not only make dialysis treatment impossible, but also cause great harm to the patient's physiology and psychology due to blood loss caused by coagulation. Clinical studies have found that the probability of coagulation in the venous pot is the highest in the entire extracorporeal circulation of hemodialysis. Therefore, the occurrence of coagulation in the venous pot is of great significance for medical staff to take timely treatment measures.
[0003] At present, the built-in pressure sensor is used in the dialysis machine to monitor the pressure change in the pipeline in real time. When the blood coagulates, the poor circulation in the pipeline will cause the pressure in the pipeline to increase, thus triggering the machine alarm. However, this method has low sensitivity, and blood coagulation often occurs when the machine alarms. In patent CN 206587216 U, it is proposed to use LED lights to illuminate the intravenous kettle and observe the coagulation in the kettle with the naked eye through a magnifying glass. This method has high requirements for operators and is time-consuming and labor-intensive. Summary of the invention
[0004] Aiming at the problem of coagulation monitoring during hemodialysis, a hemodialysis venous bottle coagulation monitoring system and coagulation identification method were proposed. The physical properties of fibrin changed after blood coagulation, and the absorption rate of near-infrared light changed. A near-infrared LED light source was used to illuminate the venous bottle and a near-infrared CMOS camera was used to receive the reflected light signal. The alarm was issued after image processing.
[0005] The technical scheme of the present invention is: a blood coagulation monitoring system for a hemodialysis venous pot, the system comprising a buzzer, an embedded system, a touch screen, a near-infrared LED light source, a near-infrared CMOS camera, a filter, a polarizer and a mechanical sliding structure; two near-infrared LED light sources providing light sources are symmetrically arranged on the upper and lower sides of the near-infrared CMOS camera; an interference filter for eliminating ambient light is arranged in front of the near-infrared CMOS camera lens; a polarizer for weakening the reflected light of the glass wall of the venous pot is arranged in front of the filter; the image of the venous pot taken by the near-infrared CMOS camera is sent to the embedded system, the setting information input by the touch screen is sent to the embedded system, and the embedded system outputs a control signal to the buzzer and the near-infrared LED light source; the entire system is fixed on the mechanical sliding structure, and the mechanical sliding structure drives it to slide up and down.
[0006] Preferably, the near-infrared CMOS camera has a pixel size of 2592×1944.
[0007] Preferably, the wavelength of the near-infrared LED light source is 850 nm and the power is 15 mW.
[0008] Preferably, the cut-off wavelength of the filter is 850 nm and the bandwidth is 50 nm.
[0009] The coagulation identification method of the hemodialysis venous bottle coagulation monitoring system specifically comprises the following steps:
[0010] 1) Acquisition of vein pot image: Turn on the near-infrared LED light sources on the upper and lower sides of the near-infrared CMOS camera to illuminate the same area of the vein pot twice, and take two images of the same area of the vein pot under two angles of light. The pixel matrices of the two images are A1 and A2, and identify the reflective area pixel matrices a1 and a2 in the image. After deducting the reflective area pixel matrices a1 and a2, A1 and A2 are recombined into a new image A;
[0011] 2) Registration and stitching of venous pot images: images of different positions of the venous pot taken using a mechanical sliding structure are stitched together to obtain a complete venous pot image;
[0012] 3) Using image segmentation algorithm to identify and extract the venous pot area;
[0013] 4) Set the identification alarm threshold;
[0014] 5) Coagulation point recognition alarm: Search in the vein pot area in the image. When the coagulation value C of the coagulation point is less than the alarm threshold Q', the embedded system controls the buzzer to alarm and mark the location of the coagulation on the image.
[0015] Further, the specific steps of implementing step 2) are as follows:
[0016] First, feature points are extracted from the image. The extraction principle is as follows: with the pixel p0 to be detected as the center, 16 pixels are evenly spaced on a circle with a radius of 3 pixels, and are encoded clockwise from top to bottom and from right to left (p1, p2, p3, ..., p 16 ); Select four points in the vertical direction (p1, p5, p9, p 13 ), if the absolute value of the difference between the grayscale value of point p0 and three or more of the four points is greater than the given threshold, then the point p0 is assumed to be a candidate feature point; if p0 is a candidate point, then it is compared with the surrounding sixteen points according to the above rules. If more than eight of them exceed the set threshold, then p0 is selected as a feature point;
[0017] Subsequently, descriptors are generated based on the extracted feature points for image registration and splicing. The principle of generating descriptors is as follows: With the feature point p0 as the center, 256 pairs of 5×5 small windows are randomly selected in the neighborhood window with a side length of 31×31 pixels and assigned values according to the following principles:
[0018]
[0019] Where τ is the binary code of a pair of pixels x and y centered on the feature point p0, G(x) and G(y) represent the sum of the grayscale values in a 5×5 window centered on this pair of pixels. Compare G(x) and G(y) of the two pixels x and y, assign the larger pixel a value of 1 and the smaller one a value of 0. Image registration and stitching can be completed by matching the descriptors of the feature points.
[0020] Furthermore, in step 3), the image segmentation algorithm is used to identify and extract the venous pot area, and the optimal segmentation threshold is found by calculating the inter-class variance. The method for finding the threshold is shown in the following formula:
[0021] σ 2 (T) = p1(T)p2(T)(m1(T)-m2(T))
[0022]
[0023] Assuming that there is a threshold T that divides all pixels in the image into foreground and background, the mean of all foreground pixels is represented by m1(T), and the proportion of foreground pixels is represented by p1(T). Correspondingly, the mean of all background pixels is represented by m2(T), and the proportion of background pixels is represented by p2(T). 2 (T) represents the inter-class variance between the foreground and the background. Let the threshold T traverse k gray levels. When σ 2 The threshold T obtained when (T) takes the maximum value is the optimal segmentation threshold T′. According to the obtained optimal segmentation threshold, the foreground area is identified as the venous pot area.
[0024] Furthermore, in step 4), the identification alarm threshold is set, and the grayscale average value of the venous pot area is calculated and recorded as Q, and the alarm threshold Q' is expressed as:
[0025] Q′=μQ.
[0026] Where μ is the alarm coefficient.
[0027] Furthermore, in step 5) coagulation point recognition alarm, in each measurement after the alarm threshold is determined, an m×n sliding window is used to traverse the venous pot area in the image, and the grayscale average value in the sliding window is calculated as the coagulation value C. The calculation formula of the coagulation value C can be expressed as:
[0028]
[0029] Where m and n are the size parameters of the sliding window, f(x, y) is the venous pot image, x', y' are the coordinate values of the pixel points in the image, and when the coagulation value C is less than the alarm threshold Q', the buzzer is controlled to alarm and mark the location of the coagulation on the image.
[0030] The beneficial effects of the present invention are as follows: the blood coagulation monitoring system and blood coagulation identification method of the hemodialysis venous pot of the present invention use near-infrared light and a camera to monitor blood coagulation in the venous pot, and the optical method has higher sensitivity. By writing an alarm algorithm and combining a mechanical sliding structure, automated blood coagulation monitoring is realized, providing an effective solution for monitoring blood coagulation in the venous pot in clinical hemodialysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a schematic diagram of the structure of the hemodialysis venous pot coagulation monitoring system of the present invention;
[0032] Figure 2 The figure is a flow chart of the coagulation identification method of the present invention. DETAILED DESCRIPTION
[0033] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0034] like Figure 1 The structure diagram of the hemodialysis venous pot coagulation monitoring system is shown. The system includes a buzzer 1, an embedded system 2, a touch screen 3, a near-infrared LED light source 4, a near-infrared CMOS camera 5, a filter 6, a polarizer 7, and a mechanical sliding structure 8. The near-infrared CMOS camera 5, the near-infrared LED light source 4, and the buzzer 1 are respectively connected to the embedded system 2, and the near-infrared CMOS camera 5, the near-infrared LED light source, and the buzzer are controlled by inputting requirements through the touch screen 3 and information processing of the embedded system 2. In this embodiment, the pixel of the near-infrared CMOS camera 5 is 2592×1944. The wavelength of the near-infrared LED light source 4 is 850nm, the power is 15mW, the number is two, and they are symmetrically distributed on both sides of the near-infrared CMOS camera 5. The cut-off wavelength of the filter 6 is 850nm, the bandwidth is 50nm, and it is placed in front of the lens of the near-infrared CMOS camera 5, and the polarizer 7 is placed in front of the filter 6. The filter 6 is placed in front of the lens of the near-infrared CMOS camera 5 to eliminate the interference of ambient light, and the polarizer 7 is placed in front of the lens of the near-infrared CMOS camera 5 to reduce the reflected light of the glass wall of the venous pot. The entire system is fixed on the mechanical sliding structure 8, which is controlled by a motor and can slide up and down.
[0035] The operation interface of the touch screen 3 is provided with "Start", "Analysis", "Shooting Interval", and "End" buttons. When "Start" is pressed, the near-infrared CMOS camera 5 and the near-infrared LED light source 4 start working, when "Analysis" is pressed, the near-infrared CMOS camera 5 performs image acquisition and the alarm algorithm in the embedded system 2 starts working, when "Shooting Interval" is pressed, the interval time of the near-infrared CMOS camera 5 collecting images can be changed, and when "End" is pressed, the monitoring is stopped. In this embodiment, the shooting interval is set to 5 minutes.
[0036] The mechanical sliding structure is composed of a motor, a connecting rod, a fixing clamp and is provided with "start", "end", and "movement interval" buttons. The sliding structure is provided with three positions: upper, middle, and lower. When "start" is pressed, the sliding structure starts working. When "movement interval" is pressed, the interval time between two slides can be changed. When "end" is pressed, the work stops. In this embodiment, the movement interval is set to 5 minutes.
[0037] Coagulation identification methods such as Figure 2 As shown:
[0038] (1) Acquisition of intravenous pot images. In order to eliminate the influence of the glass reflection of the intravenous pot on the image, the near-infrared LED light sources 4 on the upper and lower sides of the near-infrared CMOS camera 5 are turned on to illuminate the intravenous pot twice at an angle of 30-45°. Two images of the same section of the intravenous pot are obtained under the two angle light sources. The pixel matrices of the two images are A1 and A2, and the reflective area pixel matrices a1 and a2 in the images are identified. After deducting the reflective area pixel matrices a1 and a2, A1 and A2 are recombined into a new image A.
[0039] (2) Registration and stitching of venous pot images. Images of the venous pot at different positions taken using a mechanical sliding structure are stitched together to obtain a complete venous pot image.
[0040] First, extract feature points from the image. The extraction principle is as follows: take the pixel p0 to be detected as the center, select 16 pixels evenly spaced on a circle with a radius of 3 pixels, and encode them clockwise from top to bottom and from right to left (p1, p2, p3, ..., p 16 ); Select four points in the vertical direction (p1, p5, p9, p 13 ), if the absolute value of the difference between the grayscale value of point p0 and three or more of the four points is greater than the given threshold, then the point p0 is assumed to be a candidate feature point; if p0 is a candidate point, then it is compared with the surrounding sixteen points according to the above rules. If more than eight of them exceed the set threshold, then p0 is selected as a feature point.
[0041] Then, the descriptor is generated based on the extracted feature points for image registration and splicing. The principle of generating the descriptor is as follows: With the feature point p0 as the center, 256 pairs of 5×5 small windows are randomly selected in the neighborhood window with a side length of 31×31 pixels and assigned according to the following principle
[0042]
[0043] Where τ is the binary code of a pair of pixels x and y centered on the feature point p0, G(x) and G(y) represent the sum of the grayscale values in a 5×5 window centered on this pair of pixels. Compare G(x) and G(y) of the two pixels x and y, assign the larger pixel a value of 1 and the smaller one a value of 0. Image registration and stitching can be completed by matching the descriptors of the feature points.
[0044] (3) Use image segmentation algorithm to identify and extract the vein pot area. The optimal segmentation threshold is found by calculating the inter-class variance. The method for finding the threshold is shown in the following formula:
[0045] σ 2 (T) = p1(T)p2(T)(m1(T)-m2(T))
[0046]
[0047] Assuming that there is a threshold T that divides all pixels in the image into foreground and background, the mean of all foreground pixels is represented by m1(T), and the proportion of foreground pixels is represented by p1(T). Correspondingly, the mean of all background pixels is represented by m2(T), and the proportion of background pixels is represented by p2(T). 2 (T) represents the inter-class variance between the foreground and the background. Let the threshold T traverse k gray levels (k is 256). When σ 2 The threshold T obtained when (T) takes the maximum value is the optimal segmentation threshold T'. According to the obtained optimal segmentation threshold, the foreground area is identified as the venous pot area.
[0048] (4) Set the recognition alarm threshold. Calculate the grayscale average value of the venous pot area in the previous step and record it as Q. Then the alarm threshold Q' can be expressed as:
[0049] Q′=μQ.
[0050] Wherein μ is the alarm coefficient, and in this embodiment, the value is set to 0.4.
[0051] (5) Coagulation point identification alarm. In each measurement after the above alarm threshold is determined, an m×n sliding window is used to traverse the venous pot area in the image, and the grayscale average value in the sliding window is calculated as the coagulation value C. The calculation formula of the coagulation value C can be expressed as:
[0052]
[0053] Where m and n are the size parameters of the sliding window, f(x, y) is the venous pot image, and x', y' are the coordinate values of the pixel points in the image. When the coagulation value C is less than the alarm threshold Q', the buzzer is controlled to alarm and the location of the coagulation is marked on the image. In this embodiment, the values of m and n are set to 51.
[0054] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A coagulation identification method for a hemodialysis venous pot coagulation monitoring system, the system comprising a buzzer, an embedded system, a touch screen, a near-infrared LED light source, a near-infrared CMOS camera, a filter, a polarizer and a mechanical sliding structure; two near-infrared LED light sources providing light sources are symmetrically placed on the upper and lower sides of the near-infrared CMOS camera; an interference filter for eliminating ambient light is placed in front of the near-infrared CMOS camera lens; a polarizer for reducing the reflected light of the glass wall of the venous pot is placed in front of the filter; the image of the venous pot taken by the near-infrared CMOS camera is sent to the embedded system, the setting information input by the touch screen is sent to the embedded system, and the embedded system outputs a control signal to the buzzer and the near-infrared LED light source; the entire system is fixed on the mechanical sliding structure, and the mechanical sliding structure drives it to slide up and down, characterized in that The specific steps include: 1) Acquisition of vein pot image: Turn on the near-infrared LED light sources on the upper and lower sides of the near-infrared CMOS camera to illuminate the same area of the vein pot twice, and take two images of the same area of the vein pot under two angles of light. The pixel matrices of the two images are A1 and A2, and identify the reflective area pixel matrices a1 and a2 in the image. After deducting the reflective area pixel matrices a1 and a2, A1 and A2 are recombined into a new image A; 2) Registration and stitching of venous pot images: images of different positions of the venous pot taken using a mechanical sliding structure are stitched together to obtain a complete venous pot image; 3) Using image segmentation algorithm to identify and extract the venous pot area; 4) Set the identification alarm threshold; 5) Coagulation point recognition alarm: Search in the vein pot area in the image. When the coagulation value C of the coagulation point is less than the alarm threshold Q', the embedded system controls the buzzer to alarm and mark the location of the coagulation on the image.
2. The coagulation identification method of the hemodialysis venous bottle coagulation monitoring system according to claim 1, characterized in that: The pixel of the near-infrared CMOS camera is 2592×1944.
3. The coagulation identification method of the hemodialysis venous bottle coagulation monitoring system according to claim 1, characterized in that: The wavelength of the near-infrared LED light source is 850nm and the power is 15mW.
4. The coagulation identification method of the hemodialysis venous bottle coagulation monitoring system according to claim 1, characterized in that: The cut-off wavelength of the filter is 850 nm and the bandwidth is 50 nm.
5. The coagulation identification method of the hemodialysis venous bottle coagulation monitoring system according to claim 1, characterized in that: The specific steps of implementing step 2) are as follows: First, feature points are extracted from the image. The extraction principle is as follows: with the pixel p0 to be detected as the center, 16 pixels are evenly spaced on a circle with a radius of 3 pixels, and are encoded clockwise from top to bottom and from right to left (p1, p2, p3, ..., p 16 ); Select four points in the vertical direction (p1, p5, p9, p 13 ), if the absolute value of the difference between the grayscale value of point p0 and three or more of the four points is greater than the given threshold, then the point p0 is assumed to be a candidate feature point; if p0 is a candidate point, then it is compared with the surrounding sixteen points according to the above rules. If more than eight of them exceed the set threshold, then p0 is selected as a feature point; Subsequently, descriptors are generated based on the extracted feature points for image registration and splicing. The principle of generating descriptors is as follows: With the feature point p0 as the center, 256 pairs of 5×5 small windows are randomly selected in the neighborhood window with a side length of 31×31 pixels and assigned values according to the following principles: Where τ is the binary code of a pair of pixels x and y centered on the feature point p0, G(x) and G(y) represent the sum of the grayscale values in a 5×5 window centered on this pair of pixels. Compare G(x) and G(y) of the two pixels x and y, assign the larger pixel a value of 1 and the smaller one a value of 0. Image registration and stitching can be completed by matching the descriptors of the feature points.
6. The coagulation identification method of the hemodialysis venous bottle coagulation monitoring system according to claim 5, characterized in that: In step 3), the image segmentation algorithm is used to identify and extract the vein pot area, and the optimal segmentation threshold is found by calculating the inter-class variance. The method for finding the threshold is shown in the following formula: σ 2 (T)=p1(T)p2(T)(m1(T)-m2(T)) 2 Assuming that there is a threshold T that divides all pixels in the image into foreground and background, the mean of all foreground pixels is represented by m1(T), and the proportion of foreground pixels is represented by p1(T). Correspondingly, the mean of all background pixels is represented by m2(T), and the proportion of background pixels is represented by p2(T). 2 (T) represents the inter-class variance between the foreground and the background. Let the threshold T traverse k gray levels. When σ 2 The threshold T obtained when (T) takes the maximum value is the optimal segmentation threshold T'. According to the obtained optimal segmentation threshold, the foreground area is identified as the venous pot area.
7. The coagulation identification method of the hemodialysis venous bottle coagulation monitoring system according to claim 6, characterized in that: In the step 4), the identification alarm threshold is set, and the grayscale average value of the venous pot area is calculated and recorded as Q, and the alarm threshold Q' is expressed as: Q'=μQ Where μ is the alarm coefficient.
8. The coagulation identification method of the hemodialysis venous bottle coagulation monitoring system according to claim 7, characterized in that: In the step 5) of blood coagulation point recognition alarm, in each measurement after the alarm threshold is determined, an m×n sliding window is used to traverse the vein pot area in the image, and the grayscale average value in the sliding window is calculated as the blood coagulation value C. The calculation formula of the blood coagulation value C is expressed as: Where m and n are the size parameters of the sliding window, f(x, y) is the venous pot image, x', y' are the coordinate values of the pixel points in the image, and when the coagulation value C is less than the alarm threshold Q', the buzzer is controlled to alarm and mark the location of the coagulation on the image.
