The embodiments generally relate to apparatus, systems, and methods for detecting the presence or absence of a variety of analytes in a fluid sample using a diagnostic instrument.
Reagent dipsticks and immunoassays have been used in medical clinics for decades in connection with methods for rapidly diagnosing health conditions at the point of care. In a clinical environment, dipsticks have been used for the diagnosis of urinary tract infections, preeclampsia, proteinuria, dehydration, diabetes, internal bleeding and liver problems. As is known, dipsticks are laminated sheets of paper containing reagents that change color when exposed to an analyte solution. Each reagent test pad on the dipstick is chemically treated with a compound that is known to change color in the presence of particular reactants. For example in the context of urinalysis, the dipstick will typically include reagent pads for detecting or measuring analytes present in a biological sample such as urine, including glucose, bilirubin, ketones, specific gravity, blood, pH, protein, urobilirubin, nitrite, leukocytes, microalbumin and creatinin.
The magnitude of this color change is proportional to analyte concentration in the patient fluid. Dipsticks are typically interpreted with the naked eye by comparing the test strip against a colored reference chart. However, such color comparison can cause user confusion and error, for several reasons including changes in ambient lighting, and that a significant portion of the population has impaired color vision.
Automatic methods and apparatus for interpreting test results of dipsticks and immunoassays, which have been exposed to a sample solution, are known in the art. For example, U.S. Patent Application Publication No. 2012/63652 to Chen and all (hereinafter “the '652 publication”) discloses a method for color-based reaction testing of biological materials, albeit in an un-calibrated environment, by capturing a digital image of both a test strip and a colored reference chart side by side in a single image. The test results for the test strip are automatically obtained by performing simple color matching between the reacted regions of the test strip and the color reference chart to determine analyte concentration of the biological material.
When employing the method disclosed by the '652 publication, a user must properly align the test strip and the color reference chart before capturing the digital image. Therefore, a user must come into contact with the exposed test strip, after it is soiled by biological samples, such as urine, blood, or feces, and place it in an appropriate position relative to the color reference chart. Therefore, to assist in placement of the test strip and/or chart, automatic interpretation apparatus often include an additional positioning element, such as a box or carpet, to position both the test strips and the chart in the correct orientation.
In view of the problems with presentably available methods for automatically reading test strips, there is a need for an automated testing method, which uses a digital image captured in an un-calibrated environment. The system or method should be configured to automatically calibrate the digital image to correct any color deficiencies, artifacts, or other ambiguities. The method should also automatically identify the relevant portions of the digital image, regardless of how the test strip and/or color reference are positioned in the digital image. Finally, the method should minimize manipulation of samples soiled with biological fluids. The presently invented method and system address these deficiencies of known automatic detection devices, systems, and methods.
Generally provided are a method and electronic user device for performing quantitative assessment of color changes induced by exposure of multiple test strips to a biological material/fluid. Preferably, the provided system and method permits automatic calibration of a digital image of a plurality of test media which have been exposed to a sample solution, for the purpose of determining whether certain analytes are present or absent from the sample solution. More preferably, one or more embodiments provide a method and electronic user device to quantify color changes induced in various test strips by exposure to the sample. This quantification is based on an automatic calibrating protocol, independent of variations in the external environment. The embodiments can yield accurate, precise, and cost effective measurements while minimizing the user interaction with biological samples. This method is designed to support medical scientific instruments complying with FDA and EU regulations in the field aimed at minimizing errors.
Therefore according a preferred and non-limiting embodiment, a computer-implemented method for quantifying color change of at least one test medium on a diagnostic instrument is provided. The method includes the step of capturing a digital image of at least a portion of the diagnostic instrument, which has been exposed to a biological sample. The diagnostic instrument includes at least one color reference comprising a plurality of reference samples of different colors and at least one test medium containing a reagent, which changes color in the presence of particular analytes in the biological sample. The method further includes the following steps: identifying at least one of the reference samples for the at least one medium in the diagnostic instrument; determining a dominant camera-captured color of a reference sample and a dominant camera-captured color of the at least one test medium; color correcting the dominant camera-captured color of the at least one test medium based on a correction factor derived at least in part from the dominant camera-captured color of the reference sample to determine a corrected test medium color; and comparing the corrected test medium color to a set of possible test medium colors corresponding to predetermined analyte concentrations to determine a test result including an analyte concentration of the biological sample being tested.
In accordance with a further embodiment, a computer-implemented method for determining a relative position on a diagnostic instrument includes the step of capturing a digital image of at least a portion of the diagnostic instrument, which has been exposed to a biological sample. The diagnostic instrument includes at least one test medium containing a reagent, which changes color in the presence of particular analytes in the biological sample. The method further includes the following steps: scanning the digital image to identify the position of a predetermined region on the diagnostic instrument; identifying the at least one test medium on the digital image based at least in part on the position of the predetermined region; and determining a test result by comparing the color of the at least one test medium to a set of possible test medium colors corresponding to predetermined analyte concentrations to determine an analyte concentration of the biological sample being tested.
In accordance with a further embodiment, a method for validating a diagnostic instrument includes the step of capturing a pre-use digital image of at least a portion of the diagnostic instrument, prior to exposing the diagnostic instrument to a biological sample. The diagnostic instrument includes at least one color reference comprising a plurality of reference samples of different colors and at least one test medium containing a reagent, which changes color in the presence of particular analytes in the biological sample. The method further includes the following steps: identifying the at least one test medium in the pre-use digital image of the diagnostic instrument; comparing a color of the at least one test medium to a set of possible test medium colors for reagents, which have not been exposed to an analyte; and determining whether the diagnostic instrument is in condition for use based at least in part on the color of the at least one test medium.
In accordance with a further embodiment, a diagnostic instrument for identifying a plurality of test results by testing a single patient fluid is provided. The instrument includes: an instrument housing; a color reference comprising a plurality of reference samples of different colors affixed to or associated with the housing for determining the test results from a digital image of the diagnostic instrument; and a plurality of test media affixed to the housing containing color-changing reagents, which change color in the presence of particular analytes in a biological sample.
In accordance with a further embodiment, a system for performing diagnostic tests of a biological sample is provided. The system includes a diagnostic instrument and a portable electronic device having a camera sensor for capturing a digital image of at least a portion of the diagnostic instrument and a processor. The diagnostic instrument includes a color reference having a plurality of reference samples of different colors and a plurality of test media containing reagents, which change color in the presence of particular analytes in the biological sample. The processor of the portable electronic device is configured to: identify at least one of the reference samples and at least one of the test media on the digital image of the diagnostic instrument; determine a dominant camera-captured color of a reference sample and a dominant camera-captured color of at least one test medium; color correct the dominant camera-captured color of the at least one test medium based on a correction factor derived at least in part from the dominant camera-captured color of the reference sample to determine a corrected test medium color; and compare the corrected test medium color to a set of possible test medium colors corresponding to predetermined analyte concentrations to determine a test result including an analyte concentration of the biological sample being tested.
In accordance with a further embodiment, a portable electronic device for analyzing a digital image of a diagnostic instrument is provided. The diagnostic instrument includes at least one color reference having a plurality of reference samples of different colors and at least one test medium containing a reagent, which changes color in the presence of particular analytes in the biological sample. The portable electronic device includes: at least one processor; at least one display device; at least one camera sensor; and at least one computer-readable medium including program instructions. When executed by the at least one processor, the programming instructions cause the portable electronic device to: capture a digital image of at least a portion of the diagnostic instrument, which has been exposed to a biological sample, with the camera sensor; identify at least one of the reference samples for the at least one medium in the diagnostic instrument; determine a dominant camera-captured color of a reference sample and a dominant camera-captured color of the at least one test medium; color correct the dominant camera-captured color of the at least one test medium based on a correction factor derived at least in part from the dominant camera-captured color of the reference sample to determine a corrected test medium color; and compare the corrected test medium color to a set of possible test medium colors corresponding to predetermined analyte concentrations to determine a test result including an analyte concentration of the biological sample being tested.
These and other features and characteristics of the embodiments, as well as the methods of operation and functions of the related elements of structures and the combination of parts and economies of manufacture, will become more apparent upon consideration of the following description and the appended claims with reference to the accompanying drawings, all of which form a part of this specification, wherein like reference numerals designate corresponding parts in the various figures. It is to be expressly understood, however, that the drawings are for the purpose of illustration and description only and are not intended as a definition of the limits of the embodiments. As used in the specification and the claims, the singular form of “a”, “an”, and “the” include plural referents unless the context clearly dictates otherwise.
For the purpose of facilitating understanding of the embodiments, the accompanying drawings and description illustrate embodiments thereof, its various structures, construction, methods of operation, and many advantages that may be understood and appreciated.
For purposes of the description hereinafter, the terms “upper”, “lower”, “right”, “left”, “vertical”, “horizontal”, “top”, “bottom”, “lateral”, “longitudinal”, and derivatives thereof shall relate to the embodiments as it is oriented in the drawing figures. However, it is to be understood that the embodiments may assume alternative variations and step sequences, except where expressly specified to the contrary. It is also to be understood that the specific devices and processes illustrated in the attached drawings, and described in the following specification, are simply exemplary embodiments. Hence, specific dimensions and other physical characteristics related to the embodiments disclosed herein are not to be considered as limiting.
As used herein, the terms “communication” and “communicate” refer to the receipt or transfer of one or more signals, messages, commands, or other type of data. For one unit or component to be in communication with another unit or component means that the one unit or component is able to directly or indirectly receive data from and/or transmit data to the other unit or component. This can refer to a direct or indirect connection that may be wired and/or wireless in nature. Additionally, two units or components may be in communication with each other even though the data transmitted may be modified, processed, and/or routed between the first and second unit or component. For example, a first unit may be in communication with a second unit, even though the first unit passively receives data, and does not actively transmit data to the second unit. As another example, a first unit may be in communication with a second unit if an intermediary unit processes data from one unit and transmits processed data to the second unit. It will be appreciated that numerous other arrangements are possible. The components or units may be directly connected to each other or may be connected through one or more other devices or components. The various coupling components for the devices can include but are not limited to, the Internet, a wireless network, a conventional wire cable, an optical cable or connection through air, water or any other medium that conducts signals, and any other coupling device or medium.
One or more embodiments are drawn to diagnostic instruments, systems and methods of use thereof for testing of a patient fluid sample, which can be used either in clinical settings or for home use. More particularly, one or more embodiments relate to the performance of color-based reaction testing of biological material in an automatically calibrated environment. Some embodiments are implemented as a software application (an “App”) running on a portable electronic device, such as a cell phone, tablet PC, computer, laptop, or other dedicated electronic device. The method has been designed to minimize user contact and manipulations of biologically soiled samples. Error prevention and compliance with medical instrument regulations have been implemented at all levels in the design of protocols. In particular the invented methods have been designed avoid modifying, compromising, and discarding raw data.
The diagnostic instrument is configured to provide rapid detection of patient conditions using test strips, such as reagent dipsticks. Dipsticks are typically narrow strips of plastic or paper having certain reagents or antibodies that act as recognition elements to detect a given analyte or disease marker in a patient fluid sample. Often, the intensity of a color change of the test strip is an indication of the concentration of the analyte or disease marker in the patient fluid. Patient fluid may include a urine sample, blood sample, patient cells disposed in a fluid solution (e.g. cells obtained from a throat swab), semen, mucous, blood, saliva, and the like.
The diagnostic instrument is configured to test a patient fluid sample for a variety of diseases and patient conditions to increase the likelihood that a variety of conditions may be identified during a testing activity. Thus, the user will not need to select which test to perform or the order in which tests should be performed. In one non-limiting embodiment, the diagnostic instrument may test for pregnancy and pregnancy complications, such as preeclampsia.
With reference to
A diagnostic instrument 10 which allows a user to test a signal fluid sample for a variety of patient conditions is intended to reduce user anxiety and to inspire confidence in individuals without medical training and with limited experience in performing medical tests. More particularly, the diagnostic instrument 10 tests for a plurality of patient conditions, meaning that the user does not need to select an appropriate test or determine which conditions are most likely to be present. Instead, in a single testing activity, the user tests for a plurality of conditions using a single fluid sample exposed to a single diagnostic instrument 10. Furthermore, the diagnostic instrument 10 includes the paddle 12 and the handle 16, making the diagnostic instrument 10 easies for a user to maneuver. Similarly, the handle 16 ensures that the user is protected from contacting the fluid sample during the test. Therefore, a user may confidently perform the test, using the diagnostic instrument 10, without worrying that he or she will accidently contact patient fluid. Additionally, the diagnostic instrument 10 is intended to be provided with clear and easy-to-understand instructions for performing the test and interpreting the results, to ensure that the untrained user receive accurate diagnostic information from the tests that are being performed.
With continued reference to
In certain preferred and non-limiting embodiments, the diagnostic instrument 10 further includes an identification label, such as a unique identification (UID) 24. The UID may be a visual indicia serving as a landmark to identify a specific area of the diagnostic instrument. Additionally, the UID 24 may be configured to contain certain identification information about the diagnostic instrument 10, such as a list of the analytes that are being tested, expiration date of the instrument 10, the conditions that are being tested, and other identifying information. The information may be printed directly on or encrypted with the UID 24, such as is the case with a label or two-dimensional bar code, such as a QR code. Alternatively, the UID 24 may be associated with information stored elsewhere (e.g., server accessible over the internet), such as is the case with bar codes for example. The identification information may be used in validation processes to ensure the diagnostic instrument 10 is suitable for the tests being performed and to ensure that it is safe to use, in good working condition, or to resolve other issues which may impact quality and reliability of the test results. It is noted that methods for automatically analyzing test strips in the prior art do not include these steps for validating the diagnostic instrument.
The diagnostic instrument 10 is configured so that a digital image of the instrument may be captured using a portable electronic device such as a smart phone. The diagnostic instrument 10 is easier to use than diagnostic instruments of the prior art, such as test strips disclosed in the '652 publication. Specifically, unlike previously known systems and methods, a user does not need to handle the used test strips, soiled by biological samples such as urine, blood, feces, etc., because the used diagnostic instrument does not need to be placed in side by side arrangement with an interpretation table, such as a manufacturer's interpretation color chart (MICC), when obtaining the digital image. Additionally, since the diagnostic instrument 10 does not need to be placed next to corresponding MICC, there is no possibility of using the wrong MICC for a particular diagnostic instrument (e.g. reading strips from manufacturer A with a MICC from manufacturer B).
Having described the structure of an embodiment of the diagnostic instrument 10, a system 100 for performing diagnostic tests on a biological sample using the diagnostic instrument 10 will now be described.
With reference to
The portable electronic device 110 could be any kind of smartphone (e.g., APPLE IPHONE, BLACKBERRY), handheld computer (e.g., APPLE IPAD), or any type of personal computer, network computer, workstation, minicomputer, mainframe or the like running any operating system, such as any version of ANDROID, LINUX. WINDOWS, WINDOWS NT, WINDOWS 2000, WINDOWS XP, MACOS, UNIX, SOLARIS, ARM OR IOS operating systems.
In certain non-limiting embodiments, the portable electronic device 110 includes a camera sensor 112, for obtaining the digital image of the diagnostic instrument. Certain sensor array chips are presently available with varying properties, with CCD (Charge Coupled Device) and CMOS (Complementary Metal Oxide Conductor) representing the most common camera sensor chips. Each chip technology offers advantages and these evolve relatively with improving designs. In summary, a CCD offers a larger energy capture fraction and serial read-out with minimal local processing, whereas a CMOS has addressability and processing capability for each pixel, but with some loss of sensitivity. The portable electronic device 110 may further include a flash 114 for improving the quality and readability of images captured with the camera sensor 112.
Hereinafter, the system 100 is described in terms of functional components and various processing steps. It is noted that the functional blocks may be realized by any number of hardware and/or software components configured to perform specified functions. In a preferred and non-limiting embodiment, the functional components and processing steps are associated with and/or performed using the portable electronic device 110. For example, the embodiments may employ various integrated circuit components (e.g., memory elements, processing elements, logic elements, lookup tables, and the like), which may carry out a variety of functions under the control of one or more processors or other control devices. Similarly, the software components of the embodiments may be implemented with any programming or scripting languages such as C, C#, C++, JAVA, assembler, extensible markup language (XML), or extensible style sheet transformations (XSLT). The various algorithms may be implemented with any combination of data structures, objects, processes, routines, or other programming elements.
With continued reference to
In certain non-limiting embodiments of the program, the processor 116 controls a digital image analyzer 120 for identifying regions of a digital image containing relevant data, color correcting the digital image, and comparing the corrected portions of the digital image to table entries of the MICC to determine test results. The processor 116 may further control a reference tag reader 122 configured to identify and extract information from a UID 24 affixed to or associated with the diagnostic instrument 10. The processor 116 may further control a display 122, connected to or associated with the portable electronic device 110, for presenting information such as instructions for using the diagnostic instrument and test results to a user. The processor 116 may also control a timer 124 for measuring the time between when the diagnostic instrument 10 is exposed to a fluid sample and when the digital image of the diagnostic instrument 10 is captured. Additionally, in certain embodiments, the processor 116 controls a data entry device 126 allowing a user to enter additional information, including patient history information, symptoms, and physical characteristics of the user. The data entry device 126 may include any input device or user interface as is known in the art, which allows a user to control an electronic device including, but not limited to, gestures on a touch-screen or any other actions that cause a change in readings obtained from sensors, keypad presses, and the like.
In addition to storing the program for controlling functions of the portable electronic device 110, the computer-readable media 118 may also store data including a plurality of MICC tables used to determine test results. The computer readable media 118 may also store raw or pre-processed images obtained by the camera sensor 112, decision trees for determining a patient condition, and other input data necessary for executing functions of the program. Additionally, the computer-readable media 118 may include communications media, such as computer-readable instructions, data structures, program modules, or other data in other transport mechanisms and include any information delivery media, wired media (such as a wired network and a direct-wired connection), and wireless media. Computer-readable media may include all machine-readable media with the sole exception of transitory, propagating signals. Of course, combinations of any of the above should also be included within the scope of computer-readable media.
Additionally, it is to be recognized that some or all of the functions, aspects, features, and instances of the embodiments may be implemented on a variety of computing devices and systems, wherein these computing devices include the appropriate processing mechanisms and computer-readable media for storing and executing computer-readable instructions, such as programming instructions, code, and the like. The functional aspects of a software application (App)) for directing the function of a portable electronic device will be discussed in greater detail in connection with methods for using the diagnostic instrument to identify a patient condition and methods of image processing of a digital image of the diagnostic instrument.
In a further non-limiting embodiment, the system 100 includes a data transmitter 128 for transmission of data and information from the portable electronic device 110 to an external electronic device, a computer network, and/or a digital storage device, collectively referred to as a network environment 130, known colloquially as “the cloud”. Once the data is provided to the network environment 130, it may be made available to interested third parties 132, including caregivers, doctors, third party payment organizations, insurance and health maintenance organizations, pharmacists, or public health organizations.
Having described the diagnostic instrument 10 and a system including the diagnostic instrument 10 and the portable electronic device 110, methods for using the diagnostic instrument and obtaining test results will now be discussed in further detail.
Initially, as depicted in
The user captures 214 the digital image of the diagnostic instrument 10 using the camera sensor of the portable electronic device. In certain embodiments, the portable electronic device may provide instructions for obtaining the digital image, such as by suggesting a preferred camera position or lighting environment. For example, in certain embodiments, when preparing to capture the digital image of the diagnostic instrument, the user interface superimposes a virtual contour of the diagnostic instrument onto the real image acquired by the camera sensor in video mode. The user is then asked to overlay the virtual contour with the image of the diagnostic instrument and to take the picture precisely when indicated by the timer. When the user triggers the camera shutter, the camera is configured to switch from video to a high resolution mode to capture a high resolution single frame image of the diagnostic instrument. The captured digital image includes at least a portion of the RCB, the CTP, and/or the UID of the diagnostic instrument. More particularly, a high definition image of the diagnostic instrument is captured preferably under flash or other standardized illumination conditions (if available) so as to provide the most reproducible lighting conditions.
In certain non-limiting embodiments and with reference to
Following the validation step 216, geometric corrections are performed 218 to determine the position of the other elements, namely the RCB and CTP, of the diagnostic instrument based on the position and orientation of the UID. Geometric corrections compensate for a large range of user positioning and attitude errors, which may occur as the user holds the instrument to capture the digital image. The geographic corrections may be defined in terms of pitch, roll, and yaw angles of the diagnostic instrument in the digital image. Based on the geometric correction, the position of the RCB and CTP can be effectively identified. The method further includes applying local image corrections to the identified portions of the digital image including the RCB or CTP, such as analyzing the digital image to apply spatial guard bands around and just within the boundary of each identified area.
With continued reference to
Once the portions of the digital image including the CTP are color corrected, the corrected colors can be compared 222 with color samples from the MICC. As is described in greater detail below, comparison between the CTP color change and the MICC is based on an interpolation process. The MICC is a table depicting a plurality of possible results (e.g. color samples) for one or more of the CTP on the diagnostic instrument. An exemplary MICC 150 for use with a standard test strip is depicted in
Another way of calibrating such color trajectories would be to generate an absolute calibration curve comprising numerous points (5, 6, 7 to 20, 30, 40 preferably 12) made of the absolute color measurements obtained at known analyte concentrations. This is done for every CTP. This generates an absolute color curve (ACC) for a CTP associated with an analyte, such as shown by the color trajectory line 424 in
For certain embodiments, the predetermined manufacturer's interpretation color chart values and the absolute color curve values (MICC/ACC) are also used to provide confirmation that the diagnostic instrument provides valid results and is suitable for use. More particularly, the MICC/ACC represents the range of possible color changes for the CTP. If the color of the identified region does not correspond to a possible test result color, it is assumed that either the wrong MICC/ACC was used to analyze the test results or that the diagnostic instrument was defective. Accordingly, any results falling outside of the color range defined by the MICC/ACC are discarded.
Referring to
In
At step 2911, an estimate of the relative lighting conditions of the reference color bar (RCB) is made. There are a number of methods described in the literature to determine lighting conditions, often relying on parameters of: (i) the luminance L, (illuminance) and/or (ii) the irradiance Ir (radiance).
Luminance L of a reference color bar (RCB) can be calculated by the linear CIE 1931 luminance for ITU-R BT.709 primaries, using the luminance equation L=0.2126R+0.7152G+0.0722B, where R, G, B are the camera perceived colors of elements of the RCB. The irradiance Ir of the reference color bar (RCB) can be calculated by the equation Ir=(R+2G+B)/4, where R, G, B are the camera perceived red, green, and blue colors of elements of the RCB. The value for luminance L and the value for irradiance Ir can be gamma compensated or not. Luminance estimations may combine the values of luminance L and irradiance Ir into a linear or non-linear function. Values for luminance L and irradiance Ir can be obtained by exposing the RCB to various lighting conditions. Exemplary equations to combine values of luminance L and irradiance Ir to estimate lighting conditions include but are not limited to: gamma differences, linear differences, gamma irradiance differences, linear irradiance differences between black and white RCB elements. In addition, the use of a photometer in a camera, if available, or use of photographic parameters like speed, aperture, and file sensitivity, if available, may also be used to estimate the lighting conditions under which the image for an RCB and a CTP are captured.
At step 2912, with portions of the digital image including the CTP being color corrected previously at step 220, the corrected colors of the CTP can be compared with color samples. The color samples are predetermined from chemical experiments performed with the CTP under known luminance L recreating a complete MICC/ACC under such lighting conditions.
At step 224, results and titration of the CTP are performed in the same manner as was described with reference to
Referring now to
In
At step 2921, evaluations 2921A-2921N of several lighting conditions L1 through Ln in parallel are made. The RGB color of the CTP is compared against a plurality of reference MICC/ACCs under the plurality of lighting conditions L1 through Ln. For each color trajectory in each luminance of lighting conditions L1 through Ln, a tube of confidence determines the level of confidence of a given measure.
At step 2922, the measure falling within one of the tubes of confidence is deemed a valid measure and is selected as the result of comparison. In case of overlapping tubes there are several valid results which are refined by a result decision making algorithm. Some examples of a result decision making algorithms are: (i) use the trajectory nearest to the point, (ii) use of a linear combination of trajectories according to topology (e.g. weighted combination of multiple trajectory results according to proximity to trajectory), (iii) use of a statistical combination of trajectories (averages and variances to trajectories), (iv) non-linear functions, and (v) votes. The embodiments are not limited to these result decision making algorithms. For example a simple embodiment of a statistical combination is an average between valid results.
At step 224, results and titration of the CTP are performed as was described with reference to
At step 226, the test results for an individual CTP can be interpreted either individually or in combination with other test results and diagnostic information to determine a patient condition. For example, multiple test results that indicate the presence or absence of a number of different analytes in the biological fluid sample. These multiple test results can be considered in combination to determine a probable patient condition.
Similarly, if the test results suggest a plurality of possible patient conditions, the method may further include asking the user patient various diagnostic questions to rule out certain possible conditions to arrive at a most likely patient condition. In certain embodiments, the test results and/or patient condition information are presented to a user on a visual display device of the portable electronic device. If all the CTPs have been considered and the results interpreted, the process may end at step 2999.
Having generally described methods for using the diagnostic instrument, capturing a digital image of the diagnostic instrument, and for determining test results using a portable electronic device, the various processes, algorithms, and methods for analyzing the digital image will now be described in greater detail. It is understood that the processes described below are intended only as exemplary processes and methods for analyzing a digital image of a diagnostic instrument, and are not intended to limit the scope of the embodiments in any way. Furthermore, it is understood that the described processes may be implemented using the portable electronic device or other computers and processing apparatus as are known in the art.
As shown in
The UID may be implemented as a matrix or two-dimensional bar code, such as a QR code. In other embodiments, the UID is a bar code or near-field communication tag. The UID includes or is associated with certain identifying information about the diagnostic instrument, including the manufacture date of the diagnostic instrument, the expiration date of the diagnostic instrument, the analytes tested for by the instrument, identifying information about the test subject, or patient condition information. For QR codes and similar visual indicia, the identifying information is embedded expressly on the UID itself. The embedded information can be encrypted using various encryption security mechanisms, as are known in the art. Alternatively, the information on the UID may direct the electronic device or digital reader to information stored on an external device. The UID is read according to standard algorithms that are well known in the art. Optionally, the information about the diagnostic instrument contained on the UID may be used to compare the diagnostic instrument with other available testing instruments to ensure that the diagnostic instrument is compatible with software and hardware of the portable electronic device and is the most suitable testing device available for a given application.
Additionally, the validation operation 216 may be used to ensure that the device was legally obtained and was not tampered with during shipping to a user. For example, the UID may contain information about the manufacturer, source, and traceability (e.g. point of origin of the diagnostic instrument and any third parties that have handled the instrument since it was manufactured) of the diagnostic instrument. If any of the identifying information is suspect or incorrect, the diagnostic instrument may be rejected and the user informed that the diagnostic test cannot be performed. Such validation actions prevent rogue and/or unsafe products from being used, such as products that were sold illegally or were acquired from unlicensed third parties.
The method further includes performing geometric corrections 218 on the digital image, taking into account the geometric deformations of the initial image to find the proper CTP and RCB sub-images of the CTP and RCB. The process takes into account the geometric deformations of the initial image to find the proper CTP and RCB sub-images, which are subsequently cropped, as precisely as possible, to remove any edge artifacts from the identified regions of the digital image, leaving only the individual colored areas of the CTP and RCB for further analysis.
When preparing to take pictures, the user interface superimposes a virtual contour of the paddle onto the real image acquired by the camera in video mode prior to single frame acquisition in high resolution camera mode. The user is asked to overlay the virtual contour with the image of the paddle and to take the picture precisely when indicated by the timer in the application.
When the user triggers the camera shutter, the camera switches from video to high resolution mode to capture the best possible image of the paddle, improving the precision of the method described in this patent application.
Specifically, the geometric corrections are based on the position of the UID in the digital image. Initially, the position of the UID is identified by scanning the digital image, as is described above in connection with the validation process. With reference to
A(x,y)=Ax,Ay
Ti(x,y)=Tix,Tiy
With reference to
yawAngle=a tan((Ay−Dy)/(Ax−Dx))
and the positions are corrected through a rotation around point A, creating a new referential X′ and Y′.
With reference to
Pitch approximation=abs(Dy−Cy)/abs(Ay−By)
Pitch correction=(abs(Dy−Cy)/abs(Ay−By))̂3,
With reference to
DCAngle=a tan((Cx−Dx)/(Cy−Dy));
The composite correction for both roll and yaw is calculated as:
AngFact=sin(DCAngle)+sin(yawAngle);
The coordinates of the CTP 22 are calculated by applying the following corrections to points T1 . . . Tn defined in
TAy=round(Tiy*Yscale);
TAx=round(Tix*Xscale−AngFact*TAy);
The coordinates of the RCB 28 can be calculated using the same equations, thereby providing a theoretic location of the RCB 28 on the digital image.
With continued reference to
With reference to
Additional image imperfections including noise from the camera sensor, artifacts caused by changing lighting conditions, imperfections of the samples themselves, variations in the CTP chemical reactions, or any combination thereof may also be present in the actual CTP and RCB images 314, 322, even after the background artifacts 312, 316 and background lines 320 are removed. These imperfects may be removed by filtering and color correction. However, the challenge in filtering noise in medical applications is to avoid tampering with the raw data. This is particularly true in the color space where classic signal processing methods, such as linear filtering, might contaminate or distort samples and create questionable results. For example, a single red pixel averaged over a white area introduces low level pink that that could be misinterpreted as a test result. The Nitrite CTP is a good example where the slightest detection of pink corresponds to a positive result. Therefore, the filtering method is based on a sorting operation that does not modify the raw data and does not introduce colors into existing points, even at infinitesimal levels. Additionally, the quality of the identified CTP region is further improved by conditionally rejecting anomalous color points, which fall far outside of the nominally uniform color across the test panel. Such conditional rejection of outlier points presents a significant improvement in reducing error without altering raw data.
In view of these challenges, in one embodiment, a median filter, such as median filters available for use with MATLAB data analysis software, developed by MathWorks, Inc., can be applied to the actual CTP and RCB images 314, 320 after the background artifacts are removed. Median filters have the advantage of reducing pollution of CTP and RCB by border points not already rejected by the guard bands, providing an elegant solution to an optimal value without modifying the raw data. Applying a median filter to the actual CTP and RCB images (e.g. the camera captured CTP and RCB images) provides a dominant camera-captured CTP color and a dominant camera-captured RCB color. More specifically, the median filter is applied in a line wise direction and then in a column wise direction.
Due to potential variability in lighting conditions under which the digital image is captured, the camera-captured CTP color must be color corrected prior to comparison with the MICC to calibrate the digital image to the MICC/ACC color space. It is noted that since the digital image of the diagnostic instrument captures both the RCB and CTP under the same lighting conditions, the digital image of the RCB reflects the same noise and bias conditions as the CTP. Therefore, the RCB can serve as a calibration reference to color correct the color averaged CTP value.
In one embodiment, a color correction value is determined by identifying a white color sample of the RCB. A color correction factor is determined by identifying any colors, other than white, present in the camera-captured white color sample of the RCB. The correction factor is applied to the camera-captured CTP color using a white balancing algorithm, as is known in the art. For example, white balancing algorithms for use in MATLAB by Jeny Rajan, available at https://sites.google.com/site/jenyrajan/, may be used in connection with the color correction factor. White balancing algorithms are effective for color correcting red, green, blue images, such as the digital image of the diagnostic instrument.
Alternatively, and in a preferred and non-limiting embodiment, a color correction algorithm uses additional reference samples from the RCB to calculate both a black and white correction factor and a color correction factor for the digital image. Inherent to the invented method, the colors of each of the squares in the RCB (Cyan, Magenta, Yellow, Key (black), Gray, White, Red, Green, and Blue) are known under standard lighting (e.g., lighting standard D65) conditions. The color values for the RCB under standard lighting conditions are referred to as the ReferenceRCB (RefRCB) values. These known standard color values are compared to values obtained from the actual RCB image 322, referred to as the camera-captured RCB (CCRCB), acquired according the process described above. Having two data sets, the CCRCB and the RefRCB, it is possible to construct an inverse matrix that transforms the CCRCB into RefRCB. An example of a solution for deriving the inverse matrix and for correcting the color of the CTP based on the derived inverse matrix, includes the following:
1. Correct the image by adjusting the luminance of the squares with the gamma factor
L
out
=A·L
out
gamma
2. Correct the RGB bias by balancing the three colors with another gamma factor.
a
out
=B·a
out
gamma1
3. Use CMY values for validation.
Once the Gamma factors (A, gamma, B, gamma1) are derived, the correction is applied to the dominant camera-captured CTP color to bring the CTP color into the MICC/ACC color space.
A schematic representation of the above described color correction process is depicted in
Compare CTP to their Corresponding MICC/ACC
The MICC/ACC for a number of different types of CTP arrangements may be stored on computer-readable media included on or associated with the portable electronic device. With reference to
Interpolation of test results using the MICC/ACC can be performed in at least two ways. With reference to
As shown in
With reference to
With reference to
Referring now to
In either case, the color corrected portion of the digital image including the CTP is proportionally mapped on to the precisely interpolated polynomial, or chordal, fit in the chosen color space (e.g., the red-green-blue (RGB, International Commission on Illumination (CIE) XYZ, or the International Color Consortium (ICC) device independent color space (L*a*b color space)) color space). Although the discussion herein often refers to the RGB color space, it will be appreciated by those well versed in the art that any color space may be used (e.g., CMYK, GE, Pantone, Munsell, etc.).
Beneficially the above method is quite tolerant of nonlinearities, and does not require a unitary relationship with any human visual properties, making its numerical value and interpretation independent of the color vision of the observer, ambient lighting when the digital image was taken, residual metamerism, or indeed most commonly encountered errors, for which calibration and compensation did not formerly exist.
Once a plurality of analyte concentrations are calculated, the test results may be provided to a user. Additionally, the complete set of test results may be interpreted in combination as a medically-coherent set, to more specifically determine a patient condition.
MICC charts provided by manufacturers are printed for color recognition through the human eye in controlled lighting environments. For example, the single lighting lab condition may be at an luminance of 1600 lux. Because the color recognition is through the human eye and under a single lab lighting condition, these charts are not well suited to machine recognition. Additionally, the printing process reduces significantly their gamut and the perceived result depends also on the paper quality, paper gloss, ink gloss as well as the light used to observe the scene.
New MICC/ACC charts are established experimentally under controlled lighting conditions, such as luminances of 60 lux, 160 lux, 260 lux, 550 lux, and 1600 lux, using a color camera. These charts are built on lab-based chemical experiments. Chemical test pads, such as CTPs 22 of the test strip 14 shown in
Several noise reduction techniques known in the art can be used to increase the precision of such trajectories, as well as to estimate a degree of confidence in the trajectory 428. Experiments have been reproduced several dozen times to statistically evaluate their precision through their average and variance, and to reduce their noise to a level compatible with the color interpretation application of the CTP. The noise is estimated for each point of the continuous trajectory such that it can vary from point to point along the color trajectory 428. The estimated noise for each point on the trajectory can be represented as a generalized tube of confidence T centered around the trajectory 428.
When working in recognition mode, comparing a captured color corrected RGB color of a CTP with unknown titration to the continuous trajectory 428 for one of the known controlled lighting conditions, the method calculates the shortest Euclidian distance dh in the RGB color space between the trajectory 428 and the color corrected CTP measurement with unknown titration. The point on the trajectory 428 at the shortest Euclidian distance dh from the point of the color corrected CTP measurement, represents the titration measurement for a given analyte associated with the CTP.
In accordance with an embodiment, a simple method to evaluate the quality of the titration measurement is implemented. It is expected that the shortest Euclidian distance dh between the measured point and the trajectory 428 of known controlled lighting conditions (e.g., 60 lux, 160 lux, 260 lux, 550 lux, or 1600 lux) may not be zero due to noise. The noise adds variance to the captured color. As mentioned previously, experiments have provided an estimated noise for each point on the trajectory that can be represented as a generalized tube of confidence T centered around the trajectory 428. The radius and diameter of the tube of confidence T varies along the measured points and the color trajectory curve 428. If the shortest Euclidian distance dh is within the generalized tube of confidence T, the measurement is accepted because it is within a statistically acceptable variance around the color trajectory. If the shortest Euclidian distance dh is outside the tube of confidence T, it is outside the acceptable variance and is rejected.
Referring now to
The tube radius at the point PRO 2000 represents the confidence of a measurement that projects its Euclidean distance near the point PRO 2000. Accordingly, the tube radius from the point on the curve may be compared with the shortest Euclidian distance dh to determine if a measured point is within or outside the tube of confidence.
The series of single color vectors in the red dimension for each of the measured points along the color trajectory curve may be graphically represented in
The radius of the tube of confidence can be used to define a diameter (twice the radius) around the color trajectory curve 461 under which measurements can be accepted and rejected. Measurements outside the diameter defined by the confidence curve 2460A and the ribbon 2450A are outside the acceptable variance and are rejected. Measurements on and within the diameter defined by confidence curve 2460A and the ribbon 2450A are within the acceptable variance and are accepted measurements. If the measurement is accepted, the titration can then be determined.
With reference to
Embodiments are destined to be used in different lighting conditions, such as may be found at a user's home or a doctor's office. Typical light conditions can range from dim lighting (about 50 lux in a living room) to office lighting (about 500 lux) through to studio lighting (around 1000 lux) or laboratory lighting (around 1600 lux). All other things being equal, the color of a CTP changes somewhat in response to different lighting conditions.
The simplest method to overcome these color variations of a CTP due to the various lighting conditions is to repeat all tests performed for an original trajectory 460 for each different lighting condition. That is, multiple measured color trajectories of an MICC/ACC may be captured under a plurality of known controlled lighting conditions (e.g., 60 lux, 160 lux, 260 lux, 550 lux, and 1600 lux). This method of compensating for color variations under different lighting conditions requires many tests. Accordingly, capturing measurements for multiple measured color trajectories of an MICC/ACC under a plurality of different lighting conditions (e.g., 60 lux, 160 lux, 260 lux, 550 lux, and 1600 lux) can be time consuming and expensive.
Capturing color points for multiple measured color trajectories of an MICC/ACC under a plurality of different lighting conditions may be automated to reduce time and expense. However, a faster and cheaper alternate method to account for color variations due to the various lighting conditions is to shift an original measured color trajectory under one known lighting condition (e.g., a luminance of 1600 lux) into shifted color trajectories representing other lighting conditions (e.g., 60 lux, 160 lux, 260 lux, and 550 lux).
Referring now to
A pair of measurements may be used to form a shifted color trajectory. In one embodiment, a measurement of the trajectory shift under new lighting conditions is performed and the original measured color trajectory 460 is mapped to a shifted color trajectory by performing a polynomial interpolation between them.
FIGS. 21 and 22A-22C illustrate three resulting shifted trajectories 461, 462, 463, from the original measured color trajectory 460 to reflect the lighting changes under known different lighting conditions (e.g., 60 lux, 160 lux, 260 lux, 550 lux). A fourth shifted trajectory 464 is shown in
With reference to
Test Results with Multiple Trajectories
In
A tube of confidence T for the shifted color trajectory 461 is described with reference to
Additional shifted color trajectories for different luminances can be formed from the original measured color trajectory 460, such as the shifted color trajectory 464 shown in
The titration or concentration of an analyte can be determined from the shortest Euclidian distance dh for a measured point within the tube of confidence for a color trajectory of an associated lighting condition. Test results are presented to a user by a visual display connected to or associated with the portable electronic device. A simple way to visualize test results is to present the user with an image of the MICC and draw a border around the closest MICC/ACC color samples. A possible visual depiction of an MICC/ACC 416 showing selected color samples 430, corresponding to the identified test results, is depicted in
Another way to visualize test results is to print the analyte being tested for and the concentration or titration (e.g. normal, positive, very positive, etc.) in a list or table. The list or table can be presented on the visual display of the device, as shown below in Table 1. The correspondence between these the titrations and the colors read by the algorithm is encoded in a look-up table linking the MICC/ACC to the titrations. Typical values provided are negative (−), trace, small (+), moderate (++), and large (+++).
The test results may be further analyzed to provide the user with information about a possible patient condition. In a simple form, the interpretation may include displaying additional facts about the patient condition and possible treatment options. In further embodiments, the method may consider results of two or more separate tests to provide additional information about a patient condition. For example, an indication that the patient has both high leucocytes levels and high nitrites suggests a urinary tract infection (UTI).
In cases where this interpretation might lead to ambiguity, the software may engage in a user dialogue by asking additional contextual questions to the user in order to resolve ambiguities and provide an approximate interpretation in accordance with the medical state of the art. These additional questions are typically implemented as a decision tree, a method well known in the state of the art. For example if the diagnostic instrument 10 identifies a high level of bilirubin, the decision tree function of the software may ask the user for additional information about medications being taken to detect whether the user is experiencing an allergic reaction to a particular medication. Exemplary decision trees for use with the diagnostic instrument are depicted in
In a further non-limiting embodiment of the invented method, the diagnostic instrument may be examined prior to use to ensure that it is undamaged and suitable for use. More specifically, storage, conditioning, transport and the exposure of the diagnostic instrument to contaminants like air, could damage the diagnostic instrument, making it unreliable in use. It is noted that exposure to containments may render the diagnostic instrument unsuitable for use even if the diagnostic instrument has not yet reached its anticipated expiration date. Accordingly, steps are needed to ensure that the diagnostic instrument is capable of producing accurate results.
As shown in the exemplary embodiment of
Similarly, after the diagnostic instrument is exposed to the fluid sample and before performing additional image analysis on the diagnostic instrument, a digital image of the diagnostic instrument could be compared against a set of colors 436 corresponding to the maximum possible CTP color change. The method of comparing the color change of the CTP with the maximum color change values is the same as the above described comparison processes. If the color change of the CTP is found to exceed the theoretical maximum possible color change, the results are rejected as invalid. In that case, no further image processing needs be performed and the diagnostic instrument should be discarded as defective.
The above described methods may be implemented on a variety of electronic and computing devices and systems, including portable electronic devices and/or server computers, wherein these computing devices include appropriate processing mechanisms and computer readable media for storing and executing the computer readable instructions, such as programming instructions, code, and the like.
As shown in
In order to facilitate appropriate data communication and processing information between the various components of the computer 1900, a system bus 1906 is utilized. The system bus 1906 may be any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, or a local bus using any of a variety of bus architectures. In particular, the system bus 1906 facilitates data and information communication between the various components (whether internal or external to the computer 1900) through a variety of interfaces, as discussed hereinafter.
The computer 1900 may include a variety of discrete computer-readable media components. For example, this computer-readable media may include any media that can be accessed by the computer 1900, such as volatile media, non-volatile media, removable media, non-removable media, etc. As a further example, this computer-readable media may include computer storage media, such as media implemented in any method or technology for storage of information, such as computer-readable instructions, data structures, program modules, or other data, random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory, or other memory technology, CD-ROM, digital versatile disks (DVDs), or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage, or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by the computer 1900. Further, this computer-readable media may include communications media, such as computer-readable instructions, data structures, program modules, or other data in other transport mechanisms and include any information delivery media, wired media (such as a wired network and a direct-wired connection), and wireless media. Computer-readable media may include all machine-readable media with the sole exception of transitory, propagating signals. Of course, combinations of any of the above should also be included within the scope of computer-readable media.
The computer 1900 further includes a system memory 1908 with computer storage media in the form of volatile and non-volatile memory, such as ROM and RAM. A basic input/output system (BIOS) with appropriate computer-based routines assists in transferring information between components within the computer 1900 and is normally stored in ROM. The RAM portion of the system memory 1908 typically contains data and program modules that are immediately accessible to or presently being operated on by processing unit 1904, e.g., an operating system, application programming interfaces, application programs, program modules, program data and other instruction-based computer-readable codes.
With continued reference to
A user may enter commands, information, and data into the computer 1900 through certain attachable or operable input devices, such as a keyboard 1924, a mouse 1926, etc., via a user input interface 1928. Of course, a variety of such input devices may be utilized, e.g., a microphone, a trackball, a joystick, a touchpad, a touch-screen, a scanner, etc., including any arrangement that facilitates the input of data, and information to the computer 1900 from an outside source. As discussed, these and other input devices are often connected to the processing unit 1904 through the user input interface 1928 coupled to the system bus 1906, but may be connected by other interface and bus structures, such as a parallel port, game port, or a universal serial bus (USB). Still further, data and information can be presented or provided to a user in an intelligible form or format through certain output devices, such as a monitor 1930 (to visually display this information and data in electronic form), a printer 1932 (to physically display this information and data in print form), a speaker 1934 (to audibly present this information and data in audible form), etc. All of these devices are in communication with the computer 1900 through an output interface 1936 coupled to the system bus 1906. It is envisioned that any such peripheral output devices be used to provide information and data to the user.
The computer 1900 may operate in a network environment 1938 through the use of a communications device 1940, which is integral to the computer or remote therefrom. This communications device 1940 is operable by and in communication to the other components of the computer 1900 through a communications interface 1942. Using such an arrangement, the computer 1900 may connect with or otherwise communicate with one or more remote computers, such as a remote computer 1944, which may be a personal computer, a server, a router, a network personal computer, a peer device, or other common network nodes, and typically includes many or all of the components described above in connection with the computer 1900. Using appropriate communication devices 1940, e.g., a modem, a network interface or adapter, etc., the computer 1900 may operate within and communication through a local area network (LAN) and a wide area network (WAN), but may also include other networks such as a virtual private network (VPN), an office network, an enterprise network, an intranet, the Internet, the internet cloud, etc. It will be appreciated that the network connections shown are exemplary and other means of establishing a communications link between the computers 1900, 1944 may be used.
As used herein, the computer 1900 includes or is operable to execute appropriate custom-designed or conventional software to perform and implement the processing steps of the method and system, thereby, forming a specialized and particular computing system. Accordingly, the presently-invented method and system may include one or more computers 1900 or similar computing devices having a computer-readable storage medium capable of storing computer-readable program code or instructions that cause the processing unit 1902 to execute, configure or otherwise implement the methods, processes, and transformational data manipulations discussed hereinafter in connection with the embodiments. Still further, the computer 1900 may be in the form of a personal computer, a personal digital assistant, a portable computer, a laptop, a palmtop, a mobile device, a mobile telephone, a tablet PC, a server, or any other type of computing device having the necessary processing hardware to appropriately process data to effectively implement the computer-implemented method and system.
Although the embodiments has been described in detail for the purpose of illustration based on what is currently considered to be the most practical and preferred embodiments, it is to be understood that such detail is solely for that purpose and that the embodiments is not limited to the disclosed embodiments, but, on the contrary, is intended to cover modifications and equivalent arrangements that are within the spirit and scope of the appended claims. For example, it is to be understood that the embodiments contemplate that, to the extent possible, one or more features of any embodiment can be combined with one or more features of any other embodiment. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination may in some cases be excised from the combination, and the claimed combination may be directed to a sub-combination or variations of a sub-combination. Accordingly, the claimed embodiments is limited only by patented claims that follow below.
This application claims the benefit of U.S. Provisional Patent Application No. 61/948,536 entitled APPARATUS FOR DETERMINING ANALYTE CONCENTRATION BY QUANTIFYING AND INTERPRETING COLOR INFORMATION CAPTURED IN A CONTINUOUS OR PERIODIC MANNER filed Mar. 5, 2014 and incorporated herein by reference. This application further is a continuation in part claiming the benefit of U.S. patent application Ser. No. 14/419,939 entitled METHOD AND APPARATUS FOR PERFORMING AND QUANTIFYING COLOR CHANGES INDUCED BY SPECIFIC CONCENTRATIONS OF BIOLOGICAL ANALYTES IN AN AUTOMATICALLY CALIBRATED ENVIRONMENT filed Feb. 6, 2015. U.S. patent application Ser. No. 14/419,939 is a national phase application claiming priority to Patent Cooperation Treaty (PCT) Application No. PCT/US2013/035397 entitled METHOD AND APPARATUS FOR PERFORMING AND QUANTIFYING COLOR CHANGES INDUCED BY SPECIFIC CONCENTRATIONS OF BIOLOGICAL ANALYTES IN AN AUTOMATICALLY CALIBRATED ENVIRONMENT filed Apr. 5, 2013. PCT Application No. PCT/US2013/035397 claims the benefit of U.S. Provisional Patent Application No. 61/680,842 entitled MULTI-ANALYTE RAPID DIAGNOSTIC TEST AND METHOD OF USE filed Aug. 8, 2012.
Number | Date | Country | |
---|---|---|---|
61948356 | Mar 2014 | US | |
61680842 | Aug 2012 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 14419939 | Feb 2015 | US |
Child | 14633513 | US |