Urine detection method and device for three-year-nine diagnosis method
By designing a urine detection method and device based on the Three Times and Nine Diagnoses Method, and utilizing various sensors and equipment to achieve quantitative detection of urine parameters, the problem of quantitative determination of foam in Tibetan medicine urine diagnosis method is solved, thereby improving the accuracy and quantifiability of diagnosis.
Patent Information
- Application Number
- CN202310682526.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-09
- Publication Date
- 2026-03-06
AI Technical Summary
The quantitative determination of urine foam in Tibetan medicine's urine diagnosis method is difficult to achieve, which makes it difficult for the diagnostic method to be widely disseminated and used, and it cannot be quantitatively described.
A urine testing method and device based on the "Three Times and Nine Diagnoses" approach is designed. By using sensors and equipment such as temperature sensors, color sensors, humidity sensors, odor sensors, image acquisition devices, and rotational viscometers, the method measures the temperature, color, steam, foam, odor, sediment, bubbling, steam dissipation state, edge change state, and viscosity of urine to achieve quantitative detection.
It enables the quantitative detection of urine-related parameters, improving the diagnostic effectiveness of the Tibetan medicine's Three Times and Nine Diagnostic Methods. It can distinguish the three times based on urine temperature and perform precise parameter measurements, especially the quantitative detection of foam.
Smart Images

Figure CN121613093A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of medical diagnostic technology, and in particular to a urine testing method and apparatus based on the "Three Times Nine Diagnoses" method. Background Technology
[0002] Tibetan medicine has a unique urine diagnosis method called the "Three-Times Nine-Diagnosis Method." This method diagnoses a patient's illness by observing the color, odor, foam, and sediment of urine. The "Three-Times" refer to the three stages of observing the cooling process of urine: the hot period (hot urine period), the warm period (dissipation of foam period), and the cool period (cool urine period). The "Nine Diagnosis Methods" refer to the specific observations made during these changes in urine. These include observing the color, steam, foam, and odor of urine during the hot period; observing the sediment and foam during the warm period; and observing the dissipation of steam, changes in the edges, and the viscosity after stirring during the cool period.
[0003] This method, an intangible cultural heritage accumulated by the Tibetan people through long-term practice, is of great significance to the development of modern medical diagnosis. However, because its diagnostic method requires doctors to identify urine characteristics through subjective senses, experience must be passed down orally, and a large amount of clinical experience is needed to make accurate diagnoses, it is difficult to widely disseminate, learn, and use. In particular, in the conventional three-times-nine-diagnosis method, urine foam is observed manually and cannot be quantitatively described. Therefore, the quantitative determination of urine-related parameters, especially foam, in Tibetan medicine urine diagnosis is a problem that urgently needs to be solved by Tibetan medicine urine diagnosis instruments. Summary of the Invention
[0004] Based on the above problems, the first objective of this invention is to provide a urine testing method based on the Three-Time Nine-Diagnosis Method. This method can quantitatively detect urine-related parameters, especially foam, and measures the corresponding parameters among the nine parameters according to the three times of the day, which is beneficial to improving the effectiveness of the Tibetan medicine Three-Time Nine-Diagnosis Method.
[0005] The technical solution adopted by this invention to achieve its first inventive objective is a urine testing method based on the "three-times-nine-diagnosis" method, the steps of which include:
[0006] S1. Detect urine temperature, enter it into the urine characteristic database, and make a judgment based on the measured urine temperature and two preset temperature thresholds T1 and T2, where T2>T1. If the urine temperature is greater than or equal to T2, it means that the urine is in the hot period, and proceed to step S2. If the urine temperature is greater than or equal to T1 and less than T2, it means that the urine is in the warm period, and proceed to step S3. If the urine temperature is less than T1, it means that the urine is in the cool period, and proceed to step S4.
[0007] S2. Read the urine feature database. If the data on urine color, steam, foam, and odor already exist, proceed to step S1 after a preset time interval. Otherwise, detect the data on urine color, steam, foam, and odor, write them into the urine feature database respectively, and then proceed to step S1.
[0008] S3. Read the urine feature database. If urine sediment and foam data already exist, proceed to step S1 after a preset time interval. Otherwise, detect urine sediment and foam data, write them into the urine feature database, and then proceed to step S1.
[0009] S4. Detect the data on the vapor dissipation state, edge change state, and viscosity state after stirring of the urine, and write them into the urine feature database respectively. The detection ends.
[0010] Furthermore, the method for detecting the temperature of urine is as follows: the urine to be tested is placed in a transparent urine cup, and the temperature data of the urine to be tested is obtained through a temperature sensor inside the urine cup.
[0011] Furthermore, the method for detecting the color of urine is as follows: the urine to be tested is placed in a transparent urine cup in a dark room, one side of the transparent urine cup is illuminated by light emitted by a light source, and the other side is received by a color sensor to obtain the color of the urine to be tested.
[0012] Furthermore, the method for detecting the vapor and odor data of urine is as follows: the urine to be tested is placed in a urine cup inside a sealed cavity, and the vapor and odor data of the urine to be tested are obtained by a humidity sensor and an odor sensor inside the sealed cavity, respectively.
[0013] Furthermore, the method for detecting urine foam is as follows: the urine to be tested is placed in a transparent urine cup in a dark room, supplemental lighting is applied around the transparent urine cup, multiple images of the urine to be tested are taken using an image acquisition device, and the foam state data of the urine is obtained by comprehensively processing the information of multiple images, wherein the vertical images are used to obtain the thickness information of the urine foam, and the horizontal images are used to obtain the dynamic changes of the urine foam.
[0014] Furthermore, the step of obtaining urine foam state data through comprehensive processing of information from multiple images is as follows:
[0015] S1. Obtain information on the thickness of urine foam. Specific steps include:
[0016] S1.1 Define the center point of the vertical image as the origin of the coordinate system;
[0017] S1.2. Using the Canny edge extraction algorithm, the edge contour information of urine foam in the vertical image is extracted. The minimum threshold (THR) of pixels related to the urine foam edge is estimated using statistical methods. Interference is removed using the thresholding method, resulting in the pixel sets of the upper and lower edges of the urine foam. The pixel set of the upper edge of the urine foam is {(x1...} H ,y1 H ),(x2 H ,y2 H ),(x3 H ,y3 H ),....(x m H ,y m H The set of pixels at the lower edge of the urine foam is {(x1)}. L ,y1 L ),(x2 L ,y2 L ),(x3 L ,y3 L ),....(x n L ,y n L Using the least squares method, the fitted lines for the upper and lower edges are calculated as follows:
[0018] y H =a (1)
[0019] y L =b (2)
[0020] S1.3. Take a point P on the fitted line of the upper or lower edge of the bubble pixel in the vertical image with the horizontal coordinate c. Substitute it into formulas (1) and (2) to obtain the coordinates of the upper and lower edges with the same horizontal coordinate as (c, a) and (c, b). The corresponding vertical field of view is β. The pixel resolution of the acquired vertical image is A*B, where A is the horizontal resolution and B is the vertical resolution. The vertical distance between the camera and point P is h. Point Q is the point to be calculated, and its pixel coordinates are (d, e). According to the similar triangle theorem:
[0021]
[0022] The thickness D of the foam is calculated as follows:
[0023]
[0024] S2. Obtain the dynamic changes of urine foam, including the size, quantity, direction of disappearance, and speed of disappearance of the foam. The specific steps are as follows:
[0025] S2.1 The image resolution of the acquired horizontal image is A1*B1, the horizontal field of view is α1, and the vertical field of view is β1. The Canny edge extraction algorithm is used to extract the foam image contour information, and the connection operation is used to obtain the largest connected component. The pruning operation is used to remove side branches. Finally, a clear foam contour is obtained. The image is then binarized. For any closed connected component, three points are taken consecutively and substituted into the equation of the circle to obtain the set of center point coordinates and the set of radii of the current circle. According to statistical methods, the distribution of the horizontal and vertical coordinates and radii of the center point is statistically analyzed. The horizontal and vertical coordinates and the radius value corresponding to the peak point of the distribution curve of the horizontal and vertical coordinates of the center point are defined as the center point coordinates and radius value of the circle. The center point coordinates and radius values of all circles are statistically calculated, and the number of bubbles at the current time is the number of center point coordinates N of all circles.
[0026] S2.2 Based on the mapping relationship between the camera and the target point coordinates, calculate the pixel coordinates (x, y) of any circle's center point. p y p ) to spatial coordinates (x w y w ):
[0027]
[0028]
[0029] For any edge pixel coordinate (x) on a circle p1 y p1 ), transform and calculate its spatial coordinates (x w1 y w1 ):
[0030]
[0031]
[0032] The size of the bubble, i.e., the area of the circle, is calculated as follows:
[0033] S f =π((x) w1 -x w ) 2 +(y w1 -y w ) 2 )
[0034] The average size S of all the bubbles was calculated as follows:
[0035]
[0036] In the formula The size of the nth bubble;
[0037] S2.3. Measure the number of bubbles M at time t using the method in step S2.1. t And the number of bubbles M at time t+1 t+1 The rate at which the foam disappears is calculated as follows:
[0038] a dis =(M t -M t+1 )
[0039] S2.4. Divide the foam area in the horizontal image into five regions: top, bottom, left, right, and center. Calculate the changes in foam area in each of the five regions at two different times, i.e., time t and time t+1:
[0040]
[0041] In the formula: This represents the total area of all bubbles in the region at time t+1. This represents the total area of all bubbles in the region at time t;
[0042]
[0043] In the formula: This represents the total area of all bubbles in the region at time t+1. This represents the total area of all bubbles in the region at time t;
[0044]
[0045] In the formula: This represents the total area of all bubbles in the left region at time t+1. This represents the total area of all bubbles in the left region at time t;
[0046]
[0047] In the formula: This represents the total area of all bubbles in the right region at time t+1. This represents the total area of all bubbles in the right region at time t;
[0048]
[0049] In the formula: This represents the total area of all bubbles in the region at time t+1. This represents the total area of all bubbles in the region at time t;
[0050] The bubble changes from its initial state to its final state, i.e., a f上 af下 a f左 a f右 a f中 The time required for the state to be equal to 1 is t. 上 , t 下 , t 左 , t 右 , t 下 Filter a f上 a f下 a f左 a f右 a f中 Greater than threshold T a The value of is defined as the region where the bubble disappears in the direction of the shortest time, which is outside the threshold range.
[0051] Furthermore, the method for detecting sediment and foam in urine is as follows: the urine to be tested is placed in a transparent urine cup in a dark room, supplemental lighting is applied around the transparent urine cup, multiple images of the urine to be tested are taken using an image acquisition device, and the sediment and foam data of the urine are obtained by comprehensively processing the information from the multiple images.
[0052] Furthermore, the method for detecting the vapor dissipation state of urine is as follows: the urine to be tested is placed in a urine cup in a sealed cavity, and the humidity value at different times is obtained by a humidity sensor in the sealed cavity, thereby obtaining the vapor dissipation state data of urine.
[0053] The method for detecting edge changes in urine is as follows: the urine to be tested is placed in a transparent urine cup in a dark room, supplemental lighting is applied around the transparent urine cup, video is captured using an image acquisition device, and the edge change data of the urine is obtained through comprehensive processing of the video information.
[0054] The method for detecting the viscosity of urine after stirring is as follows: the urine to be tested is placed in a transparent urine cup, and the stirring rod of the rotational viscometer above the transparent urine cup is lowered into the transparent urine cup to stir it. The rotational viscometer measures the viscosity data of the urine after stirring.
[0055] The second objective of this invention is to provide a urine testing device based on the "three times nine diagnosis method," which can be used to quantitatively detect urine-related parameters, especially foam.
[0056] The technical solution adopted by the present invention to achieve its second objective is as follows: a urine testing device for the three-time nine-diagnosis method, comprising a dark chamber and a platform within it, and a transparent urine cup placed on the platform; a transparent cavity that can be raised and lowered by a motor is provided above the transparent urine cup, the sides and top of the transparent cavity are enclosed, and the bottom is open, when the transparent cavity is lowered to the bottom, it forms a sealed cavity with the platform, so that the transparent urine cup is placed inside; a semi-circular slide rail is provided above the transparent cavity, the two ends of the semi-circular slide rail are fixedly connected to the platform, and an image acquisition device is slidably mounted on the semi-circular slide rail; several light sources are installed on the inner wall of the dark chamber, and a color sensor is installed on the platform on one side of the transparent urine cup; a humidity sensor and an odor sensor are installed on the inner wall of the transparent cavity; a rotational viscometer and a temperature sensor probe are also installed inside the transparent cavity.
[0057] During use, freshly collected urine is poured into a transparent urine cup. The data processing and control system sends a command, and the transparent cavity descends into position, at which point the temperature sensor probe is submerged in the urine. Following the "Three-Time, Nine-Diagnosis" urine testing method, the temperature sensor probe first detects the urine temperature and transmits this data to the data processing and control system. The system determines which of the three time stages the urine is in based on its temperature, and then measures corresponding parameters for each stage: During the hot stage, the system measures the urine's color, steam, foam, and odor; during the warm stage, it measures the urine's sediment and foam; and during the cool stage, it measures the urine's steam dissipation state, edge change state, and viscosity after stirring. Specifically, urine color, steam, and odor are detected by color, humidity, and odor sensors, respectively. Foam, sediment, and foam are obtained by capturing images of the urine and processing the information from these images. The steam dissipation state is obtained by obtaining humidity values at different times using a humidity sensor. The edge change state is obtained by capturing video footage and processing the video information. The viscous state after stirring is determined by lowering the stirring rod of a rotary viscometer into a transparent urine cup for stirring, and then measuring the viscosity using the rotary viscometer. Data collected by color, humidity, and odor sensors, images and videos captured by an image acquisition device, and data measured by the rotary viscometer are all sent to the data processing and control system for processing and storage.
[0058] Furthermore, a funnel is installed above the transparent cavity, with a pipe connected to the bottom opening of the funnel. A solenoid valve controlled by a data processing and control system is installed on the pipe, and the lower opening of the pipe after passing through the top surface of the transparent cavity faces the transparent urine cup.
[0059] In this way, when using the device, the freshly collected urine sample is first poured into the funnel. The data processing and control system then sends a command, and after the transparent chamber descends into position, the solenoid valve on the tubing opens, quantitatively dispensing the urine sample into the transparent urine cup. This makes operation more convenient and allows for precise control of the amount of urine dispensed into the transparent urine cup.
[0060] The beneficial effects of this invention are as follows:
[0061] This invention can distinguish whether urine is in a hot, warm, or cool phase based on the measured urine temperature. Then, it measures the corresponding parameters of nine urine parameters according to the three phases, which can quantify urine-related parameters, especially foam, and is beneficial to improving the effectiveness of the Tibetan medicine Three-Time Nine Diagnosis Method. Attached Figure Description
[0062] Figure 1 This is a schematic diagram of the urine detection device of the present invention. Detailed Implementation
[0063] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0064] One specific embodiment of the present invention is a urine testing method based on the "Three Times Nine Diagnoses" method, comprising the following steps:
[0065] S1. Detect urine temperature, enter it into the urine characteristic database, and make a judgment based on the measured urine temperature and two preset temperature thresholds T1 and T2, where T2>T1. If the urine temperature is greater than or equal to T2, it means that the urine is in the hot period, and proceed to step S2. If the urine temperature is greater than or equal to T1 and less than T2, it means that the urine is in the warm period, and proceed to step S3. If the urine temperature is less than T1, it means that the urine is in the cool period, and proceed to step S4.
[0066] S2. Read the urine feature database. If the data on urine color, steam, foam, and odor already exist, proceed to step S1 after a preset time interval. Otherwise, detect the data on urine color, steam, foam, and odor, write them into the urine feature database respectively, and then proceed to step S1.
[0067] S3. Read the urine feature database. If urine sediment and foam data already exist, proceed to step S1 after a preset time interval. Otherwise, detect urine sediment and foam data, write them into the urine feature database, and then proceed to step S1.
[0068] S4. Detect the data on the vapor dissipation state, edge change state, and viscosity state after stirring of the urine, and write them into the urine feature database respectively. The detection ends.
[0069] in:
[0070] The method for detecting urine temperature is as follows: the urine to be tested is placed in a transparent urine cup, and the temperature data of the urine to be tested is obtained through a temperature sensor inside the urine cup.
[0071] The method for detecting urine color is as follows: the urine to be tested is placed in a transparent urine cup in a dark room. One side of the transparent urine cup is illuminated by light emitted by a light source, and the other side is received by a color sensor to obtain the color of the urine.
[0072] The method for detecting the vapor and odor data of urine is as follows: the urine to be tested is placed in a urine cup inside a sealed cavity, and the vapor and odor data of the urine to be tested are obtained by humidity sensor and odor sensor inside the sealed cavity, respectively.
[0073] The method for detecting urine foam is as follows: the urine to be tested is placed in a transparent urine cup in a dark room, and supplemental lighting is applied around the transparent urine cup. Multiple images of the urine to be tested are taken using an image acquisition device. The information from multiple images is combined and processed to obtain data on the state of urine foam. The vertical images are used to obtain the thickness information of the urine foam, and the horizontal images are used to obtain the dynamic changes of the urine foam.
[0074] The steps for obtaining urine foam state data through comprehensive processing of information from multiple images are as follows:
[0075] S1. Obtain information on the thickness of urine foam. Specific steps include:
[0076] S1.1 Define the center point of the vertical image as the origin of the coordinate system;
[0077] S1.2. Using the Canny edge extraction algorithm, the edge contour information of urine foam in the vertical image is extracted. The minimum threshold (THR) of pixels related to the urine foam edge is estimated using statistical methods. Interference is removed using the thresholding method, resulting in the pixel sets of the upper and lower edges of the urine foam. The pixel set of the upper edge of the urine foam is {(x1...} H ,y1 H ),(x2 H ,y2 H ),(x3 H ,y3 H ),....(x m H ,y m H The set of pixels at the lower edge of the urine foam is {(x1)}. L ,y1 L ),(x2 L ,y2 L ),(x3 L ,y3 L ),....(x n L ,y n L Using the least squares method, the fitted lines for the upper and lower edges are calculated as follows:
[0078] y H =a(1)
[0079] y L =b(2)
[0080] S1.3. Take a point P on the fitted line of the upper or lower edge of the bubble pixel in the vertical image with the horizontal coordinate c. Substitute it into formulas (1) and (2) to obtain the coordinates of the upper and lower edges with the same horizontal coordinate as (c, a) and (c, b). The corresponding vertical field of view is β. The pixel resolution of the acquired vertical image is A*B, where A is the horizontal resolution and B is the vertical resolution. The vertical distance between the camera and point P is h. Point Q is the point to be calculated, and its pixel coordinates are (d, e). According to the similar triangle theorem:
[0081]
[0082] The thickness D of the foam is calculated as follows:
[0083]
[0084] S2. Obtain the dynamic changes of urine foam, including the size, quantity, direction of disappearance, and speed of disappearance of the foam. The specific steps are as follows:
[0085] S2.1 The image resolution of the acquired horizontal image is A1*B1, the horizontal field of view is α1, and the vertical field of view is β1. The Canny edge extraction algorithm is used to extract the foam image contour information, and the connection operation is used to obtain the largest connected component. The pruning operation is used to remove side branches. Finally, a clear foam contour is obtained. The image is then binarized. For any closed connected component, three points are taken consecutively and substituted into the equation of the circle to obtain the set of center point coordinates and the set of radii of the current circle. According to statistical methods, the distribution of the horizontal and vertical coordinates and radii of the center point is statistically analyzed. The horizontal and vertical coordinates and the radius value corresponding to the peak point of the distribution curve of the horizontal and vertical coordinates of the center point are defined as the center point coordinates and radius value of the circle. The center point coordinates and radius values of all circles are statistically calculated, and the number of bubbles at the current time is the number of center point coordinates N of all circles.
[0086] S2.2 Based on the mapping relationship between the camera and the target point coordinates, calculate the pixel coordinates (x, y) of any circle's center point. p y p ) to spatial coordinates (x w y w ):
[0087]
[0088]
[0089] For any edge pixel coordinate (x) on a circle p1 y p1 ), transform and calculate its spatial coordinates (x w1 yw1):
[0090]
[0091]
[0092] The size of the bubble, i.e., the area of the circle, is calculated as follows:
[0093] S f =π((x) w1 -x w ) 2 +(y w1 -y w ) 2 )
[0094] The average size S of all the bubbles was calculated as follows:
[0095]
[0096] In the formula The size of the nth bubble;
[0097] S2.3. Measure the number of bubbles M at time t using the method in step S2.1. t And the number of bubbles M at time t+1 t+1 The rate at which the foam disappears is calculated as follows:
[0098] a dis =(M t -M t+1 )
[0099] S2.4. Divide the foam area in the horizontal image into five regions: top, bottom, left, right, and center. Calculate the changes in foam area in each of the five regions at two different times, i.e., time t and time t+1:
[0100]
[0101] In the formula: This represents the total area of all bubbles in the region at time t+1. This represents the total area of all bubbles in the region at time t;
[0102]
[0103] In the formula: This represents the total area of all bubbles in the region at time t+1. This represents the total area of all bubbles in the region at time t;
[0104]
[0105] In the formula: This represents the total area of all bubbles in the left region at time t+1. This represents the total area of all bubbles in the left region at time t;
[0106]
[0107] In the formula: This represents the total area of all bubbles in the right region at time t+1. This represents the total area of all bubbles in the right region at time t;
[0108]
[0109] In the formula: This represents the total area of all bubbles in the region at time t+1. This represents the total area of all bubbles in the region at time t;
[0110] The bubble changes from its initial state to its final state, i.e., a f上 a f下 a f左 a f右 a f中 The time required for the state to be equal to 1 is t. 上 , t 下 , t 左 , t 右 , t 下 Filter a f上 a f下 a f左 a f右 a f中 Greater than threshold T a The value of is defined as the region where the bubble disappears in the direction of the shortest time, which is outside the threshold range.
[0111] The method for detecting sediment and foam in urine is as follows: the urine to be tested is placed in a transparent urine cup in a dark room, and supplemental lighting is applied around the transparent urine cup. Multiple images of the urine to be tested are taken using an image acquisition device. The sediment and foam data of the urine are obtained by comprehensively processing the information from the multiple images.
[0112] The method for detecting the vapor dissipation state of urine is as follows: the urine to be tested is placed in a urine cup in a sealed cavity, and the humidity value at different times is obtained by a humidity sensor in the sealed cavity, thereby obtaining the vapor dissipation state data of urine.
[0113] The method for detecting edge changes in urine is as follows: the urine to be tested is placed in a transparent urine cup in a dark room, supplemental lighting is applied around the transparent urine cup, video is captured using an image acquisition device, and the edge change data of the urine is obtained through comprehensive processing of the video information.
[0114] The method for detecting the viscosity of urine after stirring is as follows: the urine to be tested is placed in a transparent urine cup, and the stirring rod of the rotational viscometer above the transparent urine cup is lowered into the transparent urine cup to stir it. The rotational viscometer measures the viscosity data of the urine after stirring.
[0115] Figure 1 This invention illustrates a specific embodiment of the urine testing device for the Three-Time Nine-Diagnosis Method provided by the present invention: it includes a dark chamber 1 and a platform 2 inside it, and a transparent urine cup 3 placed on the platform 2; a transparent cavity 4, which can be raised and lowered by a motor, is provided above the transparent urine cup 3. The transparent cavity 4 is enclosed on the sides and top, and open at the bottom. When the transparent cavity 4 is lowered to the bottom, it forms a sealed cavity with the platform 2, so that the transparent urine cup 3 is placed inside; a semi-circular slide rail 5 is provided above the transparent cavity 4, and the two ends of the semi-circular slide rail 5 are fixedly connected to the platform 2. An image acquisition device 6 is slidably mounted on the semi-circular slide rail 5; several light sources 7 are installed on the inner wall of the dark chamber 1, and a color sensor 8 is installed on the platform 2 on one side of the transparent urine cup 3; a humidity sensor 9 and an odor sensor 10 are installed on the inner wall of the transparent cavity 4; a rotational viscometer 11 and a temperature sensor probe 12 are also installed inside the transparent cavity.
[0116] A funnel 13 is installed above the transparent cavity 4. The bottom opening of the funnel 13 is connected to a pipe 14. A solenoid valve 15 controlled by a data processing and control system is installed on the pipe 14. After the pipe 14 passes through the top surface of the transparent cavity 4, its lower opening faces the transparent urine cup 3.
[0117] In use, freshly collected urine is poured into funnel 13. The data processing and control system sends a command, and after the transparent cavity 4 descends into position, the solenoid valve 15 on pipe 14 opens, quantitatively delivering the urine into the transparent urine cup 3. At this time, the temperature sensor probe 12 is immersed in the urine. Following the "Three-Time Nine-Diagnosis" urine testing method, the urine temperature is first detected by the temperature sensor probe 12 and transmitted to the data processing and control system. The data processing and control system determines which of the three time stages the urine is currently in based on its temperature, and then measures the corresponding parameters according to the stage: During the hot stage, the color, steam, foam, and odor of the urine are measured; during the warm stage, the sediment and foam are measured; and during the cool stage, the steam dissipation state, edge change state, and viscosity after stirring are measured. Specifically, urine color, steam, and odor are detected by color sensor 8, humidity sensor 9, and odor sensor 10, respectively. Foam, sediment, and foam are obtained by capturing images of the urine with image acquisition device 6 and processing the image information; the steam dissipation state is obtained by obtaining humidity values at different times using humidity sensor 9. The edge change state is obtained by capturing video through image acquisition device 6 and processing the video information. The viscosity state after stirring is obtained by stirring the stirring rod of rotational viscometer 11 as it descends into the transparent urine cup, and the viscosity is measured by rotational viscometer 11. Data collected by color sensor 8, humidity sensor 9, and odor sensor 10, image and video data captured by image acquisition device 6, and data measured by rotational viscometer 11 are all sent to the data processing and control system for processing and storage.
[0118] The above embodiments of the present invention are merely illustrative examples and are not intended to limit the implementation of the invention. Those skilled in the art can make other variations and modifications based on the above description. It is impossible to exhaustively list all possible implementations here. All obvious variations or modifications derived from the technical solutions of the present invention are still within the protection scope of the present invention.
Claims
1. A urine detection method of three-time nine-diagnosis method, characterized in that, The method comprises the following steps: S1, detecting the temperature of urine, filling the urine characteristic database, and judging according to the measured urine temperature and the two preset temperature thresholds T1 and T2, if the urine temperature is greater than or equal to T2, go to step S2, if the urine temperature is greater than or equal to T1 and less than T2, go to step S3, if the urine temperature is less than T1, go to step S4; S2, read the urine characteristic database, if the color, steam, foam, odor data of urine already exist, then after a preset time interval, go to step S1, otherwise, detect the color, steam, foam, odor data of urine, and write into the urine characteristic database, and then go to step S1; S3, read the urine characteristic database, if the precipitate and scum data of urine already exist, then after a preset time interval, go to step S1, otherwise, detect the precipitate and scum data of urine, and write into the urine characteristic database, and then go to step S1; S4, detect the steam dissipation state, edge change state, and thick state data of urine after stirring, and write into the urine characteristic database, and the detection is completed.
2. The urine detection method of the three-time nine-diagnosis method according to claim 1, characterized in that, The method for detecting the temperature of urine is that the urine to be detected is placed in a transparent urine cup, and the temperature data of the urine to be detected is obtained through a temperature sensor in the urine cup.
3. The urine test method of claim 1, wherein, The method for detecting the color of urine is that the urine to be detected is placed in a transparent urine cup in a dark room, one side of the transparent urine cup is irradiated by a light source, and the other side receives the light information transmitted through a color sensor, so as to obtain the color of the detected urine.
4. The urine test method of claim 1, wherein, The method for detecting the steam and odor data of urine is that the urine to be detected is placed in a urine cup in a sealed cavity, and the steam and odor data of the urine to be detected are obtained through a humidity sensor and an odor sensor in the sealed cavity.
5. The urine detection method of claim 1, wherein, The method for detecting the foam of urine is that the urine to be detected is placed in a transparent urine cup in a dark room, light supplementing treatment is performed around the transparent urine cup, a plurality of pictures of the urine to be detected are taken by an image collector, and the foam state data of the urine is obtained through comprehensive processing of the information of the plurality of pictures, wherein the longitudinal pictures are used to obtain the thickness information of the foam of the urine, and the transverse pictures are used to obtain the dynamic change of the foam of the urine.
6. The urine test method of claim 5, wherein the three times nine diagnosis method is characterized by, The step of obtaining the foam state data of the urine through comprehensive processing of the information of the plurality of pictures is: S1, obtaining the thickness information of the foam of the urine, and the specific steps include: S1.1, defining the center point of the longitudinal picture as the coordinate origin; S1.2, using the canny edge extraction algorithm, extracting the edge profile information of the urine foam in the longitudinal picture, using statistical method to estimate the minimum threshold value of urine foam edge related pixels as THR, threshold method is used to remove the interference term, the pixel point set of the upper edge and the lower edge of the urine foam is obtained, wherein the pixel point set of the upper edge of the urine foam is {(x1 H ,y1 H ),(x2 H ,y2 H ),(x3 H ,y3 H ),....(x m H ,y m H )}, the pixel point set of the lower edge of the urine foam is {(x1 L ,y1 L ),(x2 L ,y2 L ),(x3 L ,y3 L ),....(x n L ,y n L )}, the fitting straight line of the upper edge and the lower edge is calculated by using the least square method: y H = a(1) y L = b(2) S1.3, taking a P point on the fitting straight line of the upper edge or lower edge of the longitudinal picture foam pixel point, the horizontal coordinate of the P point is c, and the formula (1) and (2) are substituted, so that the coordinate points with the same horizontal coordinate of the upper edge and lower edge are (c, a) and (c, b), the corresponding longitudinal field of view angle is β, the pixel resolution of the collected longitudinal picture is A*B, wherein A is the horizontal resolution, B is the vertical resolution, the vertical distance of the camera from the P point is h, the Q point is the point to be calculated, the pixel point coordinate of the Q point is (d, e), and according to the similar triangle theorem: The thickness D of the foam is calculated as: S2, obtaining the dynamic change of the foam of the urine, including the size, quantity, disappearance direction and disappearance speed of the foam, and the specific steps are: S2.1, the image resolution of the collected transverse picture is A1*B1, the transverse field of view angle is a1, and the longitudinal field of view angle is beta1; the canny edge extraction algorithm is used to extract the foam image contour information, the connected operation is used to obtain the maximum connected domain; the pruning operation is used to remove the lateral branch; finally, the foam contour with clear contour is obtained; the image is binarized, for any closed loop connected domain, three points are taken in succession, substituted into the equation of a circle, the center point coordinate set of the current circle and the radius set are obtained, according to the statistical method, the distribution of the center point horizontal coordinate, the center point vertical coordinate and the radius is counted, the horizontal coordinate and the vertical coordinate corresponding to the peak point of the distribution curve of the center point horizontal coordinate and the center point vertical coordinate and the radius value are defined as the center point coordinate and the radius value of the circle, the center point coordinate and the radius value of all circles are counted, and the number of the current time foam is the number N of the center point coordinate of all circles; S2.2, according to the mapping relationship between the camera and the target point coordinates, convert and calculate any one circle center point pixel coordinates (x p , y p ) to spatial coordinates (x w , y w ): For any edge pixel point coordinate (x p1 , y p1 ) on a circle, the spatial coordinate (x w1 , y w1 ) is calculated by conversion: The size of the foam, that is, the area of the circle, is calculated as: S f = π((x w1 - x w ) 2 + (y w1 - y w ) 2 ) The average size S of all foams is calculated as: In the formula is the size of the nth bubble; S2.3, the number of foams M at time t is measured separately according to the method of step S2.1 t and the number of foams M at time t+1 is measured t+1 The speed of disappearance of the foams is calculated as: a dis = (M t - M t+1 ) S2.4, the foam area change of the upper, lower, left, right and middle five regions of the transverse picture at the previous and next two time points, that is, t time and t+1 time, is calculated as: wherein: represents the sum of all foam areas in the region at time t+1, represents the sum of all foam areas in the region at time t; wherein: denotes the sum of all foam areas in the region at time t+1, denotes the sum of all foam areas in the region at time t; wherein: represents the sum of all foam area in the left region at time t+1, represents the sum of all foam area in the left region at time t; wherein: represents the sum of all foam area in the right region at time t+1, represents the sum of all foam area in the right region at time t; wherein: represents the sum of all foam area in the middle zone at time t+1, represents the sum of all foam area in the middle zone at time t; foam from initial to final unchanged a f上 , a f下 , a f左 , a f右 , a f中 time taken for the state to equal 1 t 上 , t 下 , t 左 , t 右 , t 下 , a f上 , a f下 , a f左 , a f右 , a f中 value greater than a threshold T a defines the direction in which the foam disappears as the region which is furthest outside the threshold range and has the shortest time.
7. The urine test method of claim 1, wherein, The method for detecting the precipitate and foam of urine is that the to-be-tested urine is placed in a transparent urine cup in a dark room, light supplementing treatment is performed on the periphery of the transparent urine cup, a plurality of pictures of the to-be-tested urine are shot by an image collector, and the precipitate and foam data of the urine are obtained through comprehensive processing of the information of the plurality of pictures.
8. The urine test method of claim 1, wherein, The method for detecting the steam dissipation state of urine is that the to-be-tested urine is placed in a urine cup in a sealed cavity, the humidity value at different time is obtained by a humidity sensor in the sealed cavity, and the steam dissipation state data of the urine is obtained; The method for detecting the edge change state of urine is that the to-be-tested urine is placed in a transparent urine cup in a dark room, light supplementing treatment is performed on the periphery of the transparent urine cup, a video is shot by an image collector, and the edge change state data of the urine is obtained through comprehensive processing of the video information; The method for detecting the viscous state of the stirred urine is that the to-be-tested urine is placed in a transparent urine cup, a stirring rod of a rotary viscometer above the transparent urine cup is lowered into the transparent urine cup to stir, and the viscous state data of the stirred urine is measured by the rotary viscometer.
9. A urine detection device of the three-time nine-diagnosis method, characterized by: The utility model relates to a urine sampling device, including darkroom (1) and be in its stand (2), place transparent urine cup (3) on stand (2), the transparent urine cup (3) top is provided with transparent cavity (4) that can be controlled by motor and lift, the transparent cavity (4) side and top surface surround, lower part is open, the transparent cavity (4) drops to the bottom with stand (2) and forms airtight cavity to make transparent urine cup (3) be in it, the transparent cavity (4) top is provided with semicircular slide rail (5), and semicircular slide rail (5) both ends are fixedly connected with stand (2), and image collector (6) is slidably installed on semicircular slide rail (5), the inner wall of darkroom (1) is installed with a plurality of light sources (7), and the stand (2) of transparent urine cup (3) side is installed with color sensor (8), the inner wall of transparent cavity (4) is installed with humidity sensor (9) and smell sensor (10), the inside of transparent cavity is also installed with rotary viscometer (11) and temperature sensor probe (12).
10. The urine test device of claim 9, wherein: The utility model relates to a urine sampling device, including darkroom (1) and be in its stand (2), place transparent urine cup (3) on stand (2), the transparent urine cup (3) top is provided with transparent cavity (4) that can be controlled by motor and lift, the transparent cavity (4) side and top surface surround, lower part is open, the transparent cavity (4) drops to the bottom with stand (2) and forms airtight cavity to make transparent urine cup (3) be in it, the transparent cavity (4) top is provided with semicircular slide rail (5), and semicircular slide rail (5) both ends are fixedly connected with stand (2), and image collector (6) is slidably installed on semicircular slide rail (5), the inner wall of darkroom (1) is installed with a plurality of light sources (7), and the stand (2) of transparent urine cup (3) side is installed with color sensor (8), the inner wall of transparent cavity (4) is installed with humidity sensor (9) and smell sensor (10), the inside of transparent cavity is also installed with rotary viscometer (11) and temperature sensor probe (12).