Abstract
We introduce a paradigm of completely non-invasive, on-demand diagnostics that may replace common blood-based laboratory tests using only a smartphone app and photos. We initially targeted anemia, a blood condition characterized by low blood hemoglobin levels that afflicts >2 billion people. Our app estimates hemoglobin levels by analyzing color and metadata of fingernail bed smartphone photos and detects anemia (hemoglobin levels <12.5 g dL−1) with an accuracy of ±2.4 g dL−1 and a sensitivity of 97% (95% CI, 89–100%) when compared with CBC hemoglobin levels (n = 100 subjects), indicating its viability to serve as a non-invasive anemia screening tool. Moreover, with personalized calibration, this system achieves an accuracy of ±0.92 g dL−1 of CBC hemoglobin levels (n = 16), empowering chronic anemia patients to serially monitor their hemoglobin levels instantaneously and remotely. Our on-demand system enables anyone with a smartphone to download an app and immediately detect anemia anywhere and anytime.
Anemia has a global prevalence of over 2 billion people and is diagnosed via blood-based laboratory test. Here the authors describe a smartphone app that can estimate hemoglobin levels and detect anemia by analyzing pictures of fingernail beds taken with a smartphone and without the need of any external equipment.
Introduction
Although smartphone-based telehealth has the potential to change how healthcare is delivered by enabling remote diagnosis1, these technologies have yet to non-invasively replace blood-based testing, which remains a major cornerstone of disease diagnosis in modern medicine2–4. Indeed, while custom-designed smartphone attachments may allow for blood-based, point-of-care diagnosis and analysis5, the burden of blood sampling combined with the additional cost and need for equipment external to the smartphone prevents broader adoption of these potentially disruptive technologies.
Due to its high prevalence affecting over 2 billion people globally, anemia, characterized by low blood hemoglobin (Hgb) levels6, was chosen as the initial disease target for us to study. Anemia has numerous causes, ranging from common nutritional causes, such as iron or folate deficiency, which are relatively straightforward to treat and cure, to rarer genetic causes, such as sickle cell disease or thalassemia major, which lead to severe and chronic anemia that requires frequent monitoring. Detection of anemia involves either anemia screening or anemia diagnosis, and both require different degrees of measurement accuracy. First, a clear clinical need exists for easily and widely accessible tools to screen for anemia among at-risk populations (e.g., pregnant women, toddler-age children, elderly patients) or the general public to determine whether an individual will need formal confirmatory testing with the gold standard Hgb level test obtained via a complete blood count (CBC). However, there is also a need to for non-invasive methods to more quantitatively and officially diagnose and monitor anemia with higher precision Hgb levels, especially patients with known or chronic anemia.
Existing clinical approaches to measure blood Hgb levels require specialized equipment and represent tradeoffs between invasiveness, accuracy, infrastructure requirements, and cost7–9, all of which are especially problematic in rural and low-resource settings, where anemia is most prevalent. For example, the gold standard CBC Hgb level measurement requires: blood sampling by a trained phlebotomist, a clinical hematology analyzer with the required electrical power, biochemical reagents, and infrastructure thereof, along with a trained laboratory technician to perform the analysis10. Aside from being cost-prohibitive in resource-poor settings, the necessary invasive blood sampling to measure Hgb levels causes discomfort in younger pediatric patients11. Interestingly, several reports have suggested that anemia may qualitatively correlate with subjective assessments of pallor in various anatomic regions of the patient’s body12–17, namely the fingernail beds, conjunctiva, and palmar creases.
Here, we leverage this observation that pallor is associated with anemia to develop a method that quantitatively analyzes pallor in patient-sourced photos using image analysis algorithms to enable a noninvasive, accurate quantitative smartphone app for detecting anemia (Fig. 1a, Supplementary Movie 1). At the same time, we implemented quality control software to minimize the impact of common fingernail irregularities (e.g., leukonychia and camera flash reflection) on Hgb level measurement (Fig. 1b). To validate our method, we conducted a clinical assessment of this smartphone-based technology using blood samples and smartphone fingernail images of patients with anemia of different etiologies as well as healthy subjects. With this technology, a user downloads an app onto their smartphone, takes a photo of his/her fingernail beds, and instantaneously receives an accurate Hgb level which is displayed directly onto the smartphone screen by the app. Since fingernails, conjunctiva, and palmar creases do not contain melanocytes (melanin producing skin cells), the primary source of color of these anatomical features is blood Hgb18. Of these sites, fingernails are straightforward for a user to self-image, unlike conjunctiva, and also have low person-to-person size and shape variability, unlike palmar creases. Our approach represents a substantial conceptual advance over all other published POC anemia detection tools, since these techniques require external equipment, such as calibration cards, background light blocking devices, smartphone attachments, or expensive spectrometry readers19,20. Here we have developed a fully functional and standalone smartphone app that enables the non-invasive measurement of blood Hgb levels and has several advantages over existing approaches as highlighted in Table 1. Our app technology leverages the image metadata, a vast trove of information that has been completely ignored by every published study to date that uses smartphones for diagnostics. By mining this rich source of information as well as the color data with a robust multi-linear regression approach, we demonstrate a system in which accurate Hgb measurements are obtained with a smartphone without the need for any external equipment. Indeed, while smartphone images automatically record metadata, instead of examining these data, other groups have used physical strategies such as color calibration cards and light blocking enclosures20,21. By eliminating external equipment, this system enables on-demand Hgb level measurement as it requires only the user’s smartphone and can be conducted in under 1 min. Therefore, users who desire to screen themselves for anemia can do so immediately by just downloading an app without being required to wait for external equipment to be shipped to their homes, something other smartphone anemia tools require. Furthermore, this smartphone-based technique will empower patients to take control of their clinical care via self-testing of Hgb levels.
Table 1.
Device | Non-invasive | Smartphone-based | Does not require additional equipment (aside from smartphone) | Low cost (<$25) | Accurate (LOA < 3 g dL−1) |
---|---|---|---|---|---|
Complete blood count hemoglobin levels (Gold Standard) | X | X | X | X | ✓ |
Hemocue | X | X | X | X | ✓ |
Masimo co-oximetry | ✓ | X | X | X | X |
Conjunctival analysis | ✓ | ✓ | X | ✓ | X |
WHO color scale | X | X | X | ✓ | X |
HemaApp | ✓ | ✓ | X | ✓ | X |
Smartphone Anemia App | ✓ | ✓ | ✓ | ✓ | ✓ |
Results
Anemia screening using the smartphone app
This system has the capacity to serve as a noninvasive anemia self-screening tool for use by the general population or at risk populations. With a single smartphone image and no personalized calibration step, smartphone Hgb levels were measured to within ± 2.4 g dL−1 with a bias of 0.2 g dL−1 of CBC Hgb levels in 100 patients with a variety of anemia diagnoses mixed with healthy subjects (Fig. 2a, r = 0.82; Fig. 3, Table 2), defined as the 95% limits of agreement (LoA). This noninvasive approach represents a greater degree of accuracy than reported accuracy levels of existing invasive POC anemia screening methods7,22,23. Moreover, receiver-operating characteristic analysis revealed that this test achieves a strong diagnostic performance with an area under the curve of 0.88 (Fig. 2b) and highlights the accuracy of this technology throughout the entire range of tested Hgb levels. Additionally, there was minimal correlation between patient Hgb levels and smartphone-measured residual (r = 0.26), indicating that the algorithm performance remained consistent throughout range of tested Hgb levels (Fig. 2c). Notably, when using a cutoff of < 11.0 g dL−1 to define anemia, a well-established Hgb level threshold (Fig. 2b, Supplementary Figure 1)12, the sensitivity and specificity of the system to detect anemia was 92% (95% CI, 80–97%) and 76% (95% CI, 62–87%), respectively. Using the average WHO Hgb level cutoff for anemia of 12.5 g dL−1 in men and women, the sensitivity of the test improves to 97% (95% CI, 89–100%), indicating the potential for this test to serve as a noninvasive screening tool for anemia (Supplementary Figure 2)24. In fact, this degree of accuracy is on par with reported accuracy values in POC settings of the invasive clinically used Hemocue and substantially better than under-development POC screening tools such as HemaApp and conjunctival analysis via photographs20,21,25.
Table 2.
Disorder | Number of patients |
---|---|
Hematologic diseases | 211 |
Sickle cell disease | 162 |
Hgb SS | 126 |
Hgb SC | 21 |
Hgb Sβ+ | 8 |
Hgb Sβ0 | 5 |
Beta thalassemia | 17 |
Major | 12 |
Minor | 5 |
Thrombocytopenia | 6 |
Aplastic anemia | 2 |
Deep vein thrombosis | 2 |
Hemophilia | 2 |
Microcytic anemia | 2 |
Neutropenia | 3 |
Pulmonary embolism | 2 |
Anemia (unspecified) | 1 |
Diamond blackfan anemia | 1 |
Hemolytic anemia due to immunosuppression | 1 |
Hyperbilirubinemia | 1 |
Hypogammaglobulinemia | 1 |
Iron-deficient anemia | 1 |
Macrocytic anemia | 1 |
Normocytic anemia | 1 |
Pancytopenia | 1 |
Paroxysmal nocturnal hemoglobinuria (PNH) | 1 |
Purpura fulminans | 1 |
Spherocytosis | 1 |
Von Willebrand disease | 1 |
Oncologic diseases | 54 |
Acute lymphoblastic leukemia | 29 |
Hodgkin’s lymphoma | 6 |
Acute myeloid leukemia | 5 |
Diffuse large B cell lymphoma | 4 |
Neuroblastoma | 3 |
Osteosarcoma | 2 |
Anaplastic ALK-positive large cell lymphoma | 1 |
Burkitt’s lymphoma | 1 |
Chronic myeloid leukemia | 1 |
Ewing’s sarcoma | 2 |
Extragonadal germ cell tumor of mediastinum | 1 |
Germ cell neoplasm of the left testicle | 1 |
Hepatoblastoma | 1 |
Lymphoma (unspecified) | 1 |
Rhabdomyosarcoma | 1 |
Sacrococcygeal germ cell tumor | 1 |
Spindle cell sarcoma | 1 |
Synovial cell sarcoma | 1 |
T lymphoblastic lymphoma | 1 |
Wilm’s tumor | 1 |
Healthy Control | 72 |
This study enrolled 337 individuals with a wide variety of diagnoses. Study subjects enrolled consisted of 162 patients with Sickle Cell disease (e.g., type SS, SC, Beta+, Beta 0), 34 patients various other anemias (e.g., Beta Thalassemia major and minor, Microcytic, macrocytic, normocytic, aplastic, iron deficient, and general anemia), 54 instances of several malignancies (e.g., Leukemia, Lymphoma, Sarcoma, Neuroblastoma, Germ Cell Tumor), as well as 15 patients suffering from various other blood conditions (e.g., Deep Vein Thrombosis, hyperbilirubinemia, Hypogammaglobulinemia, idiopathic thrombocytopenic purpura, Purpura fulminans, Pulmonary embolism, Neutropenia, Spherocytosis, Thrombocytopenia, Von Willebrand disease). Additionally, 72 healthy control subjects were enrolled in the study to ensure that a wide range of hemoglobin levels were represented
Personalized Hgb level measurements using the smartphone app
Although the accuracy is excellent for a screening tool, we hypothesized that individual calibration of the algorithm could eliminate some of the measurement error introduced by subject-to-subject variability and therefore further improve the accuracy. Thus, we conducted a study in which the smartphone-based algorithm was calibrated for each subject (4 subjects total) over the course of 4 weeks and achieved personalized, accurate Hgb level measurements, enabling long-term serial monitoring of Hgb levels (Fig. 4a, Supplementary Figure 3). Overall, when used in this manner, this system achieved a level of accuracy of ±0.92 g dL−1 with a bias of 0.09 g dL−1 compared to CBC Hgb levels (Supplementary Figure 4), again, defined by the 95% LOA (i.e., the Hgb level difference from the gold standard that 95% of smartphone measurements will fall between), representing an improvement on the reported accuracy of current invasive, point-of-care hemoglobin tests, such as Hemocue9, and clinically used noninvasive methods such as the Masimo Radical 726. The standard deviation used to calculate the 95% LOA in this case was determined via a random effects model27, which takes intra-patient variance caused by repeated Hgb measurements of each patient into account. This indicates that Hgb level measurement error is consistently low across our small, yet diverse study sample size (two subjects suffering from chronic anemia, one healthy male subject, and one health female subject). Additionally, the smartphone Hgb level measurement residual did not correlate with the average between each patient’s CBC Hgb level and smartphone Hgb level with (r = −0.24), indicating that residuals were not biased for any specific range of Hgb levels (i.e., algorithm performance remained fairly constant throughout the entire physiologic range of tested Hgb levels) (Fig. 4b). Furthermore, this degree of accuracy falls below a clinically significant threshold for Hgb level measurement of ±1 g dL−1 (95% LOA)22,28,29, suggesting that this system can potentially be considered interchangeable with the CBC Hgb level given further study and an increased sample size30. Furthermore, 93% of measurements fall within Clinical Laboratory Improvement Amendment (CLIA) allowable total error of ±7% (difference from CBC)31, indicating that, upon further refinement and completion of additional testing, this technology may potentially be viable for at-home and clinical use for diagnosis of anemia in addition to the screening capability of the app when uncalibrated.
Smartphone anemia app is agnostic to sources of interference
Use of fingernail beds as the imaging area is ideal due to the fact that fingernail beds contain minimal amounts of melanin compared to other parts of the skin32,33, theoretically rendering this technique insensitive to subject skin tone. To address this experimentally, images were converted into the CIELab color space, a commonly used color quantification system that quantifies color as perceived by the human eye34. In particular, the L* value in this color space has been shown to serve as a linear indicator of skin tone34. The relationship between the subjects’ skin tones and Hgb measurement residuals was determined by measuring the L* value of a patch of skin adjacent to the fingernail. L* did not correlate (r = 0.13) with Hgb measurement residual, indicating that subject skin tone has little impact on the ability of the smartphone system to measure Hgb levels (Fig. 5a).
For accessibility in dynamic clinical settings, the smartphone app must function under a wide variety of background lighting conditions. To that end, using luminous flux readings on a digital light meter, no correlation (r = 0.00) was found between room brightness and Hgb measurement residual, indicating that this method can be used in a wide variety of settings and lighting conditions (Fig. 5b). Use of the camera flash resulted in the most accurate Hgb level measurement, likely due to the normalization of background lighting conditions provided by the camera flash (Supplementary Figure 5). Furthermore, ensuring that the technology is agnostic to the smartphone make and model, RGB pixel intensity values of the subject’s fingernail beds and a control patch of skin were found to be similar between images taken with smartphones made from different manufacturers and models (Supplementary Figure 6A). Additionally, no statistically significant difference existed between pixel intensity values of fingernail bed images obtained by two different smartphone (Supplementary Figure 6B). Finally, the precision of Hgb level measurements using our technology was found to be ±0.17 g dL−1 (± refers to standard deviation of n = 3 phones) when tested on multiple images of the same individual’s fingernails. Furthermore, preliminary studies suggest that hand temperature and exercise status do not impact Hgb level measurement, indicating that the app may be agnostic to fingernail perfusion variability (Supplementary Table 1).
App outperforms physician Hgb measurement via physical exam
Clinical hematologists, US Board certified physicians who specialize in the clinical care of patient with blood disorders, were asked to measure Hgb levels in patients via inspection of images of fingernails. In order to account for physician bias associated with physical examination of patients (e.g., prior knowledge of the patient’s medical history), the physicians reviewed the same images of the patients’ fingernails as the app. This approach better compares the diagnostic capabilities of physicians and the app. When estimating Hgb levels based on examinations of images of patient fingernail beds (n = 50), hematologists estimated blood Hgb levels to within ±4.6 g dL−1 of the CBC Hgb level (95% LOA, Fig. 6a). Note that this degree of accuracy represents nearly the entire physiologic Hgb level range tested. The app was then tested on the dataset of 50 patient images and measured Hgb to within ±1.0 g dL−1 of CBC Hgb levels (95% LOA, Fig. 6b). Furthermore, ROC analysis revealed an area under the curve of 0.94 for the app vs 0.63 for the hematologists, representing a significant improvement in diagnostic accuracy (Fig. 6c, d). Moreover, agreement of Hgb levels between the physicians’ estimates, the smartphone app, and CBC Hgb levels was assessed using the intraclass correlation coefficient (ICC), which found that the smartphone app and CBC Hgb levels demonstrate excellent agreement (defined as ICC < 0.9) as ICC is estimated to be 0.95 (95% confidence interval (CI): 0.92–0.97), while an average of the five hematologists’ evaluations demonstrated only moderate agreement with the CBC Hgb levels, with an ICC of 0.59 (0.37–0.74). Importantly, inter-physician variability of Hgb level estimates were high, as indicated by the low level of agreement with an ICC of 0.20 (95% CI .07–0.36).
Discussion
Given the performance of this technology and high prevalence of anemia worldwide, afflicting nearly two billion people, especially young children, the elderly, and pregnant women, worldwide, this completely noninvasive technology that requires only photos obtained from smartphones has significant implications as a widely accessible screening tool for at risk populations and the general population. The ability to inexpensively diagnose anemia with a high sensitivity, completely noninvasively and without the need for any external smartphone attachments or calibration equipment represents a significant improvement over current POC anemia screening. The external equipment requirements of current existing POC anemia screening technologies represent a significant hurdle for use, as each additional piece of equipment requires a supply chain to support it. For example, even relatively low-cost color calibration cards used to normalize for different background lighting require distribution to the patient and quality control measures regarding the manufacturing process to ensure that the colors are printed precisely and accurately on each card.
In addition, while our system can be used for both anemia screening and diagnosis, it is important to contextualize the accuracy requirements of these different clinical scenarios. Though clinical diagnostic tools for anemia have strict accuracy requirements (95% LOA of ± 1.0 g dL−1), these requirements are less stringent in POC settings, where anemia screening, rather than diagnosis is crucial. Our results indicate that this smartphone app is ideally suited for screening anemia. Indeed, the accuracy we have presented (95% LOA of ±2.4 g dL−1) is comparable or better than currently available POC diagnostic tools such as the invasive Hemocue (95% LOA of ± 2.3 g dL−1), the expensive Masimo (95% LOA of ± 3.7 g dL−1), and the invasive WHO Color Scale (95% LOA of ± 3.3 g dL−1)19,25,35. Furthermore, the results of the app when individually calibrated suggest that this technology may, with further study, achieve Hgb measurement accuracy necessary for anemia diagnosis. Going forward, we will continue to increase enrollment in our individual calibration studies to confirm the high level of diagnostic accuracy that would be necessary to truly replace blood-based anemia testing. We present specific use cases highlighting the difference between anemia screening vs monitoring and diagnosis in Supplementary Figure 7.
Optimizing sensitivity is of paramount importance for a screening tool, due to the ability to correctly identify a high percentage of anemia cases even if this negatively impacts specificity. In its current form, our technology requires the user to simply obtain a fingernail image, which can then be analyzed with an on-board smartphone app that comprises our image analysis algorithm to output the Hgb level measurement or be transmitted remotely to another device (e.g., laptop, desktop computer, cloud-based server with our algorithm embedded into their systems) for remote analysis, the results of which can be immediately transmitted back to the user. After identifying subjects that may possibly be anemic, either type of system can recommend confirmatory Hgb level testing with a CBC, allowing any false positives to avoid unnecessary treatment. Given the ever-increasing rate and near ubiquity of smartphone ownership worldwide36, this noninvasive, inexpensive, patient-operated Hgb measurement algorithm allows those at risk of anemia to monitor their conditions using only the native hardware included with their own smartphone2,3. This is particularly pertinent in low resource settings, where, contradictory to the relative lack of medical infrastructure, mobile phone networks are quite extensive and have leapfrogged landlines37.
Additionally, this system has the potential to fundamentally alter the management of patients with chronic anemia. During the course of several weeks, a patient may take images of their fingernail beds and enter their CBC-measured Hgb levels that were obtained as part of their regular outpatient clinical care. Results suggest that these images and Hgb levels may be used to teach the smartphone phone to develop a calibration personalized and tailored to each individual patient. In times of clinical stress, these patients, such as those with genetic causes of anemia or cancer undergoing chemotherapy, may experience rapid, life-threatening, precipitous drops in Hgb and require constant monitoring to determine their need for transfusions. Using this technology, patients could potentially self-monitor their anemia from the comfort of their own home, rather than through inconvenient and recurring clinic visits. In addition, some patients with chronic anemia due to a genetic etiology require chronic transfusions to survive. These scheduled transfusions are currently administered at convenient and regular intervals, and not based on clinical need38. Hence, a patient may be transfused too early, exposing them to unnecessary transfusion-related effects (i.e., iron overload, risk of infection), while patients transfused too late may require urgent hospitalization if they develop symptomatic anemia or their Hgb levels decrease to a dangerous level. By enabling continuous and simple monitoring, this technique may empower patients and lead to better allocation of blood bank resources. Moreover, further data collection will increase the size of the patient image pool, facilitating the incorporation of deep machine learning Big Data techniques to further refine the Hgb measurement algorithm39.
Furthermore, this CBC-validated, smartphone image-based smartphone app for measuring Hgb has the potential to dramatically improve upon the accuracy, cost, and convenience of current Hgb measurement devices while also eliminating the need for anything other than a smartphone, representing a significant improvement over other POC Hgb measurement technologies7,8,20,21,40. With this smartphone image-based Hgb measurement system, any person—healthy or ill—in any location, at any time, now has access to an important health metric and may seek care accordingly. Moreover, healthcare officials in low resource settings may use this technology to inform allocation of limited healthcare resources (e.g., transfusions, high-risk obstetrical services) and medications (e.g., nutritional supplementation such as iron, folate, or vitamin B12)41 for the patients with the most severe anemia. This completely noninvasive, algorithm-based approach represents a paradigm shift in the way anemia can be screened, diagnosed, and monitored globally. As the system requires no reagents or equipment, the healthcare cost savings could also be significant.
Overall, the ability to conduct self-testing using an unmodified smartphone presents significant advantages over previously reported technologies which require additional equipment such as calibration cards and light-blocking rigs. Moreover, the app utilizes metadata that is automatically obtained from the smartphone camera which enables normalization of background lighting conditions. This presents significant conceptual advantages over existing Hgb measurement technologies, as Hgb levels can now be measured by a patient without requiring a clinic visit or any cumbersome external equipment.
This system suffers from the potential to be impacted by diseases which cause nailbed discolorations such as jaundice and cyanosis42,43. However, it is important to point out that a large population of our study subjects suffered from hemolytic anemias, which can lead to jaundice. We found no correlation between disease state and Hgb measurement error, indicating that jaundice is unlikely to impact Hgb measurement (Fig. 4). Furthermore, the image analysis algorithm can potentially be trained in future studies on populations with these disorders to take these discolorations into account. We would also argue that suffering from cardiovascular dysfunction sufficient to cause cyanosis, is a significant enough health problem to render anemia diagnosis a secondary concern, thus obviating the need for these patients to use this app under those circumstances. While these conditions may present challenges in Hgb measurement, they present a promising opportunity to use the app to screen for such diseases.
The primary limitations in this study were derived from the use of a single smartphone model and test administrator. Going forward, the potential for user error as well as inter/intra-smartphone variability leading to Hgb measurement error will be addressed in the form of a full clinical assessment, and we will also investigate the efficacy of the smartphone image-based algorithm in which patients will use this app as a self-test using multiple models and manufacturers of smartphones. This study will also evaluate and improve upon our quality control measures. Overall, the ability to conduct rapid on-demand self-testing demonstrates the versatility of the system and could be especially conducive for global heath applications, where remote diagnosis coupled with tight quality control measures may be preferred and enabled by increasing smartphone use and mobile network prevalence in low resource settings36. This approach will shift the anemia screening paradigm worldwide by empowering patients to test themselves from the comfort of their own homes, wherever and whenever they desire.
Methods
Clinical assessment of app
A clinical assessment was conducted at Children’s Healthcare of Atlanta, Emory University of School of Medicine, and Georgia Institute of Technology to relate fingernail bed color to Hgb levels. Patients with various anemia etiologies scheduled to have their Hgb levels measured via a CBC as part of their clinical care were recruited to this study (n = 265). Subjects were excluded by quality control measures if their images showed fingernail beds that were obscured or discolored due to leukonychia, nailbed injury, nail polish, darkening due to medication44, etc. Exclusions were conducted to eliminate unnecessary variables that could obfuscate algorithm development. All CBC’s were conducted using blood samples collected via venous blood draw. After patient’s blood was collected to conduct their CBCs, two images were taken of those patients’ fingernail beds. Smartphone pictures were obtained with the camera flash both on and off. All images were taken with an Apple iPhone 5s (Apple, Cupertino, CA) using all default imaging settings. Prior to imaging, the auto-focus and brightness adjustment of the smartphone camera was activated by tapping the screen in order to focus on the nailbed. To ensure consistent images, each image was taken with the smartphone at a distance of ~0.5 m from the subjects’ fingernail beds. If possible, subjects were encouraged to curl their fingers inwards with their palms facing upwards to control for possible alterations in blood flow caused by hand and finger positioning that could potentially affect the underlying color of the fingernail beds (Fig. 1). Images were taken in clinic examination rooms, where lighting conditions and room illuminants were relatively consistent. A digital light meter (Hisgadget, Union City, CA) was placed next to the subject’s fingernail beds to further ensure consistent background lighting conditions, but external digital light meter readings were not incorporated into the Hgb level calculation. An additional 72 healthy subjects from Emory University and The Georgia Institute of Technology were tested using an identical protocol. CBC’s were conducted on each subject prior to imaging and were analyzed via the same clinical hematology analyzer (Advia 2120i, Siemens, Berlin, Germany) used in the clinical study. All imaging was conducted in a room with similar lighting conditions to the clinic exam rooms, which was confirmed via digital light meter. Fingernail bed images and blood Hgb levels were analyzed in a total of 337 subjects. These subjects’ blood Hgb levels ranged between 5.9 and 16.8 g dL−1 (Supplementary Figure 8A). Subject’s ages ranged between 1 and 60 years old and had varying skin tones (Supplementary Figure 8B). 167 female subjects and 170 male subjects were enrolled in this study. In six cases, fingernail polish was discovered after informed consent had been obtained, and these subjects were excluded from testing after study enrollment. In one case, an image labeled as having been taken with the camera flash on was discovered to have been taken with the flash off, resulting in this subject’s data being excluded.
Algorithm development/image processing
Smartphone images were transferred or transmitted from the smartphone used in the study to a computer. Fingernail data, skin color data, and image metadata were extracted from fingernail bed smartphone images via MATLAB (Mathworks, Natick, MA). Regions of interest, from which fingernail and skin color data were extracted, were manually selected to ensure that fingernail irregularities were excluded from analysis. These regions of interest were selected from each finger, excluding the thumb, and were 900 pixels2, corresponding to ~10 mm2 on the fingernail. Color data were extracted from each region and averaged together across fingers for each subject. This was shown to be an acceptable method due to the low color variability between different fingers (Supplementary Figure 9). An algorithm was then written in MATLAB utilizing robust multi-linear regression with a bisquare weighting algorithm to relate the image parameter data to CBC Hgb levels for each patient (Eq. (1))45.
where: C = constant, W = weights determined via robust multi linear regression, and P = skin color data, and image metadata parameters.
A uniform bias adjustment factor was also added to address the inherent variability in fingernail measurement. Two distinct use models and algorithms were applied for this Hgb measurement method: (1) as a noninvasive, smartphone-based, quantitative Hgb level diagnostic requiring calibration with CBC Hgb levels that enables chronic anemia patients to self-monitor their Hgb levels, and (2) as a noninvasive, smartphone-based anemia screening test that does not require calibration with CBC Hgb levels. Sampling strategies were used to generate the algorithm depending on the specific application.
Anemia screening among the general population: To develop the algorithm as a tool to screen for anemia, the entire study population (337 subjects) was randomly split into a discovery group (237 subjects) and a testing group (100 subjects). The discovery group was used to establish the relationship between image parameters and Hgb levels via robust multi-linear regression, much like the calibration phase of the personalized calibration study. A testing group, analogous to the testing phase of the personalized calibration study, of 100 subjects was used to validate the resultant algorithm. Validation was performed by applying the smartphone algorithm to each testing image and comparing the algorithm generated Hgb result with the CBC Hgb result (i.e., determining the residual of the algorithm-based method). This process was repeated 1000 times with different, randomly-selected without replacement, discovery/testing groups to minimize residual error, thereby optimizing the parameters of the algorithm for anemia screening. Resulting data from most accurate outcome of this optimized screening algorithm is depicted in Fig. 2. Hgb measurements taken from the previously described personalized calibration study were not included in this anemia screening study.
Personalized calibration of Smartphone App: A personalized calibration approach was tested in two β-thalassemia major patients with chronic anemia currently undergoing chronic transfusion therapy, a healthy female subject with Hgb levels that fluctuated during her menstrual cycle, and a healthy male subject with consistent Hgb levels over an identical timeframe to assess the algorithm’s capability to be accurately personalized and calibrated to that individual, regardless of their diagnosis or Hgb levels. Treatment for β-thalassemia major currently comprises red blood cell transfusions to compensate for the patients’ ineffective erythropoiesis46. Hgb levels in the chronic anemia patients fall throughout a 4-week transfusion cycle, which was chosen as an appropriate time interval for this study. Smartphone Images were obtained with and without the camera flash. Prior to each imaging session, CBC Hgb levels were obtained from each subject via venipuncture. Color data and phone metadata were compiled and a relationship between image data and CBC Hgb levels was established via robust multi-linear regression. This process was repeated for each individual using data from the 4 weeks of images to create a unique calibration curve personalized for that individual. Image parameter changes associated with Hgb level fluctuations specific to each person were related to perform algorithm calibration specific to each subject, thus improving the accuracy of Hgb level estimation. After the smartphone image analysis system was calibrated for each subject, Hgb levels were measured weekly over the next 4 weeks using the newly personalized algorithm. These Hgb level measurements were then compared to the CBC Hgb levels obtained at the same time to assess accuracy. This personalized calibration occurred over a total of 8 weeks.
Hemoglobin measurement from images of fingernails
Images were taken of 50 subjects fingernails from the previously described clinical study. These subjects’ ages ranged from 1 to 62 years old. Hematologists (M.D. physicians who specialize in clinical hematology and are trained and Board Certified in the USA) were instructed to analyze each image and measure Hgb levels. For comparison, images were loaded into the app, and the Hgb measurement protocol was performed on these images. All images and analysis were taken using an iPhone 5S. It is important to note that these images were not used in the development of the underlying image analysis algorithm.
Intraclass correlation coefficient (ICC) reflects not only degree of correlation but also agreement between measurements and ranges between 0 and 1, with values closer to 1 representing stronger reliability. Reliability refers to the degree of agreement among raters. It gives a score of how much homogeneity, or consensus, there is in the ratings given by different judges or instruments. The ICC is able to incorporate the reliability of more than 2 raters-as in the case of the 5 hematologists evaluating nail beds. Patients and the physicians were assumed to be random samples from the respective populations they represent.
App development
The Hgb level measurement algorithm was incorporated into mobile apps. The open source integrated development environment (IDE) Android Studio (Google, Mountain View, CA) was used to develop a beta version of the Hgb measurement app in the Android operating system. The proprietary IDE Xcode (Apple, Cupertino, CA) was used to develop a beta version of the app in the iOS operating system.
Human subjects research statement
All experiments complied with all relevant ethical guidelines for human subject research, namely, the Declaration of Helsinki. Verbal assent and written consent were obtained from all study subjects and their parents (age permitting) in accordance with HIPAA regulations prior to partaking in the study. All experiments involving human subjects in this manuscript were approved by either the Emory University IRB (algorithm development—approval number 00081226) or the Georgia Institute of Technology IRB (skin temperature and heart rate interference—approval number H17118).
Statistical analysis
Statistical significance (p < 0.05) was determined via two-tailed Student’s t-test assuming unequal variance. All statistical tests (calculation of regression correlation coefficients and Student’s t-tests were conducted using Origin Pro 2017 student version. 95% confidence intervals for sensitivity and specificity are calculated according to the efficient-score method. A two-way random effects model was used to estimate our ICC for measuring agreement between the app and hematologists at measuring Hgb levels based on physical examination.
Code availability
The custom MATLAB code used in this study is available from the corresponding author upon reasonable request. This code is copyrighted by Emory University and Children’s Healthcare of Atlanta and is to be used only for educational and research purposes. Any commercial use including the distribution, sale, lease, license, or other transfer of the code to a third party, is prohibited. For inquiries regarding commercial use of the code, please contact Emory University’s Office of Technology Transfer.
Electronic supplementary material
Acknowledgements
Financial support for this work was provided by a National Science Foundation Graduate Research Fellowship DGE-1650044 (to R.G.M.), a National Institutes of Health R21 (EB025646-01), and the 2017 Massachusetts General Hospital Primary Care Competition Prize. Also, this work was performed in part at the Georgia Tech Institute for Electronics and Nanotechnology, a member of the National Nanotechnology Coordinated Infrastructure, which is supported by NSF ECCS (1542174).
Author contributions
All authors collaborated to design the experiments and clinical study. R.G.M., E.A.T., W.A.L., and J.B. facilitated subject enrollment. R.G.M. performed experiments, conducted the clinical study, and analyzed the data. R.G.M. and T.L. conducted statistical analysis. R.G.M., D.R.M., E.A.T., C.C., G.C., and W.A.L. wrote the paper. All authors contributed to editing the paper.
Data availability
The de-identified datasets collected and analyzed in this study (i.e., images of fingernail beds and the surrounding skin) and any remaining data are available from the corresponding author on reasonable request.
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Electronic supplementary material
Supplementary Information accompanies this paper at 10.1038/s41467-018-07262-2.
References
- 1.Dorsey E, Topol E. State of telehealth. New Engl. J. Med. 2016;375:154–161. doi: 10.1056/NEJMra1601705. [DOI] [PubMed] [Google Scholar]
- 2.Wolf J, et al. Diagnostic inaccuracy of smartphone applications for melanoma detection. JAMA Dermatol. 2013;149:422–426. doi: 10.1001/jamadermatol.2013.2382. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Rappaport Kathryn M., McCracken Courtney C., Beniflah Jacob, Little Wendalyn K., Fletcher Daniel A., Lam Wilbur A., Shane Andi L. Assessment of a Smartphone Otoscope Device for the Diagnosis and Management of Otitis Media. Clinical Pediatrics. 2016;55(9):800–810. doi: 10.1177/0009922815593909. [DOI] [PubMed] [Google Scholar]
- 4.Maamari RN, Ausayakhun S, Margolis TP, Fletcher DA, Keenan JD. Novel telemedicine device for diagnosis of corneal abrasions and ulcers in resource-poor settings. JAMA Ophthalmol. 2014;132:894–895. doi: 10.1001/jamaophthalmol.2014.335. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Breslauer D, Maamari R, Switz N, Lam W, Fletcher D. Mobile phone based clinical microscopy for global health applications. PLoS One. 2009;4:e6320. doi: 10.1371/journal.pone.0006320. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.World Health Organization.Worldwide Prevalence of Anaemia 1993-2005: WHO Global Database on Anaemia (WHO, Geneva, 2008).
- 7.Schenck VH, Falkensson M. Evaluation of “HemoCue”, a new device for determining hemoglobin. Clin. Chem. 1986;32:526–529. [PubMed] [Google Scholar]
- 8.Tyburski E, et al. Disposable platform provides visual and color-based point-of-care anemia self-testing. J. Clin. Invest. 2014;124:4387–4394. doi: 10.1172/JCI76666. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Neufeld L, et al. Hemoglobin measured by Hemocue and a reference method in venous and capillary blood: a validation study. Salud Pública De. México. 2002;44:219–227. doi: 10.1590/S0036-36342002000300005. [DOI] [PubMed] [Google Scholar]
- 10.Karnad A, Poskitt T. The automated complete blood cell count: use of the red blood cell volume distribution width and mean platelet volume in evaluating anemia and thrombocytopenia. Arch. Intern. Med. 1985;145:1270–1272. doi: 10.1001/archinte.1985.00360070150025. [DOI] [PubMed] [Google Scholar]
- 11.McMurtry C, Noel M, Chambers C, McGrath P. Children’s fear during procedural pain: preliminary investigation of the Children’s Fear Scale. Health Psychol. 2011;30:780. doi: 10.1037/a0024817. [DOI] [PubMed] [Google Scholar]
- 12.Thaver IH, Baig L. Anaemia in children: part I. Can simple observations by primary care provider help in diagnosis? J. Pak. Med. Assoc. 1994;44:282–284. [PubMed] [Google Scholar]
- 13.Sheth T, BartsSc B, Choudhry N, Bowes M, Detsky A. The relation of conjunctival pallor to the presence of anemia. J. Gen. Intern. Med. 1997;12:102–106. doi: 10.1007/s11606-006-5004-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Chalco J, Huicho L, Alamo C, Carreazo N, Bada C. Accuracy of clinical pallor in the diagnosis of anaemia in children: a meta-analysis. BMC Pediatr. 2005;5:46. doi: 10.1186/1471-2431-5-46. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Weber MW, et al. Pallor as a clinical sign of severe anaemia in children: an investigation in the Gambia. Bull. World Health Organ. 1997;75(Suppl 1):113–118. [PMC free article] [PubMed] [Google Scholar]
- 16.Kalantri A, Karambelkar M, Joshi R, Kalantri S, Jajoo U. Accuracy and reliability of pallor for detecting anaemia: a hospital-based diagnostic accuracy study. PLoS One. 2010;5:e8545. doi: 10.1371/journal.pone.0008545. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Strobach S, Anderson S, Doll D, Ringenberg S. The value of the physical examination in the diagnosis of anemia: correlation of the physical findings and the hemoglobin concentration. Arch. Intern. Med. 1988;148:831–832. doi: 10.1001/archinte.1988.00380040071013. [DOI] [PubMed] [Google Scholar]
- 18.Lin J, Fisher D. Melanocyte biology and skin pigmentation. Nature. 2007;445:843–850. doi: 10.1038/nature05660. [DOI] [PubMed] [Google Scholar]
- 19.Moore L, et al. Evaluation of noninvasive hemoglobin measurements in trauma patients. Am. J. Surg. 2013;206:1041–1047. doi: 10.1016/j.amjsurg.2013.08.012. [DOI] [PubMed] [Google Scholar]
- 20.Wang, E. et al. HemaApp: noninvasive blood screening of hemoglobin using smartphone cameras. In ACM International Joint Conference on Pervasive and Ubiquitous Computing (UbiComp) 593–604 (ACM, 2016).
- 21.Collings S, et al. Non-invasive detection of anaemia using digital photographs of the conjunctiva. PLoS One. 2016;11:e0153286. doi: 10.1371/journal.pone.0153286. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Marn H, Critchley J. Accuracy of the WHO Haemoglobin Colour Scale for the diagnosis of anaemia in primary health care settings in low-income countries: a systematic review and meta-analysis. Lancet Glob. Health. 2016;4:e251–e265. doi: 10.1016/S2214-109X(16)00005-X. [DOI] [PubMed] [Google Scholar]
- 23.Lamhaut L, et al. Comparison of the accuracy of noninvasive hemoglobin monitoring by spectrophotometry (SpHb) and HemoCue® with automated laboratory hemoglobin measurement. Anesthesiology. 2011;115:548–554. doi: 10.1097/ALN.0b013e3182270c22. [DOI] [PubMed] [Google Scholar]
- 24.World Health Organization. Iron Deficiency Anaemia: Assessment, Prevention and Control: a Guide for Programme Managers (WHO, 2001).
- 25.Jaggernath M, et al. Diagnostic accuracy of the HemoCue Hb 301, STAT-Site MHgb and URIT-12 point-of-care hemoglobin meters in a Central Laboratory and a Community Based Clinic in Durban, South Africa. PLoS One. 2016;11:e0152184. doi: 10.1371/journal.pone.0152184. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Skelton V, et al. Evaluation of point-of-care haemoglobin measuring devices: a comparison of Radical-7TM pulse co-oximetry, HemoCue® and laboratory haemoglobin measurements in obstetric patients*. Anaesthesia. 2013;68:40–45. doi: 10.1111/anae.12039. [DOI] [PubMed] [Google Scholar]
- 27.Myles P, Cui JI. Using the Bland–Altman method to measure agreement with repeated measures. Br. J. Anaesth. 2007;99:309–311. doi: 10.1093/bja/aem214. [DOI] [PubMed] [Google Scholar]
- 28.Knutson T, et al. Evaluation of a new nonnvasive device in determining hemoglobin levels in emergency department patients. West J. Emerg. Med. 2013;14:283–286. doi: 10.5811/westjem.2011.9.6733. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Radtke H, Polat G, Kalus U, Salama A, Kiesewetter H. Hemoglobin screening in prospective blood donors: comparison of different blood samples and different quantitative methods. Transfus. Apher. Sci. 2005;33:31–35. doi: 10.1016/j.transci.2004.11.004. [DOI] [PubMed] [Google Scholar]
- 30.Bland JM, Altman DG. Regression analysis. Lancet. 1986;327:908–909. doi: 10.1016/S0140-6736(86)91008-1. [DOI] [PubMed] [Google Scholar]
- 31.Centers for Disease Control and Prevention (CDC) (2) Centers for MedicareMedicaid Services (CMS), HHS Medicare, Medicaid, and CLIA programs; laboratory requirements relating to quality systems and certain personnel qualifications. Final rule. Fed. Regist. 2003;68:3639–3714. [PubMed] [Google Scholar]
- 32.Braun R, et al. Diagnosis and management of nail pigmentations. J. Am. Acad. Dermatol. 2007;56:835–847. doi: 10.1016/j.jaad.2006.12.021. [DOI] [PubMed] [Google Scholar]
- 33.Perrin C, Michiels J, Pisani A, Ortonne J. Anatomic distribution of melanocytes in normal nail unit: an immunohistochemical investigation. Am. J. Dermatopathol. 1997;19:462–467. doi: 10.1097/00000372-199710000-00005. [DOI] [PubMed] [Google Scholar]
- 34.Takiwaki. Measurement of skin color: practical application and theoretical considerations. J. Med. Investig. 1998;44:121–126. [PubMed] [Google Scholar]
- 35.Paddle, J. J. Evaluation of the Haemoglobin Colour Scale and comparison with the HemoCue haemoglobin assay. Bull. World Health Organ. 80, 813-816 (2002). [PMC free article] [PubMed]
- 36.GSMA. The Mobile Economy (2016).
- 37.Watson, R. T. Africa’s contributions to information systems. Afr. J. Inf. Syst.5, 126-130 (2013).
- 38.Murphy MF, et al. Guidelines for the clinical use of red cell transfusions. Br. J. Haematol. 2001;113:24–31. doi: 10.1046/j.1365-2141.2001.02821-2.x. [DOI] [PubMed] [Google Scholar]
- 39.Esteva A, et al. Dermatologist-level classification of skin cancer with deep neural networks. Nature. 2017;542:115–118. doi: 10.1038/nature21056. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40.Suner S, Crawford G, McMurdy J, Jay G. Non-invasive determination of hemoglobin by digital photography of palpebral conjunctiva. J. Emerg. Med. 2007;33:105–111. doi: 10.1016/j.jemermed.2007.02.011. [DOI] [PubMed] [Google Scholar]
- 41.Armstrong GR, Dewey CE, Summerlee A. Iron release from the Lucky Iron FishTM: safety considerations. Asia. Pac. J. Clin. Nutr. 2017;26:148–155. doi: 10.6133/apjcn.102015.14. [DOI] [PubMed] [Google Scholar]
- 42.Subcommittee on Hyperbilirubinemia. Management of hyperbilirubinemia in the newborn infant 35 or more weeks of gestation. Pediatrics114, 297–316 (2004). [DOI] [PubMed]
- 43.McGrath J, Datir S, O’Brien F. Why so blue? A case of neonatal cyanosis due to congenital methaemoglobinaemia (HbM Iwate) BMJ Case Rep. 2016;2016:bcr2016216805. doi: 10.1136/bcr-2016-216805. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.Hernández-Martín A, Ros-Forteza S, de Unamuno P. Longitudinal, transverse, and diffuse nail hyperpigmentation induced by hydroxyurea. J. Am. Acad. Dermatol. 1999;41:333–334. doi: 10.1016/S0190-9622(99)70379-8. [DOI] [PubMed] [Google Scholar]
- 45.Cleveland William S. Robust Locally Weighted Regression and Smoothing Scatterplots. Journal of the American Statistical Association. 1979;74(368):829–836. doi: 10.1080/01621459.1979.10481038. [DOI] [Google Scholar]
- 46.Galanello R, Origa R. Beta-thalassemia. Orphanet. J. Rare. Dis. 2010;5:1–15. doi: 10.1186/1750-1172-5-11. [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
The de-identified datasets collected and analyzed in this study (i.e., images of fingernail beds and the surrounding skin) and any remaining data are available from the corresponding author on reasonable request.