원시데이터 수집 시스템
선정목록으로

Online Beam Current Estimation in Particle Beam Microscopy

관련 필름·전자재료 · (13) 프리즘 필름

기본 정보

저자
  1. Sheila W. Seidel — Department of Electrical and Computer Engineering, Boston University, Boston, MA, USA|||Charles Stark Draper Laboratory, Cambridge, MA, USA
  2. Luisa Watkins — Department of Electrical and Computer Engineering, Boston University, Boston, MA, USA
  3. Minxu Peng — Department of Electrical and Computer Engineering, Boston University, Boston, MA, USA
  4. Akshay Agarwal — Department of Electrical and Computer Engineering, Massachusetts Institute of Technology, Cambridge, MA, USA
  5. Christopher Yu — Charles Stark Draper Laboratory, Cambridge, MA, USA
  6. Vivek K Goyal — Department of Electrical and Computer Engineering, Boston University, Boston, MA, USA
DOI
10.1109/tci.2022.3182212
저널
IEEE Transactions on Computational Imaging
발행년도
2022
발행기관
Institute of Electrical and Electronics Engineers
피인용수
4
라이선스
publisher-specific-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/tci.2022.3182212
토픽
Advancements in Photolithography Techniques
OpenAlex ID
W3217212482

평가 내용

관련도
관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

In conventional particle beam microscopy, knowledge of the beam current is essential for accurate micrograph formation and sample milling. This generally necessitates offline calibration of the instrument. In this work, we establish that beam current can be estimated online, from the same secondary electron count data that is used to form micrographs. Our methods depend on the recently introduced time-resolved measurement concept, which combines multiple short measurements at a single pixel and has previously been shown to partially mitigate the effect of beam current variation on micrograph accuracy. We analyze the problem of jointly estimating beam current and secondary electron yield using the Cramér–Rao bound. Joint estimators operating at a single pixel and estimators that exploit models for inter-pixel correlation and Markov beam current variation are proposed and tested on synthetic microscopy data. Our estimates of secondary electron yield that incorporate explicit beam current estimation beat state-of-the-art methods, resulting in micrograph accuracy nearly indistinguishable from what is obtained with perfect beam current knowledge. Our novel beam current estimation could help improve milling outcomes, prevent sample damage, and enable online instrument diagnostics.

본문 88,326자

본문 펼치기
## Online Beam Current Estimation in Particle Beam Microscopy Sheila W. Seidel, Luisa Watkins, Minxu Peng, Akshay Agarwal, Christopher Yu, and Vivek K Goyal _Abstract_ —In conventional particle beam microscopy, knowledge of the beam current is essential for accurate micrograph formation and sample milling. This generally necessitates offline calibration of the instrument. In this work, we establish that beam current can be estimated online, from the same secondary electron count data that is used to form micrographs. Our methods depend on the recently introduced time-resolved measurement concept, which combines multiple short measurements at a single pixel and has previously been shown to partially mitigate the effect of beam current variation on micrograph accuracy. We analyze the problem of jointly estimating beam current and secondary electron yield using the Cram´er–Rao bound. Joint estimators operating at a single pixel and estimators that exploit models for inter-pixel correlation and Markov beam current variation are proposed and tested on synthetic microscopy data. Our estimates of secondary electron yield that incorporate explicit beam current estimation beat state-of-the-art methods, resulting in micrograph accuracy nearly indistinguishable from what is obtained with perfect beam current knowledge. Our novel beam current estimation could help improve milling outcomes, prevent sample damage, and enable online instrument diagnostics. _Index_ _Terms_ —electron microscopy, estimation theory, Fisher information, gallium ion beam, helium ion beam, neon ion beam, Neyman Type A distribution, Poisson processes, Touchard polynomials. I. INTRODUCTION ARTICLE beam microscopes image samples by detecting the secondary electrons (SEs) expelled from the sample # P by an incident beam of charged particles. Scanning electron microscopes (SEM) employ an electron beam while newer focused ion beam (FIB) microscopes use a beam composed of heavier ions, such as helium, neon, or gallium. FIB microscopes tend to have higher SE yield, larger depth of field, and finer resolution [1]–[3]. Due to the heavier incident particles, these instruments are also often used to perform milling. Image quality and milling accuracy depend heavily on the ability to maintain a stable beam current. However, contamination This work was supported in part by a Draper Fellowship, a Boston University Clare Boothe Luce Scholar Award, and by the US National Science Foundation under Grant No. 1815896. S. W. Seidel is with the Department of Electrical and Computer Engineering, Boston University, Boston, MA 02215 USA and is a Draper Scholar with Charles Stark Draper Laboratory, Cambridge, MA 02139 USA (sseidel@bu.edu). L. Watkins, M. Peng, and V. K. Goyal are with the Department of Electrical and Computer Engineering, Boston University, Boston, MA 02215 USA (luisaw@bu.edu; mxpeng@bu.edu; v.goyal@ieee.org). A. Agarwal was with the Department of Electrical and Computer Engineering, Massachusetts Institute of Technology, Cambridge, MA 02139 USA (akshayag@mit.edu). C. Yu is with Charles Stark Draper Laboratory, Cambridge, MA 02139 USA (cyu@draper.com). Fig. 1: Synthetic examples of stripe artifacts in simple models for helium and neon beam microscopes. A helium beam current is continuous-valued and slowly varying; a neon beam current has discrete jumps between known values. In (a) and (c), the displayed beam current is the mean number of incident ions per pixel over the pixel dwell time. within the instrument [4], or age of the source tip, may cause the beam intensity to fluctuate away from the desired setting. When the beam is raster scanned across a sample, these fluctuations give rise to horizontal stripe artifacts in the micrograph. Figure 1a shows the beam current incident on a horizontally raster-scanned sample when the beam has slow, smooth intensity variation as often seen in SEM and helium ion microscope (HIM) systems [5]. Figure 1b depicts the corresponding stripe artifacts that arise when a micrograph is formed under the incorrect assumption of constant beam current. Neon beam microscopes have been less widely adopted because of difficulties in maintaining a stable beam current. Here, the beam current can be modeled as toggling between known values [6], [7], as shown in Figure 1c. The resulting artifacts are shown in Figure 1d. Real-time knowledge of the beam current could prevent these artifacts, provide the operator an indicator of instrument fitness, and enable the instrument to adjust dwell time to improve milling outcomes and avoid 45 40 35 30 25 20 (a) Beam current incident on raster scanned sample in HIM 30 28 26 24 22 20 (c) Beam current incident on sample in Neon beam system (b) Micrograph resulting from beam current in (a) (d) Micrograph resulting from beam current in (c) sample damage. Existing particle beam microscopes do not measure beam current, however algorithms have been developed to remove stripe content from micrographs post facto. For example, in [5], [8], [9], low-frequency image content is removed, with [9] also including total variation denoising. Several algorithms [10]–[12] have also been developed to reduce the ‘curtaining’ effect that arises due to variations in an ion beam’s milling rate. Unlike the stripe artifacts shown in Figures 1b and 1d, which arise when the image formation algorithm incorrectly assumes a constant beam current, curtaining stripes accurately reflect grooves made in the underlying sample during milling. In this paper, we establish that beam current can be accurately estimated _online_, from the same SE count data used to form a micrograph, without the use of a calibrated sample. This may seem to be like estimating two quantities from a single noisy measurement. While that would be impossible without additional assumptions, here we take advantage of the time-resolved (TR) measurement concept introduced in [13]. TR measurement divides the dwell time into _n_ shorter subacquisitions and can be implemented without changes to the instrument. It enables estimation of the number of incident particles despite the variability in the numbers of SEs generated by the incident particles. This was previously shown to improve micrograph accuracy [13], [14] and to provide a natural robustness to imperfectly known beam current [15], [16]. In this work, we go beyond robustness to explicitly estimate the beam current. In addition to improving the accuracy of the estimated SE yield (i.e., producing a better micrograph), this is of interest for control of sample damage, milling accuracy, and instrument diagnostics. _A._ _Main_ _Contributions_ _•_ _An analysis of the joint estimation problem._ The Cram´er– Rao bound (CRB) for joint estimation of SE yield and beam current from TR measurement is derived and used to show that under certain conditions, joint estimation is vanishingly more challenging than estimation of SE yield alone. _•_ _Demonstration_ _of_ _joint_ _estimation_ _of_ _SE_ _yield_ _and_ _beam_ _current_ _at_ _a_ _single_ _pixel._ Proposed estimators are evaluated on synthetic data and compared to the CRB. _•_ _Joint_ _estimation_ _algorithms_ _that_ _exploit_ _models_ _for_ _beam_ _current_ _variation_ _and_ _inter-pixel_ _correlation._ Causal and non-causal joint estimators are proposed to exploit continuous and discrete Markov models for beam current, and for the continuous case total variation regularization of SE yield is also incorporated. Tested on synthetic microscopy data, the SE yield estimates are shown to beat state of the art methods, and beam current estimates are shown to closely match the ground truth. _•_ _Numerical_ _methods_ _for_ _Neyman_ _Type_ _A_ _distributions._ Expressions and approximations for derivatives of the Neyman Type A negative log likelihood in terms of Touchard polynomials are given. (1) with mean E[ _Y_ ] = _λη._ (2) The conventional estimate for _η_ assumes _λ_ is known and operates independently at each pixel: (3) _η_ - <sup>baseline</sup> ( _Y,_ _λ_ ) = <sup>_<u>Y</u>_</sup> _λ_ <sup>_._</sup> _B._ _Outline_ In Section II, we summarize microscope abstractions, measurement models, and basic analyses from [14, Sect. II]. In Section III, we use the Cram´er–Rao bound to explore the feasibility of joint estimation. Then, joint estimation at a single pixel is demonstrated in Section IV. At the time scale of pixelto-pixel scanning, beam current does not vary arbitrarily. Thus, we develop methods to exploit simple Markov models for the beam current. In Section V, motivated by electron and helium ion beams, we consider joint estimation for continuous-valued smoothly varying beam current. In Section VI, motivated by neon ion beams [6], [7], we consider joint estimation where beam current is known to flip back and forth between two known values. Section VII provides concluding comments on the promise of joint estimation in particle beam microscopy. II. MEASUREMENT MODELS AND BASELINE ESTIMATORS In this section, we describe our measurement model for the particle beam microscope, assuming direct SE detection; see [14, Sect. II] for additional details. Though not yet common in commercial hardware, direct SE detection provides higher signal-to-noise ratio than employing scintillators and photomultiplier tubes [17]–[20]. The advantages of time-resolved sensing do not depend on direct SE detection, as demonstrated experimentally in [13]. Although our model describes both electron- and ion-beam microscopy, we will refer to incident particles as ions. _A._ _Conventional_ _Measurement_ The incident ion beam may be accurately modeled as a Poisson process [21]. So, at a single pixel with dwell time _t_, the number of incident ions _M_ is a Poisson random variable with mean _λ_ = Λ _t_, where Λ is rate of incident ions per unit time. Dose is conventionally defined as the number of incident ions per unit area. Since the absolute spatial and temporal scales are not important in our abstractions or methods, we will refer to _λ_ as the _dose_ and, especially when it is unknown and potentially varying, as the _beam_ _current_ . The number of SEs expelled by the _i_ th incident ion is also modeled as a Poisson random variable: _Xi_ _∼_ Poisson( _η_ ), where _η_ is the sample _SE_ _yield_ at that pixel. The goal in forming a micrograph is to show how _η_ varies from pixel to pixel. The number of incident ions _M_ is not directly observed; it is at best inferred from the detected SEs. At each pixel, a conventional microscope measures the sum of all SEs over the dwell time: _Y_ = <sup>�</sup> _i_ <sup>_M_</sup> =1 <sup>_Xi_</sup> <sup>.</sup> <sup>Modeled</sup> <sup>in</sup> this way, _Y_ is a _Neyman_ _Type_ _A_ compound Poisson random variable with probability mass function (PMF) given by P _Y_ ( _y_ ; _η, λ_ ) = <sup>_<u>e−ληy</u>_</sup> _y_ ! _∞_ _m_ =0 <u>(</u> _<u>λe</u>_ <sup>_−η_</sup> <u>)</u> <sup>_m_</sup> _<u>m</u>_ <sup>_y_</sup> _y_ = 0 _,_ 1 _,_ _. . .,_ _m_ ! _k_ <sup>(2)</sup> <sup>_, . . ., y_</sup> _k_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> When _λ_ is assumed to be constant, but actually varies in time, the conventional estimate (3) gives rise to prominent stripe artifacts like the ones shown in Figures 1b and 1d. _B._ _Continuous-Time_ _Time-Resolved_ _Measurement_ The continuous-time (CT) measurement model is an idealization of an FIB microscope first introduced in [14]. It allows us to study the limits of TR measurement. Here, we imagine that we have direct detection of SEs with perfect temporal precision of each SE burst. In our model, some incident ions result in no detected SEs because P( _Xi_ = 0) is nonzero. There is no observed difference between the lack of an incident ion and an incident ion resulting in no detected SEs. Thus, the CT measurement is - _M,_ - ( _T_ <sup>�</sup> 1 _,_ _X_ <sup>�</sup> 1) _,_ ( _T_ <sup>�</sup> 2 _,_ _X_ <sup>�</sup> 2) _,_ _. . ._ ( _T_ <sup>�</sup> _M_ - <sup>_,_</sup> _X_ <sup>�</sup> _M_ - <sup>)</sup> _,_ (4) where _M_ <sup>�</sup> is the number of incident ions that result in at least one SE, _T_ <sup>�</sup> _i_ is the time of the _i_ th such incident ion, and _X_ <sup>�</sup> _i_ is the corresponding SE counts. The probability of an incident ion yielding more than one SE is 1 _−_ _e_ <sup>_−η_</sup>, so we have _M_ <sup>�</sup> _∼_ Poisson( _λ_ (1 _−_ _e_ <sup>_−η_</sup> )) with PMF _m_ _._ (5) P _M_ - <sup>(</sup> <sup>_m_</sup> <sup>�</sup> <sup>;</sup> <sup>_η, λ_</sup> <sup>) = exp(</sup> <sup>_−λ_</sup> <sup>(1</sup> <sup>_−_</sup> <sup>_e−η_</sup> <sup>))</sup> <sup><u>(</u></sup> <sup>_<u>λ</u>_</sup> <sup><u>(1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>e−η</u>_</sup> <sup><u>)) �</u></sup> _m_ - ! The _Xi_ s are independent and identically distributed with PMF the _k_ th pixel given by y _k_ = [ _yk_ <sup>(1)</sup> _k_ <sup>(1)</sup> <sup>_, y_</sup> _k_ <sup>(2)</sup> the _k_ th pixel given by y _k_ = [ _yk_ <sup>(1)</sup> <sup>_, y_</sup> _k_ <sup>(2)</sup> <sup>_, . . ., y_</sup> _k_ <sup>(</sup> <sup>_n_</sup> <sup>)].</sup> <sup>Since</sup> <sup>the</sup> entries in y _k_ are independent, their joint PMF is _,_ (8) P Y _k_ ( y _k_ ; _ηk, λk_ ) = _n_ _i_ =1 P _Y_ - _y_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _k_ <sup>;</sup> <sup>_ηk, λk/n_</sup> where P _Y_ ( _·_ ; _·, ·_ ) is given by (1). Under assumed dose _λ_ <sup>˜</sup>, the DT ML estimator finds the value of _ηk_, separately at each sample pixel, that maximizes the likelihood in (8): _η_ - _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> ( y _k,_ _λ_ <sup>˜</sup> ) = arg max _ηk_ _n_ _i_ =1 _._ (9) P _Y_ - _yk_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>;</sup> <sup>_ηk,_</sup> <sup>˜</sup> <sup>_λ/n_</sup> _<u>e</u>_ <sup>_−η_</sup> P _X_ - _i_ <sup>(</sup> <sup>_j_</sup> <sup>;</sup> <sup>_η_</sup> <sup>) =</sup> 1 _−_ _e_ _j_ = 1 _,_ 2 _,_ _. . .,_ (6) <sup>_<u>η</u>_</sup> _j_ <sup>_j_</sup> ! <sup>_,_</sup> 1 _−e_ <sup>_−_</sup> _e_ <sup>_η−η_</sup> <sup>_·_</sup> <sup>_<u>η</u>_</sup> _j_ <sup>_j_</sup> ! In this work, we use TR data to estimate _both_ _λ_ and _η_ . When oracle knowledge of the dose _λ_ is assumed while estimating _η_, the estimate is denoted _η_ - _k_ <sup>DT</sup> <sup>_|λ_</sup> . III. FEASIBILITY OF JOINT ESTIMATION OF SE YIELD AND BEAM CURRENT A single conventional measurement _Y_ combines SE yield _η_ and beam current _λ_ inseparably, as suggested by (2). However, in this section, we show that using time-resolved data, joint estimation of _η_ and _λ_ becomes possible. In Section III-A we derive CT and DT CRBs for the joint estimation problem. In Section III-B, we discuss the challenge of joint estimation at low- _η_ pixels. _A._ _Cram´er–Rao_ _Bound_ The CRB provides a lower bound for the variance of an unbiased estimator of our unknown parameter _θ_ = [ _η,_ _λ_ ]. In this section we derive the CRB for joint estimation of _η_ and _λ_ under both CT and DT measurement models and use them to explore the feasibility and challenge of joint estimation. _1)_ _Continuous-Time_ _Cram´er–Rao_ _Bound:_ With a CT measurement (4), the entries of the Fisher information (FI) matrix are given by which is the zero-truncation of the Poisson( _η_ ) distribution. Several estimators of _η_ from a CT measurement when _λ_ is known were studied in [14]. Here, we are interested in the _assumed dose_ _λ_ <sup>˜</sup> not necessarily being equal to the dose _λ_ . The CT maximum likelihood (ML) estimate evaluated using the assumed dose _λ_ <sup>˜</sup> is the unique root of the following equation: _<u>Y</u>_ (7) _η_ - <sup>CT</sup> <sup>_|λ_</sup> <sup>˜</sup> = _M_ - + _λe_ <sup>˜</sup> <sup>_−η_</sup> <sup>�CT</sup> <sup>_|λ_</sup> <sup>˜</sup> <sup>_._</sup> _C._ _Discrete-Time_ _Time-Resolved_ _Measurement_ The discrete-time (DT) measurement model assumes the per-pixel dwell time _t_ is split into _n_ sub-acquisitions of equal duration. Each sub-acquisition then has the same distribution as a conventional measurement with dose _λ/n_ . A key observation of this paper is that the _n_ -length DT measurement vector contains rich information about both the dose _λ_ and SE yield _η_ . Imagine short sub-acquisitions with dose _λ/n_ small enough that observing more than one incident ion per sub-acquisition is unlikely. In this case, with large enough _η_, the number of sub-acquisitions where the number of observed SEs is strictly positive is roughly equal to the number of incident ions. In this work, we will use subscript _k_ for pixel index, so pixel _k_ has beam current _λk_ and SE yield _ηk_ ; vectors _η_ and _λ_ contain the values of _η_ and _λ_ for each of the _p_ pixels in a sample. The vector y _∈_ R <sup>_pn_</sup> gathers measurements across all pixels, with the vector of _n_ time-resolved measurements at ( _b_ ) = _IM_ - <sup>(</sup> <sup>_λ_</sup> <sup>;</sup> <sup>_η_</sup> <sup>)</sup> <sup>_,_</sup> (12) where (a) follows from the application of the chain rule for FI, the fact that the conditional distribution of _T_ <sup>�</sup> _i_ given _M_ - has no dependence on _η_, and the independence of �� _∂_ log P _<u>m,</u>_ <u>�</u> <u>T</u> <sup><u>�</u></sup> _<u>,</u>_ <u>X</u> <sup><u>�</u></sup> <sup>(</sup> <sup>_m,_</sup> <sup><u>�</u></sup> <sup><u>�</u></sup> <sup>_t,_</sup> <sup><u>�</u></sup> <sup>_x_</sup> <sup>;</sup> <sup>_η, λ_</sup> <sup>)</sup> [ _I_ <sup>CT</sup> ] _i,j_ = E _∂θi_ - _∂_ log P _<u>m,</u>_ <u>�</u> <u>T</u> <sup><u>�</u></sup> _<u>,</u>_ <u>X</u> <sup><u>�</u></sup> <sup>(</sup> <sup>_m,_</sup> <sup><u>�</u></sup> <sup><u>�</u></sup> <sup>_t,_</sup> <sup><u>�</u></sup> <sup>_x_</sup> <sup>;</sup> <sup>_η, λ_</sup> <sup>)</sup> _∂θj_ ������ _η, λ_ _._ (10) As shown in [14, Sect. III-B], [ _I_ <sup>CT</sup> ( _η, λ_ )]1 _,_ 1 = _λ_ - <u>1</u> _η_ <sup>_−_</sup> <sup>_e−η_</sup> _._ (11) The FI about _λ_ in the CTTR measurement is _IX_ - _i_ <sup>(</sup> <sup>_λ_</sup> <sup>;</sup> <sup>_η_</sup> <sup>) +</sup> <sup>_I_</sup> _M_ <sup>�(</sup> <sup>_λ_</sup> <sup>;</sup> <sup>_η_</sup> <sup>)</sup> [ _I_ <sup>CT</sup> ]2 _,_ 2 ( _a_ ) = E _M_ _{M,_ <sup>�</sup> _X_ <sup>�</sup> 1 _,_ _X_ <sup>�</sup> 2 _, . . .,_ _X_ <sup>�</sup> _M_ - <sup>_}_</sup> <sup>;</sup> <sup>and</sup> <sup>(b)</sup> <sup>from</sup> <sup>the</sup> <sup>fact</sup> <sup>that</sup> <sup>_P_</sup> <sup>�</sup> _Xi_ <sup>(</sup> <sup>_j_</sup> <sup>;</sup> <sup>_η_</sup> <sup>)</sup> is not a function of _λ_ and thus _IX_ - _i_ <sup>(</sup> <sup>_λ_</sup> <sup>;</sup> <sup>_η_</sup> <sup>) = 0.</sup> <sup>It</sup> <sup>follows</sup> <sup>that</sup>  [ _I_ <sup>CT</sup> ]2 _,_ 2 = E _∂_ logP _<u>M</u>_ <u>�</u> <sup>(</sup> _M_ <sup><u>�</u></sup> ; _λ, η_ ) _∂λ_   �2 ; _λ_ �2 _<u>e−λ</u>_ (1 _−e−η_ )[ _<u>λ</u>_ <u>(1</u> _<u>−</u>_ _<u>e−η</u>_ <u>)]</u> _j_ _j_ ! = _∞_ _j_ =0 - _−_ (1 _−_ _e_ <sup>_−η_</sup> ) + <sup>_<u>j</u>_</sup> _λ_ = <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>e−η</u>_</sup> _._ (13) _λ_ The cross terms in the the FI matrix are [ _I_ <sup>CT</sup> ]1 _,_ 2 = [ _I_ <sup>CT</sup> ]2 _,_ 1 �� _∂_ logP _<u>M</u>_ <u>�</u> <sup>(</sup> _M_ <sup><u>�</u></sup> ; _λ, η_ ) = E _∂λ_ �� �� _∂_ logP _<u>M</u>_ <u>�</u> <sup>(</sup> _M_ <sup><u>�</u></sup> ; _λ, η_ ) _∂η_ = _∞_ _j_ =0 - _−_ (1 _−_ _e_ <sup>_−η_</sup> ) + <sup>_<u>j</u>_</sup> _λ_ - _−_ (1 _−_ _e_ <sup>_−η_</sup> ) + <sup>_<u>j</u>_</sup> �� _<u>e</u>_ <sup>_−η_</sup> 1 _−_ _e_ <sup>_−η_</sup> <sup>_j −_</sup> <sup>_λe−η_</sup> �� _<u>e</u>_ <sup>_−η_</sup> _·_ <sup>_<u>e−λ</u>_</sup> <sup>(1</sup> <sup>_−e−η_</sup> <sup>)[</sup> <sup>_<u>λ</u>_</sup> <sup><u>(1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>e−η</u>_</sup> <sup><u>)]</u></sup> <sup>_j_</sup> _j_ ! = _e_ <sup>_−η_</sup> _._ (14) 10 <sup>2</sup> 10 <sup>1</sup> 10 <sup>0</sup> 0 1 2 3 4 5 6 Fig. 2: Factor from (19) by which the CRB for joint estimation of _η_ and _λ_ exceeds that of estimating one parameter with the other given. typical for FIB, _α_ ( _η_ ) _≈_ 1, and furthermore lim _η→∞_ _α_ ( _η_ ) = 1; i.e., asymptotically, jointly estimating both parameters is no more challenging. When _η_ is low, _M_ <sup>�</sup> becomes a less suitable proxy for, and contains less information about, the number of incident ions _M_ . _2)_ _Discrete-Time Cram´er–Rao Bound:_ The Fisher information matrix about unknown parameter _θ_ in _n_ time resolved measurements, each with a per sub-acquisition dose of _λ/n_ is given by [ _I_ <sup>DT</sup> ( _η, λ_ ; _n_ )] _i,j_ Thus, the full CT FI matrix is - _η_ <u>1</u> <sup>_−_</sup> <sup>_e−η_</sup> <sup>�</sup> _e_ <sup>_−η_</sup> - _y_ ; _η,_ _<u>n</u>_ <sup>_<u>λ</u>_</sup> - _y_ ; _η,_ _<u>n</u>_ <sup>_<u>λ</u>_</sup> - �� _∂_ logP _Y_ ������ _η, λ, n_ _I_ <sup>CT</sup> = _λ_ _e_ <sup>_−η_</sup> _λ_ <u>1</u> <sup>(1</sup> <sup>_−_</sup> <sup>_e−η_</sup> <sup>)</sup> = _n_ E �� _∂_ logP _Y_ _._ (15) _∂θj_ _∂θi_ - _<u>∂</u>_ <u>logP</u> _<u>Y</u>_ <u>(</u> _<u>y</u>_ <u>;</u> _<u>η, λ/n</u>_ <u>)</u> _∂θi_ When one parameter is to be estimated and the other is given, the CT CRB is given by = _n_ _∞_ _y_ =0 - _<u>∂</u>_ <u>logP</u> _<u>Y</u>_ <u>(</u> _<u>y</u>_ <u>;</u> _<u>η, λ/n</u>_ <u>)</u> _∂θj_ As derived in [13], - _−_ 1 _,_ (16a) - <u>1</u> _η_ <sup>_−_</sup> <sup>_e−η_</sup> P _Y_ ( _y_ ; _η, λ/n_ ) _._ (20) _ση_ <sup>2</sup> _|λ_ <sup>_≥_</sup> <sup>CRBCT(</sup> <sup>_η|λ_</sup> <sup>) =</sup> �[ _I_ <sup>CT</sup> ]1 _,_ 1 - _−_ 1 = <u>1</u> _λ_ _<u>λ</u>_ _σλ_ <sup>2</sup> _|η_ <sup>_≥_</sup> <sup>CRBCT(</sup> <sup>_λ|η_</sup> <sup>) = [[</sup> <sup>_I_</sup> <sup>CT]2</sup> <sup>_,_</sup> <sup>2]</sup> <sup>_−_</sup> <sup>1</sup> <sup>=</sup> (16b) 1 _−_ _e_ <sup>_−η_</sup> <sup>_._</sup> <u>(</u> _<u>y</u>_ <u>;</u> _<u>η, λ/n</u>_ <u>)</u> = <sup>_<u>y</u>_</sup> _∂η_ _η_ _<u>∂</u>_ <u>logP</u> _<u>Y</u>_ <u>(</u> _<u>y</u>_ <u>;</u> _<u>η, λ/n</u>_ <u>)</u> _η_ <sup>_<u>y</u>_</sup> <sup>_−_</sup> <sup><u>P</u></sup> <sup>_<u>Y</u>_</sup> P <sup><u>(</u></sup> _Y_ <sup>_<u>y</u>_</sup> ( <sup><u>+ 1;</u></sup> _y_ ; _η, λ/n_ <sup>_<u>η, λ/n</u>_</sup> ) <sup><u>)</u></sup> P _Y_ ( _y_ ; _η, λ/n_ ) _<u>y</u>_ <u>+ 1</u> _,_ (21) _η_ When both _η_ and _λ_ are unknown, the CT CRB for each parameter is computed by inverting _I_ CT: and similarly, the derivative with respect to _λ_ is _n_ <sup><u>1</u></sup> <sup>+</sup> <sup><u>P</u></sup> <sup>_<u>Y</u>_</sup> P <sup><u>(</u></sup> _Y_ <sup>_<u>y</u>_</sup> ( <sup><u>+ 1;</u></sup> _y_ ; _η, λ/n_ <sup>_<u>η, λ/n</u>_</sup> ) <sup><u>)</u></sup> P _Y_ ( _y_ ; _η, λ/n_ ) _<u>y</u>_ <u>+ 1</u> _η_ <u>1</u> _λ_ <sup>_._</sup> (22) _<u>λ</u>_ _η_ <sup>(1</sup> <sup>_−_</sup> <sup>_e−η_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_λe−η_</sup> <sup>_,_</sup> _ση_ <sup>2</sup> <sup>_≥_</sup> <sup>CRBCT(</sup> <sup>_η_</sup> <sup>) =</sup> �[ _I_ <sup>CT</sup> ] <sup>_−_</sup> <sup>1�</sup> <u>1</u> _<u>−</u>_ _<u>e</u>_ <sup>_−η_</sup> 1 _,_ 1 <sup>=</sup> _<u>λη</u>_ <sup>(1</sup> <sup>_−_</sup> <sup>_e−η_</sup> <sup>)</sup> <sup>_−_</sup> _<u>∂</u>_ <u>logP</u> _<u>Y</u>_ <u>(</u> _<u>y</u>_ <u>;</u> _<u>η, λ/n</u>_ <u>)</u> <u>(</u> _<u>y</u>_ <u>;</u> _<u>η, λ/n</u>_ <u>)</u> = _−_ <sup><u>1</u></sup> _∂λ_ _n_ Substituting (21) and (22) into (20) and truncating the series appropriately enables numerical approximation of the FI matrix. CRBs are then analogous to (16) and (17). _B._ _The_ _Challenge_ _of_ _Low_ _SE_ _Yield_ _Samples_ In Section III-A, we showed that as _η_ gets smaller, jointly estimating _η_ and _λ_ becomes increasingly more difficult than estimation of _η_ or _λ_ alone. Figure 3 further illustrates the challenge of lower _η_ samples. Here we plot the normalized continuous-time CRBs for _η_ ˆ and _λ_ <sup>ˆ</sup> as functions of the total dose _λ_ . Different colored curves denote different _η_ values. Note that the intersection of each curve with a horizontal line indicates the dose _λ_ required to achieve the corresponding normalized CRB. For example, in order for the normalized standard deviation to be lower bounded by 10 <sup>_−_</sup> <sup>1</sup>, a dose on _σλ_ <sup>2</sup> <sup>_≥_</sup> <sup>CRBCT(</sup> <sup>_λ_</sup> <sup>) =</sup> (17a) �[ _I_ <sup>CT</sup> ] <sup>_−_</sup> <sup>1�</sup> 2 _,_ 2 <sup>=</sup> (1 _−λ_ <u>(1</u> _e_ <sup>_−_</sup> _<u>−</u>_ <sup>_η_</sup> ) _<u>ηe −</u>_ <sup>_−_</sup> _ηe_ <sup>_η_</sup> <u>)</u> <sup>_−η_</sup> <sup>_._</sup> (17b) Note that the CRBs when both parameters are unknown (17) may be written in terms of the CRBs for that same parameter when the other parameter is known (16): CRBCT( _η_ ) = _α_ ( _η_ ) CRBCT( _η|λ_ ) _,_ (18a) CRBCT( _λ_ ) = _α_ ( _η_ ) CRBCT( _λ|η_ ) _,_ (18b) where _α_ ( _η_ ) = <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> <sup><u>(1 +</u></sup> <sup>_<u>η</u>_</sup> <sup><u>)</u></sup> <sup>_<u>e−η</u>_</sup> <sup><u>+</u></sup> <sup>_<u>ηe−</u>_</sup> <sup>2</sup> <sup>_η_</sup> _._ (19) 1 _−_ (1 + _η_ ) _e_ <sup>_−η_</sup> The factor _α_ ( _η_ ), which is plotted in Figure 2, represents the added challenge of the joint estimation problem compared to estimating one parameter given the other. When _η_ _≥_ 2, as is 10 <sup>0</sup> 10 <sup>-1</sup> 10 <sup>-2</sup> 10 <sup>1</sup> 10 <sup>2</sup> 10 <sup>3</sup> 10 <sup>4</sup> 10 <sup>5</sup> (a) 10 <sup>0</sup> 10 <sup>-1</sup> 10 <sup>-2</sup> 10 <sup>1</sup> 10 <sup>2</sup> 10 <sup>3</sup> 10 <sup>4</sup> 10 <sup>5</sup> (b) Fig. 3: Normalized CRBs as functions of _λ_ for several values of _η_ . As _η_ decreases, the dose _λ_ required to achieve any fixed desired relative error increases. the order of 10 <sup>2</sup> is required when _η_ = 4; when _η_ = 0 _._ 25, a dose of nearly 10 <sup>3</sup> is required. In Section IV, we study joint estimation of _η_ and _λ_ at a _single_ pixel. Although we show that this is possible, as demonstrated in Figure 3, even pixels with large _η_ require a large dose to form high-quality estimates. In Sections V and VI, we exploit _inter-pixel_ correlations of both _η_ and _λ_ to enable high-quality joint estimation at moderate doses. IV. JOINT ESTIMATION AT A SINGLE PIXEL In this section, we derive CT and DT ML estimates for _η_ and _λ_ using only measurements acquired at a _single_ pixel. In Section IV-C, we evaluate the performance of these estimators and compare to the CRBs derived in Section III-A _A._ _Continuous-Time_ _Time-Resolved_ _ML_ _Estimation_ Recall the continuous-time measurement model in (4). The _X_ - _i_ variables are independent, so using (6), the joint distribution of the SE count vector (conditioned on _M_ <sup>�</sup> = _m_ - ) is - _m_ _i_ =1 �� _m_ _m_ _<u>ηj</u>_ 1+ _j_ 2+ _···_ + _j_ _j_ 1! _j_ 2! _· · ·_ _jm_ - <sup>!</sup> P _X_ - _i_ <sup>(</sup> <sup>_ji_</sup> <sup>;</sup> <sup>_η_</sup> <sup>) =</sup> - _<u>e</u>_ <sup>_−η_</sup> 1 _−_ _e_ <sup>_−η_</sup> _η_ <sup>_y_</sup> _,_ (23) - _m_ _k_ <sup>DT) = arg max</sup> P Y _k_ ( y _k_ ; _ηk, λk_ ) Taking derivatives of _−_ log P _M,Y_ - <sup>(</sup> <sup>_m, y_</sup> <sup>�</sup> <sup>_| η, λ_</sup> <sup>)</sup> <sup>gives</sup> _<u>∂</u>_ _∂λ_ <sup>[</sup> <sup>_∼_</sup> <sup>]</sup> = (1 _−_ _e_ <sup>_−η_</sup> ) _−_ <sup>_<u>m</u>_</sup> _λ_ <sup><u>�</u></sup> <sup>_,_</sup> (26) _<u>∂</u>_ = (27) _∂η_ <sup>[</sup> <sup>_∼_</sup> <sup>]</sup> _λe_ <sup>_−η_</sup> + _m_ - _−_ _η_ <sup>_<u>y</u>_</sup> <sup>_._</sup> Setting these to zero to find the joint ML estimate gives that _η_ - <sup>CT</sup> is the root of _<u>η</u>_ (28) 1 _−_ exp( _−η_ ) <sup>=</sup> <sup>_<u>y</u>_</sup> _m_ - <sup>_,_</sup> which then can be substituted to give _λ_ - <sup>CT</sup> = _<u>m</u>_ <u>�</u> (29) 1 _−_ exp( _−η_ - <sup>CT</sup> ) <sup>_._</sup> These values can be justified heuristically without the ML property. Since _m/_ - (1 _−_ exp( _−η_ ) is a good proxy for the number of incident ions, (28) sets _η_ - <sup>CT</sup> to be the number of detected SEs _y_ divided by this estimate for the number of incident ions. In [14], this was called the _continuous-time_ _Lambert_ _quotient_ _mode_ _estimator_, and it was shown to differ from the ML estimate of _η_ with _λ_ known. Note that when at most a single SE is observed in response to each of the incident ions (i.e., _X_ <sup>�</sup> _i_ = 1 for all _i_ ), we have _y_ = _m_ -, so the right side of (28) equals 1. The left side of (28) approaches 1 as _η_ approaches 0; thus, we assign _η_ - <sup>CT</sup> = 0, and substituting in (29) gives _λ_ <sup>�CT</sup> = _∞_ . We address this singularity by placing a reasonable upper bound _λ_ max on our estimate for _λ_ . The smallest nonzero estimate we can obtain for _η_ is then 1 _/λ_ max. Requiring a large dose to be able to accurately estimate a small value of _η_ at a single pixel is consistent with the normalized CRBs in Figure 3a. This limitation is one motivation for our use of inter-pixel correlations in Sections V and VI. _B._ _Discrete-Time_ _Time-Resolved_ _ML_ _Estimation_ At the _k_ th pixel, we acquire a vector y _k_ of _n_ time-resolved measurements with joint PMF given in (8). The corresponding joint ML estimate is ( _η_ - _k_ <sup>DT</sup> _k_ <sup>DT</sup> _,_ _λ_ <sup>�</sup> _k_ <sup>DT</sup> = _c_ - _<u>e</u>_ <sup>_−η_</sup> 1 _−_ _e_ <sup>_−η_</sup> _ηk,λk_ where the simplification comes from identifying the sum as the total SE count _y_ and replacing the product of factorials with an unspecified constant because this is immaterial to estimation of _η_ and _λ_ . Combining (5) and (23), the relevant likelihood is P _M,Y_ - <sup>(</sup> <sup>_m, y_</sup> <sup>�</sup> <sup>_| η, λ_</sup> <sup>)</sup> = arg min [ _−_ log P Y _k_ ( y _k_ ; _ηk, λk_ )] _._ (30) _ηk,λk_ _η_ <sup>_y_</sup> = _c_ exp( _−λ_ (1 _−_ _e_ <sup>_−η_</sup> )) <sup><u>(</u></sup> <sup>_<u>λ</u>_</sup> <sup><u>(1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>e−η</u>_</sup> <sup><u>))</u></sup> _m_ <sup><u>�</u></sup> - _<u>e</u>_ <sup>_−η_</sup> 1 _−_ _e_ <sup>_−η_</sup> - _m_ The objective function in (30) is a sum of _n_ terms, each a logarithm of the Neyman Type A PMF in (1). While difficult to work with analytically, since the decision variable is only twodimensional and the objective function is smooth, numerical evaluation of (30) is not difficult. The numerical experiments in following sections use gradient descent methods based on derivatives (58a) and (61a) derived in the appendix. Similar to the CT case in Section IV-A, observing at most a single SE per sub-acquisition creates a singularity whereby (30) gives ( _η_ - _k_ <sup>DT</sup> _,_ _λ_ <sup>�</sup> _k_ <sup>DT)</sup> <sup>=</sup> <sup>(0</sup> <sup>_, ∞_</sup> <sup>).</sup> <sup>In</sup> <sup>practice,</sup> <sup>we</sup> <sup>can</sup> <sup>again</sup> _m_ - ! = _c_ exp( _−λ_ (1 _−_ _e_ <sup>_−η_</sup> )) _λm_ <sup>�</sup> _e−η_ - _mηy,_ (24) where _m_ - ! has been absorbed into the constant _c_ because this is immaterial to estimation of _η_ and _λ_ . Omitting the constant, _−_ log P _M,Y_ - <sup>(</sup> <sup>_m, y_</sup> <sup>�</sup> <sup>_| η, λ_</sup> <sup>) =</sup> <sup>_λ_</sup> <sup>(1</sup> <sup>_−e−η_</sup> <sup>)</sup> <sup>_−m_</sup> <sup>�</sup> <sup>log</sup> <sup>_λ_</sup> <sup>+</sup> <sup>_η_</sup> <sup>�</sup> <sup>_m−y_</sup> <sup>log</sup> <sup>_η._</sup> (25) _k_ <sup>DT</sup> _,_ _λ_ <sup>�</sup> _k_ <sup>DT</sup> (30) gives ( _η_ - _k_ <sup>DT</sup> _,_ _λ_ <sup>�</sup> _k_ <sup>DT)</sup> <sup>=</sup> <sup>(0</sup> <sup>_, ∞_</sup> <sup>).</sup> <sup>In</sup> <sup>practice,</sup> <sup>we</sup> <sup>can</sup> <sup>again</sup> place a reasonable upper bound _λ_ max on our _λ_ estimate and then estimate _η_ accordingly. 0 0 2 4 6 8 (c) <sup><u>RMSE(</u></sup> _λ_ <sup>_<u>λ</u>_</sup> <sup><u>�)</u></sup> vs. _η_ 0.25 0.2 0.15 0.1 0.05 0.05 0.04 0.03 0.02 0.01 0 -0.01 0 2 4 6 8 (d) <sup><u>Bias(</u></sup> _λ_ <sup>_<u>λ</u>_</sup> <sup><u>�)</u></sup> vs. _η_ 0.08 ~~0.075~~ ~~0.07~~ 2 4 6 8 0.1 ~~0.08~~ ~~0.06~~ <u>1</u> <u>1.5</u> <u>2</u> <u>2.5</u> 3 6 <u>10</u> <sup>-3</sup> 4 2 0 -2 -4 0 2 4 6 8 (b) <sup><u>Bias(</u></sup> _η_ <sup>_<u>η</u>_</sup> <sup><u>�)</u></sup> vs. _η_ 0.2 0.15 0.1 0.05 0 0 2 4 6 8 (a) <sup><u>RMSE(</u></sup> _η_ <sup>_<u>η</u>_</sup> <sup><u>�)</u></sup> vs. _η_ Fig. 4: Normalized RMSE and bias as functions of _η_ for single-pixel estimators with _λ_ = 200 and, in discrete-time cases, _λ/n_ = 0 _._ 1. In panels (a) and (c), the normalized square roots of the Cram´er–Rao bounds are plotted for reference. 1 0 -1 -2 -3 -4 -5 -6 -7 -8 10 <sup>3</sup> 10 <sup>4</sup> 10 <sup>5</sup> (d) Bias( _λ_ <sup>�</sup> ) vs. _n_ 0.32 0.3 0.28 0.26 0.24 0.22 0.2 0.18 0.16 10 <sup>3</sup> 10 <sup>4</sup> 10 <sup>5</sup> (a) RMSE( _η_ �) vs. _n_ 0.25 0.2 0.15 0.1 0.05 0 -0.05 10 <sup>3</sup> 10 <sup>4</sup> 10 <sup>5</sup> (b) Bias( _η_ �) vs. _n_ 16 15.5 15 14.5 14 10 <sup>3</sup> 10 <sup>4</sup> 10 <sup>5</sup> (c) RMSE( _λ_ <sup>�</sup> ) vs. _n_ Fig. 5: RMSE and bias as functions of _n_ for single-pixel estimators with _λ_ = 200 and _η_ = 5. _C._ _Estimator_ _Performance_ In Figure 4, we plot the root mean-squared error (RMSE) and bias for our estimators, both normalized by the true parameter value, as functions of _η_ . We compare existing methods for estimating _η_, which require knowledge of the dose, with our new methods for jointly estimating _η_ and _λ_ : _•_ CT _|λ_ : _η_ - _k_ <sup>CT</sup> <sup>_|λ_</sup> is the CT estimate in (7), evaluated using oracular knowledge of the dose ( _λ_ <sup>˜</sup> = _λ_ ). _•_ DT _|λ_ : _η_ - _k_ <sup>DT</sup> <sup>_|λ_</sup> is the DT estimate in (9), evaluated using oracular knowledge of the dose ( _λ_ <sup>˜</sup> = _λ_ ). _•_ CT: ( _η_ - _k_ <sup>CT</sup> _,_ _λ_ <sup>�</sup> _k_ <sup>CT)</sup> <sup>is</sup> <sup>the</sup> <sup>CT</sup> <sup>joint</sup> <sup>estimate</sup> <sup>from</sup> <sup>(28)</sup> <sup>and</sup> (29) _•_ DT: ( _η_ - _k_ <sup>DT</sup> _,_ _λ_ <sup>�</sup> _k_ <sup>DT)</sup> <sup>is</sup> <sup>the</sup> <sup>DT</sup> <sup>joint</sup> <sup>estimate</sup> <sup>from</sup> <sup>(30).</sup> We also plot the normalized square roots of the corresponding CRBs: CRB(CT) of (17), CRB(CT _|λ_ ) of (16a), as well as CRB(DT) and CRB(DT _|λ_ ) computed as described in Section III-A2. As predicted by the CRBs derived in Section III-A, our joint estimators and the estimators of _η_ when _λ_ is given achieve similar performance at higher _η_ . In fact, Figures 4a and 4c both show a very close match of all estimators to their corresponding CRBs, with the (biased) DT estimate of _λ_ slightly outperforming the CRB. With _λ_ = 200 as used here, the normalized RMSEs of both � _η_ and _λ_ <sup>�</sup> get very large as _η_ gets smaller, especially when _λ_ is not given, motivating our use of inter-pixel correlations in Sections V and VI. The RMSE and bias of _η_ - and _λ_ <sup>�</sup> are generally smaller for CT methods, with very small bias of _η_ - and _λ_ <sup>�</sup> for all estimators. Figure 5 shows estimator RMSE (along with the square root of the CRBs) and bias as functions of the number of sub acquisitions _n_ for fixed total dose _λ_ = 200 and SE yield _η_ = 5. Note that when _n_ gets large, DT performance converges to the CT asymptote. At _λ/n_ = 0 _._ 1, a value attainable by current hardware and used in the DT experiments that follow in Section V-G, DT estimator RMSE is close to the CT limit. Figures 5a and 5b show that joint estimation and estimation of _η_ given _λ_ are similarly difficult when _n_ is sufficiently large. In Figure 5a we observe that at larger _n_, RMSE( _η_ - <sup>DT</sup> ) approaches the CRB. The RMSE of _λ_ <sup>�DT</sup> dips below the CRB (Figure 5c) at certain lower values of _n_, which may be explained by the non-negligible bias shown in Figure 5d. V. EXPLOITING A SMOOTHLY VARYING BEAM CURRENT Section IV demonstrated that joint estimation of _η_ and _λ_ is possible at a single pixel through time-resolved measurement. However, as shown in Figure 3 and discussed in Section IV-A, high fidelity estimates may require a large dose, especially at low- _η_ pixels. In this section, we use a simple model for smoothly varying beam current—meant to be representative of electron and helium ion beams—to form high quality estimates of both _η_ and _λ_ at moderate doses. To meet a variety of use cases, we propose both causal and non-causal algorithms, each with and without total variation (TV) regularization on _η_ . In the interests of brevity and relevance to contemporary instruments, we consider only discrete-time measurements. _A._ _An_ _Autoregressive_ _Model_ _for_ _Beam_ _Current_ We model beam current as a first-order Gaussian autoregressive process: _λk_ = _xk_ + _aλk−_ 1 + _c,_ (31) where _a_ is the correlation coefficient for neighboring pixels in a row and all _xk_ _∼N_ (0 _, σx_ <sup>2)</sup> <sup>variables</sup> <sup>are</sup> <sup>independent.</sup> <sup>The</sup> mean and variance of the beam current are _λ_ <sup>2</sup> <sup>=</sup> 1 _−σx_ <sup>2</sup> _<u>c</u>_ _λ_ ¯ = E[ _λ_ ] = and _σλ_ <sup>2</sup> 1 _−_ _a_ 1 _−xa_ <sup>2</sup> <sup>_._</sup> (32) are those to the left and above the current pixel. Thus, our TV cost term is given by _g_ TV( _η_ ) = _β_ h _|η −_ _η_ h _|_ + _β_ v _|η −_ _η_ v _|,_ (37) where _η_ v and _η_ h are _η_ values already estimated (and assumed known) at the vertically and horizontally adjacent pixels. Parameters _β_ h and _β_ v may be tuned to promote more horizontal or vertical smoothness. We solve (36) using proximal gradient methods. The proximal operator for the term in (37) is This describes an incident beam with slow, unknown variations about _λ_ <sup>¯</sup>, which may be the intended beam current setting. _B._ _Causal_ _Estimation_ We seek _causal_ estimates, _η_ - _k_ <sup>C</sup> <sup>and</sup> <sup>_λ_</sup> <sup>�</sup> _k_ <sup>C,</sup> <sup>of</sup> <sup>_ηk_</sup> <sup>and</sup> <sup>_λk_</sup> <sup>at</sup> <sup>the</sup> _k_ th pixel, given only the measurement vector at that pixel Y _k_ = y _k_ and _λk−_ 1. Although _λk−_ 1 is not perfectly known, we assume it is approximately equal to our estimate of the beam current formed at the last pixel: _λk−_ 1 _≈_ _λ_ <sup>�C</sup> _k−_ 1 <sup>.</sup> <sup>Inspired</sup> prox _g_ TV ( _x_ ) = arg min _α_ <u>1</u> 2 <sup>_∥x −_</sup> <sup>_α∥_</sup> 2 <sup>2</sup> <sup>+</sup> <sup>_β_</sup> <sup>h</sup> <sup>_|α −_</sup> <sup>_η_</sup> <sup>h</sup> <sup>_|_</sup> <sup>+</sup> <sup>_β_</sup> <sup>v</sup> <sup>_|α −_</sup> <sup>_η_</sup> <sup>v</sup> <sup>_|._</sup> (38) When _η_ h _< η_ v holds, the minimization in (38) gives We seek _causal_ estimates, _η_ - _k_ <sup>C</sup> _k_ <sup>C</sup> <sup>and</sup> <sup>_λ_</sup> <sup>�</sup> _k_ <sup>C</sup> _x_ + _β_ h + _β_ v _,_ if _x < η_ h _−_ _β_ h _−_ _β_ v; _x −_ _β_ h _−_ _β_ v _,_ if _x > η_ v + _β_ h + _β_ v;   _x −_ _β_ h + _β_ v _,_ if _η_ h + _β_ h _−_ _β_ v _< x_ beam current formed at the last pixel: _λk−_ 1 _≈_ _λ_ <sup>�C</sup> _k−_ 1 <sup>.</sup> <sup>Inspired</sup> by (31), we use the prior prox _g_ TV ( _x_ ) = _< η_ v + _β_ h _−_ _β_ v; <sup>C</sup> _k−_ 1 <sup>+</sup> <sup>_c, σ_</sup> _x_ <sup>2</sup> _f_ ( _λk | λk−_ 1) _∼N_ ( _aλ_ <sup>�C</sup> _k_ _x_ <sup>2)</sup> (33)  _η_ h _,_ if _|x −_ _η_ h + _β_ v _| ≤_ _β_ h; _η_ v _,_ if _|x −_ _η_ v _−_ _β_ v _| ≤_ _β_ v _,_ (39) and formulate a MAP estimate: which, when _β_ h = _β_ v = _β_ CTV, <sup>1</sup> reduces to _k_ <sup>C</sup> <sup>_,_</sup> <sup>�</sup> <sup>_λ_</sup> _k_ <sup>C</sup> _ηk,λk_ ( _η_ - _k_ <sup>C</sup> _f_ ( _ηk, λk |_ y _k_ ) _k_ <sup>C) = arg max</sup> P Y _k_ ( y _k_ ; _ηk, λk_ ) _f_ ( _λk | λk−_ 1) _x_ + 2 _β_ CTV _,_ if _x < η_ h _−_ 2 _β_ CTV; _x −_ 2 _β_ CTV _,_ if _x > η_ v + 2 _β_ CTV; = arg max _ηk,λk_ = arg min _ηk,λk_   _x,_ if _η_ h _< x < η_ v; _−_ log P Y _k_ ( y _k_ ; _ηk, λk_ ) prox _g_ TV ( _x_ ) = <u>1</u> + ( _λk −_ ( _aλ_ <sup>�C</sup> _k−_ 1 <sup>+</sup> <sup>_c_</sup> <sup>))2�</sup> 2 _σx_ <sup>2</sup> _,_ (34)  _ηη_ vh _,,_ ifif _ηη_ vh _−≤_ 2 _xβ ≤_ CTV _η_ v + 2 _< x < ηβ_ CTVh _._ ; where P Y _k_ ( _·_ ; _·, ·_ ) is the joint PMF given in (8). In practice, we introduce a tuning parameter _β_ C: _η_ - _k_ <sup>C</sup> <sup>_,_</sup> <sup>�</sup> <sup>_λ_</sup> _k_ <sup>C</sup> _ηk,λk_ ( _η_ - _k_ <sup>C</sup> _k_ <sup>C) = arg min</sup> - _−_ log P Y _k_ ( y _k_ ; _ηk, λk_ ) + _β_ C( _λk −_ ( _aλ_ <sup>�C</sup> _k_ <sup>C</sup> _k−_ 1 <sup>+</sup> <sup>_c_</sup> <sup>))2�</sup> _._ (35) (40) The case of _η_ h _> η_ v is similar. Equation (36) is solved at each pixel, with _β_ v = 0 at all pixels in the first row of the image and _β_ h = 0 for the first column of the image. _D._ _Non-Causal_ _Estimation_ The non-causal estimation algorithm operates on the _entire_ measurement vector y and estimates _η_ and _λ_ simultaneously at all pixels. This formulation allows us to leverage stronger priors on _λ_, as well as on _η_ as we show later in Section V-E. Given (31), _λ_ is jointly Gaussian, _λ_ _∼N_ ( _λ_ <sup>¯</sup> 1 _,_ Σ ) _,_ Σ _i,j_ = 1 _−σx_ <sup>2</sup> _a_ <sup>2</sup> <sup>_a|i−j|,_</sup> (41) where 1 _∈_ R <sup>_p_</sup> is a vector of ones. Since all sub-acquisitions and pixels are conditionally independent, the joint PMF of the _entire_ measurement vector y is At each new pixel, (35) is solved using gradient descent. At the first pixel, indexed by _k_ = 1, we solve (35) using _λ_ <sup>�</sup> 0 <sup>C</sup> <sup>=</sup> <sup>_λ_</sup> <sup>¯.</sup> _C._ _Causal_ _Estimation_ _with_ _Total_ _Variation_ _Regularization_ Total variation regularization on _η_ may be added to the cost function in (35) to exploit the fact that microscopy images are often piecewise smooth. Our new TV-regularized causal estimate of _η_ (and the corresponding estimate of _λ_ ) minimize the following cost function: ( _η_ - _k_ <sup>CTV</sup> _k_ <sup>CTV</sup> _,_ _λ_ <sup>�</sup> _k_ <sup>CTV</sup> _ηk,λk_ _k_ <sup>CTV</sup> ) = arg min - _−_ log P Y _k_ ( y _k_ ; _ηk, λk_ ) _p_ _k_ =1 _n_ _i_ =1 P _Y_ - _y_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _k_ <sup>;</sup> <sup>_ηk, λk/n_</sup> - _,_ (42) + _β_ C( _λk −_ ( _aλk−_ 1 + _c_ )) <sup>2</sup> + _g_ TV( _ηk_ )� _,_ (36) P Y ( y _|_ _η_ _,_ _λ_ ) = where _g_ TV( _ηk_ ) is a TV cost term. In the causal, raster-scanned scenario, the neighboring pixels that have already been visited 1In this paper, we evaluate our algorithm with _β_ h = _β_ v = _β_ CTV. However promoting more similarity between pixels that are vertically adjacent (i.e., _β_ v _> β_ h) might be useful to mitigate horizontal stripe artifacts. where PY( _·_ ; _·, ·_ ) is the PMF in (1). The MAP estimate for ( _η_ _,_ _λ_ _,_ _λ_ <sup>¯</sup> ) is given by ( _η_ - <sup>NC</sup> _,_ _λ_ <sup>�NC</sup> _,_ _λ_ <sup>�¯</sup> ) = arg max _η_ _,_ _λ_ _,λ_ <sup>¯</sup> P Y ( y _|_ _η_ _,_ _λ_ ) _f_ ( _λ_ _|_ _λ_ <sup>¯</sup> ) _G._ _Simulated_ _Microscopy_ _Results_ _1)_ _Data_ _Generation:_ We evaluate the multi-pixel algorithms proposed in this section on synthetic HIM and SEM data. Measurements for these two examples were generated using existing micrographs as ground truth images. <sup>2</sup> Compared to SEM, HIM has higher SE yield and can thus produce highquality images at lower doses. To be representative of HIM, we scale the ground truth to _η_ _∈_ [2 _,_ 8] and use mean dose _λ_ ¯ = 20 [23]; for SEM, we use _η_ _∈_ [0 _._ 1 _,_ 1] and _λ_ ¯ = 200 [24]. Beam current time series were produced according to the Gaussian first-order autoregressive model in (31). In both test examples, the correlation coefficient for neighboring pixels in a row is _a_ = 0 _._ 999 and the coefficient of variation is _σλ/λ_ <sup>¯</sup> = 0 _._ 2. Data is generated pseudorandomly at each pixel following the separable joint PMF in (8), where in each case the nominal sub-acquisition doses is 0.1 ( _n_ = 200 for HIM and _n_ = 2000 for SEM). _2)_ _Methods:_ We compare nine methods for estimating _η_, some of which also generate an estimate of _λ_ : _•_ baseline: _η_ - <sup>baseline</sup> is the pixel-wise evaluation of (3) independently at each pixel using the nominal dose _λ_ <sup>¯</sup> . _•_ frequency-domain filter (FDF) [5]: Compute the 2D discrete Fourier transform of _η_ - <sup>baseline</sup> . Let _q_ and _u_ be the horizontal and vertical frequency indexes. Coefficients that satisfy both _|q|_ _≤_ _w_ and _|u|_ _>_ _h_ are nulled before applying the inverse transform to yield _η_ - <sup>FT</sup> . _•_ DT _|λ_ : _η_ - <sup>DT</sup> <sup>_|λ_</sup> is the pixel-wise ML estimate (9) computed with true beam current _λ_ (provided by an oracle). _•_ DT _|λ_ <sup>˜</sup> : _η_ - <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> is the pixel-wise ML estimate (9) computed with nominal beam current _λ_ <sup>˜</sup> . _•_ linear filter: ( _η_ - <sup>LF</sup> _,_ _λ_ <sup>�LF</sup> ) is the joint estimate computed with the method of [25]. _•_ causal: ( _η_ - <sup>C</sup> _,_ _λ_ <sup>�C</sup> ) is the joint estimate from (35). _•_ non-causal: ( _η_ - <sup>NC</sup> _,_ _λ_ <sup>�NC</sup> ) is the joint estimate from (44). (This also produces an estimate of the mean beam current _λ_ ¯.) _•_ causal with TV: ( _η_ - <sup>CTV</sup> _,_ _λ_ <sup>�CTV</sup> ) is the joint estimate from (36). _•_ non-causal with TV: ( _η_ - <sup>NCTV</sup> _,_ _λ_ <sup>�NCTV</sup> ) is the joint estimate from (45). (This also produces an estimate of the mean beam current _λ_ <sup>¯</sup> .) Parameters in the frequency-domain filter, linear filter, and methods from Sections V-B to V-E are tuned to minimize RMSE. _3)_ _Results:_ Figures 6 and 7 show estimated micrographs _η_ - using all the methods on each setting. The inset images show error _η_ - _−_ _η_ for portions of the micrographs. In both HIM and SEM examples, stripe artifacts are more prominent in _η_ - <sup>baseline</sup> (Figures 6f and 7f) than in the TR reconstruction _η_ - <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> (Figures 6g and 7g), although they both assume the same knowledge of _λ_ . In the higher _η_ FIB example, _η_ - <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> even outperforms _η_ - <sup>FT</sup>, the frequency-domain filtered version of � _η_ <sup>baseline</sup> . This effect may be attributed to the natural robustness of TR methods to unknown beam current [15], [16]. Our oracle TR method _η_ - <sup>DT</sup> <sup>_|λ_</sup> (Figures 6b and 7b), which assumes 2All ground truth images in this work are from the ThermoFisher Scientific database: [https://www.fei.com/image-gallery/](https://www.fei.com/image-gallery/) = arg min _η_ _,_ _λ_ _,λ_ <sup>¯</sup> - _−_ log P Y ( y _|_ _η_ _,_ _λ_ ) + <sup><u>1</u></sup> - _._ 2 <sup>(</sup> <sup>_λ_</sup> <sup>_−_</sup> <sup>_λ_</sup> <sup>¯1)</sup> <sup>_⊤_</sup> <sup>Σ</sup> <sup>_−_</sup> <sup>1(</sup> <sup>_λ_</sup> <sup>_−_</sup> <sup>_λ_</sup> <sup>¯1)</sup> (43) As in (35), we introduce a tuning parameter _β_ NC to allow additional regularization: ( _η_ - <sup>NC</sup> _,_ _λ_ <sup>�NC</sup> _,_ _λ_ <sup>�¯</sup> ) = arg min _η_ _,_ _λ_ _,λ_ <sup>¯</sup> - _−_ log P Y ( y _|_ _η_ _,_ _λ_ ) + _β_ NC( _λ_ _−_ _λ_ <sup>¯</sup> 1) <sup>_⊤_</sup> Σ <sup>_−_</sup> <sup>1</sup> ( _λ_ _−_ _λ_ <sup>¯</sup> 1)� _._ (44) Note that this formulation does not require knowledge of the mean beam current but rather estimates _λ_ <sup>¯</sup> in addition to _η_ and _λ_ . This cost function is differentiable and is thus we solve the minimization using gradient descent methods. The derivatives of the first term in (44) are derived in the appendix; the derivative of the second term with respect to _λ_ is proportional to Σ <sup>_−_</sup> <sup>1</sup> ( _λ_ _−_ _λ_ <sup>¯</sup> 1). To avoid storing a prohibitively large matrix, and because Σ is approximately circulant, we perform multiplication by Σ <sup>_−_</sup> <sup>1</sup> in the frequency domain using the fast Fourier transform. _E._ _Non-Causal Estimation with Total Variation Regularization_ As with our causal estimate, TV regularization may be added to (44) to promote piecewise smooth estimates of _η_ : ( _η_ - <sup>NCTV</sup> _,_ _λ_ <sup>�NCTV</sup> _,_ _λ_ <sup>�¯</sup> ) = arg min _η_ _,_ _λ_ _,λ_ <sup>¯</sup> _−_ log P Y ( y _|_ _η_ _,_ _λ_ ) + _β_ NC( _λ_ _−_ _λ_ <sup>¯</sup> 1) <sup>_⊤_</sup> Σ <sup>_−_</sup> <sup>1</sup> ( _λ_ _−_ _λ_ <sup>¯</sup> 1) + _β_ NCTV _∥_ _η_ _∥_ TV _,_ (45) where _∥_ _η_ _∥_ TV is given by _|ηi_ +1 _,j_ _−_ _ηi,j|_ <sup>2</sup> + _|ηi,j_ +1 _−_ _ηi,j|_ <sup>2</sup> ) (46) _∥_ _η_ _∥_ TV = _i,j_ and _β_ NCTV is a tuning parameter. Equation (45) is solved using proximal gradient methods; the proximal operator for (46) is solved using [22]. _F._ _Operational_ _Considerations_ Although all of our proposed algorithms jointly estimate _η_ and _λ_, different assumptions are made about the parameters _a_, _σx_ <sup>2</sup> <sup>and</sup> <sup>_λ_</sup> <sup>¯</sup> <sup>in</sup> <sup>(31).</sup> <sup>Note</sup> <sup>that</sup> <sup>both</sup> <sup>causal</sup> <sup>and</sup> <sup>non-causal</sup> <sup>algo-</sup> rithms assume knowledge of the correlation _a_ between pixels. Due to the tuning parameters _β_ C and _β_ NC, no assumption is made about _σx_ <sup>2.</sup> <sup>In</sup> <sup>practice,</sup> <sup>algorithm</sup> <sup>performance</sup> <sup>was</sup> <sup>found</sup> to not depend heavily on ideal choices of _a_, _β_ C, or _β_ NC, as we will show in Section V-G, Figures 10 and 11. While our causal algorithms do require knowledge of the mean beam current _λ_ <sup>¯</sup>, the non-causal algorithms estimate _λ_ <sup>¯</sup> in addition to _λ_ and _η_ . When causal operation is warranted but the mean beam current is not known, the non-causal algorithm could be run periodically to provide _λ_ <sup>¯</sup> . (c) _η_ - <sup>LF</sup>, RMSE= 0.4985 (h) _η_ - <sup>FT</sup>, RMSE= 0.9817 10 9 8 7 6 5 4 3 2 1 2 1 0 -1 -2 2 1 0 -1 -2 (i) _η_ - <sup>CTV</sup>, RMSE = 0.4361 (d) _η_ - <sup>C</sup>, RMSE = 0.4981 2 1 0 -1 -2 2 1 0 -1 -2 (e) _η_ - <sup>NC</sup>, RMSE = 0.4979 (a) ground truth _η_ 2 1 0 -1 -2 (f) _η_ - <sup>baseline</sup>, RMSE = 1.1129 2 1 0 -1 -2 (b) 2 _η_ - <sup>DT</sup> <sup>_|λ_</sup>, RMSE = 0.4974 1 0 -1 -2 (g) _η_ - <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup>, RMSE = 0.5097 2 1 0 -1 -2 2 1 0 -1 -2 (j) _η_ - <sup>NCTV</sup>, RMSE = 0.2296 Fig. 6: HIM example with ground truth _η_ _∈_ [2 _,_ 8], mean dose _λ_ <sup>¯</sup> = 20 and nominal sub-acquisition dose _λ/n_ <sup>¯</sup> = 0 _._ 1. The actual dose _λ_ is a Gaussian autoregressive process with correlation coefficent of 0 _._ 999 for neighboring pixels in a row and coefficient of variation _σλ/λ_ <sup>¯</sup> = 0 _._ 2. All micrograph images are on the same scale shown in (a), chosen so that no more than 2% of pixels are saturated in any given image. Inset images show error _η_ - _−_ _η_ for a subset of the image taken from the top right corner. Tuning parameters are: _β_ NC = 200, _β_ NCTV = 1, _β_ C = 10, and _β_ CTV = 1e _−_ 4. The non-causal estimator found _λ_ <sup>�¯</sup> = 20 _._ 41 and the non-causal estimator with TV regularization found _λ_ �¯ = 20 _._ 29; the beam current empirical mean was _p_ <u>1</u> - _pk_ =1 <sup>_λk_</sup> <sup>= 20</sup> <sup>_._</sup> <sup>34.</sup> HIM Example SEM Example <u>Method</u> <u>RMSE(</u> _<u>η</u>_ <u>�)</u> <u>RMSE(</u> _<u>λ</u>_ <sup><u>�</u></sup> <u>)</u> <u>RMSE(</u> _<u>η</u>_ <u>�)</u> <u>RMSE(</u> _<u>λ</u>_ <sup><u>�</u></sup> <u>)</u> Baseline 1.1129 - 9.72e-2 FDF [5] 0.9817 - 6.93e-2 DT _|λ_ 0.4974 - 5.54e-2 DT _|λ_ <sup>˜</sup> [13] 0.5097 - 8.87e-2 Linear filter [25] 0.4985 1.0020 6.63e-2 17.8849 Causal 0.4984 0.9416 5.83e-2 9.4937 Non-causal 0.4979 0.6765 5.68e-2 6.6761 Causal with TV 0.4361 1.0215 5.54e-2 11.7524 Non-causal with 0.2298 0.6681 3.21e-2 5.8292 <u>TV</u> TABLE I: RMSE results by method for the HIM example in Figure 6 and the SEM example in Figure 7. For the frequency-domain filtering method, filter parameters were _w_ = 1 and _h_ = 5 for the HIM example and _w_ = 1 and _h_ = 1 for the SEM example. Our new joint estimation methods without TV regularization approach the performance of oracle estimator _η_ - <sup>DT</sup> <sup>_|λ_</sup> . When TV regularization is added, our causal and non-causal estimators outperform _η_ - <sup>DT</sup> <sup>_|λ_</sup> . perfect knowledge of the true dose at every pixel, exhibits no discernible striping. Without TV regularization, our causal joint estimates _η_ - <sup>C</sup> (Figures 6d and 7d) and non-causal joint estimates � _η_ <sup>NC</sup> (Figures 6e and 7e) exhibit lower RMSE, closer to our benchmark � _η_ <sup>DT</sup> <sup>_|λ_</sup>, with slightly more improvement seen with the non-causal version. Given TV regularization on _η_, both algorithms meet or exceed the performance of _η_ - <sup>DT</sup> <sup>_|λ_</sup>, which does not employ any spatial regularization. In fact, in both examples, _η_ - <sup>NCTV</sup> (Figures 6j and 7j) outperforms the benchmark _η_ - <sup>DT</sup> <sup>_|λ_</sup> approximately by a factor of 2. Table I summarizes the RMSE results of all _η_ estimation methods for both HIM and SEM examples. Beam current estimates _λ_ <sup>�C</sup> and _λ_ <sup>�NC</sup> are shown in Figure 8 for the HIM example and in Figure 9 for the SEM example. Both estimates closely match the true beam current. The causal estimate _λ_ <sup>�C</sup> has higher RMSE with a slight lag and more higher frequency noise. All of our joint estimators outperform the initial joint estimator _η_ - <sup>LF</sup> introduced in [25]. The RMSE results of different _λ_ estimates, for both HIM and SEM examples, are summarized in Table I. As previously noted, all of our joint reconstruction algorithms include a tuning parameter ( _β_ C or _β_ NC to control regularization on _λ_ ) and assume knowledge of correlation _a_ . In Figure 10, we show that performance of our causal estimation algorithm is not heavily dependent on ideal choices of either of these two parameters. Using the data from Figure 6, Figures 10a and 10b form the joint estimate ( _η_ - <sup>C</sup> _,_ _λ_ <sup>�C</sup> ) for different values of _β_ C, keeping the correlation fixed at _a_ = 0 _._ 999. Figures 10c and 10d fix _β_ C = 10 and vary the assumed value of _a_ . We note that different values of _β_ C and _a_ have a negligible effect on the RMSE of _η_ - <sup>C</sup> . Although the value of _β_ C and _a_ does effect the RMSE of _λ_ <sup>�C</sup>, the RMSE remains relatively small across a wide range of values, with larger values of _β_ C and _a_ (i.e., promoting more smoothing of _λ_ ) as safer choices when the true parameter value is not known. In Figure 11, we show similar trends for our noncausal algorithms. VI. EXPLOITING A DISCRETE MARKOV BEAM CURRENT In this section, we demonstrate joint estimation when beam current flips back and forth between two values, as a simple model for a neon beam microscope [6]. Although the neon beam microscope could provide a number of functional advantages over the helium ion microscope [7], it has been less widely adopted because of difficulties maintaining a stable beam current. (i) _η_ - <sup>CTV</sup>, RMSE=5.54e-2 0.2 0.1 0 -0.1 -0.2 (e) _η_ - <sup>NC</sup>, RMSE=5.68e-2 0.2 0.1 0 -0.1 -0.2 (j) � _η_ <sup>NCTV</sup>, RMSE = 3.21e-2 0.2 0.1 0 -0.1 -0.2 (b) _η_ - <sup>DT</sup> <sup>_|λ_</sup>, RMSE= 5.54e-2 0.2 0.1 0 -0.1 -0.2 (g) _η_ - <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup>, RMSE=8.87e-2 0.2 0.1 0 -0.1 -0.2 (c) _η_ - <sup>LF</sup>, RMSE= 6.63e-2 0.2 0.1 0 -0.1 -0.2 (h) _η_ - <sup>FT</sup>, RMSE= 6.93e-2 0.2 0.1 0 -0.1 -0.2 0.2 0.1 0 -0.1 -0.2 (a) ground truth _η_ 1.2 1 0.8 0.6 0.4 0.2 0.2 0.1 0 -0.1 -0.2 (d) _η_ - <sup>C</sup>, RMSE=5.83e-2 (f) _η_ - <sup>baseline</sup>, RMSE=9.72e-2 Fig. 7: SEM example with ground truth _η_ _∈_ [0 _._ 2 _,_ 1], mean dose _λ_ <sup>¯</sup> = 200 and nominal sub-acquisition dose _λ/n_ <sup>˜</sup> = 0 _._ 1. The actual dose _λ_ is a Gaussian autoregressive process with correlation coefficent of 0 _._ 999 for neighboring pixels in a row and coefficient of variation _σλ/λ_ <sup>¯</sup> = 0 _._ 2. All micrograph images are on the same scale shown in (a), chosen so that no more than 2% of pixels are saturated in any given image. Inset images show error _η_ - _−_ _η_ for a subset of the image taken from the bottom middle of the image. Tuning parameters are: _β_ NC = 2000, _β_ NCTV = 8, _β_ C = 100, and _β_ CTV = 3 _e −_ 4. The non-causal estimator found _λ_ <sup>�¯</sup> = 202 _._ 75 and the non-causal estimator with - _p_ TV regularization found _λ_ <sup>�¯</sup> = 203 _._ 69; the beam current empirical mean was _p_ <sup><u>1</u></sup> _k_ =1 <sup>_λk_</sup> <sup>= 201</sup> <sup>_._</sup> <sup>80.</sup> _p_ - _pk_ =1 <sup>_λk_</sup> <sup>= 201</sup> <sup>_._</sup> <sup>80.</sup> 32 30 28 26 24 22 20 18 16 3000 3500 4000 4500 5000 5500 6000 (a) _λ_ <sup>�C</sup>, RMSE = 0.9416 32 30 28 26 24 22 20 18 16 3000 3500 4000 4500 5000 5500 6000 (b) _λ_ <sup>�NC</sup>, RMSE = 0.6988 Fig. 8: Beam current estimates for a representative subset of pixels for the HIM example in Figure 6. 1.8 1.6 1.4 1.2 1 0.8 5 10 15 20 25 30 (a) RMSE( _λ_ <sup><u>�C</u></sup> ) vs. _β_ C 1.1 1.05 1 0.95 0.995 0.996 0.997 0.998 0.999 (c) RMSE( _λ_ <sup>�C</sup> ) vs. _a_ 0.4995 0.499 0.4985 0.498 0.4975 10 20 30 (b) RMSE( _η_ - <sup>C</sup> ) vs. _β_ C 0.4987 0.4986 0.4985 0.4984 0.995 0.996 0.997 0.998 0.999 (d) RMSE( _η_ - <sup>C</sup> ) vs. _a_ 290 280 270 260 250 240 230 220 210 200 190 3000 3500 4000 4500 5000 5500 6000 (a) _λ_ <sup>�C</sup>, RMSE = 9.4937 290 280 270 260 250 240 230 220 210 200 190 3000 3500 4000 4500 5000 5500 6000 (b) _λ_ <sup>�NC</sup>, RMSE =6.6761 Fig. 9: Beam current estimates for a representative subset of pixels for the SEM example in Figure 7. Fig. 10: Performance of causal joint estimation algorithm on data from Figure 6 for different values of _a_ and _β_ C. For (a) and (b) correlation is fixed at _a_ = 0 _._ 999; for (c) and (d), tuning parameter is fixed at _β_ C = 10. _A._ _A_ _Discrete_ _Markov_ _Chain_ _Model_ _for_ _Beam_ _Current_ The beam current in a neon beam microscope may be modeled using a two-state hidden Markov model (HMM). We assume that the nature of the beam current variation has been well characterized so that the states s _∈{s_ 1 _,_ _s_ 2 _}_ and transition probabilities _q_ ( _s, r_ ) = P( _λ_ _k_ +1 = _s |_ _λ_ _k_ = _r_ ) are known. The mean beam current under this model is denoted _λ_ <sup>¯</sup> . Based on 0.9 0.85 0.8 0.75 0.7 0.65 100 200 300 400 (a) RMSE( _λ_ <sup>�NC</sup> ) vs. _β_ NC 0.681 0.68 0.679 0.678 0.677 0.676 0.995 0.996 0.997 0.998 0.999 (c) RMSE( _λ_ <sup>�NC</sup> ) vs. _a_ 0.4981 0.498 0.4979 0.4978 100 200 300 400 (b) RMSE( _η_ - <sup>NC</sup> ) vs. _β_ NC 0.49804 0.49803 0.49802 0.49801 0.498 0.49799 0.995 0.996 0.997 0.998 0.999 (d) RMSE( _η_ - <sup>NC</sup> ) vs. _a_ where P( _λ_ 1 = _s_ ) is the stationary distribution of the hidden Markov chain. Applying Bayes’s theorem, we find the initial belief state: _F_ 1( _s_ ) = P( _λ_ 1 = _s |_ Y 1 = y 1) - Y 1 = y 1 _|_ _λ_ 1 = _s_ = <sup>P</sup> 1 _|_ _λ_ 1 = _s_ �P( _λ_ 1 = _s_ ) _._ P( Y 1 = y 1) Algorithm 1 Causal joint estimation when beam current is <u>modeled</u> <u>as</u> <u>a</u> <u>two-state</u> <u>hidden</u> <u>Markov</u> <u>chain</u> Input: y, s, _q_ ( _s, r_ ) _∀_ _s, r_ _∈_ s, _F_ 1( _s_ ) _∀_ _s ∈_ s 1: for k = [2, 3, ...p] do 2: compute _Fk_ ( _s_ ) using Algorithm 2 with _η_ _k_ = _η_ - _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> ( _λ_ <sup>˜</sup> = _λ_ <sup>¯</sup> ) and Y _k_ = y _k_ with _η_ _k_ = _η_ - _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> ( _λ_ <sup>˜</sup> = _λ_ <sup>¯</sup> ) and Y _k_ = y _k_ 3: _λ_ - <sup>HMM C</sup> _k_ = arg max _s∈_ s _Fk_ ( _s_ ) 4: _η_ - _k_ <sup>HMM C</sup> = _η_ - _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> - _λ_ ˜ = _λ_ - _k_ HMM C _k_ Fig. 11: Performance of non-causal joint estimation algorithm on data from Figure 6 for different values of _a_ and _β_ NC. For (a) and (b), correlation is fixed at _a_ = 0 _._ 999; for (c) and (d), tuning parameter is fixed _β_ NC = 200. this model, we propose causal and non-causal joint estimation algorithms for _η_ and _λ_ . _B._ _Causal_ _Estimation_ 5: end for 6: return _η_ <u>�</u> <sup>HMM C</sup>, _λ_ <sup><u>�HMM C</u></sup> Algorithm 1 describes our causal joint estimator �� _η_ HMM C _,_ _λ_ �HMM C�. At each pixel, _η_ - _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> ( _λ_ <sup>˜</sup> = _λ_ ¯) is �� _η_ HMM C _,_ _λ_ �HMM C�. At each pixel, _η_ - _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> ( _λ_ <sup>˜</sup> = _λ_ ¯) is used to form an initial estimate of _η_ _k_ . As shown in [15] and [16], as well as in our own results in Section V-G, _η_ - <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> is actually quite close to the true _η_ value, even when the beam current is imperfectly known. Thus, we initially assume that _η_ _k_ _≈_ _η_ - _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> ( _λ_ <sup>˜</sup> = _λ_ <sup>¯</sup> ) and use the Forward algorithm [26], _C._ _Non-Causal_ _Estimation_ Our non-causal joint estimate _λ_ <sup>�</sup> _k_ <sup>HMM NC</sup> selects the state with the greatest probability given the _entire_ measurement sequence: _λ_ - <sup>HMM NC</sup> _k_ = arg max P( _λ_ _k_ = _s |_ y ) _._ (47) _s∈_ s It uses the Forward-backward algorithm [26], [27] to compute a quantity proportional to P( _λ_ _k_ = _s |_ y ) for each of the two possible states. Note that P( _λ_ _k_ = _s |_ y ) may be factored as follows: P( _λ_ _k_ = _s |_ y ) _∝_ P( _λ_ _k_ = _s,_ y ) ( _c_ ) = P - y _k_ +1: _p |_ _λ_ _k_ = _s_ that _η_ _k_ _≈_ _η_ - _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> ( _λ_ <sup>˜</sup> = _λ_ <sup>¯</sup> ) and use the Forward algorithm [26], [27], as described in Algorithm 2, to compute the belief state _Fk_ ( _s_ ) of _λ_ _k_ given the measurements from that pixel and all previous pixels: (= _a_ ) P� _λ_ _k_ = _s,_ y 1: _k,_ y _k_ +1: _p_ (= _b_ ) P� y _k_ +1: _p |_ _λ_ _k_ = _s,_ y 1: _k_ �P� _λ_ _k_ = _s,_ y 1: _k_ �P - _,_ (48) P� _λ_ _k_ = _s,_ y 1: _k_ <u>�</u> <u>��</u> <u>�</u> backward pass <u>�</u> <u>��</u> <u>�</u> forward pass _Fk_ ( _s_ ) := P� _λ_ _k_ = _s |_ y 1: _k_ - _._ where (a) follows from splitting the components of y ; (b) from the multiplication rule; and (c) from the conditional independence of P� y _k_ +1: _p |_ _λ_ _k_ = _s_ - from y 1: _k_ . The final two - y _k_ +1: _p |_ _λ_ _k_ = _s_ We pick _λ_ <sup>�</sup> _k_ <sup>HMM C</sup> We pick _λ_ <sup>�</sup> _k_ <sup>HMM C</sup> to be the state that maximizes _Fk_ ( _s_ ). The estimate _η_ - _k_ <sup>HMM C</sup> is produced by recomputing _η_ - <sup>DT</sup> _k_ <sup>_|λ_</sup> <sup>˜</sup>, using _k_ <sup>HMM C</sup> is produced by recomputing _η_ - <sup>DT</sup> _k_ <sup>_|λ_</sup> <sup>˜</sup> estimate _η_ - _k_ <sup>HMM C</sup> is produced by recomputing _η_ - <sup>DT</sup> _k_ <sup>_|λ_</sup> <sup>˜</sup>, using _λ_ ˜ = _λ_ - _k_ <sup>HMM C</sup> (Algorithm 1, Line 4). Note that Algorithm 2 independence of P� y _k_ +1: _p |_ _λ_ _k_ = _s_ - from y 1: _k_ . The final two factors include a term readily available from the _forward_ pass of our our causal algorithm: P� _λ_ _k_ = _s,_ y 1: _k_ - _∝_ _Fk_ ( _s_ ), and a - _λ_ _k_ = _s,_ y 1: _k_ _λ_ ˜ = _λ_ - _k_ <sup>HMM C</sup> (Algorithm 1, Line 4). Note that Algorithm 2 operates recursively, requiring knowledge of _Fk−_ 1( _s_ ) to compute _Fk_ ( _s_ ). At the first pixel, of our our causal algorithm: P� _λ_ _k_ = _s,_ y 1: _k_ - _∝_ _Fk_ ( _s_ ), and a second term computed in a new recursive _backward_ pass over the data. This new term, _Bk_ ( _s_ ) := P - y _k_ +1: _p |_ _λ_ _k_ = _s_ - _,_ - Y 1 = y 1 _|_ _λ_ 1 = _s_ y 1 _|_ _λ_ _k_ = _s,_ - _η_ _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> ( _λ_ <sup>˜</sup> = _λ_ <sup>¯</sup> ) - _,_ may be computed using the following recursive formula moving backwards over the data sequence: P - = P Y _k_ _q_ ( _s, s_ <sup>_′_</sup> ) _._ where P Y _k_ ( _·_ ; _·, ·_ ) is the PMF in (8) and we have assumed that _η_ _k_ _≈_ _η_ - _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> ( _λ_ <sup>˜</sup> = _λ_ <sup>¯</sup> ). It follows from the law of total probability that As stipulated by the Forward-backward algorithm, the last pixel is initialized with _Bn_ ( _s_ ) = 1 _∀s ∈_ s . Just as in the causal algorithm described in Algorithm 1, our non-causal joint estimation algorithm forms an initial estimate of _η_ _k_ at each _Bk_ ( _s_ ) = _s_ <sup>_′_</sup> _∈_ s _Bk_ +1( _s_ <sup>_′_</sup> )P Y _k_ - y _k_ +1 _|_ _λ_ _k_ +1 = _s_ <sup>_′_</sup> <sup>�</sup> P( Y 1 = y 1) = _s∈_ s P - Y 1 = y 1 _|_ _λ_ 1 = _s_ �P( _λ_ 1 = _s_ ) _,_ Algorithm 2 Forward Algorithm for computing belief state _Fk_ ( _s_ ) at _k_ th pixel given _η_ _<u>k</u>_ Input: Y _k_ = y _k_ _∈_ R <sup>_n_</sup>, _η_ _k_, s, _q_ ( _s, r_ ) _∀_ _s, r_ _∈_ s, _Fk−_ 1( _s_ ) _∀_ _s ∈_ s 1: Compute _P_ - _λ_ _k_ = _s |_ all past measurements) = <sup>�</sup> 2: Compute P Y _k_ - y _k |_ _η_ _k,_ _λ_ _k_ = _s_ - _∀_ _s ∈_ s _s_ <sup>_′_</sup> _∈_ s <sup>_q_</sup> <sup>(</sup> <sup>_s′, s_</sup> <sup>)</sup> <sup>_Fk−_</sup> <sup>1(</sup> <sup>_s′_</sup> <sup>)</sup> <sup>_∀_</sup> <sup>_s ∈_</sup> <sup>s</sup> 3: _P_ - Y _k_ = y _k |_ all past measurements _s∈_ s <sup>P</sup> <sup>Y</sup> _k_ - y _k |_ _η_ _k,_ _λ_ _k_ = _s_ - _λ_ _k_ = _s |_ all past measurements) - _/P_ - _P_ 4: _Fk_ ( _s_ ) = P Y _k_ - y _k |_ _η_ _k,_ _λ_ _k_ = _s_ - _P_ - _λ_ _k_ = _s |_ all past measurements - = <sup>�</sup> - Y _k_ = y _k |_ all past measurements� 5: return _Fk_ ( _s_ ) (a) ground truth _η_ (b) _η_ - <sup>DT</sup> <sup>_|λ_</sup>, RMSE = 0.5147 (c) _η_ - <sup>HMM C</sup>, RMSE = 0.5158 (d) _η_ - <sup>baseline</sup>, RMSE = 1.0689 (e) _η_ - <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup>, RMSE = 0.5460 (f) � _η_ <sup>HMM NC</sup>, RMSE = 0.5149 32 30 28 26 24 22 20 18 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2 10 <sup>4</sup> (g) Ground truth _λ_ with estimates _λ_ <sup>�HMM C</sup>, and _λ_ <sup>�HMM NC</sup> at a subset of pixels; _λ_ <sup>�HMM C</sup> has 0.89% error rate and _λ_ - <sup>HMM NC</sup> has 0.21% error rate. To improve legibility, _λ_ - <sup>HMM NC</sup> is offset by 0.2, and _λ_ - <sup>HMM C</sup> is offset by 0.4. Fig. 12: Results from a synthetic neon beam experiment with _η_ _∈_ [2 _,_ 6], _n_ = 300, and _λ_ modeled as a two-state hidden Markov chain with _λ ∈{_ 20 _,_ 30 _}_ . pixel using _η_ - _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> ( _λ_ <sup>˜</sup> = _λ_ <sup>¯</sup> ). Assuming _η_ _k_ _≈_ _η_ - _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> pixel using _η_ - _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> ( _λ_ <sup>˜</sup> = _λ_ <sup>¯</sup> ). Assuming _η_ _k_ _≈_ _η_ - _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> ( _λ_ <sup>˜</sup> = _λ_ <sup>¯</sup> ), the estimate _λ_ <sup>�</sup> _k_ <sup>HMM NC</sup> is formed according to (47), requiring a the estimate _λ_ <sup>�</sup> _k_ <sup>HMM NC</sup> is formed according to (47), requiring a forward and backward pass to compute the two terms in (48). Then, _η_ is estimated according to: _η_ - _k_ <sup>HMM NC</sup> = _η_ - _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> ( _λ_ <sup>˜</sup> = _k_ <sup>HMM NC</sup> = _η_ - _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> Then, _η_ is estimated according to: _η_ - _k_ <sup>HMM NC</sup> = _η_ - _k_ <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> ( _λ_ <sup>˜</sup> = _λ_ - <sup>HMM NC</sup> _k_ ). _D._ _Simulated_ _Microscopy_ _Results_ Synthetic measurements were generated using an existing micrograph as the ground truth image. The beam current time series was produced according to a two-state Markov chain model with _λ ∈{_ 20 _,_ 30 _}_ using transition probabilities P( _λt_ = 20 _| λt−_ 1 = 30) = 0 _._ 003 _,_ and P( _λt_ = 30 _| λt−_ 1 = 20) = 0 _._ 002 _,_ resulting in _λ_ <sup>¯</sup> = 24. At each pixel, the dwell time was divided into _n_ = 300 sub-acquisitions. In Figure 12, we compare the RMSE results for the following methods: _•_ baseline: _η_ - <sup>baseline</sup> is the pixel-wise evaluation of (3) independently at each pixel using assumed dose _λ_ <sup>¯</sup> . _•_ DT _|λ_ : _η_ - <sup>DT</sup> <sup>_|λ_</sup> is the pixel-wise ML estimate (9) computed with true beam current _λ_ (provided by an oracle). _•_ DT _|λ_ <sup>˜</sup> : _η_ - <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> is the pixel-wise ML estimate (9) computed using assumed dose _λ_ <sup>˜</sup> = _λ_ <sup>¯</sup> . _•_ HMM causal: ( _η_ - <sup>HMM C</sup> _,_ _λ_ <sup>�HMM C</sup> ), computed using Algorithm 2. _•_ HMM non-causal: ( _η_ - <sup>HMM NC</sup> _,_ _λ_ <sup>�HMM NC</sup> ), computed according to Section VI-C. The baseline estimate _η_ - <sup>baseline</sup> in Figure 12d exhibits prominent stripe artifacts. Figure 12e shows _η_ - <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup> with stripe artifacts greatly reduced but still visible. Figures 12c and 12f show results for our causal and non-causal HMM joint estimation algorithms. In both cases, RMSE is further reduced over _η_ - <sup>DT</sup> <sup>_|λ_</sup> <sup>˜</sup>, approaching the performance of _η_ - <sup>DT</sup> <sup>_|λ_</sup> in Figure 12b, with _η_ - <sup>HMM NC</sup> slightly outperforming _η_ - <sup>HMM C</sup> . In Figure 12g, we plot the true beam current time series _λ_ with estimates _λ_ <sup>�HMM C</sup> and _λ_ <sup>�HMM NC</sup> . Note that both estimates match the true beam current at the vast majority of pixels, with an error percentage of 0.89% for the causal algorithm and 0.21% for the non-causal algorithm. Although performance is very good with only the causal forward pass, approximately four times fewer errors occur in the _λ_ estimate when all data is considered. VII. CONCLUSION In this work, we explore the estimation of _two_ properties at each pixel of a particle beam micrograph: mean SE yield _η_ and beam current _λ_ . Using the Cram´er–Rao bound at a single pixel, we show the feasibility of joint estimation given time-resolved measurements. Specifically, we show that at high _η_, joint estimation is only slightly more challenging than estimating _η_ when _λ_ is given. We demonstrate that when the dose is sufficiently high, joint estimation is possible at even a single pixel. To perform joint estimation at moderate doses, we exploit the fact that beam current does not vary arbitrarily. The algorithms of Section V are motivated by electron and helium ion beams, where current is smoothly varying. Algorithms in Section VI are designed for neon beam microscopes, where beam current is known to jump among known values. Through tests performed on synthetic microscopy data, we show that our _η_ estimators outperform existing methods and our novel _λ_ estimators closely match the ground truth. This innovation not only prevents artifacts that arise when the beam current is not perfectly known, but also provides the operator with new and useful information that could transform microscopy. Knowledge of the beam current could save costly instrument maintenance time, improve micrographs and milling outcomes, and even further the proliferation of powerful new instruments like the neon beam microscope, where maintaining a stable beam current is a key challenge. APPENDIX In gradient algorithms, we require methods to evaluate or approximate derivatives of the logarithm of the PMF P _Y_ ( _y_ ; _η, λ_ ) in (1). The _y_ = 0 case is mathematically simple and also important because many sub-acquisitions result in no detected SEs. For _y_ _>_ 0, elegant expressions can be given using Touchard polynomials. With discrete-time data with sufficiently large _n_, the relevant sub-acquisition dose is small, so we also derive approximations that hold for small _λ_ . _y_ = 0 _Case_ By substitution and simplification, log P _Y_ (0 ; _η, λ_ ) = _−λ_ (1 _−_ _e_ <sup>_−η_</sup> ) _._ (49) The derivatives of this for optimization over _λ_ or _η_ are where we regard 1 _/_ ( _m −_ _k_ )! = 0 if _k_ _> m_ [28]. Then _∞_ _m_ =0 = _y_ _k_ =0 _S_ ( _y, k_ ) _∞_ _m_ =0 _<u>m</u>_ <sup>_y_</sup> _m_ ! <sup>_xm_</sup> <sup>=</sup> _∞_ - _y_ - _m_ =0 _k_ =0 _<u>m</u>_ <u>!</u> _<u>x</u>_ <sup>_m_</sup> _S_ ( _y, k_ ) ( _m −_ _k_ )! _m_ ! _y_ - _S_ ( _y, k_ ) _x_ <sup>_k_</sup> _e_ <sup>_x_</sup> _k_ =0 _<u>x</u>_ <sup>_m_</sup> ( _m −_ _k_ )! <sup>=</sup> _<u>x</u>_ <sup>_m_</sup> = _Ty_ ( _x_ ) _e_ <sup>_x_</sup> _._ (52) Now we have _∞_ _m_ =0 _<u>m</u>_ <sup>_y_</sup> <sup>+1</sup> _<u>mm</u>_ <sup>_y_</sup> <sup>+1</sup> ! <sup>_xm−_</sup> <sup>1</sup> <sup>(</sup> = <sup>_b_</sup> <sup>)</sup> _x_ <sup><u>1</u></sup> _x_ <sup><u>1</u></sup> <sup>_Ty_</sup> <sup>+1(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_ex,_</sup> (53) _<u>d</u>_ _dx_ _∞_ _m_ =0 _<u>m</u>_ <sup>_y_</sup> = _m_ ! <sup>_xm_</sup> <sup>(</sup> <sup>_a_</sup> <sup>)</sup> _<u>m</u>_ <sup>_y_</sup> where (a) follows from term-by-term differentiation; and (b) from (52). It is the derivative of the log that will be useful in what follows: _∞_ _m_ =0 (54) _xT_ <sup>_<u>y</u>_</sup> <sup><u>+1</u></sup> _y_ ( <sup><u>(</u></sup> _x_ <sup>_<u>x</u>_</sup> ) <sup><u>)</u></sup> <sup>_,_</sup> _<u>d</u>_ _dx_ <sup>log</sup> _<u>m</u>_ <sup>_y_</sup> _<u>mm</u>_ <sup>_y_</sup> ! <sup>_xm_</sup> <sup>=</sup> <sup>_<u>T</u>_</sup> _xT_ <sup>_<u>y</u>_</sup> <sup><u>+1</u></sup> _y_ ( <sup><u>(</u></sup> _x_ <sup>_<u>x</u>_</sup> ) <sup><u>)</u></sup> which now follows from the chain rule and substitution of (52) and (53). From (51), a good approximation to _Tn_ ( _x_ ) for small _x_ can be obtained by truncating to _k_ _∈{_ 0 _,_ 1 _,_ 2 _}_ . While Stirling numbers of the second kind _S_ ( _y, k_ ) are not easy to work with in general, for any _y_ _≥_ 1, we have _S_ ( _y,_ 0) = 0, _S_ ( _y,_ 1) = 1, and _S_ ( _y,_ 2) = 2 <sup>_y−_</sup> <sup>1</sup> _−_ 1. Therefore, for any _y_ _≥_ 1, _Ty_ ( _x_ ) _≈_ _x_ + (2 <sup>_y−_</sup> <sup>1</sup> _−_ 1) _x_ <sup>2</sup> _,_ (55a) _Ty_ <sup>_′_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> _≈_ 1 + (2 <sup>_y_</sup> _−_ 2) _x,_ (55b) for small _x_ . _Derivatives_ _of_ _log_ _likelihood_ _with_ _respect_ _to_ _λ_ We have _<u>d</u>_ _<u>e</u>_ <sup>_−λ_</sup> _<u>η</u>_ <sup>_y_</sup> _dλ_ <sup>log</sup> _y_ ! - _∞_ <u>(</u> _<u>λe</u>_ <sup>_−η_</sup> <u>)</u> <sup>_m_</sup> _<u>m</u>_ <sup>_y_</sup> _m_ ! _m_ =0 - _∞_ _m_ =0 <u>(</u> _<u>λe</u>_ <sup>_−η_</sup> <u>)</u> <sup>_m_</sup> _<u>m</u>_ <sup>_y_</sup> _m_ ! _<u>d</u>_ _dλ_ _<u>d</u>_ <sup>2</sup> _dλ_ <sup>2</sup> _<u>d</u>_ _dη_ _<u>d</u>_ <sup>2</sup> _dη_ <sup>2</sup> - _−λ_ (1 _−_ _e_ <sup>_−η_</sup> )� = _−_ (1 _−_ _e_ <sup>_−η_</sup> ) _,_ (50a) = _−_ 1 + <sup>_<u>d</u>_</sup> _dλ_ <sup>log</sup> = _−_ 1 + <sup>_<u>d</u>_</sup> _dλ_ _λT_ <sup>_<u>y</u>_</sup> <sup><u>+1</u></sup> _y_ ( <sup><u>(</u></sup> _λe_ <sup>_<u>λe−−ηη</u>_</sup> ) <sup><u>)</u></sup> <sup>_,_</sup> <sup>(56)</sup> - _−λ_ (1 _−_ _e_ <sup>_−η_</sup> )� = 0 _,_ (50b) ( _a_ ) = _−_ 1 + _e_ <sup>_−η_</sup> _λe_ <sup>_<u>T−y</u>_</sup> <sup><u>+1</u></sup> <sup>_η_</sup> _T_ <sup><u>(</u></sup> _y_ <sup>_<u>λe</u>_</sup> ( _λe_ <sup>_−−η_</sup> <sup><u>)</u></sup> _λe_ <sup>_<u>T−y</u>_</sup> <sup><u>+1</u></sup> <sup>_η_</sup> _T_ <sup><u>(</u></sup> _y_ <sup>_<u>λe</u>_</sup> ( _λe_ <sup>_−−η_</sup> <sup><u>)</u></sup> <sup>_η_</sup> ) <sup>=</sup> <sup>_−_</sup> <sup>1 +</sup> <sup>_<u>T</u>_</sup> _λT_ <sup>_<u>y</u>_</sup> <sup><u>+1</u></sup> _y_ ( <sup><u>(</u></sup> _λe_ <sup>_<u>λe−−ηη</u>_</sup> ) <sup><u>)</u></sup> - _−λ_ (1 _−_ _e_ <sup>_−η_</sup> )� = _−λe_ <sup>_−η_</sup> _,_ (50c) where (a) follows from the chain rule and (54). It follows that _∞_ _m_ =0 <u>(</u> _<u>λe</u>_ <sup>_−η_</sup> <u>)</u> <sup>_m_</sup> _<u>m</u>_ <sup>_y_</sup> _m_ ! - _<u>e</u>_ <sup>_−λ_</sup> _<u>η</u>_ <sup>_y_</sup> _y_ ! - _−λ_ (1 _−_ _e_ <sup>_−η_</sup> )� = _λe_ <sup>_−η_</sup> _._ (50d) _<u>d</u>_ <sup>2</sup> _dλ_ <sup>2</sup> <sup>log</sup> _<u>d</u>_ <sup>2</sup> _λ_ <sup>2</sup> _Ty_ ( _λe_ <sup>_−η_</sup> ) _Touchard_ _Polynomials_ The _Touchard_ _polynomials_ are defined by _e_ <sup>_−η_</sup> _Ty_ <sup>_′_</sup> = <sup>_η_</sup> _Ty_ <sup>_′_</sup> <u>+1</u> <sup>(</sup> <sup>_λe−η_</sup> <sup>)</sup> _−_ <sup>_<u>Ty</u>_</sup> <sup><u>+1(</u></sup> <sup>_<u>λe−η</u>_</sup> <sup><u>)</u></sup> _λTy_ ( _λe_ <sup>_−η_</sup> ) _λ_ <sup>2</sup> _Ty_ ( _λe_ <sup>_−η_</sup> ) <sup>_′_</sup> _<u>y</u>_ <sup>(</sup> <sup>_λe−η_</sup> <sup>)</sup> _−_ <sup>_λe−ηTy_</sup> <sup>+1(</sup> <sup>_λe−η_</sup> <sup>)</sup> <sup>_T ′_</sup> _<u>y</u>_ _._ (57) ( _λTy_ ( _λe_ <sup>_−η_</sup> )) <sup>2</sup> _Tn_ ( _x_ ) = _n_ _k_ =0 _S_ ( _n, k_ ) _x_ <sup>_k_</sup> _,_ (51) where _S_ ( _n, k_ ) is a _Stirling_ _number_ _of_ _the_ _second_ _kind_, i.e., the number of partitions of a set of size _n_ into _k_ disjoint nonempty subsets. Stirling numbers of the second kind can be used to write Substituting the second-order approximation (55) in (56) and (57) gives the approximations _<u>d</u>_ _dλ_ _<u>d</u>_ <sup>2</sup> _dλ_ <sup>2</sup> - _∼_ - _∼_ 1 + (2 <sup>_y−_</sup> <sup>1</sup> _−_ 1) _λe_ <sup>_−η_</sup> <sup>_,_</sup> (58a) _≈−_ 1 + <sup><u>1</u></sup> _λ_ _≈−_ <sup><u>1</u></sup> _λ_ <sup>2</sup> <u>1 + (2</u> <sup>_y_</sup> _<u>−</u>_ <u>1)</u> _<u>λe</u>_ <sup>_−η_</sup> <sup><u>1</u></sup> _λ_ <sup>_·_</sup> 1 + (2 <sup>_y−_</sup> <sup>1</sup> _−_ 1) _λe_ <sup>_−_</sup> _._ (58b) 1 + <sup><u>(2</u></sup> <sup>_y−_</sup> <sup>1</sup> <sup>_<u>−</u>_</sup> <sup><u>1)2</u></sup> <sup>_y−_</sup> <sup>1(</sup> <sup>_<u>λe−η</u>_</sup> <sup><u>)2</u></sup> (1 + (2 <sup>_y−_</sup> <sup>1</sup> _−_ 1) _λe_ <sup>_−η_</sup> ) <sup>2</sup> 1 + <sup><u>(2</u></sup> <sup>_y−_</sup> <sup>1</sup> <sup>_<u>−</u>_</sup> <sup><u>1)2</u></sup> <sup>_y−_</sup> <sup>1(</sup> <sup>_<u>λe−η</u>_</sup> <sup><u>)2</u></sup> _m_ <sup>_y_</sup> = _y_ _k_ =0 _<u>m</u>_ <u>!</u> _S_ ( _y, k_ ) ( _m −_ _k_ )! <sup>_,_</sup> _Derivatives_ _of_ _log_ _likelihood_ _with_ _respect_ _to_ _η_ We have _∞_ _m_ =0 <u>(</u> _<u>λe</u>_ <sup>_−η_</sup> <u>)</u> <sup>_m_</sup> _<u>m</u>_ <sup>_y_</sup> _m_ ! _<u>d</u>_ _dη_ <sup>log</sup> - _<u>e</u>_ <sup>_−λ_</sup> _<u>η</u>_ <sup>_y_</sup> _y_ ! _<u>y</u>_ = _η_ <sup>+</sup> _dη_ <sup>_<u>d</u>_</sup> <sup>log</sup> _<u>y</u>_ = _η_ <sup>+</sup> _dη_ <sup>_<u>d</u>_</sup> - _∞_ _m_ =0 <u>(</u> _<u>λe</u>_ <sup>_−η_</sup> <u>)</u> <sup>_m_</sup> _<u>m</u>_ <sup>_y_</sup> _m_ ! ( _a_ ) _<u>y</u>_ = _η_ <sup>_−_</sup> <sup>_λe−η_</sup> _λe_ <sup>_<u>T−y</u>_</sup> <sup><u>+1</u></sup> <sup>_η_</sup> _T_ <sup><u>(</u></sup> _y_ <sup>_<u>λe</u>_</sup> ( _λe_ <sup>_−−η_</sup> <sup><u>)</u></sup> <sup>_η_</sup> _η_ <sup>_<u>y</u>_</sup> <sup>_−_</sup> <sup>_<u>T</u>_</sup> _T_ <sup>_<u>y</u>_</sup> <sup><u>+1</u></sup> _y_ ( _λe_ <sup><u>(</u></sup> <sup>_<u>λe−−η</u>_</sup> ) <sup>_η_</sup> <sup><u>)</u></sup> _λe_ <sup>_<u>T−y</u>_</sup> <sup><u>+1</u></sup> <sup>_η_</sup> _T_ <sup><u>(</u></sup> _y_ <sup>_<u>λe</u>_</sup> ( _λe_ <sup>_−−η_</sup> <sup><u>)</u></sup> <sup>_η_</sup> ) <sup>=</sup> _η_ <sup>_<u>y</u>_</sup> _T_ <sup>_<u>y</u>_</sup> <sup><u>+1</u></sup> _y_ ( _λe_ <sup><u>(</u></sup> <sup>_<u>λe−−η</u>_</sup> ) <sup>_η_</sup> <sup><u>)</u></sup> <sup>_,_</sup> <sup>(59)</sup> [9] J. Schwartz, Y. Jiang, Y. Wang, A. Aiello, P. Bhattacharya, H. Yuan, Z. Mi, N. Bassim, and R. Hovden, “Removing stripes, scratches, and curtaining with nonrecoverable compressed sensing,” _Microsc._ _Microanal._, vol. 25, no. 3, p. 705–710, 2019. [10] A. Khalilian-Gourtani, M. Tepper, V. Minden, and D. B. Chklovskii, “Strip the stripes: Artifact detection and removal for scanning electron microscopy imaging,” in _Proc._ _IEEE_ _Int._ _Conf._ _Acoust.,_ _Speech_ _and_ _Signal_ _Process._, 2019, pp. 1060–1064. [11] S. Liu, L. Sun, J. Gao, and K. Li, “A fast curtain-removal method for 3D FIB-SEM images of heterogeneous minerals,” _J._ _Microscopy_, vol. 272, no. 1, pp. 3–11, 2018. [12] T. Ott, D. Rold´an, C. Redenbach, K. Schladitz, M. Godehardt, and S. H¨ohn, “Three-dimensional structural comparison of tantalum glancing angle deposition thin films by FIB-SEM,” _J. Sensors Sensor Syst._, vol. 8, no. 2, pp. 305–315, 2019. [13] M. Peng, J. Murray-Bruce, K. K. Berggren, and V. K. Goyal, “Source shot noise mitigation in focused ion beam microscopy by time-resolved measurement,” _Ultramicroscopy_, vol. 211, p. 112948, 2020. [14] M. Peng, J. Murray-Bruce, and V. K. Goyal, “Time-resolved focused ion beam microscopy: Modeling, estimation methods, and analyses,” _IEEE_ _Trans._ _Computational_ _Imaging_, vol. 7, pp. 547–561, 2021. [15] L. Watkins, S. W. Seidel, M. Peng, A. Agarwal, C. C. Yu, and V. K. Goyal, “Robustness of time-resolved measurement to unknown and variable beam current in particle beam microscopy,” in _Proc._ _IEEE_ _Int._ _Conf._ _Image_ _Process._, Anchorage, AK, Sep. 2021, pp. 3487–3491. [16] ——, “Prevention beats removal: Avoiding stripe artifacts from current variation in particle beam microscopy through time-resolved sensing,” _Microsc._ _Microanal._, vol. 27, no. S1, pp. 422–425, Aug. 2021. [17] S. Yamada, T. Ito, K. Gouhara, and Y. Uchikawa, “Electron-count imaging in SEM,” _Scanning_, vol. 13, no. 2, pp. 165–171, 1991. [18] L. Jin, A.-C. Milazzo, S. Kleinfelder, S. Li, P. Leblanc, F. Duttweiler, J. C. Bouwer, S. T. Peltier, M. H. Ellisman, and N.-H. Xuong, “Applications of direct detection device in transmission electron microscopy,” _J._ _Structural_ _Biology_, vol. 161, no. 3, pp. 352–358, 2008. [19] G. McMullan, S. Chen, R. Henderson, and A. R. Faruqi, “Detective quantum efficiency of electron area detectors in electron microscopy,” _Ultramicroscopy_, vol. 109, no. 9, pp. 1126–1143, 2009. [20] A. Agarwal, J. Simonaitis, V. K. Goyal, and K. K. Berggren, “Secondary electron count imaging in SEM,” arXiv:2111.01862, Nov. 2021. [21] K. S. Sim, J. T. L. Thong, and J. C. H. Phang, “Effect of shot noise and secondary emission noise in scanning electron microscope images,” _Scanning_, vol. 26, no. 1, pp. 36–40, 2004. [22] A. Beck and M. Teboulle, “Fast gradient-based algorithms for con strained total variation image denoising and deblurring problems,” _IEEE_ _Trans._ _Image_ _Process._, vol. 18, no. 11, pp. 2419–2434, 2009. [23] J. Notte, B. Ward, N. Economou, R. Hill, R. Percival, L. Farkas, and S. McVey, “An introduction to the helium ion microscope,” in _AIP_ _Conference_ _Proceedings_, vol. 931. AIP, 2007, pp. 489–496. [24] Y. Lin and D. C. Joy, “A new examination of secondary electron yield data,” _Surface_ _Interface_ _Anal._, vol. 37, no. 11, pp. 895–900, 2005. [25] L. Watkins, “Mitigating current variation in particle beam microscopy,” arXiv:2106.04686, Jun. 2021, B.S. honors thesis in electrical and computer engineering, Boston University. [26] L. E. Baum, T. Petrie, G. Soules, and N. Weiss, “A maximization technique occurring in the statistical analysis of probabilistic functions of Markov chains,” _Annals_ _Math._ _Stat._, vol. 41, no. 1, pp. 164–171, 1970. [27] L. E. Baum, “An inequality and associated maximization technique in statistical estimation for probabilistic functions of Markov processes,” _Inequalities_, vol. 3, no. 1, pp. 1–8, 1972. [28] S. Lee, Mathematics Stack Exchange, Jul. 2020, https://math.stackexchange.com/q/3744576. [29] C. Leibovici, Mathematics Stack Exchange, Jul. 2020, https://math.stackexchange.com/q/3744557. where (a) follows from the chain rule and (54). It follows that _∞_ _m_ =0 <u>(</u> _<u>λe</u>_ <sup>_−η_</sup> <u>)</u> <sup>_m_</sup> _<u>m</u>_ <sup>_y_</sup> _m_ ! _<u>d</u>_ <sup>2</sup> _dη_ <sup>2</sup> <sup>log</sup> _<u>d</u>_ <sup>2</sup> - _<u>e</u>_ <sup>_−λ_</sup> _<u>η</u>_ <sup>_y_</sup> _y_ ! _η_ <sup>_<u>y</u>_</sup> <sup>2</sup> <sup>+</sup> <sup>_λe−η T_</sup> _T_ <sup>_′_</sup> _<u>y</u>_ = _−_ _η_ <sup>_<u>y</u>_</sup> <sup>2</sup> _T_ <sup>_′_</sup> _<u>y</u>_ <u>+1</u> _y_ ( _λe_ <sup>(</sup> <sup>_λe−−η_</sup> ) <sup>_η_</sup> <sup>)</sup> _−_ _λe_ <sup>_−η Ty_</sup> <sup>+1(</sup> <sup>_λe−η_</sup> <sup>)</sup> <sup>_T ′_</sup> _<u>y</u>_ <sup>(</sup> <sup>_λe−η_</sup> <sup>)</sup> ( _Ty_ ( _λe_ <sup>_−η_</sup> )) <sup>2</sup> = _−_ <sup>_<u>y</u>_</sup> _η_ <sup>2</sup> <sup>+</sup> <sup>_λe−η_</sup> _×_ <sup>_T ′_</sup> _<u>y</u>_ <sup>_λe−η_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_Ty_</sup> <sup>+1(</sup> <sup>_λe−η_</sup> <sup>)</sup> <sup>_T ′_</sup> _<u>y</u>_ <sup>(</sup> <sup>_λe−η_</sup> <sup>)</sup> _._ (60) ( _Ty_ ( _λe_ <sup>_−η_</sup> )) <sup>2</sup> <sup>_′_</sup> _<u>y</u>_ <u>+1</u> <sup>(</sup> <sup>_λe−η_</sup> <sup>)</sup> <sup>_Ty_</sup> <sup>(</sup> <sup>_λe−η_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_Ty_</sup> <sup>+1(</sup> <sup>_λe−η_</sup> <sup>)</sup> <sup>_T ′_</sup> _<u>y</u>_ Substituting the second-order approximation (55) in (59) and (60) gives the approximations 1 + (2 <sup>_y−_</sup> <sup>1</sup> _−_ 1) _λe_ <sup>_−η_</sup> <sup>_,_</sup> (61a) _<u>d</u>_ - _∼_ _dη_ _<u>d</u>_ <sup>2</sup> - _∼_ _dη_ <sup>2</sup> _≈_ <sup>_<u>y</u>_</sup> _η_ <u>1 + (2</u> <sup>_y_</sup> _<u>−</u>_ <u>1)</u> _<u>λe</u>_ <sup>_−η_</sup> <sup>_<u>y</u>_</sup> _η_ <sup>_−_</sup> 1 + (2 <sup>_y−_</sup> <sup>1</sup> _−_ 1) _λe_ <sup>_−_</sup> <sup>_<u>y</u>_</sup> <u>2</u> <sup>_y−_</sup> <sup>1</sup> _<u>λe</u>_ <sup>_−η_</sup> _η_ <sup>2</sup> <sup>+</sup> (1 + (2 <sup>_y−_</sup> <sup>1</sup> _−_ 1) _≈−_ <sup>_<u>y</u>_</sup> _η_ (1 + (2 <sup>_y−_</sup> <sup>1</sup> _−_ 1) _λe_ <sup>_−η_</sup> ) <sup>2</sup> <sup>_._</sup> (61b) ACKNOWLEDGMENT The authors thank Sangchul Lee and Claude Leibovici for answers to a Stack Exchange query [28], [29] that were instrumental to the derivations in the appendix. REFERENCES [1] B. W. Ward, J. A. Notte, and N. P. Economou, “Helium ion microscope: A new tool for nanoscale microscopy and metrology,” _J._ _Vacuum_ _Sci._ _Technol._ _B_, vol. 24, no. 6, pp. 2871–2874, Nov. 2006. [2] J. Notte and J. Huang, _The_ _Helium_ _Ion_ _Microscope_ . Cham: Springer International Publishing, 2016, pp. 3–30. [3] J. Morgan, J. Notte, R. Hill, and B. Ward, “An introduction to the helium ion microscope,” _Microscopy_ _Today_, vol. 14, no. 4, pp. 24–31, 2006. [4] F. F. Rahman, J. A. Notte, R. H. Livengood, and S. Tan, “Observation of synchronized atomic motions in the field ion microscope,” _Ultrami-_ _croscopy_, vol. 126, pp. 10–18, 2013. [5] A. J. Barlow, J. F. Portoles, N. Sano, and P. J. Cumpson, “Removing beam current artifacts in helium ion microscopy: A comparison of image processing techniques,” _Microsc. Microanal._, vol. 22, no. 5, pp. 939–947, Oct. 2016. [6] J. Notte, F. Rahman, S. McVey, S. Tan, and R. Livengood, “The neon gas field ion source - stability and lifetime,” _Microsc._ _Microanal._, vol. 16, no. S2, p. 28–29, 2010. [7] F. H. M. Rahman, S. McVey, L. Farkas, J. A. Notte, S. Tan, and R. H. Livengood, “The prospects of a subnanometer focused neon ion beam,” _Scanning_, vol. 34, no. 2, pp. 129–134, 2012. [8] A. J. Barlow, N. Sano, B. J. Murdoch, J. F. Portoles, P. J. Pigram, and P. J. Cumpson, “Observing the evolution of regular nanostructured indium phosphide after gas cluster ion beam etching,” _Applied_ _Surface_ _Science_, vol. 459, pp. 678–685, 2018.

섹션 본문 127문단 · 40,743자

(제목 없음)

1In conventional particle beam microscopy, knowledge of the beam current is essential for accurate micrograph formation and sample milling. This generally necessitates offline calibration of the instrument. In this work, we establish that beam current can be estimated online, from the same secondary electron count data that is used to form micrographs. Our methods depend on the recently introduced time-resolved measurement concept, which combines multiple short measurements at a single pixel and has previously been shown to partially mitigate the effect of beam current variation on micrograph accuracy. We analyze the problem of jointly estimating beam current and secondary electron yield using the Cramér-Rao bound. Joint estimators operating at a single pixel and estimators that exploit models for inter-pixel correlation and Markov beam current variation are proposed and tested on synthetic microscopy data. Our estimates of secondary electron yield that incorporate explicit beam current estimation beat state-of-the-art methods, resulting in micrograph accuracy nearly indistinguishable from what is obtained with perfect beam current knowledge. Our novel beam current estimation could help improve milling outcomes, prevent sample damage, and enable online instrument diagnostics.

2Abstract-In conventional particle beam microscopy, knowledge of the beam current is essential for accurate micrograph formation and sample milling. This generally necessitates offline calibration of the instrument. In this work, we establish that beam current can be estimated online, from the same secondary electron count data that is used to form micrographs. Our methods depend on the recently introduced time-resolved measurement concept, which combines multiple short measurements at a single pixel and has previously been shown to partially mitigate the effect of beam current variation on micrograph accuracy. We analyze the problem of jointly estimating beam current and secondary electron yield using the Cramér-Rao bound. Joint estimators operating at a single pixel and estimators that exploit models for inter-pixel correlation and Markov beam current variation are proposed and tested on synthetic microscopy data. Our estimates of secondary electron yield that incorporate explicit beam current estimation beat state-of-the-art methods, resulting in micrograph accuracy nearly indistinguishable from what is obtained with perfect beam current knowledge. Our novel beam current estimation could help improve milling outcomes, prevent sample damage, and enable online instrument diagnostics.

3Index Terms-electron microscopy, estimation theory, Fisher information, gallium ion beam, helium ion beam, neon ion beam, Neyman Type A distribution, Poisson processes, Touchard polynomials.

I. INTRODUCTION

4P ARTICLE beam microscopes image samples by detecting the secondary electrons (SEs) expelled from the sample by an incident beam of charged particles. Scanning electron microscopes (SEM) employ an electron beam while newer focused ion beam (FIB) microscopes use a beam composed of heavier ions, such as helium, neon, or gallium. FIB microscopes tend to have higher SE yield, larger depth of field, and finer resolution [1]- [3]. Due to the heavier incident particles, these instruments are also often used to perform milling. Image quality and milling accuracy depend heavily on the ability to maintain a stable beam current. However, contamination within the instrument [4], or age of the source tip, may cause the beam intensity to fluctuate away from the desired setting. When the beam is raster scanned across a sample, these fluctuations give rise to horizontal stripe artifacts in the micrograph. Figure 1a shows the beam current incident on a horizontally raster-scanned sample when the beam has slow, smooth intensity variation as often seen in SEM and helium ion microscope (HIM) systems [5]. Figure 1b depicts the corresponding stripe artifacts that arise when a micrograph is formed under the incorrect assumption of constant beam current. Neon beam microscopes have been less widely adopted because of difficulties in maintaining a stable beam current.

5Here, the beam current can be modeled as toggling between known values [6], [7], as shown in Figure 1c. The resulting artifacts are shown in Figure 1d. Real-time knowledge of the beam current could prevent these artifacts, provide the operator an indicator of instrument fitness, and enable the instrument to adjust dwell time to improve milling outcomes and avoid sample damage. Existing particle beam microscopes do not measure beam current, however algorithms have been developed to remove stripe content from micrographs post facto. For example, in [5], [8], [9], low-frequency image content is removed, with [9] also including total variation denoising. Several algorithms [10]- [12] have also been developed to reduce the 'curtaining' effect that arises due to variations in an ion beam's milling rate. Unlike the stripe artifacts shown in Figures 1b and 1d, which arise when the image formation algorithm incorrectly assumes a constant beam current, curtaining stripes accurately reflect grooves made in the underlying sample during milling.

6In this paper, we establish that beam current can be accurately estimated online, from the same SE count data used to form a micrograph, without the use of a calibrated sample. This may seem to be like estimating two quantities from a single noisy measurement. While that would be impossible without additional assumptions, here we take advantage of the time-resolved (TR) measurement concept introduced in [13]. TR measurement divides the dwell time into n shorter subacquisitions and can be implemented without changes to the instrument. It enables estimation of the number of incident particles despite the variability in the numbers of SEs generated by the incident particles. This was previously shown to improve micrograph accuracy [13], [14] and to provide a natural robustness to imperfectly known beam current [15], [16]. In this work, we go beyond robustness to explicitly estimate the beam current. In addition to improving the accuracy of the estimated SE yield (i.e., producing a better micrograph), this is of interest for control of sample damage, milling accuracy, and instrument diagnostics.

A. Main Contributions

7• An analysis of the joint estimation problem. The Cramér-Rao bound (CRB) for joint estimation of SE yield and beam current from TR measurement is derived and used to show that under certain conditions, joint estimation is vanishingly more challenging than estimation of SE yield alone. • Demonstration of joint estimation of SE yield and beam current at a single pixel. Proposed estimators are evaluated on synthetic data and compared to the CRB. • Joint estimation algorithms that exploit models for beam current variation and inter-pixel correlation. Causal and non-causal joint estimators are proposed to exploit continuous and discrete Markov models for beam current, and for the continuous case total variation regularization of SE yield is also incorporated. Tested on synthetic microscopy data, the SE yield estimates are shown to beat state of the art methods, and beam current estimates are shown to closely match the ground truth. • Numerical methods for Neyman Type A distributions.

8Expressions and approximations for derivatives of the Neyman Type A negative log likelihood in terms of Touchard polynomials are given.

B. Outline

9In Section II, we summarize microscope abstractions, measurement models, and basic analyses from [14,Sect. II]. In Section III, we use the Cramér-Rao bound to explore the feasibility of joint estimation. Then, joint estimation at a single pixel is demonstrated in Section IV. At the time scale of pixelto-pixel scanning, beam current does not vary arbitrarily. Thus, we develop methods to exploit simple Markov models for the beam current. In Section V, motivated by electron and helium ion beams, we consider joint estimation for continuous-valued smoothly varying beam current. In Section VI, motivated by neon ion beams [6], [7], we consider joint estimation where beam current is known to flip back and forth between two known values. Section VII provides concluding comments on the promise of joint estimation in particle beam microscopy.

II. MEASUREMENT MODELS AND BASELINE ESTIMATORS

10In this section, we describe our measurement model for the particle beam microscope, assuming direct SE detection; see [14,Sect. II] for additional details.

11Though not yet common in commercial hardware, direct SE detection provides higher signal-to-noise ratio than employing scintillators and photomultiplier tubes [17]- [20]. The advantages of time-resolved sensing do not depend on direct SE detection, as demonstrated experimentally in [13]. Although our model describes both electron-and ion-beam microscopy, we will refer to incident particles as ions.

A. Conventional Measurement

12The incident ion beam may be accurately modeled as a Poisson process [21]. So, at a single pixel with dwell time t, the number of incident ions M is a Poisson random variable with mean λ = Λt, where Λ is rate of incident ions per unit time. Dose is conventionally defined as the number of incident ions per unit area. Since the absolute spatial and temporal scales are not important in our abstractions or methods, we will refer to λ as the dose and, especially when it is unknown and potentially varying, as the beam current. The number of SEs expelled by the ith incident ion is also modeled as a Poisson random variable: X i ∼ Poisson(η), where η is the sample SE yield at that pixel. The goal in forming a micrograph is to show how η varies from pixel to pixel. The number of incident ions M is not directly observed; it is at best inferred from the detected SEs.

13At each pixel, a conventional microscope measures the sum of all SEs over the dwell time: Y = M i=1 X i . Modeled in this way, Y is a Neyman Type A compound Poisson random variable with probability mass function (PMF) given by

14The conventional estimate for η assumes λ is known and operates independently at each pixel:

15When λ is assumed to be constant, but actually varies in time, the conventional estimate (3) gives rise to prominent stripe artifacts like the ones shown in Figures 1b and 1d.

B. Continuous-Time Time-Resolved Measurement

16The continuous-time (CT) measurement model is an idealization of an FIB microscope first introduced in [14]. It allows us to study the limits of TR measurement. Here, we imagine that we have direct detection of SEs with perfect temporal precision of each SE burst. In our model, some incident ions result in no detected SEs because P(X i = 0) is nonzero. There is no observed difference between the lack of an incident ion and an incident ion resulting in no detected SEs. Thus, the CT measurement is

17where M is the number of incident ions that result in at least one SE, T i is the time of the ith such incident ion, and X i is the corresponding SE counts. The probability of an incident ion yielding more than one SE is

18The X i s are independent and identically distributed with PMF

19which is the zero-truncation of the Poisson(η) distribution. Several estimators of η from a CT measurement when λ is known were studied in [14]. Here, we are interested in the assumed doseλ not necessarily being equal to the dose λ. The CT maximum likelihood (ML) estimate evaluated using the assumed doseλ is the unique root of the following equation:

C. Discrete-Time Time-Resolved Measurement

20The discrete-time (DT) measurement model assumes the per-pixel dwell time t is split into n sub-acquisitions of equal duration. Each sub-acquisition then has the same distribution as a conventional measurement with dose λ/n. A key observation of this paper is that the n-length DT measurement vector contains rich information about both the dose λ and SE yield η. Imagine short sub-acquisitions with dose λ/n small enough that observing more than one incident ion per sub-acquisition is unlikely. In this case, with large enough η, the number of sub-acquisitions where the number of observed SEs is strictly positive is roughly equal to the number of incident ions.

21In this work, we will use subscript k for pixel index, so pixel k has beam current λ k and SE yield η k ; vectors η and λ contain the values of η and λ for each of the p pixels in a sample. The vector y ∈ R pn gathers measurements across all pixels, with the vector of n time-resolved measurements at the kth pixel given by y k = [y (1) k , y (2) k , . . . , y (n) k ]. Since the entries in y k are independent, their joint PMF is

22where P Y (· ; ·, ·) is given by (1). Under assumed doseλ, the DT ML estimator finds the value of η k , separately at each sample pixel, that maximizes the likelihood in (8):

23In this work, we use TR data to estimate both λ and η. When oracle knowledge of the dose λ is assumed while estimating η, the estimate is denoted η DT|λ k .

III. FEASIBILITY OF JOINT ESTIMATION OF SE YIELD AND BEAM CURRENT

24A single conventional measurement Y combines SE yield η and beam current λ inseparably, as suggested by (2). However, in this section, we show that using time-resolved data, joint estimation of η and λ becomes possible. In Section III-A we derive CT and DT CRBs for the joint estimation problem. In Section III-B, we discuss the challenge of joint estimation at low-η pixels.

A. Cramér-Rao Bound

25The CRB provides a lower bound for the variance of an unbiased estimator of our unknown parameter θ = [η, λ]. In this section we derive the CRB for joint estimation of η and λ under both CT and DT measurement models and use them to explore the feasibility and challenge of joint estimation.

261) Continuous-Time Cramér-Rao Bound: With a CT measurement (4), the entries of the Fisher information (FI) matrix are given by

27As shown in [14, Sect. III-B],

28The FI about λ in the CTTR measurement is

29where (a) follows from the application of the chain rule for FI, the fact that the conditional distribution of T i given M has no dependence on η, and the independence of { M , X 1 , X 2 , . . . , X M }; and (b) from the fact that P Xi (j; η) is not a function of λ and thus I Xi (λ; η) = 0. It follows that

30The cross terms in the the FI matrix are

31Thus, the full CT FI matrix is

32.

33When one parameter is to be estimated and the other is given, the CT CRB is given by

34When both η and λ are unknown, the CT CRB for each parameter is computed by inverting I CT :

35Note that the CRBs when both parameters are unknown (17) may be written in terms of the CRBs for that same parameter when the other parameter is known (16):

36where

37The factor α(η), which is plotted in Figure 2, represents the added challenge of the joint estimation problem compared to estimating one parameter given the other. When η ≥ 2, as is (19) by which the CRB for joint estimation of η and λ exceeds that of estimating one parameter with the other given. typical for FIB, α(η) ≈ 1, and furthermore lim η→∞ α(η) = 1; i.e., asymptotically, jointly estimating both parameters is no more challenging. When η is low, M becomes a less suitable proxy for, and contains less information about, the number of incident ions M .

382) Discrete-Time Cramér-Rao Bound: The Fisher information matrix about unknown parameter θ in n time resolved measurements, each with a per sub-acquisition dose of λ/n is given by

39As derived in [13],

40and similarly, the derivative with respect to λ is

41Substituting (21) and (22) into (20) and truncating the series appropriately enables numerical approximation of the FI matrix. CRBs are then analogous to (16) and (17).

B. The Challenge of Low SE Yield Samples

42In Section III-A, we showed that as η gets smaller, jointly estimating η and λ becomes increasingly more difficult than estimation of η or λ alone. Figure 3 further illustrates the challenge of lower η samples. Here we plot the normalized continuous-time CRBs forη andλ as functions of the total dose λ. Different colored curves denote different η values. Note that the intersection of each curve with a horizontal line indicates the dose λ required to achieve the corresponding normalized CRB. For example, in order for the normalized standard deviation to be lower bounded by 10 −1 , a dose on the order of 10 2 is required when η = 4; when η = 0.25, a dose of nearly 10 3 is required.

43In Section IV, we study joint estimation of η and λ at a single pixel. Although we show that this is possible, as demonstrated in Figure 3, even pixels with large η require a large dose to form high-quality estimates. In Sections V and VI, we exploit inter-pixel correlations of both η and λ to enable high-quality joint estimation at moderate doses.

IV. JOINT ESTIMATION AT A SINGLE PIXEL

44In this section, we derive CT and DT ML estimates for η and λ using only measurements acquired at a single pixel. In Section IV-C, we evaluate the performance of these estimators and compare to the CRBs derived in Section III-A

A. Continuous-Time Time-Resolved ML Estimation

45Recall the continuous-time measurement model in (4). The X i variables are independent, so using (6), the joint distribution of the SE count vector (conditioned on M = m) is

46where the simplification comes from identifying the sum as the total SE count y and replacing the product of factorials with an unspecified constant because this is immaterial to estimation of η and λ. Combining (5) and (23), the relevant likelihood is

47where m! has been absorbed into the constant c because this is immaterial to estimation of η and λ. Omitting the constant,

48Taking derivatives of − log P M ,Y ( m, y | η, λ) gives

49Setting these to zero to find the joint ML estimate gives that η CT is the root of

50which then can be substituted to give

51These values can be justified heuristically without the ML property. Since m/(1 − exp(−η) is a good proxy for the number of incident ions, (28) sets η CT to be the number of detected SEs y divided by this estimate for the number of incident ions. In [14], this was called the continuous-time Lambert quotient mode estimator, and it was shown to differ from the ML estimate of η with λ known. Note that when at most a single SE is observed in response to each of the incident ions (i.e., X i = 1 for all i), we have y = m, so the right side of (28) equals 1. The left side of (28) approaches 1 as η approaches 0; thus, we assign η CT = 0, and substituting in (29) gives λ CT = ∞. We address this singularity by placing a reasonable upper bound λ max on our estimate for λ. The smallest nonzero estimate we can obtain for η is then 1/λ max . Requiring a large dose to be able to accurately estimate a small value of η at a single pixel is consistent with the normalized CRBs in Figure 3a. This limitation is one motivation for our use of inter-pixel correlations in Sections V and VI.

B. Discrete-Time Time-Resolved ML Estimation

52At the kth pixel, we acquire a vector y k of n time-resolved measurements with joint PMF given in (8). The corresponding joint ML estimate is

53The objective function in (30) is a sum of n terms, each a logarithm of the Neyman Type A PMF in (1). While difficult to work with analytically, since the decision variable is only twodimensional and the objective function is smooth, numerical evaluation of (30) is not difficult. The numerical experiments in following sections use gradient descent methods based on derivatives (58a) and (61a) derived in the appendix. Similar to the CT case in Section IV-A, observing at most a single SE per sub-acquisition creates a singularity whereby (30) gives ( η DT k , λ DT k ) = (0, ∞). In practice, we can again place a reasonable upper bound λ max on our λ estimate and then estimate η accordingly.

C. Estimator Performance

54In Figure 4, we plot the root mean-squared error (RMSE) and bias for our estimators, both normalized by the true parameter value, as functions of η. We compare existing methods for estimating η, which require knowledge of the dose, with our new methods for jointly estimating η and λ:

55is the CT estimate in (7), evaluated using oracular knowledge of the dose (λ = λ). • DT|λ: η DT|λ k is the DT estimate in (9), evaluated using oracular knowledge of the dose (λ = λ).

56is the CT joint estimate from (28) and (29)

57is the DT joint estimate from (30). We also plot the normalized square roots of the corresponding CRBs: CRB(CT) of (17), CRB(CT|λ) of (16a), as well as CRB(DT) and CRB(DT|λ) computed as described in Section III-A2. As predicted by the CRBs derived in Section III-A, our joint estimators and the estimators of η when λ is given achieve similar performance at higher η. In fact, Figures 4a and 4c both show a very close match of all estimators to their corresponding CRBs, with the (biased) DT estimate of λ slightly outperforming the CRB. With λ = 200 as used here, the normalized RMSEs of both η and λ get very large as η gets smaller, especially when λ is not given, motivating our use of inter-pixel correlations in Sections V and VI. The RMSE and bias of η and λ are generally smaller for CT methods, with very small bias of η and λ for all estimators. Figure 5 shows estimator RMSE (along with the square root of the CRBs) and bias as functions of the number of sub-acquisitions n for fixed total dose λ = 200 and SE yield η = 5. Note that when n gets large, DT performance converges to the CT asymptote. At λ/n = 0.1, a value attainable by current hardware and used in the DT experiments that follow in Section V-G, DT estimator RMSE is close to the CT limit. Figures 5a and 5b show that joint estimation and estimation of η given λ are similarly difficult when n is sufficiently large. In Figure 5a we observe that at larger n, RMSE( η DT ) approaches the CRB. The RMSE of λ DT dips below the CRB (Figure 5c) at certain lower values of n, which may be explained by the non-negligible bias shown in Figure 5d.

V. EXPLOITING A SMOOTHLY VARYING BEAM CURRENT

58Section IV demonstrated that joint estimation of η and λ is possible at a single pixel through time-resolved measurement. However, as shown in Figure 3 and discussed in Section IV-A, high fidelity estimates may require a large dose, especially at low-η pixels. In this section, we use a simple model for smoothly varying beam current-meant to be representative of electron and helium ion beams-to form high quality estimates of both η and λ at moderate doses. To meet a variety of use cases, we propose both causal and non-causal algorithms, each with and without total variation (TV) regularization on η. In the interests of brevity and relevance to contemporary instruments, we consider only discrete-time measurements.

59A. An Autoregressive Model for Beam Current

60We model beam current as a first-order Gaussian autoregressive process:

61where a is the correlation coefficient for neighboring pixels in a row and all x k ∼ N (0, σ 2 x ) variables are independent. The mean and variance of the beam current arē

62This describes an incident beam with slow, unknown variations aboutλ, which may be the intended beam current setting.

B. Causal Estimation

63We seek causal estimates, η C k and λ C k , of η k and λ k at the kth pixel, given only the measurement vector at that pixel Y k = y k and λ k−1 . Although λ k−1 is not perfectly known, we assume it is approximately equal to our estimate of the beam current formed at the last pixel: λ k−1 ≈ λ C k−1 . Inspired by (31), we use the prior

64and formulate a MAP estimate:

65where P Y k (· ; ·, ·) is the joint PMF given in (8). In practice, we introduce a tuning parameter β C :

66At each new pixel, (35) is solved using gradient descent. At the first pixel, indexed by k = 1, we solve (35) using λ C 0 =λ.

C. Causal Estimation with Total Variation Regularization

67Total variation regularization on η may be added to the cost function in (35) to exploit the fact that microscopy images are often piecewise smooth. Our new TV-regularized causal estimate of η (and the corresponding estimate of λ) minimize the following cost function:

68where g TV (η k ) is a TV cost term. In the causal, raster-scanned scenario, the neighboring pixels that have already been visited are those to the left and above the current pixel. Thus, our TV cost term is given by

69where η v and η h are η values already estimated (and assumed known) at the vertically and horizontally adjacent pixels. Parameters β h and β v may be tuned to promote more horizontal or vertical smoothness. We solve (36) using proximal gradient methods. The proximal operator for the term in (37) is

70When η h < η v holds, the minimization in (38) gives

71which, when β h = β v = β CTV , 1 reduces to

72(40) The case of η h > η v is similar. Equation (36) is solved at each pixel, with β v = 0 at all pixels in the first row of the image and β h = 0 for the first column of the image.

D. Non-Causal Estimation

73The non-causal estimation algorithm operates on the entire measurement vector y and estimates η and λ simultaneously at all pixels. This formulation allows us to leverage stronger priors on λ, as well as on η as we show later in Section V-E. Given (31), λ is jointly Gaussian,

74where 1 ∈ R p is a vector of ones. Since all sub-acquisitions and pixels are conditionally independent, the joint PMF of the entire measurement vector y is

75where P Y (· ; ·, ·) is the PMF in (1). The MAP estimate for (η, λ,λ) is given by

76As in (35), we introduce a tuning parameter β NC to allow additional regularization:

77Note that this formulation does not require knowledge of the mean beam current but rather estimatesλ in addition to η and λ. This cost function is differentiable and is thus we solve the minimization using gradient descent methods. The derivatives of the first term in (44) are derived in the appendix; the derivative of the second term with respect to λ is proportional to Σ −1 (λ −λ1). To avoid storing a prohibitively large matrix, and because Σ is approximately circulant, we perform multiplication by Σ −1 in the frequency domain using the fast Fourier transform.

E. Non-Causal Estimation with Total Variation Regularization

78As with our causal estimate, TV regularization may be added to (44) to promote piecewise smooth estimates of η:

79( η NCTV , λ NCTV , λ ) = arg min η,λ,λ − log P Y (y | η, λ)

80where η TV is given by

81and β NCTV is a tuning parameter. Equation (45) is solved using proximal gradient methods; the proximal operator for (46) is solved using [22].

F. Operational Considerations

82Although all of our proposed algorithms jointly estimate η and λ, different assumptions are made about the parameters a, σ 2

83x andλ in (31). Note that both causal and non-causal algorithms assume knowledge of the correlation a between pixels. Due to the tuning parameters β C and β NC , no assumption is made about σ 2

84x . In practice, algorithm performance was found to not depend heavily on ideal choices of a, β C , or β NC , as we will show in Section V-G, Figures 10 and 11. While our causal algorithms do require knowledge of the mean beam currentλ, the non-causal algorithms estimateλ in addition to λ and η. When causal operation is warranted but the mean beam current is not known, the non-causal algorithm could be run periodically to provideλ.

1) Data Generation:

85We evaluate the multi-pixel algorithms proposed in this section on synthetic HIM and SEM data. Measurements for these two examples were generated using existing micrographs as ground truth images. 2 Compared to SEM, HIM has higher SE yield and can thus produce highquality images at lower doses. To be representative of HIM, we scale the ground truth to η ∈ [2,8] and use mean dosē λ = 20 [23]; for SEM, we use η ∈ [0.1, 1] andλ = 200 [24]. Beam current time series were produced according to the Gaussian first-order autoregressive model in (31). In both test examples, the correlation coefficient for neighboring pixels in a row is a = 0.999 and the coefficient of variation is σ λ /λ = 0.2. Data is generated pseudorandomly at each pixel following the separable joint PMF in (8), where in each case the nominal sub-acquisition doses is 0.1 (n = 200 for HIM and n = 2000 for SEM).

862) Methods: We compare nine methods for estimating η, some of which also generate an estimate of λ:

87• baseline: η baseline is the pixel-wise evaluation of (3) independently at each pixel using the nominal doseλ. • frequency-domain filter (FDF) [5]: Compute the 2D discrete Fourier transform of η baseline . Let q and u be the horizontal and vertical frequency indexes. Coefficients that satisfy both |q| ≤ w and |u| > h are nulled before applying the inverse transform to yield η FT . • DT|λ: η DT|λ is the pixel-wise ML estimate (9) computed with true beam current λ (provided by an oracle). • DT|λ: η DT|λ is the pixel-wise ML estimate (9) computed with nominal beam currentλ. • linear filter: ( η LF , λ LF ) is the joint estimate computed with the method of [25]. • causal: ( η C , λ C ) is the joint estimate from (35). • non-causal: ( η NC , λ NC ) is the joint estimate from (44).

88(This also produces an estimate of the mean beam current λ.) • causal with TV: ( η CTV , λ CTV ) is the joint estimate from (36). • non-causal with TV: ( η NCTV , λ NCTV ) is the joint estimate from (45). (This also produces an estimate of the mean beam currentλ.) Parameters in the frequency-domain filter, linear filter, and methods from Sections V-B to V-E are tuned to minimize RMSE.

893) Results: Figures 6 and 7 show estimated micrographs η using all the methods on each setting. The inset images show error η − η for portions of the micrographs. In both HIM and SEM examples, stripe artifacts are more prominent in η baseline (Figures 6f and 7f) than in the TR reconstruction η DT|λ (Figures 6g and 7g), although they both assume the same knowledge of λ. In the higher η FIB example, η DT|λ even outperforms η FT , the frequency-domain filtered version of η baseline . This effect may be attributed to the natural robustness of TR methods to unknown beam current [15], [16]. Our oracle TR method η DT|λ (Figures 6b and 7b), which assumes Figure 6 and the SEM example in Figure 7. For the frequency-domain filtering method, filter parameters were w = 1 and h = 5 for the HIM example and w = 1 and h = 1 for the SEM example. Our new joint estimation methods without TV regularization approach the performance of oracle estimator η DT|λ . When TV regularization is added, our causal and non-causal estimators outperform η DT|λ .

90perfect knowledge of the true dose at every pixel, exhibits no discernible striping. Without TV regularization, our causal joint estimates η C (Figures 6d and 7d) and non-causal joint estimates η NC (Figures 6e and 7e) exhibit lower RMSE, closer to our benchmark η DT|λ , with slightly more improvement seen with the non-causal version. Given TV regularization on η, both algorithms meet or exceed the performance of η DT|λ , which does not employ any spatial regularization. In fact, in both examples, η NCTV (Figures 6j and 7j) outperforms the benchmark η DT|λ approximately by a factor of 2. Table I summarizes the RMSE results of all η estimation methods for both HIM and SEM examples. Beam current estimates λ C and λ NC are shown in Figure 8 for the HIM example and in Figure 9 for the SEM example. Both estimates closely match the true beam current. The causal estimate λ C has higher RMSE with a slight lag and more higher frequency noise. All of our joint estimators outperform the initial joint estimator η LF introduced in [25]. The RMSE results of different λ estimates, for both HIM and SEM examples, are summarized in Table I.

91As previously noted, all of our joint reconstruction algorithms include a tuning parameter (β C or β NC to control regularization on λ) and assume knowledge of correlation a. In Figure 10, we show that performance of our causal estimation algorithm is not heavily dependent on ideal choices of either of these two parameters. Using the data from Figure 6, Figures 10a and 10b form the joint estimate ( η C , λ C ) for different values of β C , keeping the correlation fixed at a = 0.999. Figures 10c and 10d fix β C = 10 and vary the assumed value of a. We note that different values of β C and a have a negligible effect on the RMSE of η C . Although the value of β C and a does effect the RMSE of λ C , the RMSE remains relatively small across a wide range of values, with larger values of β C and a (i.e., promoting more smoothing of λ) as safer choices when the true parameter value is not known. In Figure 11, we show similar trends for our noncausal algorithms.

VI. EXPLOITING A DISCRETE MARKOV BEAM CURRENT

92In this section, we demonstrate joint estimation when beam current flips back and forth between two values, as a simple model for a neon beam microscope [6]. Although the neon beam microscope could provide a number of functional advantages over the helium ion microscope [7], it has been less widely adopted because of difficulties maintaining a stable beam current.

A. A Discrete Markov Chain Model for Beam Current

93The beam current in a neon beam microscope may be modeled using a two-state hidden Markov model (HMM). We assume that the nature of the beam current variation has been well characterized so that the states s ∈ {s 1 , s 2 } and transition probabilities q(s, r) = P(λ k+1 = s | λ k = r) are known. The mean beam current under this model is denotedλ. Based on this model, we propose causal and non-causal joint estimation algorithms for η and λ.

B. Causal Estimation

94Algorithm 1 describes our causal joint estimator η HMM C , λ HMM C . At each pixel, η DT|λ k (λ =λ) is used to form an initial estimate of η k . As shown in [15] and [16], as well as in our own results in Section V-G, η DT|λ is actually quite close to the true η value, even when the beam current is imperfectly known. Thus, we initially assume that η k ≈ η DT|λ k (λ =λ) and use the Forward algorithm [26], [27], as described in Algorithm 2, to compute the belief state F k (s) of λ k given the measurements from that pixel and all previous pixels:

95We pick λ HMM C k to be the state that maximizes F k (s). The estimate η HMM C k is produced by recomputing η DT|λ k , using λ = λ HMM C k (Algorithm 1, Line 4). Note that Algorithm 2 operates recursively, requiring knowledge of F k−1 (s) to compute F k (s). At the first pixel,

96where P Y k (· ; ·, ·) is the PMF in (8) and we have assumed that η k ≈ η DT|λ k (λ =λ). It follows from the law of total probability that

97where P(λ 1 = s) is the stationary distribution of the hidden Markov chain. Applying Bayes's theorem, we find the initial belief state: compute F k (s) using Algorithm 2 with η k = η

C. Non-Causal Estimation

98Our non-causal joint estimate λ HMM NC k selects the state with the greatest probability given the entire measurement sequence:

99It uses the Forward-backward algorithm [26], [27] to compute a quantity proportional to P(λ k = s | y) for each of the two possible states. Note that P(λ k = s | y) may be factored as follows:

100P(λ k = s | y) ∝ P(λ k = s, y)

101where (a) follows from splitting the components of y; (b) from the multiplication rule; and (c) from the conditional independence of P y k+1:p | λ k = s from y 1:k . The final two factors include a term readily available from the forward pass of our our causal algorithm: P λ k = s, y 1:k ∝ F k (s), and a second term computed in a new recursive backward pass over the data. This new term, B k (s) := P y k+1:p | λ k = s , may be computed using the following recursive formula moving backwards over the data sequence:

102B k (s) = s ∈s B k+1 (s )P Y k y k+1 | λ k+1 = s q(s, s ).

103As stipulated by the Forward-backward algorithm, the last pixel is initialized with B n (s) = 1 ∀s ∈ s. Just as in the causal algorithm described in Algorithm 1, our non-causal joint estimation algorithm forms an initial estimate of η k at each Algorithm 2 Forward Algorithm for computing belief state F k (s) at kth pixel given η k Input: Y k = y k ∈ R n , η k , s, q(s, r) ∀ s, r ∈ s , F k−1 (s)∀ s ∈ s 1: Compute P λ k = s | all past measurements) = s ∈s q(s , s)F k−1 (s ) ∀ s ∈ s 2: Compute P Y k y k | η k , λ k = s ∀ s ∈ s 3: P Y k = y k | all past measurements = s∈s P Y k y k | η k , λ k = s P λ k = s | all past measurements) 4: F k (s) = P Y k y k | η k , λ k = s P λ k = s | all past measurements /P Y k = y k | all past measurements 5: return F k (s) (g) Ground truth λ with estimates λ HMM C , and λ HMM NC at a subset of pixels; λ HMM C has 0.89% error rate and λ HMM NC has 0.21% error rate. To improve legibility, λ HMM NC is offset by 0.2, and λ HMM C is offset by 0.4.

D. Simulated Microscopy Results

104Synthetic measurements were generated using an existing micrograph as the ground truth image. The beam current time series was produced according to a two-state Markov chain model with λ ∈ {20, 30} using transition probabilities P(λ t = 20 | λ t−1 = 30) = 0.003, and P(λ t = 30 | λ t−1 = 20) = 0.002, resulting inλ = 24. At each pixel, the dwell time was divided into n = 300 sub-acquisitions.

105In Figure 12, we compare the RMSE results for the following methods:

106• baseline: η baseline is the pixel-wise evaluation of (3) independently at each pixel using assumed doseλ. • DT|λ: η DT|λ is the pixel-wise ML estimate (9) computed with true beam current λ (provided by an oracle). • DT|λ: η DT|λ is the pixel-wise ML estimate (9) computed using assumed doseλ =λ.

107• HMM causal: ( η HMM C , λ HMM C ), computed using Algorithm 2. • HMM non-causal: ( η HMM NC , λ HMM NC ), computed according to Section VI-C. The baseline estimate η baseline in Figure 12d exhibits prominent stripe artifacts. Figure 12e shows η DT|λ with stripe artifacts greatly reduced but still visible. Figures 12c and 12f show results for our causal and non-causal HMM joint estimation algorithms. In both cases, RMSE is further reduced over η DT|λ , approaching the performance of η DT|λ in Figure 12b, with η HMM NC slightly outperforming η HMM C .

108In Figure 12g, we plot the true beam current time series λ with estimates λ HMM C and λ HMM NC . Note that both estimates match the true beam current at the vast majority of pixels, with an error percentage of 0.89% for the causal algorithm and 0.21% for the non-causal algorithm. Although performance is very good with only the causal forward pass, approximately four times fewer errors occur in the λ estimate when all data is considered.

VII. CONCLUSION

109In this work, we explore the estimation of two properties at each pixel of a particle beam micrograph: mean SE yield η and beam current λ. Using the Cramér-Rao bound at a single pixel, we show the feasibility of joint estimation given time-resolved measurements. Specifically, we show that at high η, joint estimation is only slightly more challenging than estimating η when λ is given. We demonstrate that when the dose is sufficiently high, joint estimation is possible at even a single pixel. To perform joint estimation at moderate doses, we exploit the fact that beam current does not vary arbitrarily. The algorithms of Section V are motivated by electron and helium ion beams, where current is smoothly varying. Algorithms in Section VI are designed for neon beam microscopes, where beam current is known to jump among known values. Through tests performed on synthetic microscopy data, we show that our η estimators outperform existing methods and our novel λ estimators closely match the ground truth. This innovation not only prevents artifacts that arise when the beam current is not perfectly known, but also provides the operator with new and useful information that could transform microscopy.

110Knowledge of the beam current could save costly instrument maintenance time, improve micrographs and milling outcomes, and even further the proliferation of powerful new instruments like the neon beam microscope, where maintaining a stable beam current is a key challenge.

APPENDIX

111In gradient algorithms, we require methods to evaluate or approximate derivatives of the logarithm of the PMF P Y (y ; η, λ) in (1). The y = 0 case is mathematically simple and also important because many sub-acquisitions result in no detected SEs. For y > 0, elegant expressions can be given using Touchard polynomials. With discrete-time data with sufficiently large n, the relevant sub-acquisition dose is small, so we also derive approximations that hold for small λ. y = 0 Case By substitution and simplification, log P Y (0 ; η, λ) = −λ(1 − e −η ).

112The derivatives of this for optimization over λ or η are d dλ −λ(1 − e −η ) = −(1 − e −η ), (50a)

Touchard Polynomials

113The Touchard polynomials are defined by T n (x) = n k=0 S(n, k)x k ,

114where S(n, k) is a Stirling number of the second kind, i.e., the number of partitions of a set of size n into k disjoint nonempty subsets. Stirling numbers of the second kind can be used to write

115where we regard 1/(m − k)! = 0 if k > m [28]. Then

116Now we have

117where (a) follows from term-by-term differentiation; and (b) from (52). It is the derivative of the log that will be useful in what follows:

118which now follows from the chain rule and substitution of (52) and (53). From (51), a good approximation to T n (x) for small x can be obtained by truncating to k ∈ {0, 1, 2}. While Stirling numbers of the second kind S(y, k) are not easy to work with in general, for any y ≥ 1, we have S(y, 0) = 0, S(y, 1) = 1, and S(y, 2) = 2 y−1 − 1. Therefore, for any y ≥ 1,

119for small x.

120Derivatives of log likelihood with respect to λ

121We have

122where (a) follows from the chain rule and (54). It follows that

123Substituting the second-order approximation (55) in (56) and (57) gives the approximations d dλ ∼ ≈ −1 + 1 λ · 1 + (2 y − 1)λe −η 1 + (2 y−1 − 1)λe −η ,

124Derivatives of log likelihood with respect to η

125We have

126where (a) follows from the chain rule and (54). It follows that

127Substituting the second-order approximation (55) in (59) and (60) gives the approximations

참고문헌 30건

  1. An inequality and associated maximization technique in statistical estimation of probabilistic functions of a Markov process 1972
  2. The Prospects of a Subnanometer Focused Neon Ion Beam Scanning · Wiley · 2011 10.1002/sca.20268
  3. An Introduction to the Helium Ion Microscope AIP conference proceedings · American Institute of Physics · 2007 10.1063/1.2799423
  4. Detective quantum efficiency of electron area detectors in electron microscopy Ultramicroscopy · Elsevier BV · 2009 10.1016/j.ultramic.2009.04.002
  5. Electron‐count imaging in SEM Scanning · Wiley · 1991 10.1002/sca.4950130203
  6. Applications of direct detection device in transmission electron microscopy Journal of Structural Biology · Elsevier BV · 2007 10.1016/j.jsb.2007.10.007
  7. Observation of synchronized atomic motions in the field ion microscope Ultramicroscopy · Elsevier BV · 2012 10.1016/j.ultramic.2012.11.005
  8. Helium ion microscope: A new tool for nanoscale microscopy and metrology Journal of Vacuum Science & Technology B Microelectronics and Nanometer Structures Processing Measurement and Phenomena · American Institute of Physics · 2006 10.1116/1.2357967
  9. A Maximization Technique Occurring in the Statistical Analysis of Probabilistic Functions of Markov Chains The Annals of Mathematical Statistics · Institute of Mathematical Statistics · 1970 10.1214/aoms/1177697196
  10. The Neon Gas Field Ion Source - Stability and Lifetime Microscopy and Microanalysis · Oxford University Press · 2010 10.1017/s1431927610061477
  11. Effect of shot noise and secondary emission noise in scanning electron microscope images Scanning · Wiley · 2004 10.1002/sca.4950260106
  12. Fast Gradient-Based Algorithms for Constrained Total Variation Image Denoising and Deblurring Problems IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2009 10.1109/tip.2009.2028250
  13. A new examination of secondary electron yield data Surface and Interface Analysis · Wiley · 2005 10.1002/sia.2107
  14. Real-Time Scanning Charged-Particle Microscope Image Composition with Correction of Drift Microscopy and Microanalysis · Oxford University Press · 2010 10.1017/s1431927610094250
  15. Removing Beam Current Artifacts in Helium Ion Microscopy: A Comparison of Image Processing Techniques Microscopy and Microanalysis · Oxford University Press · 2016 10.1017/s1431927616011673
  16. The Helium Ion Microscope Nanoscience and technology · Springer Nature · 2016 10.1007/978-3-319-41990-9_1
  17. An Introduction to the Helium Ion Microscope Microscopy Today · Oxford University Press · 2006 10.1017/s1551929500050240
  18. A fast curtain‐removal method for 3D FIB‐SEM images of heterogeneous minerals Journal of Microscopy · Wiley · 2018 10.1111/jmi.12723
  19. Observing the evolution of regular nanostructured indium phosphide after gas cluster ion beam etching Applied Surface Science · Elsevier BV · 2018 10.1016/j.apsusc.2018.07.195
  20. Removing Stripes, Scratches, and Curtaining with Nonrecoverable Compressed Sensing Microscopy and Microanalysis · Oxford University Press · 2019 101017s1431927619000254
  21. Strip the Stripes: Artifact Detection and Removal for Scanning Electron Microscopy Imaging ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) · 2019 10.1109/icassp.2019.8683119
  22. Three-dimensional structural comparison of tantalum glancing angle deposition thin films by FIB-SEM Journal of sensors and sensor systems · Copernicus Publications · 2019 10.5194/jsss-8-305-2019
  23. Source shot noise mitigation in focused ion beam microscopy by time-resolved measurement Ultramicroscopy · Elsevier BV · 2020 10.1016/j.ultramic.2020.112948
  24. Removing Stripes, Scratches, and Curtaining with Nonrecoverable Compressed Sensing Microscopy and Microanalysis · Oxford University Press · 2019 10.1017/s1431927619000254
  25. Image-histogram-based secondary electron counting to evaluate detective quantum efficiency in SEM Ultramicroscopy · Elsevier BV · 2021 10.1016/j.ultramic.2021.113238
  26. Time-Resolved Focused Ion Beam Microscopy: Modeling, Estimation Methods, and Analyses IEEE Transactions on Computational Imaging · Institute of Electrical and Electronics Engineers · 2021 10.1109/tci.2021.3076887
  27. Mitigating Current Variation in Particle Beam Microscopy arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2106.04686
  28. Prevention Beats Removal: Avoiding Stripe Artifacts from Current Variation in Particle Beam Microscopy Through Time-Resolved Sensing Microscopy and Microanalysis · Oxford University Press · 2021 10.1017/s1431927621002026
  29. Robustness of Time-Resolved Measurement to Unknown and Variable Beam Current in Particle Beam Microscopy 2022 IEEE International Conference on Image Processing (ICIP) · 2021 10.1109/icip42928.2021.9506340
  30. Secondary electron count imaging in SEM Ultramicroscopy · Elsevier BV · 2022 10.1016/j.ultramic.2022.113662