|
|
GPU accelerated electric field Monte Carlo simulation of light propagation in turbid media using a finite-size beam model |
Optics Express, Vol. 20, Issue 15, pp. 16618-16630 (2012)
http://dx.doi.org/10.1364/OE.20.016618
Acrobat PDF (5068 KB)
Abstract
An electric field Monte Carlo (EMC) simulation directly traces the complex electric field vectors in multiple scattering and estimates the electric field in a preferred direction. The full vectorial nature of EMC makes it a powerful and flexible tool to simulate the coherence and polarization phenomena of light. As a numerical method, EMC needs to launch a large number of photons to achieve an accurate result, making it time-consuming. Previously, EMC did not account for the beam size. Because of the stochastic character of the instantaneous electric field in the simulation, the convolution method alone is unsuitable for the Monte Carlo simulation of photon energy for a beam with a finite size. It is necessary to launch photons from all possible locations to simulate a finite-size beam, which results in a significant increase in the computational burden. In order to accelerate the simulation, a parallel implementation of the electric field Monte Carlo simulation based on the compute unified device architecture (CUDA) running on a graphics processing unit (GPU) is presented in this paper. Our program, which is optimized for Fermi architecture, is able to simulate the coherence phenomenon of a finite-size beam normally incident on turbid media. A maximum speedup of over 370x is achieved with a GTX480 GPU, compared with that obtained using an Intel i3-2120 CPU.
© 2012 OSA
1. Introduction
D. Huang, E. A. Swanson, C. P. Lin, J. S. Schuman, W. G. Stinson, W. Chang, M. R. Hee, T. Flotte, K. Gregory, C. A. Puliafito, and et, “Optical coherence tomography,” Science 254(5035), 1178–1181 (1991). [CrossRef] [PubMed]
R. Drezek, A. Dunn, and R. Richards-Kortum, “Light scattering from cells: finite-difference time-domain simulations and goniometric measurements,” Appl. Opt. 38(16), 3651–3661 (1999). [CrossRef] [PubMed]
L. Wang, S. L. Jacques, and L. Zheng, “MCML–Monte Carlo modeling of light transport in multi-layered tissues,” Comput. Meth. Prog. Biomed. 47(2), 131–146 (1995). [CrossRef]
S. Bartel and A. H. Hielscher, “Monte Carlo simulations of the diffuse backscattering Mueller matrix for highly scattering media,” Appl. Opt. 39(10), 1580–1588 (2000). [CrossRef] [PubMed]
M. Xu, “Electric field Monte Carlo simulation of polarized light propagation in turbid media,” Opt. Express 12(26), 6530–6539 (2004). [CrossRef] [PubMed]
S. Moon, D. Kim, and E. Sim, “Monte Carlo study of coherent diffuse photon transport in a homogeneous turbid medium: a degree-of-coherence based approach,” Appl. Opt. 47(3), 336–345 (2008). [CrossRef] [PubMed]
J. Sawicki, N. Kastor, and M. Xu, “Electric field Monte Carlo simulation of coherent backscattering of polarized light by a turbid medium containing Mie scatterers,” Opt. Express 16(8), 5728–5738 (2008). [CrossRef] [PubMed]
C. K. Hayakawa, E. O. Potma, and V. Venugopalan, “Electric field Monte Carlo simulations of focal field distributions produced by tightly focused laser beams in tissues,” Biomed. Opt. Express 2(2), 278–290 (2011). [CrossRef] [PubMed]
2. GPU-based EMC
M. Xu, “Electric field Monte Carlo simulation of polarized light propagation in turbid media,” Opt. Express 12(26), 6530–6539 (2004). [CrossRef] [PubMed]
2.1 Theory of EMC
M. Xu, “Electric field Monte Carlo simulation of polarized light propagation in turbid media,” Opt. Express 12(26), 6530–6539 (2004). [CrossRef] [PubMed]
2.2 Model of the light beam
2.3 GPU implementation
2.3.1 Calculation steps
- 1. Launch new photon packet with initialized photon direction, position, weight and parallel and perpendicular components of electric field.
- 2. Generate a random step size following a negative exponential distribution with mean length and move the photon.
- 3. If the photon is outside the slab or has been scattered more than a predetermined number of times, skip to Step 5, otherwise proceed to Step 4. The reason for this step is explained in detail in Section 2.3.4.
- 4. Calculate the absorption, and then estimate the electric field in a preferred direction. Calculate the Stokes vector according to the electric field.
- 5. All threads (even those for photons outside the medium) add the electric field and Stokes vector or Mueller matrix using atomic functions. The electric field adds coherently yielding the instantaneous field (α represents x, y or z, the instantaneous light intensity can then be determined as ). The Stokes vector adds incoherently and the average intensities are determined as , and . The (with probability density function ) follows the exponential distribution . A judgment is made based on the locations and numbers of scattering events of the photons loaded in all the threads. If the photon exits the slab or the number of scattering events is larger than a defined number, go to Step 1.
- 7. Perform survival roulette if the weight of the photon is lower than the threshold value. If the photon is dead, go to Step 1, otherwise, amplify the weight of the photon packet appropriately and go to Step 2.
2.3.2 Random number generation
E. Alerstam, W. C. Y. Lo, T. D. Han, J. Rose, S. Andersson-Engels, and L. Lilge, “Next-generation acceleration and code optimization for light transport in turbid media using GPUs,” Biomed. Opt. Express 1(2), 658–675 (2010). [CrossRef] [PubMed]
G. Marsaglia and A. Zaman, “A new class of random number generators,” Ann. Appl. Probab. 1(3), 462–480 (1991). [CrossRef]
2.3.3 Data type and precision
E. Alerstam, W. C. Y. Lo, T. D. Han, J. Rose, S. Andersson-Engels, and L. Lilge, “Next-generation acceleration and code optimization for light transport in turbid media using GPUs,” Biomed. Opt. Express 1(2), 658–675 (2010). [CrossRef] [PubMed]
2.3.4 Memory access and other optimizations
2.3.5 Running requirements
3. Validation
3.1 Speckle pattern produced by an infinitely narrow beam
3.2 Speckle pattern produced by a Gaussian beam
3.3 Mueller matrix
4. Performance
5. Discussion and conclusion
G. Sendra, H. Rabal, M. Trivi, and R. Arizaga, “Numerical model for simulation of dynamic speckle reference patterns,” Opt. Commun. 282(18), 3693–3700 (2009). [CrossRef]
D. D. Duncan and S. J. Kirkpatrick, “The copula: a tool for simulating speckle dynamics,” J. Opt. Soc. Am. A 25(1), 231–237 (2008). [CrossRef] [PubMed]
Acknowledgments
References and links
A. Ishimaru, Wave Propagation and Scattering in Random Media (Academic, New York, 1999), Vol.1. | |
J. W. Goodman, “Statistical properties of laser speckle patterns,” in Laser speckle and related phenomena, 2nd ed., J. C. Dainty, ed. (Springer-Verlag, New York, 1984), pp. 9–75. | |
J. W. Goodman, Speckle Phenomena in Optics: Theory and Applications (Roberts and Company, Englewood, Colorado, 2007). | |
D. Huang, E. A. Swanson, C. P. Lin, J. S. Schuman, W. G. Stinson, W. Chang, M. R. Hee, T. Flotte, K. Gregory, C. A. Puliafito, and et, “Optical coherence tomography,” Science 254(5035), 1178–1181 (1991). [CrossRef] [PubMed] | |
R. Drezek, A. Dunn, and R. Richards-Kortum, “Light scattering from cells: finite-difference time-domain simulations and goniometric measurements,” Appl. Opt. 38(16), 3651–3661 (1999). [CrossRef] [PubMed] | |
L. Wang, S. L. Jacques, and L. Zheng, “MCML–Monte Carlo modeling of light transport in multi-layered tissues,” Comput. Meth. Prog. Biomed. 47(2), 131–146 (1995). [CrossRef] | |
B. C. Wilson and G. Adam, “A Monte Carlo model for the absorption and flux distributions of light in tissue,” Med. Phys. 10(6), 824–830 (1983). [CrossRef] [PubMed] | |
S. Bartel and A. H. Hielscher, “Monte Carlo simulations of the diffuse backscattering Mueller matrix for highly scattering media,” Appl. Opt. 39(10), 1580–1588 (2000). [CrossRef] [PubMed] | |
M. Xu, “Electric field Monte Carlo simulation of polarized light propagation in turbid media,” Opt. Express 12(26), 6530–6539 (2004). [CrossRef] [PubMed] | |
S. Moon, D. Kim, and E. Sim, “Monte Carlo study of coherent diffuse photon transport in a homogeneous turbid medium: a degree-of-coherence based approach,” Appl. Opt. 47(3), 336–345 (2008). [CrossRef] [PubMed] | |
J. Sawicki, N. Kastor, and M. Xu, “Electric field Monte Carlo simulation of coherent backscattering of polarized light by a turbid medium containing Mie scatterers,” Opt. Express 16(8), 5728–5738 (2008). [CrossRef] [PubMed] | |
M. Xu and R. R. Alfano, “Random walk of polarized light in turbid media,” Phys. Rev. Lett. 95(21), 213901 (2005). [CrossRef] [PubMed] | |
M. Xu and R. R. Alfano, “Circular polarization memory of light,” Phys. Rev. E Stat. Nonlin. Soft Matter Phys. 72(6), 065601 (2005). [CrossRef] [PubMed] | |
K. G. Phillips, M. Xu, S. Gayen, and R. Alfano, “Time-resolved ring structure of circularly polarized beams backscattered from forward scattering media,” Opt. Express 13(20), 7954–7969 (2005). [CrossRef] [PubMed] | |
R. Liao, H. Zhu, Y. Huang, and J. Lv, “Monte Carlo modelling of OCT with finite-size-spot photon beam,” Chin. Opt. Lett. 3, S346–S347 (2005). | |
C. K. Hayakawa, V. Venugopalan, V. V. Krishnamachari, and E. O. Potma, “Amplitude and phase of tightly focused laser beams in turbid media,” Phys. Rev. Lett. 103(4), 043903 (2009). [CrossRef] [PubMed] | |
M. Šormaz and P. Jenny, “Contrast improvement by selecting ballistic-photons using polarization gating,” Opt. Express 18(23), 23746–23755 (2010). [CrossRef] [PubMed] | |
C. K. Hayakawa, E. O. Potma, and V. Venugopalan, “Electric field Monte Carlo simulations of focal field distributions produced by tightly focused laser beams in tissues,” Biomed. Opt. Express 2(2), 278–290 (2011). [CrossRef] [PubMed] | |
J. Von Neumann, “Various techniques used in connection with random digits,” J. Res. Natl. Bur. Stand. 5, 36–38 (1951). | |
E. Alerstam, W. C. Y. Lo, T. D. Han, J. Rose, S. Andersson-Engels, and L. Lilge, “Next-generation acceleration and code optimization for light transport in turbid media using GPUs,” Biomed. Opt. Express 1(2), 658–675 (2010). [CrossRef] [PubMed] | |
G. Marsaglia and A. Zaman, “A new class of random number generators,” Ann. Appl. Probab. 1(3), 462–480 (1991). [CrossRef] | |
G. Sendra, H. Rabal, M. Trivi, and R. Arizaga, “Numerical model for simulation of dynamic speckle reference patterns,” Opt. Commun. 282(18), 3693–3700 (2009). [CrossRef] | |
D. D. Duncan and S. J. Kirkpatrick, “The copula: a tool for simulating speckle dynamics,” J. Opt. Soc. Am. A 25(1), 231–237 (2008). [CrossRef] [PubMed] |
OCIS Codes
(030.6140) Coherence and statistical optics : Speckle
(170.5280) Medical optics and biotechnology : Photon migration
(290.1350) Scattering : Backscattering
(290.4210) Scattering : Multiple scattering
(290.7050) Scattering : Turbid media
ToC Category:
Scattering
History
Original Manuscript: April 19, 2012
Revised Manuscript: June 29, 2012
Manuscript Accepted: July 1, 2012
Published: July 9, 2012
Virtual Issues
Vol. 7, Iss. 9 Virtual Journal for Biomedical Optics
Citation
Yaru Wang, Pengcheng Li, Chao Jiang, Jia Wang, and Qingming Luo, "GPU accelerated electric field Monte Carlo simulation of light propagation in turbid media using a finite-size beam model," Opt. Express 20, 16618-16630 (2012)
http://www.opticsinfobase.org/oe/abstract.cfm?URI=oe-20-15-16618
Sort: Year | Journal | Reset
References
- A. Ishimaru, Wave Propagation and Scattering in Random Media (Academic, New York, 1999), Vol.1.
- J. W. Goodman, “Statistical properties of laser speckle patterns,” in Laser speckle and related phenomena, 2nd ed., J. C. Dainty, ed. (Springer-Verlag, New York, 1984), pp. 9–75.
- J. W. Goodman, Speckle Phenomena in Optics: Theory and Applications (Roberts and Company, Englewood, Colorado, 2007).
- D. Huang, E. A. Swanson, C. P. Lin, J. S. Schuman, W. G. Stinson, W. Chang, M. R. Hee, T. Flotte, K. Gregory, C. A. Puliafito, and et, “Optical coherence tomography,” Science254(5035), 1178–1181 (1991). [CrossRef] [PubMed]
- R. Drezek, A. Dunn, and R. Richards-Kortum, “Light scattering from cells: finite-difference time-domain simulations and goniometric measurements,” Appl. Opt.38(16), 3651–3661 (1999). [CrossRef] [PubMed]
- L. Wang, S. L. Jacques, and L. Zheng, “MCML–Monte Carlo modeling of light transport in multi-layered tissues,” Comput. Meth. Prog. Biomed.47(2), 131–146 (1995). [CrossRef]
- B. C. Wilson and G. Adam, “A Monte Carlo model for the absorption and flux distributions of light in tissue,” Med. Phys.10(6), 824–830 (1983). [CrossRef] [PubMed]
- S. Bartel and A. H. Hielscher, “Monte Carlo simulations of the diffuse backscattering Mueller matrix for highly scattering media,” Appl. Opt.39(10), 1580–1588 (2000). [CrossRef] [PubMed]
- M. Xu, “Electric field Monte Carlo simulation of polarized light propagation in turbid media,” Opt. Express12(26), 6530–6539 (2004). [CrossRef] [PubMed]
- S. Moon, D. Kim, and E. Sim, “Monte Carlo study of coherent diffuse photon transport in a homogeneous turbid medium: a degree-of-coherence based approach,” Appl. Opt.47(3), 336–345 (2008). [CrossRef] [PubMed]
- J. Sawicki, N. Kastor, and M. Xu, “Electric field Monte Carlo simulation of coherent backscattering of polarized light by a turbid medium containing Mie scatterers,” Opt. Express16(8), 5728–5738 (2008). [CrossRef] [PubMed]
- M. Xu and R. R. Alfano, “Random walk of polarized light in turbid media,” Phys. Rev. Lett.95(21), 213901 (2005). [CrossRef] [PubMed]
- M. Xu and R. R. Alfano, “Circular polarization memory of light,” Phys. Rev. E Stat. Nonlin. Soft Matter Phys.72(6), 065601 (2005). [CrossRef] [PubMed]
- K. G. Phillips, M. Xu, S. Gayen, and R. Alfano, “Time-resolved ring structure of circularly polarized beams backscattered from forward scattering media,” Opt. Express13(20), 7954–7969 (2005). [CrossRef] [PubMed]
- R. Liao, H. Zhu, Y. Huang, and J. Lv, “Monte Carlo modelling of OCT with finite-size-spot photon beam,” Chin. Opt. Lett.3, S346–S347 (2005).
- C. K. Hayakawa, V. Venugopalan, V. V. Krishnamachari, and E. O. Potma, “Amplitude and phase of tightly focused laser beams in turbid media,” Phys. Rev. Lett.103(4), 043903 (2009). [CrossRef] [PubMed]
- M. Šormaz and P. Jenny, “Contrast improvement by selecting ballistic-photons using polarization gating,” Opt. Express18(23), 23746–23755 (2010). [CrossRef] [PubMed]
- C. K. Hayakawa, E. O. Potma, and V. Venugopalan, “Electric field Monte Carlo simulations of focal field distributions produced by tightly focused laser beams in tissues,” Biomed. Opt. Express2(2), 278–290 (2011). [CrossRef] [PubMed]
- J. Von Neumann, “Various techniques used in connection with random digits,” J. Res. Natl. Bur. Stand.5, 36–38 (1951).
- E. Alerstam, W. C. Y. Lo, T. D. Han, J. Rose, S. Andersson-Engels, and L. Lilge, “Next-generation acceleration and code optimization for light transport in turbid media using GPUs,” Biomed. Opt. Express1(2), 658–675 (2010). [CrossRef] [PubMed]
- G. Marsaglia and A. Zaman, “A new class of random number generators,” Ann. Appl. Probab.1(3), 462–480 (1991). [CrossRef]
- Nvidia Corporation, “CUDA programming guide 4.2,” (2012).
- G. Sendra, H. Rabal, M. Trivi, and R. Arizaga, “Numerical model for simulation of dynamic speckle reference patterns,” Opt. Commun.282(18), 3693–3700 (2009). [CrossRef]
- D. D. Duncan and S. J. Kirkpatrick, “The copula: a tool for simulating speckle dynamics,” J. Opt. Soc. Am. A25(1), 231–237 (2008). [CrossRef] [PubMed]
Cited By |
OSA is able to provide readers links to articles that cite this paper by participating in CrossRef's Cited-By Linking service. CrossRef includes content from more than 3000 publishers and societies. In addition to listing OSA journal articles that cite this paper, citing articles from other participating publishers will also be listed.





OSA is a member of 