The invention relates generally to systems and methods for measuring photometric units in uncontrolled lighting environments with digital cameras.
Illuminance Ev is the area density of luminous flux received by an illuminated body, integrated with all wavelengths and all directions. Illuminance is used to gauge the amount of light incident on a surface. A unit of illuminance is a lux (lx), lumens per square meter. Another unit of illuminance is foot candles. Illuminance on a surface area is luminous flux per area defined by the equation:
The spectral illuminance Ev(λ) is defined by the illuminance per unit wavelength interval at the wavelength λ. Spectral illuminance Ev(λ) is related to the illuminance Ev by the equation
E
v=∫0∞Ev(λ)dλ
A device or application that measures illuminance is referred to as a luxmeter. Luxmeter software applications that measure illuminance are available for use with portable electronic devices that include a digital camera. The luxmeter software application is executed by a processor and the operating system software (e.g., APPLE iOS and GOOGLE Android) of the portable electronic device. The accuracy of the luxmeter software applications is often limited by the sensor and digital camera used in the portable electronic device. In addition, OS manufacturers may only provide incomplete application programming interfaces (API) to these sensors, or prohibit direct access by other applications to these sensors. Consequently, luxmeter applications typically have limited access to metadata of the digital pictures taken with a digital camera, if available. Typical metadata parameters produced by portable electronic device cameras that are associated with digital photographs are:
ExposureTime;
ShutterSpeedValue;
FNumber;
ApertureValue;
BrightnessValue;
ISOSpeedRatings;
These metadata parameters are sometimes stored in registers as register settings. The metadata parameters ExposureTime, ShutterSpeedValue, FNumber, and ApertureValue are well defined because they follow standard photographic values. The parameter ExposureTime is related to the parameter ShutterSpeedValue through the mathematical equation:
The parameter FNumber is related to ApertureValue through the mathematical equation:
FNumber=√{square root over (2ApertureValue)}
The metadata parameter values of BrightnessValue and ISOSpeedRatings vary from camera to camera, such that they are difficult to use for a luxmeter application. As a consequence, luxmeters in applications are quite approximate or require an external calibration before use.
A number of references disclosing measurement of illuminance conditions were developed during the argentic film era, such as U.S. Pat. Nos. 3,972,626, and 3,973,266, when film based cameras were used to capture photos. Digital cameras revolutionized the structure of cameras, capturing pixels of images and storing them into flash memory. A number of analog optical mechanisms were replaced with digital computations. Accordingly, some inventions disclosed in patents, such as U.S. Pat. No. 5,737,648, were no longer relevant. New illuminance measurement methods were introduced for digital cameras.
U.S. Pat. No. 7,071,456 discloses a camera illuminance sensor to set lighting levels of I/O systems, such as keypads, and backlights for adjustable displays. U.S. Pat. App. Pub. No. 2012/0236173 similarly discloses adapting a camera user interface to environmental conditions. U.S. Pat. App. Pub. No. 2012/0236173 discloses use of a plurality of sensors to allow corrections for underwater conditions such as very cold conditions, very bright conditions, and very dark conditions. U.S. Pat. App. Pub. No. 2012/0236173 discloses addressing illuminance conditions of extreme brightness and extreme darkness, but does not make precise illuminance measurements.
U.S. Pat. No. 7,629,998 and U.S. Pat. App. Pub. No. 2007/0002143 disclose a method and apparatus for measuring the performance of a camera, including illuminance. A test environment is disclosed to better comprehend and verify the specifications of a camera and test their fitness. The disclosed approach to measure illuminance requires that additional sensors be used for the test environment.
U.S. Pat. App. Pub. No. 2001/0007470 entitled MEASUREMENT OF ILLUMINANCE CONDITIONS uses external light emitting diodes (LEDs), as well as color filters and photo sensors to measure illuminance. The LEDs are used to control the lighting conditions. The intensity of each main color in the illuminance light is measured by dedicated photosensors having corresponding color measurement bands. These color intensities are used to adjust signals originating from the charge coupled device (CCD) array of the photo image sensor. Using external light emitting diodes (LEDs) and color filters makes it more difficult to measure illuminance.
It is desirable to ease the measurement of illuminance so that it can be readily used.
An illuminance model and additional measurements are introduced to increase the accuracy of illuminance measurements and to further improve color quantification in digital photographs captured with portable electronic device digital cameras, so they can be used with a medical device under different lighting environments with unknown illuminance.
This patent or application contains at least one drawing executed in color. Copies of this patent or patent application publication with color drawing(s) will be provided by the United States Patent and Trademark Office upon request and payment of the necessary fee.
In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding. However, it will be obvious to one skilled in the art that the embodiments may be practiced without these specific details. In other instances well known methods, procedures, modules and components may not have been described in detail so as not to unnecessarily obscure aspects of the embodiments.
The embodiments include a method, apparatus and system for color quantification under various lighting conditions. The color quantification can be used to detect and quantify specific concentrations of biological analytes indicated by a diagnostic test device.
M
i=[Fi1 Fi2 . . . Fim]
The vector Mi has m features and represents the sensory input 1203 provided to the regression model 1201. There are q row vectors Mi, one for each sample.
In the learning/training phase, there is an expected outcome to the illuminance, illuminancei 1204 for each sample i. During this learning phase, the variable Illuminancei 1204 is recorded along with the measurements of the sensor features Fim 1203. The recorded illuminancei 1204 for each sample i forms an illuminance matrix I. The measurements of the sensor features Fim 1203 for each sample i forms a sensor input matrix F.
The goal of learning phase is to find the best estimate of vector X 1202 for the regression algorithm 1201. The vector X 1202 is the best set of m parameters X1 through Xm for estimating illuminance. In transpose matrix form, the parameter vector X 1202 is
X
T=[X1 X2 X3 . . . Xm]
The regression algorithm 1201 multiplies the sensor input matrix F with the parameter matrix X to determine the illuminance matrix I. In expanded form the regression algorithm 1201 performs the matrix operation of
Knowing each value of the F matrix and each value of the illuminance matrix I, the m parameters X1 through Xm for the parameter matrix X can be determined. With the parameter matrix X determined, the illuminance model can then be used in a test mode/phase to determine illuminance.
M=[F1 F2 . . . Fm]
In the illuminance model, the vector M vector 1302 as well as the previously learned parameter X vector 1202, are provided to the regression algorithm 1201. In transpose form, the vector X vector 1202 is represented as follows
X
T=[X1 X2 X3 . . . Xm]
With the measurement vector M and the parameter vector X, the illuminance model can predict the illuminance from the following matrix equation
M*X=Illuminance
While the illuminance model is shown and described using a linear regression and linear equations, a non-linear regression and non-linear equations may be used to estimate illuminance.
Measuring with high accuracy the illuminance of a scene with a portable electronic device is one application. Camera metadata of a photograph are insufficient to accurately predict illuminance. In vector form, camera metadata generally provides:
M
Meta i=[ExposureTimei ShutterSpeedi FNumberi Aperturei Brightnessi IsoSpeedRatingi].
Referring now to
The predetermined colored object may be a colored seal 1401 for example. The predetermined colored object may be a colored bank note 1402 often found in purses, wallets, or pockets. The predetermined colored object may be a color identification (ID) badge or pass 1403 often worn on clothes or carried by a user. The predetermined colored object may be color jewelry 1404 that is worn by a user. The predetermined colored object may also be a special object dedicated to predetermined applications, such as a diagnostic instrument 110 or medical device. To improve lux measurements with a portable electronic device including a camera, it is desirable that the predetermined colored object contains multiple regions with diverse colors.
Referring now to
In this case, a template-based algorithm with predetermined knowledge of the drivers license extracts colors of features F1, F2, . . . . Fm corresponding to the driver's license layout 1500. The color features can be arranged into a vector Mtemp as follows:
Mtemp=[F1 F2 . . . Fm]
A digital image of the license may be scanned to detect a feature and then extract the color of that feature. For example, a pink hued header background may be detected and the pink color extracted from the digital photograph. Clouds in the pink hued header background may be detected and the dark pink color extracted from the digital photograph. A blue state name in the header background may be scanned and detected. The blue color in the state name may be extracted for analysis. The color of the background detected in the driver license may be extracted.
A facial recognition algorithm extracts colors of the features in the driver's picture 1501. One feature in the picture, for example, may be the color of the eyes. The algorithm may scan for pictures of faces and detect the eyes of each face in a picture. The color of the eyes may be extracted. The color of the face/skin detected at different locations in the picture may be extracted. The color of hair at different locations detected in the picture may be extracted. The color of the background detected in the picture 1501 of the driver license may be extracted. A vector Mpic1 with these features F1′ through Fn′ from the driver picture 1501 can be formed
Mpic1=[F′1 F′2 . . . F′n]
If there is another picture, such as a second driver picture 1502, the same algorithm may be applied to extract color of features from the picture. Another vector Mpic2 with color of features F1″ through F1″ extracted from the driver picture 1502 can be formed
Mpic2=[F″1 F″2 . . . F″l]
The simplest feature extraction analyzes the region and extracts its dominant color. For example, a dominant color may be defined as the median RGB color of the region.
A complete set of features extracted from the predetermined object can be formed into a merged vector M, including the metadata of the digital photo, as follows:
M=[MMeta Mtemp Mpic1 Mpic2]
The features and colors of the diagnostic instrument 110 or medical device can be similarly extracted and merged into a vector for analysis. An ID tag on the instrument may provide the locations of the features to be extracted from the diagnostic instrument.
Reference is now made to
The illuminance model is formed with a regression model, which is capable to classify the illuminance into n bins of illuminance values in response to the observation vector Mi. In the simple case of a linear regression, the illuminance model is trained with the parameter vector X, the transpose of which is as follows:
X
T=[X1 X2 X3 . . . Xm]
In the case of non-linear regression, the illuminance model is generalized to a set of matrices.
Referring now to
M*X=Illuminance
The matrix multiplication allows classifying the illuminance result into one of the n illuminances 1101A-1101N that were used in training the system.
For quality assurance purposes, an illuminance sensor 1001 may be used to obtain a measured value of illuminance. At process block 1102, a quality assurance test may be performed by comparing the measured value of illuminance from the sensor 1001 to the estimated illuminance 1101 predicted by the illuminance model. With this comparison, the accuracy of the learning algorithm and illumination model can be assessed by calculating an average error or a standard deviation from the actual measurements. However, in practice, the illuminance sensor 1001 is typically unavailable.
Machine learning techniques are used to look for cloud separations in points of a database to train a model to discriminate an illuminance level over n illuminance levels. Data mining methods are used on the data captured when taking a plurality of pictures. In one embodiment, data mining techniques analyze all the dimensions of the captured vector M and the dimensions of the metadata vector MMeta to extract parameters for the mathematical illuminance model to determine illuminance in a digital photo when captured.
Referring now to
Each of a plurality of portable devices 1350A-1350N (collectively 1350) include digital cameras 1352A-1352N to capture digital photos of a scene that may include a reference color bar and/or chemical test pads. Some of the portable devices may be similar. Other portable devices may differ. The database may take the make and type of digital camera into consideration.
The digital photos may be captured under known differing illuminance values representing a plurality of different lighting conditions 1360A-1360M, from bright sunlight 1360A to dark shadows 1360M, for example. Each portable device 1350 and its camera 1352 may be characterized under every light condition and illuminance value by capturing a digital photo of the same scene. In this manner, the data mining software and server can determine parameters to use for the model to discriminate illuminance in digital photos taken under unknown lighting conditions and illuminance.
The model and the parameters for the model may be stored into a storage device (e.g.,) of a portable device 1350A-1350N for use by a processor, such as the computer readable media 208 for use by the processor 205 of the portable electronic device 220 shown in
The physical nature of illuminance and the supporting data imposes constraints on the data mining method and the underlying mathematical model. Illuminance is typically a continuous measurement. During image acquisition it is desirable that illuminance be constant or vary slowly. It is desirable that data mining methods be noise-resistant in this continuous environment. The severity of errors may be quantified by the difference between the predicted illuminance and the measured illuminance. The noise resistance and severity of errors can lead towards mathematical methods forming convex partitions in the learning space.
Yet another constraint on the data mining method stems from the use of the training of the illuminance model in an application running on mobile devices. With the application being downloaded, it is desirable that the mathematical model be compact to reduce the download size and the download time. Furthermore, it is desirable that the illuminance model use modest processing resources during the test phase of the algorithm since it is run on mobile devices having constrained resources in both processing power and memory. Moreover, it is desirable to minimize processing time to conserve energy of the mobile device.
Several data mining methods were tested, amongst them all linear methods, including linear regression and linear discriminant analysis, failed to achieve a great accuracy. A naïve Bayesian classification method also failed to reach great accuracy as many parameters of the model were linked therefore violating a Bayesian hypothesis.
Other data mining methods performed well. A tree classification method performed well, providing a compact mathematical model. However, noise resistance was lacking. Additionally, the tree classification method resulted in convex illuminance clusters in the data mining space.
The K nearest neighbor data mining method performed well in terms of accuracy. However, it resulted in convex illuminance clusters in the data mining space. Moreover, its resulting mathematical model is very large due to an enumeration of all the learning samples.
The invention relates generally to systems and methods for detecting the presence or absence of a variety of analytes in a fluid sample used with a diagnostic instrument. Diagnostic test results are determined by image analysis of a digital image of the diagnostic instrument. The analysis is performed without the use of any controlling light, such as a flash of light from a camera light source in flash mode, a constant light from the camera light source in torch mode, or any other/additional controlled source light. Rather, the measure of illuminance is determined from existing sensors within digital cameras of personal electronic devices. Moreover, a measure of illuminance can be determined by the embodiments without any external controlled lighting, such as a flash, a torch, or a light emitting diode (LED).
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 or blood, including glucose, bilirubin, ketones, specific gravity, blood type, blood concentration, acidity (pH), protein, urobilirubin (urobilinogen), nitrite (nitrates), leukocytes, microalbumin and creatinin. The magnitude of the color change of the reagent test pad is proportional to the analyte concentration in the patient fluid.
Referring now to
Dipsticks 101 are typically interpreted with a user's naked eye by comparing the test strip 101 against a color reference chart 103. A dipstick reagent color 102 is compared to a set of possible colors 104 corresponding to possible concentrations/titrations/quantity of the tested reagent. 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. One of the approaches is to build a dedicated machine taking the samples into a controlled environment where sensors read the dipsticks illuminated by known light sources. Another approach is to use a camera to capture side by side the dipsticks and a Manufacturer Interpretation Color Chart (MICC) to make a direct color comparison, since test and result interpretation charts are seen under the same lighting. Our approach described in '842 application puts the least constraints on the end-user, as it configures and automatically calibrates the digital image to spectrally correct for any color deficiencies, artifacts, or other ambiguities.
Some embodiments of the invention 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, embodiments of the invention relate to the performance of color-based reaction testing of biological material in an automatically calibrated environment. In some embodiments, the invention is implemented as an application running on a portable electronic device, such as a cell phone, tablet PC, computer, laptop, a head-mounted display like ‘glasses’ or other dedicated electronic device. The method has been designed to minimize user contact and manipulations of biologically soiled samples.
With reference to
In
In certain non-limiting embodiments, the portable electronic device 220 includes a camera sensor 202, a flash or lighting device 203 (e.g., one or more light emitting diodes or a xenon flash bulb), a processor 205, computer-readable media 208, a reference tag reader 204, a visual display device 201, a digital image analyzer 206, a data transmitter 207, a date entry device 209, and a timer 210.
The camera sensor 202 obtains the digital image of the diagnostic instrument 110. The processor 205 is configured to execute program instructions stored on computer-readable media 208 associated with the portable electronic device 220.
The computer-readable media 208 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 an electronic device, such as the portable electronic device 220 and its processor 205.
In addition to storing the program for controlling functions of the portable electronic device 220, the computer-readable media 208 may also store data including one or more tables of colors for one or more MICC charts 103 that may be used for comparison to determine test results of the diagnostic instrument 110.
The data transmitter 207 is for transmission of data and information from the portable electronic device 220 to an external electronic device, a computer or server in a computer network, and/or a digital storage device, collectively referred to as a network environment (also referred to as “the cloud”) 211. Once the data is provided to the network environment 211, it may be made available to third party applications 212 and used by caregivers, doctors, payment organizations, insurance and health maintenance organizations, pharmacists, or public health organizations.
In
Referring back to
Reference is now made to
At process block 301, the user initiates the method by pressing a button on the display screen 201 of the portable electronic device 220 so that the processor 205 executes a program. The user exposes the set of CTPs 112 of the diagnostic instrument 110 to a biological sample. The analytes contained in the biological sample start a chemical reaction in the CTPs 112 triggering their color change. In certain embodiments, a timer 210 of the portable device 220 is started when the diagnostic instrument 110 is exposed to the biological sample. After a predetermined time passes as may be measured by a clock or timer, such as timer 210 of the device 220, the portable electronic device 220 prompts the user to capture one or more digital images of the diagnostic instrument 110.
At process block 302, a digital image of the diagnostic instrument 110 is captured using the camera sensor of a portable electronic device 220. The captured digital image includes at least the CTPs, and the ID tag of the diagnostic instrument. If included on the diagnostic instrument, the captured digital image may also include a reference color bar.
At process block 303, the position and color of one or more of the CTP 102 are then extracted from the captured digital image of the diagnostic instrument 110. The position of each CTP 112 is then mapped to the type of test it performs (e.g. glucose, acidity (pH)) according to a predetermined map of the set of test pads. Each of these tests can be interpreted by comparing the CTP color to a line of reference colors 104 in the Manufacturer Interpretation Color Chart 103. A line of reference colors 104 represents the color trajectory in the RGB space that a specific chemical test pad follows when submitted to all possible concentrations/titrations/quantity in its detection range. U.S. patent application No. 61/680,842 discloses a continuous trajectory linking all points of the discrete MICC color line 104 of a given analyte to increase accuracy of color quantification. The color trajectories 311 are constructed once, during the calibration procedure of the instrument. The trajectories are formed under known lighting conditions, typically under a lightbox. The color trajectories 311 are stored as look up tables into memory of the device 220 and recalled by the processor to interpret the color of a CTP 112.
At process block 304, under the same known lighting conditions so correction is unnecessary, a color interpretation of the color of the CTP 112 can be made with a simple look-up mechanism by the processor. The look up mechanism maps the values of the camera-captured CTP colors to the nearest point in the corresponding color trajectory 311 of the given analyte of the CTP. The results or titration is directly read out from the trajectory given the camera captured CTP color. There is a one-to-one mapping between a point on the color trajectory 311 and a titration or concentration of analyte in a biological sample.
At process block 305, the result and the titration are reported to a user by the device 220.
The processes 303-305 are repeated for each CTP numbering from i equal to one to a maximum CTP number N. A result and titration (i) is provided for each CTP (i). For the exemplary diagnostic instrument 110, twelve CTPs are analyzed for test results and titration. However, other implementations of diagnostic device 110 may have a different number of CTPs 112.
At process block 399, after all the CTPs of a diagnostic instrument have been color quantified and interpreted to a quantity (e.g., concentration/titration), the process ends.
The color quantification method shown in
However, it is desirable for a color quantification method and system to function over a large range of lighting conditions. Color corrections can be automatically introduced to normalize the extracted colors from the CTPs to the lighting conditions and then comparisons can be performed in this automatically calibrated color space. Experiments have shown that illuminance influences the color trajectories 311 of analytes beyond the effect of the color corrections.
Additional color trajectories 401-404 were experimentally formed with lower illuminance to extend the operating range of the device 220 to low lighting conditions, such as may be found in corridors, bathrooms, living rooms, kitchens, etc. Color trajectories 401, 402, 403, and 404 were formed corresponding to analyte (e.g., glucose) concentrations/titrations observed under illuminances of 60, 160, 260, and 550 lux respectively. Alternatively, the 1600 lux color trajectory may be mapped to the color trajectories 401-404 respectively for illuminances of 60, 160, 260, and 550 lux by a mapping algorithm.
While only five color trajectories corresponding to analyte (e.g., glucose) concentrations extracted under five different illuminances (e.g., 60, 160, 260, 550, and 1600 lux) are shown in
The method of color quantification shown in
In
In one embodiment, there may be five color trajectories 304A-304E corresponding to illuminances of 60, 160, 260, 550 and 1600 Lux. The multiple color trajectories 304A-304E represent the various lighting conditions that may be found inside dwellings, ranging from 60 lux for a poorly lighted environment (e.g., a corridor/closet) to 1600 lux for a well lighted environment (e.g., an office with one or more windows).
After one of the trajectory curves is selected in response to the estimated illuminance, the RGB components of the color are interpreted on the trajectory curve into an analyte concentration/titration. The interpretation is performed by a look up table with the RGB components being the entry points into the table.
At process 305, the results and titration of each CTP are presented to the user. The determined illuminance level may also be presented to the user as part of the results and titration.
Processes 302, 303, and 306 are similar to those described with reference to
The processes of
Estimating illuminance for the accuracy and reliability of a medical device is challenging, especially when using built-in digital cameras of portable electronic devices. Most digital cameras prohibit direct access to their light sensors. Additionally, raw illuminance measurements by the light sensors are manufacturer dependent and largely unspecified. Thus, it is difficult to use the raw illuminance measurements from the light sensors over a wide range of families of devices from different manufacturers. Moreover, manufacturers may regularly announce new devices 220 during the year, such that any luxmeter software application may need regular updates to follow the evolution of new devices. Accordingly it may be desirable to avoid using the light sensors that provide raw illuminance measurements. Instead, the embodiments can estimate illuminance based on the captured image content and basic metadata collected by cameras. Accordingly, new visual clues are introduced into the diagnostic instrument 110 to assist in the estimation of illuminance.
Referring now to
The test paddle 600 further comprises a substrate 610 with a handle 614 at one end and a blade 616 at an opposite end. The set 620 of reagent test pads 112 are mounted to the blade portion 616 of the substrate 610 with an adhesive. The substrate may be plastic or a heavy duty paper, such as cardboard.
In one embodiment, the test paddle 600 has twelve reagent pads 112. The twelve reagent pads 112, also referred to as chemical test pads (CTP) or simply test pads, are positioned near the blade of the paddle 600. In this exemplary embodiment, the CTPs 112 are arranged into an array of three rows (112-1x through 112-3x) and four columns (112-xA through 112-xD). Different arrays of CTPs may be used with differing numbers of CTPs on the test paddle.
Each CTP 112 may be treated with a chemical compound (a reagent) specifically selected to react with a specific analyte within a biological sample. Other CTPs may be treated with another chemical compound (reagent) to determine other factors about the biological sample, such as acidity (PH) or specific gravity for example.
Between the handle and the reagent test pads 112 is the reference color bar (RCB) 601. The test paddle 600 may further include a matrix bar code or a two-dimensional bar code 114. The test paddle 600 may further include an opening 615 capable of hosting an additional test, such as a pregnancy test.
The reference color bar 601 includes a plurality of color samples in a side-by-side linear arrangement. For example, the reference color bar 601 may include color samples for one or more of the following colors: Cyan, Magenta, Yellow, Key (black), Gray, White, Red, Green, Blue. The sample colors correspond with common color spaces, such as Red-Green-Blue or Cyan-Magenta-Yellow-Key (black). The known color samples may be shaped as color squares along the reference color bar or alternatively other two dimensional shapes such as color circles, color ovals, or color rectangles.
The reference color bar 601 is used for image processing. The RCB 601 may be used to calibrate or normalize a digital image of the diagnostic instrument to improve the quality and accuracy of color analysis. Additionally, the reference color bar 601 may be used to determine the illuminance. The reference color bar (RCB) 601 may be used to automatically correct the captured colors of the different reagent test pads 112, prior to a comparison with a set of color calibration curves to determine analyte concentration in the test sample. The new visual clues provided by the reference color bar 601 on the test paddle 600 lead to an improved flow chart for color quantification.
The matrix bar code or two-dimensional bar code 114 may also referred to as a quick response (QR) code 114, The quick response (QR) code 114 can provide a unique identification to automatically identify the test paddle 600. The QR code 114 may be configured to contain certain identification information about the test paddle 600, such as a list of the analytes that are being tested, expiration date of the paddle 600, the conditions that are being tested, and other identifying information. The information may be printed directly on the unique identification or encrypted within the QR code 114.
Alternatively, the QR code 114 may be associated with information stored elsewhere, such as is the case with bar codes or other near-field communication codes. The identification information may be used in a validation processes to ensure the diagnostic test paddle 600 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.
Referring now to
Processes 302, 303, 305, and 306 are similar to those described with reference to
At process block 711, RGB color values for the reference colors of the reference color bar 601 are extracted from the captured picture of the diagnostic instrument 600. The reference color bar values are used to make two kinds of corrections at process blocks 702 and 511.
At process block 702, a color normalization process occurs. The color normalization process transforms the perceived colors from each CTP into a normalized color space. This operation calculates the inverse transform to be applied to the perceived RCB colors so that these colors appear as seen under a normalized lighting environment, e.g. D65. This inverse transform is then applied to the perceived RGB colors of the CTP to determine their normalized color. The normalized RGB colors for each CTP are used to determine the concentration/titration using a selected color trajectory. The normalization process is further described in U.S. Patent Application No. 61/973,208 and incorporated herein by reference.
At process block 511, an illuminance correction is made with the reference colors of the reference color bar. The RCB colors of the reference color bar are used in the illuminance switch process 511, in conjunction with other parameters like the camera metadata and CTP colors, to make a high precision luxmeter determination of the illuminance of the paddle.
Camera metadata may be some of the parameters that may be used by the illuminance model. Camera metadata for photograph i may be expressed in vector form by an MMeta vector (meta vector) as follows:
M
Meta i=[ExposureTimei ShutterSpeedi FNumberi Aperturei Brightnessi IsoSpeedRatingi]
Camera metadata of a photograph are insufficient to accurately measure illuminance. Additional data that extends the model is used to accurately measure illuminance of a scene. The referenced color bar (RCB) 601 is introduced into the captured scene of the photograph to more accurately measure illuminance. The test paddle 600 further includes the chemical test pads 112 that are captured in the photograph that may also be used to more accurately measure illuminance.
For the reference color bar (RCB) 601, a new observation vector corresponding to the RGB colors of the sample colors—Cyan, Magenta, Yellow, Key (black), Gray, White, Red, Green, Blue—of the RCB 601 is introduced and used in the model. The new observation vector MpercRCB i has a dimension 27 (3 RGB×9 colors) and is as follows:
M
percRCB i=[pCyanR i pCyanG i pCyanBi . . . pBlueR i pBlueG i pBlueB i]
The observation vector of the reference color bar may also be normalized and used in the model. A normalized RCB adds another line vector MnormRCB i (normalized reference color bar vector) into the model with the same dimension 27 as follows:
M
normRCB i=[nCyanR i nCyanG i nCyanBi . . . nBlueR i nBlueG i nBlueB i]
While the new observation vector mentioned above is based on known RGB sample colors, different numbers and combinations of known reference colors may be used. In one embodiment, the reference colors of the RCB are nominal colors of each CTP at one or more, or all predetermined target concentrations.
The observed or captured scene in the digital photograph includes the CTPs 112 of the test paddle 600. In one embodiment there are twelve CTPs 112, CTP1 through CTP12, each of which is captured with the three red, green, and blue (RGB) color values. With twelve CTPs, the corresponding line vector MpercCTPi that is captured for a test paddle has a dimension 36:
M
percCTP i=[pCTP1R i pCTP1G i pCTP1Bi . . . pCTP12R i pCTP12G i pCTP12Bi]
The measured or observation vector of the CTPs may also be normalized and used in the model. A normalized CTP vector adds another line vector MnormCTP i into the model with the same dimension 36:
M
normCTP i=[nCTP1R i nCTP1G i nCTP1Bi . . . nCTP12R i nCTP12G i nCTP12B i]
The reference color bar RCB vectors and the CTP vectors can be combined together into a single line vector. For a given photograph i, the RCB and CTP vectors combine into a single MRCBCTP vector of dimension 126:
M
RCBCTP i=[MpercRCB i MnormRCB i MpercCTP i MnormCTP i]
Despite the high dimension of elements in the MRCBCTP vector, determining illuminance of a test paddle is still a challenge. Variables in the MRCBCTP vector were analyzed to determine their use in classifying images according to their illuminance. Of the 126 dimensions corresponding to the RGB representations of all the points (CTP+RCB) in the MRCBCTP vector, there was no single dimension or combination of dimensions found that could separate points and discriminate illuminance from different lighting conditions. Accordingly, the added six dimensions of metadata are used to look for cloud separations in 132 dimensions of problem space. With so many dimensions, machine learning techniques are useful to look for cloud separations in points and discriminate illuminance.
Accordingly, data mining methods were introduced that work over all of the data captured when taking a plurality of pictures. In one embodiment, data mining techniques include, but are not limited to, the one hundred twenty six (126) dimensions of the captured vector MRCBCTP, and the six (6) dimensions of the metadata vector MMeta, for a total of 132 dimensions in accordance with one embodiment to form a vector
M
i=[MRCBCTP i MMeta i]
size(Mi)=(1,132) in one embodiment
Reference is now made to
At process block 911, the illuminance sensor 1001 measures the illuminance Illuminance, at the diagnostic instrument 600. The measurement of illuminance is coupled to the process block 922.
At process block 302, a camera 1002 concurrently captures a photograph or picture, a digital image of the diagnostic instrument 600 (also referred to as a test paddle). The process then goes to process blocks 303, 711, and 914 that can be concurrently performed in parallel.
At process block 303, the perceived colors of the CTPs are extracted from the captured photograph of the instrument 600.
At process block 711, the perceived colors of the RCB are extracted from the captured photograph of the instrument 600.
At process block 914, the camera metadata associated with the captured photograph of the instrument 600 is extracted from the captured photograph. The process may then go to process block 712.
At process block 712, the perceived CTP and the perceived RCB vectors are normalized to form the corresponding normalized CTP vector and normalized RCB vector. With the perceived RCB vector, the perceived CTP vector, the normalized RCB vector and the normalized CTP vector, the MRCBCTP vector can be constructed which represents one line in the observation vector Mi for the learning matrix. Both Mi and Illuminancei are entered into the learning algorithm 922, in the following system:
During the learning phase, numerous (e.g., hundreds) images are generated for each illuminance [1 . . . n], resulting in several (e.g., thousands) overall tests q. In one embodiment, the dimension m=126+6=132. However, the illuminance model may be used with any dimension of vector. After all tests are performed, the learning algorithm process 922 determines the mathematical model capable of best predicting Illuminancex, based on vector Mx.
At process block 922, the illuminance model is formed with a regression model that is capable of classifying the illuminance into n bins in response to the observation vector Mi. In the simple case of a linear regression, the illuminance model is trained with the parameter vector X the transpose of which is as follows:
X
T=[X1 X2 X3 . . . Xm]
In the case of non-linear regression, the illuminance model is generalized to a set of matrixes.
Reference is now made to
At process 711, the perceived colors of the RCB are extracted from the picture. At process 303, the perceived colors of the CTPs are extracted from the picture. At process 914, the camera metadata is extracted from the picture. At process 712, the perceived colors of the CTP and RCB are normalized into normalized color CTP and normalized color RCB, respectively. The perceived and normal colors of the CTP and RCB are combined together with the metadata into a measured vector M.
The measured vector M determined from the captured picture is entered to test the illuminance model under operation. The illuminance switch mathematical model 923 is used with the parameter vector X that was learned in the learning mode with the illuminance switch learning algorithm 922. Thus, for a linear regression model, the test/operation for illuminance 1101 is a simple matrix multiplication as follows:
M*X=Illuminance
The matrix multiplication allows classifying the illuminance results into one of the n illuminances 1101A-1101N that were used in training the system.
For quality assurance testing purposes, an external illuminance sensor 1001 may be used in parallel with the camera 1002 to obtain a measured value of illuminance when the captured photograph of the diagnostic instrument is taken. At process block 1102, a quality assurance test may be performed by comparing the measured value of illuminance from the sensor 1001 to the estimated illuminance 1101 predicted by the illuminance model. With this comparison, the accuracy of the learning algorithm and illumination model can be assessed by calculating an average error of the measurements and its precision can be assessed by the standard deviation of the measurements. However, in practice, the illuminance sensor 1001 is typically unavailable and the quality assurance testing process 1102 is not performed.
As mentioned herein, machine learning techniques are used to look for cloud separations in points of a database (e.g., hyper planes separating points in the database) to train the model to discriminate illuminance over the n illuminance values to determine the best estimate of illuminance. Data mining methods are used on the data captured when taking a plurality of pictures. In one embodiment, data mining techniques analyze the one hundred twenty six (126) dimensions of the captured vector MRCBCTP, and the six (6) dimensions of the metadata vector MMeta, to extract parameters for the mathematical illuminance model to discriminate illuminance in a digital photo from the n illuminance values that may be possible.
In one embodiment the data mining algorithm is a quadratic discriminant analysis. It has precise results (e.g., in one case greater than 99.75% correct results), is noise resistant, and relies on a convex mathematical model. Moreover, it produces a compact mathematical model that is moderately processor (CPU) and memory intensive during the test phase, because it just performs matrix multiplication.
The preferred illuminance model transmits a squared matrix of size 132, in addition to 5 vectors of size 132, each of which represents the centroid of an illuminance bucket.
Optionally an additional step of principle component analysis (PCA) can be applied to the data mining algorithms to reduce the size of the mathematical model to be transmitted to the application. In this case, the size of the preferred embodiment can be reduced from a dimension of 132 to 20. The tradeoff is approximately a 1% loss of accuracy (>98.75% correct results) for a reduction of the mathematical model size by a factor of 36.
Other machine learning techniques may be used as well, such as support vector machine (SVM), random forests, neural networks, deep belief networks, and deep Boltzman machines.
When implemented in software, the elements of the embodiments of the invention are essentially the code segments or instructions to perform the functional tasks described herein. The code segments or instructions are executable by a processor and can be stored in a storage device or a processor readable storage medium, awaiting execution. The processor readable storage medium may include any medium that can store information. Examples of the processor readable storage medium include an electronic circuit, a semiconductor memory device, a read only memory (ROM), a flash memory, an erasable programmable read only memory (EPROM), a magnetic disk, a floppy diskette, a hard disk, an optical disk, a compact disk read only memory (CD-ROM), and a Blu-ray disk. The code segments or instructions may also be downloaded via computer networks such as the Internet, Intranet, etc. and stored into a storage device or processor readable storage medium and executed by the processor.
While certain embodiments of the disclosure have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the disclosure. Various combinations and sub-combinations, and modifications as may be made, of the presently disclosed components and embodiments and aspects are contemplated whether or not specifically disclosed hereunder, to the extent and as would be apparent to one of ordinary skill based upon review of this disclosure and in order to suit a particular intended purpose or application. Indeed, the novel methods, systems, and devices described herein may be embodied in a variety of other forms. Furthermore, various omissions, substitutions and changes in the form of the methods, systems, and devices described herein may be made without departing from the spirit of the disclosure. For example, certain features that are described in this specification in the context of separate implementations may also be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation may also be implemented in multiple implementations, separately or in sub-combination.
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 invention is to be limited only by patented claims that follow below.
This application is a continuation and claims the benefit of U.S. patent application Ser. No. 14/827,312 entitled PRECISION LUXMETER METHODS WITH A DIGITAL CAMERA TO QUANTIFY COLORS IN UNCONTROLLED LIGHTING ENVIRONMENTS filed on Aug. 15, 2015 by inventor Bernard Burg. U.S. patent application Ser. No. 14/827,312 claims the benefit of United States (U.S.) provisional patent application No 62/038,155 entitled PRECISION LUXMETER METHODS WITH A DIGITAL CAMERA TO QUANTIFY COLORS IN UNCONTROLLED LIGHTING ENVIRONMENTS filed on Aug. 15, 2014 by inventor Bernard Burg. This application is related to U.S. patent application Ser. No. 14/633,518 entitled QUANTIFYING COLOR CHANGES OF CHEMICAL TEST PADS INDUCED BY SPECIFIC CONCENTRATIONS OF BIOLOGICAL ANALYTES UNDER DIFFERENT LIGHTING CONDITIONS filed on Feb. 27, 2015 by Bernard Burg et al. which is incorporated herein by reference for all purposes. U.S. patent application Ser. No. 14/633,518 claims priority to 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 on Mar. 5, 2014 by Bernard Burg et al. (hereinafter Burg '536), which is incorporated herein by reference for all purposes. This application is also related to International Patent Ap. No. PCT/US2013/035397, Publication No. WO 2014025415 A2, filed on Aug. 5, 2013 by Bernard Burg et al. (hereinafter Burg '397), and 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, both of which are incorporated herein by reference for all purposes. 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 on Aug. 8, 2012, by inventors Bernard Burg et al which is also incorporated herein by reference for all purposes.
Number | Date | Country | |
---|---|---|---|
62038155 | Aug 2014 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 15865238 | Jan 2018 | US |
Child | 17162273 | US | |
Parent | 14827312 | Aug 2015 | US |
Child | 15865238 | US |