Vous êtes sur la page 1sur 5

Research

Original Investigation

Automated Ptosis Measurements From Facial Photographs


Zachary M. Bodnar, MD; Michael Neimkin, MD; John B. Holds, MD

Supplemental content at
IMPORTANCE Measurements of the margin reflex distances 1 and 2 are crucial for the surgical jamaophthalmology.com
planning of ptosis repair and blepharoplasty. Facial photographs annotated with automated
measurements of eyelid position could provide objective, accurate, and reproducible
documentation of these features.

OBJECTIVES To describe a software algorithm for determining the margin reflex distances 1
and 2 from facial photographs and to evaluate its agreement with manual measurements of
the margin reflex distances 1 and 2.

DESIGN, SETTING, AND PARTICIPANTS Observational study at a single-surgeon oculoplastic


private practice among 55 eyes of 28 adult volunteers. The study dates were July 30, 2014, to
September 12, 2014. The dates of our analysis were October 12, 2014, to June 18, 2015.

MAIN OUTCOMES AND MEASURES Agreement between manual and automated


measurements of the margin reflex distances 1 and 2.

RESULTS Among 55 eyes of 28 participants, automated margin reflex distance 1


measurements were strongly correlated with manual measurements (r = 0.97; 95% CI,
r = 0.95 to r = 0.98; P < .001). The bias of automated margin reflex distance 1 measurements
was 0.03 mm (95% CI, −0.06 to 0.12 mm), with 95% confidence limits of −0.66 and 0.71 mm.
Automated margin reflex distance 2 measurements were strongly correlated with manual
measurements (r = 0.96; 95% CI, r = 0.93 to r = 0.98; P < .001). The bias of automated
margin reflex distance 2 measurements was 0.13 mm (95% CI, 0.03-0.22 mm), with 95%
Author Affiliations: Department of
confidence limits of −0.54 and 0.80 mm.
Ophthalmology, Saint Louis
University, St Louis, Missouri (Bodnar,
CONCLUSIONS AND RELEVANCE Automated ptosis measurements produced by our Holds); Department of
software algorithm compare favorably with manually performed clinical measurements. Ophthalmology and Visual Sciences,
An automated, photography-based system could provide an archival and highly Washington University in St Louis,
St Louis, Missouri (Neimkin).
reproducible means for obtaining the margin reflex distances 1 and 2 and other facial
morphometric data. Corresponding Author: Zachary M.
Bodnar, MD, Department of
Ophthalmology, Saint Louis
JAMA Ophthalmol. 2016;134(2):146-150. doi:10.1001/jamaophthalmol.2015.4614 University, 1755 S Grand Blvd,
Published online November 25, 2015. St Louis, MO 63104
(bodnarz@slu.edu).

T
he standard clinical evaluation of ptosis includes manual surements of the MRD1 and MRD2 from a single photograph of
measurements of eyelid positions to quantify the degree a patient, obtained in the clinic with an inexpensive digital cam-
of ptosis and its effect on a patient’s vision. This value is era, could mitigate many of these difficulties.
most often expressed as the margin reflex distance 1 (MRD1), de- A software algorithm developed by one of us (Z.M.B.) can
fined by the vertical distance between the upper eyelid margin identify the corneal light reflex and eyelid margins in frontal
and the corneal light reflex, which is the specular reflection at photographs of human faces and automatically calculate the
the corneal apex from a light source that is aligned with the vi- MRD1 and MRD2. The objectives of this study were to intro-
sual axis (eg, a penlight). Similarly, the margin reflex distance 2 duce our method for computing automated ptosis measure-
(MRD2) is the vertical distance between the corneal light reflex ments from digital photographs and to compare it with stan-
and the lower eyelid margin. Another way that ptosis is com- dard manual clinical measurements.
monly quantified is to plot the area of visual field deprivation that
Software Algorithm
results from eyelid malposition by performing Goldmann perim- Our software algorithm accepts as input a single digital
etry, once with the eyelid in its natural position and again with photograph in any one of several standard file formats (JPEG,
the eyelid taped up to simulate the results of surgical correction. TIFF, etc) and an optional set of calibration matrices as follows:
Problems that limit the usefulness of these methods include
operator dependence, subjectivity, patient movement, and cog- fx 0 cx
nitive inability to participate in testing (eg, in children or cogni- C= 0 fy cy
tively impaired adults). The capability to objectively extract mea- 0 0 1

146 JAMA Ophthalmology February 2016 Volume 134, Number 2 (Reprinted) jamaophthalmology.com

Copyright 2016 American Medical Association. All rights reserved.

Downloaded From: on 10/10/2018


Automated Ptosis Measurements From Facial Photographs Original Investigation Research

and K = [k1, k2, k3, k4, k5], where fx and fy are focal lengths, cx, and
cy is the image center in pixels, and [ki] are radial distortion co- At a Glance
efficients specific to the camera used to acquire the image. These
• We designed and tested a software algorithm for determining the
matrices may be used to remove any significant distortion intro- margin reflex distances 1 and 2 (MRD1 and MRD2, respectively)
duced by the camera lens using a method previously described from facial photographs.
by Zhang.1 Our software algorithm can be used to estimate the • The software algorithm allows rapid, automatic, archival, and
matrices C and K for a particular camera. First, a set of at least 10 objective quantization of eyelid position.
checkerboard-pattern images in different orientations is acquired • Automated measurements compared favorably with standard
manual measurements, with minimal bias (0.03 mm for MRD1 and
by the camera undergoing calibration. These images are analyzed
0.13 mm for MRD2) and excellent agreement in this single-surgeon
by the software algorithm to estimate C and K using another study, although manual measurement of the MRD1 and MRD2
method developed by Zhang1 (eFigure 1 in the Supplement). should remain standard practice given the limitations of this study.
The camera calibration method is required only once per
lens and camera combination of a particular design and manu-
facture and may not be necessary for high-quality lenses that Manual measurements of the MRD1 and MRD2 in each in-
introduce little radial distortion. eFigure 2 in the Supplement dividual were obtained by us using a penlight to produce the cor-
shows the results of camera calibration and undistortion on a neal light reflex and a ruler to judge the distance. A single cam-
lens with a large amount of radial distortion. era system (camera, lens, and flash model) was used to obtain
frontal facial photographs of all study participants at the time of
Image Analysis manual measurements at a fixed focal length of 1 m, with the
The undistorted image is segmented using standard face camera positioned directly in front of the patient at eye level at
detection algorithms to first identify a region corresponding a distance of 1 m as determined by the focal plane of the camera.
to the face.2,3 A search is performed within this region to iden- At this distance, small translational and rotational variation in
tify the eyes. Facial feature edges are then detected within the camera position should have minimal effect on the corneal light
regions corresponding to the eyes using the standard edge de- reflex and eyelid measurements. These variables were chosen
tection algorithm developed by Canny.4 The corneal light re- to simulate image acquisition in a realistic clinical setting.
flex of each eye is determined by the specular reflection of the The camera was calibrated using 16 images. A marker with
camera flash and is identified by the software algorithm as the a diameter of 19.05 mm was placed on the forehead of each
area enclosed by the edge nearest to the highest-intensity pixel individual to provide a reference of scale. The images were
of the corresponding eye region. In the vertical dimension, the processed using our software algorithm, and the MRD1 and MRD2
distances from the centroid of the corneal light reflex to the measurements for each photograph were recorded. Because the
detected feature edges are reported. large distance from the optical center of the lens to the camera
To enable the software algorithm to determine the scale of flash (108.00 mm) causes some displacement in the corneal light
the image plane in millimeters per pixel, a circular marker of reflex, measurements from photographs with the flash positioned
known radius (in millimeters) is placed on the individual’s fore- above, below, to the left of, and to the right of the camera lens were
head before image capture. The marker is automatically detected, averaged for comparison with manual measurements and with
and its radius (in image pixels) is determined using another well- each other to assess the effect of the flash position. Statistical
known computer vision algorithm.5 Figure 1 shows a sample in- analyses were performed using a software package (R, version
put photograph and the software algorithm’s output, consisting 3.1.2; The R Foundation). Bland-Altman analysis was used to com-
of a re-rendering of the original photograph with the detected pare agreement between the manual measurements and the au-
edges and calculated measurements overlaid. Processing one tomated photometric measurements. P < .05 was considered sta-
such photograph takes only a few seconds. tistically significant. The r values are by Pearson product moment
correlation.

Methods
This observational study was performed at a single-surgeon
Results
(J.B.H.) oculoplastic private practice. The study dates were July In total, 55 eyes of 28 volunteers 24 to 80 years old (mean age,
30, 2014, to September 12, 2014. The dates of our analysis were 57 years) were included in the study (one eye with an absent cor-
October 12, 2014, to June 18, 2015. Clinical photographs were ob- neal light reflex because of a negative MRD1 was excluded). Five
tained at 4288 × 2848 (12.3 megapixel) resolution using a com- participants (18%) were male, and 23 participants (82%) were fe-
mercially available camera system (Figure 2). The software al- male. Twenty-six participants (93%) were of white race/ethnicity,
gorithm was implemented using the Java programming language and 2 participants (7%) were African American. The manual
and an open-source computer vision library (OpenCV, version MRD1 measurements ranged from 0 to 6.00 mm (mean [SD], 2.87
2.4.6; Itseez).6 Institutional review board approval of the study [1.56] mm). The automated MRD1 measurements ranged from
was obtained from Saint Louis University. Written informed con- 0.23 to 5.64 mm (mean [SD], 2.91 [1.48] mm). The manual MRD2
sent was obtained from study participants in accord with the Dec- measurements ranged from 4.00 to 9.00 mm (mean [SD], 5.68
laration of Helsinki,7 and the study was performed with Health [1.19] mm). The automated MRD2 measurements ranged from
Insurance Portability and Accountability Act of 1996 compliance. 4.34 to 9.46 mm (mean [SD], 5.81 [1.19] mm).

jamaophthalmology.com (Reprinted) JAMA Ophthalmology February 2016 Volume 134, Number 2 147

Copyright 2016 American Medical Association. All rights reserved.

Downloaded From: on 10/10/2018


Research Original Investigation Automated Ptosis Measurements From Facial Photographs

Figure 1. Image Acquired With the Flash Positioned to the Left Figure 3. Margin Reflex Distance 1 (MRD1)
of the Camera Lens
A Scatterplot of manual vs photometric MRD1 measurements
A Sample input image
6.0

4.5

Photometric, mm
3.0

1.5

0
B Software algorithm output image
0 1.5 3.0 4.5 6.0
Manual, mm

B Bland-Altman plot of the MRD1 measurements

1.0

1.96σ = 0.71

Photometric Minus Manual, mm


0.5

μ = 0.03
The flash positioning results in lateral displacement of the corneal light reflex 0
(in this case to the patient’s right). The effect is asymmetric, with the corneal
light reflex of the left eye being more off center than that of the right eye.
The numerals in B are in millimeters.
–0.5

Figure 2. Camera Systems Used


–1.96σ = –0.66

–1.0
0 1.0 2.0 3.0 4.0 5.0 6.0
(Photometric Plus Manual)/2, mm

Photometric measurements were obtained with the software algorithm.


σ Indicates SD; μ, arithmetic mean.

correlated with manual measurements (r = 0.97; 95% CI, r = 0.95


to r = 0.98; P < .001). The bias of automated MRD1 measurements
was 0.03 mm (95% CI, −0.06 to 0.12 mm), with 95% confidence
limits of −0.66 and 0.71 mm as determined by Bland-Altman
analysis. Figure 3 shows a Bland-Altman analysis of the MRD1
results.
Automated MRD2 measurements were normally distributed
(P = .01). They were strongly correlated with manual measure-
ments (r = 0.96; 95% CI, r = 0.93 to r = 0.98; P < .001). The bias
of automated MRD2 measurements was 0.13 mm (95% CI, 0.03-
0.22 mm), with 95% confidence limits of −0.54 and 0.80 mm.
Figure 4 shows a Bland-Altman analysis of the MRD2 results.
Displacement of the corneal light reflex occurred as a result
A commercially available camera system (D90 camera body with a 60-mm of the distance between the center of the camera lens and the
f/2.8G AF-S Micro Nikkor autofocus ED lens at F16; Nikon) was used. Another
system (R1C1 wireless close-up Speedlight system for i-TTL single-lens reflex
flash. The effect is asymmetric when the flash is oriented hori-
camera; Nikon) was used for illumination. zontally, with the corneal light reflex being more off center of the
eye contralateral to the flash, as in Figure 3. This translation of
Automated MRD1 measurements were normally distributed the corneal light reflex was averaged in this study by obtaining
according to the Shapiro-Wilks test (P = .05). They were strongly clinical photographs with the flash positioned in 4 quadrants. We

148 JAMA Ophthalmology February 2016 Volume 134, Number 2 (Reprinted) jamaophthalmology.com

Copyright 2016 American Medical Association. All rights reserved.

Downloaded From: on 10/10/2018


Automated Ptosis Measurements From Facial Photographs Original Investigation Research

Figure 4. Margin Reflex Distance 2 (MRD2) Table. Effect of the Flash Position on the Measurement of MRD1 and MRD2

MRD1, mm P Value MRD2, mm P Value


A Scatterplot of manual vs photometric MRD2 measurements
Δ(Left, right) 0.23 .69 0.25 .32
10.0 Δ(Left, mean) OD -0.31 <.001 0.3 .09
OS -0.1 .23 0.2 .23
Δ(Right, mean) OD -0.3 .002 0.35 .03
7.50
OS -0.2 .23 -0.01 .02
Photometric, mm

Δ(Up, mean) -0.53 .001 0.42 .004


Δ(Down, mean) 0.86 <.001 -0.96 <.001
5.00
Abbreviations: MRD1, margin reflex distance 1; MRD2, margin reflex distance 2.

2.50
surements was 0.30 mm OD and 0.20 mm OS, with neither dif-
ference being statistically significant (P = .09 and P = .23,
0 respectively). The mean absolute difference between MRD2 mea-
0 2.25 4.50 6.75 9.00 surements with the flash in the right position and the averaged
Manual, mm measurements was +0.35 mm OD and −0.01 OS, neither of which
was statistically significant (P = .03 and P = .23, respectively).
B Bland-Altman plot of the MRD2 measurements
Vertical flash placement causes significant variation in mea-
1.0 surements. Positioning the flash superiorly underestimated the
1.96σ = 0.80
MRD1 by a mean of 0.53 mm (P = .001) and overestimated the
MRD2 by a mean of 0.43 (P = .004). The Table summarizes these
results.
Photometric Minus Manual, mm

0.5

μ = 0.13

0 Discussion
Manual measurements of the MRD1 and MRD2 are used in the
clinical evaluation of ptosis and the surgical planning of ptosis re-
–0.5 pair. In addition, these measurements, along with photographic
–1.96σ = –0.54
documentation of ptosis, are typically required by insurers to
prove medical necessity. However, interobserver variability, re-
producibility, patient movement, and poor cooperation with
4.0 5.0 6.0 7.0 8.0 9.0 10.0
testing present a challenge to current methods of preoperative
(Photometric Plus Manual)/2, mm
evaluation. In conjunction with the MRD1 and MRD2, additional
Photometric measurements were obtained with the software algorithm. considerations in aesthetic eyelid surgery include measurements
σ Indicates SD; μ, arithmetic mean. of the brow fat span and tarsal platform show, as described by
Goldberg and Lew.6 Because the relevant facial features that
compared the differences between measurements made with the define these metrics can be identified by our method of edge de-
flash in the 4 different positions with each other and the aver- tection analysis, indirect measurements of the brow fat span and
aged measurements and then evaluated these variations for sta- tarsal platform show can be obtained from our software algo-
tistical significance using a 2-tailed t test. rithm’s output.
When in a horizontal plane, the effect of the flash position was Computer-assisted analysis of facial photographs for mea-
minimal. The mean absolute difference between MRD1 measure- surement of the MRD1, MRD2, eyelid contour, and palpebral fis-
ments with the flash in the left and right positions was 0.23 mm, sure has been previously described.8-10 However, the methods
which was not statistically significant (P = .69). The mean abso- used rely on significant user and computer interaction after im-
lute difference between MRD1 measurements with the flash in age acquisition and depend on an observer to identify edges and
the left position and the averaged measurements was −0.31 mm facial features. To our knowledge, ours is the first software al-
OD and −0.10 mm OS, which was statistically significant for right gorithm capable of obtaining eyelid measurements with com-
eyes only (P < .001 and P = .23, respectively). The mean absolute pletely automated image processing.
difference between MRD1 measurements with the flash in the One key issue was displacement of the corneal light reflex by
right position and the averaged measurements was −0.30 mm OD the position of the flash relative to the lens. For data collection
and −0.20 mm OS, which was statistically significant for right eyes in this study, we chose to average readings from all 4 quadrants
only (P = .002 and P = .23, respectively). The mean absolute dif- (superior, left, right, and inferior). In clinical practice, one would
ference between MRD2 measurements with the flash in the left most likely choose to place the flash as close to the center of the
and right positions was 0.25 mm and was not statistically signifi- lens as possible or position it to the left or right of the lens for all
cant (P = .32). The mean absolute difference between MRD2 mea- photographs. In our data set, choosing only one position altered
surements with the flash in the left position and the averaged mea- the measurements by approximately 0.20 mm, which is well

jamaophthalmology.com (Reprinted) JAMA Ophthalmology February 2016 Volume 134, Number 2 149

Copyright 2016 American Medical Association. All rights reserved.

Downloaded From: on 10/10/2018


Research Original Investigation Automated Ptosis Measurements From Facial Photographs

within the margin of error for clinical practice. Therefore, a single disagreement between the software algorithm and the manual
photograph with the flash positioned in the horizontal plane measurements may simply be due to the limited precision of the
would prove adequate for routine clinical measurement. Accu- manual measurements, which is 0.50 mm.
racy could be further improved by minimizing the distance be- The participants in our study were recruited and photo-
tween the flash and the optical elements of the camera. graphed during a single routine clinic visit. Therefore, variabil-
The 95% confidence limits of our method are within 0.71 mm ity of successive measurements (manual and automated) was not
for MRD1 and 0.80 mm for MRD2, with a bias of 0.13 mm for quantified by this study but is an important factor to consider be-
MRD2 measurements. To be considered equivalent to manual fore our method could be used in clinical practice. All individu-
measurements, it would be preferable that the 95% confidence als were photographed with the head in frontal position. Addi-
limits are within 0.50 mm. One reason for disagreement may in- tional measurements from different positions may help assess
clude a difference in the reflex position secondary to displacement the degree to which variability of head position and patient move-
of the flash from the optical axis. When there is a high-contrast ment degrades the reliability of measurements using our soft-
transition from the pupil to the iris, the pupillary border can be ware algorithm. Further work is necessary to render our software
delineated by the standard edge detection algorithm used by our algorithm reliable in the routine clinical setting because lighting,
software algorithm, as shown in Figure 3. However, at this stage facial positioning, and other variables can affect the photographic
of development, pupil detection is not reliable. Therefore, we rely appearance of ptosis and the results of digital image processing.11
on the reflection of the flash as a basis for measurements. This ne- Given these limitations, we do not expect our results to change
cessity is a practical limitation of our present software algorithm clinical practice in the near future, and manual measurement of
implementation because the use of the pupil centroid in lieu of the MRD1 and MRD2 should remain the standard of care. How-
the corneal light reflex would render the analysis in the Table un- ever, we believe that we have demonstrated a proof of concept
necessary and simplify the measurements. Another limitation is for a potentially useful new approach to ptosis measurements.
that negative MRD1 and MRD2 values cannot be estimated from
a single photograph (when the corneal light reflex or pupil center
would be obscured). Manifest strabismus will also cause signifi-
cant displacement of the corneal light reflex and is an additional
Conclusions
limitation, which may be overcome in some cases by using mul- An automated, photography-based system could provide an
tiple photographs if the patient is capable of alternate fixation. archival and reproducible means for obtaining the MRD1,
Some disagreement may also result from placement of the MRD2, and other facial morphometric data while mitigating
scale marker in the plane of the forehead, which is slightly an- potential sources of error, including movement and observer
terior to the plane of the eyelids. Estimating the scale by using bias. Automated ptosis measurements produced by our soft-
white-to-white measurements of the corneal limbus from the ware algorithm compare favorably with manual clinical mea-
photographs compared with the mean corneal diameter could surements. Software algorithm–based correction of lens dis-
eliminate the need for the scale marker and might influence the tortion could make this technology available in inexpensive
bias or disagreement of the automated measurements. Finally, handheld devices, including smartphones.

ARTICLE INFORMATION REFERENCES 7. World Medical Association. World Medical


Submitted for Publication: July 6, 2015; final 1. Zhang Z. A flexible new technique for camera Association Declaration of Helsinki: ethical
revision received September 29, 2015; accepted calibration. IEEE Trans Pattern Anal Mach Intell. principles for medical research involving human
October 4, 2015. 2000;22(11):1330-1334. subjects. JAMA. 2013;310(20):2191-2194.
doi:10.1001/jama.2013.281053.
Published Online: November 25, 2015. 2. Viola P, Jones M. Rapid object detection using a
doi:10.1001/jamaophthalmol.2015.4614. boosted cascade of simple features. Published 2001. 8. Burmann TG, Valiatti FB, Correa ZM, Bayer M,
https://www.cs.cmu.edu/~efros/courses/LBMV07 Marcon Í. Margin reflex distance measured by
Author Contributions: Dr Bodnar had full access to computerized image processing in rigid contact lens
all the data in the study and takes responsibility for /Papers/viola-cvpr-01.pdf. Accessed October 9, 2015.
wearers [in Portuguese]. Braz Arch Ophthalmol.
the integrity of the data and the accuracy of the data 3. Lienhart R, Kuranov A, Pisarevsky V. Empirical 2008;71(1):34-37.
analysis. analysis of detection cascades of boosted classifiers
Study concept and design: Bodnar. for rapid object detection. Revised December 2002. 9. Cruz AA, Lucchezi MC. Quantification of
Acquisition, analysis, or interpretation of data: All http://www.multimedia-computing.de/mediawiki palpebral fissure shape in severe congenital
authors. //images/5/52/MRL-TR-May02-revised-Dec02.pdf. blepharoptosis. Ophthal Plast Reconstr Surg. 1999;
Drafting of the manuscript: Bodnar, Holds. Accessed October 8, 2015. 15(4):232-235.
Critical revision of the manuscript for important 4. Canny J. A computational approach to edge 10. Cruz AA, Coelho RP, Baccega A, Lucchezi MC,
intellectual content: All authors. detection. IEEE Trans Pattern Anal Mach Intell. Souza AD, Ruiz EE. Digital image processing
Statistical analysis: Bodnar. 1986;8(6):679-698. measurement of the upper eyelid contour in Graves
Administrative, technical, or material support: disease and congenital blepharoptosis.
Neimkin. 5. Kimme C, Ballard D, Sklansky J. Finding circles by Ophthalmology. 1998;105(5):913-918.
Study supervision: Neimkin. an array of accumulators. Published 1975.
http://dl.acm.org/citation.cfm?id=360677. Accessed 11. Flowers RS, Flowers SS. Diagnosing
Conflict of Interest Disclosures: All authors have October 9, 2015. photographic distortion: decoding true
completed and submitted the ICMJE Form for postoperative contour after eyelid surgery. Clin
Disclosure of Potential Conflicts of Interest, and 6. Goldberg RA, Lew H. Cosmetic outcome of Plast Surg. 1993;20(2):387-392.
none were reported. posterior approach ptosis surgery (an American
Ophthalmological Society thesis). Trans Am
Ophthalmol Soc. 2011;109:157-167.

150 JAMA Ophthalmology February 2016 Volume 134, Number 2 (Reprinted) jamaophthalmology.com

Copyright 2016 American Medical Association. All rights reserved.

Downloaded From: on 10/10/2018

Vous aimerez peut-être aussi