Skip to main content
Communications Chemistry logoLink to Communications Chemistry
. 2021 Jun 7;4:84. doi: 10.1038/s42004-021-00512-3

Resonant X-ray emission spectroscopy from broadband stochastic pulses at an X-ray free electron laser

Franklin D Fuller 1,, Anton Loukianov 1, Tsukasa Takanashi 2, Daehyun You 2, Yiwen Li 2, Kiyoshi Ueda 2, Thomas Fransson 1, Makina Yabashi 3, Tetsuo Katayama 3,4, Tsu-Chien Weng 5, Roberto Alonso-Mori 1, Uwe Bergmann 6, Jan Kern 7, Vittal K Yachandra 7, Philippe Wernet 8, Junko Yano 7
PMCID: PMC8920481  NIHMSID: NIHMS1782400  PMID: 35291552

Abstract

Hard X-ray spectroscopy is an element specific probe of electronic state, but signals are weak and require intense light to study low concentration samples. Free electron laser facilities offer the highest intensity X-rays of any available light source. The light produced at such facilities is stochastic, with spikey, broadband spectra that change drastically from shot to shot. Here, using aqueous ferrocyanide, we show that the resonant X-ray emission (RXES) spectrum can be inferred by correlating for each shot the fluorescence intensity from the sample with spectra of the fluctuating, self-amplified spontaneous emission (SASE) source. We obtain resolved narrow and chemically rich information in core-to-valence transitions of the pre-edge region at the Fe K-edge. Our approach avoids monochromatization, provides higher photon flux to the sample, and allows non-resonant signals like elastic scattering to be simultaneously recorded. The spectra obtained match well with spectra measured using a monochromator. We also show that inaccurate measurements of the stochastic light spectra reduce the measurement efficiency of our approach.

Subject terms: Chemical physics, Physical chemistry, Inorganic chemistry, X-ray diffraction, Characterization and analytical techniques


X-ray absorption and X-ray free electron lasers are important tools to study chemical and structural dynamics, but spectral details like pre-edge features are inherently hard to detect. Here, the authors show that stochastic spectroscopy can yield similar spectral information to monochromatic spectroscopies, while increasing signal yield and reducing acquisition time.

Introduction

Over the last 10 years, X-ray Free Electron Lasers (XFELs) have shown their potential for being transformative tools to study chemical and structural dynamics of materials, molecular and biological systems. The X-ray pulses generated by an XFEL are extremely intense with short pulse durations of typically 50 fs or less and they contain 1012 to 1013 photons per pulse, which are as many photons as synchrotron radiation sources generate in one second. Due to its high spatial coherence, XFEL radiation can also be easily focused into a micrometer-size spot. These exceptional properties of XFEL radiation, together with shot-by-shot data collection, make it possible to follow chemical reactions, transformations of materials, molecular dynamics and biological processes in real time13.

Except for seeded XFELs4, XFEL sources are based on the principle of self-amplified spontaneous emission (SASE) for the amplification of short X-ray pulses. SASE XFELs are intrinsically stochastic and produce pulses with spikey spectral amplitude that change dramatically from shot to shot5. When tuned to an atomic edge, the SASE spectral amplitude variation induces shot to shot fluctuations in excited state population that correspond to a weighted superposition of populations created by the constituent colors of the SASE pulse. Correlating SASE spectral amplitude with a signal proportional to excited state population, therefore allows one to recover various resonant signals like X-ray absorption, anomalous scattering, and Resonant X-ray Emission Spectroscopy (RXES), with spectral resolution determined by the SASE spikes, rather than the overall SASE bandwidth. In order to recover a spectrum, i.e., the monochromatic response, from polychromatic stochastic light, the spectrum of the source must be measured accurately for each shot along with every observation from the sample so that the desired signal can be recovered from the correlation of the two measurements. Hard X-ray (>5 keV) signals are well suited to explore using SASE spectral fluctuations for resonant measurements, since the available SASE spectral diagnostics69 have both high spectral resolution and excellent signal to noise characteristics.

Kayser et al.10 demonstrated for the first time that hard X-ray absorption spectra can be experimentally obtained by correlation of X-ray emission with measurements of the stochastic XFEL pulse spectrum. They were able to reconstruct Fe K-edge absorption of Fe2O3 nanoparticles. The recovered spectra of the Fe2O3 nanoparticles resolved the absorption edge and evidenced non-linear effects, but not finer spectral details like pre-edge features. The current study is focused on resolving such features, since stochastic detection of the pre-edge region, which is ~10× weaker than the main edge, greatly broadens its utility in revealing essential chemical information in biological, chemical and material science systems. The weak features of the K pre-edge region are a desirable probe of the chemical environment of the absorbing metal, as they are mainly comprised of transitions from core (1 s) orbitals to valence orbitals and thus report on the valence state of the metal. The K pre-edge is sensitive to the metal’s oxidation state, ligand coordination and symmetry, and the type of ligand bound to it. 1s2p (Kα detected) Resonant Inelastic X-ray Scattering (RIXS) signal in the RXES pre-edge region contains more chemical information than X-ray absorption alone. In 1s2p RIXS, the fluorescence from the sample at various incidence energies is collected, resulting in a two-dimensional spectrum that reveals a coupling between the distribution of final states involved in emission and pre-edge resonances involved in absorption. The coupling can manifest as a shift or splitting of pre-edge peaks along the energy transfer direction, i.e., the difference between incident and emitted energy, and thus contains unique information not resolved in the emission or absorption spectra alone11.

The prospect of using SASE light for resonant experiments is exciting because the bandwidth mismatch between the monochromator and source is avoided, increasing the number of photons that can be delivered to the sample for each XFEL shot by up to 100 times. The commensurately increased signal yield of SASE light can result in faster acquisition times when the signal is close to the noise floor. The potential benefits of polychromatic light relative to monochromatic light for improving spectroscopic measurement times has been known for a long time in the optical and infrared wavelengths, particularly in Fourier spectroscopy12 and more recently in compressed sensing13. We examine the possibility of faster acquisition times via direct experimental comparison as well as via simulation and conclude that a measurement time advantage using SASE light is possible in some experiments. The increased number of available photons would also make combined time resolved resonant spectroscopy and scattering experiments possible. In combined time resolved scattering/spectroscopy experiments, the high intensity afforded by SASE pulses is crucial to the experimental viability of the scattering signal, so only spectroscopies which can be performed with a SASE beam like X-ray emission have been paired with them to date. Such emission/scattering experiments have been used1417 to observe concurrent atomic motions via scattering and localized valence electronic state evolution via emission spectroscopy. Stochastic resonant spectroscopies would complement the valence electronic state information that can already be obtained through emission spectroscopy. Beyond the traditional linear spectroscopy regime, the approach we describe here to accurately correlate incoming broadband X-rays and outgoing signals will enable non-linear spectroscopies by increasing power on the sample, while also allowing shorter pulses than a monochromator permits18. Shorter X-ray pulses are needed to probe attosecond processes that are fundamental to electron-light interaction and electron-electron correlation.

The central focus of this work is to examine the viability of RIXS spectroscopy with stochastic XFEL pulses for the study of chemical systems and to determine where improvements can be made. We examine the spectral details which stochastic spectroscopy can experimentally resolve and directly compare the recovered signal to monochromatic measurements using the same setup and analysis approach. In this comparison we find good agreement between the two approaches that improves as measurement time increases. For short measurement times, however, we see some discrepancy between the two approaches. We examined the differences via simulation and show how signal recovery is affected by measurement noise in the SASE diagnostic. We conclude that SASE diagnostic noise can reduce measurement time efficiency for stochastic spectroscopy and explain some of the differences we see between stochastic and monochromatic measurements. Finally, via simulation, we examine the impact XFEL statistics and fluorescence detection noise (and by proxy sample concentration) has on the measurement efficiency of stochastic spectroscopy. We find that stochastic spectroscopy scales just as well as monochromatic spectroscopy with respect to sample concentration and that increasing the randomness of the XFEL spectrum improves stochastic spectroscopy performance.

Results

Comparison of monochromatic and stochastic measurements

A comparison of 1s2p RIXS planes of aqueous ferrocyanide reconstructed from both monochromatic and polychromatic SASE excitation for the same measurement time is shown in Fig. 1a. The two RIXS reconstructions qualitatively agree with one another. Notably, both can resolve a well-known pre-edge feature at around 7.113 keV, with the monochromatic measurement peaking at slightly lower incidence energy than we see for the polychromatic SASE beam. Supplementary Figure 1 examines the stochastic reconstruction with around 2.5 times more shots and we see that this gives an improved agreement between monochromatic and stochastic measurements, mainly in the vicinity of 7.120 keV. Both monochromatic and stochastic measurements exhibit a RIXS shift of the pre-edge peak in Fig. 1a, where the peak appears at slightly lower emission energy than the emission does for higher incident photon energies. In the edge region from 7.116 to 7.124 keV (Fig. 2b) we see again qualitative agreement, with noticeable differences in peak location around 7.120 keV, but good agreement in peak location is seen at 7.116 keV. Black contours in the figures are drawn at multiples of the standard deviation estimation from our fit (see Methods). Judged by the number of contour lines, the monochromatic measurement has higher contrast than the stochastic measurement with respect to the estimated variance for the pre-edge peak feature at 7.113 keV. This relative confidence in the pre-edge peak intensity for the stochastic reconstruction does improve slightly with added data, as shown in Supplementary Fig. 1a, but not to the level seen with a monochromatic beam.

Fig. 1. Experimental comparison of stochastic and monochromatic measurements.

Fig. 1

The recovered Fe 1s2p RIXS planes using the polychromatic SASE beam is shown in panel a while the same obtained with a monochromatized SASE beam is shown in panel b. The spectra were recovered from 42,000 shots corresponding to ~24 min of measurement time at 30 Hz in both cases. Solid black contour lines indicate an increase of RIXS intensity by 2σ, where σ is the standard deviation of the predictive distribution estimated for a given emission/incident energy point. These contour lines can be treated as an estimate of relative significance, where peaks of interest are separated from surroundings by many contours. A slice at constant emission energy (6.4033 keV) is shown in panel c over a much larger incidence energy range. For both measurements, the XFEL central energy is fixed and scanning of the mono was limited to 7.100–7.140 keV. The SASE spectral intensity is centered on the Fe pre-edge region and tails off above 7.130 keV. Error bars in panel c likewise indicate 2σ bounds of the solution.

Fig. 2. Impact of SASE spectral diagnostic inaccuracy.

Fig. 2

In each panel, we plot the Fe HERFD absorption spectra fit to 17 independent subsets of the data, each containing 10k shots. The spectra are color coded by the average first moment of the SASE spectral diagnostic used for each independent fit (color bar in units of keV) (see Supplementary Fig. 3a). The spectra are scaled with a symmetric log function to enhance dynamic range of the plot and show variance of the fit in both pre-edge and above edge regions. Panel a is fit to experimental data. Panels b–e are fit using synthetically generated emission signals created using the same SASE spectral intensity measurements used in panel a. In panel b, no additional noise is added to the SASE spectral measurements during the reconstruction. In panel c, shot noise is added to the SASE spectral diagnostic such that around 330 photons are distributed over 200 pixels in each shot. In the actual experiment, each shot has around 5–10× more photons than this, so the effect shown here is exaggerated to highlight the effect this kind of noise has. In panel d, the SASE spectral diagnostic is corrupted by a random, smooth multiplicative filter to simulate spectra distorted by intensity profile fluctuations. In panel e, a Gaussian intensity filter of fixed width, but with mean that depends linearly on the SASE first moment is applied to simulate beam pointing that changes slightly with central photon energy.

A scaled slice of the RXES plane at constant emission energy 6.4033 keV from the SASE beam measurements is overlaid with that from the monochromatic beam in Fig. 1b across the near edge region (7.100–7.160 keV). This single emission energy (Kα1)-detected X-ray absorption is also referred to as High-Energy Resolved Fluorescence-detected (HERFD) absorption19 and the sharper spectral features it gives relative to X-ray absorption make it a more incisive probe of valence state20. The monochromatic energy scan was terminated around 7.140 keV, as indicated by the sharp drop there, while the stochastic signal recovery extends further in energy, covering the same spectral bandwidth as the SASE beam. Where the SASE spectral intensity is weak on average, the uncertainty of the fit becomes higher, as indicated by the shaded 95% confidence interval. For the monochromatic measurement, the spectral content in the SASE diagnostic above 7.140 keV is just noise, which is why the uncertainty reported in the monochromatic spectrum is so high there. The agreement between HERFD spectra at energies above 7.120 keV is quite good until the SASE spectral intensity becomes weak. From the HERFD comparison, we see that stronger absorption signals are well handled by the stochastic spectroscopy approach so chemical analysis relying on the near-edge region21,22 is feasible. Note that the monochromatic signal has been corrected for a spatial intensity profile effect due to slight deviation of the beam on changing from offset mirrors to the double crystal monochromator, which is described in Supplementary Fig. 2.

Probing systematic effects in the SASE diagnostic signal

That the Fe pre-edge feature is recoverable from the stochastic measurement and that it, along with other spectral features, is largely consistent with that of the monochromatic measurement indicates stochastic spectroscopy has suitable sensitivity to be broadly useful in the study of chemical systems. However, the differences of peak location and shape between the two measurements, particularly in the vicinity of 7.120 keV, are still noticeable. Spectral differences of this magnitude are similar in scale to changes induced, for example, by changing the solvent environment of ferrocyanide from water to ethylene glycol23. As the sample and solvent in both monochromatic and stochastic measurements are the same, taking such differences at face value and interpreting them as chemical changes in the sample could potentially be misleading. A simple explanation for these differences is that we did not include enough data in the signal recovery algorithm to suitably constrain the solution. Supplementary Figure 1 supports this hypothesis by showing that agreement between monochromatic and stochastic measurements improves in the 7.120 keV region upon the addition of more data. Measurement noise is a major factor in determining how many shots are needed to form an accurate estimate of the true spectrum of the material. One of the advantages of stochastic spectroscopy is that more emission photons are generated per shot. This means that the emission measurement should have a higher signal to noise ratio for the stochastic approach, compared to the monochromatic one. Therefore, it is unlikely that emission measurement noise explains a need for more data in the stochastic measurement. Noise in the SASE diagnostic measurement, i.e., inaccuracy of the reported SASE spectral intensity compared to what the sample experienced, is more likely to be the cause of the problem and may arise due to several noise models. SASE diagnostic noise integrated over the entire SASE bandwidth is added to each shot in stochastic spectroscopy, while only a narrowly filtered portion of it is added to each shot in monochromatic measurements. SASE measurement noise enters both monochromatic and stochastic signal recoveries implicitly when the proposed spectrum is weighed by the SASE spectral diagnostic measurement. Consequently, SASE diagnostic noise is a greater liability to stochastic spectroscopy than monochromatic spectroscopy. We turn to simulations in Fig. 2 to explore the effect of SASE diagnostic noise, as it is not trivial to predict.

Knowing what type of SASE diagnostic noise is impacting stochastic recovery will inform what improvements should be sought in the method used to measure the SASE spectral intensity as well as in signal recovery algorithms. Two types of SASE diagnostic noise are anticipated: shot noise resulting from low photon collection per pixel and complications arising from spatial beam profile coupling to spectral amplitude, also called spatial-chirp. While high photon flux is a strength of the SASE spectrometer used, errors in spectral intensity above the edge where spectral intensity drops can have a strong impact on the inferred spectrum. The spectrometer employed in the experiment is known to be sensitive to spatio-spectral variation within the beam profile7. Sun et al.24 showed the XFEL spatial profile for a given X-ray photon energy varies shot to shot. Spatio-spectral variations are thus a known, yet unobservable effect that can potentially alter the correlation between emission and SASE spectral intensity measurements. To probe the effect of these physical noise models, we plot the solution resulting from independent fits to independent subsets of experimental and simulated data in Fig. 2. The data subsets for each fit have been selected so that the average first moment, or central photon energy, of the SASE spectral intensity increases from one subset to the next. Sorting the data subsets this way introduces a systematic change in the underlying SASE intensity diagnostic signal entering each fit, which enhances changes that noise processes on the SASE diagnostic introduce. The line color in Fig. 2 encodes the average SASE diagnostic first moment for the dataset employed in the fit (see color bar). See Supplementary Figure 3a for a comparison of the SASE subsets employed. On the other hand, the ~10 eV range of SASE first moments is small compared to the ~30 eV bandwidth of the SASE beam, so these subsets should all produce very consistent results, except where the SASE spectral intensity tails off. Indeed, one can see in panel b of Fig. 2, which examines synthetic data in which no noise was added to the SASE diagnostic, that there is no clear dependence of the solution on the SASE first moment. In stark contrast to the noiseless SASE diagnostic case, the experimental data in panel a and all simulated noise models, show marked dependence of the solution on the SASE first moment.

The synthetic emission data considered in panels b–e of Fig. 2, are generated using the same subsets of SASE spectra used in panel a in conjunction with a reference spectrum. See Methods for more details on signal simulation. Panels b–e of Fig. 2 all share the same emission responses with identical noise. The distribution of emission noise added in these simulations is depicted in Supplementary Fig. 3b. For Fig. 2c–e, the SASE spectra used during signal reconstruction (but not signal generation) are corrupted by noise. We used shot noise (Poisson) for panel c, multiplicative noise for panel d, and beam pointing noise in panel e. Shot noise produces substantial deviation of the solution as a function of first moment above the edge, but little first moment dependent deviation near the pre-edge. Poisson noise does reduce contrast of weak features, but this lack of weak feature contrast is not seen in our experimental data. Multiplicative noise, which simulates a fluctuating and randomly rugged beam intensity profile, induces strong solution dependence on SASE first moment for all incident energies. Beam pointing noise produces smoother deviations than multiplicative noise, but likewise impacts the entire spectrum. Multiplicative and beam pointing noise are a better match to the behavior of experimental data in panel a. Furthermore, multiplicative noise induces both new peaks and peak position fluctuations in the pre-edge and near-edge regions, which may explain some of the discrepancy between monochromatic and stochastic measurements. Both beam pointing noise and multiplicative noise are a consequence of the spatial-spectral coupling of the SASE spectral diagnostic method employed7.

So far, we have assumed that the signal generated in the stochastic experiment is linearly related to the spectral intensity of the SASE spectrum. As the SASE pulse is 20–100 more intense than what a monochromator can deliver, non-linear effects may explain the discrepancy between the monochromatic and stochastic measurements. In Kayser and co-worker’s10 stochastic spectroscopy study of Iron nanoparticles10 the shape of spectra depended strongly on the X-ray intensity used, which was interpreted to be caused by a variety of non-linear effects. A recent study on X-ray emission of metallic Iron by Alonso-Mori and co-workers25 also finds large spectral shape changes over a similar range of intensities to that used in10 as well as in this study. In contrast to spectra of metallic Iron, Alonso-Mori et al.25 show that spectra of dilute aqueous Iron salt solutions (200 mM), like those used in this study, are much less sensitive to intensity and better preserve valence state information present in Kβ emission spectra. Consequently, we expect non-linear effects to be small in our data, compared to what was seen in locally dense Iron nanoparticles10.

Impact of SASE statistics and detection noise

Supposing the SASE diagnostic can be made as accurate as possible, the distribution of spectral amplitude in a SASE pulse and the noise that affects the emission signal detection are the two main controllable parameters of the stochastic spectroscopy experiment. Emission detection noise depends mainly on sample concentration and the solid angle that the emission spectrometer can collect. Detector technology affects the emission detection noise, but modern X-ray detectors are very close to shot noise limited performance. The distribution of SASE spectral amplitude can be controlled to some degree by various XFEL facility parameters. For example, shorter pulses are comprised of few, broad spikes, while longer pulses are comprised of many well resolved sharp spikes. How many spikes are resolved is also affected by the resolution of the SASE diagnostic spectrometer. As a proxy for many different facility parameters, we characterize a collection of synthetically generated SASE shots by their mutual coherence26, the maximum absolute value of the cross-correlations between SASE spectra. The more similar the shots are to one another, the higher their mutual coherence. Generally, SASE spectra composed of well separated and sharp spikes produce lower mutual coherence. The impact of mutual coherence and emission noise on the reconstruction accuracy is shown in Fig. 3 through a pure simulation study. The simulation imitates an experimental setup where the SASE beam is split into two equal intensity beams. One beam is monochromatized before striking the sample, while the other is sent directly to a separate identical sample. The incident light spectrum impinging the sample is recorded for both beam paths along with emission signal generated at their respective samples, producing two datasets that are related through their mutual source. We are interested in knowing which arm of the simulated experiment produces a smaller root mean squared error (RMSE) with respect to the ground truth given a fixed measurement time budget.

Fig. 3. Relative performance of stochastic spectroscopy to monochromatic spectroscopy.

Fig. 3

We examine the merits of stochastic signal recovery to monochromatic signal recovery as a function of detector noise type (panels), amount of detector noise (vertical axis), and a similarity metric of SASE shots (horizontal axis). Poisson or shot noise is used in panel b, while in panel a, shot-noise plus Gaussian read noise (Poisson–Gaussian) is used. No noise is added to the SASE spectral diagnostic. The amount of detector noise applied is determined by a ratio of the 2nd moment of the noiseless signal to the noisy signal. A ratio of 1.0 indicates that the detector noise model contributes negligibly to the 2nd moment (a high quality signal), while a ratio of near zero indicates a measurement dominated by detector noise. SASE coherence, defined in the text, is smaller for collections of shots which are less similar (have smaller inner product). Each pixel in panels a and b depicts a ratio: the RMSE for signal recovered using monochromatized light divided by the RMSE of the signal recovered using the full SASE bandwidth. Each pixel represents the median RMSE ratio of 10 simulated experiments, with 100k shots each. The black line on each image shows the experimentally observed coherence of the SASE light in Fig. 1 as a point of reference.

SASE spectra used in the simulation are synthetically generated. The spectral intensity at each energy is treated as statistically independent of one another and is drawn from a Gamma distribution of unit scale. The shape parameter of the Gamma is adjusted to create datasets with different mutual coherence. Emission signals are produced using the generated SASE spectra as input along with a ground truth spectrum taken from reference data, see Methods for more detail. Emission noise is controlled by setting the number of photons in each beam, so that efficiencies of the mono and collection optics are considered appropriately for each branch of the experiment. Read noise equivalent to 1/5 of a photon in addition to shot noise (Poisson–Gaussian noise) is added to the emission signal used in Fig. 3 panel a, while purely shot noise (Poisson noise) limited measurements are used in panel b. For each condition of SASE mutual coherence and photon budget, the spectrum is reconstructed independently for both monochromatic and full bandwidth experiments. The RMSE of these reconstructions were calculated and we plot in each pixel the ratio of the RMSEs: monochromatic RMSE divided by polychromatic RMSE. When the ratio is greater than one, this indicates that the monochromatic measurement had a larger RMSE (poorer fit) than the polychromatic beam, which is shown as white to red colors in the plot. When the ratio is less than one, the polychromatic beam RMSE is greater and this is depicted with hatched pixels that have white to blue colors.

The vertical black dashed line in Fig. 3 indicates the experimentally measured mutual coherence for the data used in Fig. 1. In compressed sensing27, which examines imposed projections of a signal, lower mutual coherence between the projections produces better quality results. We see this trend reflected here as superior performance of the stochastic recovery compared to the raster scanned monochromatic experiment. One takeaway of this simulation is that lowering mutual coherence of the SASE spectrum is a way to obtain a measurement time advantage over monochromatic measurements. Conversely, even with ideal SASE diagnostic measurements, at the present SASE mutual coherence, we can expect at best similar measurement times between the two approaches when the per-shot signal to noise is high. Additionally, these simulations show that the stochastic approach is competitive for a wide range of signal to noise values. In fact, both simulations show that the stochastic approach can be advantageous over a broader range of mutual coherence values at lower signal to noise than is the case for higher signal to noise measurements. The presence of a Gaussian (read) noise component in the measurement, as shown in Fig. 3a, improves the relative advantage that stochastic spectroscopy provides over monochromatic spectroscopy, particularly for low concentration samples. Thus, we anticipate stochastic spectroscopy, with an accurate SASE diagnostic, can make challenging time resolved RIXS experiments on dilute systems more feasible.

Discussion

We have shown experimentally that stochastic spectroscopy can yield similar spectral information content in RXES and HERFD spectroscopies to the more established monochromatic approaches used to collect the same spectra. With the currently available SASE spectral intensity diagnostic, we found that more shots are needed in the stochastic approach to achieve a signal to noise comparable to the monochromatic approach. At the same time, our results suggest that stochastic spectroscopy could be employed in its present state for any sample where monochromatic studies are already feasible and can tolerate small degradation of the signal to noise. Simulations in Fig. 3 show that the relative performance of stochastic spectroscopy is largely unaffected by the signal to noise of each shot, so lower concentration samples will fare similarly to the same sample measured with a monochromatic approach. For very dilute samples, Fig. 3 also indicates that stochastic spectroscopy will offer a measurement advantage once the signal’s amplitude is comparable to the read noise of the detector. The relative inefficiency of stochastic spectroscopy that we have observed is unexpected when measurement noise is present only on the emission signal, as we show via simulations in Fig. 3. Some of the issues with how quickly the solution converges to the right answer can be explained by noise on the SASE spectral intensity diagnostic. In analysis presented in Fig. 2, we find that noise models which invoke the spatial-spectral coupling of the SASE spectral diagnostic best reproduce the behavior seen in experimental data, which points to spatial-spectral coupling being a problem that should be addressed in future studies. The strong performance dependence of stochastic spectroscopy on the SASE beam mutual coherence, illustrated in Fig. 3, implies that different XFEL accelerator control parameters may be used to improve the performance of stochastic spectroscopy.

Despite some of the challenges exposed in this study, the use of beam diagnostic measurements to characterize a chaotic source in lieu of source control is liberating for XFEL experimental design. The freedom to use the full SASE bandwidth will enable new multi-modal signal collection experiments, like combined scattering and resonant spectroscopy experiments. Additionally, resonant scattering experiments making use of the natural SASE fluctuations in a similar fashion to the experiment discussed here have been recently studied theoretically28. A compelling experimental use-case18, used the natural SASE fluctuations in combination with photo-electron yield to measure X-ray absorption from an attosecond pulse. Here stochastic spectroscopy enables attosecond time-scale optical pump, resonant X-ray probe experiments. The conventional approach to absorption, employing a monochromatized X-ray probe compromises either time resolution or frequency resolution due to the time-bandwidth limit on the X-ray pulse. While similar advantage can be accomplished via a traditional Fourier Transform approach, the natural spectral fluctuations are already present and quick to exploit as little extra instrumentation is needed. The ready availability of natural spectral and temporal fluctuations in the SASE beam have also inspired theoretical studies into more complex multidimensional spectroscopies beyond RXES. Stimulated emission, rather than spontaneous emission, correlated with SASE spectral intensity diagnostics can be used to study a non-linear form of RXES29,30. Combining spectral analysis of diffraction signals and temporal intensity diagnostics have also been explored theoretically31 to measure time resolved diffraction signals. While this work does not cover these non-linear X-ray scenarios, the use of source diagnostics in correlation with an observable is a common thread. Some of the challenges studied here will be of value in bringing these exciting extensions of XFEL science to mainstream use.

Methods

Data collection

The physical process that produces incident energy-dependent X-ray emission is depicted using an energy level diagram in Fig. 4a. The experimental setup we employed to measure RXES can use either monochromatized or full bandwidth SASE light, so that all other components can remain fixed in either source configuration, allowing us to directly compare the approaches. The setup is summarized in Fig. 4b and was implemented at Beamline 332 of SPring-8 Angstrom Compact free-electron Laser (SACLA)33. Aside from the offset mirror/monochromator, the setup consists of three main devices: a spectrometer to measure the spectral amplitude of the SASE light, a spectrometer to measure X-ray emission, and a liquid jet to replenish the sample after each XFEL shot. For both spectrometers, the X-ray light was detected with a multiport charge-coupled device34, a direct-detection pixel array detector capable of single photon registration. The 1s2p emission line from Iron is monitored with an energy dispersive von Hamos spectrometer with ~1 eV resolution and a sampling rate of about 0.6 eV per pixel. The von Hamos spectrometer used a cylindrically bent Ge 440 crystal with 250 mm bending radius. The SASE spectrometer9 samples the beam after the monochromator/offset mirrors, via a silicon grating, and resolves the spectrum of the light sent to sample with ~0.5 eV resolution and a sampling rate of 0.6 eV per pixel. The SASE spectrometer, also serves as a beam intensity monitor, or I0, for the monochromatic measurement. The crystal analyzer in the SASE spectrometer (a flat Si 220 crystal) trades off spectral resolution in exchange for the ability to resolve the entire SASE spectral bandwidth so that all SASE fluctuations influencing the emission intensity are captured. This type of SASE spectrometer provides a strong signal with little photon noise. The XFEL beam was focused by a Kirkpatrick-Baez mirror system35 to a ~1 micron spot onto a 200 micron diameter liquid jet. The liquid jet used a nozzle and pump system designed at SACLA36 and was housed in a Helium chamber also developed there37. The liquid jet delivered an aqueous solution of 200 mM Potassium ferrocyanide (K4Fe(CN)6) via a recirculating reservoir.

Fig. 4. Setup and signal generation overview.

Fig. 4

A cartoon in panel a depicts the atomic transitions involved in K-edge absorption and 1s2p emission of Iron. The beamline configuration used for data collected is shown in panel b and shows how the beamline can switch between full bandwidth SASE and monochromatized SASE upstream of both spectrometers. Details of the SASE spectrometer and emission spectrometer are highlighted. The SASE spectrometer works by sampling a collimated beam using a silicon grating and then dispersing the spectral content of the beam onto a pixel array detector via a flat Si 220 analyzer crystal coupled to a reflective focusing optic. A von Hamos configuration is used for emission detection, wherein a single cylindrically bent crystal collects sample emission perpendicular to the beam, re-images, and energy disperses it onto a pixel array detector. Panel c depicts the model used for analysis. For each detected emission energy, a proposed absorption spectrum is weighed by the measured SASE spectrum and then sum reduced to form a proposed emission intensity.

Noise treatment

Von Hamos emission spectrometers, as well as other hard x-ray spectrometers, capture only a small solid angle of the emission that radiates spherically from the sample. The setup had a collection angle of 67 micro-steradian per eV, resulting in average counting rates of a few photons per pixel (~50 photons per shot in the focused region of the von Hamos at the Kα1 peak). Modern X-ray pixel array detectors38 have very low read noise compared to the signal of a single X-ray photon, less than 1/5 of a photon, so X-ray emission from the sample is dominantly corrupted by Poisson noise. In contrast, the collection solid angle per eV of the SASE spectrometer is more closely matched to the source divergence and directly measures a (~2% at 10 keV) sample of the beam so each shot has hundreds of photons per pixel. Thus, the SASE signal diagnostic should have substantially higher signal to noise, considering only the photon counting statistics. For this reason, we treat the SASE spectral measurement as noise free in the signal recovery algorithm. Statistical inference of the model is also substantially easier when the SASE diagnostic signal is treated as noise-free. However, we saw in the Results that the SASE spectral diagnostic measurement is not actually noise-free and so properly addressing the noise in signal recovery is an avenue for future improvement.

Extraction of RXES spectrum

Figure 4c depicts how X-ray absorption and emission of a material are related when measured using broadband SASE light. We can summarize Fig. 4c with a matrix equation:

Y=WS 1

Here S is the RXES spectrum, with absorption axis forming the rows and emission axis forming the columns. W are the SASE spectra, with the spectrum of each shot occupying a row of the matrix and with the number of rows being much greater than the number of columns. Y is a matrix of X-ray emission intensities, each row consisting of a single-shot Kα emission spectrum. The SASE spectra act as a linear operator that transforms the RXES spectrum to a new space, similar in spirit to the action of the Fourier operator in Fourier spectroscopy. All our simulations of emission Ysim using SASE light in Figs. 2 and 3 are done using a given spectrum S and supplied SASE weighs W, according to Eq. (1). The RXES spectrum can be obtained through the approximate inverse transformation: S^=W+Y, where W+ is the Moore-Penrose pseudo-inverse. This solution minimizes the least-squares error between observations Y and the model WS. However, measurement noise, arising from low photon counting rates, detector read noise or other effects, cause this solution, which is one of infinitely many in such an over-determined problem, to have high frequency content, to have non-physical negative intensities, and generally to be unsatisfactory.

Gaussian process regression

To mitigate the impact of noise and prevent unrealistic solutions, some constraint needs to be imposed on the RXES spectrum being estimated. We may, for example, desire the solution to be smooth and positive. A popular and computationally cheap method to constrain the solution is to penalize the least squares objective by adding a scaled L2 norm, L1 norm, or a more general norm of the solution. The strength of the penalty is a hyper parameter that is determined through grid search39, Bayesian optimization40, or other methods41. The spectra recovered by Kayser and co-workers10 used L2 penalization tuned by the L-curve method41. We used Gaussian Process Regression (GPR)42, a Bayesian approach that is like penalized least squares in some regards but allows for the penalty to be optimized through gradient descent on an objective function. GPR also supplies an error estimate of the fit and does this by assuming the RXES spectrum is a functional distribution over many possible spectra, with the distribution on a finite set of energy points taking the form of a multivariate normal distribution. When conditioned on observed data, the conditional distribution becomes tighter, modeling how our certainty in the spectrum improves with added data. We obtain the gradient of the GPR objective function, called the marginal likelihood, through automatic differentiation in Tensorflow43 and use GPFlow44 as a basis for our code45. Another attractive attribute of GPR is that it fits a function to the data, as opposed to a matrix of coefficients at fixed energy values, which allows one to easily interpolate the response to unmeasured energy points. It is important to note that there are many ways to approach the signal recovery problem. For example, in the work of Driver and co-workers18, the solution was controlled for smoothness, sparsity in a basis set, and non-negativity through a more general optimization algorithm called Alternating Direction Method of Multipliers46.

Signal extraction design space

A GPR model defines the prior distribution of the RXES spectrum to be Sx~N0,kx,x, where kX,X=defK is a matrix-valued function called a kernel that maps a collection of energy points X to a positive definite matrix. The mean solution of GPR is the same as the solution to the penalized least squares objective47 12σ2(yKα)T(yKα)+12αTα, where α is the solution. This shows that, in the context of penalized least squares, the kernel defines a generalized norm that we are penalizing. Consequently, the functional form of the kernel plays an important role in the behavior of the optimal solution. In this work, we use only simple stationary kernels that smooth the solution uniformly for all energies, leaving more complex (energy-dependent) options48 to future studies. GPR assumes the data is corrupted by Gaussian noise, which is very computationally convenient, if not representative of the detector physics. With the Gaussian noise assumption, the solution is analytic given hyper-parameters that are themselves optimized via a quasi-Newton solver from the scipy library49. A derivation of the predictive RXES distribution and objective function is supplied in Supplementary Note 1. Because the measurements are repeated at the same energies for each shot, the cost of optimizing the GP is independent of how many shots are measured, but it is cubic in the number of energy points (the cartesian product of incident and emission energies).

Supplementary information

Peer Review File (171.7KB, pdf)
Supplementary Information (635.4KB, pdf)

Acknowledgements

F.D.F and this work was supported by the Department of Energy, Laboratory Directed Research and Development program at SLAC National Accelerator Laboratory, under contract DE-AC02-76SF00515, in support of the Panofsky Fellowship. J.K., V.K.Y., and J.Y. thank the support from the Director, Office of Science, Office of Basic Energy Sciences (OBES), Division of Chemical Sciences, Geosciences, and Biosciences (CSGB) of the Department of Energy (DOE) under contract DE-AC02-05CH11231. The National Institutes of Health (NIH) provides funding through Grants GM126289 (J.K.), GM110501 (J.Y.), and GM055302 (V.K.Y.). The experiment was performed at SACLA with the approval of Japan Synchrotron Radiation Research Institute (JASRI; Proposal No. 2017A8050). We thank Robert Schoenlein for valuable comments during the review and preparation of this manuscript.

Author contributions

F.D.F., M.Y., T.K., U.B., J.K., V.K.Y., P.W., and J.Y. planned and designed the experiment; F.D.F, T.T., D.Y., Y.L., T.F., K.U., M.Y., T.K., T.C.W., R.A.M., J.K., V.K.Y., P.W., J.Y., executed the experiment, F.D.F., A.L., T.T., D.Y., Y.L., and T.F. analyzed the data. F.D.F., U.B., J.Y. and P.W. wrote the manuscript with input from all authors.

Data availability

The data that support the findings of this study are available at 10.17605/OSF.IO/2CQMZ, hosted by the Center for Open Science.

Code availability

Code used to replicate the figures can be found at: 10.5281/zenodo.4680002, available for use according to the MIT license, the details of which are included in the repository. Instructions for using the code are supplied. A docker container is included to replicate the software dependencies. The repository contains scripts (python notebook files) which explain and generate figures given pre-processed data that can be separately download (see Data Availability).

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary information

The online version contains supplementary material available at 10.1038/s42004-021-00512-3.

References

  • 1.Spence JCH. XFELs for structure and dynamics in biology. IUCrJ. 2017;4:322–339. doi: 10.1107/S2052252517005760. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Chapman HN. X-ray free-electron lasers for the structure and dynamics of macromolecules. Annu. Rev. Biochem. 2019;88:35–58. doi: 10.1146/annurev-biochem-013118-110744. [DOI] [PubMed] [Google Scholar]
  • 3.Chergui M. Time-resolved X-ray spectroscopies of chemical systems: new perspectives. Struct. Dyn. 2016;3:35–40. doi: 10.1063/1.4953104. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Giannessi L, Masciovecchio C. FERMI: present and future challenges. Appl. Sci. 2017;7:1–16. doi: 10.3390/app7060640. [DOI] [Google Scholar]
  • 5.Saldin, E. L., Schneidmiller, E. A. & Yurkov, M. V. Statistical and coherence properties of radiation from x-ray free-electron lasers. N. J. Phys.12, 035010 (2010).
  • 6.Zhu, D. et al. A single-shot transmissive spectrometer for hard x-ray free electron lasers. Appl. Phys. Lett.101, 034103 (2012).
  • 7.Makita M, et al. High-resolution single-shot spectral monitoring of hard x-ray free-electron laser radiation. Optica. 2015;2:912. doi: 10.1364/OPTICA.2.000912. [DOI] [Google Scholar]
  • 8.Inubushi Y, et al. Determination of the pulse duration of an X-ray free electron laser using highly resolved single-shot spectra. Phys. Rev. Lett. 2012;109:144801. doi: 10.1103/PhysRevLett.109.144801. [DOI] [PubMed] [Google Scholar]
  • 9.Katayama T, et al. A beam branching method for timing and spectral characterization of hard X-ray free-electron lasers. Struct. Dyn. 2016;3:034301. doi: 10.1063/1.4939655. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Kayser Y, et al. Core-level nonlinear spectroscopy triggered by stochastic X-ray pulses. Nat. Commun. 2019;10:1–10. doi: 10.1038/s41467-019-12717-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Glatzel P, Bergmann U. High resolution 1s core hole X-ray spectroscopy in 3d transition metal complexes - Electronic and structural information. Coord. Chem. Rev. 2005;249:65–95. doi: 10.1016/j.ccr.2004.04.011. [DOI] [Google Scholar]
  • 12.Fellgett PB. On the ultimate sensitivity and practical performance of radiation detectors. J. Optical Soc. Am. 1949;39:970–976. doi: 10.1364/JOSA.39.000970. [DOI] [PubMed] [Google Scholar]
  • 13.Lane TJ, Ratner D. What are the advantages of ghost imaging? Multiplexing for x-ray and electron imaging. Opt. Express. 2020;28:5898. doi: 10.1364/OE.379503. [DOI] [PubMed] [Google Scholar]
  • 14.Haldrup K, et al. Observing solvation dynamics with simultaneous femtosecond X-ray emission spectroscopy and X-ray scattering. J. Phys. Chem. B. 2016;120:1158–1168. doi: 10.1021/acs.jpcb.5b12471. [DOI] [PubMed] [Google Scholar]
  • 15.Fransson T, et al. X-ray emission spectroscopy as an in situ diagnostic tool for X-ray crystallography of metalloproteins using an X-ray free-electron laser. Biochemistry. 2018;57:4629–4637. doi: 10.1021/acs.biochem.8b00325. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Kern J, et al. Simultaneous femtosecond X-ray spectroscopy and diffraction of photosystem II at room temperature. Science. 2013;340:491–495. doi: 10.1126/science.1234273. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Ibrahim M, et al. Untangling the sequence of events during the S2 → S3 transition in photosystem II and implications for the water oxidation mechanism. Proc. Natl. Acad. Sci. USA. 2020;117:12624–12635. doi: 10.1073/pnas.2000529117. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Driver T, et al. Attosecond transient absorption spooktroscopy: a ghost imaging approach to ultrafast absorption spectroscopy. Phys. Chem. Chem. Phys. 2020;22:2704–2712. doi: 10.1039/C9CP03951A. [DOI] [PubMed] [Google Scholar]
  • 19.Glatzel, P. et al. Range-extended EXAFS at the L edge of rare earths using high-energy-resolution fluorescence detection: a study of La in LaOCl. Phys. Rev. B72, 014117 (2005).
  • 20.Cutsail, G. E. et al. High-resolution iron X-ray absorption spectroscopic and computational studies of non-heme diiron peroxo intermediates. J. Inorganic Biochem.203, 110877 (2020). [DOI] [PMC free article] [PubMed]
  • 21.Fernández-García M. XANES analysis of catalytic systems under reaction conditions. Catal. Rev. 2002;44:59–121. doi: 10.1081/CR-120001459. [DOI] [Google Scholar]
  • 22.Rehr JJ, Ankudinov AL. Progress in the theory and interpretation of XANES. Coord. Chem. Rev. 2005;249:131–140. doi: 10.1016/j.ccr.2004.02.014. [DOI] [Google Scholar]
  • 23.Penfold TJ, et al. X-ray spectroscopic study of solvent effects on the ferrous and ferric hexacyanide anions. J. Phys. Chem. A. 2014;118:9411–9418. doi: 10.1021/jp5055588. [DOI] [PubMed] [Google Scholar]
  • 24.Sun P, et al. Higher order modes at FELs: a machine interpretation. SPIE Proc. 2019;1103803:5. [Google Scholar]
  • 25.Alonso-Mori, R. et al. Femtosecond electronic structure response to high intensity XFEL pulses probed by iron X-ray emission spectroscopy. Sci. Rep.10, 16837 (2020). [DOI] [PMC free article] [PubMed]
  • 26.Obermeier R, Martinez-Lorenzo JA. Sensing matrix design via mutual coherence minimization for electromagnetic compressive imaging applications. IEEE Trans. Comput. Imaging. 2017;3:217–229. doi: 10.1109/TCI.2017.2671398. [DOI] [Google Scholar]
  • 27.Donoho DL, Elad M. Optimally sparse representation in general (nonorthogonal) dictionaries via 1 minimization. PNAS. 2003;100:2197–2202. doi: 10.1073/pnas.0437847100. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Sauter NK, Kern J, Yano J, Holton JM. Towards the spatial resolution of metalloprotein charge states by detailed modeling of XFEL crystallographic diffraction. Acta Crystallogr. Sect. D. 2020;76:176–192. doi: 10.1107/S2059798320000418. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Weninger C, Rohringer N. Stimulated resonant x-ray Raman scattering with incoherent radiation. Phys. Rev. A. 2013;88:1–8. doi: 10.1103/PhysRevA.88.053421. [DOI] [Google Scholar]
  • 30.Kimberg, V. & Rohringer, N. Stochastic stimulated electronic x-ray Raman spectroscopy. Struct. Dyn.3, 034101 (2016). [DOI] [PMC free article] [PubMed]
  • 31.Asban S, Cho D, Mukamel S. Frequency-, time-, and wavevector-resolved ultrafast incoherent diffraction of noisy X-ray pulses. J. Phys. Chem. Lett. 2019;10:5805–5814. doi: 10.1021/acs.jpclett.9b00924. [DOI] [PubMed] [Google Scholar]
  • 32.Tono, K. et al. Beamline, experimental stations and photon beam diagnostics for the hard x-ray free electron laser of SACLA. N. J. Phys.15, 083035 (2013).
  • 33.Ishikawa T, et al. A compact X-ray free-electron laser emitting in the sub-ångström region. Nat. Photonics. 2012;6:540–544. doi: 10.1038/nphoton.2012.141. [DOI] [Google Scholar]
  • 34.Kameshima, T. et al. Development of an X-ray pixel detector with multi-port charge-coupled device for X-ray free-electron laser experiments. Rev. Sci. Instrum.85, 033110(2014). [DOI] [PubMed]
  • 35.Yumoto H, et al. Focusing of X-ray free-electron laser pulses with reflective optics. Nat. Photonics. 2013;7:43–47. doi: 10.1038/nphoton.2012.306. [DOI] [Google Scholar]
  • 36.Tono K. Fluid sample injectors for X-ray free electron laser at SACLA. High. Power Laser Sci. Eng. 2017;5:1–7. doi: 10.1017/hpl.2017.6. [DOI] [Google Scholar]
  • 37.Katayama T, et al. A versatile experimental system for tracking ultrafast chemical reactions with X-ray free-electron lasers. Struct. Dyn. 2019;6:1–7. doi: 10.1063/1.5111795. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Hatsui T, Graafsma H. X-ray imaging detectors for synchrotron and XFEL sources. IUCrJ. 2015;2:371–383. doi: 10.1107/S205225251500010X. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Bergstra J, Ca JB, Ca YB. Random search for hyper-parameter optimization Yoshua Bengio. J. Mach. Learn. Res. 2012;13:281–305. [Google Scholar]
  • 40.Snoek, J., Larochelle, H. & Adams, R. P. Practical Bayesian optimization of machine learning algorithms. Adv. Neural Inf. Process. Syst.2, 2951–2959 (2012).
  • 41.Hansen PC, O’leary DP. The use of the L-Curve in the regularization of discrete ILL-Posed Problems. SIAM J. Sci. Comput. 1993;14:1487–1503. doi: 10.1137/0914086. [DOI] [Google Scholar]
  • 42.Rasmussen, C. E. & Williams, C. K. I. Gaussian processes for machine learning. (MIT Press, 2006). 10.1142/S0129065704001899.
  • 43.Abadi, M. et al. Tensorflow: A system for large-scale machine learning. 12th USENIX Symposium on Operating Systems Design and Implementation. OSDI 16, 265–283 (2016)
  • 44.de Matthews AGG, et al. GPflow: a Gaussian process library using TensorFlow. J. Mach. Learn. Res. 2017;18:1–6. [Google Scholar]
  • 45.Fuller, F. & Loukianov, A. Stochastic spectroscopy software. Github 10.5281/zenodo.4680002 (2020).
  • 46.Boyd S, Parikh N, Chu E. Distributed optimization and statistical learning via the alternating direction method of multipliers. Found. Trends Mach. Learn. 2010;3:1–122. doi: 10.1561/2200000016. [DOI] [Google Scholar]
  • 47.Murphy, K. P. Machine learning: a probabilistic perspective (MIT Press, 2012).
  • 48.Duvenaud, D., Lloyd, J. R., Grosse, R., Tenenbaum, J. B. & Ghahramani, Z. Structure discovery in nonparametric regression through compositional kernel search. ICML28, 2203–2211 (2013).
  • 49.Virtanen P, et al. SciPy 1.0: fundamental algorithms for scientific computing in Python. Nat. Methods. 2020;17:261–272. doi: 10.1038/s41592-019-0686-2. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

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

Supplementary Materials

Peer Review File (171.7KB, pdf)
Supplementary Information (635.4KB, pdf)

Data Availability Statement

The data that support the findings of this study are available at 10.17605/OSF.IO/2CQMZ, hosted by the Center for Open Science.

Code used to replicate the figures can be found at: 10.5281/zenodo.4680002, available for use according to the MIT license, the details of which are included in the repository. Instructions for using the code are supplied. A docker container is included to replicate the software dependencies. The repository contains scripts (python notebook files) which explain and generate figures given pre-processed data that can be separately download (see Data Availability).


Articles from Communications Chemistry are provided here courtesy of Nature Publishing Group

RESOURCES