Specular Re ectance Suppression in Endoscopic Imagery via ... · ing, minimally invasive surgery 1...

8
Specular Reflectance Suppression in Endoscopic Imagery via Stochastic Bayesian Estimation Brendan Chwyl, Audrey G. Chung, Alexander Wong, and David A. Clausi University of Waterloo, Waterloo ON N2L3G1, Canada, {bchwyl,agchung,a28wong,dclausi}@uwaterloo.ca, WWW home page: http://vip.uwaterloo.ca/ ? Abstract. A novel stochastic Bayesian estimation method is introduced for the purpose of suppressing specular reflectance in endoscopic imagery, benefiting both computer aided and manual analysis of endoscopic data. The maximum diffuse chromaticity, which is necessary for the calculation of the specular reflectance, is estimated via Bayesian least-squares mini- mization, with the posterior probability of maximum diffuse chromaticity given maximum chromaticity constructed via an adaptive Monte Carlo sampling approach. Experimental results using a set of clinical endo- scopic imagery showed that the proposed method resulted in lower co- efficient of variation values when compared to existing methods in ho- mogeneous regions contaminated by strong specular highlights, which is indicative of improved specular reflectance suppression. These findings are further reinforced by visual assessment of the specular suppressed endoscopic imagery produced by the proposed method. Keywords: endoscopy, specular reflectance suppression, image process- ing, minimally invasive surgery 1 Introduction Minimally invasive surgery has recently become more widely used in place of classic surgical techniques, with benefits including smaller incision wounds or avoidance of incision wounds entirely, less post-operative pain, faster recovery times, and reduced visible scarring [6]. Minimally invasive surgery is often guided by imagery collected via an endoscope, a flexible tube with a light source and a camera attached at the tip, which is displayed to a surgeon. Both computer-aided analysis and manual review of endoscopic imagery is beneficial for accurate diagnosis, surgical planning, and surgical assistance. Com- puterized processing of endoscopic imagery is useful in numerous applications including automated annotation and feature extraction [3], automated classifica- tion [4, 17], assisted endoscope guidance [7, 13], and computer-aided comparison between endoscopic imagery and imaging data obtained through an alternate modality [8,10]. However, image analysis algorithms for endoscopic imagery are often hindered by the presence of strong specular highlights caused by the spec- ular reflectivity of mucous membranes within the human body. Such effects can ? We would like to thank the Natural Sciences and Engineering Research Council of Canada (NSERC), the Canada Research Chairs Program, and the Ontario Ministry of Research and Innovation for their sponsorship of this research.

Transcript of Specular Re ectance Suppression in Endoscopic Imagery via ... · ing, minimally invasive surgery 1...

Page 1: Specular Re ectance Suppression in Endoscopic Imagery via ... · ing, minimally invasive surgery 1 Introduction Minimally invasive surgery has recently become more widely used in

Specular Reflectance Suppression in EndoscopicImagery via Stochastic Bayesian Estimation

Brendan Chwyl, Audrey G. Chung, Alexander Wong, and David A. Clausi

University of Waterloo, Waterloo ON N2L3G1, Canada,{bchwyl,agchung,a28wong,dclausi}@uwaterloo.ca,

WWW home page: http://vip.uwaterloo.ca/ ?

Abstract. A novel stochastic Bayesian estimation method is introducedfor the purpose of suppressing specular reflectance in endoscopic imagery,benefiting both computer aided and manual analysis of endoscopic data.The maximum diffuse chromaticity, which is necessary for the calculationof the specular reflectance, is estimated via Bayesian least-squares mini-mization, with the posterior probability of maximum diffuse chromaticitygiven maximum chromaticity constructed via an adaptive Monte Carlosampling approach. Experimental results using a set of clinical endo-scopic imagery showed that the proposed method resulted in lower co-efficient of variation values when compared to existing methods in ho-mogeneous regions contaminated by strong specular highlights, which isindicative of improved specular reflectance suppression. These findingsare further reinforced by visual assessment of the specular suppressedendoscopic imagery produced by the proposed method.

Keywords: endoscopy, specular reflectance suppression, image process-ing, minimally invasive surgery

1 Introduction

Minimally invasive surgery has recently become more widely used in place ofclassic surgical techniques, with benefits including smaller incision wounds oravoidance of incision wounds entirely, less post-operative pain, faster recoverytimes, and reduced visible scarring [6]. Minimally invasive surgery is often guidedby imagery collected via an endoscope, a flexible tube with a light source and acamera attached at the tip, which is displayed to a surgeon.

Both computer-aided analysis and manual review of endoscopic imagery isbeneficial for accurate diagnosis, surgical planning, and surgical assistance. Com-puterized processing of endoscopic imagery is useful in numerous applicationsincluding automated annotation and feature extraction [3], automated classifica-tion [4,17], assisted endoscope guidance [7,13], and computer-aided comparisonbetween endoscopic imagery and imaging data obtained through an alternatemodality [8,10]. However, image analysis algorithms for endoscopic imagery areoften hindered by the presence of strong specular highlights caused by the spec-ular reflectivity of mucous membranes within the human body. Such effects can

? We would like to thank the Natural Sciences and Engineering Research Council ofCanada (NSERC), the Canada Research Chairs Program, and the Ontario Ministryof Research and Innovation for their sponsorship of this research.

Page 2: Specular Re ectance Suppression in Endoscopic Imagery via ... · ing, minimally invasive surgery 1 Introduction Minimally invasive surgery has recently become more widely used in

2

be seen in Fig. 1, in which specific examples of strong specular highlights havebeen circled. Furthermore, in a double-blind study conducted by Vogt et al. [16]in which physicians were asked to choose between two of the same endoscopicimages, one with suppressed specular reflectance and the other unprocessed, itwas concluded that physicians preferred to view endoscopy imagery in whichspecular reflectance has been suppressed. Hence, methods for suppressing strongspecular reflectance in endoscopic imagery are highly desired.

(a) Gastric Fundus (b) Proximal Esopha-gus

(c) Gastric Cardia (d) Gastric Fundus

Fig. 1: Examples of specular highlights in endoscopic imagery [2]. Regions of highspecular content are circled.

Oh et al. [11] proposed a method for detecting specular highlights in en-doscopy imagery via thresholds on the saturation and value channels in theHSV colour space, as well as on segmented regions of similar texture and colour.However, the threshold values were inflexible and required calibration, and thesegmentation algorithm was computationally expensive. Arnold et al. [1] usedadaptive colour channel thresholds to identify a set of potentially specular pix-els, and refined the set via thresholds based on an estimated non-specular colourimage for each channel obtained through median filtering. While this has beenshown to run faster than [11], the need for manually defined parameters decreasesthe robustness and reliability of this algorithm in a wide variety of applications.

Tan and Ikeuchi [14] proposed a method for separating the specular and dif-fuse components of an image by estimating an initial specular-free image anditeratively correcting it to produce a diffuse (specular free) image. This methodeliminates the need for thresholds or colour segmentation, but was shown tobe very computationally expensive. Yang et al. [19] demonstrated an improvedmethod for decoupling the specular and diffuse components of an image whichis capable at operating at speeds suitable for real-time applications, and yieldsmore accurate results than [14]. Bilateral filters are used to estimate the maxi-mum diffuse chromaticity which, based on work by Tan et al. [15] and Shafer’sdichromatic reflectance model [12], can be used to estimate the specular-freediffuse image. While this method resulted in real-time capabilities and improvedsuppression performance, the use of bilateral filters enforces piecewise smoothreflectance assumptions that may not be well suited for drastic reflectance vari-ations such as those seen in endoscopy imagery. In this work, we propose a novelstochastic Bayesian estimation approach to specular reflectance suppression in

Page 3: Specular Re ectance Suppression in Endoscopic Imagery via ... · ing, minimally invasive surgery 1 Introduction Minimally invasive surgery has recently become more widely used in

3

endoscopic imagery that extends upon the work of Tan et al. [15] to better handlesuch drastic reflectance variations.

2 Methodology

The proposed method aims to decouple the specular and diffuse components ofendoscopic imagery in order to suppress specular reflectance. Building upon workdone by Tan et al. [14], a stochastic Bayesian estimation approach is introducedto estimate the specular component of endoscopic imagery. Such an approachis better suited for drastic reflectance changes by better use of the underlyingimage statistics. An overview of the proposed method is shown in Fig. 2.

Adaptive

Monte

Carlo

Sampling

Original ΛmaxSpecular Component Specular Suppressed

P (Λmax|σmax)

Bayesian

Mini-

mization

Calculate

JS

Calculate

JD

Fig. 2: Overview of the proposed method for specular reflectance suppression inendoscopic imagery

2.1 Dichromatic Reflection Model

The reflection model used throughout this formulation (Eq. 1) assumes an RGBvideo endoscope. Based upon Shafer’s dichromatic reflection model [12], thelight reflected from an object, J , is comprised of two components; the diffusereflection, JD, and the specular reflection, JS :

J = JD + JS . (1)

Furthermore, let chromaticity, σc, diffuse chromaticity, Λc, and specular chro-maticity, Γc, be defined as

σc =Jc

Jr + Jg + Jb, Λc =

JDcJDr + JDg + JDb

, Γc =JSc

JSr + JSg + JSb(2)

where c ∈ {r, g, b}, the colour channels captured by an RGB endoscope.

2.2 Specular Reflection Estimation

It was shown by Tan et al. [15] that given the estimated illumination chromatic-ity, the specular colour component of each reflected light can be normalized suchthat JSr = JSg = JSb = JS and Γr = Γg = Γb = 1

3 . The diffuse reflection can thenbe calculated as:

JDc = Jc − JS . (3)

Page 4: Specular Re ectance Suppression in Endoscopic Imagery via ... · ing, minimally invasive surgery 1 Introduction Minimally invasive surgery has recently become more widely used in

4

In addition, Tan and Ikeuchi [14] have shown that JS can be calculated as afunction of the maximum diffuse chromaticity (Λmax) where,

Λmax = max(Λr, Λg, Λb) (4)

and

JS =max(Jr, Jg, Jb)− (Jr + Jg + Jb)Λmax

1− 3Λmax. (5)

2.3 Stochastic Bayesian Estimation of Λmax

Given Eq. 5, it can be seen that a reliable estimate of the maximum diffusechromaticity Λmax is critical in the calculation of the specular reflectance JS .Here, we formulate the problem of obtaining the maximum diffuse chromaticity,denoted by Λmax, as a Bayesian least-squares minimization problem, which canbe formulated as follows:

Λmax = arg minΛmax

(E((Λmax − Λmax)2|σmax))) (6)

where σmax is formulated as:

σmax = max(σr, σg, σb). (7)

By the same approach as Lui et al. [9], the solution of Eq. 6 can be written as:

Λmax =

∫P (Λmax|σmax)ΛmaxdΛmax, (8)

where P (Λmax|σmax) denotes the posterior probability. Since the posterior prob-ability P (Λmax|σmax) is unknown and difficult to obtain analytically, we employan adaptive Monte Carlo sampling approach to obtain a reliable estimate basedon inherent image statistics [5, 18]. In such an approach, for each pixel, xc, inimage space Φ, a set of pixels q1, q2, ..., qN , are sampled stochastically from Φbased on an acceptance probability relating qi and xc [18], where qi refers to theith sampled pixel. The acceptance probability, α(qk|xc), is calculated as

α(qk|xc) = exp

(σ1 −

1

N

N∑i=1

(ℵqk(i)− ℵxc(i))2

), (9)

where σ1 is a constant and ℵqk and ℵxcrepresent regions of equal size surrounding

qk and xc respectively. The set of sampled pixels are used to construct a weightedhistogram estimate of P (Λmax|σmax), where the weight of each sampled pixel’scontribution, wk, to the estimate of P (Λmax|σmax) is determined by [18] as

wk = exp

(−

1N

∑Ni=1(ℵqk(i)− ℵxc

(i))2

σ2

)(10)

where σ2 is a constant.

Page 5: Specular Re ectance Suppression in Endoscopic Imagery via ... · ing, minimally invasive surgery 1 Introduction Minimally invasive surgery has recently become more widely used in

5

3 Experimental Setup

3.1 Phantom Data Experiment

To validate the effectiveness of the proposed method in general, a simulatedphantom model was created. Glossy texture and a simulated light source werethen applied to produce the effect of specular highlights. In order to obtainground truth data, the same object was given a matte texture as to removethe effect of specular highlights. The model’s shape is that of a twisted tubewith a ridged inner surface to replicate similar reflective qualities as those seenin endoscopy images. The phantom model and ground truth can be seen inFig. 3. To evaluate the success of the proposed method, the peak signal to noiseratio (PSNR) of the simulated ground truth and the post-processed image werecompared.

(a) Specular Phantom Model (b) Diffuse Phantom Model

Fig. 3: Specular and diffuse phantom models where the diffuse phantom modelacts as ground truth for experiments run on this data set.

3.2 Endoscopy Data Experiment

To validate the performance of the proposed method on endoscopic imagery, anexperiment was conducted using thirty endoscopy data sets obtained from theClinical Outcomes Research Initiative [2]. The resolution of each data set rangesfrom 183×190 to 530×460 pixels and each was captured with an RGB endoscope.Since no ground truth exists for these data sets, the coefficient of variation (COV)was used to quantitatively evaluate the effectiveness of the proposed algorithm.The COV was calculated over a set of selected regions (as shown in Fig. 5)with largely homogeneous tissue characteristics that have been contaminated bystrong specular reflectance. The COV of a region, X, was calculated as follows:

COV =σXµX

(11)

where σX and µX represent the standard deviation and mean of the region, X,respectively. COV provides a good indication of intensity homogeneity within aregion, and offers a consistent comparison of variation across all data sets. Sincestandard deviations in the selected largely homogeneous regions should be low,a smaller COV is desirable and indicative of specular reflectance suppressionperformance. For comparison, the method proposed by Yang et al. [19] wasevaluated as it represents state-of-the-art in specular reflectance suppression. In

Page 6: Specular Re ectance Suppression in Endoscopic Imagery via ... · ing, minimally invasive surgery 1 Introduction Minimally invasive surgery has recently become more widely used in

6

addition, values of σ1 = 0.272 and σ2 = 0.0172 were used throughout as theywere empirically determined to produce strong results.

4 Experimental Results

4.1 Phantom Data Experiment

The results produced by both Yang et al. [19] and the proposed method whenapplied to the phantom dataset are shown along with the ground truth andspecular phantom images in Fig. 4. In addition, PSNR values are indicatedbeneath each figure where applicable. For the PSNR metric, larger values aredesirable as this indicates a lower contribution from noise to the overall signal. Byvisual inspection, it is clear that both methods perform well to suppress specularhighlights, however, PSNR values indicate slight improvements by the proposedmethod. This can likely be attributed to presence of discontinuous geometry andthe ability of the proposed method to handle such scenarios, whereas the methodproposed by Yang et al. [19] assumes piece-wise smooth geometry.

(a) Phantom Data (b) Ground Truth (c) Yang [19]PSNR = 70.63 dB

(d) ProposedPSNR = 72.13 dB

Fig. 4: Results from performing specular highlight suppression on the phantomdataset. PSNR values are also shown, with the most desirable PSNR value in-dicated in boldface.

4.2 Endoscopy Data Experiment

The COV results computed for the thirty endoscopic data sets are tabulated inTable 1. Both of the tested methods resulted in a lower COV than the originalendoscopic imagery, indicating that both methods provided specular reflectancesuppression. However, the proposed method, on average, produced COV valueslower than those produced by [19]. A T-test between the two COV distributionsproduced a P-value of less than 10% (0.094), indicating statistical significance.This signifies that within the selected regions, the specular suppressed imageryproduced by the proposed method are more homogeneous than those producedby [19] and could be indicative of improved specular reflectance suppressionperformance. While COV is one way of offering a quantitative comparison, thisdoes not necessarily reflect the benefit to clinicians when visually assessing thespecular suppressed endoscopic imagery. As such, a visual comparison for fourof the endoscopic data sets is shown in Fig. 5, along with the regions used forthe COV calculation. While both methods are effective at suppressing strongspecular reflectance in all data sets, the specular suppressed endoscopic imageryproduced by the proposed method exhibits fewer artifacts, which is importantfor both visualization and endoscopic image analysis.

Page 7: Specular Re ectance Suppression in Endoscopic Imagery via ... · ing, minimally invasive surgery 1 Introduction Minimally invasive surgery has recently become more widely used in

7

Table 1: Tabulated COV calculated over thirty endoscopic data sets. Lower COVindicate better performance. The average and standard deviation across the COVfor each method are also displayed. The best results are highlighted in boldface.

Test Original [19] Proposed Test Original [19] Proposed

1 0.0815 0.0251 0.0209 17 0.1415 0.0441 0.04352 0.1144 0.0275 0.0262 18 0.2660 0.0485 0.03523 0.1124 0.0417 0.0293 19 0.1429 0.0412 0.05094 0.1688 0.0329 0.0266 20 0.0984 0.0232 0.02665 0.1671 0.0526 0.0413 21 0.0979 0.0286 0.02066 0.1136 0.0408 0.0320 22 0.0376 0.0262 0.01327 0.0848 0.0280 0.0320 23 0.3211 0.0519 0.03358 0.1123 0.0304 0.0320 24 0.2029 0.0441 0.03579 0.1224 0.0458 0.0426 25 0.0779 0.0291 0.025310 0.2273 0.0389 0.0316 26 0.0680 0.0385 0.040911 0.0768 0.0406 0.0337 27 0.1253 0.0208 0.018912 0.0671 0.0334 0.0234 28 0.0703 0.0307 0.025013 0.1470 0.0232 0.0176 29 0.0684 0.0277 0.028914 0.2347 0.0554 0.0580 30 0.1541 0.0438 0.038415 0.0889 0.0370 0.0416 AVE 0.1240 0.0362 0.031816 0.0654 0.0252 0.0205 STD 0.0525 0.0097 0.0102

5 Conclusions

A method for suppressing specular reflectance in endoscopic imagery via stochas-tic Bayesian estimation has been proposed. Experiments show that the proposedmethod achieved strong specular reflectance suppression with minimal visual ar-tifacts. Future work will include further validation with a more comprehensiveclinical study to ensure relevant medical information is unaffected by the pro-posed method.

References

1. Arnold, M., Ghosh, A., Ameling, S., Lacey, G.: Automatic segmentation and inpainting ofspecular highlights for endoscopic imaging. EURASIP Journal on Image and Video Processing2010, 1–12 (2010)

2. Esophageal and gastric varices (2014), http://digitalcollections.ohsu.edu/3. Coimbra, M.T., Cunha, J.S.: Mpeg-7 visual descriptorscontributions for automated feature ex-

traction in capsule endoscopy. Circuits and Systems for Video Technology, IEEE Transactionson 16(5), 628–637 (2006)

4. Esgiar, A., Naguib, R., Sharif, B., Bennett, M., Murray, A.: Fractal analysis in the detectionof colonic cancer images. IEEE Transactions on Information Technology in Biomedicine 6(1),54–58 (Mar 2002)

5. Hastings, W.K.: Monte Carlo sampling methods using Markov chains and their applications.Biometrika 57(1), 97–109 (1970)

6. Jaffray, B.: Minimally invasive surgery. Archives of disease in childhood 90(5), 537–42 (May2005)

7. Khan, G., Gillies, D.: Vision based navigation system for an endoscope. Image and vision com-puting 14, 763–772 (1996)

8. Liu, J., Subramanian, K., Yoo, T., Van Uitert, R.: A stable optic-flow based method fortracking colonoscopy images. In: Computer Vision and Pattern Recognition Workshops, 2008.CVPRW’08. IEEE Computer Society Conference on. pp. 1–8. IEEE (2008)

9. Lui, D., Modhafar, A., Glaister, J., Wong, A., Haider, M.a.: Monte Carlo bias field correction inendorectal diffusion imaging. IEEE transactions on bio-medical engineering 61(2), 368–80 (Feb2014)

Page 8: Specular Re ectance Suppression in Endoscopic Imagery via ... · ing, minimally invasive surgery 1 Introduction Minimally invasive surgery has recently become more widely used in

8

Fig. 5: Visual results from four of the tested endoscopic data sets. The regionsused to compute the coefficient of variation are indicated, and the correspondingcoefficient of variation is shown below each data set. Column a) contains theunprocessed image, column b) contains the results obtained by [19], and columnc) contains the results obtained by the proposed method.

10. Mori, K., Deguchi, D., Sugiyama, J., Suenaga, Y., Toriwaki, J., Maurer, C.R., Takabatake, H.,Natori, H.: Tracking of a bronchoscope using epipolar geometry analysis and intensity-basedimage registration of real and virtual endoscopic images. . . . Image Analysis 6, 321–336 (2002)

11. Oh, J., Hwang, S., Lee, J., Tavanapong, W., Wong, J., de Groen, P.C.: Informative frameclassification for endoscopy video. Medical image analysis 11(2), 110–27 (Apr 2007)

12. Shafer, S.A.: Using Color to Separate Reflection Components. Color Research & Application10(4), 210–218 (1985)

13. Song, K.T., Chen, C.J.: Autonomous and stable tracking of endoscope instrument tools withmonocular camera. 2012 IEEE/ASME International Conference on Advanced Intelligent Mecha-tronics (AIM) pp. 39–44 (Jul 2012)

14. Tan, R.T., Ikeuchi, K.: Separating reflection components of textured surfaces using a singleimage. IEEE transactions on pattern analysis and machine intelligence 27(2), 178–93 (Mar2005)

15. Tan, R.T., Nishino, K., Ikeuchi, K.: Illumination chromaticity estimation using inverse-intensitychromaticity space. In: Computer Vision and Pattern Recognition, 2003. Proceedings. 2003IEEE Computer Society Conference on. vol. 1, pp. I–673. IEEE (2003)

16. Vogt, F., Paulus, D., Heinrich, N.: Highlight Substitution in Light Fields. In: InternationalConference on Image Processing. pp. 637–640 (2002)

17. Wang, P., Krishnan, S., Kugean, C., Tjoa, M.: Classification of endoscopic images based ontexture and neural network. Proceedings of the 23rd Annual International Conference of theIEEE Engineering in Medicine and Biology Society 4, 3691–3695 (2001)

18. Wong, A., Mishra, A., Zhang, W., Fieguth, P., Clausi, D.A.: Stochastic image denoising basedon Markov-chain Monte Carlo sampling. Signal Processing 91(8), 2112–2120 (2011)

19. Yang, Q., Wang, S., Ahuja, N.: Real-time specular highlight removal using bilateral filtering.In: Computer Vision–ECCV 2010, pp. 87–100. Springer (2010)