Skip to main content
Optics Express logoLink to Optics Express
. 2024 Jul 9;32(15):26667–26689. doi: 10.1364/OE.528245

Application limits of the scaling relations for Monte Carlo simulations in diffuse optics. Part 2: results

Caterina Amendola 1,, Giulia Maffeis 1,, Andrea Farina 2, Lorenzo Spinelli 2,*, Alessandro Torricelli 1,2, Antonio Pifferi 1,2, Angelo Sassaroli 3, Duccio Fanelli 4, Federico Tommasi 4, Fabrizio Martelli 4
PMCID: PMC11595293  PMID: 39538526

Abstract

The limits of applicability of scaling relations to generate new simulations of photon migration in scattering media by re-scaling an existing Monte Carlo simulation are investigated both for the continuous wave and the time domain case. We analyzed the convergence properties in various scenarios by numerical methods, trying to derive practical guidelines for the judicious use of this approach, as well as a deeper understanding of the physics behind such relations. In the case of scaling of the absorption coefficient, the convergence is always rigorous both for the forward and inverse problems, relying on the derivatives with respect to the absorption coefficient. Also, the regenerated simulation inherits the very same noise of the original Monte Carlo simulation. In the case of scaling of the scattering coefficient, the situation is more critical. For forward problems, even for just a 10% uniform increase in scattering, appreciable deviations are observed whenever a high number of scattering interactions is involved. We tested a practical criterion based on the number of scattering events in the original simulation to judge the convergence of the scaling factors. For inverse problems, the scaling relations provide accurate regenerated simulations apart from the noise level that is increased with respect to the initial simulation, although anyway lower than the noise level obtained by implementing the direct calculation. The results of this study are important whenever an increase of Monte Carlo code throughput is mandatory, e.g., for fast data analysis of diffuse data, or in machine-learning scenarios, when generating huge datasets is needed.

1. Introduction

The study of photon propagation in highly scattering media, with a wealth of applications ranging from biomedical optics to astrophysics, is usually supported by the Radiative Transfer Equation (RTE), based on photon-particle description of light propagation governed by the energy conservation laws [1]. Given the difficulties in deriving closed-form solutions in complex structures – e.g., the human head – numerical approaches based on Monte Carlo (MC) simulations are often adopted both for forward and inverse problems. By generating many possible photon trajectories on a statistical basis, MC methods permit to simulate any geometry and combination of optical properties – namely, the absorption coefficient μa , the scattering coefficient μs , the scattering phase function p(θ) , the refractive index n . In particular, when photon propagation is dominated by multiple scattering, it is also useful to introduce the anisotropy factor g , defined as the average cosine of the scattering angle, and the reduced scattering coefficient μs , defined as μs=μs(1g) [2]. For this reason, MC methods became the gold standard for modeling light propagation in tissues or in diffusive media and an essential tool in biomedical optics [3]. To this extent, many MC codes have been developed for the purposes of several applications [416].

In this context, a set of rigorously derived scaling relations (SR) provides an efficient way to generate a new simulation with a perturbed set of optical properties ( μa=μa0+Δμa , μs=μs0+Δμs ) starting from an initial simulation obtained with a given set of optical properties ( μa0 , μs0 ) [4]. Indeed, even with parallel computing and GPUs, the computational burden of MC can be a limitation in realistic scenarios, particularly for inverse problems, which require many attempts to be tested. Then, MC codes could benefit from the use of SR, namely to reduce computational time.

Yet, there is more in SR than just that. The elegance of the SR and the beautiful physics behind them can unveil general properties of the RTE to ignite new findings.

In the previous companion paper [17], we briefly recalled the origin of the SR mostly in the neutron transport field [1820], and their further extension to the biomedical optics field [4,21], encompassing also polarization [22], heterogeneous and inverse problems [2326], photoacoustics [27]. We presented the derivation of the SR, for a homogeneous and a non-homogeneous medium, discussing the convergence properties of the method for absorption and for scattering. An insightful analysis led to the study of the probability function p(k,μs) for the number of scattering events k undergone by a photon along a path of length for a given trajectory, which permitted to understand the frailty of the scaling factor for μs . Furthermore, the implications when using the derivative of the SR with respect to μa and μs in inverse problems were addressed.

This paper complements the previous contribution [17], where the theoretical bases of the method were discussed, presenting an extensive numerical study on the validity and convergence properties of the SR. This study faces many different cases and permits to gain both a general understanding of the formulas as well as its practical utility. In particular, the probability function p(k,μs) is derived numerically in different scenarios, to understand what determines the corrective factor for a change in scattering. Section 2 briefly recalls the key formulas, Section 3 presents the methods used in MC simulations and the metrics to grade convergence, Section 4 displays the key findings on the convergence properties and the shape of the the probability function p(k,μs) in various scenarios, encompassing continuous wave (CW) and time domain (TD), homogeneous and heterogeneous cases, finite perturbations and calculus of derivatives. Finally, Section 5 draws the general conclusions and presents future directions.

2. Theory

In this Section, we briefly report the main theoretical results about the scaling approach to MC simulations in a homogeneous medium, whose extensive demonstration can be found in the companion paper [17].

Firstly, we report the scaling factors for the absorption ( Fa ) and scattering ( Fs ) coefficients in a homogeneous medium:

Fa=W(μa,μs0)W(μa0,μs0)=e(μaμa0), (1)
Fs=W(μa0,μs)W(μa0,μs0)=(μsμs0)ke(μsμs0), (2)

where W(μa0,μs0) is the weight of each detected photon in the original simulation, while W(μa,μs0) and W(μa0,μs) are the weights of the same photon (detected after traveling along the same trajectory) in the scenarios where either the absorption coefficient or the scattering coefficient is changed.

In the time-resolved approach, the weights of the received photons are classified into a histogram of time-of-flights. Then, if the time bin width is assumed to be sufficiently narrow, all photons within the i -th time bin have the same pathlength i=vti and we can write:

TPSF(μa,ti)=TPSF(μa0=0,ti)eμavti, (3)

where ti is the average time of the i -th time bin, TPSF is the Temporal Point Spread Function, i.e., the probability that a photon is received in the i -th time bin, v is the speed of light in the diffusive medium, and the basic MC simulation is obtained for μa0=0 .

On the contrary, due to the presence of the number k of scattering interactions in Eq. (2), a straightforward calculation of the scaling factor caused by a variation of the scattering coefficient is not possible. However, if the probability function p(k,μs0) for the number of scattering events k undergone by the received photons with pathlength is known, the scaling factor for TPSF(μs,t) is:

FTPSF,s(μs0μs,)=k=0p(k,μs0)Fs(k,μs)==e(μsμs0)k=0p(k,μs0)(μsμs0)k, (4)

where Fs(k,μs) is given in from Eq. (2).

In particular, in the case of an infinite non-absorbing homogeneous medium with no detectors, the function p(k,μs0) can be explicitly calculated provided that all propagating photons are considered:

p,(k,μs0)=(μs0)kk!eμs0 , (5)

resulting in a Poisson distribution with mean value λ=μs0 . In the case of finite geometries and a receiving detector the probability function p(k,μs0) has to be reconstructed by exploiting MC simulations, where both the trajectory length , and the number of scattering events k are recorded for each received photon. In the following Section 4.1 we report some examples of these probability functions, named p,MC(k,μs0) .

In order to understand the limit of applicability of Eq. (4), we proposed the following approximation for FTPSF,s [17]:

FMC,s(μs0μs,)=k=kmin(μs0)kmax(μs0)p,(k,μs) , (6)

where kmin(μs0) and kmax(μs0) are the smallest and the largest number of scattering events of the simulated photons with pathlength , while the p,MC(k,μs0) of the initial simulation was approximated as:

p,MC(k,μs0){p,(k,μs0)=(μs0)kk!eμs0, kmin(μs0)kkmax(μs0)0,elsewhere (7)

The calculation of FMC,s through Eq. (6) provides a criterion of convergence for the method: it can be used safely when FMC,s(μs0μs,)1 .

As for the CW approach, if the time window spanned by the TPSF is large enough, the collected photons can be obtained by integrating the TPSF over time:

CW(μa,μs)=i=1MTPSF(μa,μs,ti)Δt, (8)

where M is the number of time bins and Δt their width.

Finally, the SR for absorption and scattering coefficients can be used to evaluate the derivative with respect to the optical properties of the medium:

TPSF(μs,μa,ti)μa|μs=μs0=iTPSF(μs0,μa,ti), (9)
TPSF(μs,μa,ti)μs|μs=μs0=kμs0iTPSF(μs0,μa,ti). (10)

Moreover, for Δt small enough, we can set i=vti , while the term k/μs0i is almost nil, except for those time bins, i.e., pathlengths, where the probability functions p(k,μs0) differ substantially from the correspondent Poisson distributions.

In the CW case, we obtain:

CW(μs,μa)μa|μs=μs0=CW(μs0,μa), (11)
CW(μs,μa)μs|μs=μs0=kμs0CW(μs0,μa), (12)

where the average values are calculated using all the received photons.

3. Methods

The MC simulations shown in this work were generated using three different codes: 1) an elementary and extensively validated MC code [2,3,2831] that stands in continuity with the first MC code used to implement this approach for biomedical optics applications, i.e., Ref. [4]; 2) the open source GPU-accelerated MCX code [6,7]; and 3) the open source GPU-accelerated MCML code [8,9]. The use of multiple platforms to generate MC results is motivated on one side by the need to provide examples of applicability of the presented approach in realistic 3D geometries on an efficient timescale (and this is only possible through MC codes capable of using GPU resources), and on the other side by the need to easily modify the code for implementation of the quantity of interest. The equivalence and verification of different MC codes have already been extensively reported [57]. Then, for the simulations in this work, we used the most convenient code depending on the considered case. In addition, the scattering function used to extract the scattering angles was the Henyey-Greenstein model [3]. Finally, all MC simulations were carried with at least 106 detected photons.

All the quantities of interest are calculated inside the MC codes together with their standard errors. The standard error was evaluated by a single simulation, where for each quantity of interest x , relative to each trajectory, e.g., the scaled weight W(μa,μs) , its average x¯ and mean squared value x2¯ were calculated. Then, the standard error on the calculated quantity, σx¯ , was evaluated by its intrinsic definition, i.e.,

σx¯=(x2¯x¯2)Ne1, (13)

where Ne is number of simulated trajectories [19,32].

For the purpose of this work, the evaluation of the standard error on the absorbing or scattering perturbation is critical to determine whether the reconstructed quantities can be applied with sufficient reliability. Indeed, to be reliable, a MC result related to a calculated quantity x¯ should exhibit a relative error, σx¯/x¯ , of less than 5% [19]. The information provided by the standard error is therefore also an index of convergence of the weight factors.

4. Results

4.1. Examples of p,MC(k,μs) in finite geometries

In this Section, we report some examples of the probability functions p,MC(k,μs) calculated for the case of a non-absorbing homogeneous diffusive infinite slab in reflectance geometry. The methodology adopted to calculate p,MC(k,μs) is reported in Appendix A.

As an example, the cases for a non-absorbing slab of thickness s=4 cm , μs0=10 cm1 , with g=0 and g=0.8 are depicted in Fig. 1 and Fig. 2, respectively. In each panel, for a specific pathlength , we display the p,MC(k,μs0) relative to different source-detector distances ρ . Moreover, as a comparison, the correspondent p,(k,μs0) , i.e., the Poisson function obtained in the case of the infinite medium, is depicted as well.

Fig. 1.

Fig. 1.

Examples of probability functions p,MC(k,μs0) for different pathlengths are reported for a non-absorbing infinite slab. In each plot, different source-detector distances ρ are considered: ρ=0.3 cm (magenta line), ρ=0.5 cm (cyan line), ρ=1 cm (red line), ρ=2 cm (green line), ρ=3 cm (blue line). As a reference, the corresponding function p,(k,μs0) is also reported in each plot (black line). Parameters for MC simulations: slab thickness s=4 cm , internal and external refractive indexes ni=ne=1 , μs0=10 cm1 , and g=0 , resulting in μs0=10 cm1 .

Fig. 2.

Fig. 2.

The same as Fig. 1, but for g=0.8 , resulting in μs0=50 cm1 .

We note that when ρ> , the p,MC(k,μs0) is not reported: as a matter of fact, no photon with such a pathlength can reach the detector and the corresponding p,MC(k,μs0) is undefined. On the other side, when ρ , the probability functions p,MC(k,μs0) are practically the same as the corresponding Poisson function p,(k,μs0) .

The most interesting behavior is observed when ρ : in this case, the probability functions p,MC(k,μs0) are shifted towards smaller values of k with respect to the corresponding p,(k,μs0) . This can be explained considering the fact that, since the length of the trajectories is similar to the source-detector distance, the few received trajectories can only slightly deviate from the straight line connecting source and detector, and this is possibly favored if few scattering events occur with rather long steps. Furthermore, we explicitly note that the two probability functions p,MC(k,μs0) for ρ=2 cm when =2.5 cm (green line) and for ρ=3 cm when =5 cm (blue line) are not reported in Figs. 1 and 2, because they are comprehensive of few tens of photons. As a matter of fact such a kind of trajectories are possible ( ρ ), but very unlikely.

As a general remark, these results suggest that only for length ρ5ρ the probability functions p,MC(k,μs0) related to a specific detector are different from the corresponding Poisson function p,(k,μs0) for the infinite medium. Then, in the time-resolved approach, the scaling factor for scattering FTPSF,s [Eq. (2)] results different from 1 (as for the Poisson distribution) and the derivative with respect to scattering [Eq. (10)] is substantially different from zero only for arrival times t5ρ/v .

Finally, we can recall that the probability function p,(k,μs0) represents a limiting case for the distribution of a specific detector in a given geometry, provided that the pathlengths of the received photons are much greater than the source-detector distance. In that case, in fact, the photons received by the detector would propagate in a diffusive manner, similarly to that established in free propagation in the infinite medium, albeit geometry and detectors still play some effect. This fact can be exploited to identify those ranges of where p(k,μs0) can be replaced by a Poisson distribution.

4.2. Convergence of the scattering scaling factor

The convergence, i.e., the applicability, of the scaling method to obtain the TPSF at μs starting from TPSF at μs0 is the main issue for the scattering SR. The main requirement to have a good convergence of the TPSF at μs is that the trajectory ensemble included in the initial MC simulation is representative also for the new condition. This is fulfilled when the probability functions p,MC(k,μs0) and p,MC(k,μs) are considerably overlapped [17].

In order to quantify the overlap of the two probability functions, we can approximate them as Poisson distributions with mean values k¯0=μs0 and k¯=μs , respectively. Then, it is reasonable to assume that the two distributions are overlapped if:

|k¯k¯0|σk0=k¯0, (14)

that means, after trivial algebra:

|Δμsμs0|1k¯0=1μs0. (15)

Then, if we consider pathlenghts up to about 100/μs0 as an example, from Eq. (15) we can assume that convergence is granted for a change in μs up to 10%.

On the other side, one expects that the effect of a scattering variation is minimal on photons that have travelled long pathlengths before being detected, i.e., associated to late arrival times. Then, the scattering scaling factor FTPSF,s is expected to be close to 1 for late time bins.

In order to estimate the convergence of the scaling method, we can consider the approximated value FMC,s of the scattering scaling factor FTPSF,s , calculated through Eq. (6). When FMC,s is far from 1, the calculation of the scaled TPSF is incorrect because of the lack of useful trajectories (i.e., representative of the new simulation) in the initial MC simulation. As a matter of fact, FMC,s represents a measure of the separation between the probability functions p,(k,μs0) and p,(k,μs) [17]: when its value is closed to 1, the two distributions are significantly overlapping and convergence is guaranteed.

Tables 1 and 2 quantify FMC,s for some example according to the approximated expression of Eq. (6). A variation of 10% for the reduced scattering coefficient is considered for both g=0 (Table 1) and g=0.8 (Table 2). The values kmin(μs0) and kmax(μs0) obtained from the probability functions p,MCk,μs0 (plotted in Figs. 1 and 2) are shown as well.

Table 1. Scaling factors FMC,s calculated exploiting Eq. (6), for g=0 and different values for pathlengths , kmin(μs0) and kmax(μs0) . The table pertains to a non-absorbing infinite slab of thickness s=4 cm , μs0=10 cm1 and μs=11 cm1 .

[cm] 2.5 5 10 15 20 40 60 80
kmin(μs0) 9 25 65 110 150 330 520 720
kmax(μs0) 45 75 135 190 250 460 680 880

FMC,s 0.999 0.996 0.991 0.974 0.978 0.836 0.788 0.509

Table 2. As in Table 1, but for g=0.8 .

[cm] 2.5 5 10 15 20 40 60 80
kmin(μs0) 75 200 430 660 900 1850 2850 3850
kmax(μs0) 170 300 575 840 1100 2150 3150 4150

FMC,s 0.997 0.936 0.861 0.707 0.508 0.146 4.40×103 7.38×105

Some values for the scaling factor FMC,s reported in Tables 1 and 2 are much less than 1. The discrepancies essentially depend on the values of kmin(μs0) and kmax(μs0) : the higher they are, the greater the discrepancy.

Furthermore, we note that by maintaining the same scaling factor μs/μs0=1.1 , convergence extends to longer when g=0 . For g=0.8 , instead, results are more critical, as one can see in Table 2: as an example, for =80 cm, FMC,s reduces to 7×105 , indicating the total inadequacy of the SR applied to the MC results. This is clearly due to the fact that, for fixed and μs , the number of scattering interactions for g=0.8 is higher than for g=0 . In fact, because the scattering coefficient μs is 1/(1g)=5 times higher in the former case, much more interactions with short path are needed to fill a fixed pathlength.

The results presented in this Section, even with all the approximations of interest (i.e., having approximated the p,MC(k,μs0) with the truncated p,(k,μs0) and having chosen the kmin and kmax values on the basis of specific initial MC simulations), allow to establish a criterion to predict for which values of μs it is reasonable to expect sufficiently accurate scaled results, given a μs0 value for the initial MC simulation and the pathlengths of interest in the specific application. In particular, in the perturbative framework that we are considering, a deviation from 1 of FMC,s of the order of 10% is indicative for a successful application of SR. In all the other cases, it is difficult to provide a general a priori statement about the convergence of the scattering scaling factor. It is worth noting also that, whenever the calculation of FMC,s assures the convergence of SR for scattering, the calculation of the scaled TPSF should be performed exploiting straightforwardly Eq. (2).

Finally, we underline that all the examples here presented refer to a specific geometry: a non-absorbing homogeneous slab. Nevertheless, the one reported is a general criterion and all considerations can be extended to complex, heterogeneous media, even with a partial scattering scaling: the calculation of the approximated value of the scattering scaling factor by exploiting Eq. (6) is still an efficient convergence test, provided that the pathlengths are much greater than the source-detector distance, and the perturbative approach is preserved.

4.3. Applications of the scaling factor for the scattering coefficient

In this Section, the results obtained applying the SR for scattering on both TD e CW cases are shown. In particular, for TD case, both homogeneous and heterogeneous media are considered.

4.3.1. Time domain results

Homogeneous case

Reflectance is calculated at four source-detector distances ρ , ranging from 0.5 to 3 cm, for a homogeneous slab with thickness s=4 cm and refractive indices nint=next=1 . We also considered the effect of the anisotropy factor g , by assuming g=0 and g=0.8 . In compliance with the expectations retrieved with Tables 1 and 2 and the considerations at Section 4.1, the scaling has been applied for a small scattering variation, from a MC simulation run for μs0=10 cm1 to derive results for μs=11 cm1 .

Figures 3 and 4 compare the TPSF obtained with the SR, from now on referred to as “scaled TPSF ”, and the direct simulation, referred to as “direct TPSF ”.

Fig. 3.

Fig. 3.

First row: comparison between TPSFs as a function of time obtained by a direct MC simulation for μs=11 cm1 and by the scaling approach from μs0=10 cm1 to μs=11 cm1 in a homogeneous non-absorbing slab with thickness s=4 cm , refractive indices nint=next=1 , and g=0 , considering the source-detector distances ρ indicated on the top label. Second row: ratio between scaled and direct TPSF . Third row: relative standard error σr of scaled TPSF . Scaled TPSFs are relative to about N106 detected photons.

Fig. 4.

Fig. 4.

As in Fig. 3, but for g=0.8 . Scaled TPSFs are relative to N106 (blue lines) and N109 (green lines) detected photons.

We remind that the effect of μa on the TPSF in case of homogeneous media is an exponential attenuation, which depends only on the time-of-flight. Thus, the ratio between the scaled and the corresponding direct TPSFs with the same absorption is independent of μa . For this reason, we considered only the case of a non-absorbing medium.

Figure 3 is relative to the case g=0 . The scaled TPSFs are obtained considering about N106 detected photons. Despite noise, the superposition of the direct and scaled TPSFs in the first row indicates that scaling in TD is very efficient. In fact, their ratios (second row) fluctuate around 1 at all distances and times considered. Moreover, we note that the relative error σr of the scaled TPSF (third row) increases with time, becoming relevant only at long times.

Figure 4 summarizes the results obtained for g=0.8 . The main difference with respect to the previous case emerges in the comparison of the scaled TPSFs and the direct calculations (first row), which highlights the underestimation for scaled results at long times-of-flight, if the same number of detected photons ( N106 ) as in Fig. 3 is considered. This is confirmed by the ratios, that drop after some hundreds of picoseconds (second row). As for the relative error σr (third row), it increases with time faster than the previous case, becoming relevant at earlier times. The results obtained by applying SR improve both in terms of accuracy and precision. In fact, by increasing the number N of detected photons, the time range where the scaled TPSFs overlap the direct ones becomes larger with lower relative errors σr . As an example, Fig. 4 shows the case for the scaled TPSFs obtained with about N109 detected photons.

Based on published literature [19], it is expected that whenever the relative standard error is less than 5%, convergence is generally highly probable. Indeed, it is immediate to observe that scaled and direct TPSFs begin to drift apart when the relative error on the scaled TPSF increases. In particular, for the cases reported in Figs. 3 and 4, this approximately happens when the relative error overcomes the threshold of about 25%. Thus, we can conclude that a simple check of the relative standard error on the scaled TPSFs can provide an effective a posteriori test to assess its level of convergence, additional to the test previously considered in Section 4.2.

Heterogeneous case

In addition to what we reported in the previous section, we expect that the maximum perturbation on the initial case is caused when the change in the scattering coefficient is applied at the whole diffuse medium. Therefore, considering the actual possibility of application of the SR, we expect the homogeneous case to be the worst in terms of convergence of the procedure.

For this reason, we report in Fig. 5 two examples of a heterogeneous diffuse medium, where the change in the scattering coefficient happens only in one sub-region of the medium considered. For both examples, the source-detector distance ρ is 2 cm, the refractive indices are nint=1.4 and next=1 , the anisotropy factor g is 0.8, the detected photons N are about 106 , and a scattering variation of 20% is considered.

Fig. 5.

Fig. 5.

As in Fig. 3, but for two examples of a heterogeneous diffuse medium. Left column: 3-layered slab, thicknesses s1=1 cm , s2=0.3 cm , s3=4 cm ; absorption coefficients μa0,1=0.05 cm1 , μa0,2=μa0,3=0.15 cm1 ; reduced scattering coefficients μs0,1=10 cm1 , μs0,2=μs0,3=5 cm1 . The reduced scattering coefficient of the second layer is changed to μs,2=6 cm1 . Right column: cylindrical inclusion in a homogeneous slab: thickness s=5 cm , inclusion radius r=1 cm , height h=1 cm , depth z=1 cm ; absorption coefficients μa0=μa0,i=0.1 cm1 ; reduced scattering coefficients μs0=μs0,i=10 cm1 . The reduced scattering coefficient of the inclusion is changed to μs,i=8 cm1 . Other common parameters: source-detector distance ρ=2 cm , refractive indices nint=1.4 and next=1 , anisotropy factor g=0.8 , detected photons N106 .

The left column of Fig. 5 reports the case of a 3-layered slab, where only the optical properties of the second layer is changed. Specifically, the optical and geometric properties are: first layer, thickness s1=1 cm , μa,1=0.05 cm1 , μs0,1=10 cm1 ; second layer, thickness s=0.3 cm , μa,2=0.15 cm1 , μs0,2=5 cm1 ; third layer, thickness s=4 cm , μa,3=0.15 cm1 , μs0,3=5 cm1 . The reduced scattering coefficient of the second layer is then changed to μs,2=6 cm1 . This case can be assumed as a scheme of the head, with the second layer represents the brain cortex.

In the right column of Fig. 5, instead, is reported the case of an inclusion embedded in an otherwise homogeneous slab. Specifically, the optical and geometric properties in this case are: background medium, thickness s=5 cm , μa0=0.1 cm1 , μs0=10 cm1 ; cylindrical inclusion located at halfway between source and detector, radius r=1 cm , height h=1 cm , depth of the top base z=1 cm , μa0,i=0.1 cm1 , μs0,i=10 cm1 . For both background and inclusion we have g=0.8 . The reduced scattering coefficient of the inclusion is then changed to μs,i=8 cm1 . This case can mimic the case of a cyst inside the breast.

From the plots reported in Fig. 5 we can note that the SR can be applied very efficiently in these examples of heterogeneous media, being the results similar to those reported in Fig. 3, where, differently from here, we considered g=0 and a scattering variation of 10%.

Finally, we can note that the scaled TPSFs reported in Figs. 3, 4 and 5 are underestimated. As a general remark, SR applied to an initial MC simulation in a medium with scattering coefficient μs0 will yield a scaled TPSF that more likely underestimates the true one at a different value μs . The reason is that, for practical time spans used to run the initial MC simulation at μs0 , detected trajectories will not include those that are more relevant (i.e., have larger weights) for the new medium with a different scattering coefficient μs . The trajectories in the new medium, indeed, are characterized by a different number of scattering events k for a fixed pathlength of detected photons; in other words, the distribution p(k,μs) is shifted with respect to p(k,μs0) [17]. As demonstrated in Fig. 4, by increasing the sampling of the trajectories in the initial MC simulation, the convergence properties of scaled TPSFs improve. However, we stress that to obtain the improvement shown in Fig. 4 we needed to increase the number of detected trajectories by 3 orders of magnitude, and this has a remarkable impact on the computation time.

4.3.2. CW results

Here we report the results obtained for the CW approach, considering as an example a homogeneous slab with the same optical and geometric parameters we assumed in the homogeneous TD case (see Sec. 4.3.1). Then, according to Eq. (8), we calculated reflectance at four source-detector distances ρ , ranging from 0.5 to 3 cm, for a homogeneous slab with thickness s=4 cm and refractive indices nint=next=1 . We also considered the effect of μa0 and the anisotropy factor g . Finally, the scaling has been applied for a small scattering variation, from a MC simulation run for μs0=10 cm1 to derive results for μs=11 cm1 .

The results obtained for the CW approach are summarized in Tables 3, 4, 5, and 6. All tables have the same structure: the first column reports source-detector distances of interest, the second and third columns report the results for the direct MC simulation for μs0 with the corresponding relative errors, the fourth and fifth columns report the results for the direct MC simulation for μs with the corresponding relative errors, the sixth and seventh columns report the results obtained by applying the scaling method from μs0 to μs with the corresponding relative errors, and the eighth column shows the ratios between the scaled result and the direct result for μs .

Table 3. CW values and percent relative standard error σr obtained both with direct MC simulations and by applying the scaling method. Parameters: μs0=10 cm1 , μs=11 cm1 , μa=0 cm1 , g=0 .
ρ [cm] Direct ( μs0 ) Direct ( μs ) Scaled ( μs0μs ) Scaled (μs0μs)




CW [ cm2 ] σr [%] CW [ cm2 ] σr [%] CW [ cm2 ] σr [%] Direct (μs)
0.5 1.46 ×101 9.91 ×102 1.39 ×101 9.91 ×102 1.39 ×101 1.24 ×101 1.000
1 2.25 ×102 9.93 ×102 2.06 ×102 9.94 ×102 2.06 ×102 2.00 ×101 0.998
2 2.91 ×103 9.93 ×102 2.63 ×103 9.93×102 2.62 ×103 1.64 ×100 0.999
3 6.99 ×104 9.96 ×102 6.13 ×104 9.97 ×102 6.02 ×104 1.27 ×100 0.983
Table 4. As in Table 3, but for μa=0.2 cm1 and g=0 .
ρ [cm] Direct ( μs0 ) Direct ( μs ) Scaled ( μs0μs ) Scaled (μs0μs)




CW [ cm2 ] σr [%] CW [ cm2 ] σr [%] CW [ cm2 ] σr [%] Direct (μs)
0.5 8.65 ×102 1.06 ×101 8.08 ×102 1.07 ×101 8.09 ×102 1.15 ×101 1.000
1 6.43 ×103 1.23 ×101 5.52 ×103 1.25 ×101 5.52 ×103 1.45 ×101 1.001
2 1.38 ×104 1.90 ×101 1.05 ×104 1.98 ×101 1.05 ×104 2.71 ×101 0.999
3 5.43 ×106 2.92 ×101 3.68 ×106 3.11 ×101 3.66 ×106 4.99 ×101 0.996
Table 5. As in Table 3, but for μa=0 cm1 and g=0.8 .
ρ [cm] Direct ( μs0 ) Direct ( μs ) Scaled ( μs0μs ) Scaled (μs0μs)




CW [ cm2 ] σr [%] CW [ cm2 ] σr [%] CW [ cm2 ] σr [%] Direct (μs)
0.5 1.63 ×101 9.90 ×102 1.54 ×101 9.90 ×102 1.53 ×101 4.77 ×101 0.996
1 2.36 ×102 9.93 ×102 2.15 ×102 9.93 ×102 2.05 ×102 1.03 ×100 0.951
2 2.98 ×103 9.92 ×102 2.68 ×103 9.93 ×102 2.56 ×103 1.53 ×10+1 0.955
3 7.10 ×104 9.96 ×102 6.21 ×104 9.96 ×102 3.17 ×104 1.46 ×10+1 0.510
Table 6. As in Table 3, but for μa=0.2 cm1 and g=0.8 .
ρ [cm] Direct ( μs0 ) Direct ( μs ) Scaled ( μs0μs ) Scaled (μs0μs)




CW [ cm2 ] σr [%] CW [ cm2 ] σr [%] CW [ cm2 ] σr [%] Direct (μs)
0.5 9.96 ×102 1.05 ×101 - 9.14 ×102 1.06 ×101 9.15 ×102 1.88 ×101 1.000
1 6.90 ×103 1.22 ×101 5.88 ×103 1.24 ×101 5.84 ×103 4.16 ×101 0.994
2 1.43 ×104 1.88 ×101 1.08 ×104 1.96 ×101 1.06 ×104 1.84 ×100 0.979
3 5.51 ×106 2.89 ×101 3.69 ×106 3.07 ×101 3.34 ×106 4.00 ×100 0.904
Case: μa=0 cm1 and g=0

Table 3 shows how the scaled CW results are in good agreement with the direct simulation: in fact, the ratio between the scaled and the direct values is very similar to 1 for all the considered source-detector distances (forth column). Furthermore, the relative errors affecting the scaled values are very small, less than 2%. These small errors are possible thanks to the high accuracy of elementary MC data ( 106 collected photons for each detector).

The worsening of CW results as the source-detector distance increases is compliant with the higher contribution of photons associated to long time-of-flight, which coincides with many scattering events. In particular, this reflects the higher noise affecting the scaled TPSF at late times (compare Fig. 3). Since the weight of these photons reduces with increasing absorption, we expect scaling to work even better for absorbing media. On the contrary, we expect larger errors as the anisotropy parameter grows (maintaining the same μs ), due to the greater number of scattering events with the same time-of-flight.

Case: μa=0.2cm1 and g=0

By inspecting values reported in the forth column of Table 4, one can confirm the hypothesis of an accuracy improvement in the case of absorbing media. In compliance with the selective reduction of the contribution of photons based on the time-of-flight, it is also observed that the effect of absorption on CW values strongly depends on the source-detector distance, with a reduction of more than two orders of magnitude with respect to the non-absorbing case of the collected photons at ρ=3 cm . However, the most interesting result is that the relative standard error affecting the scaled result is only slightly larger than the one affecting the direct simulation for all values of ρ , and smaller than the non-absorbing case.

Case: μa=0cm1 and g=0.8

Let us now consider a non-absorbing medium with g=0.8 (Table 5). As expected, the SR performance degrades: at ρ=1 cm there is already a discrepancy of about 5% with respect to the expected value (compare fourth column). The situation worsens at larger distances, with an increasing underestimation of the CW values and a corresponding growth of the relative standard errors of the scaled results (compare second and third columns). In particular, the latter consideration indicates that the convergence of the scaled results is no longer reliable, as we observed for the TD case.

Case: μa=0.2 cm1 and g=0.8

As reported in Table 6, the addition of absorption significantly extends the applicability of scattering scaling also for this g value: the scaled values for ρ=1 cm and ρ=2 cm are still in agreement with those of the direct simulation, with an error of about 2% (see fourth column). On the contrary, for ρ=3 cm an underestimation of the scaled value of about 10% takes place. Finally, it is worth noting that the absorption reduces the relative standard error of the scaled values with respect to the non-absorbing case, as already observed for the g=0 case.

4.4. Derivatives

In this Section we will study the convergence of the derivatives with respect to absorption and scattering obtained by applying the SR according to Eqs. (9) and (10) for the TD case, and Eqs. (11) and (12) for the CW case. In particular, a 3-layered non-absorbing slab of thicknesses s1=0.5 cm, s2=0.5 cm and s3=3 cm, and initial reduced scattering μs0=10 cm1 for all the three layers has been considered. The refractive index was fixed to 1 both in the medium and outside, while two values for the anisotropy factor ( g=0 and g=0.8 ) were discussed. Moreover, four source-detector distances have been considered: 0.5, 1, 2 and 3 cm. For the sake of comparison, derivatives were also directly calculated according to the definition of incremental ratio, assuming Δμa=103 cm1 and Δμs=0.1 cm1 as absorption and scattering increment, respectively.

4.4.1. Time domain results

The derivatives with respect to absorption can be calculated by applying Eq. (9). Some examples of absorption derivatives are reported in Fig. 6. As a matter of fact, SR do not show critical aspects in this case and can be used without any special precaution, resulting in smooth (i.e., low-noise) TD curves of the absorption derivatives. Indeed, Eq. (9) is the common method adopted to compute derivatives with respect to absorption [25]. For the sake of completeness, in Fig. 6 are also reported the derivatives with respect to absorption calculated with the incremental ratio in accordance to the basic definition

Fig. 6.

Fig. 6.

Absorption derivatives, expressed in cm1ps1 , are shown for a non-absorbing 3-layered slab of thicknesses s1=0.5 cm, s2=0.5 cm and s3=3 cm, μs0=10 cm1 , and g=0 , thus resulting μs0=10 cm1 , for all the three layers. The refractive index is 1 both in the medium and outside. Subscripts 1, 2, and 3 denote the first layer, second layer, and third layer, respectively. In absence of subscript, the whole slab is considered. The results are shown for four source-detector distances from the first to the last column: 0.5, 1, 2 and 3 cm. Blue curves pertain to the derivatives calculated by the scaling formula Eq. (9), while red curves are the derivatives obtained by the direct calculation of the incremental ratio.

More precisely, starting from Eq. (9), we can calculate the relative standard error of the absorption derivatives, yielding to the following expression:

σr(TPSFμa|μs=μs0)=σr2(i)+σr2(TPSF0), (16)

where we set TPSF0=TPSF(μs0,μa,ti) . One can note that this error is only slightly larger than σr2(TPSF0) , i.e., that on the initial TPSF . Indeed, for the additional term σr(i) , which is the relative error on the mean path of the photons received in the i-th time bin, it results:

σr(i)=σ(i)ivΔtvtiΔtti1% , (17)

where we assumed a small time bin width Δt , e.g., Δt10 ps , as it is usually the case, and ti1 ns . This means that the error on the absorption derivative is comparable to the error on the initial simulation.

The results for the TD derivative with respect to the scattering coefficient are very different from those for absorption. In Fig. 7, some examples of scattering derivatives are reported for the case g=0 . Each plot shows the TD derivatives calculated both with the scaling formula Eq. (10) and with the incremental ratio in accordance to the basic definition. From Fig. 7, we can note that the absolute values for the derivative with respect to μs are significantly smaller than those for the derivative with respect to μa , especially for larger source-detector distances. In particular, the scattering derivatives increase rapidly at early times, reach a maximum, and, then, decreases rapidly towards 0.

Fig. 7.

Fig. 7.

Scattering derivatives, expressed in cm1ps1 , are shown for the same geometry as in Fig. 6. Blue curves pertain to the derivatives calculated by the scaling formula Eq. (10), while red curves are the derivatives obtained by the direct calculation of the incremental ratio.

The relative standard error affecting the scattering derivative can be evaluated by exploiting Eq. (10):

σr(TPSFμs|μs=μs0)=σr2(kμs0i)+σr2(TPSF0). (18)

The behavior of σr(TPSFμs|μs=μs0) is basically determined by the first term inside the square root in Eq. (18), resulting much greater than that for the derivative with respect to μa . It can be inferred, indeed, that for late propagation times, i.e., for times much larger than ballistic time, we expect that k/μs0i1/μs0 . Moreover, the standard error affecting k/μs0i can be calculated as:

σ(kμs0i)σ2(kμs0i)+σ2(i) . (19)

It results that σ(i)vΔt (compare Eq. (17)). As for the standard error on k/μs0i , it results:

σ(kμs0i)=σ(ki)μs0μs0iμs0vtiμs0 , (20)

where we assumed that the values k were distributed according to the Poisson distribution pi,(k,μs0) with mean value μs0i and standard error μs0i . Moreover, we set ivti as already done in Eq. (17).

We note that the standard error reported in Eq. (20) increases with time, while σ(i) remains constant. In particular, if we assume Δt10 ps and ti1 ns as before, together with μs0=10 cm1 and v=0.03 cm/ps , we obtain:

σ(i)0.3 cm ,σ(kμs0i)2 cm . (21)

Then, for late propagation times, the term σ(i) in Eq. (19) can be neglected, and the standard error affecting k/μs0i can be approximated as:

σ(kμs0i)σ(kμs0i)vtiμs0 , (22)

leading to the following expression for relative standard error:

σr(kμs0i)=σ(k/μs0i)k/μs0ivti/μs01/μs0=μs0vti . (23)

Finally, the relative standard error affecting the scattering derivative [Eq. (18)] is dominated by the first term under the square root and it increases with time; in particular, for the example values of the parameters considered above we obtain:

σr(kμs0i)20 , (24)

to be compared with the relative error on TPSF0 , that is usually of the order of some percent or less. It is worth noting, however, that for late times the value of the derivative TPSFμs|μs=μs0 is close to 0. Then, in this situation, the huge value of the relative standard error calculated in Eq. (24) is not a suitable quantity to describe the accuracy and its use may be misleading.

In general, it is true that for the derivative with respect to the scattering coefficient the convergence is slower compared to that of the TPSF and may show criticalities. However, plots reported in Fig. 7 offer a clear evidence of the advantage in terms of convergence in using the SR for the calculation of the scattering derivatives with respect to the definition of incremental ratio. Although the two calculations are statistically equivalent, the SR return significantly smoother values, so that their use must be preferred. Simulations for the asymmetry parameter g=0.8 were also carried out, confirming the advantage to use the calculation of the scattering derivative with the scaling formula (data not shown).

The scattering effects on the scaled TPSF are also related to the asymmetry parameter of the scattering function at exam, g . The effect of g on the calculation of the time derivative can be simply described by means of similarity relations. If μs is constant as g varies, given the similarity relation valid for multiple scattering problems [2,3], almost identical results should be obtained for the derivatives with respect to μs , i.e.:

TPSFμs|g=g1TPSFμs|g=g2. (25)

Using the definition of the reduced scattering coefficient μs=μs(1g) , we obtain:

TPSFμs|g=g1=(1g1)TPSFμs|g=g1(1g1)TPSFμs|g=g2=1g11g2TPSFμs|g=g2. (26)

For the derivatives with respect to scattering, in the case g1=0.8 we can then expect smaller values than in the case g2=0 by about a factor of 5. These similarity relations can be automatically transferred to the CW domain.

In conclusion, the TD derivatives calculated in this Section by exploiting the SR have shown excellent property of convergence compared to the direct calculation. In particular, concerning the derivative with respect to absorption, SR does not present critical aspects, being governed by a convergence behavior similar to that of the direct simulation. As for the derivative with respect to scattering, although a larger relative error is observed, this occurs at late times, when the absolute value of the derivative is almost zero and the dependence on scattering vanishes. Therefore, scaled results are significantly better than those for direct calculations (see Fig. 7).

4.4.2. CW results

We expect the CW derivatives to reflect the behavior observed for TD. Tables 7 and 8 report the CW derivatives with respect to absorption and scattering for two values of the anisotropy factor, g=0 and g=0.8 , calculated by exploiting Eqs. (11) and (12), respectively. We can note that the values of the absorption derivatives for g=0 and g=0.8 are almost the same, i.e., their ratio is 1, as expected (see Table 7). Furthermore, we observe that:

CWμa=i=13CWμai , (27)

again as expected.

Table 7. CW absorption derivatives calculated by Eq. (11). It was considered a 3-layer non-absorbing slab with thicknesses s1=s2=0.5 cm, s2=3 cm, μs=10 cm1 in all the layers, and refractive index 1 both in the medium and outside. Subscripts 1, 2, and 3 denote the first layer, second layer, and third layer, respectively. In absence of subscript, the whole slab is considered. The units are cm1 for all the derivatives.
g=0 g=0.8


ρ [cm] CWμa1 CWμa2 CWμa3 CWμa CWμa1 CWμa2 CWμa3 CWμa
0.5 -3.8 ×101 -9.3 ×102 -1.6 ×102 -4.9 ×101 -4.1 ×101 -9.3 ×102 -1.6 ×102 -5.2 ×101
1 -1.1 ×101 -6.8 ×102 -2.5 ×102 -2.1 ×101 -1.2 ×101 -6.9 ×102 -2.5 ×102 -2.1 ×101
2 -2.2 ×102 -3.0 ×102 -3.4 ×102 -8.6 ×102 -2.3 ×102 -3.0 ×102 -3.5 ×103 -8.7 ×103
3 -5.8 ×103 -9.9 ×103 -1.6 ×102 -3.2 ×102 -6.0 ×103 -1.0 ×102 -1.6 ×102 -3.2 ×102
Table 8. CW scattering derivatives calculated by Eq. (12). Parameters are the same as in Table 7. Subscripts 1, 2, and 3 denote the first layer, second layer, and third layer, respectively. In absence of subscript, the whole slab is considered. The units are cm1 for all the derivatives.
g=0 g=0.8


ρ [cm] CWμs1 CWμs2 CWμs3 CWμs CWμs1 CWμs2 CWμs3 CWμs
0.5 -8.6 ×103 1.6 ×103 3.2 ×104 -6.6 ×103 -2.4 ×103 3.0 ×104 7.2 ×105 -1.97 ×103
1 -2.4 ×103 2.2 ×104 2.3 ×104 -2.0 ×103 -5.3 ×104 4.9 ×105 4.3 ×105 -4.4 ×104
2 -2.5 ×104 -1.2 ×104 5.5 ×105 -3.1 ×104 -5.4 ×105 -2.4 ×105 1.3 ×105 -6.5 ×105
3 -4.4 ×105 -4.7 ×105 -4.1 ×106 -9.5 ×105 -8.8 ×106 -9.9 ×106 -4.6 ×107 -1.9 ×105

As for the scattering derivatives, from Table 8 we can observe that the values for g=0 are larger that those for g=0.8 , their ratios ranging mostly between 2.7 and 5.7, in agreement with the expectations set by the SR in Eq. (26) (values of the ratios of the scattering derivatives for the two g cases are not explicitly reported for the sake of brevity).

In order to characterize the convergence of the CW derivatives with respect to absorption and scattering, Tables 9 and 10 display the relative standard errors corresponding to the conditions of Tables 7 and 8, respectively. The calculus of the relative standard errors of the derivative is based on the formula (13) applied to Eqs. (11) and (12). All these relative standard errors are consistent with the convergence of the corresponding CW derivatives (relative standard error lower than 5%). For the sake of comparison, we also list in Table 11 the relative standard errors affecting the CW values. An inspection of values reported in Tables 9, 10, and 11 shows that for the derivatives with respect to absorption the relative standard errors are most of the times only slightly larger than those on CW values. Exceptions can be noted, such as derivatives with respect to absorption in the second and third layers for the nearest detector, due to the few received photons that were able to penetrate deep into these layers. For derivatives with respect to scattering, however, the relative standard errors on derivatives are markedly larger than those on CW value, by a factor of ten ore more, as we expected from the previous discussion.

Table 9. Percent relative standard error on the CW absorption derivatives reported in Table 7.
g=0 g=0.8


ρ [cm] σr(CWμa1) σr(CWμa2) σr(CWμa3) σr(CWμa) σr(CWμa1) σr(CWμa2) σr(CWμa3) σr(CWμa)
0.5 1.2 ×101 2.9 ×101 7.3 ×101 1.5 ×101 1.2 ×101 3.1 ×101 7.6 ×101 1.5 ×101
1 1.1 ×101 1.7 ×101 3.2 ×101 1.3 ×101 1.1 ×101 1.7 ×101 3.2 ×101 1.3 ×101
2 1.1 ×101 1.2 ×101 1.7 ×101 1.2 ×101 1.1 ×101 1.2 ×101 1.7 ×101 1.2 ×101
3 1.1 ×101 1.1 ×101 1.3 ×101 1.1 ×101 1.1 ×101 1.1 ×101 1.3 ×101 1.1 ×101
Table 10. Percent relative standard error on the CW scattering derivatives reported in Table 8.
g=0 g=0.8


ρ [cm] σr(CWμs1) σr(CWμs2) σr(CWμs3) σr(CWμs) σr(CWμs1) σr(CWμs2) σr(CWμs3) σr(CWμs)
0.5 8.7 ×101 2.3 ×100 4.9 ×100 1.3 ×100 1.6 ×100 5.7 ×100 1.0 ×101 2.1 ×100
1 6.6 ×101 5.8 ×100 3.3 ×100 1.1 ×100 1.4 ×100 1.8 ×101 7.9 ×100 2.3 ×100
2 1.0 ×100 2.5 ×100 5.8 ×100 1.6 ×100 2.2 ×100 5.5 ×100 1.1 ×101 3.5 ×100
3 1.4 ×100 1.8 ×100 2.6 ×101 1.6 ×100 3.3 ×100 3.8 ×100 1.1 ×102 3.5 ×100
Table 11. CW reflectance and its percent relative standard error, σr(CW) , calculated using MC simulations with same parameters as in Table 7.
g=0 g=0.8


ρ [cm] CW [cm2] σr(CW) CW [cm2] σr(CW)
0.5 1.5 ×101 9.9 ×102 1.6 ×101 9.9 ×102
1 2.3 ×102 9.9 ×102 2.4 ×102 9.9 ×102
2 2.9 ×103 9.9 ×102 3.0 ×103 9.9 ×102
3 7.0 ×104 1.0 ×101 7.1 ×104 1.0 ×101

A final remark can be done by comparing the relative errors for g=0 and g=0.8 . From Table 9 it results that the values obtained in the case of absorption derivatives are practically the same for g=0 and g=0.8 . As for the scattering derivatives, the relative error for g=0.8 is about twice that for g=0 (see Table 10). This information is in agreement with the convergence of scaled TPSFs , which decreases as g increases.

The results presented in this Section for the calculation of CW derivatives with scaling rules are similar to those obtained for TD in the previous Section, thus leading to similar conclusions. The weakest point, as for TD, is the scattering derivative. However, the relative standard error produced by these calculations, again with a reasonably low number of detected trajectories, ensures smooth convergence of the scattering derivatives as well.

5. Conclusion

In the companion paper [17], we analyzed the origin of the SR to derive a new MC simulation with a change in absorption and scattering properties by re-processing the collected trajectories of a reference simulation with initial μa0 and μs0 values. Therein, we also presented the crucial aspects at the basis of the convergence criticalities, that are ultimately related to how well the sampled trajectories for the reference simulation are sufficiently representative also of the new problem. In the present paper, we analysed the convergence properties in various scenarios with numerical methods, trying to derive a practical guide for the judicious use of this approach, as well as a deeper understanding of the peculiarities of the SR.

In the case of absorption, the convergence is always optimal both for forward problems and inverse problems - i.e., for the calculus of the derivatives of the TPSF with respect to μa . As a matter of fact, the exploitation of Eq. (1) in MC simulations to model the effect of changes in the absorption coefficient is a well-established procedure [25,26]. Practically, the absorption properties, whatever they are, are added in post-processing, after running a white, i.e., for a non-absorbing medium, MC simulation. The key point is that absorption does not alter the photon trajectories, which can adequately describe also the perturbed situation with proper weighting factors - the Lambert-Beer factors. Also, in terms of noise in the scaled simulation, this is solely due to the noise in the original TPSF .

In the case of scattering, the situation is quite different. In particular, we analysed the distribution p(k,μs) for the number of scattering events k undergone by photons along a path of length over all recorded trajectories. We observe that p(k,μs) is very close to p,(k,μs) , that is the distribution of the scattering events for a free propagation in an infinite medium, well described by a Poisson distribution. The main deviations of p(k,μs) from p,(k,μs) in finite geometries are related to a shift of the distributions towards lower k for pathlengths close to the source-detector distance ρ . In addition to that, for a change in μs , the whole p,(k,μs) is shifted along the k -axis.

For forward problems, with a finite change in μs , this latter shift is the key source of instabilities, causing a possible undersamplig of one side of the distribution of scattering events. While for short enough pathlenghts the convergence is granted, for long we identified a simple criterion for a first-order estimate of convergence properties based on kmin and kmax values of the p(k,μs0) relative to the reference MC simulation, that are used to calculate an approximated scaling factor FMC . Values of FMC,s close to 1 are an index of convergence for the method. As a matter of fact, FMC,s represents a measure of the overlap between the probability functions p,(k,μs0) and p,(k,μs) , and therefore it indicates if the trajectory ensemble of the reference simulation is representative also for the scaled case. This criterion could be used – for instance – in machine-learning training sessions involving large amount of simulations to exclude wrong datasets which could negatively polarise the model.

From the analysis of the forward problem in few homogeneous exemplary cases, we observed that the main inaccuracies in the generation of scaled simulations occur for a high number k of scattering events. For instance, in CW, for a 10% increase in μs=10 cm1 there is more than 5% inaccuracy on the scaled simulation only for the anisotropic case g=0.8 (a 5-fold higher k values than for the case g=0 for the same μs ) combined with a large ρ=3 cm. Absorption helps improve the accuracy since it reduces the weight of trajectories with a higher number of scattering events. It is worth noting at this point that SR for absorption and scattering are independent from one another and, then, they can be applied together to consider a simultaneous change in both the optical parameters. The TD case is more delicate, since long trajectories can still be extracted, independently of μa and ρ . As an example, for the same 10% increase in μs , strong deviations are observed for t>1 ns and g=0.8 at ρ=2 or 3 cm, while, for shorter source-detector distances ρ=0.5 or 1 cm, inaccuracies are found for t>0.5 ns.

For heterogeneous cases, where the perturbed region is much smaller than the whole medium, the number of k scattering events in the altered region is smaller, and therefore convergence of SR improves. This was shown in two exemplary cases of a head and a breast model, where a 20% μs change in the brain cortex or in an optical inhomogeneity of 1 cm3 at 1 cm depth was properly described by the SR.

It is worth to note that, although the SR is an unbiased estimator which, in the limit of an infinite number Ne of simulated trajectories in the initial MC simulation, converges to the true value, the scaled TPSFs obtained in this work show a underestimation of the corresponding direct simulation. This fact is caused by the set of trajectories considered in the initial simulation at μs0 , which do not uniformly sample the distribution of the scattering events relative to the new simulation at μs , in the different time windows of the scaled TPSF . The observed significant increase in the standard error affecting the scaled TPSFs is indicative of this undersampling.

For the calculus of the derivatives with respect to μs , the situation is much better. Since the change in μs is infinitesimal, the probability distributions of p(k,μs) are identical for the reference and the perturbed cases. It is known that for the distribution p,(k,μs) the derivative of the TPSF with respect to μs is null. Therefore, scattering information is encoded in the deviations of p(k,μs) from p,(k,μs) occurring for short pathlengths, i.e., low t .

In terms of noise, in addition to the noise affecting the TPSF as for the absorption case, also the noise affecting the estimate of the mean number of scattering events k must be considered. In particular, we evaluated the latter contribution for a typical set of parameter values, demonstrating that it increases dramatically for large t . At the same time, however, also the scattering derivative rapidly goes to zero. Then, it could also be safely set to 0 after a proper time, preventing noise to create artificial inaccuracies. In general, we observe that the calculus of derivatives using the SR yields less noisy results as compared to the use of the incremental ratio, and therefore should always be preferred - as in the case of inverse problems.

The key message of this work is that SR can be always used for μa . For μs , they can be safely used for calculating the scattering derivatives, but in general not for generating forward simulations, unless the μs perturbation is small (e.g., < 10%) or the perturbed volume is small (e.g., brain cortex, breast lesion).

In this paper, we deciphered the complex physics of the SR, ultimately related to the distribution of scattering events p(k,μs) . This could foster further studies to advance on the modelling of photon migration and the acceleration of MC simulations, which are gaining a crucial role in applications.

Acknowledgments

This study was partially supported and funded by the following projects: MUR-PRIN2020, Trajector-AGE, grant number: 2020477RW5PRIN; NextGenerationEU, National Recovery and Resilience Plan, Agritech National Research Center, CN00000022 (DD 1032 17.06.2022); NextGenerationEU, National Recovery and Resilience Plan, MNESYS, PE0000006 (DN 1553 11.10.2022); NextGenerationEU, National Recovery and Resilience Plan, Age-IT, PE0000015 (DD 1557 11.10.2022); NextGenerationEU, National Recovery and Resilience Plan, PRIN 2022, grant number: 20227EPKW2; NextGenerationEU, National Recovery and Resilience Plan, PRIN 2022, DIRS, grant number: 2022EB4B7E; National Institutes of Health: R01 EB029414; Horizon 2020 Framework Programme of the European Union (grant agreement number 863087); European Innovation Council under the Pathfinder Open call (grant agreement number 101099093).

Appendix. Calculation of p,MC(k,μs) distributions

In this Appendix, we show how to calculate the probability distribution p,MC(k,μs) starting from the trajectory information saved in the MC simulation.

In the companion paper [17], we defined the infinitesimal probability to travel along a trajectory Γ in a homogeneous medium with fixed μa , μs and p(θ) :

dP(Γ,μa,μs,p)={μskeμtm=1kdmp(θm)dΩmfork1eμtfork=0 (28)

where m is the path travelled by the photon before being scattered at an angle θm within a solid angle dΩm , with m=1,,k being k the number of scattering events of the trajectory, while μt=μa+μs is the extinction coefficient.

We remember that the heart of the scaling relations method is to estimate the probability to travel along a given trajectory in a medium, characterized by different optical properties with respect to an initial or background medium. Let us now consider the background medium with optical properties ( μa0 , μs0 , p0 ) and a new medium with optical properties ( μa , μs , p ); the main principle of the method is that the ratio of the weights of each trajectory Γ in the two media, W0 and W , is the same as the ratio of the theoretical probabilities reported in Eq. (28), that can be derived from first principles of photon migration:

W(μa,μs,p(θ))W(μa0,μs0,p0(θ))=dP(Γ,μa,μs,p(θ))dP(Γ,μa0,μs0,p0(θ)). (29)

By using Eq. (29), we have:

W(μa,μs)W(μa0,μs0)=(μsμs0)ke(μtμt0), (30)

where we considered the further simplifying assumption p(θ)=p0(θ) .

The distribution of the detected trajectories in the background medium is calculated with a MC simulation. Let us consider an initial MC simulation with Ne launched photons: by definition the weight of each detected trajectory W(μa0,μs0) is equal to 1, while the weight W(μa,μs) of the same trajectory in the new medium with different optical properties is given by Eq. (30).

According to the companion paper [17], an estimate of TPSF(ti,Δt,μa,μs) , i.e., of the photons detected within the time range (tiΔt/2,ti+Δt/2) , is given by:

TPSF(ti,Δt,μa,μs)=1NeSΔtjJiWj(μa,μs)=1NeSΔtjJi(μsμs0)kje(μtμt0)j, (31)

where S is the detector area, Δt is the width of the time bin, Ji is the ensemble of photons received in the i -th time bin, kj and j are the number of scattering events undergone and the length travelled by the j -th photon, respectively. In particular, if the width of the time bin is small enough, we can assume jvti , being v the speed of light in the medium. In Eq. (31) we also exploited Eq. (30) and the fact that Wj(μa0,μs0)=1 for all the received photons.

Equation 31 can be rewritten by using the distribution of scattering events kj of the detected photons, with jJi . In other words, we can rewrite Eq. (31) as:

TPSF(ti,Δt,μa,μs)=NiNeSΔte(μtμt0) ×× [n0Ni(μsμs0)0+n1Ni(μsμs0)1+n2Ni(μsμs0)2++nkNi(μsμs0)k+], (32)

where Ni is the number of detected photons in the i -th time bin, =vti , and n0,n1,n2,,nk, are the numbers of detected photons that underwent 0,1,2,,k, scattering events, respectively. We explicitly note that in a MC simulation some of the frequencies nk/Ni can be zero: as a matter of fact, the distribution of scattering events will range between a minimum and a maximum value for k .

Now, if we remember that the TPSF for the background medium can be calculated from the MC simulation as:

TPSF(ti,Δt,μa0,μs0)=1NeSΔtjJiWj(μa0,μs0)=NiNeSΔt , (33)

and by considering all possible values of k , from Eq. (32) it results:

TPSF(ti,Δt,μa,μs)=TPSF(ti,Δt,μa0,μs0)e(μtμt0)k=0nkNi(μsμs0)k (34)

Then, we can construct the probability distribution p,MC(k,μs0) by means of the frequencies nk/Ni obtained from the MC simulation, by identifying:

p,MC(k,μs0)nkNi for k=0,1,2, (35)

In this way, indeed, when we consider the limit for Ne , the frequencies p,MC(k,μs0) converge to the probability function p(k,μs) , that represents the probability of detecting a photon that have travelled a length =vti with k scattering events, in the case of the background medium, and from Eq. (34) we get the scaling factor for TPSF reported in Eq. (4).

Funding

Ministero dell'Università e della Ricerca10.13039/501100021856 (2020477RW5PRIN, 20227EPKW2, 2022EB4B7E, CN00000022, PE0000006, PE0000015); National Institutes of Health10.13039/100000002 (R01 EB029414); Horizon 2020 Framework Programme10.13039/100010661 (863087); HORIZON EUROPE European Innovation Council10.13039/100018703 (101099093).

Disclosures

The authors declare no conflicts of interest.

Data availability

Data underlying the results presented in this paper are not publicly available at this time but may be obtained from the authors upon reasonable request.

References

  • 1.Ishimaru A., Introduction (IEEE, 1997), Chap. 1, pp. 1–5. [Google Scholar]
  • 2.Martelli F., Del Bianco S., Ismaelli A., et al. , Light Propagation through Biological Tissue and Other Diffusive Media: Theory, Solutions, and Software , vol. PM193 (SPIE PRESS, 2009). [Google Scholar]
  • 3.Martelli F., Binzoni T., Del Bianco S., et al. , Light Propagation through Biological Tissue and Other Diffusive Media: Theory, Solutions, and Validation, Second Edition , vol. PM348 (SPIE PRESS, 2022). [Google Scholar]
  • 4.Sassaroli A., Blumetti C., Martelli F., et al. , “Monte Carlo procedure for investigating light propagation and imaging of highly scattering media,” Appl. Opt. 37(31), 7392–7400 (1998). 10.1364/AO.37.007392 [DOI] [PubMed] [Google Scholar]
  • 5.Sassaroli A., Martelli F., “Equivalence of four Monte Carlo methods for photon migration in turbid media,” J. Opt. Soc. Am. A 29(10), 2110–2117 (2012). 10.1364/JOSAA.29.002110 [DOI] [PubMed] [Google Scholar]
  • 6.Fang Q., Boas D. A., “Monte Carlo simulation of photon migration in 3D turbid media accelerated by graphics processing units,” Opt. Express 17(22), 20178–20190 (2009). 10.1364/OE.17.020178 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Yan S., Fang Q., “Hybrid mesh and voxel based Monte Carlo algorithm for accurate and efficient photon transport modeling in complex bio-tissues,” Biomed. Opt. Express 11(11), 6262–6270 (2020). 10.1364/BOE.409468 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Alerstam E., Andersson-Engels S., Svensson T., “Parallel computing with graphics processing units for high speed Monte Carlo simulation of photon migration,” J. Biomed. Opt. 13(6), 060504 (2008). 10.1117/1.3041496 [DOI] [PubMed] [Google Scholar]
  • 9.Alerstam E., Lo W. C. Y., Han T. D., et al. , “Next-generation acceleration and code optimization for light transport in turbid media using GPUs,” Biomed. Opt. Express 1(2), 658–675 (2010). 10.1364/BOE.1.000658 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Liebert A., Wabnitz H., Żołek N., et al. , “Monte carlo algorithm for efficient simulation of time-resolved fluorescence in layered turbid media,” Opt. Express 16(17), 13188–13202 (2008). 10.1364/OE.16.013188 [DOI] [PubMed] [Google Scholar]
  • 11.Doronin A., Meglinski I., “Online object oriented Monte Carlo computational tool for the needs of biomedical optics,” Biomed. Opt. Express 2(9), 2461–2469 (2011). 10.1364/BOE.2.002461 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Zoller C. J., Hohmann A., Forschum F., et al. , “Parallelized Monte Carlo software to efficiently simulate the light propagation in arbitrarily shaped objects and aligned scattering media,” J. Biomed. Opt. 23(06), 1 (2018). 10.1117/1.JBO.23.6.065004 [DOI] [PubMed] [Google Scholar]
  • 13.Cassidy J., Nouri A., Betz V., et al. , “High-performance, robustly verified Monte Carlo simulation with FullMonte,” J. Biomed. Opt. 23(08), 1 (2018). 10.1117/1.JBO.23.8.085001 [DOI] [PubMed] [Google Scholar]
  • 14.Leino A., Pulkkinen A., Tarvainen T., “ValoMC: a Monte Carlo software and MATLAB toolbox for simulating light transport in biological tissue,” OSA Continuum 2(3), 957–972 (2019). 10.1364/OSAC.2.000957 [DOI] [Google Scholar]
  • 15.Wojtkiewicz S., Liebert A., “Parallel, multi-purpose monte carlo code for simulation of light propagation in segmented tissues,” Biocybern. Biomed. Eng. 41(4), 1303–1321 (2021). 10.1016/j.bbe.2021.03.001 [DOI] [Google Scholar]
  • 16.Bürmen M., Pernuš F., Naglic P., “MCDataset: a public reference dataset of Monte Carlo simulated quantities for multilayered and voxelated tissues computed by massively parallel PyXOpto Python package,” J. Biomed. Opt. 27(08), 083012 (2022). 10.1117/1.JBO.27.8.083012 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Amendola C., Maffeis G., Farina A., et al. , “Application limits of the scaling relations for Monte Carlo simulations in diffuse optics. Part 1: theory,” Opt. Express 32(1), 125–150 (2024). 10.1364/OE.507646 [DOI] [PubMed] [Google Scholar]
  • 18.Rief H., “Generalized Monte Carlo perturbation algorithms for correlated sampling and a second-order Taylor series approach,” Ann. Nucl. Energy 11(9), 455–476 (1984). 10.1016/0306-4549(84)90064-1 [DOI] [Google Scholar]
  • 19.X-5 Monte Carlo Team , “MCNP-A general Monte Carlo N-Particle Transport Code, Version 5 Volume I: Overview and Theory,” Tech. Rep. LA-UR-03-1987 (Revised 2/1/2008), Los Alamos National Laboratory, Los Alamos, NM, USA (2003).
  • 20.Kiedrowski B. C., “Review of early 21st-century monte carlo perturbation and sensitivity techniques for k-eigenvalue radiation transport calculations,” Nucl. Sci. Eng. 185(3), 426–444 (2017). 10.1080/00295639.2017.1283153 [DOI] [Google Scholar]
  • 21.Nguyen J., Hayakawa C. K., Mourant J. R., et al. , “Perturbation Monte Carlo methods for tissue structure alterations,” Biomed. Opt. Express 4(10), 1946–1963 (2013). 10.1364/BOE.4.001946 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Nguyen J., Hayakawa C. K., Mourant J. R., et al. , “Development of perturbation Monte Carlo methods for polarized light transport in a discrete particle scattering model,” Biomed. Opt. Express 7(5), 2051–2066 (2016). 10.1364/BOE.7.002051 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Hayakawa C. K., Spanier J., Bevilacqua F., et al. , “Perturbation Monte Carlo methods to solve inverse photon migration problems in heterogeneous tissues,” Opt. Lett. 26(17), 1335–1337 (2001). 10.1364/OL.26.001335 [DOI] [PubMed] [Google Scholar]
  • 24.Seo I., You J. S., Hayakawa C. K., et al. , “Perturbation and differential Monte Carlo methods for measurement of optical properties in a layered epithelial tissue model,” J. Biomed. Opt. 12(1), 014030 (2007). 10.1117/1.2697735 [DOI] [PubMed] [Google Scholar]
  • 25.Yao R., Intes X., Fang Q., “Direct approach to compute Jacobians for diffuse optical tomography using perturbation Monte Carlo-based photon replay,” Biomed. Opt. Express 9(10), 4588–4603 (2018). 10.1364/BOE.9.004588 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Hayakawa C. K., Malenfant L., Ranasinghesagara J., et al. , “MCCL: an open-source software application for Monte Carlo simulations of radiative transport,” J. Biomed. Opt. 27(08), 083005 (2022). 10.1117/1.JBO.27.8.083005 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Leino A. A., Lunttila T., Mozumder M., et al. , “Perturbation monte carlo method for quantitative photoacoustic tomography,” IEEE Trans. Med. Imaging 39(10), 2985–2995 (2020). 10.1109/TMI.2020.2983129 [DOI] [PubMed] [Google Scholar]
  • 28.Martelli F., Sassaroli A., Del Bianco S., et al. , “Solution of the time-dependent diffusion equation for layered diffusive media by the eigenfunction method,” Phys. Rev. E 67(5), 056623 (2003). 10.1103/PhysRevE.67.056623 [DOI] [PubMed] [Google Scholar]
  • 29.Martelli F., Tommasi F., Fini L., et al. , “Invariance properties of exact solutions of the radiative transfer equation,” J. Quant. Spectrosc. Radiat. Transf. 276, 107887 (2021). 10.1016/j.jqsrt.2021.107887 [DOI] [Google Scholar]
  • 30.Martelli F., Tommasi F., Sassaroli A., et al. , “Verification method of Monte Carlo codes for transport processes with arbitrary accuracy,” Sci. Rep. 11(1), 19486 (2021). 10.1038/s41598-021-98429-3 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Sassaroli A., Tommasi F., Cavalieri S., et al. , “Two-step verification method for Monte Carlo codes in biomedical optics applications,” J. Biomed. Opt. 27(08), 083018 (2022). 10.1117/1.JBO.27.8.083018 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Taylor J. R., An introduction to error analysis (University Science Books, 1997), 2nd ed. [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

Data underlying the results presented in this paper are not publicly available at this time but may be obtained from the authors upon reasonable request.


Articles from Optics Express are provided here courtesy of Optica Publishing Group

RESOURCES