Stimulated Raman scattering simulation for imaging optimization
Journal of the European Optical Society-Rapid Publications volume 17, Article number: 10 (2021)
Two simulation programs of a stimulated Raman scattering microscopy (SRS) imaging system with lock-in amplifier (LIA) detection were developed. SRS is an imaging technique based on the vibrational Raman cross-section as the contrast mechanism and enables fast, label-free imaging. Most SRS implementations are based on LIA detection of a modulated signal. However, building and operating such SRS set-ups still poses a challenge when selecting the LIA parameter settings for optimized acquisition speed or image quality. Moreover, the type of sample, e.g. a sparse sample vs. a densely packed sample, the required resolution as well as the Raman cross-section and the laser powers affect the parameter choice.
A simulation program was used to find these optimal parameters. The focal spot diameters of the individual lasers (pump and Stokes) were used to estimate the effective SRS signal focal spot and the (optical) spatial resolution. By calibrating the signal and noise propagation through an SRS system for a known molecule, we estimated the signal and noise input to the LIA. We used a low pass filter model to simulate the LIA behavior in order to find the optimal parameters (i.e. filter order and time constant).
Optimization was done for either image quality (expressed as contrast to noise ratio) or acquisition time. The targeted object size was first determined as a measure for the required resolution. The simulation output consisted of the LIA parameters, pixel dwell time and contrast to noise ratio.
In a second simulation we evaluated SRS imaging based on the same principles as the optimal setting simulation, i.e. the signals were propagated through an imaging system and LIA detection. The simulated images were compared to experimental SRS images of polystyrene beads.
Finally, the same software was used to simulate multiplexed SRS imaging. In this study we modeled a six-channel frequency-encoded multiplexed SRS system demodulated with six LIA channels. We evaluated the inter-channel crosstalk as a function of chosen LIA parameters, which in multiplex SRS imaging also needs to be considered.
These programs to optimize the contrast to noise ratio, acquisition speed, resolution and crosstalk will be useful for operating stimulated Raman scattering imaging setup, as well as for designing novel setups.
Stimulated Raman scattering microscopy (SRS) is a non-linear imaging modality with a spectral response similar to spontaneous Raman scattering. Compared with spontaneous Raman, SRS offers an increase in mapping speed of several orders of magnitude [1, 2]. Unlike spontaneous Raman, SRS is not affected by background fluorescence. SRS is realized by two laser beams that directly probe a specific vibrational state of a molecule if their photon energy difference matches the energy of a vibrational transition. Then the SRS signal can be detected as a gain in intensity of the low energy beam (stimulated Raman gain of Stokes) and a loss in the high energy beam intensity (stimulated Raman loss of pump) .
SRS, as a fast imaging modality, was first demonstrated by Freudiger et al.  and others [4, 5] with the introduction of an amplitude modulation of one of the laser beams and demodulation by a lock-in amplifier (LIA) for detection and noise filtering. Modulation at high frequency allowed the rejection of the lasers’ relative intensity noise (RIN) which dominates at frequencies below 1 MHz. A combination of a high modulation frequency, where the laser noise is low, and laser powers at which the shot-noise surpasses the thermal noise, results in shot-noise limited detection. After the probe beam is detected (e.g. the pump beam in stimulated Raman loss), demodulation of the signal takes place by means of a LIA or alternatively home built electronics (e.g. tuned amplifier ). Throughout this paper, we choose not to use the common convention of Stokes and pump beams to keep the discussion general. Instead, we refer to the amplitude modulated beam as the carrier, as it carries the amplitude modulation, and to the detected beam as probe.
While the modulation frequency is mentioned as an important parameter in most studies, only a few studies [6,7,8] discussed the (low pass) filter bandwidth, which is an important parameter that affects the acquisition speed and noise. Specifically for the LIA in the context of SRS, to the best of our knowledge no in-depth analysis has been reported for the input parameters of the filter bandwidth. While most SRS studies mention the time constant (TC), almost none  mention the equally important filter-order (n), which makes it impossible to calculate the bandwidth or compare modalities reported in the literature. Since the conventional imaging manner of non-linear modalities, such as SRS, is scanning the focal spot across the sample, the scanning speed, the filter response, the focal spot size, and the spatial resolution in the scanning direction are related. Thus, for an object of a given size and with the theory of the LIA filter response for a given bandwidth, one can extract the optimal settings needed for imaging this object with SRS, either with regard to the acquisition speed or to an image quality metric. For example, image quality metrics could be signal to noise ratio (SNR), contrast to noise ratio (CNR) [10,11,12], equivalent number of looks, edge preservation index or mean structural similarity index [13, 14]. In this paper, we use CNR as the image quality metric, as it is a quantification of the ability to distinguish a signal from the background.
Here, we describe the operation principle of LIAs, and investigate the signal and noise propagation in the time and frequency domain. Then, we link this to the physical properties of an SRS setup, such as laser powers, focal spot size and pixel dwell time (PDT), in order to optimize the SRS imaging. The optimization procedure is compiled into a simulation program in order to address different imaging scenarios: optimization for CNR or imaging time in a sparse or tightly packed sample. A detailed description of the input and output parameters of the software’s user interface is given in the optimal settings simulation section and in the supplementary material.
Furthermore, we generalize this result in order to demonstrate extended capabilities of this analysis. An additional simulation with a visual output (called imaging simulation) was created, based on the same LIA theory and input parameters. This simulation provides a qualitative image visualization, either for narrowband SRS, or for a multiplex SRS setup that has multiple modulated bands and multiple detection channels. As a test case, we analyze a simulated frequency channel encoded multiplex SRS setup as demonstrated before [15, 16], however in our simulation the signal is demodulated with a multi-channel LIA. Here, crosstalk between channels is also treated, in addition to resolution, CNR and acquisition speed.
Theory: parameters of the lock-in amplifier
The SRS signal is a small modulation carried on a large background. This large DC background is the source for the laser RIN and shot noise. In the LIA this large DC background is filtered out, and the small modulation is mixed with a reference frequency. Then, the signal amplitude is recovered by applying a low-pass filter, here modeled as a discrete time RC filter, which is an exponential running average filter :
Where k is the index of the processed sample Xout at specified discrete sampling times Ts. Thus, every Xout is a weighted average between the new input Xin and the previous sample Xout of k-1. It is possible to cascade these filters such that the signal and noise pass through multiple filters. The number of filters is called the filter order (n). The frequency domain response of the filter with TC and n is described as:
Where Δf is the difference between modulation frequency and the detection frequencies; the input frequencies to the LIA. The filter transmission which describes the signal propagation through such a filter is then:
Measurements that verify this model in the frequency and time domain are provided in Figure S1 in the supporting information.
The possible noise sources in SRS are the thermal (Johnson–Nyquist) noise from the different electronic components, the shot noise from the detected (probe) laser light and the frequency dependent RIN  from the laser source of the probe light. While the thermal noise is independent of the probe power, the shot noise is proportional to the square-root of the probe power. We ignored the RIN in our analysis for two reasons. One was the assumption that thermal or shot noise limited systems cover most scenarios for SRS imaging, and provide a sufficient description for our analysis. The second was that our experimental system is either thermal or shot noise limited. Since the detection frequency is above 1 MHz, the RIN is small compared with the thermal or shot-noise for the power range that was used. With increasing powers, the photo-detector saturates before RIN dominates the noise over thermal or shot noise (Figure S2d).
For the thermal and shot noise contributions, the propagation of the noise from the detector through the LIA is determined by the bandwidth of the filter. A useful expression for the quantification of the noise bandwidth is the noise equivalent power bandwidth (NEPBW, Figure S2a), which assumes a flat (white) noise spectrum. It is modeled as a rectangular-shaped filter, which lets the same amount of noise power pass as the actual filter. The flat noise spectrum assumption is valid for small bandwidths relative to any large non-flatness in the spectrum caused by electronic components (e.g. photo-diode or trans-impedance amplifier). The NEPBW is derived from the discrete time RC filter, and is therefore described by the same TC and n parameters. Integration of the square of the filter transmission (Eq. 3) gives:
Where the filter order n is expressed through the gamma function. The NEPBW has frequency units (Hz).
Calibration of signal and noise
For the calibration of our system we used the Raman signal of a polystyrene (PS) bead as a test sample at 1602 cm− 1. The signal calibration coefficient Csig is defined as the product of the Raman cross-section of PS and the number of molecules in the focal volume, propagated through the collection optics and the detection electronics (photo detector, trans impedance amplifier and LIA). If we wish to use this result for another analyte than PS, we simply have to determine the ratio between the signals generated by both analytes on our system (i.e. convert the cross-section from one to another). Accordingly, CTN, CSN are the thermal and shot noise calibration coefficients, which are independent of the analyte cross-section in SRS:
where Sps is the signal generated by PS and is measured in Volts at the output of the LIA, Pc is the average intensity of the modulated carrier and Pp is the intensity of the probe in milli-Watts. In addition, NT and NS are the noise contributions of the thermal noise and the shot noise, respectively, which are given in Volts. The calibration coefficients were extracted from a fit to the measurements shown in Figure S2c for the signal and S2d for the noise contributions. In these measurements the ratio between the carrier and the probe power was always set to 2:1 , which is reflected in the slope of 2 in the signal graph (Figure S2c) that it follows from the product of the carrier and probe powers. From the linear part of that slope we extract the coefficient Csig following Eq. (5). The slope of the shot noise region in the noise graph as a function of probe power in Figure S2d follows a square root relation to the probe power, and is an indication that the system is indeed shot noise limited when using these powers as explained in Figure S2b. The coefficient CSN is derived from the slope of Figure S2d, following Eq. (7), and CTN is calculated from Eq. (6), where NT is measured with no light on the detector. These coefficients are used as default input to the simulations explained below, but can be changed to fit a simulation of any SRS system: Csig = 3 × 10− 6 V/mW2, CTN = 1.518 × 10− 7 V/√Hz and CSN = 1.36 × 10− 7 V/√(mW Hz).
Focal spot size and optical spatial resolution
In order to relate the LIA performance with different settings to imaging parameters of a given object, the focal spot size of SRS has to be considered. Since the SRS signal is the product of two beam intensities, the effective focal spot intensity profile of SRS is the product of the carrier and probe beams’ focal spot profiles. Assuming both have a Gaussian intensity profile and are slightly underfilling the objective’s back aperture [20, 21], we can approximate both beams to have a Gaussian profile at the focal plane and their product will be a Gaussian as well. The resulting product beam width or SRS beam full width at 1/e2, ωSRS, is described by Eq. (8) :
The focal spot widths of the carrier and the probe beams were measured by a knife-edge measurement, taking the derivative of the intensity profile and fitting it to a Gaussian. Since sub-micron widths were expected, we used a USAF target to replace the knife. This was repeated at various z depths. An X-Z intensity profile of the 1064 nm beam is shown in Fig. 1a for illustration (with x being the scanning direction and z as the depth); the dashed red line indicates the depth of the steepest measured intensity profile. The derivative of each line at different depths was fitted to a Gaussian from which the beam widths were extracted. The minimum of these widths was found by fitting a parabola. The effective SRS beam width was determined as described by Eq. (8). Figure 1b shows the smallest widths from knife edge measurements of the carrier and the probe with a Gaussian fit. The resulting 1/e2 width is 0.89 μm for the probe focal spot size and 1.03 μm for the carrier focal spot size. Accordingly, the SRS beam effective spot size width is 0.67 μm. Following the resolution derivation for a Gaussian beam approximation as described in the supplementary information (Eq. S2-S5) [23,24,25] we get the SRS Rayleigh resolution as 1.03∙ωSRS = 0.69 μm.
Optimal settings simulation
The optimal settings simulation gives the LIA’s filter order and time constant optimal values. In order to properly simulate the SRS imaging behavior, we have to consider first the physical input parameters of the imaging system. The input signal is given by Eq. (5), and only requires the laser powers as input, given that Csig is calibrated. Upon calibration of CTN and CSN, the noise contributions can be simulated as well for each TC and filter order with Eqs. (6, 7) and the NEPBW expression in Eq. (4). For the optical point spread function (PSF), the required input is the 1/e2 radius of the probe and carrier beams and Eq. (8). A detailed description of the input parameters and the setup parameters is given in Figure S3 and the description of the algorithm is shown in Fig. 2.
Simulation of the lock-in parameters is done with respect to an object size input. The object is modelled as a top-hat (black lines in Fig. 3) with a width of the object size and a height of the signal SPS (Eq. 5). First, it is convolved with the PSF (blue lines in Fig. 3), which we derived from the SRS signal’s effective spot size. The convolution of the top-hat object with the PSF results in softening of the edges of the objects (i.e. blurring). For a small object, it might result in a lower peak than the original object (blue line in Fig. 3a and c), while for bigger objects the edges blurring is small relative to the object size, thus not affecting the peak height. This explains the peak height difference observed between Fig. 3a and b, as well as 3c and 3d. Then, the convolution of the input object with the PSF propagates through the low pass filter described by Eq. (1) (red lines Fig. 3). The signal propagation in time translates into a spatial signal propagation by the scanning speed, which is simply the pixel size divided by the pixel dwell time. The filter response of the object results in further broadening (i.e. blurring) of the object, a spatial (horizontal) offset and max signal reduction. In a dense sample it also results in contrast reduction (red lines in Fig. 3c and d).
The LIA parameters are then optimized by running this simulation multiple times over a range of TCs and filter orders, optimizing for either imaging time (for a given CNR), or CNR (for a given imaging time). The CNR [10,11,12] is calculated as follows:
where Ipeak is the signal value at the apex of the output curve, and Ivalley is the value at a local minimum between two apexes in a dense sample case (red lines in Fig. 3c-d). In the sparse sample case, the Ivalley is zero (red lines in Fig. 3a-b). The noise, however, is the same everywhere in SRS, as it is independent of the signal, but rather depends on the probe laser power as illustrated in Figure S2b. The CNR is the difference between two signals with a similar noise level, so there is an additional √2 factor in the dominator compared with the SNR, which is simply dividing the signal by the noise. In both cases, CNR is a single term giving a description of the quality of the signal (like SNR ) as well as a measure to distinguish an object from its surrounding (like contrast).
Different lock-in parameters are tested to find the combination that yields the shortest imaging time or the maximum CNR, respectively. This can be done either for a sparse sample (single particle) case or a dense sample case (tightly packed particles). In a dense sample, the object size represents both an object size and the gap between two objects, i.e. the spatial resolution is half of the object’s reciprocal (in units of line-pairs per millimeters).
The simulation produces plots (Fig. 3) to illustrate the signal propagation of a given object in terms of signal response and delay. The LIA setting filter order and TC are in the title of these plots. The full output parameters, like the CNR, filter order, time constant and PDT are then shown in the user interface (see Figure S3).
As an example, we tested the response for a PDT as short as 10 μs, for an object in a dense sample with 1 μm object size and 1 μm pixel size. In this test case the maximum CNR was 4.6, found for a TC of 0.85 μs and a filter order of n = 8 (see Fig. 3c).
Alternatively, the simulation can also optimize the lock-in parameters to find the minimum imaging time for a specified CNR, which is calculated the same way as described above. In this case, the shortest PDT is chosen for the optimal TC-filter order combination. For the same test case above, first setting CNR = 2, we get PDT = 2.7 μs, TC = 0.23 μs with filter order n = 8 as the parameters that give the shortest imaging time for a minimum required spatial resolution in the scanning direction.
Imaging simulation compared with SRS imaging
The same LIA’s filter response in Eq. 1 in combination with the calibrated signal and noise terms (Eqs. 5–7) and the PSF (Eq. 9) can be used for visualizing SRS imaging. The imaging simulation receives the aforementioned system and imaging parameters as input together with an one-dimensional or two-dimensional object input. The result is a simulated image of an object passing through the SRS imaging system. Possible input objects are one dimensional top hat object, one dimensional square wave, and two-dimensional round objects to simulate beads. For example, beads imaged with SRS are compared with simulated 2D beads images in Fig. 4, both with the same system and imaging parameters.
The imaging simulation creates an image using the input objects and input parameters as follows. Firstly, the shape of the object is convolved with the PSF. Secondly, the object is scaled by the beam powers according to Eq. (5) to form the input signal and the noise is added (Eqs. 6 and 7). Finally, the object is passing through the low-pass filter as described by Eq. (1) by virtual horizontal scanning (left to right). A description of the imaging simulation interface, with different input parameters and setup options, is given in the Supplementary Material, Figure S4.
The results in Fig. 4 demonstrate the principles discussed in the ‘Optimal setting simulation’ section. Figure 4a and b show images from measurements and simulation of a 20-μm bead, respectively, optimized for a single object size of 1 μm, with a good spatial resolution and high noise as shown by the profile insets. Doing the same in Fig. 4c and d with an optimization for 20 μm objects reduces the noise due to the slower response of the filter (with a narrower filter bandwidth), but also reduces the signal’s peak height in the measured bead image. The simulation automatically scales the signal to cover the whole dynamic range. Nevertheless, both in measurement and simulation, optimization for 20 μm results in a better CNR, which allows us to detect this single object better in an image with a given PDT, albeit blurred. The resulting CNR values, together with the optimized lock-in parameters are listed in Table 1. Additionally, the slower filter response leads to a noticeable horizontal displacement of the objects, as seen in Fig. 4c and d compared with Fig. 4a and b.
Figure 4e-h show images of 2 measurement–simulation-pairs of two beads separated by 2 μm. One pair was optimized for a 2 μm object in a dense sample (Fig. 4e and f), and the other for a 20 μm object (Fig. 4 g and h). In the latter case, the slower filter response leads to a lower noise level, but also to a less deep signal in the gap between the beads, which counteracts any improvement of the noise level. Thus effectively, the CNR decreases (see Table 1).
Multiplex SRS imaging simulation
The imaging simulation was generalized to provide not only a visualization of a narrowband imaging system, but also of multiplexed SRS imaging approaches. In this section, we simulated and investigated settings for a multiplex SRS system, with modulation encoded channels and a single detector. This analysis of frequency encoded multiplex SRS also considered the channels’ spacing, i.e. the separation between adjacent channels in the frequency domain. This is done in order to avoid crosstalk on a limited detection bandwidth while still optimizing for CNR or acquisition speed.
We use the same imaging simulation described in the previous section to investigate an imaging approach for the detection of multiple bands at the same time. It is a frequency-encoded multiplex SRS approach, similar to the work done by Liao et al. in 2015 . Here we name it ‘single carrier modulation’. In this approach, a combination of a narrowband and a broadband laser beam is used, where the narrowband is used as a probe. The broadband beam is divided into different spectral bands. Each band, that we also call channel, is being modulated at a different frequency. As a result, this multiplex SRS approach has many carriers, while only one probe is used. After the sample, the modulation is transferred to the probe by the SRS process. The probe is then measured by a single detector. Other multiplexing options are shown in the user interface (Figure S4).
In multiplex SRS, the low pass filter bandwidth plays a role not only in determining the signal and noise propagation, but also for the crosstalk between the channels. In our experimental setup we used a trans-impedance amplifier to amplify the signal around the modulation frequency. The trans-impedance amplifier has a bandwidth of 43.5 kHz around 3.63 MHz, with an amplification of above 99% of the original amplification of 86 dB. This means that the measured calibration coefficients (Eqs. 5–7) provide a good approximation that can be used for the multiplex simulation within that bandwidth. In this section we simulated multiple beads at 6 different modulation channels, modeling samples of different materials. For simplicity, all Raman cross-sections were set to that of the 1602 cm− 1 band of polystyrene. The frequency separation between adjacent channels was 8.7 kHz to fit the 6 channels in the aforementioned bandwidth.
In Fig. 5, we show the results of simulations with 3 TC settings, for a hypothetical situation of six different beads of 20 μm diameter, where each bead is in a different channel. Figure 5a is a schematic image showing the beads. Figure 5b is a simulated image with settings optimized for a 20 μm object (bead #3 in blue in Fig. 5a) in a sparse sample, which results in no crosstalk; note the horizontal displacement of the bead due to the slow filter response and the homogenous signal region on the left hand side of the image, which is a simulation artefact. Figure 5c is an image using parameters optimized for 1 μm, which shows a sharper image but also crosstalk in channel 3 from other channels. Figure 5d shows the results with filter order 1 and time constant 125 μs, which theoretically should result in the same CNR as in 5b, since these settings have the same NEPBW as in 5b. However, due to the less steep filter shape of filter order 1 than filter order 8, there is more crosstalk from neighboring channels.
These results can be understood through the filter transmission (Eq. (3)). If a channel’s bandwidth is larger than the frequency distance between neighboring channels, the signal from a neighboring channel will appear as an oscillation modulated at the frequency difference of the channels (i.e. beating frequency at Δf). By multiplying the transmission of the channel at Δf, with the signal strength at the neighboring channel (Eq. 5), we get the value for the amplitude of this crosstalk oscillation.
In this study, key parameters of the lock-in amplifier were investigated with respect to imaging parameters of SRS. We showed that the imaging parameters, like the effective SRS focal spot and laser powers, are important in the analysis for finding the optimal LIA parameters; filter order and time constant. For this analysis, the specific signal and noise propagation through the LIA’s low pass filter are explained and described through the calibration coefficients. Based on the imaging parameters and Eq. 1, together with the definition for the NEPBW, we constructed a simulation program to find the optimal lock-in amplifier parameters. The optimization can be done for CNR or imaging speed, and for a sparse sample or a tightly packed sample. We also show an imaging simulation which is able to further evaluate our result. Finally, we showed how the insights we gained on the optimal settings can help to simulate and evaluate more advanced set-ups, such as multiplex SRS.
Combining the LIA parameters, the PDT and the SRS beam size (Eq. 8) with the object size to determine the CNR in spares and dense samples shows the benefit of the optimal setting simulation. The CNR determines with what contrast an object can be imaged with respect to the noise, and with what contrast two objects of a given size can be discerned from one another. This defines the system resolution in terms of contrast. Therefore, we choose CNR as the image quality definition to account for both contrast and noise, which is different from the common use of SNR for image quality assessment .
Other quality metrics which could be considered are SNR, equivalent number of looks, edge preservation index or mean structural similarity index [13, 14]. However, SNR and equivalent number of looks do not account for the background level, which could affect the contrast, hence affecting the detectability of an object in a tightly packed sample. Edge preservation index and mean structural similarity index require a comparison to a reference image, which could be the original object, or the input object (after convolution with the focal spot). Figures 3 and 4 illustrate that for optimized parameters for CNR the edges are not always preserved. The mean structural similarity index would judge the quality of the image based on the structural similarities to the original input. Again, Fig. 3 shows that structural similarities could be quite different from the detectability metric, here represented by the CNR.
The numerical simulation for the signal response in time due to the filter shape is necessary for optimization since signal, contrast and noise are all affected when the LIA parameters are changed and they are constrained by the scanning speed. This is even more so when the CNR is calculated for a tightly packed sample to evaluate the resolution, when also the signal level between objects has to be determined.
These principles are illustrated in Figs. 3 and 4. In Fig. 3, the LIA parameters for CNR optimization are plotted in the title of the graphs in which the signal propagation is shown. The same can be done for acquisition speed optimization. The optimization is done for the smallest object size one would like to observe in a sample. The term “object” here can refer to a particle in a sparse sample, or the half period of the highest spatial frequency in a detailed sample. We demonstrated these principles in Fig. 4 by using the result parameters of the optimal settings simulation for (real) imaging and the imaging simulation for comparison. The results of experiment and simulation match quite well, supporting the argument that for an optimized quality of the images, the object size and the nature of the sample have to be considered when imaging with SRS.
We also use the imaging simulation to provide insight into a frequency encoded multiplex setup. Different realizations of setups can be investigated, and we demonstrated this for one of them. Figure 5 illustrates how in multiplex SRS the choice of filter bandwidth affects not only the signal time response and the noise levels, but also the crosstalk between the different channels. Although the NEPBW is used here as an expression for the bandwidth, it is not describing the real low pass filter shape which has a shape determined by the filter order. Generally, a steeper slope of the filter’s frequency cutoff is preferred, as a shallow slope contributes to crosstalk from other channels (see Fig. 5d).
In Fig. 5b there is a homogeneous signal region at the left hand side of the image, which is a simulation artefact. Unlike a real imaging scenario, where the slow filter’s response averages the signal and noise from the previous row of the image, the averaging of the signal and noise in the simulation starts again in each row. Since there is no signal and noise to average in the beginning of the row, the first few pixels in each row may appear as similar to those above and below them, i.e. the signal is less random and more homogenous. The same effect can be observed in Fig. 4d and h, but less prominently due to increased contrast in these images (compared to Fig. 5b).
Some assumptions, made for this simulation, need to be considered. First, the calibration of the noise assumes a flat spectrum, which is valid for a narrow bandwidth of the low-pass filter compared to any variations in the input frequency spectrum to the LIA, i.e. a trans-impedance amplifier with an amplification band wider than the low-pass filter band. This means that for large bandwidths (very short time constants) the noise propagation cannot be calculated in the way presented in this study. Second, the input object was taken as a top-hat shaped object, which is an unrealistic object shape, especially for micron size objects. For a more realistic shape such as a sphere, the effective signal response will be slower, because it takes longer for the focal volume to completely overlap with the sample. Third, the laser beams are approximated to have a Gaussian profile at the focus, which assumes Gaussian beams before entering the objective (TEM 00), and an under-filling of the objective’s back aperture. Of course, under-filling of the objective might reduce the effective numerical aperture, so we recommend matching the 1/e2 radius of a beam to the objective’s back aperture radius at this location. Modelling with Bessel beams should give even more exact solutions to the beam profile especially in the case of overfilled objective’s back aperture . Fourth, we used a PS bead as our test sample. Commercial PS beads are consistent in size and their physicochemical properties, hence the signal response is expected to be consistent. For correctly simulating another type of object with a significantly different Raman cross-section, one should carefully calibrate for this material, or compare between the PS Raman cross-section and that of the compound, since the SRS spectral response follows the spontaneous Raman spectra [2, 3, 27]. Finally, we found that the LIA operating at high frequencies and short time constants is different from the theory prediction (Supplementary Fig. S1). For every LIA these limits should be found to define where the simulation results are valid. Nevertheless, we believe that having a tool which provides these optimal settings can improve an imaging session in a straightforward manner for a given sample and a properly defined setup. For example, such a tool may contribute towards a more accurate analysis of environmental microplastics .
Finally, the imaging simulation was also used to determine crosstalk in a complex setup where a few channels were demodulated simultaneously. By doing this, we showed that many scenarios can be evaluated by using this kind of simulation and analysis. We believe that with the same analysis, other types of setups can be evaluated, prior to their realization. The design process of such a setup can then be made more efficient.
The proposed simulation is tailored specifically for SRS with a LIA detection. However, with some modifications, such as different signal and noise calibration and PSF determination, similar simulations could be realized for other techniques that are based on laser scanning a focal spot across a sample and using LIA for detection. For example, although scanning near-field optical microscopy  has a different signal and noise generation mechanism, the principles of LIA detection are the same and the tradeoff between the scanning speed, image quality and resolution still holds. The same applies to photothermal imaging [29, 30], a technique with a setup scheme similar to SRS (pump-probe beams coinciding on a sample, with LIA detection). Another example is frequency domain photoacoustic tomography, a technique which is theoretically well understood , and which could benefit from this type of analysis to fine tune its resolution and scanning speed at no additional costs . However, since the noise and signal might be generated differently than in SRS, this should be treated carefully (for example, the noise could be dependent on the signal level, so the CNR will be calculated differently).
In this study we presented two SRS simulations. One can directly improve SRS imaging by finding optimal LIA parameters of an existing setup for different imaging scenarios. The other simulation provides visualization of SRS imaging results and can also simulate various multiplex SRS approaches (Figure S4).
The simulations describe the standard tools used for SRS imaging, i.e. two laser beams, modulator, scanning laser microscope and a lock-in amplifier. Thus, these simulations can be used to facilitate SRS studies, by directly improving SRS imaging, which will be especially important in the use of dynamic or irreplaceable samples. The same approach can also help to design new SRS setups. Other techniques which are based on lock-in detection can benefit from a similar analysis as well, but may require some modifications.
Experimental set-up description
The narrow-band stimulated Raman loss setup used here was described previously [1, 19, 22, 33]. A frequency doubled Nd:YAG laser (Plecter Duo, Lumera) with 80 MHz repetition rate, 8 ps pulse length at a 532 nm output pumped an optical parametric oscillator (OPO, Levante Emerald, APE). A second output laser beam at 1064 nm was amplitude modulated with an acousto-optical modulator (AOM, 3080194, Crystal Technology) at 3.636 MHz. The laser and OPO beams were overlapped temporally with a delay stage and overlapped spatially with a dichroic mirror. The overlapping beams were sent into a laser scanning microscope, 7MP (Zeiss), with a 32× water immersion objective (C-achroplan W, numerical aperture [NA] = 0.85) to scan the sample. All measurements were done with 14.6 mW average power of the probe, and 24.7 mW power of the carrier on the sample.
Collection was done by a water immersion condenser (NA = 1.2) below the sample, followed by an optical filter to block the carrier. The probe was detected by a large-area photodetector (DET36A, Thorlabs) integrated with a home-built trans-impedance amplifier, with a resonance amplification at 3.64 MHz and a bandwidth (FWHM) of 0.387 MHz. The large area detector was a requirement stemming from the non-descanned detection of the microscope, and the modulation frequency was a compromise between the detector’s (area dependent) capacitance and the trans-impedance amplification.
The lock-in amplifier (LIA, HF2LI, Zurich Instruments) was used for signal demodulation, and reading its output is possible in two different ways. One is by directly sending one sample per pixel to the computer with the LIA software (LabOne) which we call digital sampling. The other method is called analog sampling, which sends the samples through an analog output to an analog-to-digital converter (ADC) which integrates all samples per pixel. Only the in-phase component with the carrier is measured. Throughout this study the LIA output was measured using the latter method. Digital acquisition can also be simulated, and it only differs in the calibration coefficients of the noise (see Figure S2d).
The simulations and apps were written in Matlab 2018b, including the communication toolbox. The integration in Eq. 4 was done with Mathematica.
Stimulated Raman scattering microscopy
Relative intensity noise
Signal to noise ratio
Contrast to noise ratio
Pixel dwell time
Noise equivalent power bandwidth
Point spread function
Optical parametric oscillator
Zada, L., Leslie, H.A., Vethaak, A.D., Tinnevelt, G.H., Jansen, J.J., de Boer, J.F., Ariese, F.: Fast microplastics identification with stimulated Raman scattering microscopy. J. Raman Spectrosc. 49(7), 1136–1144 (2018). https://doi.org/10.1002/jrs.5367
Freudiger, C.W., Min, W., Saar, B.G., Lu, S., Holtom, G.R., He, C., Tsai, J.C., Kang, J.X., Xie, X.S.: Label-free biomedical imaging with high sensitivity by stimulated Raman scattering microscopy. Science. 322(5909), 1857–1860 (2008). https://doi.org/10.1126/science.1165758
Cheng, J.-X., Xie, X.S.: Coherent Raman scattering microscopy. Boca Raton: CRC Press; (2013). https://doi.org/10.1201/b12907
Ozeki, Y., Dake, F., Kajiyama, S., Fukui, K., Itoh, K.: Analysis and experimental assessment of the sensitivity of stimulated Raman scattering microscopy. Opt. Express. 17(5), 3651–3658 (2009). https://doi.org/10.1364/oe.17.003651
Nandakumar, P., Kovalev, A., Volkmer, A.: Vibrational imaging based on stimulated Raman scattering microscopy. New J. Phys. 11(3), (2009). https://doi.org/10.1088/1367-2630/11/3/033026
Slipchenko, M.N., Oglesbee, R.A., Zhang, D., Wu, W., Cheng, J.X.: Heterodyne detected nonlinear optical imaging in a lock-in free manner. J. Biophotonics. 5(10), 801–807 (2012). https://doi.org/10.1002/jbio.201200005
Saar, B.G., Freudiger, C.W., Reichman, J., Stanley, C.M., Holtom, G.R., Xie, X.S.: Video-rate molecular imaging in vivo with stimulated Raman scattering. Science. 330(6009), 1368–1370 (2010). https://doi.org/10.1126/science.1197236
Liao, C.S., Wang, P., Wang, P., Li, J., Lee, H.J., Eakins, G., Cheng, J.X.: Optical microscopy: spectrometer-free vibrational imaging by retrieving stimulated Raman signal from highly scattered photons. Sci. Adv. 1(9), 1–9 (2015). https://doi.org/10.1126/sciadv.1500738
Ferrara, M.A., Filograna, A., Ranjan, R., Corda, D., Valente, C., Sirleto, L.: Three-dimensional label-free imaging throughout adipocyte differentiation by stimulated Raman microscopy. PLoS One. 14(5), 1–16 (2019). https://doi.org/10.1371/journal.pone.0216811
Dickerscheid, D., Lavalaye, J., Romijn, L., Habraken, J.: Contrast-noise-ratio (CNR) analysis and optimisation of breast-specific gamma imaging (BSGI) acquisition protocols. EJNMMI Res. 3(1), 1–9 (2013). https://doi.org/10.1186/2191-219X-3-21
Welvaert, M., Rosseel, Y.: On the definition of signal-to-noise ratio and contrast-to-noise ratio for fMRI data. PLoS One. 8(11), e77089 (2013). https://doi.org/10.1371/journal.pone.0077089
Timischl, F.: The contrast-to-noise ratio for image quality evaluation in scanning electron microscopy. Scanning. 37(1), 54–62 (2015). https://doi.org/10.1002/sca.21179
Adabi, S., Rashedi, E., Clayton, A., Mohebbi-Kalkhoran, H., Chen, X.W., Conforto, S., Nasiriavanaki, M.: A learnable despeckling framework for optical coherence tomography images. J. Biomed. Opt. 23, (2018). https://doi.org/10.1117/1.jbo.23.1.016013
Eybposh, M.H., Turani, Z., Mehregan, D., Nasiriavanaki, M.: Cluster-based filtering framework for speckle reduction in OCT images. Biomed. Opt. Express. 9(12), 6359–6373 (2018). https://doi.org/10.1364/BOE.9.006359
Fu, D., Lu, F.K., Zhang, X., Freudiger, C., Pernik, D.R., Holtom, G., Xie, X.S.: Quantitative chemical imaging with multiplex stimulated Raman scattering microscopy. J. Am. Chem. Soc. 134(8), 3623–3626 (2012). https://doi.org/10.1021/ja210081h
Liao, C.S., Slipchenko, M.N., Wang, P., Li, J., Lee, S.Y., Oglesbee, R.A., Cheng, J.X.: Microsecond scale vibrational spectroscopic imaging by multiplex stimulated Raman scattering microscopy. Light Sci. Appl. 4(3), 1–9 (2015). https://doi.org/10.1038/lsa.2015.38
Zurich Instruments AG. HF2LI: HF2 User Manual, Revision 21.02.0. Zurich (2014). https://docs.zhinst.com/pdf/ziHF2_UserManual.pdf.
Audier, X., Heuke, S., Volz, P., Rimke, I., Rigneault, H.: Noise in stimulated Raman scattering measurement: from basics to practice. APL Photonics. 5(1), 1–33 (2020). https://doi.org/10.1063/1.5129212
Moester, M.J.B., Ariese, F., De Boer, J.F.: Optimized signal-to-noise ratio with shot noise limited detection in stimulated Raman scattering microscopy. J. Eur. Opt. Soc. 10, (2015). https://doi.org/10.2971/jeos.2015.15022
Wang, K., Liang, R., Qiu, P.: Fluorescence signal generation optimization by optimal filling of the high numerical aperture objective lens for high-order deep-tissue multiphoton fluorescence microscopy. IEEE Photonics J. 7(6), 1–8 (2015). https://doi.org/10.1109/JPHOT.2015.2505145
Hess, S.T., Webb, W.W.: Focal volume optics and experimental artifacts in confocal fluorescence correlation spectroscopy. Biophys. J. 83(4), 2300–2317 (2002). https://doi.org/10.1016/S0006-3495(02)73990-8
Moester, M.J.B., Zada, L., Fokker, B., Ariese, F., de Boer, J.F.: Stimulated Raman scattering microscopy with long wavelengths for improved imaging depth. J. Raman Spectrosc. 50(9), 1321–1328 (2019). https://doi.org/10.1002/jrs.5494
Thomann, D., Rines, D.R., Sorger, P.K., Danuser, G.: Automatic fluorescent tag detection in 3D with super-resolution: application to the analysis of chromosome movement. J. Microsc. 208(1), 49–64 (2002). https://doi.org/10.1046/j.1365-2818.2002.01066.x
Inoue, S., Oldenbourg, R.: Microscopes. In: Bass, M., Van Stryland, E.W., Williams, D.R., Wolfe, W.L. (eds.) Handbook of optics, vol. 2, 2nd edn, pp. 17.1–17.52. New York City: McGraw-Hill, Inc; (1995)
Benninger, R.K.P., Piston, D.W.: Two-photon excitation microscopy for the study of living cells and tissues. Curr. Protoc. Cell Biol. 59(1), 1–24 (2013). https://doi.org/10.1002/0471143030.cb0411s59
Wang, X., Zhan, Y., Liang, J., Chen, X.: Simulation of the stimulated Raman scattering signal generation in scattering media excited by Bessel beams. In Label-free Biomedical Imaging and Sensing (LBIS) 2019 (eds. Shaked, N. T. & Hayden, O.) 27, (SPIE, 2019). https://doi.org/10.1117/12.2508494.
Rigneault, H., Berto, P.: Tutorial: coherent Raman light matter interaction processes. APL Photonics. 3(9), (2018). https://doi.org/10.1063/1.5030335
Ishibashi, T., Cai, Y.: Polarization properties in apertureless-type scanning near-field optical microscopy. Nanoscale Res. Lett. 10(1), 375 (2015). https://doi.org/10.1186/s11671-015-1062-5
Samolis, P.D., Sander, M.Y.: Phase-sensitive lock-in detection for high-contrast mid-infrared photothermal imaging with sub-diffraction limited resolution. Opt. Express. 27(3), 2643–2655 (2019). https://doi.org/10.1364/oe.27.002643
Totachawattana, A., Liu, H., Mertiri, A., Hong, M.K., Erramilli, S., Sander, M.Y.: Vibrational mid-infrared photothermal spectroscopy using a fiber laser probe: asymptotic limit in signal-to-baseline contrast. Opt. Lett. 41(1), 179–182 (2016). https://doi.org/10.1364/ol.41.000179
Baddour, N.: Theory and analysis of frequency-domain photoacoustic tomography. J. Acoust. Soc. Am. 123(5), 2577–2590 (2008). https://doi.org/10.1121/1.2897132
Leboulluec, P., Liu, H., Yuan, B.: A cost-efficient frequency-domain photoacoustic imaging system. Cit. Am. J. Phys. 81(9), 712–717 (2013). https://doi.org/10.1119/1.4816242
van Haasterecht, L., Zada, L., Schmidt, R.W., de Bakker, E., Barbé, E., Leslie, H.A., Vethaak, A.D., Gibbs, S., de Boer, J.F., Niessen, F.B., van Zuijlen, P.P.M., Groot, M.L., Ariese, F.: Label-free stimulated Raman scattering imaging reveals silicone breast implant material in tissue. J. Biophotonics. 13(5), e201960197 (2020). https://doi.org/10.1002/jbio.201960197
We thank Dr. Benjamin Lochocki for his insightful comments.
Project name: SRS-simulation.
Project home page: https://zenodo.org/record/4108541#.X461s9BvbIU.
Archived version: DOI https://doi.org/10.5281/zenodo.4108541.
Operating system(s): Window10.
Programming language: Matlab 2018b.
Other requirements: Matlab communication toolbox.
License: MIT License.
Any restrictions to use by non-academics: None.
We gratefully acknowledge financial support from the Netherlands Organization for Scientific Research (NWO) in the framework of the Technology Area COAST of the Fund New Chemical Innovations (Project “IMPACT”: 053.21.112), and NWO Groot grant to J. F. d. B., and from Laserlab Europe (EU Horizon 2020 program, Grant 654148).
The authors declares that they have no competing interests.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information: Lock-in behavior characterization, Rayleigh resolution of SRS, Noise behavior, Optimal settings simulation graphical user interface description and Imaging simulation graphical user interface.
About this article
Cite this article
Zada, L., Fokker, B., Leslie, H.A. et al. Stimulated Raman scattering simulation for imaging optimization. J. Eur. Opt. Soc.-Rapid Publ. 17, 10 (2021). https://doi.org/10.1186/s41476-021-00155-w
- Lock-in amplifier