Abstract
Schemes for X-ray imaging single protein molecules using new x-ray sources, like x-ray free electron lasers (XFELs), require processing many frames of data that are obtained by taking temporally short snapshots of identical molecules, each with a random and unknown orientation. Due to the small size of the molecules and short exposure times, average signal levels of much less than 1 photon/pixel/frame are expected, much too low to be processed using standard methods. One approach to process the data is to use statistical methods developed in the EMC algorithm (Loh & Elser, Phys. Rev. E, 2009) which processes the data set as a whole. In this paper we apply this method to a real-space tomographic reconstruction using sparse frames of data (below 10−2 photons/pixel/frame) obtained by performing x-ray transmission measurements of a low-contrast, randomly-oriented object. This extends the work by Philipp et al. (Optics Express, 2012) to three dimensions and is one step closer to the single molecule reconstruction problem.
OCIS codes: (000.2190) Experimental physics; (040.7480) X-rays, soft x-rays, extreme ultraviolet (EUV); (100.6950) Tomographic image processing; (110.4155) Multiframe image processing; (110.4280) Noise in imaging systems; (110.6955) Tomographic imaging; (110.7440) X-ray imaging; (340.7440) X-ray imaging
1. Introduction
X-ray free electron lasers (XFELs) have been successful in performing crystallographic reconstructions of biomolecules with nanocrystalline samples having as few as 103 unit cells [2, 3]. This is possible, in part, because the high signal and Bragg peak concentration allows indexing methods to determine the orientation of each frame [4]. There are, however, many situations in which indexing with a single frame is not possible either because of the nature of the sample (e.g. a non-crystalline particle or protein) or because the number of scattered photons detected in a single frame simply do not provide enough information. In these cases, a different approach is required.
The EMC (expand-maximize-compress) algorithm [6, 7] presents a method of dealing with these more difficult data sets. The heart of this algorithm depends on expectation maximization (EM) methods that were experimentally demonstrated previously [1] using the prototype detector based upon the ASIC (application specific integrated circuit) developed by Cornell for the CS-PAD detector at the Linac Coherent Light Source (LCLS).
The present work extends this approach to 3D tomographic reconstructions using sparse xray transmission data collected from a 5 cm sized object, where each data frame is from a random and unknown orientation. The sparse data frames used for reconstruction have signal levels of ∼ 10−3 − 10−2 photons/pixel/frame. The detector system used is a tiled pixel array detector (PAD). Each tile has 128×128 pixels and uses the mixed-mode pixel array detector (MMPAD) ASIC [8]. The overall tiling format is a 3×2 grid [10]. The object reconstructed is relatively low-contrast at the Kα emission line of molybdenum (17.5 keV). The object absorbs from 5% of the photons incident on it in the thinnest regions to 90% in the central portion.
2. Data generation
Low-signal tomographic reconstructions using the EMC algorithm were tested using a plastic figure, roughly matching the size of the detector, as the object of study. A 50 watt molybdenum anode x-ray tube was used to generate x-rays (Tru-Focus TCM-5000M). The applied high voltage was 21.5 kV and the current was set to 0.05 mA. A 400 micron zirconium filter was used to better isolate the K line of molybdenum (17.5 keV) from the x-ray tube emission spectrum by preferentially attenuating lower energies and higher energies (beyond the K-edge of zirconium, 18.0 keV). The distance between the x-ray source and the sample was 1.3 meters. The detector was placed directly after the sample. Detector pixels measured 150 μm × 150 μm. The per-frame exposure time was chosen to be 4 ms with an average signal of 100 photons per frame (10−3 photons/pixel/frame).
The plastic figure (Fig. 1(a)) was mounted on a post and attached to a rotation stage (Newport URS100BPP). During data taking, the rotation stage turned continuously at a rate of 2 degrees per second. The data was taken continuously with 860 μs between frames in batches of 1000 frames. Variable time delays were used between batches, to ensure that there was no time sequence bias, and 15.6 million frames were acquired.
Each frame (Fig. 1(b)) acquired was converted to photon counts in the following way: 1) An average of 100 to 300 dark frames was subtracted from the signal frames and detector specific offsets were corrected. 2) A threshold was applied to each pixel that corresponded to 60% of a single molybdenum Kα x-ray. Pixels that did not exceed this threshold were set to zero signal level. 3) The number of photons detected in a pixel exceeding the threshold was determined by dividing the pixel signal by the single photon signal level, and rounding to the nearest integer. Note the edge pixels around the rim of each tile are larger than the interior pixels due to edge effects in the sensor [9]. No correction for this effect was applied to the data.
After digitizing each frame, a list of pixels having non-zero photons was recorded. Because of the sparse nature of the low-fluence data, recording pixel coordinate and number of photons, rather than all pixel values, greatly reduced the memory required to store data. These data frames were passed to the algorithm without any information about the rotation of the object corresponding to each frame. This was done to simulate the unknown-orientation aspect of the single molecule imaging process.
Three more data sets were generated by combining 2, 4, and 10 consecutive frames within the 1000 frame batches, respectively. Since the object rotated approximately 8 × 10−3 degrees between frames, we can safely assume that 10 consecutive frames are from essentially identical orientations of the object.
3. Pre-processing of data
Figure 2(a) shows the angle-averaged pattern obtained by summing over all frames. Since pixels in the outer region (e.g. top-right and top-left corner) are never obscured by the object, they provide no structural or orientational information. From the histogram in Fig. 2(c), a photon count of 17,800 was chosen as the cutoff to define a mask of pixels as shown in Fig. 2(b). Only the green pixels are used to determine the orientations of each frame of data. In the remainder of the paper, these pixels are referred to as relevant and the others as irrelevant.
Another mask (red in Fig. 2(b)) is used to exclude the pixels in the gaps between detector tiles. If this is not done, the algorithm naturally interprets these gaps as coming from an infinitely opaque structure obstructing the view in every frame. Since there are no photons here, the exact attenuation caused by this structure is undefined except that it is above a certain level. In addition to these pixels, this mask also includes 7 “hot” pixels that were malfunctioning and erroneously record extremely high count rates. This mask of ignored pixels is shown in red in Fig. 2(b). The pattern is not symmetric or smooth because of statistical noise, small variations in pixel gain, detection efficiency and small errors in pixel offsets. The lack of symmetry and smoothness present no problem for data reduction and the algorithm is generally robust in this regard.
4. Reconstruction algorithm
The imaging process can be thought of as unknown-angle tomography at very low signal. This problem naturally splits into two parts, tomography and determination of angle. The projection-slice theorem was used to tackle the first and an iterative expectation-maximization (EM) based algorithm for the second.
Since the projection-slice operation is applied partly in Fourier space, it is convenient to have the iterate be a 3D Fourier space model M̃uvw. The 3D inverse Fourier transform of M̃uvw
(1) |
gives the attenuation, by exp(−Mxyz), of x-rays passing through voxel xyz of the object [Also see Fig. 3].
The relevant pixel mask is used to generate the initial random model. Consider the three-dimensional object generated by rotating this mask about the axis of rotation. Since we assume that all pixels outside the relevant region are never obscured for any angle, this ‘rotated-mask’ object acts as the support for the target object. Thus, voxels inside this object are assigned a random number uniformly in the range [0,1] and the voxels outside are zeroed. This 3D array is zero-padded perpendicular to the rotation axis to reduce interpolation errors and Fourier transformed to generate the initial random Fourier model.
We express our algorithm in the Expand-Maximize-Compress (EMC) framework of [6]. Starting with the initial random model, in each iteration, these three operations are applied to it to generate the updated model. Here the Expand and Compress steps represent transformations between the 3D attenuation model in Fourier space and the collection of 2D real-space intensity attenuation patterns, for uniformly sampled object-rotation angles. We will refer to the latter as tomograms. The Maximize step generates updated tomograms which increase the likelihood of the data being generated from the model. Thus, in each iteration, we generate the tomograms from the current model (Expand), update the tomograms (Maximize), and combine them to generate the new model (Compress).
4.1. Expand
The tomograms are generated using the projection-slice theorem augmented by exponentiation of the projections [Also see Fig. 4]. We use linear interpolation to generate slices T̃ρw(θ) of M̃uvw passing through the axis (u, v) = (0, 0) for a large number of uniformly spaced orientations, θ. To avoid interpolation errors, we oversample the Fourier space model. Thus, if there are U × W pixels in the detector and the rotation axis is along the w-axis, the iterate has (σU) × (σU) × W complex voxels, where σ is the oversampling factor.
We inverse Fourier transform the slices T̃ρw(θ) to generate the projected attenuations Trz(θ) and then generate the intensity models by applying the formula,
(2) |
(3) |
Here, f represents the unattenuated intensity and s represents a scale factor explained below.. Since we assume that the irrelevant pixels are unobstructed in any orientation, we can obtain f from the mean photon count in these pixels.
Before we apply the Maximize step on Wrz(θ), we must determine if we have the right overall scale for Trz(θ). From the data, we know the mean number of photons/frame, 〈∑rzWrz(θ)〉, where the angle bracket denotes averaging over all orientations θ. However, due to the exponentiation in Eq. (3), we cannot use this to directly calculate 〈Trz(θ)〉. We also observe that the algorithm is prone to a scaling instability in the first few iterations where the values in Trz(θ) explode, leading to underflows in the intensity due to Eq. (3). This is avoided by numerically determining the correct scale every iteration. We use the secant method [11] to solve
(4) |
for the unknown scale factor s.
4.2. Maximize
In this step we find the updated intensities W′rz(θ) using expectation maximization. Due to the low signal count per pixel, we expect the probability of a photon incident on a pixel to be governed by Poisson statistics. At each pixel, the intensity model value gives the mean of this Poisson distribution. Thus, the likelihood of a frame of data d (Kd) coming from Wrz(θ) is given by,
(5) |
(6) |
where pd(θ) is the probability obtained by normalization and Kd,rz is the number of photons at pixel (r, z) in frame d. The Kd,rz! factor in the denominator of Eq. 5 cancels out in the calculation of pd(θ). To increase the effectiveness of our probability assignment, we only consider photons in relevant pixels.
Using these probabilities we calculate the updated intensities, W′rz(θ), which maximize the log-likelihood of generating the data,
(7) |
Rearranging the sums and maximizing with respect to W′rz, we get
(8) |
For two reasons explained below, we apply an “inertia” factor α in the update rule for Wrz(θ). We apply an update rule,
(9) |
Thus, W′rz(θ) has a contribution from the previous iteration.
In the first few iterations, where the iterate changes rapidly, a high value of α prevents Trz(θ) from exploding, leading to underflows in the intensity calculation. Secondly, it also provides an additional handle on the rate of convergence of the algorithm. In the current geometry, the various slices T̃ρw(θ) do not overlap each other except at the rotation axis. This means that there is only a weak constraint for successive slices to correspond to successive rotation angles. Thus, there are near solutions which have arbitrary jumps in angles in successive slices. Indeed, this is what we observe we converge to when we have relatively high signal. However, if we slow down the rate of convergence using a high inertia factor, we reliably converge to the right solution. We do not expect this to be an issue if we have full 3D rotation as the various slices strongly overlap. In that case, the Expand and Compress steps should together provide a strong constraint which impose the correct ordering on the slices.
4.3. Compress
This is the inverse of the Expand step. First, we generate the attenuation projections T′rz(θ) by taking the negative logarithm of the updated tomograms,
(10) |
The ignored pixels from the panel gaps and “hot” pixels are not updated. These updated projections are then zero-padded and Fourier transformed to get the updated slices T̃′ρw(θ). We then use linear interpolation to generate the updated 3D model.
5. Results
Data was taken with 99.5 mean photons per frame. Of these, only 37 photons were incident in the relevant region of the detector as defined in Section 3. Using the mean incident flux calculated from the irrelevant pixels, we can determine that on average around 4 photons were absorbed by the object per frame. As mentioned in Section 2, frames were grouped by either 1, 2, 4, or 10 consecutive frames into 4 data sets. After this initial grouping, no information on the angular position of the combined frames was passed to the reconstruction algorithm. Table 1 lists the properties of all four data sets.
Table 1.
Total photons/frame | No. of frames (millions) | Relevant photons/frame | Absorbed photons/frame | |
---|---|---|---|---|
| ||||
1 | 99.5 | 15.6 | 37.0 | 3.9 |
2 | 198.7 | 7.8 | 73.8 | 7.8 |
3 | 397.2 | 3.9 | 147.6 | 15.6 |
4 | 991.6 | 1.6 | 368.4 | 39.1 |
Figure 5 shows reconstructions from the four data sets along with a set of high flux, static projections. In all four cases, the only thing that changes is the signal per frame. The total number of photons and the object is unchanged. We can clearly see that the quality of the reconstruction improves as we increase the mean number of photons/frame. With 99 photons/frame, the algorithm is unable to determine even the gross shape of the object. The finer, low-contrast features are reconstructed with more and more accuracy as we increase the number of frames combined. In the bottom row, the circle shows the location of the extra upper arm, which was attached only on one side. The oval shows the asymmetry in the two lower arms due to one of them holding a plastic dumbbell.
Note that even with 10 frames combined, there are still only 7.9 × 10−3 photons/frame/pixel in the relevant region of the detector.
6. Methods
For all four data sets, an oversampling factor, σ, of 2 was chosen. Thus, the Fourier-space iterate had dimensions 396 × 532 × 532.The angular range was divided into 200 discrete orientations and the inertia factor was chosen to be 0.8 in each case. A cutoff count of 17,800 was used to generate the relevant pixels mask. There were 46,890 relevant pixels and 8,670 ignored pixels.
Due to the large size of the problem, a parallel algorithm was required. The most time-consuming step in each iteration was implementing Equation 5. The parallelization was applied over the θ index i.e. each process was assigned a part of the angular range for which to calculate pd(θ). Reconstructions were performed at the LCLS cluster at SLAC. With 120 processes on 10 nodes, an iteration took 2–3 minutes and the algorithm took 30–50 iterations to converge. To test for convergence, reconstructions were performed multiple times with different random starts and they yielded the same result.
7. Conclusions
We view these results as an extension of the 2D reconstructions performed previously with similarly sparse data in [1]. The in-plane rotation axis in the present study meant that we had to reconstruct a 3D object. Any given frame in this experiment did not have the full structural information. Due to the large size of the object, a non-linear attenuation model had to be used. Also, we needed a parallel code running on a cluster to perform the reconstruction in a reasonable time. With this experiment, we are one step closer to demonstrating the reconstruction of the 3D intensity of a biomolecule or nanocrystal in conditions of very low signal.
There are further avenues that could be pursued to improve the quality of the reconstruction: 1) One could take into account the small, but finite divergence of the beam. This would make the analysis in the expand and compress steps similar to fan-beam tomography. 2) The data at the edge pixels could be modified to reflect their larger size. 3) The axis of rotation was assumed to be aligned along the middle of the detector. This could estimated more accurately. 4) Our criterion for the relevant pixel mask was chosen for simplicity (a hard cutoff on the number of photons/pixel). This could be further refined to maximize the capacity to determine the orientation of a frame.
In the process of constructing a 3D proof-of-principle experiment for biomolecule imaging with x-rays, our experiment closely approaches the setup of cryo-electron microscopy (cryo-EM) experiments [12] for biomolecules. In that case, we also have tomography with unknown orientations at very low signal-to-noise. However, there are a few differences. The cryo-EM reconstructions do not have the assistance of a rotation axis, and so have molecules in all orientations in SO(3). In addition, they must also fix translational alignment in their individual frames. Finally, the x-ray data here is in the low signal regime of Poissonian statistics, while the noise model for cryo-EM is not as simple.
The results in Fig 5 suggest that there is a minimum number of photons/frame needed to determine the structure of the object. A similar feasibility criterion was found in the EMC simulations for single molecule diffraction imaging [5, 6]. In this case, the criterion depends on the particular object. More specifically, the more attenuation there is far from the rotation axis, the easier it is to assign orientations to frames. Also, a higher contrast object with the same shape would be easier to reconstruct.
The goal of reconstructing a single biomolecule or microcrystal needs a few more steps. First, we need to demonstrate a reconstruction with randomly-oriented diffraction data. Secondly, there would be sources of background we have not included, such as air-scatter, which would make the reconstruction more challenging.
Acknowledgments
Research on the development and application of x-ray detectors is supported by DOE Grant DE-FG02-10ER46693, the Keck Foundation, and CHESS. CHESS is supported by NSF and NIH-NIGMS under NSF Grant DMR-0936384. The data analysis work is supported by DOE Grant DE-FG02-11ER16210. The sample used to demonstrate tomographic reconstruction was graciously provided by Russell K. Philipp.
References and links
- 1.Philipp H. T., Ayyer K., Tate M. W., Elser V., Gruner S. M., “Solving structure with sparse, randomly-oriented x-ray data,” Opt. Express 20(12), 13129–13137 (2012) 10.1364/OE.20.013129 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Chapman H. N., Fromme P., Barty A., White T. A., Kirian R. A., Aquila A., Hunter M. S., Schulz J., De-Ponte D. P., Weierstall U., Bruce Doak R., Maia F. R. N. C., Martin A. V., Schlichting I., Lomb L., Coppola N., Shoeman R. L., Epp S. W., Hartmann R., Rolles D., Rudenko A., Foucar L., Kimmel N., Weidenspointner G., Holl P., Liang M., Barthelmess M., Caleman C., Boutet S., Bogan M. J., Krzywinski J., Bostedt C., Bajt S., Gumprecht L., Rudek B., Erk B., Schmidt C., Homke A., Reich C., Pietschner D., Struder L., Hauser G., Gorke H., Ullrich J., Herrmann S., Schaller G., Schopper F., Soltau H., Kuhnel K., Messerschmidt M., Bozek J. D., Hau-Riege S. P., Frank M., Hampton C. Y., Sierra R. G., Starodub D., Williams G. J., Hajdu J., Timneanu N., Marvin Seibert M., Andreasson J., Rocker A., Jonsson O., Svenda M., Stern S., Nass K., Andritschke R., Schroter C., Krasniqi F., Bott M., Schmidt K. E., Wang X., Grotjohann I., Holton J. M., Barends T. R. M., Neutze R., Marchesini S., Fromme R., Schorb S., Rupp D., Adolph M., Gorkhover T., Andersson I., Hirsemann H., Potdevin G., Graafsma H., Nilsson B., Spence J. C. H., “Femtosecond X-ray protein nanocrystallography,” Nature (London) 470(7332), 73–77 (2011) 10.1038/nature09750 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Boutet S., Lomb L., Williams G. J., et al. Boutet S., Lomb L., Williams G. J., Barends T. R. M., Aquila A., Doak R. B., Weierstall U., DePonte D. P., Steinbrener J., Shoeman R. L., Messerschmidt M., Barty A., White T. A., Kassemeyer S., Kirian R. A., Seibert M. M., Montanez P. A., Kenney C., Herbst R., Hart P., Pines J., Haller G., Gruner S. M., Philipp H. T., Tate M. W., Hromalik M., Koerner L. J., Bakel N. v., Morse J., Ghonsalves W., Arnlund D., Bogan M. J., Caleman C., Fromme R., Hampton C. Y., Hunter M. S., Johansson L. C., Katona G., Kupitz C., Liang M., Martin A. V., Nass K., Redecke L., Stellato F., Timneanu N., Wang D., Zatsepin N. A., Schafer D., Defever J., Neutze R., Fromme P., Spence J. C. H., Chapman H. N., Schlichting I., “High-resolution protein structure determination by serial femtosecond crystallography,” Science 337(6092), 362–364 (2012) 10.1126/science.1217737 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.White T. A., Kirian R. A., Martin A. V, Aquila A., Nass K., Barty A., Chapman H. N., “CrystFEL: a software suite for snapshot serial crystallography,” J. Appl. Cryst. 45(2), 335–341 (2012) 10.1107/S0021889812002312 [DOI] [Google Scholar]
- 5.Elser V., “Noise limits on reconstructing diffraction signals from random tomographs,” IEEE T. Inform. Theory 55(10), 4715–4722 (2009). 10.1109/TIT.2009.2027547 [DOI] [Google Scholar]
- 6.Loh N. D., Elser V., “Reconstruction algorithm for single-particle diffraction imaging experiments,” Phys. Rev. E 80(2) 026705 (2009). 10.1103/PhysRevE.80.026705 [DOI] [PubMed] [Google Scholar]
- 7.Loh N. D., Bogan M. J., Elser V., Barty A., Boutet S., Bajt S., Hajdu J., Ekeberg T., Maia F. R. N. C., Schulz J., Seibert M. M., Iwan B., Timneanu N., Marchesini S., Schlichting I., Shoeman R. L., Lomb L., Frank M., Liang M., Chapman H. N., “Cryptotomography: reconstructing 3D fourier intensities from randomly oriented single-shot diffraction patterns,” Phys. Rev. Lett. 104(22) 225501 (2010). 10.1103/PhysRevLett.104.225501 [DOI] [PubMed] [Google Scholar]
- 8.Vernon W., Allin M., Hamlin R., Hontz T., Nguyen D., Augustine F., Gruner S. M., Xuong Ng. H., Schuette D. R., Tate M. W., Koerner. L. J., “First results from the 128×128 pixel mixed-mode Si x-ray detector chip,” Proc. SPIE 6706, Hard X-Ray and Gamma-Ray Detector Physics IX 67060U (September 21, 2007). [Google Scholar]
- 9.Green K. S., Philipp H. T., Tate M. W., Weiss J. T., Gruner S. M., “Calibration and post-processing for photon-integrating pixel array detectors,” J. Phys. Conf. Ser. 425(6) 062009 (2013) 10.1088/1742-6596/425/6/062009 [DOI] [Google Scholar]
- 10.Tate M. W., Chamberlain D., Green K. S., Philipp H. T., Purohit P., Strohman C., Gruner S. M., “A medium-format, mixed-mode pixel array detector for kilohertz X-ray imaging,” J. Phys. Conf. Ser. 425(6) 062004 (2013). 10.1088/1742-6596/425/6/062004 [DOI] [Google Scholar]
- 11.Weisstein E. W., “Secant method,” MathWorld - A Wolfram Web Resource http://mathworld.wolfram.com/SecantMethod.html
- 12.Scheres S. H. W., Gao H., Valle M., Herman G. T., Eggermont P. P., Frank J., Carazo J. M., “Disentangling conformational states of macromolecules in 3D-EM through likelihood optimization,” Nat. Methods 4(1) 27–29 (2007) 10.1038/nmeth992 [DOI] [PubMed] [Google Scholar]