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

InFluence: An Open-Source Python Package to Model Images Captured with Direct Electron Detectors

간접 관련 화학·수지 · (21) 에폭시수지 (15) 디스플레이 패널재료(16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Gearóid Mangan — Physics Department, Faculty of Science and Engineering, University of Limerick , Limerick V94 T9PX , Ireland|||Department of Chemistry, University College London , 20 Gordon Street, London WC1H 0AJ , UK
  2. Grigore Moldovan — Point Electronic Gmbh , Erich-Neuss-Weg 15, Halle (Saale) D-06120 , Germany
  3. Andrew Stewart — Department of Chemistry, University College London , 20 Gordon Street, London WC1H 0AJ , UK
DOI
10.1093/micmic/ozad064
저널
Microscopy and Microanalysis
발행년도
2023
발행기관
Oxford University Press
피인용수
2
라이선스
cc-by-nc
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1093/micmic/ozad064
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W4384338633

평가 내용

관련도
간접 관련
사업분야
화학·수지 · (21) 에폭시수지
부 분야
(15) 디스플레이 패널재료, (16) CPI(투명 폴리이미드)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
electron microscopy, Monte Carlo simulation, image simulation, microstructural information, direct electron detectors
판단 근거
본 논문은 전자현미경(EM) 이미지를 정밀하게 시뮬레이션하는 Python 패키지 개발에 관한 것으로, 직접적인 제품 연구는 아니나 고분자 및 나노 소재의 미세 구조 분석을 위한 시뮬레이션 방법론을 다룹니다.
R&D 활용 포인트
에폭시, CPI, 아라미드 등 고분자 소재의 나노 구조 및 결정성 분석 시, 전자현미경 데이터의 신뢰성을 높이는 시뮬레이션 모델링 기법으로 활용 가능합니다.
평가 입력
섹션 본문 48,622자 중 30,032자 발췌

초록

The high detection efficiencies of direct electron detectors facilitate the routine collection of low fluence electron micrographs and diffraction patterns. Low dose and low fluence electron microscopy experiments are the only practical way to acquire useful data from beam sensitive pharmaceutical and biological materials. Appropriate modeling of low fluence images acquired using direct electron detectors is, therefore, paramount for quantitative analysis of the experimental images. We have developed a new open-source Python package to accurately model any single layer direct electron detector for low and high fluence imaging conditions, including a means to validate against experimental data through computation of modulation transfer function and detective quantum efficiency.

본문 49,423자

본문 펼치기
The high detection efficiencies of direct electron detectors facilitate the routine collection of low fluence electron micrographs and diffraction patterns.Low dose and low fluence electron microscopy experiments are the only practical way to acquire useful data from beam sensitive pharmaceutical and biological materials.Appropriate modeling of low fluence images acquired using direct electron detectors is, therefore, paramount for quantitative analysis of the experimental images.We have developed a new open-source Python package to accurately model any single layer direct electron detector for low and high fluence imaging conditions, including a means to validate against experimental data through computation of modulation transfer function and detective quantum efficiency. Introduction Electron microscopes have proven to be a powerful tool for investigating the internal symmetry and morphologies of nanosized matter.In the last few decades, interest has turned to innovating low dose and low fluence conventional electron microscopy (EM) and cryo-EM; methods that are employed to impede the structural changes associated with high beam fluences or doses (Carlson & Evans, 2012;Fujiyoshi, 2013;Egerton, 2019;Chen et al., 2020) (see Appendix for a discussion on terminology of dose, flux and fluence).An unfortunate ramification of using low fluences is reduced signal-to-noise ratios (SNRs) in the electron micrographs, complicating image interpretation, and measurement of structural features.Under low fluence conditions, high-angle diffraction peaks can be below detection limits because the scattering cross section decreases as a function of scattering angle.Modern direct detectors are one of the many innovations used to combat the challenges of low dose and low fluence EM experiments (Chen et al., 2020).In particular, these new detectors are more efficient at detecting incident electrons for a number of reasons.Firstly, they directly detect incident particles by measuring the charges generated in each pixel by the incident radiation.Direct detection avoids some of the signal-loss mechanisms that are associated with indirect detection (Fernandez-Perez et al., 2021).Secondly, they can detect single electron events by choosing an appropriate detection threshold, thereby eliminating readout noise (Paterson et al., 2020).Higher efficiencies lower the information dose and fluence limits, below which useful or desired information cannot be obtained from the image or pattern. Introduction Direct electron detectors can be distinguished into two groups: hybrid pixel detectors (HPDs), such as the Medipix detectors (Ballabriga et al., 2018), and monolithic active pixel sensors (MAPS), such as the Falcon 3 and 4 (Guo et al., 2020) and the Gatan K2 (Booth, 2012) and K3 (Feathers et al., 2021;Sun et al., 2021).Generally speaking, MAPS detectors typically have arrays of pixels that are smaller and more numerous than HPD arrays but are limited by a comparatively poor dynamic range when operating in counting mode.Counting mode is an operating mode in which the frame rate increases to better count individual electron impingements.Accurate detection of individual electron impingements is subject to frame rate and coincidence loss imposed by significant readout speeds.By extension, coincidence loss reduces the dynamic range of the detector.Counting mode differs from the conventional linear mode in which energy deposition over the total exposure time is integrated, which makes it impossible to know the exact number of electrons impinging on a pixel during that exposure time.The differences of MAPS detectors and HPDs ensure that each one has distinct applications.For example, the smaller pixels and large field of view of MAPS detectors position them as particularly well suited for single particle cryo-EM imaging (Li et al., 2013;Fan et al., 2019;Nakane et al., 2020), while their relatively poor dynamic range in counting mode limits their usefulness in high fluence diffraction experiments because coincidence loss results in inaccurate intensity measurements of low-resolution diffraction peaks.Note, however, under low fluence conditions, MAPS detectors are desirable in diffraction experiments as counting mode is advantageous in accurately recording weak, highresolution diffraction peaks.Conversely, HPDs are ideal for high fluence diffraction experiments on crystalline matter if the unit cells are sufficiently small to ensure that resolution of diffraction peaks is uncompromised by measurement with their small arrays of large pixels (Clabbers et al., 2017). Introduction In general, direct detectors are capable of recording high intensities and also of reading out at high speeds to minimize the exposure of the specimen to the beam (Paterson et al., 2020).Both of these qualities make them highly suited for advanced electron diffraction experiments, for example, fourdimensional STEM (4DSTEM) experiments (Ophus, 2019) and three-dimensional electron diffraction (3DED) experiments (Gemmi et al., 2019).4DSTEM involves the acquisition of two-dimensional (2D) diffraction patterns from a 2D scan grid; such data sets are valuable because they can be processed in many ways to give different microstructural information.For example, since the intensities of the collected patterns are dependent on the area underneath the illuminating probe, the 4DSTEM data set can be processed to create a map of crystalline orientations or phases.Simultaneously, the 4DSTEM data set can also be used for phase retrieval by application of ptychographic algorithms (Rodenburg, 2008;Ophus, 2019).3DED techniques involve the collection of diffraction patterns as the crystal is rotated or as the beam is deflected; the set of patterns is a sample of the reciprocal lattice that can be related to the direct lattice with sophisticated reconstruction algorithms (Gemmi et al., 2019;Gruene & Mugnaioli, 2021). Introduction With the wide application of direct detectors in the collection of higher quality data, it is pertinent that image simulations are adapted to ensure an appropriate comparison to results from experiments in which these detectors are employed.To elaborate, conventionally, the image contrast in experimental TEM data is often three to five times less than that predicted by theoretical models for both crystalline and amorphous materials over a wide range of spatial frequencies.Researchers have made efforts to account for the so-called Stobbs factor in experiment by considering a variety of electron scattering models and how they modify the coherent Bragg peak intensities and the background (Howie, 2004).The considerable improvements in these models and their implementations have not been enough to close the gap between experiment and simulation.However, Thust (2009) showed that the additional inclusion of empirical frequency-transfer properties of the detector, through the modulation transfer function (MTF), in simulations led to near perfect consistency between simulation and experiment.Moreover, Jia et al. (2013Jia et al. ( , 2014) ) show quantitative fits of simulations to experiments by inclusion of the measured MTF.It must be noted that images simulated using empirical MTF data are limited to comparison with experimental images taken under similar conditions as the MTF data. Introduction In the subsequent sections, we elaborate on the limitations of applying empirical MTF data to simulation and discuss InFluence, a new software package in Python that utilizes the Monte Carlo single scattering model outlined in Joy (1995) to simulate physical experiments in which S/TEM images of arbitrary exposure conditions are obtained from any single layer gapless direct detector operating in single pixel mode (SPM) (the details of this operating mode are discussed later in the Medipix3 Specifications section).The Monte Carlo single scattering model accurately captures the propagation of the electron in the sensor layer as it deposits energy for charge production.Calculation of each electron trajectory is handled separately, and by extension, imaging at low fluences can be accurately simulated.InFluence does not model the geometry of the specimen; InFluence is applied to an image simulated by a multislice (for an in depth account of the formulation of the multislice method, see Earl J. Kirkland's book Advanced Computing in Electron Microscopy, specifically chapter 6 (Kirkland, 2020)) package, such as abTEM (Madsen & Susi, 2021) or Dr. Probe (Barthel, 2018), completing the simulation workflow by adding the effects of measurement by a simulated detector.This is different to the usage of a software such as CASINO (Drouin et al., 2007), which can model samples and detector geometries with vertical and horizontal planes, because CASINO cannot be applied to an image produced by a multislice package in the same way. Introduction InFluence is open and freely available to use, fitting into the growing ecosystem of open free simulation and data processing packages for S/TEM, which includes abTEM, Pyxem (Cautaerts et al., 2021), Atomap (Nord et al., 2017), HyperSpy (de la Pena et al., 2021), TEMUL Toolkit (O'Connell et al., 2022), Prismatic (Ophus, 2017;Pryor et al., 2017;Rangel DaCosta et al., 2021), LiberTEM (Clausen et al., 2021), and AtomAI (Ziatdinov et al., 2022). Medipix3 Specifications We chose to model the Medipix3 HPD because the technology underpinning the detector is well documented; however, parameters within the software can be adjusted by users to simulate other HPDs.This model of the Medipix3 is composed of a 1-μm-thick aluminum film that sits on top of a 300-μm-thick silicon layer that is bump bonded to an application-specific integrated circuit (ASIC), which is the pixel array and readout circuitry.The pixels are modeled as squares with a side of length 55 μm.There are 256 × 256 pixels on a detector array (Ballabriga et al., 2011;Paterson et al., 2020).For the purposes of the simulation, the origin of a pixel is at its center.A defined origin is important because the Monte Carlo simulations, discussed elsewhere, are calculated for each pixel in the detector array and the origin is a reference point used to check whether the electron has scattered into a neighboring pixel.The choice of origin for each pixel is arbitrary but needs to be consistent.The Medipix3 uses hybrid particle counting technology, schematic shown in Figure 1: by coating the silicon with an aluminum film, it is possible to apply a biasing voltage across the detector.As the electrons scatter in the detector, they deposit energy that is used in electron-hole pair production.For silicon, the energy per pair is assumed to be 3.6 eV.The electric field generated by the applied bias causes the holes to move toward the ASIC and the electrons to move toward the aluminum film.The holes induce a signal at the analog part of the ASIC pixel.Additionally, the aluminum film also serves as a shield against visible light and soft X-rays. Medipix3 Specifications In SPM, an incident electron is detected in a pixel if the signal measured in that pixel exceeds a chosen threshold, T counting , (Paterson et al., 2020).Electrons have sufficient energy to travel laterally into neighboring pixels and deposit energy to generate charges in those pixels, leading to the possibility that the ASIC counts the incident electron more than once in the incident pixel and/or neighboring pixels if the threshold value has been set too low.It is also possible that the ASIC does not count the incident electron at all if the threshold value has been set too high.The ability to choose the counting threshold enables the user to maximize either the MTF or the DQE because the number of incident electrons counted and their lateral spread are directly related to the DQE and MTF (Mir et al., 2017;Paterson et al., 2020).On a final note with respect to thresholding, there is a lower limit to the choice a user can make for the threshold: it should be set above the chip's thermal electronic noise floor, which is just under 5 keV for the Medipix3 (Mir et al., 2017). Medipix3 Specifications The electron loses energy in the aluminum film.The aluminum film can also be modeled as a structureless continuum (see the Assumptions of the Single Scattering Model section) and placed on top of the silicon layer in a Monte Carlo simulation.However, to reduce code complexity, we chose to approximate the average energy lost in the aluminum film by performing a separate calculation of the electron scattering in the aluminum film that is then incorporated into the overall calculations within our software InFluence.We subtract the average loss from the chosen initial electron energy of the incident beam.The implication of this is that we have removed the noise associated with the natural variance of the electron energy as a result of scattering within the aluminum layer.According to Equation (2), the mean free path decreases as a function of incident energy, implying that the average time an electron spends in the aluminum layer increases with decreasing incident energy.In addition, Equation (21) shows that low-energy electrons lose more energy per distance travelled.Collectively, this means that the energy lost to the aluminum layer becomes more significant as the incident energy of the electron decreases.In the case of 80-and 200-keV electrons, making this compromise introduces negligible error.Our simulations revealed that the average energy loss is ∼1.1 keV in the aluminum layer for an 80-keV electron beam and ∼0.8 keV for a 200-keV electron beam. Medipix3 Specifications The ASIC takes a finite time to process each pulse induced by an incident electron.This leads to an underestimation of the signal if another electron induces a pulse during this processing time.The model presented in this paper assumes that no electrons are incident on a pixel during this processing time (Fröjdh et al., 2015).In fact, the model in this paper assumes that only one electron travels through the column and the detector until counting is completed.This is a valid assumption for low flux experiments.Consider the case in which the electrons are travelling through a TEM column of length d at speed v. Since an electron takes d v to travel through the column, there is a neglibilible chance of two electrons travelling through the column simultaneously if F × d v ≪ 1, where F is the flux (e/Å 2 s). Single Scattering Model Monte Carlo models can be used to simulate electron scattering in a material, where the material is continuous and structureless.Here, we offer a summarized version of the elastic single scattering models given in Joy (1995) and Lowney et al. (1994) for the convenience of the reader.We have not made changes to the models.The single scattering model is a method used to generate a distribution of possible scattering trajectories for a particle incident on some materials.In the context of this paper, the particle in question is an electron.The experimental geometry follows a right-handed Cartesian coordinate system, with the positive z-axis pointing into the material, as shown in Figure 2. Single Scattering Model The electron undergoes a scattering event and travels a distance s from point P n to point P n + 1 .The distance travelled is given by Single Scattering Model where λ is the mean free path of the incident electron and RND is a random number selected from a distribution with a range from 0.000001 to 0.999999.The mean free path is given by Single Scattering Model where N A is Avogadro's number, ρ is the density of the target (g/cm 3 ), and A is the atomic weight of the target (g/mole).σ M (cm 2 ) is the Mott scattering cross section parametrized by Browning (1991) and is written as Single Scattering Model where E is the electron energy (keV) and Z is the atomic number and u defined as Single Scattering Model The azimuthal scattering angle ψ of the electron can be any number within the range 0° and 360° and is defined by Single Scattering Model The polar scattering angle ϕ of the electron can be any number within the range 0° and 180° and is defined by the relationship The aluminum layer sits on top of the silicon substrate enabling the application of a biasing voltage between the particle counting pixel electronics contained in the ASIC and the aluminum layer.The particle is incident on the aluminum layer and then gets scattered in the aluminum and silicon substrates.After each scattering event, the incident particle loses energy, which is used in electron-hole pair production.The generated electrons (red circles) flow towards the aluminum layer at the positive side of the bias and the holes (black circles) flow towards the pixel electronics at the negative side of the bias.Note that one of the particles is incident near the pixel boundary (dashed vertical line) and is subsequently scattered into the neighboring pixel; the electron-hole pairs it produces by energy deposition are counted by the neighboring pixel's electronics, which leads to image blurring. Single Scattering Model 1382 Microscopy and Microanalysis, 2023, Vol. 29, No. 4 where ξ is a parameter that accounts for nuclear screening (Joy, 1995). Single Scattering Model RND ψ and RND ϕ are random numbers chosen from a uniform distribution with values in the range 0 and 1.The Mott scattering cross section more accurately describes the elastic scattering of the electron at low beam energies (<20 keV) and for nuclei with higher atomic numbers (Z > 30) (Czyżewski et al., 1990).The angular distribution for this Mott model is square and is approximated by modifying the Rutherford polar scattering angle (Joy, 1995). Single Scattering Model In the model presented in this paper, the electron scattering begins after the electron has already penetrated the detector, meaning that the initial penetration depth z is determined using Equation (1).The x and y coordinates are randomly selected from a uniform distribution with a user-defined minimum and maximum: the minimum is −1 times the maximum.For the simulated Medipix3 model, the user should choose half the pixel (which is modeled as a square) side length as maximum since the origin of the simulation is at the center of the detector pixel.Hence, the following equations define the initial positions: Single Scattering Model where s is the scattering step length, d is the user-defined maximum, and RND x and RND y are random numbers chosen from a uniform distribution with values in the range −1 and 1.These equations can be easily adjusted to accommodate any arbitrary definition of the origin and pixel (or material) dimensions.For example, for a rectangular pixel, the d parameter would be changed to reflect the difference between the maximums in the x and y directions. Single Scattering Model The position of the electron after a scattering event is calculated by Single Scattering Model where x n−1 , y n−1 , and z n−1 are the components of the position vector along the x, y, and z axes, respectively, and c a , c b , and c c are the direction cosines of the electron position vector after scattering has occurred.Illustrated in Figure 2, the new direction cosines are related to the old direction cosines c x , c y , and c z through the polar, ϕ, and azimuthal, ψ, scattering angles: Single Scattering Model where Single Scattering Model The full derivation and further explanation of these equations can be found in Lowney et al. (1994); however, we make note of some important aspects of the equations and derivation: the sum of each old direction cosine squared must equal the sum of each new direction cosine squared, which must both equal to 1. Alternatively stated, the following equation must hold true: Single Scattering Model The coordinate system is rotated after a scattering event occurs. Single Scattering Model For consistency and for Equation (20) to be satisfied, the new direction cosines representing the new position of the electron must be represented in the original coordinate system.This is achieved by two rotations, one about the x-axis and the other about the z-axis. Single Scattering Model The electrons lose energy through their Coulomb interactions with the positive nuclei in the scattering material.The electrons also lose energy discretely due to inelastic scattering events.We can approximate the total electron energy change per distance travelled by the modified Bethe equation, which is more appropriate than the original form at lower beam energies, i.e., when the electron energy E (keV) is less than or equal to the mean ionization energy E ionization (keV) (Joy, 1995): where A is the atomic weight (g/mole).J is measured experimentally for different materials (Berger et al., 1984) but can be estimated using the equation (National Research Council, 1964): Single Scattering Model With all the necessary equations defined, we now describe how an electron propagates through a material.The user defines the properties of the scattering material and the energy of the electron.The initial coordinates are calculated using Equations ( 8)-( 10).The electron then scatters to a new position, whose coordinates are calculated using Equations ( 11)-( 13).The energy that the electron loses is calculated using Equation ( 21).This process is repeated until the energy of the electron falls below a user-defined threshold at which point the electron is assumed to have insufficient energy to move through the material or if the electron exits the material by backscattering or by transmission.Our application of this model to image simulation is discussed later. Assumptions of the Single Scattering Model The spatial distribution of the electrons is dominantly determined by elastic collisions (Joy, 1995).Hence, discrete inelastic scattering events are not directly modeled; instead, the energy is continuously lost to the surrounding material.Furthermore, the model assumes that the energy losses in the simulated specimen are negligible compared to the total energy of the electron and the energy losses in the detector.The model assumes that energy lost to the detector is used for electron-hole pair generation and ignores other types of inelastic scattering processes.In general, neglect of these phenomena adds some uncertainty in the true noise of simulation.However, contributions from secondary electron generation, for instance, are minor and can be ignored for the purposes of contrast modulation.The Medipix detectors (which are discussed in the Medipix3 Specifications section) are composed of crystalline matter; however, the single scattering model assumes that the detector is continuous and structureless.This assumption holds when the step length is larger than the crystal lattice parameters, because the step length defines which features or effects are resolved.In effect, phenomena that arise due to crystallinity, such as electron channeling and diffraction, are not considered.We expect the structureless model to be sufficient for this study as the most important outcome of the Monte Carlo simulation is determining the lateral spread of the electrons in the detector. Methodologies The following subsections describe our methods for generating the data.In summary, to simulate an image with a use-specified finite fluence and the contrast modulation due to the electron scattering within a detector, the user should first generate an image from an image simulation package, such as Dr. Probe (Barthel, 2018), MULTEM (Lobato & Van Dyck, 2015), Prismatic (Ophus, 2017), or abTEM (Madsen & Susi, 2021).The pixel intensities of the images simulated from these packages represent probabilities of an electron scattering to that pixel.The intensities are normalized such that their sum is one.This description extends to the slanted edge and flat-field images before simulating finite fluences; therefore, we denote all inputs to InFluence as normalized images.The first, and most simple, task of InFluence is to convert the normalized image to one with a user-specified finite fluence.The second, and final, task is to simulate electron scattering in a detector with user-defined properties. Methodologies The simulated detector is characterized by application of the slanted edge method and the relevant metrics: the MTF, the noise power spread (NPS), and the detective quantum efficiency (DQE).For a detailed description of these methods, see the Detector Characterization section in the appendices.The MTFs and NPSs were obtained with a JavaScript plugin for ImageJ (Schneider et al., 2012).DQEs are computed from the MTFs and NPSs according to Equation ( 27). Methodologies Simulations and analysis were performed on a computer with a Windows 10 operating system, an Intel Core i5 6600K central processing unit (CPU) overclocked to 4.2 GHz, 16 GB of random-access memory and an NVIDIA GeForce GTX 980 Ti graphics processing unit (GPU). InFluence InFluence is a software designed to simulate a modulated image of arbitrary electron fluence.To be clear, a modulated image is a simulated image that takes into account intensity modulation that arises from electron-detector interactions.InFluence will be available on GitHub in conjunction with this publication.The code is written in Python version 3.6.8(van Rossum & Drake, 2009) and makes use of several highly optimized libraries, including NumPy (Oliphant, 2006), math, random, time (Van Rossum, 2018), SciPy (Virtanen et al., 2020), Numba (Lam et al., 2015), and Matplotlib (Hunter, 2007).We have not tested other versions of Python but expect that InFluence should be compatible with most, if not all, future versions with perhaps minor changes to the code.For the convenience of the user, the code is separated into four PY files: InFluence.py,plot_trajectories.py,common_functions.py,and params.py.InFluence.pyuses the single scattering Monte Carlo model outlined in the Theory section to calculate the trajectories of the electrons in a HPD.The model is defined by a set of functions stored in the common_functions.pyfile.Plot_trajectories.py enables the user to also visualize the lateral spread and penetration depth of the electrons.The experimental parameters for both InFluence.pyand plot_trajectories.pycan be adjusted in the params.pyfile. InFluence The code is not limited to the Medipix family; adjustment of the detector material properties enables simulation for any HPD with a single sensor layer and gapless pixels.These material properties are the atomic number, the atomic weight, the material density, the detector thickness, the energy threshold for electron-hole pair generation, and the pixel side length. InFluence For simulating physical experiments, the input image to InFluence is the output from an image simulation software (ISS), such as abTEM, without any MTF file applied.In the The time taken to load the 2000 sample distribution is 43.03 ± 2.90.The time taken for the alternative InFluence to modulate an image does not include the load time of the sample distribution.To simulate how an ASIC detects electrons, InFluence processes the scattering of the electrons in each pixel separately, while counting the number of electron-hole pairs generated in a pixel by the incident electrons as they propagate through the pixel (and perhaps its neighbors); if the energy of the pairs in a single pixel exceeds the threshold, T counting , defined in params.py,an electron is detected in that pixel.InFluence runs until the trajectories of every electron incident on every pixel are calculated.The results in Table 1 show that larger images do equate to significant increases in runtime as iterating over pixels is inefficient.Furthermore, the number of electrons and their energy also contribute significantly to the runtime. InFluence In conjunction with the standard version of InFluence is a version that enables the user to load a precalculated distribution of possible electron trajectories from file instead of calculating the trajectory of each electron in real time.A larger number of samples ensure a higher confidence in the sample distribution but require greater overhead in the loading time of the distribution file.With this in mind, this alternative version of InFluence is faster when the load time is negligible when compared to the time it takes to assign a trajectory to each electron in the simulation.For example, comparing the results in Tables 1 and 2, it is clear that the standard version of InFluence is faster for 50,000 electrons, but slower for 500,000 when taking the time taken to load the sample distribution into account.That being said, the distribution only needs to be loaded a single time when executing InFluence, implying that modulating a set of images in a single run of InFluence can realize additional savings for computational time. InFluence Furthermore, parallel mode with Numba can be enabled for the standard and alternative versions of InFluence.There are no drawbacks to enabling parallel computation for standard InFluence, whereas additional compilation time is needed for the alternative version of InFluence; however, comparison of the results in Tables 2 and 3 shows that this cost can be offset if several images are simulated with a single run of InFluence. InFluence It must be noted that the results in Tables 1-3 are relevant only for the workstation described above and are subject to change depending on the exact computational power of the Application of InFluence on a Simulated Image of an MoS 2 Lattice We use the Python package abTEM to simulate normalized TEM images of a molybdenum disulphide (MoS 2 ) lattice.4i shows that the intensity differences between the unmodulated and modulated images are negative for 80-keV electrons thresholded at 32 keV.The intensities of the modulated image are higher than those of the unmodulated image because the 80-keV electrons are counted multiple times in the same pixel as a result of the counting threshold used here and since 80-keV electrons tend to not scatter into neighboring pixels.Conversely, 200-keV electrons tend to disperse into neighboring pixels; in fact, 200-keV electrons can scatter to ∼4.8 Medipix3 pixels from their point of incidence (see the Evaluating the Implementation of the Single Scattering Model section for more details).Figure 5i shows that counting 200-keV electrons with a 40% threshold results in an underestimation of electron counts and significantly more blurring.Effectively, the impact of modulation on measurements is a reduction in high spatial frequency information, and the magnitude of this reduction becomes more severe as the incident energy increases. Evaluating the Implementation of the Single Scattering Model All calculations were performed with standard InFluence, referred to as just InFluence from here onward. Evaluating the Implementation of the Single Scattering Model The trajectories of the electrons simulated with our implementation of the single scattering model compared well to those in other literature: the authors of (Mir et al., 2017) used the CASINO software package (Drouin et al., 2007) to calculate the lateral spread of 60-and 80-keV electrons in a silicon pixel, showing that 95% of the electrons travel out to ∼25 and 42 μm for 60-and 80-keV electrons, respectively.The histograms in Figures 6 and 7 show that the 5,000 60-and 80-keV electrons simulated using InFluence exhibit a similar lateral spread.Recall from the Medipix3 Specifications section, the Medipix3 sensor layer is 300 μm deep, and the pixels are square with a 55-μm side.Therefore, an electron incident on the center of the pixel is unlikely to scatter into a neighboring pixel; note, though, 60and 80-keV electrons are still likely to scatter into neighboring pixels because electrons can be incident on any part of the pixel.The histogram in Figure 8 shows that a 200-keV electron can travel out to ∼265 μm, which is >4.8 Medipix3 pixels from its point of origin.Depending on the value set for T counting , an electron can be counted multiple times across several pixels.To summarize, with high T counting , the modulation of the image is not very significant or apparent because low-energy electrons tend to not scatter into neighboring pixels if they are incident near the center of the pixel.High-energy electrons can travel through several pixels and can be measured many times or not at all depending on the energy transferred in each pixel and the selected T counting , which, as will be shown in the subsequent section, leads to significant contrast modulation of the input image. Characterization of the Simulated Medipix3 The MTF, NPS and DQE were evaluated in the spatial frequency range from 0 to 0.5, where 0.5 represents the Nyquist frequency.The unmodulated and modulated slanted edge and white noise images are shown in Figures 9 and 10, respectively; the images are simulated with different electron fluences: 10 e/pixel and 100 e/pixel.Each edge is oriented at an angle of 0.1 rad to the x-axis, giving an oversampling factor of ∼10 times the pixel pitch to ensure that the specified eight sampling bins are nonempty.The edges are imaged with 80 keV and with 200-keV electrons that InFluence thresholds at 32 and 80 keV, respectively.Note that the darkening of the edges of the images arises from the scattering of the electrons outside the finite boundary of the detector.These electrons do not contribute to the image and InFluence does not simulate software postprocessing of the image or detector dead area that might remove or account for these artifacts.Note the distribution of intensities from the white noise images before and after modulation shown in Figure 11; the count change after modulation is +40% for the 80-keV electrons and −50% for 200-keV electrons, despite the energy of the electron-hole pairs generated by both electron beams being thresholded at 40% of the incident beam energy.The narrowing of the 200-keV distribution and the reduction in counts after modulation is indicative that a lower threshold is required to improve DQE, to ensure that electrons that spread their energy to too many neighboring pixels are counted. Characterization of the Simulated Medipix3 These slanted edges and white noise images were used to obtain the MTFs, NPSs, and DQEs shown in Figures 12-15.The MTF degrades with increasing electron energy, which we attribute to the stochastic lateral spread of the electrons in the silicon sensor layer.This lateral spread is the reason the edge becomes blurrier with increasing electron energy, as demonstrated in Figures 9c and 9f. Characterization of the Simulated Medipix3 Figure 12 shows that higher electron fluences result in a smoother MTF, since the fluctuations in the intensity profile across the edge are less significant compared to the average electron fluence.This result is unsurprising because the MTF metric is a statistical quantity, thus requiring an adequately large number of electron counts over a suitable exposure time.The stochastic nature of the electron scattering in the sensor layer means that each electron transfers spatial frequency information differently.MTFs generated from an edge imaged under high electron fluence conditions cannot be used to simulate low electron fluence experiments reliably. Characterization of the Simulated Medipix3 Figures 13 and 14 present the NPS corresponding to the MTFs in Figure 12.A perfectly flat power spectrum normalized to 1 is only expected for an ideal white noise process and unlikely to ever be observed in practice.In general, the degree to which the power of noise decreases for higher spatial frequencies is more severe for 200-keV electrons than that for the 80-keV electrons.This is further evidence that the lateral spread of the electrons strongly impacts the measured noise. Characterization of the Simulated Medipix3 We present the simulated DQEs under low and high electron fluence conditions and the ideal DQE according to Equation (32).Since the DQE, MTF, and NPS are related through Equation ( 30), Figure 15 serves to reiterate the points Microscopy and Microanalysis, 2023, Vol. 29, No. 4 made above.That is, each electron exhibits a unique DQE; therefore, DQEs generated from high electron fluence data cannot be used to simulate low electron fluence experiments reliably. Characterization of the Simulated Medipix3 Presented so far are the results for electrons thresholded at 40% of their incident energy.Figure 17 shows that a higher threshold decreases the relative maximum magnitude of the DQE because the energy of the electron-hole pairs generated by the propagating electrons is less likely to exceed the threshold.Careful consideration must be made to maximize the DQE while minimizing the blurring associated with the lateral spread of electrons into neighboring pixels; that is, there is a trade-off between maximizing the DQE and MTF.In the case of low fluence cryo-EM experiments, in which the electron fluence is typically on the order of 10 s e/Å 2 , a high DQE is prioritized over a better MTF to maximize the measured signal.Note, as shown by considering Figures 16 and 17, an increased threshold improves the MTF but not as dramatically as it reduces the DQE. Comparison to Physical Experiments Figure 18 is a plot comparing simulated and experimental MTFs obtained from images recorded with 60-keV electrons thresholded at 5.6, 37.0, and 51.9 keV.We obtained the MTFs from Figure A.3, reproduced from Mir et al. (2017), and multiplied them by sinc(f) for comparison with our 2D MTF trend lines.For all simulations, the average fluence is ∼40,000 electrons per pixel, leading to smoother curves typically obtained in experimental MTFs.The simulated ideal detector compares well with the expected ideal frequency response: the sinc 2 (f) function.The experimental and simulated MTFs obtained with a 5.6-keV threshold are the only trend lines that compare well.The simulated MTFs for 37.0-and 51.9-keV thresholds fall predict weaker frequency responses for higher spatial frequencies than those observed by Mir et al.There are two likely reasons for this: (i) the calibration of the real Medipix3 detector could mean that the thresholds used in experiment are not completely comparable those used in simulation.(ii) The uniform distribution of electrons on every pixel surface is erroneous.The pixels near the edge object are only partially exposed to the electron beam, implying that a more sophisticated distribution method is necessary to improve the model of the detector.The most obvious way to solve this problem is to oversample the detector pixels and then bin the output image to the desired detector size.Regardless, the improper use of a uniform distribution at the edge explains why the simulated MTF exhibits more severe degradation at higher spatial frequencies.Reiterating, the MTF characterizes the spread of electrons from the pixel on which they impinge.The improper use of a uniform distribution of electron on pixels along the edge allows some of the electrons to impinge too close to the region blocked by the edge object.This increases the blurring effect arising from lateral scattering. Conclusions The motivation for making InFluence was to provide an open and user-friendly software to simulate image modulation due to detector-electron interactions.InFluence is flexible enough to allow the user to adjust the simulated sensor layer and beam properties.InFluence is reasonably fast on a single CPU core but activating parallel mode or refactoring the code to run on a GPU would further reduce the calculation time.Reductions to the calculation time at the cost of increased uncertainty can also be realized by loading a sample distribution of possible electron trajectories instead of calculating the full paths of every electron in real time. Conclusions Comprehensive analysis of a simulated Medipix3 detector produced results that compared well to expectations and to those presented in literature.That is, the choice of accelerating voltage and energy threshold plays an important role on the MTF and DQE.Generally, high-energy electrons will disperse to neighboring pixels, reducing the MTF at high spatial frequencies; a high threshold will improve the MTF, but to the detriment of the DQE.Results showed that the characterization methods used are appropriate for high fluence experiments, where the SNR is sufficiently large.Low fluence MTFs and DQEs were noisy across all spatial frequencies, with an increase in fluence resulting in smoother curves. Conclusions Current understanding of the Stobbs factor indicates that its origin is instrument relate (Juri Barthel et al., 2017).Accounting for the effect of the detector on the observed image intensities in simulation by application of an empirical MTF rectifies the discrepancy between experiment and simulation (Thust, 2009).Beyond the scope of this paper, further investigation is required to substantiate InFluence as a sufficiently accurate alternative to using empirical MTF files.Such an investigation would include a systematic comparison of experimental images to images simulated with InFluence with the scope of helping to reduce the Stobb's factor and generally 1396 Microscopy and Microanalysis, 2023, Vol. 29, No. 4 Fig. 1 . Fig. 1.Simplified schematic of the hybrid particle counting technology.The aluminum layer sits on top of the silicon substrate enabling the application of a biasing voltage between the particle counting pixel electronics contained in the ASIC and the aluminum layer.The particle is incident on the aluminum layer and then gets scattered in the aluminum and silicon substrates.After each scattering event, the incident particle loses energy, which is used in electron-hole pair production.The generated electrons (red circles) flow towards the aluminum layer at the positive side of the bias and the holes (black circles) flow towards the pixel electronics at the negative side of the bias.Note that one of the particles is incident near the pixel boundary (dashed vertical line) and is subsequently scattered into the neighboring pixel; the electron-hole pairs it produces by energy deposition are counted by the neighboring pixel's electronics, which leads to image blurring. Fig. 2 . Fig. 2. Coordinate system used in this Monte Carlo single scattering simulation.α, β, and γ are the angles between the position vector of the scattered electron and the x-, y-, and z-axes.ϕ and ψ are the polar and azimuthal scattering angles.P n + 1 is the position of the electron after a scattering event occurs at its previous position P n . Fig. 3 .Fig. 4 . Fig. 3. Simulated (a) 80-and (b) 200-keV normalized TEM images of an MoS 2 lattice surrounded by vacuum. Fig. 5 . Fig. 5. Application of InFluence to unmodulated (a) low fluence (10 e/pixel), (b) medium fluence (100 e/pixel), and (c) high fluence (1,000 e/pixel) images of an MoS 2 lattice, resulting in the modulated (d) low fluence, (e) medium fluence, and (f) high fluence images.(g)-(i) are the difference maps for low, medium, and high fluence simulations, calculated by subtracting the modulated images from the unmodulated images.The electrons are incident with an energy of 200 keV, and the energy of the electron-hole pairs are counted using a threshold of 80 keV. Figure 3 presents simulated 80-and 200-keV normalized TEM images of an MoS 2 lattice surrounded by vacuum.The simulated electron beams are partially spatially and temporally coherent, and the microscope exhibits third order spherical aberrations, C s .Deflections of the image relative to the detector can occur because of vibrations, stage drift, and thermal magnetic field noise.In abTEM, the contribution of these noise sources is adjusted by the Gaussian spread, G.In abTEM, temporal and spatial coherence are controlled by adjusting the unitless focal spread, δ, and unitless angular spread, β, parameters, respectively.The lattices are imaged at Scherzer defocus, D. For the 80-kV electron simulation, these parameters are as follows: δ = 40, β = 0.5, C s = − 7 μm, D ≈ −66.22 Å, and G = 2 Å.For the 200-kV electron simulation, δ = 40, β = 0.5, C s = − 7 μm, D ≈ −51.32 Å, and G = 2 Å.Figures 4 and 5 show a set of unmodulated finite fluence MoS 2 lattice images simulated with an 80-and 200-keV electron beam, respectively.The corresponding modulated images and difference images are also shown.The difference images are calculated by subtracting the modulated image from the unmodulated image.The difference images highlight how the intensities change after modulation.In other words, they show the difference between the image plane and detector plane. Figure 3 Figure Fig. 6 . Fig. 6.Histogram of the final distance of an electron from the center of a pixel to show the lateral spread of the 60-keV electrons in silicon; two viewpoints of the trajectories of the 60-keV electrons are shown below the histogram.There are 5,000 trajectories in this simulation; color is randomly assigned to help distinguish between trajectories. Fig. 7 . Fig. 7. Histogram of the final distance of an electron from the center of a pixel to show the lateral spread of the 80-keV electrons in silicon; two viewpoints of the trajectories of the 80-keV electrons are shown below the histogram.There are 5,000 trajectories in this simulation; color is randomly assigned to help distinguish between trajectories. Fig. 8 . Fig. 8. Histogram of the final distance of an electron from the center of a pixel to show the lateral spread of the 200-keV electrons in silicon; two viewpoints of the trajectories of the 200-keV electrons are shown below the histogram.There are 5,000 trajectories in this simulation; color is randomly assigned to help distinguish between trajectories. Fig. 9 . Fig. 9. Simulated slanted edge images, with a slant of 0.1 rad from the horizontal of the image: (a, d) before applying InFluence; (b, e) after applying InFluence with 80-keV electrons and a 32-keV threshold; (c, f) after applying InFluence with 200-keV electrons and an 80-keV threshold.The average electron fluence is 10 e/pixel for (a)-(c) and 100 e/pixel for (d)-(f). Fig. 10 . Fig. 10.Simulated white noise images: (a, d) before applying InFluence; (b, e) after applying InFluence with 80-keV electrons and a 32-keV threshold; (c, f) after applying InFluence with 200-keV electrons and an 80-keV threshold.The average electron fluence is 10 e/pixel for (a)-(c) and 100 e/pixel for (d)-(f). Fig. 10 . 1390 Fig. 11 Fig. 11 Modulated and unmodulated image distributions for (a, c) 80-keV electrons with a 32-keV threshold, (b, d) 200-keV electrons with an 80-keV threshold.The average electron fluence is 10 e/pixel for (a) and (b) and 100 e/pixel for (c) and (d). Fig. 12 Fig. 13 . Fig.12MTF as a function of spatial frequency for a simulated slanted edge simulated without applying InFluence, with an 80-keV electron energy and 32-keV threshold and with a 200-keV electron energy and 80-keV threshold.The theoretical curve is modeled using Equation (A.7).The top and bottom plot are generated from slanted edge images with an average electron fluence of 10 and 100 e/pixel, respectively. Fig. 14 . Fig. 14.NPS as a function of spatial frequency for a flat-field field image simulated (top) without applying InFluence, (middle) with an 80-keV electron energy and 32-keV threshold and (bottom) with a 200-keV electron energy and 80-keV threshold.Each plot is generated from a white noise image with an average electron fluence of 100 e/pixel.The expected power at each frequency is 1. Fig. 15 .Fig. 16 . Fig. 15.DQE as a function of spatial frequency simulated without applying InFluence, with a 80-keV electron energy and 32-keV threshold and with a 200-keV electron energy and 80-keV threshold.The theoretical curve is modeled using Equation (A.10).The top and bottom DQEs are calculated from MTFs and NPSs generated from images that were both simulated with an average electron fluence of 10 and 100 e/pixel, respectively. Fig. 15 .Fig. 16 . experiments and to optimize signal-to-noise for beam sensitive materials in (S)TEM experiments, as well as enabling more traditional image simulation applications of qualitative image matching for low electron beam fluence experiments. Fig. 17 . Fig.17.DQE as a function of spatial frequency simulated for 200-keV electrons with 40-, 80-, and 120-keV thresholds.The theoretical curve is modeled using Equation (A.10).The plot is calculated from an MTF and NPS generated from images that were both simulated with an average electron fluence of 1,000 e/pixel. Fig. 18 . Fig. 18.Experimental and simulated MTF for the Medipix3 operating in SPM, obtained for 60 and 80 electrons with various values of T counting .The data from Figure A.3 has been multiplied by the sinc(f ) function for a better comparison to our 2D (for square pixels) MTF trend lines. Table 1 . Runtimes of Standard InFluence for Several Simulation Conditions. Table 2 . Runtimes of Alternative InFluence for Several SimulationConditions. Table 2 . The time taken to load the 2,000 sample distribution is 43.03 ± 2.90.The time taken for the alternative InFluence to modulate an image does not include the load time of the sample distribution. Table 3 . Runtimes of Standard and Alternative InFluence for Parallel Mode set to True.

섹션 본문 76문단 · 47,803자

(제목 없음)

1The high detection efficiencies of direct electron detectors facilitate the routine collection of low fluence electron micrographs and diffraction patterns.Low dose and low fluence electron microscopy experiments are the only practical way to acquire useful data from beam sensitive pharmaceutical and biological materials.Appropriate modeling of low fluence images acquired using direct electron detectors is, therefore, paramount for quantitative analysis of the experimental images.We have developed a new open-source Python package to accurately model any single layer direct electron detector for low and high fluence imaging conditions, including a means to validate against experimental data through computation of modulation transfer function and detective quantum efficiency.

Introduction

2Electron microscopes have proven to be a powerful tool for investigating the internal symmetry and morphologies of nanosized matter.In the last few decades, interest has turned to innovating low dose and low fluence conventional electron microscopy (EM) and cryo-EM; methods that are employed to impede the structural changes associated with high beam fluences or doses (Carlson & Evans, 2012;Fujiyoshi, 2013;Egerton, 2019;Chen et al., 2020) (see Appendix for a discussion on terminology of dose, flux and fluence).An unfortunate ramification of using low fluences is reduced signal-to-noise ratios (SNRs) in the electron micrographs, complicating image interpretation, and measurement of structural features.Under low fluence conditions, high-angle diffraction peaks can be below detection limits because the scattering cross section decreases as a function of scattering angle.Modern direct detectors are one of the many innovations used to combat the challenges of low dose and low fluence EM experiments (Chen et al., 2020).In particular, these new detectors are more efficient at detecting incident electrons for a number of reasons.Firstly, they directly detect incident particles by measuring the charges generated in each pixel by the incident radiation.Direct detection avoids some of the signal-loss mechanisms that are associated with indirect detection (Fernandez-Perez et al., 2021).Secondly, they can detect single electron events by choosing an appropriate detection threshold, thereby eliminating readout noise (Paterson et al., 2020).Higher efficiencies lower the information dose and fluence limits, below which useful or desired information cannot be obtained from the image or pattern.

3Direct electron detectors can be distinguished into two groups: hybrid pixel detectors (HPDs), such as the Medipix detectors (Ballabriga et al., 2018), and monolithic active pixel sensors (MAPS), such as the Falcon 3 and 4 (Guo et al., 2020) and the Gatan K2 (Booth, 2012) and K3 (Feathers et al., 2021;Sun et al., 2021).Generally speaking, MAPS detectors typically have arrays of pixels that are smaller and more numerous than HPD arrays but are limited by a comparatively poor dynamic range when operating in counting mode.Counting mode is an operating mode in which the frame rate increases to better count individual electron impingements.Accurate detection of individual electron impingements is subject to frame rate and coincidence loss imposed by significant readout speeds.By extension, coincidence loss reduces the dynamic range of the detector.Counting mode differs from the conventional linear mode in which energy deposition over the total exposure time is integrated, which makes it impossible to know the exact number of electrons impinging on a pixel during that exposure time.The differences of MAPS detectors and HPDs ensure that each one has distinct applications.For example, the smaller pixels and large field of view of MAPS detectors position them as particularly well suited for single particle cryo-EM imaging (Li et al., 2013;Fan et al., 2019;Nakane et al., 2020), while their relatively poor dynamic range in counting mode limits their usefulness in high fluence diffraction experiments because coincidence loss results in inaccurate intensity measurements of low-resolution diffraction peaks.Note, however, under low fluence conditions, MAPS detectors are desirable in diffraction experiments as counting mode is advantageous in accurately recording weak, highresolution diffraction peaks.Conversely, HPDs are ideal for high fluence diffraction experiments on crystalline matter if the unit cells are sufficiently small to ensure that resolution of diffraction peaks is uncompromised by measurement with their small arrays of large pixels (Clabbers et al., 2017).

4In general, direct detectors are capable of recording high intensities and also of reading out at high speeds to minimize the exposure of the specimen to the beam (Paterson et al., 2020).Both of these qualities make them highly suited for advanced electron diffraction experiments, for example, fourdimensional STEM (4DSTEM) experiments (Ophus, 2019) and three-dimensional electron diffraction (3DED) experiments (Gemmi et al., 2019).4DSTEM involves the acquisition of two-dimensional (2D) diffraction patterns from a 2D scan grid; such data sets are valuable because they can be processed in many ways to give different microstructural information.For example, since the intensities of the collected patterns are dependent on the area underneath the illuminating probe, the 4DSTEM data set can be processed to create a map of crystalline orientations or phases.Simultaneously, the 4DSTEM data set can also be used for phase retrieval by application of ptychographic algorithms (Rodenburg, 2008;Ophus, 2019).3DED techniques involve the collection of diffraction patterns as the crystal is rotated or as the beam is deflected; the set of patterns is a sample of the reciprocal lattice that can be related to the direct lattice with sophisticated reconstruction algorithms (Gemmi et al., 2019;Gruene & Mugnaioli, 2021).

5With the wide application of direct detectors in the collection of higher quality data, it is pertinent that image simulations are adapted to ensure an appropriate comparison to results from experiments in which these detectors are employed.To elaborate, conventionally, the image contrast in experimental TEM data is often three to five times less than that predicted by theoretical models for both crystalline and amorphous materials over a wide range of spatial frequencies.Researchers have made efforts to account for the so-called Stobbs factor in experiment by considering a variety of electron scattering models and how they modify the coherent Bragg peak intensities and the background (Howie, 2004).The considerable improvements in these models and their implementations have not been enough to close the gap between experiment and simulation.However, Thust (2009) showed that the additional inclusion of empirical frequency-transfer properties of the detector, through the modulation transfer function (MTF), in simulations led to near perfect consistency between simulation and experiment.Moreover, Jia et al. (2013Jia et al. ( , 2014) ) show quantitative fits of simulations to experiments by inclusion of the measured MTF.It must be noted that images simulated using empirical MTF data are limited to comparison with experimental images taken under similar conditions as the MTF data.

6In the subsequent sections, we elaborate on the limitations of applying empirical MTF data to simulation and discuss InFluence, a new software package in Python that utilizes the Monte Carlo single scattering model outlined in Joy (1995) to simulate physical experiments in which S/TEM images of arbitrary exposure conditions are obtained from any single layer gapless direct detector operating in single pixel mode (SPM) (the details of this operating mode are discussed later in the Medipix3 Specifications section).The Monte Carlo single scattering model accurately captures the propagation of the electron in the sensor layer as it deposits energy for charge production.Calculation of each electron trajectory is handled separately, and by extension, imaging at low fluences can be accurately simulated.InFluence does not model the geometry of the specimen; InFluence is applied to an image simulated by a multislice (for an in depth account of the formulation of the multislice method, see Earl J. Kirkland's book Advanced Computing in Electron Microscopy, specifically chapter 6 (Kirkland, 2020)) package, such as abTEM (Madsen & Susi, 2021) or Dr. Probe (Barthel, 2018), completing the simulation workflow by adding the effects of measurement by a simulated detector.This is different to the usage of a software such as CASINO (Drouin et al., 2007), which can model samples and detector geometries with vertical and horizontal planes, because CASINO cannot be applied to an image produced by a multislice package in the same way.

7InFluence is open and freely available to use, fitting into the growing ecosystem of open free simulation and data processing packages for S/TEM, which includes abTEM, Pyxem (Cautaerts et al., 2021), Atomap (Nord et al., 2017), HyperSpy (de la Pena et al., 2021), TEMUL Toolkit (O'Connell et al., 2022), Prismatic (Ophus, 2017;Pryor et al., 2017;Rangel DaCosta et al., 2021), LiberTEM (Clausen et al., 2021), and AtomAI (Ziatdinov et al., 2022).

Medipix3 Specifications

8We chose to model the Medipix3 HPD because the technology underpinning the detector is well documented; however, parameters within the software can be adjusted by users to simulate other HPDs.This model of the Medipix3 is composed of a 1-μm-thick aluminum film that sits on top of a 300-μm-thick silicon layer that is bump bonded to an application-specific integrated circuit (ASIC), which is the pixel array and readout circuitry.The pixels are modeled as squares with a side of length 55 μm.There are 256 × 256 pixels on a detector array (Ballabriga et al., 2011;Paterson et al., 2020).For the purposes of the simulation, the origin of a pixel is at its center.A defined origin is important because the Monte Carlo simulations, discussed elsewhere, are calculated for each pixel in the detector array and the origin is a reference point used to check whether the electron has scattered into a neighboring pixel.The choice of origin for each pixel is arbitrary but needs to be consistent.The Medipix3 uses hybrid particle counting technology, schematic shown in Figure 1: by coating the silicon with an aluminum film, it is possible to apply a biasing voltage across the detector.As the electrons scatter in the detector, they deposit energy that is used in electron-hole pair production.For silicon, the energy per pair is assumed to be 3.6 eV.The electric field generated by the applied bias causes the holes to move toward the ASIC and the electrons to move toward the aluminum film.The holes induce a signal at the analog part of the ASIC pixel.Additionally, the aluminum film also serves as a shield against visible light and soft X-rays.

9In SPM, an incident electron is detected in a pixel if the signal measured in that pixel exceeds a chosen threshold, T counting , (Paterson et al., 2020).Electrons have sufficient energy to travel laterally into neighboring pixels and deposit energy to generate charges in those pixels, leading to the possibility that the ASIC counts the incident electron more than once in the incident pixel and/or neighboring pixels if the threshold value has been set too low.It is also possible that the ASIC does not count the incident electron at all if the threshold value has been set too high.The ability to choose the counting threshold enables the user to maximize either the MTF or the DQE because the number of incident electrons counted and their lateral spread are directly related to the DQE and MTF (Mir et al., 2017;Paterson et al., 2020).On a final note with respect to thresholding, there is a lower limit to the choice a user can make for the threshold: it should be set above the chip's thermal electronic noise floor, which is just under 5 keV for the Medipix3 (Mir et al., 2017).

10The electron loses energy in the aluminum film.The aluminum film can also be modeled as a structureless continuum (see the Assumptions of the Single Scattering Model section) and placed on top of the silicon layer in a Monte Carlo simulation.However, to reduce code complexity, we chose to approximate the average energy lost in the aluminum film by performing a separate calculation of the electron scattering in the aluminum film that is then incorporated into the overall calculations within our software InFluence.We subtract the average loss from the chosen initial electron energy of the incident beam.The implication of this is that we have removed the noise associated with the natural variance of the electron energy as a result of scattering within the aluminum layer.According to Equation (2), the mean free path decreases as a function of incident energy, implying that the average time an electron spends in the aluminum layer increases with decreasing incident energy.In addition, Equation (21) shows that low-energy electrons lose more energy per distance travelled.Collectively, this means that the energy lost to the aluminum layer becomes more significant as the incident energy of the electron decreases.In the case of 80-and 200-keV electrons, making this compromise introduces negligible error.Our simulations revealed that the average energy loss is ∼1.1 keV in the aluminum layer for an 80-keV electron beam and ∼0.8 keV for a 200-keV electron beam.

11The ASIC takes a finite time to process each pulse induced by an incident electron.This leads to an underestimation of the signal if another electron induces a pulse during this processing time.The model presented in this paper assumes that no electrons are incident on a pixel during this processing time (Fröjdh et al., 2015).In fact, the model in this paper assumes that only one electron travels through the column and the detector until counting is completed.This is a valid assumption for low flux experiments.Consider the case in which the electrons are travelling through a TEM column of length d at speed v. Since an electron takes d v to travel through the column, there is a neglibilible chance of two electrons travelling through the column simultaneously if F × d v ≪ 1, where F is the flux (e/Å 2 s).

Single Scattering Model

12Monte Carlo models can be used to simulate electron scattering in a material, where the material is continuous and structureless.Here, we offer a summarized version of the elastic single scattering models given in Joy (1995) and Lowney et al. (1994) for the convenience of the reader.We have not made changes to the models.The single scattering model is a method used to generate a distribution of possible scattering trajectories for a particle incident on some materials.In the context of this paper, the particle in question is an electron.The experimental geometry follows a right-handed Cartesian coordinate system, with the positive z-axis pointing into the material, as shown in Figure 2.

13The electron undergoes a scattering event and travels a distance s from point P n to point P n + 1 .The distance travelled is given by

14where λ is the mean free path of the incident electron and RND is a random number selected from a distribution with a range from 0.000001 to 0.999999.The mean free path is given by

15where N A is Avogadro's number, ρ is the density of the target (g/cm 3 ), and A is the atomic weight of the target (g/mole).σ M (cm 2 ) is the Mott scattering cross section parametrized by Browning (1991) and is written as

16where E is the electron energy (keV) and Z is the atomic number and u defined as

17The azimuthal scattering angle ψ of the electron can be any number within the range 0° and 360° and is defined by

18The polar scattering angle ϕ of the electron can be any number within the range 0° and 180° and is defined by the relationship The aluminum layer sits on top of the silicon substrate enabling the application of a biasing voltage between the particle counting pixel electronics contained in the ASIC and the aluminum layer.The particle is incident on the aluminum layer and then gets scattered in the aluminum and silicon substrates.After each scattering event, the incident particle loses energy, which is used in electron-hole pair production.The generated electrons (red circles) flow towards the aluminum layer at the positive side of the bias and the holes (black circles) flow towards the pixel electronics at the negative side of the bias.Note that one of the particles is incident near the pixel boundary (dashed vertical line) and is subsequently scattered into the neighboring pixel; the electron-hole pairs it produces by energy deposition are counted by the neighboring pixel's electronics, which leads to image blurring.

191382 Microscopy and Microanalysis, 2023, Vol. 29, No. 4 where ξ is a parameter that accounts for nuclear screening (Joy, 1995).

20RND ψ and RND ϕ are random numbers chosen from a uniform distribution with values in the range 0 and 1.The Mott scattering cross section more accurately describes the elastic scattering of the electron at low beam energies (<20 keV) and for nuclei with higher atomic numbers (Z > 30) (Czyżewski et al., 1990).The angular distribution for this Mott model is square and is approximated by modifying the Rutherford polar scattering angle (Joy, 1995).

21In the model presented in this paper, the electron scattering begins after the electron has already penetrated the detector, meaning that the initial penetration depth z is determined using Equation (1).The x and y coordinates are randomly selected from a uniform distribution with a user-defined minimum and maximum: the minimum is −1 times the maximum.For the simulated Medipix3 model, the user should choose half the pixel (which is modeled as a square) side length as maximum since the origin of the simulation is at the center of the detector pixel.Hence, the following equations define the initial positions:

22where s is the scattering step length, d is the user-defined maximum, and RND x and RND y are random numbers chosen from a uniform distribution with values in the range −1 and 1.These equations can be easily adjusted to accommodate any arbitrary definition of the origin and pixel (or material) dimensions.For example, for a rectangular pixel, the d parameter would be changed to reflect the difference between the maximums in the x and y directions.

23The position of the electron after a scattering event is calculated by

24where x n−1 , y n−1 , and z n−1 are the components of the position vector along the x, y, and z axes, respectively, and c a , c b , and c c are the direction cosines of the electron position vector after scattering has occurred.Illustrated in Figure 2, the new direction cosines are related to the old direction cosines c x , c y , and c z through the polar, ϕ, and azimuthal, ψ, scattering angles:

25where

26The full derivation and further explanation of these equations can be found in Lowney et al. (1994); however, we make note of some important aspects of the equations and derivation: the sum of each old direction cosine squared must equal the sum of each new direction cosine squared, which must both equal to 1. Alternatively stated, the following equation must hold true:

27The coordinate system is rotated after a scattering event occurs.

28For consistency and for Equation (20) to be satisfied, the new direction cosines representing the new position of the electron must be represented in the original coordinate system.This is achieved by two rotations, one about the x-axis and the other about the z-axis.

29The electrons lose energy through their Coulomb interactions with the positive nuclei in the scattering material.The electrons also lose energy discretely due to inelastic scattering events.We can approximate the total electron energy change per distance travelled by the modified Bethe equation, which is more appropriate than the original form at lower beam energies, i.e., when the electron energy E (keV) is less than or equal to the mean ionization energy E ionization (keV) (Joy, 1995): where A is the atomic weight (g/mole).J is measured experimentally for different materials (Berger et al., 1984) but can be estimated using the equation (National Research Council, 1964):

30With all the necessary equations defined, we now describe how an electron propagates through a material.The user defines the properties of the scattering material and the energy of the electron.The initial coordinates are calculated using Equations ( 8)-( 10).The electron then scatters to a new position, whose coordinates are calculated using Equations ( 11)-( 13).The energy that the electron loses is calculated using Equation ( 21).This process is repeated until the energy of the electron falls below a user-defined threshold at which point the electron is assumed to have insufficient energy to move through the material or if the electron exits the material by backscattering or by transmission.Our application of this model to image simulation is discussed later.

Assumptions of the Single Scattering Model

31The spatial distribution of the electrons is dominantly determined by elastic collisions (Joy, 1995).Hence, discrete inelastic scattering events are not directly modeled; instead, the energy is continuously lost to the surrounding material.Furthermore, the model assumes that the energy losses in the simulated specimen are negligible compared to the total energy of the electron and the energy losses in the detector.The model assumes that energy lost to the detector is used for electron-hole pair generation and ignores other types of inelastic scattering processes.In general, neglect of these phenomena adds some uncertainty in the true noise of simulation.However, contributions from secondary electron generation, for instance, are minor and can be ignored for the purposes of contrast modulation.The Medipix detectors (which are discussed in the Medipix3 Specifications section) are composed of crystalline matter; however, the single scattering model assumes that the detector is continuous and structureless.This assumption holds when the step length is larger than the crystal lattice parameters, because the step length defines which features or effects are resolved.In effect, phenomena that arise due to crystallinity, such as electron channeling and diffraction, are not considered.We expect the structureless model to be sufficient for this study as the most important outcome of the Monte Carlo simulation is determining the lateral spread of the electrons in the detector.

Methodologies

32The following subsections describe our methods for generating the data.In summary, to simulate an image with a use-specified finite fluence and the contrast modulation due to the electron scattering within a detector, the user should first generate an image from an image simulation package, such as Dr. Probe (Barthel, 2018), MULTEM (Lobato & Van Dyck, 2015), Prismatic (Ophus, 2017), or abTEM (Madsen & Susi, 2021).The pixel intensities of the images simulated from these packages represent probabilities of an electron scattering to that pixel.The intensities are normalized such that their sum is one.This description extends to the slanted edge and flat-field images before simulating finite fluences; therefore, we denote all inputs to InFluence as normalized images.The first, and most simple, task of InFluence is to convert the normalized image to one with a user-specified finite fluence.The second, and final, task is to simulate electron scattering in a detector with user-defined properties.

33The simulated detector is characterized by application of the slanted edge method and the relevant metrics: the MTF, the noise power spread (NPS), and the detective quantum efficiency (DQE).For a detailed description of these methods, see the Detector Characterization section in the appendices.The MTFs and NPSs were obtained with a JavaScript plugin for ImageJ (Schneider et al., 2012).DQEs are computed from the MTFs and NPSs according to Equation ( 27).

34Simulations and analysis were performed on a computer with a Windows 10 operating system, an Intel Core i5 6600K central processing unit (CPU) overclocked to 4.2 GHz, 16 GB of random-access memory and an NVIDIA GeForce GTX 980 Ti graphics processing unit (GPU).

InFluence

35InFluence is a software designed to simulate a modulated image of arbitrary electron fluence.To be clear, a modulated image is a simulated image that takes into account intensity modulation that arises from electron-detector interactions.InFluence will be available on GitHub in conjunction with this publication.The code is written in Python version 3.6.8(van Rossum & Drake, 2009) and makes use of several highly optimized libraries, including NumPy (Oliphant, 2006), math, random, time (Van Rossum, 2018), SciPy (Virtanen et al., 2020), Numba (Lam et al., 2015), and Matplotlib (Hunter, 2007).We have not tested other versions of Python but expect that InFluence should be compatible with most, if not all, future versions with perhaps minor changes to the code.For the convenience of the user, the code is separated into four PY files: InFluence.py,plot_trajectories.py,common_functions.py,and params.py.InFluence.pyuses the single scattering Monte Carlo model outlined in the Theory section to calculate the trajectories of the electrons in a HPD.The model is defined by a set of functions stored in the common_functions.pyfile.Plot_trajectories.py enables the user to also visualize the lateral spread and penetration depth of the electrons.The experimental parameters for both InFluence.pyand plot_trajectories.pycan be adjusted in the params.pyfile.

36The code is not limited to the Medipix family; adjustment of the detector material properties enables simulation for any HPD with a single sensor layer and gapless pixels.These material properties are the atomic number, the atomic weight, the material density, the detector thickness, the energy threshold for electron-hole pair generation, and the pixel side length.

37For simulating physical experiments, the input image to InFluence is the output from an image simulation software (ISS), such as abTEM, without any MTF file applied.In the The time taken to load the 2000 sample distribution is 43.03 ± 2.90.The time taken for the alternative InFluence to modulate an image does not include the load time of the sample distribution.To simulate how an ASIC detects electrons, InFluence processes the scattering of the electrons in each pixel separately, while counting the number of electron-hole pairs generated in a pixel by the incident electrons as they propagate through the pixel (and perhaps its neighbors); if the energy of the pairs in a single pixel exceeds the threshold, T counting , defined in params.py,an electron is detected in that pixel.InFluence runs until the trajectories of every electron incident on every pixel are calculated.The results in Table 1 show that larger images do equate to significant increases in runtime as iterating over pixels is inefficient.Furthermore, the number of electrons and their energy also contribute significantly to the runtime.

38In conjunction with the standard version of InFluence is a version that enables the user to load a precalculated distribution of possible electron trajectories from file instead of calculating the trajectory of each electron in real time.A larger number of samples ensure a higher confidence in the sample distribution but require greater overhead in the loading time of the distribution file.With this in mind, this alternative version of InFluence is faster when the load time is negligible when compared to the time it takes to assign a trajectory to each electron in the simulation.For example, comparing the results in Tables 1 and 2, it is clear that the standard version of InFluence is faster for 50,000 electrons, but slower for 500,000 when taking the time taken to load the sample distribution into account.That being said, the distribution only needs to be loaded a single time when executing InFluence, implying that modulating a set of images in a single run of InFluence can realize additional savings for computational time.

39Furthermore, parallel mode with Numba can be enabled for the standard and alternative versions of InFluence.There are no drawbacks to enabling parallel computation for standard InFluence, whereas additional compilation time is needed for the alternative version of InFluence; however, comparison of the results in Tables 2 and 3 shows that this cost can be offset if several images are simulated with a single run of InFluence.

40It must be noted that the results in Tables 1-3 are relevant only for the workstation described above and are subject to change depending on the exact computational power of the

Application of InFluence on a Simulated Image of an MoS 2 Lattice

41We use the Python package abTEM to simulate normalized TEM images of a molybdenum disulphide (MoS 2 ) lattice.4i shows that the intensity differences between the unmodulated and modulated images are negative for 80-keV electrons thresholded at 32 keV.The intensities of the modulated image are higher than those of the unmodulated image because the 80-keV electrons are counted multiple times in the same pixel as a result of the counting threshold used here and since 80-keV electrons tend to not scatter into neighboring pixels.Conversely, 200-keV electrons tend to disperse into neighboring pixels; in fact, 200-keV electrons can scatter to ∼4.8 Medipix3 pixels from their point of incidence (see the Evaluating the Implementation of the Single Scattering Model section for more details).Figure 5i shows that counting 200-keV electrons with a 40% threshold results in an underestimation of electron counts and significantly more blurring.Effectively, the impact of modulation on measurements is a reduction in high spatial frequency information, and the magnitude of this reduction becomes more severe as the incident energy increases.

Evaluating the Implementation of the Single Scattering Model

42All calculations were performed with standard InFluence, referred to as just InFluence from here onward.

43The trajectories of the electrons simulated with our implementation of the single scattering model compared well to those in other literature: the authors of (Mir et al., 2017) used the CASINO software package (Drouin et al., 2007) to calculate the lateral spread of 60-and 80-keV electrons in a silicon pixel, showing that 95% of the electrons travel out to ∼25 and 42 μm for 60-and 80-keV electrons, respectively.The histograms in Figures 6 and 7 show that the 5,000 60-and 80-keV electrons simulated using InFluence exhibit a similar lateral spread.Recall from the Medipix3 Specifications section, the Medipix3 sensor layer is 300 μm deep, and the pixels are square with a 55-μm side.Therefore, an electron incident on the center of the pixel is unlikely to scatter into a neighboring pixel; note, though, 60and 80-keV electrons are still likely to scatter into neighboring pixels because electrons can be incident on any part of the pixel.The histogram in Figure 8 shows that a 200-keV electron can travel out to ∼265 μm, which is >4.8 Medipix3 pixels from its point of origin.Depending on the value set for T counting , an electron can be counted multiple times across several pixels.To summarize, with high T counting , the modulation of the image is not very significant or apparent because low-energy electrons tend to not scatter into neighboring pixels if they are incident near the center of the pixel.High-energy electrons can travel through several pixels and can be measured many times or not at all depending on the energy transferred in each pixel and the selected T counting , which, as will be shown in the subsequent section, leads to significant contrast modulation of the input image.

Characterization of the Simulated Medipix3

44The MTF, NPS and DQE were evaluated in the spatial frequency range from 0 to 0.5, where 0.5 represents the Nyquist frequency.The unmodulated and modulated slanted edge and white noise images are shown in Figures 9 and 10, respectively; the images are simulated with different electron fluences: 10 e/pixel and 100 e/pixel.Each edge is oriented at an angle of 0.1 rad to the x-axis, giving an oversampling factor of ∼10 times the pixel pitch to ensure that the specified eight sampling bins are nonempty.The edges are imaged with 80 keV and with 200-keV electrons that InFluence thresholds at 32 and 80 keV, respectively.Note that the darkening of the edges of the images arises from the scattering of the electrons outside the finite boundary of the detector.These electrons do not contribute to the image and InFluence does not simulate software postprocessing of the image or detector dead area that might remove or account for these artifacts.Note the distribution of intensities from the white noise images before and after modulation shown in Figure 11; the count change after modulation is +40% for the 80-keV electrons and −50% for 200-keV electrons, despite the energy of the electron-hole pairs generated by both electron beams being thresholded at 40% of the incident beam energy.The narrowing of the 200-keV distribution and the reduction in counts after modulation is indicative that a lower threshold is required to improve DQE, to ensure that electrons that spread their energy to too many neighboring pixels are counted.

45These slanted edges and white noise images were used to obtain the MTFs, NPSs, and DQEs shown in Figures 12-15.The MTF degrades with increasing electron energy, which we attribute to the stochastic lateral spread of the electrons in the silicon sensor layer.This lateral spread is the reason the edge becomes blurrier with increasing electron energy, as demonstrated in Figures 9c and 9f.

46Figure 12 shows that higher electron fluences result in a smoother MTF, since the fluctuations in the intensity profile across the edge are less significant compared to the average electron fluence.This result is unsurprising because the MTF metric is a statistical quantity, thus requiring an adequately large number of electron counts over a suitable exposure time.The stochastic nature of the electron scattering in the sensor layer means that each electron transfers spatial frequency information differently.MTFs generated from an edge imaged under high electron fluence conditions cannot be used to simulate low electron fluence experiments reliably.

47Figures 13 and 14 present the NPS corresponding to the MTFs in Figure 12.A perfectly flat power spectrum normalized to 1 is only expected for an ideal white noise process and unlikely to ever be observed in practice.In general, the degree to which the power of noise decreases for higher spatial frequencies is more severe for 200-keV electrons than that for the 80-keV electrons.This is further evidence that the lateral spread of the electrons strongly impacts the measured noise.

48We present the simulated DQEs under low and high electron fluence conditions and the ideal DQE according to Equation (32).Since the DQE, MTF, and NPS are related through Equation ( 30), Figure 15 serves to reiterate the points Microscopy and Microanalysis, 2023, Vol. 29, No. 4 made above.That is, each electron exhibits a unique DQE; therefore, DQEs generated from high electron fluence data cannot be used to simulate low electron fluence experiments reliably.

49Presented so far are the results for electrons thresholded at 40% of their incident energy.Figure 17 shows that a higher threshold decreases the relative maximum magnitude of the DQE because the energy of the electron-hole pairs generated by the propagating electrons is less likely to exceed the threshold.Careful consideration must be made to maximize the DQE while minimizing the blurring associated with the lateral spread of electrons into neighboring pixels; that is, there is a trade-off between maximizing the DQE and MTF.In the case of low fluence cryo-EM experiments, in which the electron fluence is typically on the order of 10 s e/Å 2 , a high DQE is prioritized over a better MTF to maximize the measured signal.Note, as shown by considering Figures 16 and 17, an increased threshold improves the MTF but not as dramatically as it reduces the DQE.

Comparison to Physical Experiments

50Figure 18 is a plot comparing simulated and experimental MTFs obtained from images recorded with 60-keV electrons thresholded at 5.6, 37.0, and 51.9 keV.We obtained the MTFs from Figure A.3, reproduced from Mir et al. (2017), and multiplied them by sinc(f) for comparison with our 2D MTF trend lines.For all simulations, the average fluence is ∼40,000 electrons per pixel, leading to smoother curves typically obtained in experimental MTFs.The simulated ideal detector compares well with the expected ideal frequency response: the sinc 2 (f) function.The experimental and simulated MTFs obtained with a 5.6-keV threshold are the only trend lines that compare well.The simulated MTFs for 37.0-and 51.9-keV thresholds fall predict weaker frequency responses for higher spatial frequencies than those observed by Mir et al.There are two likely reasons for this: (i) the calibration of the real Medipix3 detector could mean that the thresholds used in experiment are not completely comparable those used in simulation.(ii) The uniform distribution of electrons on every pixel surface is erroneous.The pixels near the edge object are only partially exposed to the electron beam, implying that a more sophisticated distribution method is necessary to improve the model of the detector.The most obvious way to solve this problem is to oversample the detector pixels and then bin the output image to the desired detector size.Regardless, the improper use of a uniform distribution at the edge explains why the simulated MTF exhibits more severe degradation at higher spatial frequencies.Reiterating, the MTF characterizes the spread of electrons from the pixel on which they impinge.The improper use of a uniform distribution of electron on pixels along the edge allows some of the electrons to impinge too close to the region blocked by the edge object.This increases the blurring effect arising from lateral scattering.

Conclusions

51The motivation for making InFluence was to provide an open and user-friendly software to simulate image modulation due to detector-electron interactions.InFluence is flexible enough to allow the user to adjust the simulated sensor layer and beam properties.InFluence is reasonably fast on a single CPU core but activating parallel mode or refactoring the code to run on a GPU would further reduce the calculation time.Reductions to the calculation time at the cost of increased uncertainty can also be realized by loading a sample distribution of possible electron trajectories instead of calculating the full paths of every electron in real time.

52Comprehensive analysis of a simulated Medipix3 detector produced results that compared well to expectations and to those presented in literature.That is, the choice of accelerating voltage and energy threshold plays an important role on the MTF and DQE.Generally, high-energy electrons will disperse to neighboring pixels, reducing the MTF at high spatial frequencies; a high threshold will improve the MTF, but to the detriment of the DQE.Results showed that the characterization methods used are appropriate for high fluence experiments, where the SNR is sufficiently large.Low fluence MTFs and DQEs were noisy across all spatial frequencies, with an increase in fluence resulting in smoother curves.

53Current understanding of the Stobbs factor indicates that its origin is instrument relate (Juri Barthel et al., 2017).Accounting for the effect of the detector on the observed image intensities in simulation by application of an empirical MTF rectifies the discrepancy between experiment and simulation (Thust, 2009).Beyond the scope of this paper, further investigation is required to substantiate InFluence as a sufficiently accurate alternative to using empirical MTF files.Such an investigation would include a systematic comparison of experimental images to images simulated with InFluence with the scope of helping to reduce the Stobb's factor and generally 1396 Microscopy and Microanalysis, 2023, Vol. 29, No. 4

Fig. 1 .

54Fig. 1.Simplified schematic of the hybrid particle counting technology.The aluminum layer sits on top of the silicon substrate enabling the application of a biasing voltage between the particle counting pixel electronics contained in the ASIC and the aluminum layer.The particle is incident on the aluminum layer and then gets scattered in the aluminum and silicon substrates.After each scattering event, the incident particle loses energy, which is used in electron-hole pair production.The generated electrons (red circles) flow towards the aluminum layer at the positive side of the bias and the holes (black circles) flow towards the pixel electronics at the negative side of the bias.Note that one of the particles is incident near the pixel boundary (dashed vertical line) and is subsequently scattered into the neighboring pixel; the electron-hole pairs it produces by energy deposition are counted by the neighboring pixel's electronics, which leads to image blurring.

Fig. 2 .

55Fig. 2. Coordinate system used in this Monte Carlo single scattering simulation.α, β, and γ are the angles between the position vector of the scattered electron and the x-, y-, and z-axes.ϕ and ψ are the polar and azimuthal scattering angles.P n + 1 is the position of the electron after a scattering event occurs at its previous position P n .

Fig. 3 .Fig. 4 .

56Fig. 3. Simulated (a) 80-and (b) 200-keV normalized TEM images of an MoS 2 lattice surrounded by vacuum.

Fig. 5 .

57Fig. 5. Application of InFluence to unmodulated (a) low fluence (10 e/pixel), (b) medium fluence (100 e/pixel), and (c) high fluence (1,000 e/pixel) images of an MoS 2 lattice, resulting in the modulated (d) low fluence, (e) medium fluence, and (f) high fluence images.(g)-(i) are the difference maps for low, medium, and high fluence simulations, calculated by subtracting the modulated images from the unmodulated images.The electrons are incident with an energy of 200 keV, and the energy of the electron-hole pairs are counted using a threshold of 80 keV.

Figure 3

58presents simulated 80-and 200-keV normalized TEM images of an MoS 2 lattice surrounded by vacuum.The simulated electron beams are partially spatially and temporally coherent, and the microscope exhibits third order spherical aberrations, C s .Deflections of the image relative to the detector can occur because of vibrations, stage drift, and thermal magnetic field noise.In abTEM, the contribution of these noise sources is adjusted by the Gaussian spread, G.In abTEM, temporal and spatial coherence are controlled by adjusting the unitless focal spread, δ, and unitless angular spread, β, parameters, respectively.The lattices are imaged at Scherzer defocus, D. For the 80-kV electron simulation, these parameters are as follows: δ = 40, β = 0.5, C s = − 7 μm, D ≈ −66.22 Å, and G = 2 Å.For the 200-kV electron simulation, δ = 40, β = 0.5, C s = − 7 μm, D ≈ −51.32 Å, and G = 2 Å.Figures 4 and 5 show a set of unmodulated finite fluence MoS 2 lattice images simulated with an 80-and 200-keV electron beam, respectively.The corresponding modulated images and difference images are also shown.The difference images are calculated by subtracting the modulated image from the unmodulated image.The difference images highlight how the intensities change after modulation.In other words, they show the difference between the image plane and detector plane.

59Figure

Fig. 6 .

60Fig. 6.Histogram of the final distance of an electron from the center of a pixel to show the lateral spread of the 60-keV electrons in silicon; two viewpoints of the trajectories of the 60-keV electrons are shown below the histogram.There are 5,000 trajectories in this simulation; color is randomly assigned to help distinguish between trajectories.

Fig. 7 .

61Fig. 7. Histogram of the final distance of an electron from the center of a pixel to show the lateral spread of the 80-keV electrons in silicon; two viewpoints of the trajectories of the 80-keV electrons are shown below the histogram.There are 5,000 trajectories in this simulation; color is randomly assigned to help distinguish between trajectories.

Fig. 8 .

62Fig. 8. Histogram of the final distance of an electron from the center of a pixel to show the lateral spread of the 200-keV electrons in silicon; two viewpoints of the trajectories of the 200-keV electrons are shown below the histogram.There are 5,000 trajectories in this simulation; color is randomly assigned to help distinguish between trajectories.

Fig. 9 .

63Fig. 9. Simulated slanted edge images, with a slant of 0.1 rad from the horizontal of the image: (a, d) before applying InFluence; (b, e) after applying InFluence with 80-keV electrons and a 32-keV threshold; (c, f) after applying InFluence with 200-keV electrons and an 80-keV threshold.The average electron fluence is 10 e/pixel for (a)-(c) and 100 e/pixel for (d)-(f).

Fig. 10 .

64Fig. 10.Simulated white noise images: (a, d) before applying InFluence; (b, e) after applying InFluence with 80-keV electrons and a 32-keV threshold; (c, f) after applying InFluence with 200-keV electrons and an 80-keV threshold.The average electron fluence is 10 e/pixel for (a)-(c) and 100 e/pixel for (d)-(f).

651390

Fig. 11

66Fig. 11 Modulated and unmodulated image distributions for (a, c) 80-keV electrons with a 32-keV threshold, (b, d) 200-keV electrons with an 80-keV threshold.The average electron fluence is 10 e/pixel for (a) and (b) and 100 e/pixel for (c) and (d).

Fig. 12 Fig. 13 .

67Fig.12MTF as a function of spatial frequency for a simulated slanted edge simulated without applying InFluence, with an 80-keV electron energy and 32-keV threshold and with a 200-keV electron energy and 80-keV threshold.The theoretical curve is modeled using Equation (A.7).The top and bottom plot are generated from slanted edge images with an average electron fluence of 10 and 100 e/pixel, respectively.

Fig. 14 .

68Fig. 14.NPS as a function of spatial frequency for a flat-field field image simulated (top) without applying InFluence, (middle) with an 80-keV electron energy and 32-keV threshold and (bottom) with a 200-keV electron energy and 80-keV threshold.Each plot is generated from a white noise image with an average electron fluence of 100 e/pixel.The expected power at each frequency is 1.

Fig. 15 .Fig. 16 .

69Fig. 15.DQE as a function of spatial frequency simulated without applying InFluence, with a 80-keV electron energy and 32-keV threshold and with a 200-keV electron energy and 80-keV threshold.The theoretical curve is modeled using Equation (A.10).The top and bottom DQEs are calculated from MTFs and NPSs generated from images that were both simulated with an average electron fluence of 10 and 100 e/pixel, respectively.

70experiments and to optimize signal-to-noise for beam sensitive materials in (S)TEM experiments, as well as enabling more traditional image simulation applications of qualitative image matching for low electron beam fluence experiments.

Fig. 17 .

71Fig.17.DQE as a function of spatial frequency simulated for 200-keV electrons with 40-, 80-, and 120-keV thresholds.The theoretical curve is modeled using Equation (A.10).The plot is calculated from an MTF and NPS generated from images that were both simulated with an average electron fluence of 1,000 e/pixel.

Fig. 18 .

72Fig. 18.Experimental and simulated MTF for the Medipix3 operating in SPM, obtained for 60 and 80 electrons with various values of T counting .The data from Figure A.3 has been multiplied by the sinc(f ) function for a better comparison to our 2D (for square pixels) MTF trend lines.

Table 1 .

73Runtimes of Standard InFluence for Several Simulation Conditions.

Table 2 .

74Runtimes of Alternative InFluence for Several SimulationConditions.

75The time taken to load the 2,000 sample distribution is 43.03 ± 2.90.The time taken for the alternative InFluence to modulate an image does not include the load time of the sample distribution.

Table 3 .

76Runtimes of Standard and Alternative InFluence for Parallel Mode set to True.

참고문헌 53건

  1. Spectral response of the energy-binning Dosepix ASIC coupled to a 300 μm silicon sensor under high fluxes of synchrotron radiation Nuclear Instruments and Methods in Physics Research Section A Accelerators Spectrometers Detectors and Associated Equipment · Elsevier BV · 2015 10.1016/j.nima.2015.09.018
  2. Calculations of Mott scattering cross section Journal of Applied Physics · American Institute of Physics · 1990 10.1063/1.346400
  3. Detective quantum efficiency of electron area detectors in electron microscopy Ultramicroscopy · Elsevier BV · 2009 10.1016/j.ultramic.2009.04.002
  4. Modified slanted-edge method and multidirectional modulation transfer function estimation Optics Express · Optica Publishing Group · 2014 10.1364/oe.22.006040
  5. High-Resolution Transmission Electron Microscopy on an Absolute Contrast Scale Physical Review Letters · American Physical Society · 2009 10.1103/physrevlett.102.220801
  6. Matplotlib: A 2D Graphics Environment Computing in Science & Engineering · AIP Publishing · 2007 10.1109/mcse.2007.55
  7. Medipix3: A 64k pixel detector readout chip working in single photon counting mode with improved spectrometric performance Nuclear Instruments and Methods in Physics Research Section A Accelerators Spectrometers Detectors and Associated Equipment · Elsevier BV · 2010 10.1016/j.nima.2010.06.108
  8. Electron–Water Interactions and Implications for Liquid Cell Electron Microscopy The Journal of Physical Chemistry C · American Chemical Society · 2014 10.1021/jp507400n
  9. Universal elastic scattering cross sections for electrons in the range 1–100 keV Applied Physics Letters · American Institute of Physics · 1991 10.1063/1.104754
  10. Determination of the 3D shape of a nanoscale crystal with atomic resolution from a single image Nature Materials · Nature Portfolio · 2014 10.1038/nmat4087
  11. Hunting the Stobbs factor Ultramicroscopy · Elsevier BV · 2003 10.1016/j.ultramic.2003.08.002
  12. MULTEM: A new multislice program to perform accurate and fast electron diffraction and imaging simulations using Graphics Processing Units with CUDA Ultramicroscopy · Elsevier BV · 2015 10.1016/j.ultramic.2015.04.016
  13. CASINO V2.42—A Fast and Easy‐to‐use Modeling Tool for Scanning Electron Microscopy and Microanalysis Users Scanning · Wiley · 2007 10.1002/sca.20000
  14. Atomic-Scale Measurement of Structure and Chemistry of a Single-Unit-Cell Layer of LaAlO<sub>3</sub> Embedded in SrTiO<sub>3</sub> Microscopy and Microanalysis · Oxford University Press · 2013 10.1017/s1431927612014407
  15. NIH Image to ImageJ: 25 years of image analysis Nature Methods · Nature Portfolio · 2012 10.1038/nmeth.2089
  16. K2: A Super-Resolution Electron Counting Direct Detection Camera for Cryo-EM Microscopy and Microanalysis · Oxford University Press · 2012 10.1017/s1431927612002243
  17. Electron counting and beam-induced motion correction enable near-atomic-resolution single-particle cryo-EM Nature Methods · Nature Portfolio · 2013 10.1038/nmeth.2472
  18. Ptychography and Related Diffractive Imaging Methods Advances in imaging and electron physics · Academic Press · 2008 10.1016/s1076-5670(07)00003-1
  19. Python 3 Reference Manual CreateSpace eBooks · CreateSpace · 2009
  20. Low Dose Techniques and Cryo-Electron Microscopy Methods in molecular biology · Springer Science+Business Media · 2012 10.1007/978-1-62703-176-9_6
  21. Measurement of the Modulation Transfer Function of Infrared Imaging System by Modified Slant Edge Method Journal of the Optical Society of Korea · Optical Society of Korea · 2016 10.3807/josk.2016.20.3.381
  22. The Transmission Electron Microscope InTech eBooks · InTech · 2012 10.5772/1977
  23. Position-sensitive detection and imaging Elsevier eBooks · Elsevier BV · 2014 10.1016/b978-0-12-801363-2.00007-3
  24. On the influence of the electron dose rate on the HRTEM image contrast Ultramicroscopy · Elsevier BV · 2016 10.1016/j.ultramic.2016.11.016
  25. A fast image simulation algorithm for scanning transmission electron microscopy Advanced Structural and Chemical Imaging · Springer Science+Business Media · 2017 10.1186/s40679-017-0046-1
  26. Atomap: a new software tool for the automated analysis of atomic resolution images using two-dimensional Gaussian fitting Advanced Structural and Chemical Imaging · Springer Science+Business Media · 2017 10.1186/s40679-017-0042-5
  27. Characterisation of the Medipix3 detector for 60 and 80 keV electrons Ultramicroscopy · Elsevier BV · 2017 10.1016/j.ultramic.2017.06.010
  28. A streaming multi-GPU implementation of image simulation algorithms for scanning transmission electron microscopy Advanced Structural and Chemical Imaging · Springer Science+Business Media · 2017 10.1186/s40679-017-0048-z
  29. Asic developments for radiation imaging applications: The medipix and timepix family Nuclear Instruments and Methods in Physics Research Section A Accelerators Spectrometers Detectors and Associated Equipment · Elsevier BV · 2017 10.1016/j.nima.2017.07.029
  30. Protein structure determination by electron diffraction using a single three-dimensional nanocrystal Acta Crystallographica Section D Structural Biology · 2017 10.1107/s2059798317010348
  31. Deferred slanted-edge analysis: a unified approach to spatial frequency response measurement on distorted images and color filter array subsets Journal of the Optical Society of America A · Optica Publishing Group · 2018 10.1364/josaa.35.000442
  32. Dr. Probe: A software for high-resolution STEM image simulation Ultramicroscopy · Elsevier BV · 2018 10.1016/j.ultramic.2018.06.003
  33. Accuracy and Precision of Edge-Based Modulation Transfer Function Measurement for Sampled Imaging Systems IEEE Access · Institute of Electrical and Electronics Engineers · 2018 10.1109/access.2018.2856742
  34. Single particle cryo-EM reconstruction of 52 kDa streptavidin at 3.2 Angstrom resolution Nature Communications · Nature Portfolio · 2019 10.1038/s41467-019-10368-w
  35. Radiation damage to organic and inorganic specimens in the TEM Micron · Elsevier BV · 2019 10.1016/j.micron.2019.01.005
  36. Low dose scanning transmission electron microscopy of organic crystals by scanning moiré fringes Micron · Elsevier BV · 2019 10.1016/j.micron.2019.01.014
  37. Four-Dimensional Scanning Transmission Electron Microscopy (4D-STEM): From Scanning Nanodiffraction to Ptychography and Beyond Microscopy and Microanalysis · Oxford University Press · 2019 10.1017/s1431927619000497
  38. 3D Electron Diffraction: The Nanocrystallography Revolution ACS Central Science · American Chemical Society · 2019 10.1021/acscentsci.9b00394
  39. Sub-100 nanosecond temporally resolved imaging with the Medipix3 direct electron detector Ultramicroscopy · Elsevier BV · 2019 10.1016/j.ultramic.2019.112917
  40. SciPy 1.0: fundamental algorithms for scientific computing in Python Nature Methods · Nature Portfolio · 2020 10.1038/s41592-019-0686-2
  41. Imaging Beam‐Sensitive Materials by Electron Microscopy Advanced Materials · Wiley · 2020 10.1002/adma.201907619
  42. Practical considerations for using K3 cameras in CDS mode for high-resolution and high-throughput single particle cryo-EM Journal of Structural Biology · Elsevier BV · 2021 10.1016/j.jsb.2021.107745
  43. Electron-event representation data enable efficient cryoEM file storage with full preservation of spatial and temporal resolution IUCrJ · International Union of Crystallography · 2020 10.1107/s205225252000929x
  44. Single-particle cryo-EM at atomic resolution Nature · Nature Portfolio · 2020 10.1038/s41586-020-2829-0
  45. Experimental evaluation of super-resolution imaging and magnification choice in single-particle cryo-EM Journal of Structural Biology X · Elsevier BV · 2021 10.1016/j.yjsbx.2021.100047
  46. Prismatic 2.0 – Simulation software for scanning and high resolution transmission electron microscopy (STEM and HRTEM) Micron · Elsevier BV · 2021 10.1016/j.micron.2021.103141
  47. 3D Electron Diffraction for Chemical Analysis: Instrumentation Developments and Innovative Applications Chemical Reviews · American Chemical Society · 2021 10.1021/acs.chemrev.1c00207
  48. Characterization of a hybrid pixel counting detector using a silicon sensor and the IBEX readout ASIC for electron detection Journal of Instrumentation · Institute of Physics · 2021 10.1088/1748-0221/16/10/p10034
  49. Free, flexible and fast: Orientation mapping using the multi-core and GPU-accelerated template matching capabilities in the Python-based open source 4D-STEM analysis toolbox Pyxem Ultramicroscopy · Elsevier BV · 2022 10.1016/j.ultramic.2022.113517
  50. The abTEM code: transmission electron microscopy from first principles Open Research Europe · European Commission · 2021 10.12688/openreseurope.13015.1
  51. Studies in penetration of charged particles in matter Nuclear Physics · Elsevier BV · 1965 10.1016/0029-5582(65)90738-8
  52. AtomAI framework for deep learning analysis of image and spectroscopy data in electron and scanning probe microscopy Nature Machine Intelligence · Nature Portfolio · 2022 10.1038/s42256-022-00555-8
  53. An Introduction to Monte Carlo Methods 1995 10.1093/oso/9780195088748.003.0001