TCD foaming test intelligent foam making system based on image recognition
Through real-time monitoring and automatic adjustment of mixing parameters through image recognition technology, the problem of uneven manual operation in TCD foaming test is solved, and efficient and accurate bubble mixing is achieved, which is suitable for high-precision TCD inspection.
Patent Information
- Application Number
- CN202410174784.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-07
- Publication Date
- 2025-07-25
AI Technical Summary
In the existing TCD foaming test, manual foam making operations are cumbersome and easy to lead to unevenness, affecting the accuracy and efficiency of inspection results, and lacking real-time monitoring and control methods.
Using an intelligent bubble making system based on image recognition, the monitoring module monitors the bubble density and size in real time, and automatically adjusts the pumping frequency and amplitude of the mixer to ensure the quality of the mixing liquid.
It improves the uniformity and accuracy of the mixture, reduces artificial errors, improves the efficiency and reliability of the bubble making process, and is suitable for high-precision TCD foaming tests.
Smart Images

Figure CN120360860A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of medical devices, and more particularly, relates to an intelligent bubble-making system for TCD bubble test based on image recognition. Background Art
[0002] At present, for the bubble-making of TCD bubble test, nurses manually make bubbles by connecting a three-way tube and a syringe. 0.9% normal saline, clean air, and the subject's own blood are added and quickly mixed to form microbubbles, which are then injected into the subject's body in a bolus manner. Nurses have a large workload every day, with a large number of bubble-making times and long hours. The muscles and ligaments of the hands are prone to injury. Moreover, manual operation is prone to uneven bubble-making, and when injecting the microbubble mixture, the flow rate is also uneven, which may lead to inaccurate examination results and low work efficiency. When doctors and nurses with lack of experience have poor cooperation, it is easy to miss the best injection time, resulting in the failure of the examination.
[0003] Referring to the disclosed relevant documents, the technical solution with the publication number CN110279432B proposes a microbubble contrast agent preparation and injection device for TCD examination, which automatically prepares a TCD microbubble contrast agent with a suitable ratio by using multiple automated pistons and a matching device; the technical solution with the publication number US06629449B1 proposes a bubble measuring instrument, which uses ultrasonic waves generating frequencies to detect the diameter of bubbles; the technical solution with the publication number JP4183560B2 proposes a bubble-making device, which generates sufficiently fine microbubbles through a special structure inside the bubble-making chamber for subsequent TCD tests.
[0004] The above technical solutions all propose several technical solutions for bubble-making methods or bubble-making equipment, but for the specific bubble-making effect, it is only speculated through theoretical calculations, and there is no monitoring of the actual bubble-making effect and control of the operation of the bubble-making device.
[0005] The foregoing discussion of the background art is only intended to facilitate the understanding of the present invention. This discussion does not recognize or admit any part of the common general knowledge in the materials mentioned. Summary of the Invention
[0006] The object of the present invention is to provide an intelligent bubble-making system and method for TCD bubble test based on image recognition, belonging to the technical field of medical detection. The bubble-making system includes a venous end interface, a locking valve, two mixers, two dispensers and two three-way valves. By controlling the three-way valves and the dispensers, the system draws blood from the human body, mixes it with physiological saline, and injects air to form a mixed solution. The pumping frequency and amplitude of the mixer are dynamically adjusted according to the bubble density and size captured by the monitoring module to ensure the quality of the mixed solution. The monitoring module includes a light source unit, a macro camera and a processing unit, which are used to capture the image inside the mixer and analyze the bubble characteristics. The control module generates control instructions according to the image data to adjust the operation of the mixer. This system effectively improves the mixing efficiency and quality, reduces human error, and is applicable to high-precision TCD bubble tests through real-time monitoring and automatic adjustment of mixing parameters.
[0007] The present invention adopts the following technical solutions: An intelligent bubble-making system for TCD bubble test based on image recognition, characterized in that the bubble-making system includes a venous end interface (10), a locking valve (16), a first mixer
[0008] (12), a second mixer (14), a first dispenser (22), a second dispenser (24), a first three-way valve (32) and a second three-way valve (34); The first end of the venous end interface (10) is connected to the human vein through a needle (2), and the second end of the venous end interface (10) is connected to the first end of the first pipeline (4);
[0009] The locking valve (16) is arranged in the middle section of the first pipeline (4) to control the cut-off and conduction of the first pipeline (4);
[0010] The first mixer (12) and the second end of the first pipeline (4) are coupled to the first joint (321) of the first three-way valve (32) in parallel; The second mixer (14) is coupled to the second joint (322) of the first three-way valve (32); The first end of the second pipeline (6) is coupled to the third joint (323) of the first three-way valve (32);
[0011] The second end of the second pipeline (6) is coupled to the fourth joint (341) of the second three-way valve (34); The first dispenser (22) and the second dispenser (24) are respectively coupled to the fifth joint (342) and the sixth joint (343) of the second three-way valve (34);
[0012] Among them, by orderly setting the conduction and cut-off of the interfaces of the two three-way valves, after the blood is extracted from the human body through the first dispenser (22) and mixed with the pre-set physiological saline inside, the first mixed solution is transported to the two dispensers; the second dispenser (24) is used to transport clean air to the two dispensers; the reciprocating pumping of the two mixers is used to fully mix and foam the blood, air and physiological saline, and finally transport the bubble mixture back to the human body;
[0013] Moreover, one or more image recognition-based monitoring modules (40) are configured for the first mixer (12) and / or the second mixer (14), which are used to monitor the foaming amount and mixing degree during the process of making the bubble mixture, and control the mixing pumping rate and pumping times of the two mixers to ensure that the foaming degree and mixing degree of the bubble mixture meet the predetermined requirements;
[0014] Preferably, the foaming system further includes a control module; the locking valve (16), the first mixer
[0015] (12), the second mixer (14), the first dispenser (22), the second dispenser (24), the first three-way valve (32) and the second three-way valve (34) are all electronically controlled components and are connected to the control circuit and communicate with the control module in a coupled manner;
[0016] Moreover, the control module also includes communicating with the monitoring module (40) in a coupled manner to obtain the image data obtained by the monitoring module (40), and generating control instructions according to the image data to control the operation of each component in the foaming system;
[0017] Preferably, the first mixer (12) and the second mixer (14) have at least one section of transparent housing to allow the monitoring module (40) to observe the inside of the first mixer (12) and / or the second mixer (14) through the transparent housing;
[0018] Preferably, an observation cavity is provided inside the first mixer (12) and the second mixer (14); the observation cavity is provided at a position close to the transparent housing; the observation cavity has an opaque side wall; the observation cavity is formed by separating the side wall from the transparent housing, and allows part of the liquid inside the mixer to enter the observation cavity through both ends of the observation cavity;
[0019] Preferably, the observation angle of the monitoring module (40) is blocked by the side wall after passing through the transparent housing;
[0020] Preferably, the monitoring module (40) includes: a light source unit, a macro camera and a processing unit;
[0021] The light source unit is configured to emit light into the observation cavity so that the edge of the bubble presents a bright boundary;
[0022] The macro camera is configured to perform macro shooting in the observation cavity to capture image data and send the image data to the processing unit;
[0023] The processing unit is configured to preprocess the image data and then send the preprocessed image data to the control module;
[0024] Moreover, an intelligent bubble-making method for TCD foaming test based on image recognition is proposed. The bubble-making method is applied to an intelligent bubble-making system for TCD foaming test as described above. The bubble-making method includes the following steps:
[0025] S100: Connect the needle (2) to the human vein, open the locking valve (16), adjust the first three-way valve (32) and the second three-way valve (34) so that the venous end interface (10), the first pipeline (4), the second pipeline (6), and the first dispenser (22) form a passage. Use the first dispenser (22) to extract a specified volume of human blood and mix it with the physiological saline preset in the first dispenser (22) to form a first mixed solution;
[0026] S200: Close the locking valve (16) to cut off the first pipeline (4), adjust the first three-way valve (32) to form a passage between the first dispenser (22) and the first mixer (12); pump the first dispenser (22) to convey the first mixed solution into the first mixer (12);
[0027] S300: Adjust the second three-way valve (34) to form a passage between the second dispenser (24) and the first mixer (12); pump the second dispenser (24) to convey the specified volume of clean air inside the second dispenser (24) into the first mixer (12);
[0028] S400: Adjust the first three-way valve (32) and the second three-way valve (34) so that only a passage is formed between the first mixer
[0029] (12) and the second mixer (14); repeatedly pump the first mixer (12) and the second mixer (14) to make bubbles of the mixed solution, and finally obtain a fully mixed bubble mixed solution; store the bubble mixed solution in the first mixer (12);
[0030] S500: Open the locking valve (16), adjust the first three-way valve (32) to make the first mixer (12) form a passage only with the venous end interface (10); pump the first mixer (12) to transfuse the bubble mixed solution back into the human body;
[0031] Repeat the above steps S100 - S500 for a preset number of times;
[0032] Preferably, the foam - making method includes setting the pumping frequency F and the pumping amplitude A of the first mixer (12) and the second mixer (14) according to the bubble density N of the current mixture and the observed average size S of the bubbles:
[0033]
[0034]
[0035] In the above formula, F0 is the preset maximum value of the pumping frequency, and A0 is the preset maximum value of the pumping amplitude; N max is the target value of the bubble density; S min is the target observed average size of the bubbles; these four parameters are set by relevant technicians;
[0036] k s and k A are adjustment coefficients, which are set by technicians based on the performance of the mixer;
[0037] e is the base of the natural logarithm.
[0038] The beneficial effects achieved by the present invention are:
[0039] 1. The foam - making system of the present technical solution can monitor the number and size of bubbles in the mixture in real - time through the integrated image recognition monitoring module, ensuring precise control of the pumping frequency and amplitude; this automatic adjustment mechanism improves the foaming degree and uniformity of the mixture, ensuring the accuracy and repeatability of the experiment;
[0040] 2. The automatic control of the foam - making system of the present technical solution greatly reduces the need for manual operation, reducing errors and deviations caused by improper manual operation; the precision and consistency of the mixing process are ensured through electronically controlled three - way valves and dispensers, improving the reliability of the entire system;
[0041] 3. The foam - making method of the present technical solution can, through the integrated image recognition technology, monitor the bubble state in the mixture in real - time, including the number and size of bubbles; according to the real - time data of the bubbles, the system automatically adjusts the pumping frequency and amplitude to optimize the foaming effect of the mixture; this real - time feedback and automatic optimization mechanism ensures the foaming quality of the mixture, improving the efficiency and accuracy of the entire foam - making process, and is particularly suitable for medical testing and research fields with strict requirements for the foaming degree.
[0042] 4. The bubble-making system of this technical solution adopts a modular design. Each working module, component of the hardware part in the system, as well as the instructions, parameters, and algorithms of the software part can be conveniently replaced and / or upgraded later, thereby reducing the construction cost and maintenance cost of this system. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The present invention can be further understood from the following description in conjunction with the accompanying drawings. The components in the drawings are not necessarily drawn to scale, but the emphasis is placed on showing the principles of the embodiments. In different views, the same reference numerals designate corresponding parts.
[0044] Description of reference numerals in the drawings: 2 - needle; 4 - first pipeline; 6 - second pipeline; 10 - venous end interface; 12 - first mixer; 14 - second mixer; 16 - locking valve; 22 - first batching device; 24 - second batching device; 32 - first three-way valve; 34 - second three-way valve; 40 - monitoring module; 41 - observation chamber; 42 - storage chamber; 43 - housing; 44 - side wall; 321 - first joint; 322 - second joint; 323 - third joint; 341 - fourth joint; 342 - fifth joint; 343 - sixth joint; 500 - computing device; 502 - bus; 504 - processor; 506 - main memory; 508 - read-only memory; 510 - storage device; 512 - display; 514 - input device; 516 - cursor control device; 518 - network device;
[0045] Figure 1 It is a schematic diagram of the frame of the bubble-making system in an embodiment of the present invention;
[0046] Figure 2 It is a schematic diagram of the bubble-making steps applied to the present bubble-making system in an embodiment of the present invention;
[0047] Figure 3 It is a cross-sectional schematic diagram of the mixer in an embodiment of the present invention;
[0048] Figure 4 It is a microscopic schematic diagram of identifying bubbles in an embodiment of the present invention;
[0049] Figure 5 It is a frame schematic diagram of the computing device applied in an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0050] In order to make the object, technical solutions and advantages of the present invention more clear and understandable, the present invention will be further described in detail below in conjunction with its embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. For those skilled in the art, after referring to the following detailed description, other systems, methods and / or features of this embodiment will become obvious. It is intended that all such additional systems, methods, features and advantages be included within this specification, be included within the scope of the present invention, and be protected by the appended claims. Additional features of the disclosed embodiments are described in the following detailed description and will be obvious from the following detailed description.
[0051] In the drawings of the embodiments of the present invention, the same or similar reference numerals correspond to the same or similar components; in the description of the present invention, it should be understood that if there are terms such as "upper", "lower", "left", "right", etc. indicating the orientation or positional relationship, they are based on the orientation or positional relationship shown in the drawings. This is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or component referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, the terms describing the positional relationship in the drawings are only for illustrative purposes and cannot be understood as a limitation of this patent. For those of ordinary skill in the art, the specific meanings of the above terms can be understood according to specific circumstances.
[0052] Embodiment 1, exemplarily, a smart bubble-making system for TCD bubble test based on image recognition is proposed, as shown in the attached Figure 1 As shown, the bubble-making system includes a venous end interface 10, a locking valve 16, a first mixer 12, a second mixer 14, a first batching device 22, a second batching device 24, and a first three-way valve 32 and a second three-way valve 34; the first end of the venous end interface 10 is connected to the human vein through a needle 2, and the second end of the venous end interface 10 is connected to the first end of a first pipeline 4;
[0053] The locking valve 16 is arranged in the middle section of the first pipeline 4 for controlling the cut-off and conduction of the first pipeline 4;
[0054] The first mixer 12 and the second end of the first pipeline 4 are coupled in parallel with the first joint 321 of the first three-way valve 32; the second mixer 14 is coupled to the second joint 322 of the first three-way valve 32; the first end of a second pipeline 6 is coupled to the third joint 323 of the first three-way valve 32;
[0055] The second end of the second pipeline 6 is coupled to the fourth joint 341 of the second three-way valve 34; the first batching device 22 and the second batching device 24 are respectively coupled to the fifth joint 342 and the sixth joint 343 of the second three-way valve 34;
[0056] Among them, by orderly setting the conduction and cut-off of the interfaces of the two three-way valves, after the blood is extracted from the human body through the first dispenser 22 and mixed with the internally preset physiological saline, the first mixed solution is conveyed to the two dispensers; the second dispenser 24 is used to convey clean air to the two dispensers; the reciprocating pumping of the two mixers is used to fully mix and foam the blood, air and physiological saline, and finally convey the bubble mixed solution back to the human body;
[0057] Moreover, one or more image recognition-based monitoring modules 40 are configured for the first mixer 12 and / or the second mixer 14, which are used to monitor the foaming amount and mixing degree during the process of making the bubble mixed solution, and control the mixing pumping rate and pumping times of the two mixers to ensure that the foaming degree and mixing degree of the bubble mixed solution meet the predetermined requirements;
[0058] Preferably, the foaming system further includes a control module; the locking valve 16, the first mixer 12, the second mixer 14, the first dispenser 22, the second dispenser 24, the first three-way valve 32 and the second three-way valve 34 are all electronically controlled components and are connected to the control circuit and communicate with the control module in a coupled manner;
[0059] Moreover, the control module also includes communicating with the monitoring module 40 in a coupled manner to obtain the image data acquired by the monitoring module 40, and generating a control instruction according to the image data to control the operation of each component in the foaming system;
[0060] Preferably, the first mixer 12 and the second mixer 14 have at least one section of transparent outer shell to allow the monitoring module 40 to observe the inside of the first mixer 12 and / or the second mixer 14 through the transparent outer shell;
[0061] Preferably, an observation cavity is provided inside the first mixer 12 and the second mixer 14; the observation cavity is provided at a position close to the transparent outer shell; the observation cavity has an opaque side wall; the side wall and the transparent outer shell are separated to form the observation cavity, and part of the liquid inside the mixer is allowed to enter the observation cavity through both ends of the observation cavity;
[0062] Preferably, the observation angle of the monitoring module 40 is blocked by the side wall after passing through the transparent outer shell;
[0063] Preferably, the monitoring module 40 includes: a light source unit, a macro camera and a processing unit;
[0064] The light source unit is configured to emit light into the observation cavity so that the edge of the bubble presents a bright boundary;
[0065] The macro camera is configured to perform macro shooting in the observation cavity to capture image data and send the image data to the processing unit;
[0066] The processing unit is configured to preprocess the image data and then send the preprocessed image data to the control module;
[0067] Further, as shown in the appendix Figure 2 A smart bubble-making method for TCD foaming test based on image recognition is proposed; the bubble-making method is applied to the above-mentioned smart bubble-making system for TCD foaming test based on image recognition; the bubble-making method includes the following steps:
[0068] S100: Connect the needle 2 to the human vein, open the locking valve 16, adjust the first three-way valve 32 and the second three-way valve 34 so that the venous end interface 10, the first pipeline 4, the second pipeline 6 and the first dispenser 22 form a passage, and use the first dispenser 22 to extract a specified volume of human blood and mix it with the physiological saline preset in the first dispenser 22 to form a first mixed solution;
[0069] S200: Close the locking valve 16 to cut off the first pipeline 4, adjust the first three-way valve 32 to make the first dispenser 22 and the first mixer 12 form a passage; pump the first dispenser 22 to transport the first mixed solution into the first mixer 12;
[0070] S300: Adjust the second three-way valve 34 to make the second dispenser 24 and the first mixer 12 form a passage; pump the second dispenser 24 to transport the specified volume of clean air inside the second dispenser 24 into the first mixer 12;
[0071] S400: Adjust the first three-way valve 32 and the second three-way valve 34 so that only a passage is formed between the first mixer 12 and the second mixer 14; repeatedly pump the first mixer 12 and the second mixer 14 to make bubbles of the mixed solution, and finally obtain a fully mixed bubble mixed solution; store the bubble mixed solution in the first mixer 12;
[0072] S500: Open the locking valve 16, adjust the first three-way valve 32 to make the first mixer 12 form a passage only with the venous end interface 10; pump the first mixer 12 to transfuse the bubble mixed solution back into the human body;
[0073] Repeat the above steps S100 - S500 according to the preset number of times until the preset bubble density and bubble size are reached and then stop;
[0074] Preferably, the foaming method includes setting the pumping frequency F and the pumping amplitude A of the first mixer 12 and the second mixer 14 according to the bubble density N of the current mixture and the observed average size S of the bubbles:
[0075]
[0076]
[0077] In the above formula, F0 is the preset maximum value of the pumping frequency, A0 is the preset maximum value of the pumping amplitude; N max is the target value of the bubble density; S min is the target observed average size of the bubbles; the above four parameters are set by relevant technicians;
[0078] k s and k A are adjustment coefficients, which are set by technicians based on the performance of the mixer;
[0079] e is the base of the natural logarithm;
[0080] In an exemplary embodiment, the mixers, namely the first mixer 12 and the second mixer 14, and the dispensers, namely the first dispenser 22 and the second dispenser 24, are implemented by an automated mechanical device, such as a mechanical injection pump driven by a stepper motor or a servo motor, or a pneumatic pump device controlled by a microfluidic chip and an electronic pressure control system;
[0081] Preferably, the mixer may have a cylindrical storage cavity 42;
[0082] Further, as shown in the appendix Figure 3 an exemplary cross-sectional view of the mixer perpendicular to the central axis of the mixer is shown;
[0083] Preferably, the outer shell 43 of the mixer may be made of transparent glass or polymer material;
[0084] Preferably, the side wall 44 is a plane or a curved surface, and the extending direction of the side wall 44 is parallel to the central axis of the mixer; the two boundaries of the side wall 44 are connected to the inner wall of the outer shell 43 to form an observation cavity 41 that is open at both ends; the liquid in the storage cavity 42 can flow into the interior of the observation cavity 41 from both ends of the observation cavity 41, and the monitoring module 40 can obtain an image of the liquid inside the observation cavity 41 through the part of the outer shell 43 at the position of the observation cavity 41, and since the side of the side wall 44 facing the monitoring module 40 is made of an opaque material, there will be no observation objects with too large a viewing distance difference within the viewing depth of the monitoring module 40, so as to be able to provide the focusing speed and image clarity of the monitoring module 40;
[0085] Preferably, the side wall 44 can be made of glass or polymer material, and after being coated by the color of the material itself or through an additional coloring step, the surface of the side wall can be made opaque;
[0086] In an exemplary embodiment, the locking valve 16, the first three-way valve 32, and the second three-way valve 34 can be valve assemblies controlled by electromagnetic means.
[0087] Embodiment 2: This embodiment should be understood as including at least all the features of any of the foregoing embodiments, and being further improved on this basis;
[0088] Exemplarily, the implementation manner of the monitoring module 40 is further described;
[0089] Preferably, the light emitted by the light source unit can be visible light with a specified spectral range to provide rich RGB spectral information;
[0090] Preferably, the macro camera is a macro camera with an autofocus function, and preferably has a high-pixel imaging chip with, for example, 3MP or 5MP pixels to generate original image data;
[0091] Preferably, the processing unit can be a micro computing unit with a processor and a memory, and is used for storing the original image data and further performing image processing;
[0092] In an exemplary embodiment, the emission angle of the light emitted by the light source unit is the same as the field of view angle of the macro camera, and both are directly facing the side wall; the side wall has a surface made of a light-blocking and low-reflectivity material, which can make the light emitted by the light source unit produce less reflection on the side wall to reduce the diffraction phenomenon generated by the macro camera, and can make the obtained image clearer;
[0093] In an exemplary embodiment, by using the side wall to divide the observation cavity, the bubbles in the observation cavity have a small parallax distance D in the observation direction of the macro camera, so as to reduce the problem that when it is necessary to focus on a large distance before and after in the observation direction, it is necessary to reverse zoom and there are too many bubbles;
[0094] Preferably, the number of the parallax distances D can be between 0.1 mm and 1 mm, and the specific value can be determined based on the size of the mixer and the processing performance of the macro camera and the processing unit;
[0095] In an exemplary embodiment, after the real-time image captured by the macro camera is transmitted to the processing unit, the processing unit first performs decolorization processing on the image, and its algorithm is to scan the image and perform gray processing on the RGB value of each pixel point in the image;
[0096] Preferably, the method for converting a color image into a grayscale image is to convert RGB into the YCbCr format, extract the Y component, i.e., the image brightness value, separately to obtain the grayscale image;
[0097] Preferably, the RGB888 to YCrCb calculation formula is used to process the pixels:
[0098] Let Y = 0.299R + 0.587G + 0.114B;
[0099] Cb = 0.568(B - Y) + 128 = -0.172R - 0.339G + 0.511B + 128;
[0100] Cr = 0.713(R - Y) + 128 = 0.511R - 0.428G - 0.083B + 128;
[0101] The decolorized picture needs to be further sharpened to improve the contrast of the picture and enhance the accuracy of image recognition. The sharpening algorithm processes the picture pixels according to the Laplace enhancement formula;
[0102] After the image is decolorized and sharpened, the edge detection algorithm is used to further process and recognize the image to find the boundary between the gas and liquid phases and improve the accuracy of bubble identification. Currently, the optional edge detection algorithms include the Robert operator, Sobel operator, Laplace operator, lower right edge extraction algorithm, prewitt operator, Robinson operator, Kirsch operator, and Smoothed operator. In the preferred embodiment, the Smoothed operator is used to recognize the image;
[0103] Furthermore, different analysis methods can be adopted for the bubbles in the image according to their sizes. Preferably, the radial color gamut method is used for the analysis of larger bubbles, and the pattern matching method is used for the analysis of smaller bubbles;
[0104] The radial color gamut method is to intercept a small section of the pipeline picture in the direction perpendicular to the pipeline for color gamut analysis, and judge whether there are bubbles according to the color component distribution and continuity in the chromatogram. By vertically scanning the pixels in the selected interval, when the brightness continuity of the scanning line is interrupted, it can be judged that the liquid flow is interrupted, and the bubble volume = the width of the continuous scanning interruption * the cross-sectional area of the pipeline;
[0105] The recognition of microbubbles mainly uses the pattern matching method. It scans the image in a rectangular area with a variable-sized window, and differentiates the content within the window by light and dark brightness to determine whether there is an arc composed of white pixels in the rectangular area. If it exists, it is determined as a bubble and marked. Assuming the side length of the rectangle is L, the volume of the bubble is calculated using the sphere volume formula, where r = L / 2 in the formula. The specific steps are as follows:
[0106] Step 1: Taking the center of the rectangle as the center of the circle, the inscribed circle of the rectangular area is denoted as P1, with a radius of R1;
[0107] Step 2: Establish a second circle with the center of the rectangle as the center of the circle and a radius of R2, denoted as P2, where R1 > R2, and their difference is about 3 - 4 pixels;
[0108] Step 3: Calculate the proportion of bright and dark pixels in the area enclosed by P1 and P2. When the proportion of bright area pixels is greater than 30%, it is determined that there is a bubble in this area, and the volume of the bubble can be further calculated.
[0109] Embodiment 3: This embodiment should be understood as including at least all the features of any one of the foregoing embodiments and being further improved on this basis;
[0110] Exemplarily, as shown in the appendix Figure 5 illustrates the implementation manner of the computing device 500 adopted in the control module; the computing device 500 can be applied to the data storage, operation, and output process of instruction results of each working component in the bubble-making system;
[0111] Exemplarily, the computing device 500 includes a bus 502 or other communication mechanisms for transmitting information, and one or more processors 504 coupled to the bus 502 for processing information; the processor 504 can be, for example, one or more general-purpose microprocessors;
[0112] The computing device 500 also includes a main memory 506, such as a random access memory (RAM), a cache, and / or other dynamic storage devices, which are coupled to the bus 502 for storing information and instructions to be executed by the processor 504; the main memory 506 can also be used to store temporary variables or other intermediate information during the execution of instructions executed by the processor 504; when these instructions are stored in a storage medium accessible by the processor 504, the computing device 500 is presented as a special machine customized to execute the operations specified in the instructions;
[0113] The computing device 500 may also include a read-only memory (ROM) 508 or other static storage device coupled to the bus 502 for storing static information and instructions for the processor 504; a storage device 510, such as a magnetic disk, an optical disk, or a USB drive (flash drive), for example, will be coupled to the bus 502 for storing information and instructions.
[0114] Furthermore, coupled to the bus 502 may also include a display 512 for displaying various information, data, media, etc., and an input device 514 for allowing a user of the computing device 500 to control, manipulate, and / or interact with the computing device 500.
[0115] A preferred way to interact with the management system may be through a cursor control device 516, such as a computer mouse or a similar control / navigation mechanism.
[0116] Furthermore, the computing device 500 may also include a network device 518 coupled to the bus 502; the network device 518 may include components such as a wired network card, a wireless network card, a switching chip, a router, a switch, etc.
[0117] Generally, the terms "engine", "component", "system", "database", etc. as used herein may refer to logic embodied in hardware or firmware, or to a collection of software instructions, which may have entry and exit points and are written in a programming language such as Java, C, or C++; software components may be compiled and linked into an executable program, installed in a dynamic link library, or may be written in an interpreted programming language (such as BASIC, Perl, or Python); it should be understood that software components may call from other components or from themselves, and / or may be called in response to detected events or interrupts.
[0118] Software components configured to execute on a computing device may be provided on a computer-readable medium, such as an optical disk, a digital video disk, a flash drive, a magnetic disk, or any other tangible medium, or as a digital download (and may be initially stored) in a compressed or installable format that requires installation, decompression, or decryption before execution); such software code may be stored, in whole or in part, on the memory device of the executing computing device for the computing device to execute; software instructions may be embedded in firmware, such as an EPROM; it should also be understood that hardware components may be composed of connected logic units (such as gates and flip-flops), and / or may be composed of programmable units (such as programmable gate arrays or processors).
[0119] The computing device 500 can include custom hardwired logic, one or more ASICs or FPGAs, firmware, and / or program logic to implement the techniques described herein, and the program logic, in combination with a computer system, causes the computing device 500 to be a specialized computing device;
[0120] In accordance with one or more embodiments, the techniques herein are performed by the computing device 500 in response to one or more sequences of one or more instructions contained in the main memory 506 being executed by the processor 504; such instructions can be read into the main memory 506 from another storage medium, such as the storage device 510; the execution of the sequence of instructions contained in the main memory 506 causes the processor 504 to perform the processing steps described herein; in alternative embodiments, hardwired circuitry may be used in place of or in combination with software instructions;
[0121] As used herein, the term "non-transitory medium" and like terms refer to any medium that stores data and / or instructions that cause a machine to operate in a particular fashion; such non-transitory media can include non-volatile media and / or volatile media; non-volatile media includes, for example, optical or magnetic disks, such as the storage device 510; volatile media includes dynamic memory, such as the main memory 506;
[0122] Common forms of non-transitory media include, for example, floppy disks, hard disks, solid state drives, magnetic tape, or any other magnetic data storage medium, CD-ROM, any other optical data storage medium, any physical medium with hole patterns, RAM, PROM, and EPROM, FLASH-EPROM, NVRAM, any other memory chip or cartridge, and network versions thereof;
[0123] Non-transitory media is different from transmission media but can be used in combination with transmission media; transmission media participates in the transfer of information between non-transitory media; for example, transmission media includes coaxial cables, copper wire, and fiber optics, including the wires that make up the bus 502; transmission media can also take the form of acoustic or light waves, such as radio waves and infrared data communications.
[0124] Although the present invention has been described above with reference to various embodiments, it should be understood that many changes and modifications can be made without departing from the scope of the present invention. That is, the methods, systems, and devices discussed above are examples. Various configurations can appropriately omit, replace, or add various processes or components. For example, in an alternative configuration, the method can be performed in an order different from the described order, and / or various components can be added, omitted, and / or combined. Moreover, the features described with respect to certain configurations can be combined in various other configurations, such as different aspects and elements of the configurations can be combined in a similar manner. In addition, as technology develops, the elements therein can be updated, that is, many elements are examples and do not limit the scope of the present disclosure or claims.
[0125] Specific details are given in the description to provide a thorough understanding of the exemplary configurations including the implementation. However, the configurations can be practiced without these specific details. For example, well-known circuits, processes, algorithms, structures, and techniques have been shown without unnecessary details to avoid obscuring the configurations. The description only provides example configurations and does not limit the scope, applicability, or configurations of the claims. Instead, the foregoing description of the configurations will provide those skilled in the art with an enabling description for implementing the described techniques. Various changes can be made to the functions and arrangements of the elements without departing from the spirit or scope of the present disclosure.
[0126] In summary, it is intended that the above detailed description be considered illustrative rather than restrictive, and it should be understood that the above embodiments should be construed as only for illustrating the present invention and not for limiting the scope of protection of the present invention. After reading the content described in the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent changes and modifications also fall within the scope defined by the claims of the present invention.
Claims
1. An intelligent bubble-making system for TCD bubble test based on image recognition, characterized in that, The bubble-making system includes a venous end interface (10), a locking valve (16), a first mixer (12), a second mixer (14), a first dispenser (22), a second dispenser (24), a first three-way valve (32), and a second three-way valve (34); the first end of the venous end interface (10) is connected to a human vein through a needle (2), and the second end of the venous end interface (10) is connected to the first end of a first pipeline (4). The locking valve (16) is arranged in the middle section of the first pipeline (4) and is used to control the cut-off and conduction of the first pipeline (4). The first mixer (12) and the second end of the first pipeline (4) are coupled to the first joint (321) of the first three-way valve (32) in parallel; the second mixer (14) is coupled to the second joint (322) of the first three-way valve (32); the first end of the second pipeline (6) is coupled to the third joint (323) of the first three-way valve (32). The second end of the second pipeline (6) is coupled to the fourth joint (341) of the second three-way valve (34); the first dispenser (22) and the second dispenser (24) are respectively coupled to the fifth joint (342) and the sixth joint (343) of the second three-way valve (34). Among them, by sequentially setting the conduction and cut-off of the interfaces of the two three-way valves, blood is drawn from the human body through the first dispenser (22) and mixed with the pre-set physiological saline inside, and then the first mixed solution is transported to the two dispensers; the second dispenser (24) is used to transport clean air to the two dispensers; the reciprocating pumping of the two mixers is used to achieve the full mixing and bubble-making of blood, air, and physiological saline, and finally the bubble mixture is transported back to the human body again. Moreover, one or more image recognition-based monitoring modules (40) are configured for the first mixer (12) and / or the second mixer (14), which are used to monitor the bubble-making amount and mixing degree during the process of making the bubble mixture, and control the mixing pumping rate and pumping times of the two mixers to ensure that the bubble-making degree and mixing degree of the bubble mixture meet the predetermined requirements.
2. The bubble-making system according to claim 1, wherein, The bubble-making system further includes a control module; the locking valve (16), the first mixer (12), the second mixer (14), the first dispenser (22), the second dispenser (24), the first three-way valve (32), and the second three-way valve (34) are all electronically controlled components and are connected to a control circuit and communicate with the control module in a coupled manner. Moreover, the control module further includes communicating with the monitoring module (40) in a coupled manner to obtain the image data obtained by the monitoring module (40), and generating a control instruction according to the image data to control the operation of each component in the bubble-making system.
3. The bubble-making system according to claim 2, characterized in that, The first mixer (12) and the second mixer (14) have at least one section of a transparent outer shell to allow the monitoring module (40) to observe the inside of the first mixer (12) and / or the second mixer (14) through the transparent outer shell.
4. The bubble-making system according to claim 3, wherein, An observation chamber is provided inside the first mixer (12) and the second mixer (14); the observation chamber is arranged at a position close to the transparent outer shell; the observation chamber has an opaque side wall; the side wall and the transparent outer shell separate to form the observation chamber, and part of the liquid inside the mixer is allowed to enter the observation chamber through both ends of the observation chamber.
5. The bubble-making system according to claim 4, wherein The observation angle of the monitoring module (40) is blocked by the side wall after passing through the transparent outer shell.
6. The bubble-making system according to claim 5, wherein The monitoring module (40) includes: a light source unit, a macro camera and a processing unit; The light source unit is configured to emit light into the observation chamber so that a bright boundary appears at the edge of the bubble; The macro camera is configured to perform macro shooting in the observation chamber to capture image data and send the image data to the processing unit; The processing unit is configured to preprocess the image data and then send the preprocessed image data to the control module.
7. An intelligent bubble-making method for TCD bubble test based on image recognition, characterized in that, The foaming method is applied to an intelligent foaming system for TCD foaming test based on image recognition as described in claim 6; the foaming method includes the following steps: S100: Connect the needle (2) to the human vein, open the lock valve (16), adjust the first three-way valve (32) and the second three-way valve (34) so that the venous end interface (10), the first pipeline (4), the second pipeline (6) and the first dispenser (22) form a passage, use the first dispenser (22) to extract a specified volume of human blood, and mix it with the physiological saline preset in the first dispenser (22) to form a first mixed solution. S200: Close the lock valve (16) to cut off the first pipeline (4), adjust the first three-way valve (32) to form a passage between the first dispenser (22) and the first mixer (12); pump the first dispenser (22) to convey the first mixed solution into the first mixer (12). S300: Adjust the second three-way valve (34) to form a passage between the second dispenser (24) and the first mixer (12); pump the second dispenser (24) to convey the specified volume of clean air inside the second dispenser (24) into the first mixer (12). S400: Adjust the first three-way valve (32) and the second three-way valve (34) so that only a passage is formed between the first mixer (12) and the second mixer (14); repeatedly pump the first mixer (12) and the second mixer (14) to foam the mixed solution, and finally obtain a fully mixed bubble mixed solution; store the bubble mixed solution in the first mixer (12). S500: Open the lock valve (16), adjust the first three-way valve (32) so that the first mixer (12) only forms a passage with the venous end interface (10); pump the first mixer (12) to transfuse the bubble mixed solution back into the human body. Repeat the above steps S100 - S500 according to a preset number of times.
8. The foaming method according to claim 7, characterized in that The bubble-making method includes setting the pumping frequency F and the pumping amplitude A of the first mixer (12) and the second mixer (14) according to the bubble density N of the current mixed liquid and the observed average size S of the bubbles: In the above formula, F0 is the preset maximum value of the pumping frequency, and A0 is the preset maximum value of the pumping amplitude; N max is the target value of the bubble density; S min is the target observed average size of the bubbles; the above four parameters are set by relevant technical personnel; k s and k A are adjustment coefficients, which are set by technicians based on the performance of the mixer; e is the base of the natural logarithm.
Citation Information
Patent Citations
A microbubble contrast agent preparation and injection device for TCD examination
CN110279432B
Air bubble generator and Doppler ultrasonic flowmeter
JP4183560B2
Bubble measuring instrument and method
US6629449B1