<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article article-type="research-article" dtd-version="2.3" xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Phys.</journal-id>
<journal-title>Frontiers in Physics</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Phys.</abbrev-journal-title>
<issn pub-type="epub">2296-424X</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">1257548</article-id>
<article-id pub-id-type="doi">10.3389/fphy.2023.1257548</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Physics</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>High-energy X-ray spectrum reconstruction: solving the inverse problem from optimized multi-material transmission measurements</article-title>
<alt-title alt-title-type="left-running-head">Walker et al.</alt-title>
<alt-title alt-title-type="right-running-head">
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3389/fphy.2023.1257548">10.3389/fphy.2023.1257548</ext-link>
</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name>
<surname>Walker</surname>
<given-names>A.</given-names>
</name>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Friou</surname>
<given-names>A.</given-names>
</name>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/2375642/overview"/>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Ginsburger</surname>
<given-names>K.</given-names>
</name>
<uri xlink:href="https://loop.frontiersin.org/people/501070/overview"/>
</contrib>
</contrib-group>
<aff>
<institution>CEA</institution>, <institution>DAM</institution>, <institution>DIF</institution>, <addr-line>Arpajon</addr-line>, <country>France</country>
</aff>
<author-notes>
<fn fn-type="edited-by">
<p>
<bold>Edited by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/2006863/overview">Maria Filomena Santarelli</ext-link>, National Research Council (CNR), Italy</p>
</fn>
<fn fn-type="edited-by">
<p>
<bold>Reviewed by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/2379699/overview">Yan Han</ext-link>, North University of China, China</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1195531/overview">Salvador Garc&#xed;a-Pareja</ext-link>, Regional University Hospital of Malaga, Spain</p>
</fn>
<corresp id="c001">&#x2a;Correspondence: A. Friou, <email>Alexandre.FRIOU@cea.fr</email>
</corresp>
</author-notes>
<pub-date pub-type="epub">
<day>20</day>
<month>09</month>
<year>2023</year>
</pub-date>
<pub-date pub-type="collection">
<year>2023</year>
</pub-date>
<volume>11</volume>
<elocation-id>1257548</elocation-id>
<history>
<date date-type="received">
<day>12</day>
<month>07</month>
<year>2023</year>
</date>
<date date-type="accepted">
<day>28</day>
<month>08</month>
<year>2023</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2023 Walker, Friou and Ginsburger.</copyright-statement>
<copyright-year>2023</copyright-year>
<copyright-holder>Walker, Friou and Ginsburger</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p>
</license>
</permissions>
<abstract>
<p>Reconstructing the unknown spectrum of a given X-ray source is a common problem in a wide range of X-ray imaging tasks. For high-energy sources, transmission measurements are mostly used to recover the X-ray spectrum, as a solution to an inverse problem. While this inverse problem is usually under-determined, ill-posedness can be reduced by improving the choice of transmission measurements. A recently proposed approach optimizes custom thicknesses of calibration materials used to generate transmission measurements, employing a genetic algorithm to minimize the condition number of the system matrix before inversion. In this paper, we generalize the proposed approach to multiple calibration materials and show a much larger decrease of the condition number of the system matrix than thickness-only optimization. Additionally, the spectrum reconstruction pipeline is tested in a simulation study with a challenging high-energy Bremsstrahlung X-ray source encountered in Linear Induction Accelerators with strong scatter noise. Using this approach, a realistic noise level is obtained on measurements. A generic anti-scatter grid is designed to reduce noise to an acceptable -yet still high-noise range. A novel noise-robust reconstruction method is then presented, which shows much less sensitive to initialization than common expectation-maximization approaches, enables a precise choice of spectrum resolution and a controlled injection of prior knowledge of the X-ray spectrum.</p>
</abstract>
<kwd-group>
<kwd>spectrum estimation</kwd>
<kwd>flash X-ray</kwd>
<kwd>transmission measurement</kwd>
<kwd>genetic algorithm</kwd>
<kwd>ill-posed inverse problem</kwd>
</kwd-group>
<custom-meta-wrap>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Medical Physics and Imaging</meta-value>
</custom-meta>
</custom-meta-wrap>
</article-meta>
</front>
<body>
<sec id="s1">
<title>1 Introduction</title>
<p>The reconstruction of the unknown spectrum of a given X-ray source is a common problem in a wide range of X-ray imaging tasks [<xref ref-type="bibr" rid="B1">1</xref>, <xref ref-type="bibr" rid="B2">2</xref>]. If the source flux is low, spectrometers are usually preferred to estimate the spectrum. If a very precise modeling of the source is available, a good knowledge of the X-ray spectrum can be obtained, provided that the model input parameters, such as voltage, are measured precisely enough during the pulse [<xref ref-type="bibr" rid="B3">3</xref>]. When none of the two previous conditions are met, transmission measurements are most frequently used to recover the X-ray spectrum, as a solution to an inverse problem [<xref ref-type="bibr" rid="B4">4</xref>&#x2013;<xref ref-type="bibr" rid="B7">7</xref>].</p>
<p>This inverse problem is usually under-determined, because a high resolution of the reconstructed spectrum is required. It is also ill-conditioned, making the spectral estimation unstable and very sensitive to noise. The ill-posedness of this inverse problem can be reduced using a parametric model of the reconstructed spectrum [<xref ref-type="bibr" rid="B8">8</xref>, <xref ref-type="bibr" rid="B9">9</xref>]. However, these model-based methods restrict, by design, the space of possible solutions, thus requiring a fine and general enough physical modelling of the spectrum prior to reconstruction.</p>
<p>Another way to reduce ill-posedness is to improve the quality of the set of transmission measurements. In particular, the recent approach described in [<xref ref-type="bibr" rid="B10">10</xref>] proposed to compute custom thicknesses of calibration materials used to generate transmission measurements, by optimizing on the condition number of the system matrix used for inversion. Using a genetic algorithm, the interest of optimized measurements to reconstruct spectra was demonstrated, in comparison with common linear slab phantoms.</p>
<p>While the approach proved to be very efficient for the configurations tested in [<xref ref-type="bibr" rid="B10">10</xref>], their simulation study was restricted to unrealistically small amounts of Poisson noise, and relatively low-energy spectra. In this work, a challenging high-energy Schiff spectrum [<xref ref-type="bibr" rid="B11">11</xref>] is used to simulate transmission measurements using the Monte-Carlo N-Particle code (MCNP4C) with realistic noise levels. The Schiff spectrum is a typical model for thin-target Bremsstrahlung spectra encountered in radiographic sources based on Linear Induction Accelerators (LIA), used to perform high-energy flash X-ray imaging [<xref ref-type="bibr" rid="B12">12</xref>]. We show that the method presented in [<xref ref-type="bibr" rid="B10">10</xref>] is not readily applicable to this real-world reconstruction problem. Three improvements are thus proposed to obtain a robust spectrum reconstruction. Firstly, the transmission measurement optimization, reduced to variations of material thicknesses in [<xref ref-type="bibr" rid="B10">10</xref>], is extended to multiple materials by modifying the genetic algorithm. We show that using multiple materials yields a much larger decrease of the condition number of the system matrix than thickness-only optimization. Secondly, instead of a generic Poisson noise, a realistic simulated scatter noise is used to evaluate the ability to recover the spectrum. Using this approach, we observe a much higher noise level on measurements, which makes the design of a noise reduction setup mandatory. As such, an anti-scatter grid is proposed, reducing noise to an acceptable range for spectrum reconstruction, but still much higher than noise levels encountered in [<xref ref-type="bibr" rid="B10">10</xref>]. Thirdly, once measurements are optimized and the experimental setup is fixed, a novel reconstruction method is presented, which shows much less sensitive to initialization than expectation-maximization approaches [<xref ref-type="bibr" rid="B10">10</xref>], enables a precise choice of spectrum resolution and a controlled injection of prior knowledge of the X-ray spectrum.</p>
</sec>
<sec sec-type="methods" id="s2">
<title>2 Methods</title>
<sec id="s2-1">
<title>2.1 Transmission measurement model</title>
<p>As illustrated in <xref ref-type="fig" rid="F1">Figure 1</xref>, two types of transmission measurements are considered, which correspond to the two experimental configurations tested in this study. In a given experiment, the setup is made of <italic>M</italic> slabs illuminated by the X-ray source. Behind each slab, a detector is placed to measure the fluence (the detector response function is ideal), which gives us <italic>M</italic> measurements from which we can infer the X-ray source spectrum. Each slab can be made of <italic>K</italic> layers of different materials (left side of <xref ref-type="fig" rid="F1">Figure 1</xref>) or just one material (right side of <xref ref-type="fig" rid="F1">Figure 1</xref>).</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption>
<p>Illustration of the two configurations considered for 4 measurement slabs. A detector is placed behind each slab to measure the attenuated signal.</p>
</caption>
<graphic xlink:href="fphy-11-1257548-g001.tif"/>
</fig>
<p>In what follows, the detector spectral response <italic>D</italic>(<italic>E</italic>) is not accounted for and taken as unity. For each measurement, the forward transmission model is given by the Beer-Lambert law. Given an X-ray source with spectrum <italic>S</italic>(<italic>E</italic>), the transmitted intensity <italic>I</italic> of a measurement writes<disp-formula id="e1">
<mml:math id="m1">
<mml:mi>I</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mo>&#x222b;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mi>S</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mi>D</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:msup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>l</mml:mi>
<mml:mi>&#x3bc;</mml:mi>
<mml:mfenced open="(" close=")">
<mml:mrow>
<mml:mi>E</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msup>
<mml:mspace width="0.17em"/>
<mml:mi>d</mml:mi>
<mml:mi>E</mml:mi>
</mml:math>
<label>(1)</label>
</disp-formula>
</p>
<p>where <italic>l</italic> is the thickness and <italic>&#x3bc;</italic>(<italic>E</italic>) the linear attenuation coefficient (taken from the NIST database [<xref ref-type="bibr" rid="B13">13</xref>]) of the material used for this measurement.</p>
<sec id="s2-1-1">
<title>2.1.1 One material per measurement</title>
<p>This configuration corresponds to the right side of <xref ref-type="fig" rid="F1">Figure 1</xref>. For <italic>M</italic> measurements <italic>y</italic>
<sub>
<italic>i</italic>
</sub> and with an even discretization of the spectrum into <italic>N</italic> bins, the forward problem can be cast into a set of linear equations<disp-formula id="e2">
<mml:math id="m2">
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:munderover accentunder="false" accent="true">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>l</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msup>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mspace width="0.28em"/>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mspace width="-0.17em"/>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
<mml:mi>M</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mspace width="-0.17em"/>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
<mml:mspace width="0.28em"/>
<mml:mi>j</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mspace width="-0.17em"/>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mspace width="-0.17em"/>
</mml:mrow>
</mml:mfenced>
</mml:math>
<label>(2)</label>
</disp-formula>
</p>
<p>where <italic>l</italic>
<sub>
<italic>i</italic>
</sub> is the thickness of the <italic>i</italic>th measurement and <italic>&#x3bc;</italic>
<sub>
<italic>i</italic>,<italic>j</italic>
</sub> is the linear attenuation coefficient value for the <italic>i</italic>th measurement at the discrete energy level <italic>j</italic>.</p>
<p>Eq. <xref ref-type="disp-formula" rid="e2">2</xref> is conveniently put in the matrix form as<disp-formula id="e3">
<mml:math id="m3">
<mml:mi mathvariant="bold">y</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mi>A</mml:mi>
<mml:mo>&#xd7;</mml:mo>
<mml:mi mathvariant="bold">s</mml:mi>
</mml:math>
<label>(3)</label>
</disp-formula>
</p>
<p>with <inline-formula id="inf1">
<mml:math id="m4">
<mml:mi mathvariant="bold">y</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>M</mml:mi>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula> the vector of transmission measurements, <inline-formula id="inf2">
<mml:math id="m5">
<mml:mi mathvariant="bold">s</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula> the vector of the discretized spectrum and <inline-formula id="inf3">
<mml:math id="m6">
<mml:mi>A</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mo stretchy="false">(</mml:mo>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>l</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mo stretchy="false">)</mml:mo>
</mml:mrow>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>M</mml:mi>
<mml:mo>&#xd7;</mml:mo>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula> the forward system matrix.</p>
</sec>
<sec id="s2-1-2">
<title>2.1.2 Multiple materials per measurement</title>
<p>This configuration is illustrated at the left side of <xref ref-type="fig" rid="F1">Figure 1</xref>. Each measurement contains <italic>K</italic> layers of distinct materials. Without any loss of generality, we consider that each measurement contains the same number of layers with the same material order. Only the thickness of each material layer is changed, and can be set to zero. With this assumption, the attenuation coefficient no longer depends on the measurement number <italic>i</italic>. The transmitted intensity <italic>y</italic>
<sub>
<italic>i</italic>
</sub> for the <italic>i</italic>th measurement thus writes<disp-formula id="e4">
<mml:math id="m7">
<mml:msub>
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>&#x3d;</mml:mo>
<mml:munderover accentunder="false" accent="true">
<mml:mrow>
<mml:mo>&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:munderover accentunder="false" accent="true">
<mml:mrow>
<mml:mo>&#x220f;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mn>1</mml:mn>
</mml:mrow>
<mml:mrow>
<mml:mi>K</mml:mi>
</mml:mrow>
</mml:munderover>
<mml:msup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi>l</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msup>
<mml:msub>
<mml:mrow>
<mml:mi>s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>,</mml:mo>
<mml:mspace width="0.28em"/>
<mml:mi>i</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mspace width="-0.17em"/>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
<mml:mi>M</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mspace width="-0.17em"/>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
<mml:mspace width="0.28em"/>
<mml:mi>j</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mspace width="-0.17em"/>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mspace width="-0.17em"/>
</mml:mrow>
</mml:mfenced>
<mml:mo>,</mml:mo>
<mml:mspace width="0.28em"/>
<mml:mi>k</mml:mi>
<mml:mo>&#x2208;</mml:mo>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mspace width="-0.17em"/>
<mml:mfenced open="[" close="]">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>,</mml:mo>
<mml:mi>K</mml:mi>
</mml:mrow>
</mml:mfenced>
<mml:mspace width="-0.17em"/>
</mml:mrow>
</mml:mfenced>
</mml:math>
<label>(4)</label>
</disp-formula>
</p>
<p>where <italic>l</italic>
<sub>
<italic>i</italic>,<italic>k</italic>
</sub> is the thickness of the <italic>k</italic>th layer of the <italic>i</italic>th measurement and <italic>&#x3bc;</italic>
<sub>
<italic>k</italic>,<italic>j</italic>
</sub>(<italic>E</italic>) is the linear attenuation coefficient of the material <italic>k</italic> at energy level <italic>j</italic>. The forward system matrix in Eq. <xref ref-type="disp-formula" rid="e3">3</xref> is modified as <inline-formula id="inf4">
<mml:math id="m8">
<mml:mi>A</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mrow>
<mml:mo>(</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>e</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mo>&#x2212;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mo movablelimits="false" form="prefix">&#x2211;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>l</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>k</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mrow>
<mml:mi>&#x3bc;</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>k</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mrow>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mrow>
<mml:mo>&#x2208;</mml:mo>
<mml:msup>
<mml:mrow>
<mml:mi mathvariant="double-struck">R</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>M</mml:mi>
<mml:mo>&#xd7;</mml:mo>
<mml:mi>N</mml:mi>
</mml:mrow>
</mml:msup>
</mml:math>
</inline-formula>.</p>
</sec>
</sec>
<sec id="s2-2">
<title>2.2 Multi-material thickness optimization</title>
<p>First, let us summarize the methodology and main results in [<xref ref-type="bibr" rid="B10">10</xref>]. The authors worked with one material per slab, as illustrated by the right side of <xref ref-type="fig" rid="F1">Figure 1</xref>, and used a genetic algorithm to optimize the matrix condition number with respect to the thickness and material of each slab. They found that the matrix condition number tend to increase with the number of measurements and that the optimal thickness arrangement follows an exponential sequence. In particular, these findings show that what is usually done (i.e., thickness follows a linear sequence and a great number of measurements is used) tend to increase the matrix condition number by orders of magnitude. An expectation-maximization (EM) algorithm is then used to invert the system and find the spectrum. Moreover, this method was tested to be robust against relatively low levels of Poisson noise. However, much higher noise levels are routinely encountered in experiments. At such noise levels, we believe that a new method is needed.</p>
<p>Using multiple materials in transmission measurements implies some modifications to the thickness optimization genetic algorithm described in [<xref ref-type="bibr" rid="B10">10</xref>]. Two optimizations with slightly different implementations, corresponding to the two types of transmission measurements discussed above, are here considered and tested.</p>
<sec id="s2-2-1">
<title>2.2.1 Multiple materials per measurement</title>
<p>When multiple piled up materials are allowed for each measurement, the genetic algorithm optimizes on two-dimensional matrices of size <italic>M</italic> &#xd7; <italic>K</italic> instead of one-dimensional vectors in the single material case. Each cell of the matrices contains the current thickness of the column&#x2019;s corresponding material for the line&#x2019;s corresponding measurement. In comparison with [<xref ref-type="bibr" rid="B10">10</xref>], the main steps of the genetic optimization are modified as follows.<list list-type="simple">
<list-item>
<p>&#x2022; <bold>Initialization</bold>: <italic>N</italic>
<sub>
<italic>pop</italic>
</sub> matrices are initialized with a randomly chosen value in each cell, such that the sum on each row (i.e., the total thickness of the corresponding measurement slab) remains in a chosen interval [<italic>l</italic>
<sub>min</sub>, <italic>l</italic>
<sub>max</sub>]</p>
</list-item>
<list-item>
<p>&#x2022; <bold>Crossover</bold>: the crossover formula used in [<xref ref-type="bibr" rid="B10">10</xref>] is applied similarly to the rows of the system matrix</p>
</list-item>
<list-item>
<p>&#x2022; <bold>Mutation</bold>: instead of simply modifying the value of the mutated cell as in [<xref ref-type="bibr" rid="B10">10</xref>], the sum of values on the row, corresponding to the total thickness, is modified as well as the proportion of materials</p>
</list-item>
</list>
</p>
</sec>
<sec id="s2-2-2">
<title>2.2.2 One material per measurement</title>
<p>When only one material is allowed per measurement, two-dimensional <italic>M</italic> &#xd7; <italic>K</italic> matrices are also used but with only one non-zero value per row, at the column corresponding to the employed material. The main steps of the genetic optimization are modified as follows.<list list-type="simple">
<list-item>
<p>&#x2022; <bold>Initialization</bold>: <italic>N</italic>
<sub>
<italic>pop</italic>
</sub> matrices are initialized with a randomly chosen value in only 1 cell per row, and the other cells are initialized to zero</p>
</list-item>
<list-item>
<p>&#x2022; <bold>Crossover</bold>: If the two parents are using the same material, the situation refers to the case of [<xref ref-type="bibr" rid="B10">10</xref>]. Otherwise, the two children receive one material each, with thickness values crossed with the same formula</p>
</list-item>
<list-item>
<p>&#x2022; <bold>Mutation</bold>: Each mutation on a row also has a probability of changing the material used for the corresponding measurement</p>
</list-item>
</list>
</p>
</sec>
</sec>
<sec id="s2-3">
<title>2.3 Geometry design and simulation</title>
<p>A basic MCNP4C geometry was built for each set of measurements. Transmission measurement phantoms were represented as cylinders of known thicknesses and radii. Cylinders axes are aiming at the photon source, which is modeled as a point source located 180&#xa0;cm away from the phantoms. A Schiff spectrum, corresponding to a maximum electron energy of 20&#xa0;MeV, incident on a 1.2&#xa0;mm thick tantalum target, is used. The photons are emitted within a cone with a constant angular distribution, chosen in order to cover all the measurement devices. Both photon and electron interactions are modeled, so as to accurately account for scattering. The filling medium is air. All these parameters were chosen to be as close as possible to reality.</p>
<p>The detectors in the simulation are modeled as simple fluence tallies, placed behind each measurement slab. Consistent modeling of detectors in the simulation and accounting for their spectral responses in the optimization process, is left to future work.</p>
<p>As mentioned earlier, the MCNP4C simulation accounts for the presence of scatter noise in the measurements, produced during the passage of X-rays through materials. A specific simulation setup was designed to reduce this scatter noise and obtain clean enough measurements for the spectrum reconstruction.</p>
<p>The proximity between measurement slabs leads to an increase in scatter noise due to cross-talk effects. As such, the first approach employed to decrease scatter noise was to optimize the placement of the measurement slabs within the experimental setup and space them out in order to reduce the interaction between particles coming through the materials. The differential evolution algorithm [<xref ref-type="bibr" rid="B14">14</xref>] was used to compute the optimal placement of <italic>M</italic> points constrained in a circle by minimizing the electrostatic potential between them.</p>
<p>To further reduce this noise, a specific anti-scatter grid was designed. This grid consists of a 20&#xa0;cm deep lead layer between the measurement slabs and the dose sensors. Cylinders of small radius are carved in the lead behind each measurement slab in order to absorb all particles except source photons, yielding the expected signal.</p>
</sec>
<sec id="s2-4">
<title>2.4 Reconstruction algorithm</title>
<sec id="s2-4-1">
<title>2.4.1 Adaptive resampling based on a typical spectrum</title>
<p>Prior to the reconstruction algorithm itself, a preliminary step of dimension reduction is realized on a typical spectrum presenting roughly the same characteristics as the unknown spectrum. As shown in <xref ref-type="fig" rid="F2">Figure 2</xref>, by sampling uniformly from the cumulative integral of this typical spectrum&#x2019;s derivative, an approximately optimal choice of the <italic>N</italic> energy bins is obtained, allowing an efficient spectrum representation, later employed during the optimization process of the reconstruction.</p>
<fig id="F2" position="float">
<label>FIGURE 2</label>
<caption>
<p>Typical Schiff spectrum optimally discretized to <italic>N</italic> &#x3d;100 energy points. The spectrum is normalized to unity.</p>
</caption>
<graphic xlink:href="fphy-11-1257548-g002.tif"/>
</fig>
</sec>
<sec id="s2-4-2">
<title>2.4.2 Spectrum reconstruction as an interpolation</title>
<p>The spectrum is reconstructed on the optimal energy sampling presented above, using experimental or simulated measurements <bold>y</bold>. A candidate spectrum <bold>s</bold>
<sub>
<italic>cand</italic>
</sub> is initialized and then modified during the optimization process. The measurements computed through the forward model <bold>y</bold>
<sub>
<italic>cand</italic>
</sub> &#x3d; <italic>A</italic> &#xd7;<bold>s</bold>
<sub>
<italic>cand</italic>
</sub> are expected to be as close to <bold>y</bold> as possible.</p>
<p>The optimization problem for the spectrum reconstruction thus writes:<disp-formula id="e5">
<mml:math id="m9">
<mml:munder>
<mml:mrow>
<mml:mi>argmin</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">cand</mml:mi>
</mml:mrow>
</mml:msub>
</mml:mrow>
</mml:munder>
<mml:mspace width="1em"/>
<mml:mo stretchy="false">&#x2016;</mml:mo>
<mml:mi mathvariant="bold">y</mml:mi>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>A</mml:mi>
<mml:mo>&#xd7;</mml:mo>
<mml:msub>
<mml:mrow>
<mml:mi mathvariant="bold">s</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi mathvariant="italic">cand</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msup>
<mml:mrow>
<mml:mo stretchy="false">&#x2016;</mml:mo>
</mml:mrow>
<mml:mrow>
<mml:mn>2</mml:mn>
</mml:mrow>
</mml:msup>
</mml:math>
<label>(5)</label>
</disp-formula>
</p>
<p>A straightforward method would consist in performing a spectrum discretization over the optimal energy sampling values <italic>E</italic>
<sub>1</sub>, &#x2026;, <italic>E</italic>
<sub>
<italic>N</italic>
</sub> where <italic>N</italic> is usually large to obtain a good resolution of the spectrum. However, a large <italic>N</italic> increases the degrees of freedom and makes the optimization process harder. It is therefore necessary to reduce the number of parameters used to describe the spectrum. The method chosen here is to sample the spectrum with a small number <italic>P</italic> of interpolation points. This requires the spectrum to be continuous and deprived of high variation peaks, which is a general feature of high-energy Bremsstrahlung spectra.</p>
<p>As shown in <xref ref-type="fig" rid="F3">Figure 3</xref>, the spectrum is thus fully described by <italic>P</italic> interpolation points, which coordinates can evolve both in energy and magnitude (e.g., 2<italic>P</italic> degrees of freedom). At each optimization step, the points are interpolated by a piecewise cubic polynomial function [<xref ref-type="bibr" rid="B15">15</xref>], then projected over the <italic>N</italic> energy intervals. <bold>y</bold>
<sub>
<italic>cand</italic>
</sub> is then computed and new values of coordinates for the interpolation points can be determined.</p>
<fig id="F3" position="float">
<label>FIGURE 3</label>
<caption>
<p>Schiff spectrum interpolated by <italic>P</italic> &#x3d; 12 interpolation points distributed in the energy interval.</p>
</caption>
<graphic xlink:href="fphy-11-1257548-g003.tif"/>
</fig>
</sec>
<sec id="s2-4-3">
<title>2.4.3 Reconstruction algorithm</title>
<p>A trust-region algorithm for constrained optimization [<xref ref-type="bibr" rid="B16">16</xref>] is used to compute the interpolation points corresponding to the approximated spectrum. Minimum and maximum energy levels are enforced, based on a known low energy cut-off and the maximum energy of electrons. The spectrum magnitude is constrained using a simple step function. In addition to this restriction, the spectrum is normalized by its integral during each step of the optimization process.</p>
<p>For this algorithm, the <italic>P</italic> abscissa of the interpolation points are fixed, which improves optimization performances and decreases execution time. However, other algorithms might be more efficient with the abscissa taken as additional degrees of freedom. In the case of this study, these abscissa values are taken as evenly spaced inside the energy interval, in logarithmic scale. The optimization algorithm is then applied to the <italic>P</italic> magnitudes of the interpolation points, with a fixed number of iterations.</p>
</sec>
</sec>
</sec>
<sec sec-type="results" id="s3">
<title>3 Results</title>
<sec id="s3-1">
<title>3.1 Impact of multiple materials</title>
<p>A comparison between our multi-material genetic algorithm and the version implemented in [<xref ref-type="bibr" rid="B10">10</xref>] was performed using the same setup. A number of <italic>M</italic> &#x3d; 8 measurements was fixed, <italic>N</italic> &#x3d; 100 energy bins and <italic>K</italic> &#x3d; 4 materials (iron, copper, tantalum and lead) were used. For a fair comparison, all other hyper-parameters, including the number of generations, the population size, the crossover and mutation probabilities, the target distribution mean and the best fitness boosting factor, were kept identical to [<xref ref-type="bibr" rid="B10">10</xref>].</p>
<sec id="s3-1-1">
<title>3.1.1 Algorithms performance</title>
<p>The work done in [<xref ref-type="bibr" rid="B10">10</xref>] led to a great reduction in orders of magnitude of the forward matrix condition number, and highlighted an exponential distribution of thicknesses for the optimal measurement set using one material. Using this one-material genetic algorithm, the optimal arrangement of thicknesses plotted on <xref ref-type="fig" rid="F4">Figure 4A</xref> was obtained, with a condition number of 1.8 &#xd7; 10<sup>6</sup>.</p>
<fig id="F4" position="float">
<label>FIGURE 4</label>
<caption>
<p>Optimal arrangement of thicknesses and achieved condition number for the different versions of the genetic algorithm.</p>
</caption>
<graphic xlink:href="fphy-11-1257548-g004.tif"/>
</fig>
<p>
<xref ref-type="fig" rid="F4">Figure 4B</xref> displays the results obtained using the first type of transmission measurements with several materials, described in <xref ref-type="sec" rid="s2-3">Section 2.2.1</xref>. When multiple piled up materials are allowed per measurement, a significant improvement of the previous results is observed, with a further reduced condition number of 1.61 &#xd7; 10<sup>4</sup>.</p>
<p>
<xref ref-type="fig" rid="F4">Figure 4C</xref> shows the results obtained using a single material per measurement. With this second version of the algorithm presented in 2.2.2, an even greater improvement is observed with a highly reduced condition number of 2.11 &#xd7; 10<sup>3</sup>.</p>
</sec>
<sec id="s3-1-2">
<title>3.1.2 Stability of the optimization</title>
<p>Regardless of the performance of the different algorithms, another main goal of the proposed algorithms is to ensure a good stability of the optimized measurements. To compare the stability of the multi-material algorithms developed in this study, both were executed several times with the same parameters. The set of materials obtained for each optimization was then plotted.</p>
<p>Results are shown in <xref ref-type="fig" rid="F5">Figure 5</xref>. In <xref ref-type="fig" rid="F5">Figure 5A</xref> where multiple materials per measurement are allowed, the mean thickness value and the standard deviation of each piled up material for each measurement are plotted. However, in <xref ref-type="fig" rid="F5">Figure 5B</xref> where only one material is allowed per measurement, the plots have to be separated because a given measurement can correspond to different materials for different optimizations.</p>
<fig id="F5" position="float">
<label>FIGURE 5</label>
<caption>
<p>Stability study for both versions of the multi-material genetic algorithm. The version when only one material is allowed per measurement <bold>(B)</bold> is more stable and is hence preferred.</p>
</caption>
<graphic xlink:href="fphy-11-1257548-g005.tif"/>
</fig>
<p>The result of the stability comparison is clear. As illustrated on <xref ref-type="fig" rid="F5">Figure 5A</xref>, the algorithm version with piled up materials is quite unstable, with a significant standard deviation on material thicknesses between experiments and a strong variance on the condition number. Conversely, for the algorithm with only one material per measurement, the stability is satisfying. As shown in <xref ref-type="fig" rid="F5">Figure 5B</xref>, each measurement is attributed almost always the same material with the same thickness across experiments. The reduction of the research space size thus plays a key role in the stability improvement.</p>
</sec>
</sec>
<sec id="s3-2">
<title>3.2 Reduction of scatter noise</title>
<p>Different geometric configurations have been tested in MCNP4C to reduce scatter noise while keeping an easy-to-design setup. For each of them, a simulation was run using the measurement slabs returned by the one-material-per-measurement version of the genetic algorithm for <italic>M</italic> &#x3d; 12 measurements. In this study we consider that scattered rays represent the entire measurement noise, which is a reasonable approximation. The Monte-Carlo simulation code allows the calculation of the theoretical unscattered rays along with the measurement of total (unscattered and scattered) rays. The objective is to design a configuration in which the measured total rays are as close to the theoretical direct rays as possible. Total and unscattered rays have been measured for each simulation and are plotted in <xref ref-type="fig" rid="F6">Figure 6</xref>.</p>
<fig id="F6" position="float">
<label>FIGURE 6</label>
<caption>
<p>Total (y<sub>
<italic>tot</italic>
</sub>) and direct (y<sub>
<italic>dir</italic>
</sub>) measured rays for the 3 tested experimental configurations. Best results are obtained with configuration 3, using an anti-scatter grid.</p>
</caption>
<graphic xlink:href="fphy-11-1257548-g006.tif"/>
</fig>
<p>Three configurations were tested: a straightforward design where measurement slabs were placed on the edge of a circle of given radius (config. 1, <xref ref-type="fig" rid="F6">Figure 6A</xref>), a reworked configuration in which slabs were optimally distributed in a circle by minimizing the electrostatic potential between them (config. 2, <xref ref-type="fig" rid="F6">Figure 6B</xref>), and a last design where a thick lead anti-scatter grid was added between the measurement slabs and the sensors of configuration 2 (config. 3, <xref ref-type="fig" rid="F6">Figure 6C</xref>).</p>
<p>With configuration 2, the scatter noise was reduced by half compared to configuration 1. While significant, this reduction is not sufficient to exploit transmission measurements for spectrum reconstruction. Using an anti-scatter grid (configuration 3) reduces the scatter noise to an exploitable amount of around 3%, allowing the measurements to be used for the spectrum reconstruction.</p>
</sec>
<sec id="s3-3">
<title>3.3 Schiff spectrum reconstruction</title>
<sec id="s3-3-1">
<title>3.3.1 Nominal configuration</title>
<p>In this study, the nominal configuration for the spectrum reconstruction consists in: <italic>M</italic> &#x3d; 12 measurements, <italic>N</italic> &#x3d; 100 energy intervals, <italic>K</italic> &#x3d; 4 different materials (iron, copper, tantalum and lead), only one material allowed per measurement in the genetic measurement set optimization (hyperparameters: 500 generations, 1000 in population size), config. Three for the simulation configuration, and <italic>p</italic> &#x3d; 10 interpolation points for the reconstruction algorithm.</p>
<p>For this nominal configuration, the reconstruction algorithm has been applied multiple times. Reconstructed spectrums (dotted lines) are plotted on <xref ref-type="fig" rid="F7">Figure 7</xref>, along with the objective theoretical spectrum (solid black line).</p>
<fig id="F7" position="float">
<label>FIGURE 7</label>
<caption>
<p>Spectrum reconstruction in the nominal configuration: prior function (red), source spectrum (black) and reconstructed spectrums (dotted lines). Values under 40&#xa0;keV are not reconstructed and set to 0. The overall noise, ratio of scattered to unscattered photons, was about 1.9%. Reconstructed spectrums are in very good agreement with the source spectrum despite a high level of noise.</p>
</caption>
<graphic xlink:href="fphy-11-1257548-g007.tif"/>
</fig>
</sec>
<sec id="s3-3-2">
<title>3.3.2 Ablation studies</title>
<p>Finally, ablation studies were performed to evaluate the influence of every part of the spectrum estimation pipeline on the reconstruction accuracy. <xref ref-type="fig" rid="F8">Figure 8</xref> highlights the relative improvements obtained with each major step of the reconstruction method.</p>
<fig id="F8" position="float">
<label>FIGURE 8</label>
<caption>
<p>Ablation study of the spectrum reconstruction in nominal configuration: prior (solid red), source spectrum (solid black) and reconstructions (dotted lines).</p>
</caption>
<graphic xlink:href="fphy-11-1257548-g008.tif"/>
</fig>
<p>More precisely, reconstructions have been performed independently in the nominal configuration in the cases where:<list list-type="simple">
<list-item>
<p>&#x2022; No anti-scatter grid was used for the measurements (<xref ref-type="fig" rid="F8">Figure 8A</xref>)</p>
</list-item>
<list-item>
<p>&#x2022; Only one material (iron) was used for the experimental slabs (<xref ref-type="fig" rid="F8">Figure 8B</xref>)</p>
</list-item>
<list-item>
<p>&#x2022; The expectation-maximization (EM) algorithm was used for the reconstruction instead of the algorithm proposed in this study (<xref ref-type="fig" rid="F8">Figure 8C</xref>)</p>
</list-item>
</list>
</p>
</sec>
</sec>
</sec>
<sec sec-type="discussion" id="s4">
<title>4 Discussion</title>
<sec id="s4-1">
<title>4.1 Impact of multiple materials</title>
<p>The work done in [<xref ref-type="bibr" rid="B10">10</xref>] led to a great reduction in orders of magnitude of the forward matrix condition number, and highlighted an exponential distribution of thicknesses for the optimal measurement set using one material. Results shown in <xref ref-type="sec" rid="s3-1">Section 3.1</xref> illustrate the impact of using multiple materials on the condition number, with two distinct cases.</p>
<p>Using multiple piled up materials is beneficial in comparison to the previous setup from [<xref ref-type="bibr" rid="B10">10</xref>]. This can be explained by the much larger size of the research space when multiple materials are allowed, leading to a better optimum than the single material algorithm. However, as shown in <xref ref-type="fig" rid="F5">Figure 5A</xref>, the expected drawback of this larger research space is a worse stability. The reduction of the research space size thus plays a key role in the stability improvement.</p>
<p>With the second version of our algorithm presented in 1, where only one material is allowed per measurement, an even greater improvement of results is observed with a highly reduced condition number and a good stability, shown in <xref ref-type="fig" rid="F4">Figure 4C</xref> and <xref ref-type="fig" rid="F5">Figure 5B</xref>. Even though the research space is smaller than in the previous version of the algorithm (which theoretically includes this one&#x2019;s particular case), the relevant constraints put on the optimizer allow a more thorough exploration, leading to the discovery of a better optimum.</p>
</sec>
<sec id="s4-2">
<title>4.2 Reduction of scatter noise</title>
<p>Reduction of the measurement scatter noise has proven to be necessary when a challenging high-energy spectrum is reconstructed. Indeed, even though the ill-posedness of the inverse problem is reduced by the search of optimal measurement sets, the condition number remains significant enough to disturb the reconstruction when the measurement noise is too high.</p>
<p>As displayed in <xref ref-type="fig" rid="F6">Figure 6A</xref>, when a naive simulation configuration is used (config. 1) the scatter noise tends to become as large as 100%, leading to measurements unusable for reconstruction.</p>
<p>When the measurement slabs are optimally distributed within the experimental circle (config. 2), <xref ref-type="fig" rid="F6">Figure 6B</xref> shows a substantial reduction of scattering, with unscattered rays noised by an amount of 50%. This scatter noise is however still way too high for the inversion.</p>
<p>Lastly, when a thick lead anti-scatter grid is added behind the measurement slabs (config. 3), the scatter noise is reduced to a negligible amount of around 3% as shown in <xref ref-type="fig" rid="F6">Figure 6C</xref>. The lead layer allows the absorption of almost every scattered ray and the detection of the unscattered rays that pass through material slabs parallel to its axis. The scatter noise obtained with this last configuration appears to be small enough for the measurements to be used to solve the inverse problem and reconstruct the spectrum.</p>
</sec>
<sec id="s4-3">
<title>4.3 Schiff spectrum reconstruction</title>
<sec id="s4-3-1">
<title>4.3.1 Nominal configuration</title>
<p>As shown in <xref ref-type="fig" rid="F7">Figure 7</xref>, the overall reconstruction accuracy is satisfying in the nominal configuration, but two areas can be distinguished. For high energy (<italic>E</italic> &#x3e; 40&#xa0;keV) there is no restriction as the constraint step function is set to unity, and the reconstruction shows great accuracy even for as few as 12 interpolation points. However, in the low energy range, the points are constrained to 0 and are thus not optimized. In practice, this is necessary because of the much lower contribution of low energies in the transmission measurements. Indeed, when dense materials are subjected to an X-ray beam of given spectrum, most of the low-energy photons are absorbed and are not detected at the end. The difficulty to reconstruct the low energy part of spectra is thus an intrinsic issue for the inverse problem at hand.</p>
</sec>
<sec id="s4-3-2">
<title>4.3.2 Ablation studies</title>
<p>
<xref ref-type="fig" rid="F8">Figure 8A</xref> emphasizes the substantial impact of the presence of an anti-scatter grid in the experimental setup on the reconstruction accuracy. When nothing is done to reduce the scattered rays, the measurements are very noisy, leading inevitably to an inaccurate reconstruction.</p>
<p>Similarly, the influence of using multiple materials is illustrated in <xref ref-type="fig" rid="F8">Figure 8B</xref>. Because only iron is allowed in the first optimization problem, the genetic algorithm cannot converge to a satisfying minimum of the condition number of the system. Thus, even with low noise, the reconstruction is unstable and inaccurate.</p>
<p>Finally, the interest of using the &#x201c;trust-constr&#x201d; algorithm for the second optimization problem formulated above is clearly highlighted in <xref ref-type="fig" rid="F8">Figure 8C</xref>. When the expectation-maximization algorithm is used instead, as it has usually been done in other studies [<xref ref-type="bibr" rid="B10">10</xref>], the quality of the reconstruction is very poor for low and medium energy ranges, and the spectrum peak is not retrieved at the expected energy level.</p>
</sec>
</sec>
</sec>
<sec sec-type="conclusion" id="s5">
<title>5 Conclusion</title>
<p>In this article, a full spectrum reconstruction pipeline for high-energy X-ray sources was presented. Building on prior work which introduced the optimization of transmission measurements, the present work generalizes this approach to multiple calibration materials, enabling to reach better performance than thickness-only optimization. This work also demonstrated the importance of noise reduction to perform spectrum reconstruction in realistic experimental setups. As such, it showed that the design of an adapted anti-scatter grid is a precious asset to solve the inverse problem and obtain faithful spectrum estimations. Finally, a novel noise-robust reconstruction method was shown to outperform common expectation-maximization approaches, enabling a precise choice of spectrum resolution and a controlled injection of prior knowledge of the X-ray spectrum.</p>
</sec>
</body>
<back>
<sec sec-type="data-availability" id="s6">
<title>Data availability statement</title>
<p>The original contributions presented in the study are included in the article/Supplementary Material, further inquiries can be directed to the corresponding author.</p>
</sec>
<sec id="s7">
<title>Author contributions</title>
<p>KG and AF lead the research. AW wrote the code and conducted numerical experiments. AW, KG, and AF wrote the article. All authors contributed to the article and approved the submitted version.</p>
</sec>
<sec id="s8">
<title>Funding</title>
<p>The author(s) declare that no financial support was received for the research, authorship, and/or publication of this article.</p>
</sec>
<sec sec-type="COI-statement" id="s9">
<title>Conflict of interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="disclaimer" id="s10">
<title>Publisher&#x2019;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<ref-list>
<title>References</title>
<ref id="B1">
<label>1.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Sidky</surname>
<given-names>EY</given-names>
</name>
<name>
<surname>Yu</surname>
<given-names>L</given-names>
</name>
<name>
<surname>Pan</surname>
<given-names>X</given-names>
</name>
</person-group>. <source>Application of expectation maximization to x-ray spectrum estimation for medical accelerators from transmission data</source>. <publisher-loc>San Diego, CA</publisher-loc>: <publisher-name>SPIE Digital Library</publisher-name> (<year>2004</year>). p. <fpage>856</fpage>. <pub-id pub-id-type="doi">10.1117/12.535989</pub-id>
</citation>
</ref>
<ref id="B2">
<label>2.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Duan</surname>
<given-names>X</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>J</given-names>
</name>
<name>
<surname>Yu</surname>
<given-names>L</given-names>
</name>
<name>
<surname>Leng</surname>
<given-names>S</given-names>
</name>
<name>
<surname>McCollough</surname>
<given-names>CH</given-names>
</name>
</person-group>. <article-title>CT scanner x-ray spectrum estimation from transmission measurements</article-title>. <source>Med Phys</source> (<year>2011</year>) <volume>38</volume>:<fpage>993</fpage>&#x2013;<lpage>7</lpage>. <pub-id pub-id-type="doi">10.1118/1.3547718</pub-id>
</citation>
</ref>
<ref id="B3">
<label>3.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Wood</surname>
<given-names>WM</given-names>
</name>
</person-group>. <article-title>Shot-by-shot spectrum model for rod-pinch, pulsed radiography machines</article-title>. <source>AIP Adv</source> (<year>2018</year>) <volume>8</volume>:<fpage>025105</fpage>. <pub-id pub-id-type="doi">10.1063/1.5016299</pub-id>
</citation>
</ref>
<ref id="B4">
<label>4.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Waggener</surname>
<given-names>RG</given-names>
</name>
<name>
<surname>Blough</surname>
<given-names>MM</given-names>
</name>
<name>
<surname>Terry</surname>
<given-names>JA</given-names>
</name>
<name>
<surname>Chen</surname>
<given-names>D</given-names>
</name>
<name>
<surname>Lee</surname>
<given-names>NE</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>S</given-names>
</name>
<etal/>
</person-group> <article-title>X-ray spectra estimation using attenuation measurements from 25 kVp to 18 MV</article-title>. <source>Med Phys</source> (<year>1999</year>) <volume>26</volume>:<fpage>1269</fpage>&#x2013;<lpage>78</lpage>. <pub-id pub-id-type="doi">10.1118/1.598622</pub-id>
</citation>
</ref>
<ref id="B5">
<label>5.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Armbruster</surname>
<given-names>B</given-names>
</name>
<name>
<surname>Hamilton</surname>
<given-names>RJ</given-names>
</name>
<name>
<surname>Kuehl</surname>
<given-names>AK</given-names>
</name>
</person-group>. <article-title>Spectrum reconstruction from dose measurements as a linear inverse problem</article-title>. <source>Phys Med Biol</source> (<year>2004</year>) <volume>49</volume>:<fpage>5087</fpage>&#x2013;<lpage>99</lpage>. <pub-id pub-id-type="doi">10.1088/0031-9155/49/22/005</pub-id>
</citation>
</ref>
<ref id="B6">
<label>6.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Paniak</surname>
<given-names>LD</given-names>
</name>
<name>
<surname>Charland</surname>
<given-names>PM</given-names>
</name>
</person-group>. <article-title>Enhanced bremsstrahlung spectrum reconstruction from depth&#x2013;dose gradients</article-title>. <source>Phys Med Biol</source> (<year>2005</year>) <volume>50</volume>:<fpage>3245</fpage>&#x2013;<lpage>61</lpage>. <pub-id pub-id-type="doi">10.1088/0031-9155/50/14/004</pub-id>
</citation>
</ref>
<ref id="B7">
<label>7.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Sidky</surname>
<given-names>EY</given-names>
</name>
<name>
<surname>Yu</surname>
<given-names>L</given-names>
</name>
<name>
<surname>Pan</surname>
<given-names>X</given-names>
</name>
<name>
<surname>Zou</surname>
<given-names>Y</given-names>
</name>
<name>
<surname>Vannier</surname>
<given-names>M</given-names>
</name>
</person-group>. <article-title>A robust method of x-ray source spectrum estimation from transmission measurements: Demonstrated on computer simulated, scatter-free transmission data</article-title>. <source>J Appl Phys</source> (<year>2005</year>) <volume>97</volume>. <pub-id pub-id-type="doi">10.1063/1.1928312</pub-id>
</citation>
</ref>
<ref id="B8">
<label>8.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zhao</surname>
<given-names>W</given-names>
</name>
<name>
<surname>Niu</surname>
<given-names>K</given-names>
</name>
<name>
<surname>Schafer</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Royalty</surname>
<given-names>K</given-names>
</name>
</person-group>. <article-title>An indirect transmission measurement-based spectrum estimation method for computed tomography</article-title>. <source>Phys Med Biol</source> (<year>2015</year>) <volume>60</volume>:<fpage>339</fpage>&#x2013;<lpage>57</lpage>. <pub-id pub-id-type="doi">10.1088/0031-9155/60/1/339</pub-id>
</citation>
</ref>
<ref id="B9">
<label>9.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>FitzGerald</surname>
<given-names>P</given-names>
</name>
<name>
<surname>Araujo</surname>
<given-names>S</given-names>
</name>
<name>
<surname>Wu</surname>
<given-names>M</given-names>
</name>
<name>
<surname>De Man</surname>
<given-names>B</given-names>
</name>
</person-group>. <article-title>Semiempirical, parameterized spectrum estimation for x-ray computed tomography</article-title>. <source>Med Phys</source> (<year>2021</year>) <volume>48</volume>:<fpage>2199</fpage>&#x2013;<lpage>213</lpage>. <pub-id pub-id-type="doi">10.1002/mp.14715</pub-id>
</citation>
</ref>
<ref id="B10">
<label>10.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Li</surname>
<given-names>M</given-names>
</name>
<name>
<surname>Fan</surname>
<given-names>F-L</given-names>
</name>
<name>
<surname>Cong</surname>
<given-names>W</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>G</given-names>
</name>
</person-group>. <article-title>EM estimation of the X-ray spectrum with a genetically optimized step-wedge phantom</article-title>. <source>Front Phys</source> (<year>2021</year>) <volume>9</volume>:<fpage>678171</fpage>. <pub-id pub-id-type="doi">10.3389/fphy.2021.678171</pub-id>
</citation>
</ref>
<ref id="B11">
<label>11.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Schiff</surname>
<given-names>LI</given-names>
</name>
</person-group>. <article-title>Energy-angle distribution of thin target bremsstrahlung</article-title>. <source>Phys Rev</source> (<year>1951</year>) <volume>83</volume>:<fpage>252</fpage>&#x2013;<lpage>3</lpage>. <pub-id pub-id-type="doi">10.1103/PhysRev.83.252</pub-id>
</citation>
</ref>
<ref id="B12">
<label>12.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Estre</surname>
<given-names>N</given-names>
</name>
<name>
<surname>Eck</surname>
<given-names>D</given-names>
</name>
<name>
<surname>Pettier</surname>
<given-names>J-L</given-names>
</name>
<name>
<surname>Payan</surname>
<given-names>E</given-names>
</name>
<name>
<surname>Roure</surname>
<given-names>C</given-names>
</name>
<name>
<surname>Simon</surname>
<given-names>E</given-names>
</name>
</person-group>. <article-title>High-energy X-ray imaging applied to non destructive characterization of large nuclear waste drums</article-title>. In: <conf-name>2013 3rd International Conference on Advancements in Nuclear Instrumentation, Measurement Methods and their Applications (ANIMMA)</conf-name>; <conf-date>23-27 June 2013</conf-date>; <conf-loc>Marseille, France</conf-loc> (<year>2013</year>). <comment>1&#x2013;6</comment>. <pub-id pub-id-type="doi">10.1109/ANIMMA.2013.6727987</pub-id>
</citation>
</ref>
<ref id="B13">
<label>13.</label>
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Hubbell</surname>
<given-names>JH</given-names>
</name>
<name>
<surname>Seltzer</surname>
<given-names>SM</given-names>
</name>
</person-group>. <article-title>Tables of X-ray mass attenuation coefficients and mass energy-absorption coefficients from 1 keV to 20 MeV for elements Z &#x3d; 1 to 92 and 48 additional substances of dosimetric interest</article-title> (<year>2004</year>). <comment>Available at: <ext-link ext-link-type="uri" xlink:href="https://www.nist.gov/pml/x-ray-mass-attenuation-coefficients">https://www.nist.gov/pml/x-ray-mass-attenuation-coefficients</ext-link>
</comment>. <pub-id pub-id-type="doi">10.18434/T4D01F</pub-id>
</citation>
</ref>
<ref id="B14">
<label>14.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Storn</surname>
<given-names>R</given-names>
</name>
<name>
<surname>Price</surname>
<given-names>K</given-names>
</name>
</person-group>. <article-title>Differential evolution&#x2013;a simple and efficient heuristic for global optimization over continuous spaces</article-title>. <source>J Glob optimization</source> (<year>1997</year>) <volume>11</volume>:<fpage>341</fpage>&#x2013;<lpage>59</lpage>. <pub-id pub-id-type="doi">10.1023/a:1008202821328</pub-id>
</citation>
</ref>
<ref id="B15">
<label>15.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Akima</surname>
<given-names>H</given-names>
</name>
</person-group>. <article-title>A new method of interpolation and smooth curve fitting based on local procedures</article-title>. <source>J ACM (JACM)</source> (<year>1970</year>) <volume>17</volume>:<fpage>589</fpage>&#x2013;<lpage>602</lpage>. <pub-id pub-id-type="doi">10.1145/321607.321609</pub-id>
</citation>
</ref>
<ref id="B16">
<label>16.</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Conn</surname>
<given-names>AR</given-names>
</name>
<name>
<surname>Gould</surname>
<given-names>NI</given-names>
</name>
<name>
<surname>Toint</surname>
<given-names>PL</given-names>
</name>
</person-group>. <article-title>
<italic>Trust region methods</italic> (SIAM)</article-title>. <source>Numer Optimization</source> (<year>2000</year>) <volume>2000</volume>:<fpage>66</fpage>.</citation>
</ref>
</ref-list>
</back>
</article>