<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Journal of Molecular Biology</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Modi cations to the EMC Algorithm for Orientation Recovery in Single Particle Imaging Experiments on X-ray Free Electron Lasers</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Sergei Zolotarev</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>National Research Centre \Kurchatov Institute</institution>
          ,
          <addr-line>", pl. Akademika Kurchatova 1, Moscow, 123182</addr-line>
          ,
          <country country="RU">Russia</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2009</year>
      </pub-date>
      <volume>385</volume>
      <issue>3</issue>
      <fpage>9</fpage>
      <lpage>12</lpage>
      <abstract>
        <p>The emergence of super-bright light sources - X-ray free electron lasers(XFELs) combined with Single Particle Imaging(SPI) method, makes it possible to obtain nanometer resolution 3D structure of biological particles such as proteins or viruses without needing to freeze them. SPI relies on the \di raction before destruction" principle, meaning that each sample only produces a single di raction image before being destroyed by an X-ray pulse. The orientation of the particle in the beam is random for each shot. This gives rise to the problem of orientation recovery, in which an array of 2D di raction images has to be combined into a single 3D image, necessary for the reconstruction of 3D structure of the studied particle. The orientation recovery problem is most commonly solved by the EMC algorithm, which is the most computationally expensive part of data analysis for SPI experiments. In this work we introduce several modi cations to the EMC algorithm aimed at improving the quality of reconstruction and/or increasing the algorithm's speed of convergence. We analyse the e ectiveness of these modi cations using simulated di raction data.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>The emergence of fourth generation light sources - X-ray Free Electron Lasers
(XFEL), opens up new possibilities in many elds of science. Compared to third
generation synchrotron light sources, XFELs produce extremely bright (more
than 1012 photons) and extremely short (tens of femtoseconds) x-ray pulses [6].
These properties provide a new way to study the 3D structure of bioparticles
such as proteins and viruses - Single Particle Imaging (SPI) [8]. Compared to
other methods such as X-Ray crystallography or cryogenic electron microscopy,
SPI has the advantage of being able to study non-crystalline bioparticles in their
natural state (suspended in water).</p>
      <p>
        SPI relies on "di raction before destruction"[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] principle, which abuses the
unique properties of XFEL pulses. The pulses are bright enough to produce an
Copyright ' 2020 for this paper by its authors. Use permitted under Creative
Commons License Attribution 4.0 International (CC BY 4.0).
informative di raction pattern, and they are at the same time are short enough,
so that all the scattering happens before the radiation damage takes place. Since
the scattering particle is destroyed in the process, multiple identical particles are
injected into the XFEL beam during the experiment.
      </p>
      <p>This gives rise to orientation recovery problem: SPI produces a number of
at di raction images of the particle in an unknown orientation. In order to
reconstruct the 3D structure of said particle these images need to be combined
to produce a single 3D di raction density. The established way to solve this
problem is by using the EMC algorithm [5].</p>
      <p>In this work we introduce three modi cations of orientation recovery
algorithm EMC, which aim to improve quality of reconstruction and to increase the
speed of convergence. We examine their e ectiveness using simulated di raction
data.
2
2.1</p>
    </sec>
    <sec id="sec-2">
      <title>Methods</title>
      <sec id="sec-2-1">
        <title>Orientation recovery</title>
        <p>In orientation recovery problem we have an array of Mdata di raction patterns
scattered by identical particles in unknown orientations. Each such pattern is
a spherical slice of a single 3D density in reciprocal space, and the goal of an
orientation recovery algorithm is to reconstruct this 3D density W by nding
to which orientation each di raction pattern belongs to. This problem is most
commonly solved by the EMC algorithm.</p>
        <p>EMC algorithm starts with input data (di raction images K) and an initial
approximation of 3D di raction density W 0. Then this initial approximation is
iteratively improved until it converges to the nal value of W T . Each iteration
of the algorithm consists of three steps which give the name to the algorithm:
Expand, Maximize and Compress.</p>
        <p>During Expansion step the current approximation W, which is typically
represented by its values on regular 3D grid, is converted to tomographic
representation Wij - values of W in points corresponding to i-th pixel of the di raction
image with scattering particle in j-th orientation. In order to do this we sample
the 3D rotation group SO(3) by a nite number of "evenly spaced" rotations Rj
(j = 1 : : : Mrot). And for each pixel of the detector we calculate a corresponding
point in reciprocal space qi (i = 1 : : : Mpix). For typical at detectors all these
points will be lying on Ewald's sphere. After calculating rotations Rj and points
qi we can de ne Wij as W (Rj qi), which is calculated via linear interpolation.</p>
        <p>
          The Maximization step updates current approximation of 3D di raction
density Wij ! Wi0j based on maximizing log-likelihood function Q(W 0). This step is
equivalent to one iteration of EM algorithm [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] and in itself consists of two steps.
First we calculate Pjk - the probabilities of each image Dk (k = 1 : : : Mdata) to
be produced by the particle in j-th orientation, conditional on current model
values Wij as the product of Poisson probabilities at each detector pixel. Then we
calculate new values of 3D density Wi0j , maximizing the expected log-likelihood:
Wi0j =
        </p>
        <p>Mdata</p>
        <p>P
k=1
Mdata</p>
        <p>P
k=1</p>
        <p>PjkDik</p>
        <p>Pjk
:</p>
        <p>Finally, Compression step converts Wi0j back onto regular 3D grid by
reversing the interpolation procedure used in the expansion step. In essence, EMC
algorithm is equivalent to EM where after each iteration we perform
combination of compression and expansion steps, which enforce extra constraints on
current model Wij . Whereas for EM all Wij are treated as independent
variables, in reality they are derived from values on 3D intensity grid, and when the
distance between points Rj qi and Rj0 qi0 is small, values Wij and Wi0j0 are
not independent.</p>
        <p>In this work we propose three modi cations to the EMC algorithm:
Incremental EMC modi es the maximization procedure, instead of
performing a single update of 3D intensity W using data from all images, only one image
is used on each iteration. For randomly selected image Dk probabilities Pjk
are calculated and then the current values of Wij are immediately updated:
Wi0j =</p>
        <p>Mdata
( P
k=1</p>
        <sec id="sec-2-1-1">
          <title>PjokldDik)</title>
        </sec>
        <sec id="sec-2-1-2">
          <title>PjokldDik + Pjk Dik</title>
          <p>Mdata
( P
k=1</p>
        </sec>
        <sec id="sec-2-1-3">
          <title>Pjokld)</title>
        </sec>
        <sec id="sec-2-1-4">
          <title>Pjokld + Pjk</title>
          <p>:
Such an update can be performed in O(1) time if the numerator and denominator
of Wij are saved separately, as well as all the values of Pjokld [7]. This way Mdata
of such updates can be performed in the same time as the single maximization
step of EMC algorithm. This incremental M-step is followed by compression and
expansion steps same as in regular EMC algorithm. However, expansion steps
outputs only values of Wij , and in order to use out incremental maximization
step again we rst need to perform a normal M-step to obtain separate values
of numerators PMdata PjkDik, denominators PMdata Pjk and probabilities Pjokld.</p>
          <p>k=1 k=1
E ectively, this modi cation of EMC alternates its M-steps between normal and
incremental, and only performs compression and expansion steps after every
other iteration.</p>
          <p>Stepwise EMC uses batches of images in its maximization step. First a new
3D di raction density Wij is calculated using only a subset of images D 2 D.
Then we take weighted average between current desity Wij and Wij as the result
of maximization:</p>
          <p>Wi0j = (1
(2 + t)
)Wij + (2 + t)
where t is the number of iteration and 0:5 &lt; 1 is a coe cient that ensures
that the weight before newly calculated density W exponentially decreases, thus
guaranteeing convergence of the algorithm [10]. This maximization step is then
performed several more times with di erent subsets of images, until all Mdata
images have been used. Then follow normal compression and expansion steps.
Adaptive EMC is the nal proposed modi cation which does not modify any
of the three steps of EMC, and instead it only takes e ect after the M-step, when
the new values of Wi0j are calculated. Instead of taking the point W 0 itself, which
maximizes the expected log-likelihood function Q(W 0), we try to go further in
the same direction:</p>
          <p>^
Wij = Wij + (Wi0j</p>
          <p>Wij );
where coe cient 1 is adaptively changed based on log-likelihood Q(W^ ).
If Q(W^ ) Q(W ) then is increased and the W^ is accepted as the result of
current iteration, otherwise is reset to 1 and W 0 is taken as a result instead.
This approach guarantees that log-likelihood never decreases and the algorithm
thus converges [9].
2.2</p>
        </sec>
      </sec>
      <sec id="sec-2-2">
        <title>Testing the algorithms</title>
        <p>To evaluate the performance of our modi cations and to compare them to regular
EMC we tested them using simulated di raction data.</p>
        <p>In the rst test we used a binary contrast torus in reciprocal space as our
object. Using such a simple model allows us to successfully perform orientation
recovery in a short time and without tuning of any reconstruction parameters.
This model allows us to easily compare di erent algorithms, but it has a
drawback of being very far removed from actual experimental data. For that reason
we performed a second more life-like test.</p>
        <p>
          In the second test we used di raction patterns of keyhole limpet hemocyanin
[4] simulated by Dragon y [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ] software package. In order to produce successful
reconstructions from this data, we used deterministic annealing modi cation of
EMC as described in [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ].
        </p>
        <p>In both tests for each algorithm we performed the reconstruction 5 times,
using a random initial approximation of 3D di raction density W 0. Then we
compared the output of each iteration W t with the initial density Wtrue, that
was used to generate the di raction images. We used root mean square di erence
(RMS di erence) between these two 3D di raction densities as our metric of
quality of reconstruction.
3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Results</title>
      <p>In the rst test we used 1000 images with 4900 pixels in each image. Number
of possible rotations Mrot was increasing every 10 iterations. Starting from 420
0.24
0.22
possible orientations on the rst ten iterations and up to 10860 orientations for
iterations 41 through 50. The results of this test are presented on Fig. 1.</p>
      <p>One can see that out of three proposed modi cations, only incremental EMC
demonstrated better results than unmodi ed algorithm. Stepwise EMC proved
to be too dependent on the random selection of the rst batch of images used in
reconstruction. Adaptive EMC didn't provide any boost to the speed of
convergence, due to the fact that the coe cient never became greater than 1 without
decreasing the expected log-likelihood.</p>
      <p>For these reasons stepwise and adaptive modi cations were ruled out as
ine ective, and for the second test only Incremental EMC was evaluated. In this
test we used 5000 images with 10000 pixels and 10860 possible orientations. The
results of this test are presented on Fig. 2.</p>
      <p>Both algorithms demonstrated similar results, however our chosen metric
of quality doesn't perform very well on this test. The di erence between 0-th
iteration which is just random noise and the nal output of the algorithm is
quite small, when looking only at the RMS di erence between the reconstructed
and initial 3D di raction density. Due to this we cannot conclusively evaluate
the performance of incremental modi cation of EMC algorithm.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusion</title>
      <p>In this work we proposed, developed, and tested three modi cations to the EMC
algorithm, used to solve orientation recovery problem in SPI experiments. After
the rst preliminary test, adaptive and stepwise modi cations have shown worse
results than unmodi ed algorithm and were thus ruled out as non-viable. For
the more promising incremental modi cation we performed a second set of tests
with more life-like input data. In these tests both incremental and regular EMC
0
5
10</p>
      <p>15
Iteration
20
25
30
demonstrated similar results, but due to instability of reconstruction process and
di culty of the evaluation of reconstruction quality, we can not de nitively say
that one algorithm is better than the other. Additional tests may be required to
establish that.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgements</title>
      <p>This research was supported by Russian Science Foundation (project No.
18-4106001) and Helmholtz Associations Initiative Networking Fund (HRSF-0002).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Ayyer</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lan</surname>
          </string-name>
          , T.Y.,
          <string-name>
            <surname>Elser</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Loh</surname>
            ,
            <given-names>N.D.</given-names>
          </string-name>
          :
          <article-title>Dragon y: an implementation of the expand{maximize{compress algorithm for single-particle imaging</article-title>
          .
          <source>Journal of Applied Crystallography</source>
          <volume>49</volume>
          (
          <issue>4</issue>
          ),
          <volume>1320</volume>
          {1335 (Aug
          <year>2016</year>
          ). https://doi.org/10.1107/S1600576716008165
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Chapman</surname>
            ,
            <given-names>H.N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Barty</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bogan</surname>
            ,
            <given-names>M.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Boutet</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Frank</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hau-Riege</surname>
            ,
            <given-names>S.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Marchesini</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Woods</surname>
            ,
            <given-names>B.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bajt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Benner</surname>
            ,
            <given-names>W.H.</given-names>
          </string-name>
          , London,
          <string-name>
            <given-names>R.A.</given-names>
            ,
            <surname>Plonjes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            ,
            <surname>Kuhlmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Treusch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            ,
            <surname>Dusterer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Tschentscher</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            ,
            <surname>Schneider</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.R.</given-names>
            ,
            <surname>Spiller</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            ,
            <surname>Moller</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            ,
            <surname>Bostedt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Hoener</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Shapiro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.A.</given-names>
            ,
            <surname>Hodgson</surname>
          </string-name>
          , K.O.,
          <string-name>
            <surname>van der Spoel</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Burmeister</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bergh</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Caleman</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Huldt</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Seibert</surname>
            ,
            <given-names>M.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Maia</surname>
            ,
            <given-names>F.R.N.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lee</surname>
            ,
            <given-names>R.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Szoke</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Timneanu</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hajdu</surname>
          </string-name>
          , J.:
          <article-title>Femtosecond di ractive imaging with a soft-x-ray free-electron laser</article-title>
          .
          <source>Nature Physics</source>
          <volume>2</volume>
          (
          <issue>12</issue>
          ),
          <volume>839</volume>
          {843 (Nov
          <year>2006</year>
          ). https://doi.org/10.1038/nphys461
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Dempster</surname>
            ,
            <given-names>A.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Laird</surname>
            ,
            <given-names>N.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rubin</surname>
            ,
            <given-names>D.B.</given-names>
          </string-name>
          :
          <article-title>Maximum likelihood from incomplete data via the em algorithm</article-title>
          .
          <source>Journal of the Royal Statistical Society: Series B (Methodological)</source>
          <volume>39</volume>
          (
          <issue>1</issue>
          ),
          <volume>1</volume>
          {
          <fpage>22</fpage>
          (
          <year>1977</year>
          ). https://doi.org/10.1111/j.2517-
          <fpage>6161</fpage>
          .
          <year>1977</year>
          .tb01600.x
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>