Monte Carlo (MC) Simulations

Similar documents
Monte Carlo (MC) Model of Light Transport in Turbid Media

Permanent City Research Online URL:

Introduction to the Monte Carlo method

MCRT: L6. Initial weight of packet: W = L / N MC At each interaction multiply weight by probability of scattering: W = a W

Biomedical Optics Theory

Volumetric Path Tracing

Monte Carlo Simulation of Light Scattering on a Sound Wave

Let s consider a homogeneous medium characterized by the extinction coefficient β ext, single scattering albedo ω 0 and phase function P(µ, µ').

VARIANCE REDUCTION TECHNIQUES FOR IMPLICIT MONTE CARLO SIMULATIONS

PHOTON mapping is a practical approach for computing global illumination within complex

2 Absorbing Solar Energy

DOING PHYSICS WITH MATLAB COMPUTATIONAL OPTICS RAYLEIGH-SOMMERFELD DIFFRACTION INTEGRAL OF THE FIRST KIND

Optical Design Tools for Backlight Displays

IN previous chapters we assumed that all lighting interactions occurred at surfaces. In particular,

An introduction to Global Illumination. Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology

Computer Graphics Global Illumination (2): Monte-Carlo Ray Tracing and Photon Mapping. Lecture 15 Taku Komura

Improved predictive modeling of white LEDs with accurate luminescence simulation and practical inputs

Variance reduction techniques used in BEAMnrc

Light Control and Efficacy using Light Guides and Diffusers

Computer Animation of Extensive Air Showers Interacting with the Milagro Water Cherenkov Detector

Time Dependent Radiation Transport in CHNOLOGY Hohlraums Using Integral Transport Methods

Lecture 2 Macroscopic Interactions Neutron Interactions and Applications Spring 2010

Advanced Computer Graphics. Rendering Equation. Matthias Teschner. Computer Science Department University of Freiburg

DISCLAIMER. This document was prepared as an account of work sponsored by an agency of the United States

Calculation of Source-detector Solid Angle, Using Monte Carlo Method, for Radioactive Sources with Various Geometries and Cylindrical Detector

Conductive and Radiative Heat Transfer in Insulators

Monte Carlo Simulations in Proton Dosimetry with Geant4

GRID AND PRISM SPECTROMETERS

5.33 Lecture Notes: Introduction to Spectroscopy

Fundamentals of modern UV-visible spectroscopy. Presentation Materials

Vacuum Evaporation Recap

Synthetic Sensing: Proximity / Distance Sensors

Treasure Hunt. Lecture 2 How does Light Interact with the Environment? EMR Principles and Properties. EMR and Remote Sensing

Biasing. 7 th FLUKA Course NEA Paris, Sept.29-Oct.3, 2008

Atomic and Nuclear Physics Laboratory (Physics 4780)

E190Q Lecture 5 Autonomous Robot Navigation

Human Exposure to Outdoor PLC System

An Introduction to Twomey Effect

Steady Heat Conduction

CS 431/636 Advanced Rendering Techniques"

Jorge E. Fernández Laboratory of Montecuccolino (DIENCA), Alma Mater Studiorum University of Bologna, via dei Colli, 16, Bologna, Italy

PHOTOELECTRIC EFFECT AND DUAL NATURE OF MATTER AND RADIATIONS

Fiber Optics: Fiber Basics

The Role of Electric Polarization in Nonlinear optics

Appendix A. An Overview of Monte Carlo N-Particle Software

Crystal Optics of Visible Light

Advanced variance reduction techniques applied to Monte Carlo simulation of linacs

Specific Intensity. I ν =

Physics 441/2: Transmission Electron Microscope

Introduction to acoustic imaging

Overview. What is EMR? Electromagnetic Radiation (EMR) LA502 Special Studies Remote Sensing

where h = J s

Path Tracing - Literature Research. Rick de Bruijne May 17, 2011

CSE168 Computer Graphics II, Rendering. Spring 2006 Matthias Zwicker

Sound Power Measurement

Applications of confocal fluorescence microscopy in biological sciences

for breast cancer detection

CALCULATION METHODS OF X-RAY SPECTRA: A COMPARATIVE STUDY

Optical Communications

10ème Congrès Français d'acoustique Lyon, Avril 2010

Vector has a magnitude and a direction. Scalar has a magnitude

AP Physics B Ch. 23 and Ch. 24 Geometric Optics and Wave Nature of Light

Spectroscopic Ellipsometry:

EXIT TIME PROBLEMS AND ESCAPE FROM A POTENTIAL WELL

Positron Range Modeling for Statistical PET Image Reconstruction

Energy Transport. Focus on heat transfer. Heat Transfer Mechanisms: Conduction Radiation Convection (mass movement of fluids)

Rate Equations and Detailed Balance

Interference. Physics 102 Workshop #3. General Instructions

Chapter 23. The Reflection of Light: Mirrors

Radiation Detection and Measurement

Proton tracking for medical imaging and dosimetry

CHAPTER 9: IMPORTANCE SAMPLING IN MCNP

Numerical Model for the Study of the Velocity Dependence Of the Ionisation Growth in Gas Discharge Plasma

Stanford Rock Physics Laboratory - Gary Mavko. Basic Geophysical Concepts

Mathematics for Global Illumination

A Guide to Acousto-Optic Modulators

Reflectance Characteristics of Accuflect Light Reflecting Ceramic

Chapter 8. Low energy ion scattering study of Fe 4 N on Cu(100)

The Three Heat Transfer Modes in Reflow Soldering

Laboratory #3 Guide: Optical and Electrical Properties of Transparent Conductors -- September 23, 2014

Radiation Heat Transfer: Basic Physics and Engineering Modeling

OPTICAL FIBERS INTRODUCTION

Chapter NP-5. Nuclear Physics. Nuclear Reactions TABLE OF CONTENTS INTRODUCTION OBJECTIVES 1.0 NUCLEAR REACTIONS 2.0 NEUTRON INTERACTIONS

Application Note: Absorbance

Main properties of atoms and nucleus

A wave lab inside a coaxial cable

The Use of Computer Modeling in Room Acoustics

Chapter 4 Variance Reduction Techniques

Path Tracing. Michael Doggett Department of Computer Science Lund university Michael Doggett

ME6130 An introduction to CFD 1-1

Bandwidth analysis of multimode fiber passive optical networks (PONs)

P R E A M B L E. Facilitated workshop problems for class discussion (1.5 hours)

Physics of the Atmosphere I

Automation for the process of the spectral simulations of the light reflection of the human skins

Carbon Cable. Sergio Rubio Carles Paul Albert Monte

4.4 WAVE CHARACTERISTICS 4.5 WAVE PROPERTIES HW/Study Packet

Spectrophotometry and the Beer-Lambert Law: An Important Analytical Technique in Chemistry

Refraction of Light at a Plane Surface. Object: To study the refraction of light from water into air, at a plane surface.

Sensor Modeling for a Walking Robot Simulation. 1 Introduction

d d Φ * Φdx T(B) Barrier (B ) : Vo = 5, a = 2 Well (W ) : Vo= -5, a = ENERGY (E)

Transcription:

Monte Carlo simulations to predict light transport in turbid media S t e f a n Photon g=0 g=0.5 g=0.8 Medical Optics A n d e r s s o n - E n g e l s Monte Carlo (MC) Simulations The outline of this presentation is Introduction Discuss how to randomise the parameters Briefly describe the calculations of step size and trajectory directions Describe the result files Outline how one can handle distributed sources

Monte Carlo Simulations Monte Carlo simulations are frequently used to model propagation of light in tissue. This model is based on random walk, where a photon or a photon package is traced through the tissue until it exits or is terminated due to absorption. By repeating this process for a large number of photon packages, it is possible to obtain statistics for these physical quantities. Many physical parameters of the photon package can be logged, e.g. the distribution of absorption, exiting position, time-of-flight etc. Monte Carlo Simulations Main advantage no limitation concerning boundary conditions or spatial localisation of inhomogeneities in the tissue Main disadvantage problem of getting good statistics, particularly if the point of interest is located far away from the point of entry of the light and the scattering and absorption coefficients are high.

MC can handle any geometry Incident light An example of an MC simulation Intensity (arb. units) Monte Carlo data Diffusion data μ' s =1 mm -1 μ a =0.01 mm -1 d=20 mm 0 0.5 1.0 1.5 2.0 Time (ns)

Available Monte Carlo codes A public domain computer code (MCML), written by Wang and Jacques treats the steady state case for a multi-layered medium. MCML can provide steady-state results for the distribution of escaped as well as absorbed light in a multi-layer geometry. Many developed versions based on this code are used by various groups around the world. Monte Carlo Simulations Monte Carlo simulations of photon propagation offer a flexible approach to predict photon transport in turbid media. It is based on the transport equation. No further assumptions are made. Macroscopic parameters characterising the medium is used.

Monte Carlo Simulations Monte Carlo simulations can be used for simulating all kinds of particle transport. It has mainly been developed for neutron transport in combination with nuclear reactions. For light transport in turbid media we consider photons as neutral particles and neglect all wave phenomena. Monte Carlo Simulations It is as the name implies a method that relies on random sampling of propagation variables from well defined probability distributions - throwing the dice The path length before a scattering or an absorption event occur The scattering angle length angle

Light transport in tissue Light source Path length Scattering direction Absorption Tissue Monte Carlo (MC) Simulations The outline of this presentation will be Introduction Discuss how to randomise the parameters??????

How to sample random variables 1 Consider a random variable x needed for a Monte Carlo simulation. Then there is a probability density function p(x) of x, which defines x over the interval a x b such that: b pxdx ( ) = 1 a How to sample random variables 2 The probability that x will fall in the interval [a, x] is given by the distribution function Fx(x 1 ), defined as: Fx ( x1) = p( x) dx x 1 a

How to sample random variables 3 By using a random number generator, one can obtain a random number ζ in the range [0, 1]. The probability density function for this random number is 1 in in the range [0, 1]. The corresponding probability distribution is ζ 1 Fζ ( ζ1) = p( ζ) dζ = ζ1 0 ζ1 1 0 How to sample random variables 4 This means that the random number picked ζ = F gives the integrated x ( x) p( x) dx value of p(x), that is : F ζ (ζ) F x (x) 1 1 x = a 0 p(ζ) 1 ζ 0 a p(x) b x 1 0 0 ζ 1 1 ζ 0 a x 1 b x

Monte Carlo (MC) Simulations The outline of this presentation will be Introduction Discuss how to randomise the parameters Briefly describe the calculations of stepsize and trajectory directions Selecting the step size, s The step size is in the interval [0, ]. The probability for a photon to interact in the interval [s 1,s 1 +ds 1 ] is μ t ds 1. This means that the intensity I of the light that has not interacted with the medium decreases in the interval ds 1 by di( s1 ) = μti( s1 ) ds 1 Is p( s1) = = μt exp( μts1) I 0 I(s1)/I(0) s 1

Selecting the stepsize, s The cumulative distribution function for free path s is then: P{ s< s } = 1 exp( μ s ) 1 t 1 yielding a probability density function ps ( ) = 1 dp{ s < s1} ds 1 = μ exp( μ s ) t t 1 Selecting the step size, s As we already know: s ζ = psds () = μ exp( μ sds ) = 1 exp( μ s) 0 By rearranging this we get: s 0 t t t s = ln( 1 ζ ) = ln( ζ ) μ μ t t

Phase function symmetry θ The phase function has an axial symmetry and depend only on the angle θ. Often the phase function is expressed as a function of the cosine of the scattering angle - p(cos θ) Selecting the deflection angle θ is in the interval [0, π] For convenience we will consider μ=cos(θ) μ will be distributed in the interval [-1, 1] For Mie scattering the Henyey- Greenstein is a good approximation for the probability density function: p( μ) = 2 1 g 21 ( + g 2gμ) / 2 3 2

The Henyey-Greenstein function g=0 g=0.5 g=0.8 Photon Selecting the deflection angle By using equations derived earlier we get: μ μ 2 ζ = p μ d 1 g ( ) μ = 21 ( + g 2gμ) / 1 1 2 3 2 dμ After solving this for m we have: 1 2 1 g μ = 1 + g 2g 1 g+ 2gζ 2 2 for g 0

Selecting the deflection angle As g approaches zero it is not possible to express as μ=μ(z) -- the equation becomes undefined. Instead one can use that the probability density function becomes isotropic p(μ)=1/2. This yields: μ ζ = 1 1 μ = μ+ 1 2 2 1 d ( ) μ = 2ζ 1 or for g=0 Selecting the azimuthal angle The azimuthal angle is uniformly distributed within the interval [0, 2π]. Thus we have ψ ζ π ψ ψ = 1 d = 2 2π This gives y in the form: 0 ψ = 2πζ

Launching a photon package We start with launching a photon package assigned with a weight W, equal to unity. The photon package is injected orthogonally into the tissue at the origin, corresponding to a collimated ray of incident photons. Some specular reflection will occur if there is a mismatched boundary - W=1-R Photon absorption During each step some attenuation of the photon package weight occur due to absorption. μ The deposited energy is ΔQ= W a μt μ and the new photon weight is ΔW = W s μt (note that ΔQ + ΔW = W)

How each step is randomised μ ΔW=W a μ s +μ a y Ψ=2πR[0-1] x W=W-ΔW θ: p(cosθ)= z s= -ln(1-r[0-1]) μ +μ s a 2 1-g 2(1+g -2gcosθ) 2 3/2 Internal reflectance or escape For each step one has to check if the photon package crosses a boundary (internal/external). If this is the case one has to check for internal reflectance and/or escape. This is calculated using the Snell and Fresnel laws. The escaped fraction adds to the result file and reduces the weight of the photon package left.

Moving the photon package Specify the step size s as described The current trajectory direction is r yielding μ = rx x μ = r y y μ = r z z resulting in new positions x = x+ μ s x y = y+ μ s y z = z+ μ s z Scattering direction Rotation of the co- ordinate system yields (μ x, μ y, μ z ) x y θ,ψ (μ x, μ y, μ z ) μ ' = x μ ' = y sinθ 1 μ sinθ 1 μ 2 z 2 z ( ) μμcosψ μ sinψ + μ cosθ x z y x ( ) μμcosψ + μ sinψ + μ cosθ y z x y 2 μ ' = sinθcosψ 1 μ + μ cosθ z z z z

Photon package termination After a certain number of scattering events the remaining photon package weight will be low. It is certainly a waist of time to follow this package once it has a weight lower than a preset threshold W th. The algorithm used to have an efficient MC code, is to use a technique called roulette. Photon package termination The termination of a photon package must ensure conservation of energy. Assume a photon package with a weight W<W th : The roulette technique gives a package a chance of m of surviving with a weight mw. Otherwise the weight is reduced to zero and the package is terminated.

Monte Carlo (MC) Simulations The outline of this presentation will be Introduction Discuss how to randomise the parameters Briefly describe the calculations of step size and trajectory directions Describe the result files Recording of results Depending on what one want to achieve the simulation the results recorded might differ. One has to define the type of matrix in which the results should be recorded. The resolution of the grids determine the size of the matrix. Results can be recorded as absorbed, reflected or transmitted fraction. These functions can be recorded as a function of position, trajectory direction and time.

Monte Carlo (MC) Simulations The outline of this presentation will be Introduction Discuss how to randomise the parameters Briefly describe the calculations of step size and trajectory directions Describe the result files Outline how one can handle distributed sources Distributed source handling Launch photon packages as over the area illuminated. Flat-field beam Gaussian beam Use pencil beam simulation and use this as a Green function and convolute with the real illumination profile to obtain the results sought.

Checking your results How do you know that your computer code solves your problem? The code will always produce some numbers, but are they correct? Check the code against results already published! Why Monte Carlo? Provides accurate prediction of light fluence in tissue Can be used for complex geometries and without restrictions in optical properties

Drawbacks with Monte Carlo Does not provide any analytical expression with functional dependence of parameters of interest Large computer capacity required Fluorescence Monte Carlo requires especially long simulation times, as this often involves many wavelengths Important applications Dosimetry in connection to PDT of skin lesions Fluorescence diagnostics of early malignant tumours etc

Intrinsic fluorescence It is often of interest to be able to measure the intrinsic fluorescence properties independent on the light propagation in the medium - can compare with properties in solutions - is independent of the measurement geometry - decrease the influence of various tissue parameters New development of MC To reduce the computation time, different, modified Monte Carlo models can be used. A condensed Monte Carlo model can simulate the light distribution for one set of optical properties and scale the results to other optical properties.

One novel MC model is developed to extract the intrinsic fluorescence properties from measurements of thin layered tissue structures λ x λ m Absorption probability A(r, t, λ x ) (μ a x,1, μ s x,1, g x,1 ) absorption path (μ a x,2, μs x,2, g x,2 ) (μ a m,1, μ s m,1, g m,1 ) F(r, λ x, λ m ) emission path (μ a m,2, μs m,2, g m,2 ) Escape probability E(r, t, λ m ) Absorption probability A(r, t, λ x ) λ x (μ a x,1, μ s x,1, g x,1 ) absorption path (μ a x,2, μ s x,2, g x,2 ) Gives the distribution of the excitation

Escape probability E(r, t, λ m ) Yields the probability that light emitted at position r will be detected at the tissue surface λ m F(r, λ x, λ m ) is the intrinsic fluorescence quantum yield at position r (μa m,1, μs m,1, g m,1 ) emission path (μa m,2, μs m,2, g m,2 ) Standard Fluorescence Monte Carlo - Simulate each photon until it is absorbed and then follow the fluorescence photon Forward Monte Carlo - Simulate A(r, t, λ x ) and E(r, t, λ m ) independently and convolve these probabilities in time and space for a fixed depth z Reverse Monte Carlo - An approximate expression for the escape function can be calculated by studying the reverse path, from the surface down in the medium λ x λ m excitation path emission path

Forward Monte Carlo With a convolution in space and time for a fixed depth z, the escape function needs only to be simulated along the z-axis. r I F ( r, t, z) = dz r' dr' dϕ' 0 dz = 2π 0 0 ( ', t', z) E( r' r, t' t, z) dt' A r τ=0 Reverse Monte Carlo The equivalence between the forward and the reverse approach for the simulation of the photon path is depicted. The main discrepancies are expected at the interface between two layers with different refractive indices collection source source collection Forward Reverse

Results Standard Forward Reverse radial distance radial distance time time time radial distance Values used μ ax =2.0 cm -1 μ am =0.5 cm -1 μ sx =100 cm -1 μ sx =50 cm -1 g x =0.8 g m =0.84 τ=1 ps Radial distribution of the surface fluorescence intensity (a.u.) 1E+0 1E-1 1E-2 1E-3 1E-4 1E+0 reference values a) 0 0.2 0.4 0.6 0.8 1 r (cm) d) intensity (a.u.) 1E+0 1E-1 1E-2 1E-3 1E-4 1E+0 μ a x = 1.0 cm -1 b) 0 0.2 0.4 0.6 0.8 1 r (cm) e) intensity (a.u.) 1E+0 1E-1 1E-2 1E-3 1E-4 1E+0 μ a x = 0.25 cm -1 c) 0 0.2 0.4 0.6 0.8 1 r (cm) f) intensity (a.u.) 1E-1 1E-2 1E-3 1E-4 μ s x = 100 cm -1 0 0.2 0.4 0.6 0.8 1 r (cm) intensity (a.u.) 1E-1 1E-2 1E-3 1E-4 μ s m = 50 cm -1 0 0.2 0.4 0.6 0.8 1 r (cm) intensity (a.u.) 1E-1 1E-2 1E-3 1E-4 g x = 0.7, g m = 0.76 0 0.2 0.4 0.6 0.8 1 r (cm)

Time-resolved surface fluorescence Values used μ ax =2.0 cm -1 μ am =0.5 cm -1 μ sx =100 cm -1 μ sx =50 cm -1 g x =0.8 g m =0.84 τ=1 ps intensity (a.u.) 1E+0 1E-1 1E-2 1E-3 1E-4 1E-5 1E-2 reference values r = 0.05 cm 0 50 100 150 200 time (ps) intensity (a.u.) 1E+0 1E-1 1E-2 1E-3 1E-4 1E-5 1E-2 μa m = 0.25 cm -1 r = 0.05 cm 0 50 100 150 200 time (ps) intensity (a.u.) 1E+0 1E-1 1E-2 1E-3 1E-4 1E-5 1E-2 μs m = 50 cm -1 r = 0.05 cm 0 50 100 150 200 time (ps) intensity (a.u.) 1E-3 1E-4 1E-5 1E-6 reference values r = 0.5 cm 0 50 100 150 200 time (ps) intensity (a.u.) 1E-3 1E-4 1E-5 1E-6 μa m = 0.25 cm -1 r = 0.5 cm 0 50 100 150 200 time (ps) intensity (a.u.) 1E-3 1E-4 1E-5 1E-6 μs m = 50 cm -1 r = 0.5 cm 0 50 100 150 200 time (ps) White Monte Carlo μ a =0 ρ I I(t) μ s time ρ μ a = μ a I e μ a I=I(t) ct μ s μ a time

Scaling of scattering properties ρ t I μ s t ρ/k t/k = I k μ s t/k Example of required simulation times Simulation times for 100 kphotons SMC 470 sec FMC 650 sec Convolution 40 sec RMC 580 sec Convolution 40 sec WMC 810 sec Convolution 40 sec Number of photons required for the same photon noise SMC 512kp, FMC 64 kp, RMC 4 kp

Conclusions RMC an order of magnitude faster than FMC, which is again approximately 10 times faster than SMC Fluorescence distributions very similar for the 3 models Time resolved fluorescence distributions similar for not too short times Absolute fluorescence intensities still not accurate for either of the new models