The present invention relates generally to a capillary fill imaging system. Particularly, the present invention relates to a capillary fill imaging system and method for measuring percent fill of blood sampling capillaries.
A multitude of laboratory tests for analytes of interest are performed on biological samples for diagnosis, screening, disease staging, drug testing, pregnancy testing, forensic analysis, and other reasons. Notwithstanding that a few qualitative tests have been reduced to simple kits for the patient’s use, the majority of quantitative tests still require the expertise of trained technicians in a laboratory setting using sophisticated instruments.
Recently, there has been developed instruments and systems called point-of-care instruments that are capable of being operated by nurses and/or caregivers in hospitals, urgent care centers, doctor offices, and the like, where reliable results are obtained with minimal instrument training of the nurses and/or caregivers.
In these point-of-care settings, whole blood samples are usually drawn by lancing the skin of the patient and obtaining a blood sample collected by a capillary tube. When using capillary tubes for blood collection, it is imperative that a sufficient amount of blood is collected to perform the desired test, yet, it is desirable to only obtain the required amount of blood. One problem associated with some lancing and/or testing devices is that the requisite amount of blood for accurate test results is not always obtained. Proper blood sample acquisition requires the user to hold the capillary tube to the blood sample until the tube is filled to the appropriate level. If the improper amount is obtained, the test results may be erroneous and a test sample is wasted. More serious an issue, however, is that the user may be relying on inaccurate and erroneous test results when an insufficient sample volume is harvested. Obviously, because of the potentially serious nature of the medical issues involved, erroneous results are to be avoided.
Several prior art devices have attempted to determine fill levels in liquid systems.
U.S. Pat. Application Publication US 2014/0105446-A1 (2014, Maxey et al.) discloses a computer-implemented methods, software, and systems for determining a property of a wellbore fluid. A computing system receives an image of a first sample of the wellbore fluid filling a conduit to a threshold volume of the conduit. The computing system determines a first time duration of the first sample of the wellbore fluid filling the conduit to the threshold volume of the conduit based on the image of the first sample. The computing system receives an image of a second sample of the wellbore fluid filling the conduit to the threshold volume of the conduit. The computing system determines a second time duration of the second sample of the wellbore fluid filling the conduit to the threshold volume of the conduit based on the image of the second sample. A property of the wellbore fluid is determined based on a difference between the first and second time durations. This patent publication also mentions using capillary action to fill the conduit tube and to correlate a pixel count of an image based on the fluid level in the tube.
U.S. Pat. No. 6,960,287 (2005, Steven C. Charlton) discloses an underfill detection system for a test sensor. The test sensor includes a capillary channel for collecting the liquid sample and a conductor disposed outside the capillary channel. The conductor is in fluid communication with the capillary channel. As the liquid test sample is collected and moved through the capillary channel, the sample contacts the conductor to signal a full condition.
U.S. Pat. No. 8,936,713 B2(Rodgers et al., 2015) discloses a fill sufficiency method and system. The system discloses a test strip having a first working electrode, a reference electrode and a second working electrode. In the method, acceptable fill data from known first current and known second current are used to predict an estimated second current at proximate the second time for a given batch of test strips during the test sequence. The estimated second current at proximate the second time interval is then compared with a measured actual second current at proximate the second time interval during an actual test to determine if the measured actual second current is substantially equal to or within an acceptable percent deviation from the estimated second current so as to determine sufficient volume of physiological fluid sample in the test strip.
Since it is possible for blood testing instruments to run an analysis with less than the required volume of blood, an error can result in the reported values of the analysis. A system for measuring the percent amount of blood filling a capillary is desirable to provide the instrument/analyzer either with a number to use to correct the reported value, or signal to the user that the blood sample was insufficient, and a value cannot be reported, thereby preventing incorrect results from being reported to the user.
As mentioned in the prior art section, certain references describe a capillary under-fill detection system that uses two electrodes to detect the fill level. This requires the addition of electrodes to the capillary, increasing the capillary cost. In another prior art reference, the reference describes the use of an imager to check the flow of a sample in a capillary but does not mention a method to use the imager to measure the sample volume.
It is an object of the present invention to provide a system and method to capture an image of a sample capillary, then analyze the image to determine the percent fill of the capillary.
The present invention achieves these and other objectives by providing a system for measuring the percent fill of a sample capillary. In one embodiment of the present invention, the system includes a chamber for receiving a sample capillary containing a blood sample, an illuminator arranged to illuminate the sample capillary, an imaging lens aligned with the chamber and the sample capillary, an image sensor aligned with the imaging lens wherein the image sensor receives an image of the blood in the sample capillary from the imaging lens and converts the image to image data, a micro-controller circuit electrically coupled to the image sensor, and at least one of a host computer or a user interface electrically coupled to the micro-controller unit where the micro-controller circuit processes the image data into a percent fill result wherein the percent fill result is passed to the at least one of the host computer or the user interface.
In one embodiment of the present invention, the system includes an illuminator that is a white light LED.
In another embodiment of the present invention, the system further includes an aperture structure aligned with the imaging lens and the imaging sensor where the aperture structure is disposed between the imaging lens and the image sensor. The aperture structure restricts a ray cone of the image of the blood in the sample capillary to decrease image distortion and aberrations caused by the imaging lens.
In still another embodiment, the microcontroller circuit controls the illuminator.
In yet another embodiment, the micro-controller circuit includes software that selects out the pixels of the image of the blood-filled capillary whose values lie in a particular range of hue.
In a further embodiment, the software converts the image data into a first type of hue space and a second type of hue space.
In another embodiment, the first type of hue space is a YCbCr format color space.
In one embodiment, the second type of hue space is a HSV format color space.
In one embodiment, the software is an interpreted high-level general-purpose programming language containing a first algorithm to convert the image to a YCbCr format color space and a second algorithm to convert the image to a HSV format color space.
In one embodiment, the image data of the first type of hue space and the image data of the second type of hue space are run through mask-generating functions to create two masks, a mask of the YCbCr color space and a mask of the HSV color space based on a selected hue range, wherein pixels lying within the selected hue range are set to 1 in the mask and pixels outside the selected hue range are set to 0.
In one embodiment, a 1-dimensional array is created from the combination of the two masks.
In one embodiment, the system further includes a reference capillary known to be one hundred percent filled with blood or a reference capillary known to be one hundred percent filled with a blood substitute having a required red hue where image data of the reference capillary establishes a calibration value for determining the percent fill of the sample capillary.
In another embodiment, there is disclosed a method for measuring a percent fill of a sample capillary containing a blood sample. The method includes a) disposing the sample capillary into the system for imaging analysis, b) capturing an image of the of the sample capillary and converting the image to image data, c) submitting the image data from the captured image to a micro-controller circuit containing software that processes the image data into the first type of hue space data and a second type of hue space data, d) submitting the first type of hue space data and the second type of hue space data to corresponding mask-generating functions creating two masks based on a selected hue range, e) creating a 1-dimensional array by combining the two masks, and f) determining a percent fill result of the sample capillary by comparing a value generated by analysis of the 1-dimensional array to a calibration value.
In one embodiment, the determining step includes calculating a difference from a blood sample start location of the blood in the image of the sample capillary and an end location of the blood in the image of the sample capillary, and multiplying the difference by the calibration value.
In one embodiment, a method of creating a calibration value used in the system of claim 1 is disclosed. The method includes creating a calibration value using a reference capillary known to be one hundred percent (100%) filled with blood or a reference capillary known to be one hundred percent (100%) filled with a substitute substance having a required red hue, submitting the reference capillary known to be one hundred percent (100%) filled to steps a), b), c), d), e) previously disclosed, and calculating the calibration value.
The embodiments of the present invention are illustrated in
Turning now to
Many of the most widely used programming languages (such as C++, Java, Python, etc.) are multi-paradigm and they support object-oriented programming to a greater or lesser degree, typically in combination with imperative, procedural programming. Significant object-oriented languages include: Java, C++, C#, Python, R, PHP, Visual Basic.NET, JavaScript, Ruby, Perl, SIMSCRIPT, Object Pascal, Objective-C, Dart, Swift, Scala, Kotlin, Common Lisp, MATLAB, and Smalltalk. Although the Python language was used, persons skilled in the art are capable of transcribing the method in Python code into any of the object-oriented languages including those listed above.
The next step in the process is to select a region of the capillary containing the blood sample. One way of doing this is to select out the pixels whose values lie in a particular range of hue. In the present invention, the image is converted to two types of hue space: YCbCr and HSV. YCbCr is typically used for digital encoding of color information suited for video, still-image compression and transmission such as MPEG and JPEG. HSV (hue, saturation, value), also known as HSB (hue, saturation, brightness), is often used by artists because it is perceived to be more natural to think about a color in terms of hue and saturation than in terms of additive or subtractive color components. HSV is a transformation of an RGB color space, and its components and colorimetry are relative to the RGB color space from which it was derived. Once converted, the images in the new color spaces are then run through mask generating functions.
The function calls to perform this are:
The inputs to the mask-generating calls show the hue range to be selected. Pixels that are in between those values are set to 1 in the mask, pixels outside the ranges are set to 0. The results of the two masks are combined pixel-by-pixel with the following logical AND statement:
The resulting array of 1′s and 0′s is summed column-wise into a 1-dimensional array:
7) sBWYH = np.sum(BWYH,0)
The following algorithm is used to convert the captured image to YCbCr format using the Python language.
The following algorithm is used to convert the captured image to HSV format using the Python language.
The following algorithm is used to create the hue masks using the Python language.
The following algorithm is used to find the threshold transitions from the column-wise 1 -dimensional array calculated in Step 7 (placed into variable “f,” which is a vector list of numbers where the term “f[n]” below refers to the nth number of “f”).
Turning now to
The array sBWYH is then put through the function findThreshold, which finds the horizontal locations of transitions greater than the specified threshold of 40:
10) locs = findThreshold(40, sBWYH)
The start of the blood in the capillary is a blood start location 80, the end of the blood in the capillary is a blood end location 82:
The percent fill value is the difference between the blood start location 80 and the blood end location 82, multiplied by a calibration value (calVal).
13) pcntFill = (bloodEnd - bloodStart) x calVal
The calibration value is previously determined, using a reference capillary known to be 100% filled with blood or a substitute such as red dye or red epoxy. The image from this calibration/reference capillary is run through the same processing steps, with the exception that step 13 is skipped and the step 14 below is used to calculate the calibration value:
14) calVal = 100.0 / (bloodEnd - bloodStart)
The calibration/reference capillary can be filled with any substance of the required red hue. One formulation used that works consists of a mixture of 0.30 grams of UV cure clear epoxy NOA 81 and 0.06 grams of Congo Red dye powder Sigma C6277-25G (lot MKCF4499 with a dye content of 95%). The mixture is forced into the capillary with a syringe and needle until it is 100% full, then cured with a UV cure lamp.
Although the preferred embodiments of the present invention have been described herein, the above description is merely illustrative. Further modification of the invention herein disclosed will occur to those skilled in the respective arts and all such modifications are deemed to be within the scope of the invention as defined by the appended claims.