The present invention relates to a liquid surface condition detector, an automatic analyzer, and a liquid surface condition detecting method for detecting the presence of bubbles or the like on the surface of or/and in a liquid substance from a living body such as blood or urine.
In the medical field and the like, there have been proposed various kinds of automatic analyzer. Generally speaking, in the automatic analyzer, a sample is analyzed by mixing a biospecimen such as blood or urine with a reagent to obtain a reaction liquid and by performing automatic measurement thereon. The mixture of the biospecimen with the reagent is generally performed by dispensing the sample and reagent from the sample container and reagent container in predetermined amounts through suction dispensing by using a dispensing apparatus (dispense probe) or the like, and by supplying them to a reaction container for reaction.
When performing the dispensing, the distal end of the dispense probe is put into a liquid substance such as the sample and reagent to be dispensed; the deeper it is put in, the more liquid adheres to the outer wall of the probe, resulting in an increase in contamination between the different samples and reagents. Further, the deeper it is put in, the more time is needed for the vertical movement. In view of this, the height of the liquid surface is detected so that the distal end of the dispense probe may be allowed to enter only slightly, with the distal end of the dispense probe being controlled in height direction in conformity with the height. Regarding the technique for detecting this liquid surface height, there is known the problem of erroneously recognizing the height of the surface of any bubble generated on the surface of the liquid as the height of the liquid surface, resulting in failure in suction. To cope with this problem, there has been examined how to detect the liquid surface condition through image processing.
For example, Patent Document 1 discloses a method in which illumination is applied from above to the object of inspection and in which an image of the liquid surface is taken through imaging by a color camera. Then, reflection (mirror surface reflection) of the illumination on the liquid surface is extracted by utilizing hue information indicating a difference in the ratios of the spectral components of light and is counted to thereby detect the presence of bubbles. It can happen that the reflection light from the bottom surface of the sample container creates various complicated and varied images, and that bubbles not interfering with the suction dispending are generated at the position of the inner wall of the sample container below the liquid surface. In the case, however, by using the method in which the mirror surface reflection of the illumination is extracted, it can be easily distinguished from the condition of bubble generation on the liquid surface.
As another examination example, Patent Document 2 discloses a method in which, after the processing of obtaining the center of a liquid surface circle with respect to the inspection image at the time of imaging by a camera, histogram evaluation and FFT evaluation of a radial image having undergone polar coordinate transformation, and further, ring detection through Hough transformation, are conducted to thereby detect bubbles.
Patent Document 1: JP Patent Publication (Kokai) 2013-088114 A
Patent Document 2: JP Patent Publication (Kohyo) 2014-500955 T
In the case of the examination example disclosed in Patent Document 1, however, when inexpensive visible light illumination is employed, there is the possibility of its being impossible for a sample like a urine sample the liquid color of which is very light or for a sample highly diluted to accurately extract the mirror surface reflection of the illumination on the liquid surface, since their spectral absorption of the visible light area is slight. To cope with this problem, it might be possible to extract the reflection of the illumination to detect the presence of bubbles, by making it possible to obtain a difference in ratio for each spectral component through addition of light of a wavelength out of the visible light range which involves a reduction in permeability even in the case of fresh water which exhibits high permeability with respect to light of a wavelength of the visible light range; in that case, however, an increase in cost for illumination, etc. is to be feared. Further, in the case of a sample containing a large amount of a component causing total reflection of the illumination light out of the sample liquid like grease molecules, the hue of the sample is rather unstable, making it sometimes difficult to extract the reflection of the illumination. The method shown in Patent Document 2 involves an enormous amount of computation, resulting in a problem of an increase in processing time and hardware cost.
In view of the above circumstances, it is an object of the present invention to provide at low cost a liquid surface condition detector, an automatic analyzer, and a liquid surface condition detecting method making it possible to enhance the accuracy with which the liquid surface condition of a liquid substance such as bubbles is detected.
In view of the above object, the present invention is endowed with the following features. That is, according to a mode thereof, there are provided an irradiation unit applying light to a container storing a liquid and to the surface of the liquid substance; an imaging unit taking from above an image of the liquid irradiated with light by the irradiation unit; a first liquid surface condition detecting portion detecting the condition of the liquid surface by using color information contained in the image; and a second liquid surface condition detecting portion detecting the condition of the liquid surface by using luminance information contained in the image.
In the liquid surface condition detector, the automatic analyzer, and the liquid surface condition detecting method according to the present invention, it is possible to enhance the accuracy with which the liquid surface condition such as bubbles is detected with respect to various liquid substances.
In the following, an embodiment of the present invention will be described with reference to the drawings. It should be noted that this embodiment is only given by way of example, and the present invention should not be construed restrictively on the basis thereof.
First, a liquid surface condition detector according to an embodiment of the present invention will be described.
The test tube 101 is formed as a substantially transparent, vertically elongated bottomed cylinder formed of various resin materials, various glass materials, etc., and has a cylindrical or conically tapered container. Examples of the liquid substance 1010 accommodated in the test tube 101 include a biospecimen such as blood or urine, a reagent used for the analysis of the biospecimen, a mixture liquid obtained by mixing the biospecimen with the reagent, and a reaction liquid in which they react with each other. The test tube 101 is held by a test tube rack 1011. Even when the test tube 101 is not in the condition in which it is held by the test tube rack 1011, it is possible to detect the liquid surface condition by the liquid surface condition detector of the present invention, for example, in a condition in which the test tube 101 is alone. Further, while the rack shown in
Above the test tube 101, there is provided a lighting 102 as a light irradiation unit for applying light to the liquid surface of the liquid substance 1010 accommodated in the test tube 101. The lighting 102 is what is generally called “ring lighting” and has a hollow 1021. The lighting 102 consists of a plurality of ring-like white LEDs (a combination of blue light emitting diodes with fluorescent materials to attain a quasi-white color which is slightly tinged) arranged close to each other.
Above the lighting 102, there is provided a camera 103 as an imaging unit for taking a picture (hereinafter also referred to as an image) having at least color information of the light from the test tube 101 and the liquid substance 1010 accommodated in the test tube 101 (an exposure amount for each of a plurality of different wavelengths is obtained).
A lens 1031 of the camera 103 is arranged such that it is possible to peep downwards through the hollow 1021 of the lighting 102. The camera 103 generally takes a picture having color information due to light of the three wavelength ranges, R, G, and B; it is formed, for example, through application of a CCD or CMOS image sensor. Electrically connected to the camera 103 is an image processing apparatus 104 as a detection unit for detecting the liquid surface condition by using the color information in the picture taken.
The image processing apparatus 104 consists, for example, of a computer formed by a microprocessor, memory, etc. The image processing apparatus 104 has a mode selection unit 1041 optimally selecting a liquid surface condition mode. Further, the image processing apparatus 104 is provided with a first bubble detection unit 1042 which determines whether or not there is a bubble on the liquid surface from the area of the lighting color mirror-reflected by the liquid surface. Further, the image processing apparatus 104 is provided with a second bubble detection unit 1043 which calculates the brightness gradient in the direction along the inner wall surface configuration of the test tube and which determines whether or not there is a bubble on the liquid surface based on the calculated brightness gradient.
Further, electrically connected to the image processing apparatus 104 is memory 105 as a storage unit for storing the picture with the color information taken by the camera 103 and storing processing results obtained through the processing of the picture. The memory 105 is formed, for example, by a hard disk, flash-memory, etc. Further, connected to the image processing apparatus 104 is an interface unit 106 as an interface portion so that electrical connection to the input/output portions of other devices, apparatuses, etc. may be possible. Further, electrically connected to the image processing apparatus 104 is a display unit 107 as a display portion for displaying a picture with color information taken by the camera 103, processing results obtained through the processing of the picture, etc. The display unit 107 consists, for example, of a liquid crystal monitor. Further, electrically connected to the image processing apparatus 104 is an input unit 108 as an input portion so that information can be input from the exterior to the image processing apparatus 104. The input unit 108 consists, for example, of a keyboard or a mouse.
While in the above description the image processing apparatus 104 as the detection unit, the memory 105, the interface unit 106, the display unit 107, and the input unit 108 are individual devices, it is possible for each of them to be formed as an individual device, or for all or a part of them to be formed as an integral unit. For example, all or a part of the image processing apparatus 104, the memory 105, the interface unit 106, the display unit 107, and the input unit 108 may be integrally formed as a detection unit.
In an embodiment of the present invention, the lighting 102 and the camera 103 are installed vertically above the liquid surface of the container 101, and the light of the lighting undergoes mirror reflection by the liquid surface and can be imaged by the camera. The camera 103 is connected to the image processing apparatus 104, and can perform image processing by transmitting the image information it has taken to the image processing apparatus 104. Further, the image processing apparatus 104 is connected to the memory 105, and can store the image information taken and processing results. The processing process and the information stored in the memory 105 can be displayed on the display unit 107.
Further, the input unit 108 is used for adjustment setting and execution instruction of the image processing apparatus 104.
Next, a liquid surface condition detection process as an example of the liquid surface condition detection process executed by the above liquid surface condition detector described above will be briefly described with reference to
First, the detection mode selection step in which the bubble detection mode is selected is executed by a mode selection unit 1041.
In the detection mode step, first, the lighting light 102 is applied to the test tube 101 and into the interior of the test tube 101, and imaging is performed by the camera 103, whereby there is obtained a picture containing light color information such as the reflection light from the liquid surface of the liquid substance 1010 and the transmitted light (S200). In obtaining of the color information, light is applied from the lighting 102 to the test tube 101 and the liquid surface of the liquid substance 1010 accommodated in the test tube 101, and the camera 103 takes the light color information of the reflection light, transmitted light, etc. from the test tube 101 and from the liquid substance 1010 accommodated in the test tube 101.
Next, there is executed processing in which a zone unnecessary for the selection of the detection mode (peripheral zone) is removed through image processing and in which an effective zone is set (S201). As a result, the image information obtaining range with respect to the liquid surface in the test tube 101 is restricted, making it possible to achieve an improvement in terms of the reliability in the detection mode selection.
Next, the number of pixels exhibiting a color previously determined with respect to the liquid substance 1010 within the set effective zone (hereinafter referred to as the reference color) is counted (S202). Here, the color of the pixels counted is determined depending on the liquid substance 1010 constituting the object of imaging. For example, in the case of blood or urine, it is set to a reference color such as red or yellow. The hue of each pixel within the effective zone is calculated, and when the value thereof is within a predetermined hue range, it is selected as an effective pixel. The reference color is generated through a change in the wavelength spectrum of the lighting light transmitted through the liquid substance based on the characteristics of the light absorption spectrum that the liquid substance has.
Next, the number of pixels exhibiting a color not in the normal state within the effective zone of the liquid substance 1010 (hereinafter referred to as the abnormal color) is counted (S203). To determine whether it is an abnormal color or not, the pixels within the predetermined zone of a predetermined hue (which is, for example, green or yellowish green in the case of blood or urine) are counted as the effective pixels. In the case of a sample containing a large amount of grease component or the like, the hue of the sample is unstable. There appear a large number of pixels of a color that is not that of the specimen in the normal state.
Next, it is determined whether or not the number of pixels exhibiting the reference color counted in step S201 is less than a threshold value (S204). When it is less than the threshold value, the sample is with high transmissivity, so it is determined to be difficult to make a determination by the first detection unit 1042, and the determination by the second detection unit 1043 is selected, with the procedure advancing to step S212. When the number of pixels exhibiting the reference color is not less than the threshold value, the procedure advances to the next step.
Next, it is determined whether or not the number of pixels exhibiting the abnormal color counted in step S203 is equal to or more than a threshold value (S205). When it is the threshold value or more, the hue of the sample is unstable, and the determination by the first detection unit 1042 is regarded as difficult. Then, the determination by the second detection unit 1043 is selected, and the procedure advances to step S212. When the number of pixels exhibiting a color that is not in the normal state is not the threshold value or more, the procedure advances to the step for the first detection unit 1042.
Next, the liquid surface condition detection by the first detection unit 1042 will be described.
First, to remove unnecessary peripheral zone information from the picture taken in step S200, and, to enhance the reliability of the liquid surface condition detection at the position where the distal end of the dispense probe is lowered, there is conducted effective zone setting processing with respect to the liquid surface within the sample container (S206).
Next, the lighting color area reflected by the liquid surface within the effective zone through mirror reflection is extracted (S207). While there are no particular restrictions regarding the method of extracting the lighting color area, a method, for example, may be adopted in which the hue range corresponding to the lighting color is previously determined and in which pixels exhibiting that hue are selected. By using hue for the selection of the lighting color area, distinction can be easily made between the reflection light from a position other than the liquid surface (e.g., a bubble generated at the bottom of the test tube 101 or a position below the liquid surface) and a bubble on the liquid surface constituting the object of detection. Further, due to a difference in the distance from the camera or lighting to the liquid surface, the brightness of the image information on the liquid surface varies. However, by checking the hue indicating a difference in the ratio of the spectral component of light, it is possible to accurately select lighting light mirror-reflected by the liquid surface independently of the distance to the liquid surface.
Next, the number of the lighting color pixels areas extracted is counted (S208). The term lighting color region means a set of pixels extracted in step S207 independently of the number of pixels and the area of the region, and means regions isolated without coming into contact with each other in the picture. More specifically, it can be realized through “labeling (Labeling, Image-labeling)” processing procedures generally known in the image processing technique. By counting the number of regions, it is possible to check the number of reflections of the lighting color without depending on the difference in distance from the camera to the liquid surface and the bubble size.
Next, it is determined whether or not the number of reflection regions of the lighting color counted in step S208 is larger than the number of lightings being used (S209). In the case where there are no bubbles on the liquid surface the lighting is reflected by the liquid surface in the number of lightings, whereas, in the case where there are bubbles on the liquid surface, the lighting light is reflected not only by the liquid surface but also by the surface of each bubble, so that the reflection regions of the lighting light increase. In the present embodiment, there is used a single ring-like light source, so that it is determined that there are bubbles on the liquid surface in the case where the number of regions counted is more than 1 (S210), and it is determined that there are no bubbles in the case where the number of regions 1 or less (S211).
Subsequently, the liquid surface condition detection based on the brightness gradient in the direction along the test tube configuration conducted by the second detection unit 1043 will be described (S212 through S216).
First, there is conducted the processing of setting an effective zone from the image information obtained in step S200 (S212). As a result, information on the unnecessary peripheral region having the possibility of containing noise is removed, and it becomes possible to enhance the reliability of the liquid surface detection at the position where the distal end of the dispense probe descends.
Next, within the effective zone set in step S212, the brightness gradient in the direction along the inner wall surface configuration of the test tube is calculated, and the maximum value of the brightness gradient is obtained (S213).
Next, it is determined whether or not the maximum value of the brightness gradient obtained in step S213 is a predetermined threshold value or more (S214). In the case where the maximum value of the brightness gradient is the threshold value or more, it is determined that there are bubbles on the liquid surface (S215), and, in the case where the maximum value of the brightness gradient is less than the threshold value, it is determined that there are no bubbles (S216).
The dispense probe 301 rotates in a horizontal plane, moves in the vertical direction, and dispenses a predetermined amount of liquid from the test tube 101 positioned at the dispensing position. It is desirable for the descent position 3011 where the distal end of the dispense probe 301 comes into contact with the liquid surface to be previously adjusted so as to coincide with the center axis of the test tube 101 for dispensing, or so as to be positioned within a range near the center axis. This is for the purpose of preventing the distal end of the dispense probe 301 from coming into contact with the test tube 101 and of avoiding, as much as possible, the position of a bubble generated on the liquid surface, which is situated so as to be in contact with the inner wall surface of the test tube 101.
Further, it is also desirable for the optical axis of the camera 103 to be previously arranged and adjusted so as to include the descent position 3011 of the distal end of the dispense probe 301. Generally speaking, a camera involves least distortion and exhibits satisfactory resolution near the center of the optical axis.
The sampling position for the dispense probe 301 and the imaging position for the camera 103 are preferably coaxial with each other. However, they may be dislocated with respect to each other. Through the dislocation, it is possible to observe the sampling condition in real time by the camera 103, and it is possible to indicate that no bubble is sucked at the time of dispensing.
A bubble determination method using color information detection means will be described with reference to
In the determination of the liquid surface condition in an ordinary test tube, the distance from the camera and the lighting to the liquid specimen undergoes a change, and the brightness information on the liquid surface also undergoes a change, so that the determination based on the threshold value is difficult. However, by using the brightness gradient of the above method, it is possible to robustly determine the presence of bubbles without depending on the liquid surface height.
Next, a method of calculating the brightness gradient in the direction along the test tube configuration in step S213 of
The present invention is not restricted to the embodiment described above but allows various modifications without departing from the scope of the gist of the present invention.
According to the present embodiment, it is possible to accurately determine the presence of bubbles on the liquid surface of a liquid substance without depending upon the light and shade of the liquid color of the sample constituting the object of determination. Further, an ordinary visible light lighting is used, and it is only necessary to perform minimal calculation processing with respect to image information on a limited range, so that the embodiment can be realized at low cost.
In the present embodiment, the effective zone is set to a circular or donut-shaped configuration of a fixed radius. In the case, however, where the test tube configuration is not columnar but of a special configuration and where the descent range (702) for the distal end of the probe is elliptical or rectangular due to a mechanical error factor, the configuration and size of the effective zone may be changed accordingly to achieve an improvement in terms of the accuracy in the detection. Further, while the optimum configuration and size for each object are to be regarded as individual, the effective zones 405, 407, and 504 may be set commonly in order to reduce the number of setting steps.
Further, steps S202 and S203 for counting the pixels exhibiting the reference color and the abnormal color may be executed simultaneously, or the detection mode selection processing may be terminated at the point in time when one count value has attained a level allowing determination.
In steps S204 and S205 in which determination is made through comparison between the counted pixel number and the threshold value, the determination may be made through comparison of the ratio (area ratio) of the reference color or abnormal color pixel number with respect to the total pixel number in the set effective zone 405 with the threshold value. In this case, a change in the enlargement ratio of the picture taken by the camera can be robustly coped with.
Further, the algorithms for the first liquid surface condition detection unit 1042 and the second liquid surface condition detection unit 1043 may be executed simultaneously. In this case, there is no need to execute steps S204 and S205 for the selection of steps for the first liquid surface condition detection unit 1042 and the second liquid surface condition detection unit 1043, and the final result of the detection of a bubble is derived from at least one of the respective determination results of these liquid surface condition detection units.
Further, in order that the number of kinds of liquid substance 1010 to which the present invention is applicable may be increased, it may be so arranged that a plurality of reference color hue ranges can be set for the liquid substance 1010. Similarly, it may be so arranged that a plurality of abnormal color hue ranges can be set. The determination of the reference color, abnormal color, and lighting color of the liquid substance 1010 may be based on a color system other than hue. Hue is convenient in that it allows color designation one-dimensionally and that it helps to easily establish correspondence with human color sense.
However, some other kind of information will also do so long as it is color information not depending on the distance to the liquid surface constituting the object of shooting. For example, the color range may be designated by color difference information U and V in a YUV format, or, in the case of an RGB format, the designation may be executed by using the ratio of R/G, B/G, etc.
Further, as the original brightness information in step S213 for obtaining the brightness gradient, some other kind of brightness information may be used instead of the sum total of the brightness of R, G, and B. It may, for example, be brightness information on one of R, G, and B channels, or average brightness, or monochrome transformation image information in conformity with human vision.
Further, in step S213, it is not always necessary to obtain the “maximum value” of the brightness gradient. Alternatively, it may be determined that a bubble has been generated if there is at least one portion of a brightness gradient equal to or greater than a predetermined threshold value within the effective zone. In adjusting and setting the threshold value, it is desirable to check the brightness gradient of the entire effective zone and to make it possible to obtain the maximum value. However, after the threshold value has been determined, there is no need to obtain the maximum value. It may be determined that a bubble has been generated if there is at least one portion of a brightness gradient equal to or greater than the predetermined threshold value, and, by completing the determination at the point in time when the brightness gradient equal to or greater than the threshold value while brightness information on the effective zone is being gained, it is possible to quickly terminate the determination processing.
As a second embodiment, another brightness gradient calculation method will be described with reference to
The weighting matrix of
The weighting matrix of
Next, a method of calculating the brightness gradient in the tangential direction of a circle using coordinate system transformation will be described with reference to
Reference numeral 1000 of
In the image information after this development, the tangential direction of the original circle is replaced by the direction of the θ-axis, and the brightness gradient can be calculated by one weighting matrix.
The 5×3 weighting matrix shown in
In embodiment 1, the method of obtaining the brightness gradient in the tangential direction of the circle has been described on the assumption that the test tube accommodating the liquid is a container of a cylindrical or conical configuration. In the present embodiment, a case where the container is of a configuration other than a cylindrical or conical configuration will be described with reference to
As described above, by calculating the brightness gradient in the direction along the test tube configuration, the detection of the liquid surface condition is possible by minimum processing.
Next, an automatic analyzer to which the present invention is applied will be described.
In the automatic analyzer 3301, there are arranged a reagent disk 3302, a reaction disk 3303, a sample dispense probe 3304, a reagent dispense probe 3305, a stirring device 3306, a photometer 3312, and a conveyance mechanism 3313. Further, connected to the automatic analyzer 3301 is a control device equipped with a display device 107 and an input device 108.
The reagent disk 3302 is rotatable and allows arrangement of a plurality of reagent containers in the circumference. Similarly, the reaction disk 3303 can be equipped with a plurality of reaction containers in the circumference. The conveyance mechanism 3313 can convey a sample holder 3311 accommodating a plurality of sample containers 101. In the present embodiment, there is employed a rack type sample holder 3311 capable of holding five sample containers 101, and it is possible to convey the sample containers 101 to a predetermined position by a conveyance belt horizontally driving with the sample holder being placed thereon.
The sample dispense probe 3304 is capable of rotational driving and vertical driving, and sucks the sample held by the sample holder 3311 carried to the predetermined position, dispensing and discharging the sample into a reaction container on the reaction disk 3303. The reagent dispense probe 3305 is also capable of rotational driving and vertical driving, and sucks reagent from the reagent container held on the reagent disk 3302, dispensing it to the reaction container on the reaction disk 3303. The stirring device 3306 stirs a mixture liquid in the reaction container. The photometer 3312 analyzes the mixture liquid after the stirring.
In the automatic analyzer according to the present invention, due to a liquid surface condition detector for sample 3308 provided above the conveyance mechanism 3311, and a liquid surface condition detector for reagent 3307 provided above the reagent disk, it is possible to detect the presence of a bubble on the liquid surface before performing the dispensing of the sample and reagent. Further, the presence of a bubble may be detected at the position where the dispensing is performed.
Further, there is provided above the reaction disk 3303 a liquid surface condition detector for reaction liquid 3309, whereby it is possible to image the liquid surface of the reaction liquid obtained by mixing the sample and reagent with each other, and to detect any abnormality on the liquid surface after the dispensing and stirring.
Number | Date | Country | Kind |
---|---|---|---|
2015-013873 | Jan 2015 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2016/050418 | 1/8/2016 | WO | 00 |