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

Quantifying noise limitations of neural network segmentations in high-resolution transmission electron microscopy

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

기본 정보

저자
  1. Matthew Helmi Leth Larsen — Computational Atomic-scale Materials Design (CAMD), Department of Physics, Technical University of Denmark, DK-2800 Kgs. Lyngby, Denmark
  2. William Bang Lomholdt — National Center for Nano Fabrication and Characterization, Technical University of Denmark, DK-2800 Kgs. Lyngby, Denmark
  3. Cuauhtémoc Núñez Valencia — Computational Atomic-scale Materials Design (CAMD), Department of Physics, Technical University of Denmark, DK-2800 Kgs. Lyngby, Denmark
  4. Thomas W. Hansen — National Center for Nano Fabrication and Characterization, Technical University of Denmark, DK-2800 Kgs. Lyngby, Denmark
  5. Jakob Schiøtz — Computational Atomic-scale Materials Design (CAMD), Department of Physics, Technical University of Denmark, DK-2800 Kgs. Lyngby, Denmark
DOI
10.1016/j.ultramic.2023.113803
저널
Ultramicroscopy
발행년도
2023
발행기관
Elsevier BV
피인용수
5
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.ultramic.2023.113803
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W4384008608

평가 내용

관련도
간접 관련
사업분야
화학·수지 · (21) 에폭시수지
부 분야
(15) 디스플레이 패널재료, (16) CPI(투명 폴리이미드)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
High-resolution transmission electron microscopy, neural network segmentations, nanoparticles, signal-to-noise ratio, machine learning
판단 근거
본 논문은 HR-TEM 이미지를 활용한 나노입자 분할(segmentation)을 위한 딥러닝 모델 연구로, 직접적인 제품 연구는 아니나 고분자 및 나노 소재의 미세 구조 분석 기법을 다룹니다.
R&D 활용 포인트
에폭시/페놀 수지 내 나노 충전제 분산 상태 분석이나 디스플레이용 박막/필름의 원자 단위 결함 및 계면 분석을 위한 AI 기반 이미지 처리 기술로 응용 가능합니다.
평가 입력
본문 59,479자 중 30,032자 발췌

초록

Motivated by the need for low electron dose transmission electron microscopy imaging, we report the optimal frame dose (i.e. e−/Å2) range for object detection and segmentation tasks with neural networks. The MSD-net architecture shows promising abilities over the industry standard U-net architecture in generalising to frame doses below the range included in the training set, for both simulated and experimental images. It also presents a heightened ability to learn from lower dose images. The MSD-net displays mild visibility of a Au nanoparticle at 20–30 e−/Å2, and converges at 200 e−/Å2 where a full segmentation of the nanoparticle is achieved. Between 30 and 200 e−/Å2 object detection applications are still possible. This work also highlights the importance of modelling the modulation transfer function when training with simulated images for applications on images acquired with scintillator based detectors such as the Gatan Oneview camera. A parametric form of the modulation transfer function is applied with varying ranges of parameters, and the effects on low electron dose segmentation is presented.

본문 59,479자

본문 펼치기
## Quantifying Noise Limitations of Neural Network Segmentations in High-Resolution Transmission Electron Microscopy. Matthew Helmi Leth Larsen <sup>a</sup>, William Bang Lomholdt <sup>b</sup>, Cuauhtemoc Nu˜nez Valencia <sup>a</sup>, Thomas W. Hansen <sup>b</sup>, Jakob Schiøtz <sup>a</sup> _aComputational_ _Atomic-scale_ _Materials_ _Design_ _(CAMD),_ _Department_ _of_ _Physics,_ _Technical_ _University_ _of_ _Denmark,_ _DK-2800_ _Kgs._ _Lyngby,_ _Denmark_ _bNational_ _Center_ _for_ _Nano_ _Fabrication_ _and_ _Characterization,_ _Technical_ _University_ _of_ _Denmark,_ _DK-2800_ _Kgs._ _Lyngby,_ _Denmark_ Abstract Motivated by the need for low electron dose transmission electron microscopy imaging, we report the optimal frame dose ( _i.e._ _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2) range for object detection and segmentation tasks with neural networks. The MSD-net architecture shows ( _i.e._ _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2) range for object detection and segmentation tasks with neural networks. The MSD-net architecture shows promising abilities over the industry standard U-net architecture in generalising to frame doses below the range included in the training set, for both simulated and experimental images. It also presents a heightened ability to learn from lower dose images. The MSD-net displays mild visibility of a Au nanoparticle at 20-30 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2, and converges at 200 _e−/_ ˚A2 where a full segmentation of the nanoparticle is achieved. Between 30 and 200 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2 object detection applications are still possible. This work also highlights the importance of modelling the modulation transfer function when training with simulated images for applications on images acquired with scintillator based detectors such as the Gatan Oneview camera. A parametric form of the modulation transfer function is applied with varying ranges of parameters, and the effects on low electron dose segmentation is presented. 2, and converges at 200 _e−/_ ˚A2 where a full segmentation of the nanoparticle is achieved. Between 30 and 200 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A _Keywords:_ HR-TEM, Machine Learning, Modulation Transfer Function, Signal-to-noise, Beam damage 1. Introduction High-resolution transmission electron microscopy (HRTEM) is a primary method to characterise materials at the atomic scale, and is a method where an abundance of data can be obtained. HR-TEM can provide a greater temporal resolution, as opposed to scanning transmission electron microscopy, by illuminating the entire sample simultaneously. It does this, however, at the cost of the signal-to-noise ratio (SNR). Increasing the frame dose of the image can assist in increasing the interpretability of each image, but it is usually undesired to do so to avoid electron beam induced effects that are yet to be completely understood [1, 2, 3]. The averaging of many images is another method to increase the SNR. This method, however, lowers the temporal resolution and can be a tedious task that requires complex image alignment to ensure sensible results. Image alignment is also frame dose dependent as the alignment between low SNR images becomes difficult. Addressing SNR related issues has led to a quest in developing denoising methods [4, 5], often using neural networks [6, 7]. The field has seen a steady increase in applying machine learning solutions to solve various tasks of analysing and interpreting data. The importance of including machine learning in a standard workflow for HR-TEM characterisation is highlighted in multiple works [8, 9]. Pipelines for training neural networks for segmentation with hand labelled experimental data have been developed, such as the pipeline by Groschner _et_ _al._ [10], where segmented nanoparticles are classified to acquire sufficient statistics on various classes of nanoparticles. The segmentation of nanoparticles is also useful for tracking dynamic behaviour across frames [11]. Simulated images provide possibilities for large amounts of accurately labelled images for training and have been used to identify and analyse atomic columns in experimental HR-TEM sequences [12, 13]. Vincent _et_ _al._ also used simulated images to train neural networks for denoising [7]. Due to the successes of deep learning powered analysis of HR-TEM images many are seeking to understand the important aspects of optimising the generalisability and applications of deep learning models, and attempt to determine the best models available in comparison to eachother and other thresholding or clustering methods [14, 15]. In this work we look to continue the search for optimal simulated training data and neural networks, by considering the specific task of low SNR segmentation. We will report the optimal frame dose range for reliable segmentations by neural networks and how to control that range by tuning simulations. For this task we focus on the segmentation of metallic nanoparticles, more specifically CeO2 supported Au nanoparticles. Au nanoparticles serve as a useful system for studying catalytic properties of metallic nanoparticles [16]. _Preprint_ _submitted_ _to_ _Elsevier_ _June_ _9,_ _2023_ Figure 1: Top: A 3D rendered visual of three random CeO2 supported Au nanoparticle structures constructed with ASE and Bottom: A corresponding HR-TEM image simulated with abTEM using random microscope parameters from Table 1. 2. Methods This work utilises two different network architectures to perform the segmentations. The first is the well recognised U-net [17] architecture used by Madsen _et_ _al._ [12], with the only modification that the skip connections are now concatenations rather than element-wise additions [18]. The other is the MSD-net introduced by Pelt _et_ _al._ [19], which was highlighted to be a robust network against low SNR images. Both networks are convolutional neural networks that differ in their approach to capturing information from varying spatial distances in the image. The Unet’s approach gives its characteristic U-shaped architecture due to the numerous down-sampling and up-sampling layers to spread the convolutional kernel over patterns with large spatial coverage. The MSD-net in contrast maintains the same resolution throughout all layers, but dilates the convolutional kernel to spread the weights over a larger spatial region. Specific hyper-parameters regarding the network architectures can be seen in the Supplementary Online Information (SOI) together with SOI Fig. 1 & 2. To train the neural networks, supported nanoparticles are constructed with the Atomic Simulation Environment (ASE) [20] and HR-TEM images are simulated using abTEM [21]. Refer to Fig. 1 for examples. For this work, Au face centred cubic structures of varying sizes are generated so that the [110] crystal direction is aligned with the optical axis, with a slight random tilt off zone axis of up to 3 <sup>_◦_</sup> . At a random layer from the centre of the nanoparticle the [111] direction is truncated, effectively slicing a (111) plane. The exposed face of the FCC structure is attached to a (111) plane of a CeO2 slab. These systems are randomly rotated about the optical axis, and contain varying sizes of nanoparticles. This replicates realistic interfaces between Au and CeO2 identified by Liu _et al._ [16]. The image simulation then applies the parameters shown in Table 1. This is a relatively cheap operation, since the expensive part of the image simulation is generating the exitwave by computing the multislice algorithm [22]. Applying imaging imperfections such as the contrast transfer function (CTF) and the modulation transfer function (MTF) can be done multiple times on the same exitwave, which generates multiple images of the same nanoparticle with varying imaging conditions. These images are pregenerated and stored to allow for a controlled comparison between networks on the exact same dataset. Training epochs cycle through the different sets of images of the same atomic system. Each set of images is referred to as an image epoch. With 300 training epochs and 10 image epochs, each image is reused 30 times in training. Mask labels are binary images separating the Au nanoparticle from the surrounding vacuum and the CeO2 support. This is generated by computing the convex hull of the atomic coordinates. The neural networks are trained to map a single HR-TEM image to a binary mask label image, which will provide the pixels containing the nanoparticle separate from the pixels containing substrate and vacuum. An example of this is shown in the SOI Fig. 3. Once the network is trained it can be applied to an image, either simulated or experimental, and will return a probability map. Each pixel will be classified to belong to either the nanoparticle or the background (vacuum or substrate) class at some probability. This is referred to as the network inference or prediction and a threshold is applied at 0.9 to generate a binary predicted mask of the pixels that 2 the network classify with at least 90% confidence. We note that the networks trained in this work are not trained to be applied in a generic sense. The networks are trained for Au nanoparticles specifically. We have seen that the networks will show weak predictions for nanoparticles with a similar lattice constant. This is because the network learns to separate patterns, which in this context is the atomic lattice where the spacing is defined by the lattice constant. Generic networks will likely show weaker performance, due to the increased complexity of varying lattice constants. <u>Parameter</u> <u>L</u> <u>U</u> <u>Unit</u> Acceleration voltage 300 keV Defocus (∆ _f_ ) -200 200 ˚A Spherical aberration ( _Cs_ ) 0 12.45 _µ_ m Focal spread 5 20 ˚A Blur 0.1 0.8 ˚A Frame dose 10 <sup>2</sup> 10 <sup>6</sup> _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A 2 <u>Resolution</u> <u>0.07</u> <u>0.08</u> ˚A/pixel Table 1: Microscope parameters. For each image series, a set of microscope parameters are drawn within the limits given here, except the acceleration voltage which is kept constant. L and U denote the lower and upper limits, respectively. All distributions are uniform, except for the electron dose which is exponential. Experimental images of a CeO2 supported Au nanoparticle were acquired on an image corrected FEI Titan 80-300 ECELL at 300 keV, using a Gatan OneView detector. The Au nanoparticle is imaged initially at a frame dose of 10 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2, where noise dominates the images. The dose of 10 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2, where noise dominates the images. The doserate is continuously increased to above 1000 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2, doserate is continuously increased to above 1000 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2, where atomic columns are relatively visible. The Au nanoparticle is situated in vacuum at 200 <sup>_◦_</sup> _C_, so it is expected that the nanoparticle is relatively inert. We refer to work by Lomholdt _et al._ [23] for experimental details and details of the SNR at varying frame doses. Our approach here is to utilise the segmentation of the final frame of this continuously increasing doserate series as a pseudo-ground truth to gauge the performance of the network at lower frame doses. Due to drift in the images of the nanoparticle, pixel-wise scores such as the F1-Score will not be used, instead we will measure the area of segmentation, where the ground truth area will be the target. For scintillating material based detectors, such as the Gatan OneView, the approximation of pure Poissonian noise in HR-TEM images breaks down, since the spectral profile of the noise is altered by the modulation transfer function (MTF) [24, 25]. This function is the Fourier transform of the point spread function, which is an intrinsic property of the scintillating material [26]. Here we study the parametric form from Lee _et_ _al._ [27], shown in Eq. 1. <u>1</u> _MTF_ (˜ _q_ ) = (1 _−_ _C_ ) _·_ (1) 1 + ( <sup>_<u>q</u>_</sup> <sup><u>˜</u></sup> _c_ 0 <sup>)</sup> <sup>_c_</sup> <sup>3</sup> <sup>+</sup> <sup>_C_</sup> where the spatial frequencies are normalised by the Nyquist frequency, which is related to the sampling, _s_ of the detector by _q_ ˜ = _q/qN_ = 2 _· q · s_ . The limits of the function are 1 for _q_ ˜ _→_ 0 due to a normalisation and _C_ for _q_ _→∞_ . The function is fitted following the noise method described in Ref. [26]. 3. Results The following section will present results presenting how to achieve reliable and robust low dose segmentations of HR-TEM images. This will be divided into firstly a comparison of two neural network architectures and their ability to differentiate signal from noise. The neural networks will be trained on simulated data with different electron dose ranges to gauge their abilities to learn from training datasets of varying difficulty. After this a detailed analysis on how to tune performance by optimising the MTF will be presented. _3.1._ _Dataset_ _Dose_ _Limits_ _and_ _Neural_ _Network_ _Compari-_ _son_ An obvious first step in approaching segmentation of low SNR data is to investigate the performance of various architectures. Here we use the experimental image series to benchmark the U-net against the MSD-net and identify the best neural network for low SNR HR-TEM segmentation. We test the neural networks abilities to train on two different ranges of frame dose presented in Table 2. The low frame dose range covers the range of the experimental data series in this work, where-as the high frame dose range feeds the network much clearer simulated images, making it an easier dataset to learn. It is of interest to determine whether the neural networks ability to differentiate signal from noise benefits more from seeing primarily noisy images or clearer images of the atomic structure. Table 2: Frame dose ranges for simulated images. Comparisons will be made by plotting the segmented area versus frame dose to identify when each network begins to detect the nanoparticle and when the segmented area converges _i.e._ the network identifies the entire nanoparticle. The final frame segmentation should be understood as a a pseudo-ground truth. The aim is to segment a similar area as in the ground truth at as low frame dose as possible. The area may not be exact due to possible morphological changes in the nanoparticle. The morphological changes and slight drift disallows the use of, for example, an F1-Score against the given frame and the ground truth for the experimental data series, since the overlap of the segmentations will not be sensible at a pixel-wise level. <u>Parameter</u> <u>L</u> <u>U</u> <u>Unit</u> <u>2</u> High frame dose range 10 <sup>2</sup> 10 <sup>6</sup> _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A 2 <u>Low</u> <u>frame</u> <u>dose</u> <u>range</u> <u>10</u> <sup>1</sup> <u>10</u> <sup>4</sup> _<u>e</u>_ <sup>_−_</sup> _<u>/</u>_ <sup>˚</sup> <u>A</u> 3 The ideal case of these plots will be a step function, meaning the entire nanoparticle is immediately identified, at some minimal frame dose. The MSD-net presents an ability to generalise outside of the training data range, whereas the U-net only performs within the training data range. Training the MSDnet on the low frame dose range increases the visibility of the nanoparticle between 40-100 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2 by _∼_ 50%, as of the nanoparticle between 40-100 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2 by _∼_ 50%, as seen in Fig. 2(a), however it is also a noteworthy feature that the MSD-net is able to segment significant regions below the lower limit of the high frame dose range when trained on the high frame dose range. This proves a superior ability to separate noise to signal and generalise beyond the limits of the training set, which means the MSD-net is a better candidate for when data is limited. Fig. 2(b) visualises the improvement in low dose segmentation by overlapping the ground truth segmentation (cyan coloured mask), with the segmentation from the two networks trained on each dose range (colour coded mask). The MSD-net trained on both dose ranges show a lower limit at 20-30 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2. limit at 20-30 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2. Predictions from the U-net are not as robust as the MSD-net. Fig. 3(b) shows that the U-net trained on the low frame dose range is not entirely reliable due to the difficulties in defining the edges of the nanoparticle. Comparing the low dose trained MSD-net segmentation at 49 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2 in Fig. 2(b) to the low dose trained U-net at 49 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2 in Fig. 2(b) to the low dose trained U-net at 49 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2 in Fig. 3(b), the segmented area is similar however _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2 in Fig. 3(b), the segmented area is similar however the edges are more well defined in the segmentation from the MSD-net. The low dose trained U-net achieves some visibility a few _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2 below the MSD-net, as seen in Fig. 3, however few _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2 below the MSD-net, as seen in Fig. 3, however the over segmentation at higher dose highlights that this network is possibly being triggered by noise as well. In SOI Fig. 4 the F1-Score as a function of training epochs with simulated data highlight that the low dose range dataset becomes a harder problem for both neural networks to learn and generalise. Both networks show greater signs of overfitting. The MSD-net seems to handle more difficult problems better than the U-net. We have tested both networks on the full dose range of 10 <sup>1</sup> -10 <sup>6</sup> _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2 and find that works on the full dose range of 10 <sup>1</sup> -10 <sup>6</sup> _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2 and find that the over segmentation artefacts from the low frame dose range remain. This furthers the argument that the networks benefit more from the clearer images of the atomic structures. As a sanity check, we show the effect of various training dataset sizes in SOI Fig. 5. Finally Fig. 4 compares the two networks trained on the high frame dose range data, showcasing the performance gain in the low frame dose regime with the MSD-net segmenting 50% of the nanoparticle at a _∼_ 70% lower frame dose, and both show a reliable convergence at 200 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2. will described how noise characteristics are extracted from experimental data and modelled in simulated data. Eq. 1 was fitted to the azimuthally averaged centred Fourier transform of the vacuum region in the images, as done in [26, 27]. See SOI Fig. 6 & 7 for the fitted MTF of the first frame and last frame of the experimental image series, respectively. Fig. 5 presents a distribution of fitted parameters dependent on the frame dose of the experimental images. The parameter points with white dots are the fits with an _R_ <sup>2</sup> _≥_ 0 _._ 98. It is vital to understand the role of each parameter in Eq. 1, to interpret the distributions in Fig. 5. The _c_ 0 parameter represents the _q_ ˜ value of the half-maximum, which increases with frame dose and converges around 200 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2. This means that at frame doses above 200 _e−/_ ˚A2 spatial frequencies up to _∼_ 0 _._ 27 _· qN_ are maintained at at least half maximum, but for lower doses the function is narrower. As a result spatial frequencies above _c_ 0 _· qN_ are effectively filtered out at higher frame doses. The curvature of the function is consistently close to a Lorentzian form, as revealed by the _c_ 3 parameter (higher values approach a low pass step function). The _C_ parameter reveals the change in the tail of the function _i.e._ the _q_ _→∞_ limit. _C_ is non-zero at lower frame dose and approaches 0 at higher doses. We interpret this as a fraction of the noise that is not subject to the point spread function of the scintillator, but is generated later in the detection process. We label this part of the noise “readout noise” although it may come from more than one source. All parameters show most variation below 200 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2. The variation below this limit is likely due to the transition between readout noise and shot noise as the dominating noise source [28]. The readout noise appears after the scintillating material and is therefore not affected by the MTF. The contributions of the readout noise and shot noise are modelled separately in our simulations and in order to extract the fractional contribution of each noise source we look at how _C_ dependends on the frame dose (in electrons per pixel). This value represents the readout noise, a minimal noise always present in the data. At higher frame dose readout noise is hidden by the shot noise, but at lower dose the readout noise dominates. The shot noise is modelled as a Poisson distribution, _P_ ( _ND_ ), where _ND_ is the frame dose in electrons per pixel. For lack of better models, the read out noise is also modelled as a Poisson distribution, _P_ ( _N_ 0). _N_ 0 can be therefore be extracted by fitting the _ND_ dependency of _C_ with Eq. 2, see Fig. 6. _C_ <sup>2</sup> = _<u>N</u>_ <u>0</u> _N_ 0 + _ND_ _._ (2) 2. _3.2._ _Frame_ _dose_ _limit_ Low dose segmentation performance relies on a proper modelling of the noise in the simulated data. The following We thus model the total noise as a sum of two Poisson distributions, one representing the shot noise spread by the MTF, the other represents the readout noise: _Ptotal_ = _MTF_ [ _P_ ( _ND_ )] + _P_ ( _N_ 0) _._ (3) 4 Figure 2: Comparison of the MSD-net trained with simulated images within the high frame dose range to simulated images within the low frame dose range (see Table 2). (a) Segmented area on the experimental HR-TEM images by each model as a function of frame dose. Black dashed line represents the convergence of the area of segmentation, symbolising where the network segmented the entire nanoparticle. The minimum and maximum area beyond this point form the shaded grey bar as a visual aid for the target area of segmentation. Colour coded dashed lines for each model is shown representing the frame dose at which the model achieves 50% segmentation of the nanoparticle. (b) Colour coded examples of the segmentation at 49 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A <sup>2</sup> overlapped with the segmentation of the final frame (ground truth coloured in cyan). Top: The high dose range trained MSD-net segmentation and Bottom: The low dose range trained MSD-net segmentation. This highlights the ability to achieve low dose segmentation. Figure 3: Comparison of the U-net trained with simulated images within the high frame dose range to simulated images within the low frame dose range (see Table 2). (a) Segmented area on the experimental HR-TEM images by each model as a function of frame dose. Black dashed line represents the convergence of the area of segmentation, symbolising where the network segmented the entire nanoparticle. The minimum and maximum area beyond this point from the shaded grey bar as a visual aid for the target area of segmentation. Colour coded dashed lines for each model is shown representing the frame dose at which the model achieves 50% segmentation of the nanoparticle. (b) Top: maximum segmentation overlapped with the segmentation of the final frame (ground truth). This highlights any over-segmented areas, due to difficulties in defining the boundaries of the nanoparticle. Bottom: Segmentation at 49 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A <sup>2</sup> overlapped with the segmentation of the final frame (ground truth). This highlights the ability to achieve low dose segmentation. 5 Figure 4: Comparison of the MSD-net’s and U-net’s ability to learn to distinguish between signal and noise. The plot shows the segmented area on the experimental HR-TEM images by each model as a function of frame dose. Black dashed line represents the convergence of the area of segmentation, symbolising where the network segmented the entire nanoparticle. The minimum and maximum area beyond this point from the shaded grey bar as a visual aid for the target area of segmentation. Colour coded dashed lines for each model is shown representing the frame dose at which the model achieves 50% segmentation of the nanoparticle. Figure 5: The fitted parameters of Eq. 1 for each frame in the experimental data series. Fits with _R_ <sup>2</sup> _≥_ 0 _._ 98 are marked by a white dot. The orange line represents the mean value. The approach we have taken to model the variations of _c_ 0 and _c_ 3 is to randomise the parameters within a given range as done by Madsen _et_ _al_ . [12], which alters the spectral profile of the shot noise. The extracted _N_ 0 from 6 is varied at _±_ 50%, _i.e._ _N_ 0 _∈_ [0 _._ 005 _,_ 0 _._ 015] when applied to simulated images. We acknowledge that we are not accounting for all noise contributions and that noise is by nature difficult to reproduce. Varying _N_ 0 accounts for deviations from our simplified noise model. In SOI Fig. 8, we show that with the fitted _N_ 0 applied as a separate Poissonian noise source we are able to replicate the _C_ parameter dependency on the frame dose from MTFs fitted to a simulated image series of vacuum at increasing frame dose. The parameters _c_ 0 and _c_ 3 show a larger spread in the simulation compared to the experimentally fitted values. We have neglected the modelling of these parameters and they are simply ranged within a uniform distribution, as presented in SOI Fig. 8. The effect of altering this range is explored in Table 3. Figure 6: The correlation of the _C_ parameter of Eq. 1 to the frame dose as electrons per pixel. The fraction of readout noise, _N_ 0 is extracted by fitting Eq. 2. The orange lines shows the fitted curve with _R_ <sup>2</sup> = 0 _._ 94 and _N_ 0 = 0 _._ 01. The MTF is an intrinsic property of the specific detector being used. It is of interest to identify the importance of modelling the exact MTF or if a range of varying MTF profiles can be applied. To study the effect of the MTF spread on neural network training, the ranges of _c_ 0 and _c_ 3 can be varied, while maintaining a constant range of readout noise defined by _N_ 0. The _c_ 0 parameters controls the spatial frequency dependent half-maximum of the MTF. Spatial frequencies beyond _c_ 0 are heavily damped. The _c_ 3 parameter alters the curvature of the MTF profile, which affects the spatial frequencies near the halfmaximum. Table 3 summarises 5 different MTF parameter ranges applied to 5 simulated datasets of identical atomic systems. All apply the microscope parameters from Table 1. An identical MSD-net is trained on each dataset. The first model, MTF 1, will take the parameters from Ref. [12]. Motivations behind the other MTF models will be explained as the results are discussed. Higher values of _c_ 0 in MTF 1 and MTF 2 assist the network in low frame dose segmentation. Fig. 7(a) presents the visibility of the entire nanoparticle as a function of frame dose from 3 MSD-net models trained on MTF models 1-3 individually. MTF 1 and MTF 2 show very simi 6 _c_ 0 _c_ 3 _N_ 0 MTF <u>L</u> <u>U</u> <u>L</u> <u>U</u> <u>L</u> <u>U</u> 1 0.4 0.6 2.0 3.0 0.005 0.015 2 0.4 0.6 1.0 5.0 0.005 0.015 3 0.2 0.3 1.0 5.0 0.005 0.015 4 0.25 0.6 2.0 5.0 0.005 0.015 <u>5</u> <u>0.6</u> <u>0.8</u> <u>2.0</u> <u>5.0</u> <u>0.005</u> <u>0.015</u> Table 3: The various MTF models studied in the work. 1-5 represents different ranges of parameters in Eq. 1. lar performance, which highlights that it is not important that the form of the MTF is exactly Lorentzian. This was determined by ranging _c_ 3 over a larger range in MTF 2. Following this result, MTF 3 samples a range of _c_ 0 more suited to the fitted ranges in Fig. 5. The result of this range were detrimental on the low dose performance, delaying the visibility of the nanoparticle by _∼_ 25% in electron dose. Applying the range of _c_ 0 within the experimental fit by MTF 3 provide more refined segmentations at higher frame dose. The variations in the segmented area at higher doses for the MTF 3 trained model are smaller than that of the MTF 1 and 2. The variations of MTF 1 and MTF 2 are shown by the shaded grey region. These variations can be due to difficulties in defining the boundaries between the nanoparticle and substrate/vacuum in the images. Fig. 7(b) shows the maximum segmented area of MTF 2 (top) and MTF 3 (bottom). Here it is seen that the MTF 2 trained model has minor difficulties in defining the border of the nanoparticles. We speculate that preserving spatial frequencies up to around half-Nyquist is preferential for the networks to learn to differentiate signal from noise. In practice this means having a _c_ 0 that ranges up to or slightly above 0 _._ 5 _· qN_ . Values of _c_ 0 within the fitted range from experimental data is however also necessary for refining boundaries of the segmented areas. MTF 4 ranges between the lower limit of the fitted _c_ 0 from MTF 3 and the upper limits of _c_ 0 from MTF 1 and 2, and achieves the low dose performance of MTF 1 and 2 and the refined boundaries of MTF 3 at higher dose. MTF 5 samples larger _c_ 0, beyond half-Nyquist, with the same range as MTF 1 and 2. Fig. 8(a) presents the performance of MTF models 2,4, and 5. MTF 5 shows much more visibility at low dose frames, however much more sporadic variations in the higher frame dose regime. Fig. 8(b) shows the maximum segmented area of MTF 5, which highlights its weakness in identifying the borders of the nanoparticle; The segmentation bleeds into the surrounding vacuum. This renders the low dose segmentations of MTF 5 unreliable, as it seems it is being triggered by noise in the vacuum. MTF 5 has such a high _c_ 0 range that it approaches a noise profile appropriate for direct electron counting detectors such as the Gatan K2/3 camera [25]. The maximum segmentation of MTF 4 in contrast shows very sharp separations between the nanoparticle and its surroundings. This proves that ranging _c_ 0 such that it covers the range fitted from experimental data, but also such that it retains spatial frequencies up to half-Nyquist is ideal for optimal segmentation performance across the entire frame dose range. We note that in all cases the area of segmentation converges at approximately 200 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2, depicted by the dashed black line. This is the first reported lower limit of frame dose for a reliable full segmentation. The overlap in the middle of Figs. 7(b) and 8(b) shows the morphological changes in the nanoparticle but also highlight that both are segmentations of the same nanoparticle. Here we also highlight that the segmentation is sensible and we show that this is at a level where a human interpreter would have difficulties being certain of the presence of the entire nanoparticle. The segmentations below 200 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2 are not full seg mentations and cannot be used to for example measure the area, but can still be used for object detection purposes and regional Fourier transform extraction. For these purposes 50% of segmentation would be a sensible minimum, represented by the colour coded dashed lines in Figs. 2(a), 3(a), 7(a), and 8(a). To further prove the performance of the MTF 4 model, we show that an MSD-net trained with the MTF 4 model performs better on a simulated dataset with the MTF 3 model applied, compared to an MSD-net trained with the MTF 3 model. An image series was simulated to replicate the experimental series. This simulated series contains 1000 images of a CeO2 supported Au nanoparticle in the [110] zone axis positioned similarly to the experimental sample, with a blur range of [0.1, 0.2] <sup>˚</sup> A, focal spread range of [5, 6] <sup>˚</sup> A, defocus range of [48, 50] <sup>˚</sup> A, C _s_ range of [7, 8] _µ_ m, a frame dose from [10 <sup>1</sup>, 10 <sup>4</sup> ] _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2, 4. Conclusions In this work we have investigated the quantitative limit of low SNR HR-TEM image segmentation. A continuously increasing frame dose HR-TEM image series of a CeO2 supported Au nanoparticle was acquired to rate the performance of neural network segmentations at low frame dose and compare the segmentation to the final (highest frame dose) frame. The segmentations below 200 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A range of [7, 8] _µ_ m, a frame dose from [10 <sup>1</sup>, 10 <sup>4</sup> ] _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2, and the MTF 3 model. In this case we have exact ground truths and the F1-Score will be used as a metric. SOI Fig. 9a presents a histogram of the F1-Score for each image in the simulated series for both networks in mention. It is immediately apparent that the MTF 4 dataset trains a network that outperforms the MTF 3 trained network on images with the MTF 3 ranges applied. SOI Fig. 9b displays the F1-Score against frame dose, which highlights the improved performance of the MTF 4 dataset trained MSD-net is primarily on low frame dose simulated images, with a higher mean F1-Score in the range of 10-100 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2. 2. 7 Figure 7: Comparison of the first 3 MTF models presented in Table 3. (a) Segmented area on the experimental HR-TEM images by each model as a function of frame dose. Black dashed line represents the convergence of the area of segmentation, symbolising where the network segmented the entire nanoparticle. The minimum and maximum area beyond this point from the shaded grey bar as a visual aid for the target area of segmentation. Colour coded dashed lines for each model is shown representing the frame dose at which the model achieves 50% segmentation of the nanoparticle. MTF 2 shows the best performance (most nanoparticle visibility at the lowest frame dose). (b) Colour coded examples of the maximum segmentation overlapped with the segmentation of the final frame (ground truth). This highlights any over-segmented areas, due to difficulties in defining the boundaries of the nanoparticle. Figure 8: Comparison of the last 3 MTF models presented in Table 3. (a) Segmented area on the experimental HR-TEM images by each model as a function of frame dose. Black dashed line represents the convergence of the area of segmentation, symbolising where the network segmented the entire nanoparticle. The minimum and maximum area beyond this point from the shaded grey bar as a visual aid for the target area of segmentation. Colour coded dashed lines for each model is shown representing the frame dose at which the model achieves 50% segmentation of the nanoparticle. MTF 4 shows the best performance (most nanoparticle visibility at the lowest frame dose and a tight convergence of the segmented area). (b) Colour coded examples of the maximum segmentation overlapped with the segmentation of the final frame (ground truth). This highlights any over-segmented areas, due to difficulties in defining the boundaries of the nanoparticle. 8 The results show that the neural networks are achieving human level performance, which means it can safely be equipped for large-scale automated analysis to relieve the human operator of repetitive tasks. The MSD-net showed promising low SNR performance compared to the industry standard U-net. The MSD-net showed an ability to generalise outside the frame dose range of the training set and provide reliable segmentations, with well defined boundaries down to 20 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2. The U-net was only able to operate within the given training range, and when trained with lower dose images, presented weaknesses in defining boundaries between the nanoparticle and its surroundings. This highlights the MSD-net’s superior ability to learn the differences between signal and noise. A parametric form of the MTF was fitted to all frames in the HR-TEM series resulting in a frame dose dependent range of parameters. The noise contributions were separated into two sources, shot noise and readout noise, and the fractional contribution of each was extracted from the noise floor given by the _C_ parameter of Eq. 1. It was shown that modelling the MTF to retain spatial frequencies up to _∼_ 0 _._ 5 _· qN_ with at least half-maximum assisted the MSD-net in detecting the nanoparticle at lower frame dose. It seems that modelling the MTF with a wide range of parameters that both consist of parameters within the fitted range and parameters that maintain spatial frequencies up to half-Nyquist allows the MSD-net to operate in both the shot noise and readout noise dominated regimes. All results converged at 200 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2. This is the first report of a frame dose limit for reliable neural network segmentations. Neural network predictions with HR-TEM images between 20-100 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2 are still useful for object All results converged at 200 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A images between 20-100 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A2 are still useful for object detection purposes. Knowledge of these frame dose limits will provide the community with realistic expectations from deep learning models and an ability to design experiments that are optimised for their needs from deep learning powered analysis tools, whether it be object detection in live low dose imaging, or statistical data accumulating of morphological properties, amongst others. Funding The authors acknowledge financial support from the Independent Research Fund Denmark (DFF-FTP) through grant no. 9041-00161B. Availability of data and materials The code is available on GitLab [29]. The trained networks, the scripts and data used to train the network and generate all figures are available from the DTU Data repository at doi:10.11583/DTU.22836338. Competing interests The authors declare that they have no competing interests. References [1] P. E. Batson, Motion of Gold Atoms on Carbon in the Aberration-Corrected STEM, Microscopy and Microanalysis 14 (1) (2008) 89–97. `[doi:10.1017/s1431927608080197](https://doi.org/10.1017/s1431927608080197)` . [2] D. V. Dyck, I. Lobato, F.-R. Chen, C. Kisielowski, Do you believe that atoms stay in place when you observe them in HREM?, Micron 68 (2015) 158–163. `[doi:10.1016/j.micron.](https://doi.org/10.1016/j.micron.2014.09.003)` `[2014.09.003](https://doi.org/10.1016/j.micron.2014.09.003)` . [3] [R. F. Egerton, Radiation damage to organic and inorganic spec-](https://doi.org/10.1016/j.micron.2019.01.005) imens in [the](https://doi.org/10.1016/j.micron.2019.01.005) TEM, Micron 119 (November 2018) (2019) 72–87. `[doi:10.1016/j.micron.2019.01.005](https://doi.org/10.1016/j.micron.2019.01.005)` . URL `[https://doi.org/10.1016/j.micron.2019.01.005](https://doi.org/10.1016/j.micron.2019.01.005)` [4] [H. Du, A nonlinear filtering algorithm for denoising HR(S)TEM](http://dx.doi.org/10.1016/j.ultramic.2014.11.012) [micrographs,](http://dx.doi.org/10.1016/j.ultramic.2014.11.012) Ultramicroscopy 151 (2015) 62–67. `[doi:10.1016/](https://doi.org/10.1016/j.ultramic.2014.11.012)` `[j.ultramic.2014.11.012](https://doi.org/10.1016/j.ultramic.2014.11.012)` . URL `[http://dx.doi.org/10.1016/j.ultramic.2014.11.012](http://dx.doi.org/10.1016/j.ultramic.2014.11.012)` [5] T. Furnival, R. K. Leary, P. A. Midgley, [Denoising](http://dx.doi.org/10.1016/j.ultramic.2016.05.005) time [resolved microscopy image sequences with singular value thresh-](http://dx.doi.org/10.1016/j.ultramic.2016.05.005) [olding,](http://dx.doi.org/10.1016/j.ultramic.2016.05.005) Ultramicroscopy 178 (2017) 112–124. `[doi:10.1016/j.](https://doi.org/10.1016/j.ultramic.2016.05.005)` `[ultramic.2016.05.005](https://doi.org/10.1016/j.ultramic.2016.05.005)` . URL `[http://dx.doi.org/10.1016/j.ultramic.2016.05.005](http://dx.doi.org/10.1016/j.ultramic.2016.05.005)` [6] R. Lin, R. Zhang, C. Wang, X.-Q. Yang, H. L. Xin, TEMIm ageNet training library and AtomSegNet deep-learning models for high-precision atom segmentation, localization, denoising, and deblurring of atomic-resolution images, Scientific Reports 11 (1) (2021) 5386. `[doi:10.1038/s41598-021-84499-w](https://doi.org/10.1038/s41598-021-84499-w)` . [7] J. L. Vincent, R. Manzorro, S. Mohan, B. Tang, D. Y. Sheth, E. P. Simoncelli, D. S. Matteson, C. Fernandez-Granda, P. A. Crozier, Developing and Evaluating Deep Neural NetworkBased Denoising for Nanoparticle TEM Images with Ultra-Low Signal-to-Noise, Microscopy and Microanalysis 27 (6) (2021) 1431–1447. `[doi:10.1017/S1431927621012678](https://doi.org/10.1017/S1431927621012678)` . [8] S. R. Spurgeon, C. Ophus, L. Jones, A. Petford-Long, S. V. Kalinin, M. J. Olszta, R. E. Dunin-Borkowski, N. Salmon, K. Hattar, W. C. D. Yang, R. Sharma, Y. Du, A. Chiaramonti, H. Zheng, E. C. Buck, L. Kovarik, R. L. Penn, D. Li, X. Zhang, M. Murayama, M. L. Taheri, Towards [data-driven](http://dx.doi.org/10.1038/s41563-020-00833-z) nextgeneration [transmission](http://dx.doi.org/10.1038/s41563-020-00833-z) electron microscopy, Nature Materials 20 (3) (2021) 274–279. `[doi:10.1038/s41563-020-00833-z](https://doi.org/10.1038/s41563-020-00833-z)` . URL `[http://dx.doi.org/10.1038/s41563-020-00833-z](http://dx.doi.org/10.1038/s41563-020-00833-z)` [9] K. P. Treder, C. Huang, J. S. Kim, A. I. Kirkland, Applications of deep learning in electron microscopy, Microscopy 71 (August 2021) (2022) I100–I115. `[doi:10.1093/jmicro/dfab043](https://doi.org/10.1093/jmicro/dfab043)` . [10] C. K. Groschner, C. Choi, M. C. Scott, Machine Learn ing Pipeline for Segmentation and Defect Identification from High-Resolution Transmission Electron Microscopy Data, Microscopy and Microanalysis 27 (3) (2021) 549–556. `[doi:10.](https://doi.org/10.1017/S1431927621000386)` `[1017/S1431927621000386](https://doi.org/10.1017/S1431927621000386)` . [11] K. Faraz, T. Grenier, C. Ducottet, T. Epicier, Deep [learning](https://doi.org/10.1038/s41598-022-06308-2) detection of nanoparticles and [multiple](https://doi.org/10.1038/s41598-022-06308-2) object tracking of their dynamic evolution [during](https://doi.org/10.1038/s41598-022-06308-2) in situ ETEM studies, Scientific Reports 12 (1) (2022) 1–15. `[doi:10.1038/s41598-022-06308-2](https://doi.org/10.1038/s41598-022-06308-2)` . URL `[https://doi.org/10.1038/s41598-022-06308-2](https://doi.org/10.1038/s41598-022-06308-2)` [12] J. Madsen, P. Liu, J. Kling, J. B. Wagner, T. W. Hansen, O. Winther, J. Schiøtz, A Deep Learning Approach to Identify Local Structures in Atomic-Resolution Transmission Electron Microscopy Images, Advanced Theory and Simulations 1 (8) (2018) 1–12. `[doi:10.1002/adts.201800037](https://doi.org/10.1002/adts.201800037)` . [13] M. Ragone, V. Yurkiv, B. Song, A. Ramsubramanian, [R. Shahbazian-Yassar, F. Mashayek, Atomic column heights de-](https://doi.org/10.1016/j.commatsci.2020.109722) [tection in metallic nanoparticles using deep convolutional learn-](https://doi.org/10.1016/j.commatsci.2020.109722) [ing,](https://doi.org/10.1016/j.commatsci.2020.109722) Computational Materials Science 180 (December 2019) (2020) 109722. `[doi:10.1016/j.commatsci.2020.109722](https://doi.org/10.1016/j.commatsci.2020.109722)` . URL `[https://doi.org/10.1016/j.commatsci.2020.109722](https://doi.org/10.1016/j.commatsci.2020.109722)` 9 [14] J. P. Horwath, D. N. Zakharov, R. M´egret, E. A. Stach, [Un-](http://dx.doi.org/10.1038/s41524-020-00363-x) derstanding important features of deep learning models for segmentation of high-resolution [transmission](http://dx.doi.org/10.1038/s41524-020-00363-x) electron microscopy [images,](http://dx.doi.org/10.1038/s41524-020-00363-x) npj Computational Materials 6 (1) (2020) 1–9. `[doi:](https://doi.org/10.1038/s41524-020-00363-x)` `[10.1038/s41524-020-00363-x](https://doi.org/10.1038/s41524-020-00363-x)` . URL `[http://dx.doi.org/10.1038/s41524-020-00363-x](http://dx.doi.org/10.1038/s41524-020-00363-x)` [15] K. M. Saaim, S. K. Afridi, M. Nisar, S. Islam, In [search](https://doi.org/10.1016/j.ultramic.2021.113437) of best automated model: [Explaining](https://doi.org/10.1016/j.ultramic.2021.113437) nanoparticle TEM image [segmentation,](https://doi.org/10.1016/j.ultramic.2021.113437) Ultramicroscopy 233 (December 2021) (2022) 113437. `[doi:10.1016/j.ultramic.2021.113437](https://doi.org/10.1016/j.ultramic.2021.113437)` . URL `[https://doi.org/10.1016/j.ultramic.2021.113437](https://doi.org/10.1016/j.ultramic.2021.113437)` [16] P. Liu, T. Wu, J. Madsen, J. Schiøtz, J. B. Wagner, T. W. Hansen, Transformations of supported gold nanoparticles observed by: In situ electron microscopy, Nanoscale 11 (24) (2019) 11885–11891. `[doi:10.1039/c9nr02731a](https://doi.org/10.1039/c9nr02731a)` . [17] O. Ronneberger, P. Fischer, T. Brox, U-Net: Convolutional Net works for Biomedical Image Segmentation, Vol. 9351 of Medical Image Computing and Computer-Assisted Intervention - MICCAI 2015, Springer International Publishing, 2015, pp. 234 241. `[doi:10.1007/978-3-319-24574-4\_28](https://doi.org/10.1007/978-3-319-24574-4_28)` . [18] M. H. Leth Larsen, F. Dahl, L. P. Hansen, B. Barton, C. Kisielowski, S. Helveg, O. Winther, T. W. Hansen, J. Schiøtz, Reconstructing the exit wave of 2D materials in high-resolution [transmission electron microscopy using machine learning, Ultra-](https://doi.org/10.1016/j.ultramic.2022.113641) microscopy 243 (November 2022) (2022) 113641. `[doi:10.1016/](https://doi.org/10.1016/j.ultramic.2022.113641)` `[j.ultramic.2022.113641](https://doi.org/10.1016/j.ultramic.2022.113641)` . URL `[https://doi.org/10.1016/j.ultramic.2022.113641](https://doi.org/10.1016/j.ultramic.2022.113641)` [19] D. M. Pelt, J. A. Sethian, A mixed-scale dense convolutional neural network for image analysis, Proceedings of the National Academy of Sciences of the United States of America 115 (2) (2017) 254–259. `[doi:10.1073/pnas.1715832114](https://doi.org/10.1073/pnas.1715832114)` . [20] A. Hjorth Larsen, J. JØrgen Mortensen, J. Blomqvist, I. E. Castelli, R. Christensen, M. Du�lak, J. Friis, M. N. Groves, B. Hammer, C. Hargus, E. D. Hermes, P. C. Jennings, P. Bjerre Jensen, J. Kermode, J. R. Kitchin, E. Leonhard Kolsbjerg, J. Kubal, K. Kaasbjerg, S. Lysgaard, J. Bergmann Maronsson, T. Maxson, T. Olsen, L. Pastewka, A. Peterson, C. Rostgaard, J. SchiØtz, O. Sch¨utt, M. Strange, K. S. Thygesen, T. Vegge, L. Vilhelmsen, M. Walter, Z. Zeng, K. W. Jacobsen, The atomic simulation environment - A Python library for working with atoms, Journal of Physics Condensed Matter 29 (27) (2017). `[doi:10.1088/1361-648X/aa680e](https://doi.org/10.1088/1361-648X/aa680e)` . [21] J. Madsen, T. Susi, abTEM: ab Initio Transmission Electron Microscopy Image Simulation, Microscopy and Microanalysis 26 (S2) (2020) 448–450. `[doi:10.1017/s1431927620014701](https://doi.org/10.1017/s1431927620014701)` . [22] E. J. Kirkland, Advanced [Computing](https://link.springer.com/book/10.1007/978-3-030-33260-0) in Electron Mi[croscopy,](https://link.springer.com/book/10.1007/978-3-030-33260-0) in: Advanced Computing in Electron Microscopy, 3rd Edition, Springer Cham, 2020, pp. 143–195. `[doi:10.1007/978-3-030-33260-0](https://doi.org/10.1007/978-3-030-33260-0)` . URL `[https://link.springer.com/book/10.1007/](https://link.springer.com/book/10.1007/978-3-030-33260-0)` ``` 978-3-030-33260-0 ``` [23] W. B. Lomholdt, M. H. Leth Larsen, J. Schiøtz, T. W. Hansen, [To Be Published]. [24] G. McMullan, A. R. Faruqi, D. Clare, R. Henderson, [Com-](http://dx.doi.org/10.1016/j.ultramic.2014.08.002) parison of optimal [performance](http://dx.doi.org/10.1016/j.ultramic.2014.08.002) at 300keV of three direct electron detectors for use in [low](http://dx.doi.org/10.1016/j.ultramic.2014.08.002) dose electron microscopy, Ultramicroscopy 147 (2014) 156–163. `[doi:10.1016/j.ultramic.2014.](https://doi.org/10.1016/j.ultramic.2014.08.002)` `[08.002](https://doi.org/10.1016/j.ultramic.2014.08.002)` . URL `[http://dx.doi.org/10.1016/j.ultramic.2014.08.002](http://dx.doi.org/10.1016/j.ultramic.2014.08.002)` [25] A. R. Faruqi, G. McMullan, Direct imaging [detectors](http://dx.doi.org/10.1016/j.nima.2017.07.037) for elec tron [microscopy,](http://dx.doi.org/10.1016/j.nima.2017.07.037) Nuclear Instruments and Methods in Physics Research, Section A: Accelerators, Spectrometers, Detectors and Associated Equipment 878 (May 2017) (2018) 180–190. `[doi:10.1016/j.nima.2017.07.037](https://doi.org/10.1016/j.nima.2017.07.037)` . URL `[http://dx.doi.org/10.1016/j.nima.2017.07.037](http://dx.doi.org/10.1016/j.nima.2017.07.037)` [26] M. Vulovic, B. Rieger, L. J. Van Vliet, A. J. Koster, R. B. Ravelli, A toolkit for the characterization of CCD cameras for transmission electron microscopy, Acta Crystallographica Section D: Biological Crystallography 66 (1) (2010) 97–109. `[doi:10.1107/S0907444909031205](https://doi.org/10.1107/S0907444909031205)` . [27] Z. Lee, H. Rose, O. Lehtinen, J. Biskupek, U. Kaiser, [Electron](http://dx.doi.org/10.1016/j.ultramic.2014.01.010) dose dependence of [signal-to-noise](http://dx.doi.org/10.1016/j.ultramic.2014.01.010) ratio, atom contrast and resolution in transmission [electron](http://dx.doi.org/10.1016/j.ultramic.2014.01.010) microscope images, Ultramicroscopy 145 (2014) 3–12. `[doi:10.1016/j.ultramic.2014.01.](https://doi.org/10.1016/j.ultramic.2014.01.010)` `[010](https://doi.org/10.1016/j.ultramic.2014.01.010)` . URL `[http://dx.doi.org/10.1016/j.ultramic.2014.01.010](http://dx.doi.org/10.1016/j.ultramic.2014.01.010)` [28] W. J. De Ruijter, J. K. Weiss, Methods to measure properties of slow-scan CCD cameras for electron detection, Review of Scientific Instruments 63 (10) (1992) 4314–4321. `[doi:10.1063/](https://doi.org/10.1063/1.1143730)` `[1.1143730](https://doi.org/10.1063/1.1143730)` . [29] Neural Network [Assisted](https://gitlab.com/matthewhelmi/NeuralNetwork_HRTEM) HR-TEM. URL `[https://gitlab.com/matthewhelmi/NeuralNetwork_](https://gitlab.com/matthewhelmi/NeuralNetwork_HRTEM)` ``` HRTEM ``` 10 Appendix A. Supplementary Online Information _Appendix_ _A.1._ _Network_ _architecture_ Figure SOI.1: The architecture of the U-net. Information flows from left to right. The first part of the network, the “encoding path”, consists of convolutional processing blocks alternated by downsampling layers using the MaxPool method. The second part, the “decoding path”, consists of convolutional blocks alternated by bilinear upsampling layers. Long skip connections ensures that the original spatial information can be maintained. Adapted from Madsen _et_ _al._ [12] The U-net architecture is identical to Ref. [18], with a difference in the initial number of channels. From hyperparameter tuning it was seen that increasing the channels minimised overfitting and provided more robust results for segmentations. The network consists of a downsampling (or “encoding”)) path, where convolutional blocks alternate with downsampling layers, and an upsampling (or “decoding”) path, where the convolutional blocks alternate with upsampling layers (see Fig. SOI.1). The convolutional blocks consist of 5 convolutional layers, with a short skip connection between the output of the first layer and the input of the fifth. The downsampling is done with conventional MaxPool operations. Each time the resolution is cut in half in a MaxPool operation, the number of feature channels in the following convolutional block is doubled to maintain the information flow in the network. The upsampling is done using bilinear interpolation, and the following convolution block has the number of channels cut by a factor two. After each upsampling, information from the last layer with the same spatial resolution is added from the downsampling path, this is done by concatenating the channels. The first layer in the convolutional blocks in both paths will therefore have a different number of input channels from what is stated in the figure. Each convolutional layer uses a 5 _×_ 5 convolutional kernel, followed by a Parametric Leaky Rectifying Linear Unit. Hyperparameter tuning showed no significant improvement in increasing the kernel size above 5 _×_ 5. Figure SOI.2: The architecture of the MSD-net. The convolutional kernel dilation value is sampled from a uniform distribution in the range [1,10]. Information flows from left to right. The MSD-net architecture shown in Fig. SOI.2, is an adaptation of the model introduced by Pelt _et_ _al._ in Ref. [19]. The network consists of 50 layers, where each layer performs a convolution and immediately concatenates the output with the output of the previous layer. The first layer is an exception as it does not concatenate with the input image. The reoccurring successive concatenations is what classifies this network architecture in the family of dense network architectures where all convolutional output filters are connected with eachother. This MSD-net implementation utilises a 9 _×_ 9 convolutional kernel that is dilated to capture features at varying length scales. The dilation value is sampled from a uniform distribution in the range [1 _,_ 10], and seeding is provided to reproduce multiple identical MSD-net models. This is what “Mixed-Scale” refers to in the name of the architecture. Hyperparameter tuning showed signifcant improvements when increasing the number of output channels, kernel size, and number of layers, however Tensorflow’s implementation of concatenation layers consumes large amount of memory, and so parameters of this architecture are limited by available memory. All convolutional layers apply reflection padding to maintain dimensions. _Appendix_ _A.2._ _Network_ _training_ The problem definition here, as presented in Figures SOI.1 and SOI.2, is to take a HR-TEM image and produce a probability mask of the pixels corresponding to the nanoparticle. An example of this is shown in Fig. SOI.3. 11 Figure SOI.3: Example of simulated image and its binary mark label. Binary masks are used so that the binary cross entropy loss (or its multi-class counterpart: the categorical cross entropy loss) can be applied for training. This is a loss function widely applied for segmentation problems and is natively implemented in Tensorflow. Fig. SOI.4 shows the learning curves for all networks applied in this work. The F1-Score is shown instead of the binary cross entropy loss, as it has a more intuitive range of values, 1 being a pixel wise perfect segmentation and 0 the worst result possible. The F1-Score is a harmonic mean between the precision and recall, and properly gauges the ability to accurately classify both positives and negatives, _i.e._ identify both nanoparticle and background. Fig. SOI.5 shows the effect of varying amounts of data used for training. There is a clear improvement when going from 10 atomic structures to 100, and again from 100 to 1000, however little is gained going beyond 500 structures. This number is the number of atomic structures and number of images per training epoch. Each training epoch iterates over the 10 image epochs, which varies the microscope parameters in the image for the same set of atomic structures. Increasing the dataset size beyond 1000 structures would significantly increase training times. Training is executed using the ADAM gradient optimiser with the AMSGrad variant activated, and a learning rate of 0.001. Many training epochs in an attempt to obtain a well converged network, which is typically the most robust when generalising to experimental data. (a) MSD-net MTF 1 (b) MSD-net MTF 2 (c) MSD-net MTF 3 (d) MSD-net MTF 4 (e) MSD-net MTF 5 (f) U-net MTF 4 (g) MSD-net MTF 4 low dose range (h) U-net MTF 4 low dose range Figure SOI.4: F1-Score learning curves for all networks applied in this work. Figure SOI.5: Average F1-Score over the MTF 4 model training dataset of 10,000 images and validation dataset of 500 images for varying sizes of training data involved in the training process. These scores are produced by an MSD-net trained on the MTF 4 model training dataset where the size of the dataset used for training is varied. The variance is used as error bars. 12 _Appendix_ _A.3._ _Noise_ _Fitting_ The power spectral density is defined as the magnitude squared of the Fourier transform. This is taken from a vacuum region of the HR-TEM image for every frame. This 2D-spectrum is averaged azimuthally to obtain a 1Dspectrum, as done in Ref. [26]. Frequencies are normalised by the Nyquist frequency, _i.e._ _q_ ˜ = _q/qN_ . As shown in Figures SOI.6 and SOI.7, the spatial frequency filtering affect of the MTF is clear. The raw spectrum <u>1</u> _MTF_ (˜ _q_ ) = ( _c_ 1 _−_ _c_ 2) _·_ (A.1) 1 + ( <sup>_<u>q</u>_</sup> <sup><u>˜</u></sup> _c_ 0 <sup>)</sup> <sup>_c_</sup> <sup>3</sup> <sup>+</sup> <sup>_c_</sup> <sup>2</sup> is fitted in the top of the two figures. The bottom of the two figures presents the fitted MTF normalised by the _q_ _→_ 0 limit, _c_ 1, _i.e._ Eq. 1. Figure SOI.6: MTF fitted from the power spectral density of the first frame at approximately 10 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A <sup>2</sup> . Top: Raw fit (Eq. A.1) with _R_ <sup>2</sup> = 0 _._ 99, _c_ 0 = 0 _._ 20, _c_ 1 = 4353 _._ 29, _c_ 2 = 2207 _._ 83, _c_ 3 = 2 _._ 57. Bottom: Normalised MTF (Eq. 1) with _c_ 0 = 0 _._ 20, _c_ 3 = 2 _._ 57, _C_ = 0 _._ 51. In Fig. 6, the readout noise contribution, _N_ 0, is fitted from its fractional contribution the the total noise floor as a function of electron dose per pixel. A simulation of vacuum was made, where _c_ 0 and _c_ 3 were varied within a range of [0 _._ 2 _,_ 0 _._ 3] and [2 _,_ 3] respectively, and an addition Poisson noise is added with _N_ 0 _±_ 50%. Fitting MTFs for the simulated image series presents the same behaviour of the _C_ parameter as in Fig. 5, proving a sensible modelling of the readout and shot noise contributions. Figure SOI.7: MTF fitted from the power spectral density of the final frame at approximately 1300 _e_ <sup>_−_</sup> _/_ <sup>˚</sup> A <sup>2</sup> . Top: Raw fit (Eq. A.1) with _R_ <sup>2</sup> = 0 _._ 99, _c_ 0 = 0 _._ 28, _c_ 1 = 52887 _._ 32, _c_ 2 = 602 _._ 13, _c_ 3 = 2 _._ 25. Bottom: Normalised MTF (Eq. 1) with _c_ 0 = 0 _._ 28, _c_ 3 = 2 _._ 15, _C_ = 0 _._ 01. Figure SOI.8: Distribution of parameters for Eq. 1, fitted to a simulated vacuum image series of continuously increasing dose. This replicates the behaviour in Fig. 5. 13 _Appendix_ _A.4._ _Simulated_ _MTF_ _Comparison_ (a) (b) Figure SOI.9: Comparing the networks trained separately on simulated data with the MTF 4 model and the MTF 3 model. Both networks are applied on a simulated continuously increasing dose image series of a CeO2 supported Au nanoparticle with the MTF 3 model applied. The F1-Score ranges between 0 and 1, where 1 is a perfect segmentation. The MTF 4 model learns to distinguish noise and signal better than the MTF 3 model, seen by the higher mean F1-Score. Top: Histogram of F1-Score for each image. Dashed lines represent the colour coded mean. Bottom: F1-Score as a function of frame dose. Solid lines represent the mean within the inset of the very low dose regime. 14

섹션 본문 41문단 · 32,234자

(제목 없음)

1Motivated by the need for low electron dose transmission electron microscopy imaging, we report the optimal frame dose (i.e. e − /Å 2 ) range for object detection and segmentation tasks with neural networks. The MSD-net architecture shows promising abilities over the industry standard U-net architecture in generalising to frame doses below the range included in the training set, for both simulated and experimental images. It also presents a heightened ability to learn from lower dose images. The MSD-net displays mild visibility of a Au nanoparticle at 20-30 e − /Å 2 , and converges at 200 e − /Å 2 where a full segmentation of the nanoparticle is achieved. Between 30 and 200 e − /Å 2 object detection applications are still possible. This work also highlights the importance of modelling the modulation transfer function when training with simulated images for applications on images acquired with scintillator based detectors such as the Gatan Oneview camera. A parametric form of the modulation transfer function is applied with varying ranges of parameters, and the effects on low electron dose segmentation is presented.

Introduction

2High-resolution transmission electron microscopy (HR-TEM) is a primary method to characterise materials at the atomic scale, and is a method where an abundance of data can be obtained. HR-TEM can provide a greater temporal resolution, as opposed to scanning transmission electron microscopy, by illuminating the entire sample simultaneously. It does this, however, at the cost of the signal-to-noise ratio (SNR). Increasing the frame dose of the image can assist in increasing the interpretability of each image, but it is usually undesired to do so to avoid electron beam induced effects that are yet to be completely understood [1,2,3]. The averaging of many images is another method to increase the SNR. This method, however, lowers the temporal resolution and can be a tedious task that requires complex image alignment to ensure sensible results. Image alignment is also frame dose dependent as the alignment between low SNR images becomes difficult. Addressing SNR related issues has led to a quest in developing denoising methods [4,5], often using neural networks [6,7].

3The field has seen a steady increase in applying machine learning solutions to solve various tasks of analysing and interpreting data. The importance of including machine learning in a standard workflow for HR-TEM characterisation is highlighted in multiple works [8,9]. Pipelines for training neural networks for segmentation with hand labelled experimental data have been developed, such as the pipeline by Groschner et al. [10], where segmented nanoparticles are classified to acquire sufficient statistics on various classes of nanoparticles. The segmentation of nanoparticles is also useful for tracking dynamic behaviour across frames [11]. Simulated images provide possibilities for large amounts of accurately labelled images for training and have been used to identify and analyse atomic columns in experimental HR-TEM sequences [12,13]. Vincent et al. also used simulated images to train neural networks for denoising [7]. Due to the successes of deep learning powered analysis of HR-TEM images many are seeking to understand the important aspects of optimising the generalisability and applications of deep learning models, and attempt to determine the best models available in comparison to eachother and other thresholding or clustering methods [14,15].

4In this work we look to continue the search for optimal simulated training data and neural networks, by considering the specific task of low SNR segmentation. We will report the optimal frame dose range for reliable segmentations by neural networks and how to control that range by tuning simulations. For this task we focus on the segmentation of metallic nanoparticles, more specifically CeO 2 supported Au nanoparticles. Au nanoparticles serve as a useful system for studying catalytic properties of metallic nanoparticles [16].

Methods

5This work utilises two different network architectures to perform the segmentations. The first is the well recognised U-net [17] architecture used by Madsen et al. [12], with the only modification that the skip connections are now concatenations rather than element-wise additions [18]. The other is the MSD-net introduced by Pelt et al. [19], which was highlighted to be a robust network against low SNR images. Both networks are convolutional neural networks that differ in their approach to capturing information from varying spatial distances in the image. The Unet's approach gives its characteristic U-shaped architecture due to the numerous down-sampling and up-sampling layers to spread the convolutional kernel over patterns with large spatial coverage. The MSD-net in contrast maintains the same resolution throughout all layers, but dilates the convolutional kernel to spread the weights over a larger spatial region. Specific hyper-parameters regarding the network architectures can be seen in the Supplementary Online Information (SOI) together with SOI Fig. 1 & 2.

6To train the neural networks, supported nanoparticles are constructed with the Atomic Simulation Environment (ASE) [20] and HR-TEM images are simulated using ab-TEM [21]. Refer to Fig. 1 for examples. For this work, Au face centred cubic structures of varying sizes are generated so that the [110] crystal direction is aligned with the optical axis, with a slight random tilt off zone axis of up to 3 • . At a random layer from the centre of the nanoparticle the [111] direction is truncated, effectively slicing a (111) plane. The exposed face of the FCC structure is attached to a (111) plane of a CeO 2 slab. These systems are randomly rotated about the optical axis, and contain varying sizes of nanoparticles. This replicates realistic interfaces between Au and CeO 2 identified by Liu et al. [16]. The image simulation then applies the parameters shown in Table 1. This is a relatively cheap operation, since the expensive part of the image simulation is generating the exitwave by computing the multislice algorithm [22]. Applying imaging imperfections such as the contrast transfer function (CTF) and the modulation transfer function (MTF) can be done multiple times on the same exitwave, which generates multiple images of the same nanoparticle with varying imaging conditions. These images are pregenerated and stored to allow for a controlled comparison between networks on the exact same dataset. Training epochs cycle through the different sets of images of the same atomic system. Each set of images is referred to as an image epoch. With 300 training epochs and 10 image epochs, each image is reused 30 times in training.

7Mask labels are binary images separating the Au nanoparticle from the surrounding vacuum and the CeO 2 support. This is generated by computing the convex hull of the atomic coordinates. The neural networks are trained to map a single HR-TEM image to a binary mask label image, which will provide the pixels containing the nanoparticle separate from the pixels containing substrate and vacuum. An example of this is shown in the SOI Fig. 3. Once the network is trained it can be applied to an image, either simulated or experimental, and will return a probability map. Each pixel will be classified to belong to either the nanoparticle or the background (vacuum or substrate) class at some probability. This is referred to as the network inference or prediction and a threshold is applied at 0.9 to generate a binary predicted mask of the pixels that the network classify with at least 90% confidence.

8We note that the networks trained in this work are not trained to be applied in a generic sense. The networks are trained for Au nanoparticles specifically. We have seen that the networks will show weak predictions for nanoparticles with a similar lattice constant. This is because the network learns to separate patterns, which in this context is the atomic lattice where the spacing is defined by the lattice constant. Generic networks will likely show weaker performance, due to the increased complexity of varying lattice constants. Experimental images of a CeO 2 supported Au nanoparticle were acquired on an image corrected FEI Titan 80-300 ECELL at 300 keV, using a Gatan OneView detector. The Au nanoparticle is imaged initially at a frame dose of 10 e − /Å 2 , where noise dominates the images. The doserate is continuously increased to above 1000 e − /Å 2 ,

9where atomic columns are relatively visible. The Au nanoparticle is situated in vacuum at 200 • C, so it is expected that the nanoparticle is relatively inert. We refer to work by Lomholdt et al. [23] for experimental details and details of the SNR at varying frame doses. Our approach here is to utilise the segmentation of the final frame of this continuously increasing doserate series as a pseudo-ground truth to gauge the performance of the network at lower frame doses. Due to drift in the images of the nanoparticle, pixel-wise scores such as the F1-Score will not be used, instead we will measure the area of segmentation, where the ground truth area will be the target.

10For scintillating material based detectors, such as the Gatan OneView, the approximation of pure Poissonian noise in HR-TEM images breaks down, since the spectral profile of the noise is altered by the modulation transfer function (MTF) [24,25]. This function is the Fourier transform of the point spread function, which is an intrinsic property of the scintillating material [26]. Here we study the parametric form from Lee et al. [27], shown in Eq. 1.

11where the spatial frequencies are normalised by the Nyquist frequency, which is related to the sampling, s of the detector byq = q/q N = 2 · q · s. The limits of the function are 1 forq → 0 due to a normalisation and C for q → ∞. The function is fitted following the noise method described in Ref. [26].

Results

12The following section will present results presenting how to achieve reliable and robust low dose segmentations of HR-TEM images. This will be divided into firstly a comparison of two neural network architectures and their ability to differentiate signal from noise. The neural networks will be trained on simulated data with different electron dose ranges to gauge their abilities to learn from training datasets of varying difficulty. After this a detailed analysis on how to tune performance by optimising the MTF will be presented.

Dataset Dose Limits and Neural Network Comparison

13An obvious first step in approaching segmentation of low SNR data is to investigate the performance of various architectures. Here we use the experimental image series to benchmark the U-net against the MSD-net and identify the best neural network for low SNR HR-TEM segmentation. We test the neural networks abilities to train on two different ranges of frame dose presented in Table 2. The low frame dose range covers the range of the experimental data series in this work, where-as the high frame dose range feeds the network much clearer simulated images, making it an easier dataset to learn. It is of interest to determine whether the neural networks ability to differentiate signal from noise benefits more from seeing primarily noisy images or clearer images of the atomic structure. Comparisons will be made by plotting the segmented area versus frame dose to identify when each network begins to detect the nanoparticle and when the segmented area converges i.e. the network identifies the entire nanoparticle. The final frame segmentation should be understood as a a pseudo-ground truth. The aim is to segment a similar area as in the ground truth at as low frame dose as possible. The area may not be exact due to possible morphological changes in the nanoparticle. The morphological changes and slight drift disallows the use of, for example, an F1-Score against the given frame and the ground truth for the experimental data series, since the overlap of the segmentations will not be sensible at a pixel-wise level.

14The ideal case of these plots will be a step function, meaning the entire nanoparticle is immediately identified, at some minimal frame dose.

15The MSD-net presents an ability to generalise outside of the training data range, whereas the U-net only performs within the training data range. Training the MSDnet on the low frame dose range increases the visibility of the nanoparticle between 40-100 e − /Å 2 by ∼50%, as seen in Fig. 2(a), however it is also a noteworthy feature that the MSD-net is able to segment significant regions below the lower limit of the high frame dose range when trained on the high frame dose range. This proves a superior ability to separate noise to signal and generalise beyond the limits of the training set, which means the MSD-net is a better candidate for when data is limited. Fig. 2(b) visualises the improvement in low dose segmentation by overlapping the ground truth segmentation (cyan coloured mask), with the segmentation from the two networks trained on each dose range (colour coded mask).

16The MSD-net trained on both dose ranges show a lower limit at 20-30 e − /Å 2 .

17Predictions from the U-net are not as robust as the MSD-net. Fig. 3(b) shows that the U-net trained on the low frame dose range is not entirely reliable due to the difficulties in defining the edges of the nanoparticle. Comparing the low dose trained MSD-net segmentation at 49 e − /Å 2 in Fig. 2(b) to the low dose trained U-net at 49 Fig. 3(b), the segmented area is similar however the edges are more well defined in the segmentation from the MSD-net. The low dose trained U-net achieves some visibility a few e − /Å 2 below the MSD-net, as seen in Fig. 3, however the over segmentation at higher dose highlights that this network is possibly being triggered by noise as well. In SOI Fig. 4 the F1-Score as a function of training epochs with simulated data highlight that the low dose range dataset becomes a harder problem for both neural networks to learn and generalise. Both networks show greater signs of overfitting. The MSD-net seems to handle more difficult problems better than the U-net. We have tested both networks on the full dose range of 10 1 -10 6 e − /Å 2 and find that the over segmentation artefacts from the low frame dose range remain. This furthers the argument that the networks benefit more from the clearer images of the atomic structures. As a sanity check, we show the effect of various training dataset sizes in SOI Fig. 5. Finally Fig. 4 compares the two networks trained on the high frame dose range data, showcasing the performance gain in the low frame dose regime with the MSD-net segmenting 50% of the nanoparticle at a ∼70% lower frame dose, and both show a reliable convergence at 200 e − /Å 2 .

Frame dose limit

18Low dose segmentation performance relies on a proper modelling of the noise in the simulated data. The following will described how noise characteristics are extracted from experimental data and modelled in simulated data. Eq. 1 was fitted to the azimuthally averaged centred Fourier transform of the vacuum region in the images, as done in [26,27]. See SOI Fig. 6 & 7 for the fitted MTF of the first frame and last frame of the experimental image series, respectively. Fig. 5 presents a distribution of fitted parameters dependent on the frame dose of the experimental images. The parameter points with white dots are the fits with an R 2 ≥ 0.98.

19It is vital to understand the role of each parameter in Eq. 1, to interpret the distributions in Fig. 5. The c 0 parameter represents theq value of the half-maximum, which increases with frame dose and converges around 200 e − /Å 2 . This means that at frame doses above 200 e − /Å 2 spatial frequencies up to ∼ 0.27 · q N are maintained at at least half maximum, but for lower doses the function is narrower. As a result spatial frequencies above c 0 · q N are effectively filtered out at higher frame doses. The curvature of the function is consistently close to a Lorentzian form, as revealed by the c 3 parameter (higher values approach a low pass step function). The C parameter reveals the change in the tail of the function i.e. the q → ∞ limit. C is non-zero at lower frame dose and approaches 0 at higher doses. We interpret this as a fraction of the noise that is not subject to the point spread function of the scintillator, but is generated later in the detection process. We label this part of the noise "readout noise" although it may come from more than one source. All parameters show most variation below 200 e − /Å 2 .

20The variation below this limit is likely due to the transition between readout noise and shot noise as the dominating noise source [28].

21The readout noise appears after the scintillating material and is therefore not affected by the MTF. The contributions of the readout noise and shot noise are modelled separately in our simulations and in order to extract the fractional contribution of each noise source we look at how C dependends on the frame dose (in electrons per pixel). This value represents the readout noise, a minimal noise always present in the data. At higher frame dose readout noise is hidden by the shot noise, but at lower dose the readout noise dominates. The shot noise is modelled as a Poisson distribution, P (N D ), where N D is the frame dose in electrons per pixel. For lack of better models, the read out noise is also modelled as a Poisson distribution, P (N 0 ). N 0 can be therefore be extracted by fitting the N D dependency of C with Eq. 2, see Fig. 6.

22We thus model the total noise as a sum of two Poisson distributions, one representing the shot noise spread by the MTF, the other represents the readout noise: Figure 2: Comparison of the MSD-net trained with simulated images within the high frame dose range to simulated images within the low frame dose range (see Table 2). Table 2). The approach we have taken to model the variations of c 0 and c 3 is to randomise the parameters within a given range as done by Madsen et al. [12], which alters the spectral profile of the shot noise. The extracted N 0 from 6 is varied at ±50%, i.e. N 0 ∈ [0.005, 0.015] when applied to simulated images. We acknowledge that we are not accounting for all noise contributions and that noise is by nature difficult to reproduce. Varying N 0 accounts for deviations from our simplified noise model. In SOI Fig. 8, we show that with the fitted N 0 applied as a separate Poissonian noise source we are able to replicate the C parameter dependency on the frame dose from MTFs fitted to a simulated image series of vacuum at increasing frame dose. The parameters c 0 and c 3 show a larger spread in the simulation compared to the experimentally fitted values. We have neglected the modelling of these parameters and they are simply ranged within a uniform distribution, as presented in SOI Fig. 8. The effect of altering this range is explored in Table 3. The MTF is an intrinsic property of the specific detector being used. It is of interest to identify the importance of modelling the exact MTF or if a range of varying MTF profiles can be applied. To study the effect of the MTF spread on neural network training, the ranges of c 0 and c 3 can be varied, while maintaining a constant range of readout noise defined by N 0 . The c 0 parameters controls the spatial frequency dependent half-maximum of the MTF. Spatial frequencies beyond c 0 are heavily damped. The c 3 parameter alters the curvature of the MTF profile, which affects the spatial frequencies near the halfmaximum. Table 3 summarises 5 different MTF parameter ranges applied to 5 simulated datasets of identical atomic systems. All apply the microscope parameters from Table 1. An identical MSD-net is trained on each dataset. The first model, MTF 1, will take the parameters from Ref. [12]. Motivations behind the other MTF models will be explained as the results are discussed.

23Higher values of c 0 in MTF 1 and MTF 2 assist the network in low frame dose segmentation. Fig. 7(a) lar performance, which highlights that it is not important that the form of the MTF is exactly Lorentzian. This was determined by ranging c 3 over a larger range in MTF 2. Following this result, MTF 3 samples a range of c 0 more suited to the fitted ranges in Fig. 5. The result of this range were detrimental on the low dose performance, delaying the visibility of the nanoparticle by ∼25% in electron dose.

24Applying the range of c 0 within the experimental fit by MTF 3 provide more refined segmentations at higher frame dose. The variations in the segmented area at higher doses for the MTF 3 trained model are smaller than that of the MTF 1 and 2. The variations of MTF 1 and MTF 2 are shown by the shaded grey region. These variations can be due to difficulties in defining the boundaries between the nanoparticle and substrate/vacuum in the images. Fig. 7(b) shows the maximum segmented area of MTF 2 (top) and MTF 3 (bottom). Here it is seen that the MTF 2 trained model has minor difficulties in defining the border of the nanoparticles.

25We speculate that preserving spatial frequencies up to around half-Nyquist is preferential for the networks to learn to differentiate signal from noise. In practice this means having a c 0 that ranges up to or slightly above 0.5 · q N . Values of c 0 within the fitted range from experimental data is however also necessary for refining boundaries of the segmented areas.

26MTF 4 ranges between the lower limit of the fitted c 0 from MTF 3 and the upper limits of c 0 from MTF 1 and 2, and achieves the low dose performance of MTF 1 and 2 and the refined boundaries of MTF 3 at higher dose. MTF 5 samples larger c 0 , beyond half-Nyquist, with the same range as MTF 1 and 2. Fig. 8(a) presents the performance of MTF models 2,4, and 5. MTF 5 shows much more visibility at low dose frames, however much more sporadic variations in the higher frame dose regime. Fig. 8(b) shows the maximum segmented area of MTF 5, which highlights its weakness in identifying the borders of the nanoparticle; The segmentation bleeds into the surrounding vacuum. This renders the low dose segmentations of MTF 5 unreliable, as it seems it is being triggered by noise in the vacuum. MTF 5 has such a high c 0 range that it approaches a noise profile appropriate for direct electron counting detectors such as the Gatan K2/3 camera [25]. The maximum segmentation of MTF 4 in contrast shows very sharp separations between the nanoparticle and its surroundings. This proves that ranging c 0 such that it covers the range fitted from experimental data, but also such that it retains spatial frequencies up to half-Nyquist is ideal for optimal segmentation performance across the entire frame dose range.

27We note that in all cases the area of segmentation converges at approximately 200 e − /Å 2 , depicted by the dashed black line. This is the first reported lower limit of frame dose for a reliable full segmentation. The overlap in the middle of Figs. 7(b) and 8(b) shows the morphological changes in the nanoparticle but also highlight that both are segmentations of the same nanoparticle. Here we also highlight that the segmentation is sensible and we show that this is at a level where a human interpreter would have difficulties being certain of the presence of the entire nanoparticle.

28The segmentations below 200 e − /Å 2 are not full segmentations and cannot be used to for example measure the area, but can still be used for object detection purposes and regional Fourier transform extraction. For these purposes 50% of segmentation would be a sensible minimum, represented by the colour coded dashed lines in Figs and the MTF 3 model. In this case we have exact ground truths and the F1-Score will be used as a metric. SOI Fig. 9a presents a histogram of the F1-Score for each image in the simulated series for both networks in mention. It is immediately apparent that the MTF 4 dataset trains a network that outperforms the MTF 3 trained network on images with the MTF 3 ranges applied. SOI Fig. 9b displays the F1-Score against frame dose, which highlights the improved performance of the MTF 4 dataset trained MSD-net is primarily on low frame dose simulated images, with a higher mean F1-Score in the range of 10-100 e − /Å 2 .

Conclusions

29In this work we have investigated the quantitative limit of low SNR HR-TEM image segmentation. A continuously increasing frame dose HR-TEM image series of a CeO 2 supported Au nanoparticle was acquired to rate the performance of neural network segmentations at low frame dose and compare the segmentation to the final (highest frame dose) frame. The results show that the neural networks are achieving human level performance, which means it can safely be equipped for large-scale automated analysis to relieve the human operator of repetitive tasks.

30The MSD-net showed promising low SNR performance compared to the industry standard U-net. The MSD-net showed an ability to generalise outside the frame dose range of the training set and provide reliable segmentations, with well defined boundaries down to 20 e − /Å 2 . The U-net was only able to operate within the given training range, and when trained with lower dose images, presented weaknesses in defining boundaries between the nanoparticle and its surroundings. This highlights the MSD-net's superior ability to learn the differences between signal and noise.

31A parametric form of the MTF was fitted to all frames in the HR-TEM series resulting in a frame dose dependent range of parameters. The noise contributions were separated into two sources, shot noise and readout noise, and the fractional contribution of each was extracted from the noise floor given by the C parameter of Eq. 1. It was shown that modelling the MTF to retain spatial frequencies up to ∼ 0.5 · q N with at least half-maximum assisted the MSD-net in detecting the nanoparticle at lower frame dose. It seems that modelling the MTF with a wide range of parameters that both consist of parameters within the fitted range and parameters that maintain spatial frequencies up to half-Nyquist allows the MSD-net to operate in both the shot noise and readout noise dominated regimes.

32All results converged at 200 e − /Å 2 . This is the first report of a frame dose limit for reliable neural network segmentations. Neural network predictions with HR-TEM images between 20-100 e − /Å 2 are still useful for object detection purposes. Knowledge of these frame dose limits will provide the community with realistic expectations from deep learning models and an ability to design experiments that are optimised for their needs from deep learning powered analysis tools, whether it be object detection in live low dose imaging, or statistical data accumulating of morphological properties, amongst others. The architecture of the U-net. Information flows from left to right. The first part of the network, the "encoding path", consists of convolutional processing blocks alternated by downsampling layers using the MaxPool method. The second part, the "decoding path", consists of convolutional blocks alternated by bilinear upsampling layers. Long skip connections ensures that the original spatial information can be maintained. Adapted from Madsen et al. [12] The U-net architecture is identical to Ref. [18], with a difference in the initial number of channels. From hyperparameter tuning it was seen that increasing the channels minimised overfitting and provided more robust results for segmentations. The network consists of a downsampling (or "encoding")) path, where convolutional blocks alternate with downsampling layers, and an upsampling (or "decoding") path, where the convolutional blocks alternate with upsampling layers (see Fig. SOI.1). The convolutional blocks consist of 5 convolutional layers, with a short skip connection between the output of the first layer and the input of the fifth.

33The downsampling is done with conventional MaxPool operations. Each time the resolution is cut in half in a MaxPool operation, the number of feature channels in the following convolutional block is doubled to maintain the information flow in the network. The upsampling is done using bilinear interpolation, and the following convolution block has the number of channels cut by a factor two. After each upsampling, information from the last layer with the same spatial resolution is added from the downsampling path, this is done by concatenating the channels. The first layer in the convolutional blocks in both paths will therefore have a different number of input channels from what is stated in the figure.

34Each convolutional layer uses a 5 × 5 convolutional kernel, followed by a Parametric Leaky Rectifying Linear Unit. Hyperparameter tuning showed no significant improvement in increasing the kernel size above 5 × 5. [19]. The network consists of 50 layers, where each layer performs a convolution and immediately concatenates the output with the output of the previous layer. The first layer is an exception as it does not concatenate with the input image.

35The reoccurring successive concatenations is what classifies this network architecture in the family of dense network architectures where all convolutional output filters are connected with eachother. This MSD-net implementation utilises a 9 × 9 convolutional kernel that is dilated to capture features at varying length scales. The dilation value is sampled from a uniform distribution in the range [1,10], and seeding is provided to reproduce multiple identical MSD-net models. This is what "Mixed-Scale" refers to in the name of the architecture.

36Hyperparameter tuning showed signifcant improvements when increasing the number of output channels, kernel size, and number of layers, however Tensorflow's implementation of concatenation layers consumes large amount of memory, and so parameters of this architecture are limited by available memory.

37All convolutional layers apply reflection padding to maintain dimensions.

Appendix A.2. Network training

38The problem definition here, as presented in Figures SOI.1 and SOI.2, is to take a HR-TEM image and produce a probability mask of the pixels corresponding to the nanoparticle. An example of this is shown in Fig. SOI.3. Binary masks are used so that the binary cross entropy loss (or its multi-class counterpart: the categorical cross entropy loss) can be applied for training. This is a loss function widely applied for segmentation problems and is natively implemented in Tensorflow.

39Fig. SOI.4 shows the learning curves for all networks applied in this work. The F1-Score is shown instead of the binary cross entropy loss, as it has a more intuitive range of values, 1 being a pixel wise perfect segmentation and 0 the worst result possible. The F1-Score is a harmonic mean between the precision and recall, and properly gauges the ability to accurately classify both positives and negatives, i.e. identify both nanoparticle and background.

40Fig. SOI.5 shows the effect of varying amounts of data used for training. There is a clear improvement when going from 10 atomic structures to 100, and again from 100 to 1000, however little is gained going beyond 500 structures. This number is the number of atomic structures and number of images per training epoch. Each training epoch iterates over the 10 image epochs, which varies the microscope parameters in the image for the same set of atomic structures. Increasing the dataset size beyond 1000 structures would significantly increase training times.

41Training is executed using the ADAM gradient optimiser with the AMSGrad variant activated, and a learning rate of 0.001. Many training epochs in an attempt to obtain a well converged network, which is typically the most robust when generalising to experimental data. In Fig. 6, the readout noise contribution, N 0 , is fitted from its fractional contribution the the total noise floor as a function of electron dose per pixel. A simulation of vacuum was made, where c 0 and c 3 were varied within a range of [0.2, 0.3] and [2,3] respectively, and an addition Poisson noise is added with N 0 ± 50%. Fitting MTFs for the simulated image series presents the same behaviour of the C parameter as in Fig. 5, proving a sensible modelling of the readout and shot noise contributions.

참고문헌 25건

  1. A nonlinear filtering algorithm for denoising HR(S)TEM micrographs Ultramicroscopy · Elsevier BV · 2014 10.1016/j.ultramic.2014.11.012
  2. Methods to measure properties of slow-scan CCD cameras for electron detection Review of Scientific Instruments · American Institute of Physics · 1992 10.1063/1.1143730
  3. Do you believe that atoms stay in place when you observe them in HREM? Micron · Elsevier BV · 2014 10.1016/j.micron.2014.09.003
  4. Electron dose dependence of signal-to-noise ratio, atom contrast and resolution in transmission electron microscope images Ultramicroscopy · Elsevier BV · 2014 10.1016/j.ultramic.2014.01.010
  5. Advanced Computing in Electron Microscopy Springer eBooks · Springer Nature · 2020 10.1007/978-3-030-33260-0
  6. Motion of Gold Atoms on Carbon in the Aberration-Corrected STEM Microscopy and Microanalysis · Oxford University Press · 2007 10.1017/s1431927608080197
  7. Comparison of optimal performance at 300keV of three direct electron detectors for use in low dose electron microscopy Ultramicroscopy · Elsevier BV · 2014 10.1016/j.ultramic.2014.08.002
  8. A toolkit for the characterization of CCD cameras for transmission electron microscopy Acta Crystallographica Section D Biological Crystallography · Wiley · 2009 10.1107/s0907444909031205
  9. Denoising time-resolved microscopy image sequences with singular value thresholding Ultramicroscopy · Elsevier BV · 2016 10.1016/j.ultramic.2016.05.005
  10. The atomic simulation environment—a Python library for working with atoms Journal of Physics Condensed Matter · IOP Publishing · 2017 10.1088/1361-648x/aa680e
  11. Direct imaging detectors for electron microscopy Nuclear Instruments and Methods in Physics Research Section A Accelerators Spectrometers Detectors and Associated Equipment · Elsevier BV · 2017 10.1016/j.nima.2017.07.037
  12. A mixed-scale dense convolutional neural network for image analysis Proceedings of the National Academy of Sciences · National Academy of Sciences · 2017 10.1073/pnas.1715832114
  13. Radiation damage to organic and inorganic specimens in the TEM Micron · Elsevier BV · 2019 10.1016/j.micron.2019.01.005
  14. Transformations of supported gold nanoparticles observed by <i>in situ</i> electron microscopy Nanoscale · Royal Society of Chemistry · 2019 10.1039/c9nr02731a
  15. Atomic column heights detection in metallic nanoparticles using deep convolutional learning Computational Materials Science · Elsevier BV · 2020 10.1016/j.commatsci.2020.109722
  16. Understanding important features of deep learning models for segmentation of high-resolution transmission electron microscopy images npj Computational Materials · Nature Portfolio · 2020 10.1038/s41524-020-00363-x
  17. abTEM: <i>ab Initio</i> Transmission Electron Microscopy Image Simulation Microscopy and Microanalysis · Oxford University Press · 2020 10.1017/s1431927620014701
  18. Towards data-driven next-generation transmission electron microscopy Nature Materials · Nature Portfolio · 2020 10.1038/s41563-020-00833-z
  19. TEMImageNet training library and AtomSegNet deep-learning models for high-precision atom segmentation, localization, denoising, and deblurring of atomic-resolution images Scientific Reports · Nature Portfolio · 2021 10.1038/s41598-021-84499-w
  20. Machine Learning Pipeline for Segmentation and Defect Identification from High-Resolution Transmission Electron Microscopy Data Microscopy and Microanalysis · Oxford University Press · 2021 10.1017/s1431927621000386
  21. Developing and Evaluating Deep Neural Network-Based Denoising for Nanoparticle TEM Images with Ultra-Low Signal-to-Noise Microscopy and Microanalysis · Oxford University Press · 2021 10.1017/s1431927621012678
  22. In search of best automated model: Explaining nanoparticle TEM image segmentation Ultramicroscopy · Elsevier BV · 2021 10.1016/j.ultramic.2021.113437
  23. Deep learning detection of nanoparticles and multiple object tracking of their dynamic evolution during in situ ETEM studies Scientific Reports · Nature Portfolio · 2022 10.1038/s41598-022-06308-2
  24. Applications of deep learning in electron microscopy Microscopy · Oxford University Press · 2021 10.1093/jmicro/dfab043
  25. Reconstructing the exit wave of 2D materials in high-resolution transmission electron microscopy using machine learning Ultramicroscopy · Elsevier BV · 2022 10.1016/j.ultramic.2022.113641