본문 펼치기
Article https://doi.org/10.1038/s41467-023-40875-w
# Electron counting detectors in scanning transmission electron microscopy via hardware signal processing
Received: 9 May 2023
Accepted: 10 August 2023
Check for updates
Jonathan J. P. Peters 1,2, Tiarnan Mullarkey 1,3, Emma Hedley4,
Karin H. Müller <sup>5</sup>, Alexandra Porter <sup>5</sup>, Ali Mostaed 4 & Lewys Jones 1,2,3
Transmission electron microscopy is a pivotal instrument in materials and
biological sciences due to its ability to provide local structural and spectroscopic information on a wide range of materials. However, the electron
detectors used in scanning transmission electron microscopy are often unable
to provide quantified information, that is the number of electrons impacting
the detector, without exhaustive calibration and processing. This results in
arbitrary signal values with slow response times that cannot be used for
quantification or comparison to simulations. Here we demonstrate and optimise a hardware signal processing approach to augment electron detectors to
perform single electron counting.
Many technological advances are underpinned by gaining a better
understanding of materials, from their macroscopic properties to subatomic effects. Transmission electron microscopy (TEM) as a technique plays a significant role in these advances due to its ability to
directly measure structural, chemical, morphological, bonding, and
electronic properties on atomic length scales. No other technique has
this capability. For example, electron microscopy has been crucial the
development of ever smaller semiconductor feature sizes <sup>1,2</sup>, development of higher energy density batteries <sup>3,4</sup>, and the understanding of
biomolecules <sup>5,6</sup> . Whilst TEM can be divided into many sub-techniques
covering imaging, diffraction, and spectroscopy, all involve probing a
sample with high energy electrons (accelerated by voltages of typically
60–300 kV). In addition, all disciplines see a constant drive to move
away from qualitative measurements towards truly quantitative
measurements <sup>7–11</sup> . For example, the development of CCD cameras that
count individual electrons has greatly accelerated the study of biological specimens in the TEM by removing noise effects and allowing
extremely weak signals to be measured <sup>12</sup> . In the case of biological
samples, this is essential to avoid or minimise damage due to the
electron beam.
In contrast to conventional parallel illumination TEM, scanning
TEM (STEM) uses a concentrated electron beam that is rastered across
a sample. At each point of the raster, various signals can then be
measured simultaneously, routinely with better than 100 pm
resolution <sup>13,14</sup> . The most prevalent mode is annular dark field (ADF),
shown schematically in Fig. 1a. Here an annular detector collects
electrons that have been scattered by the sample to some range of
angles <sup>15,16</sup> . In its simplest form, this gives a high signal when electrons
have scattered from a material’s atoms, and a low signal when the
beam passes straight through, i.e. between the atoms, shown in Fig. 1b.
This facile interpretation of images, along with the ability to simultaneously measure multiple signals (e.g. X-ray spectroscopy), has made
ADF STEM a popular and commonplace method.
Currently in the STEM, the transmitted or scattered electrons are
most commonly detected by a scintillator coupled to a photomultiplier tube whose output is then fed into amplification and finally
an analog-to-digital converter. This does not natively produce quantitative numbers and therefore results in a qualitative measurement
without further effort <sup>17</sup> . Furthermore, it has been shown that all analog
detectors have non-negligible dark noise and a finite response time,
resulting in the blurring of any signal or image, becoming most
noticeable when scanning pixels at the sub-1-μs timescale <sup>18</sup> .
Previous approaches to achieve quantitative measurements of
ADF intensities involve comparison to simulations <sup>19</sup> . However, this
1Advanced Microscopy Laboratory (AML), Trinity College Dublin, the University of Dublin, Dublin, Ireland. 2School of Physics, Trinity College Dublin, the
University of Dublin, Dublin, Ireland. <sup>3</sup> Centre for Doctoral Training in the Advanced Characterisation of Materials, AMBER Centre, Dublin, Ireland. <sup>4</sup> Department
of Materials, University of Oxford, Oxford, UK. <sup>5</sup> Faculty of Engineering, Department of Materials, Imperial College London, London, UK.
[e-mail: jonathan.peters@tcd.ie](mailto:jonathan.peters@tcd.ie)
a b
Incident
beam
Fast scan direction
2 Å
Scan X/Y signal
Scan coils
Specimen
Scattered
beam
Detectors
ADF BF
Detector signal(s)
Pulse signal(s)
c d
Pixel 1 Pixel 2 Pixel 3 Pixel 4 Pixel 5
0.2
0.1
0.0
2
1
0
1
0
0.5
0.5
1.0
1.5
2.5
2.5
e
0.0
0.0
Time (μs)
0 5 10 15 20 25
Time (μs)
Time (μs)
1.0
1.5
2.0
2.0
Fig. 1 | STEM and electron pulse counting overview. a Schematic of STEM imaging, including signal paths to/from control electronics. b Example ADF STEM
image showing individual gold atoms. The fast scan direction shows the direction
that pixels are acquired consecutively. c Signal from a scintillator-based ADF
requires exhaustive characterisation of each individual microscope
and its detection system <sup>17,20,21</sup> . By doing this, any imperfections in the
detection system, such as inhomogeneous detectors or Gaussian noise
from electronics, can be accounted for. The time required and difficulty of implementation has prevented these quantitative measurements from being viable as a widespread approach.
Modern detection systems can somewhat improve quantitative
measurements, with solid-state direct electron detectors (where the
sensor is directly exposed to the electron beam) having more uniform
detection intensities and significantly lower noise levels <sup>22,23</sup> . However,
there are still issues with the electronics/amplification resulting in
arbitrary values, requiring additional calibration. Solid state 4D-STEM
detectors are steadily growing in prevalence due to the information
they offer <sup>24</sup>, although these pose two main problems: price and speed.
New direct electron detectors can be prohibitively expensive and are
therefore restricted to a limited number of laboratories that can fund
such purchases. Perhaps more importantly, the speed of 4D detectors
is often limited to the order of 100 µs per pixel <sup>25</sup> . By contrast, conventional ADF detectors routinely target sub-microsecond pixel times
—a pixel time that is falling still further with newer scan generators.
detector showing the raw signal, signal gradient, and electron event stream. d and
e Show single electron detection signals from a scintillator detector and solid-state
detector, respectively.
This poor time resolution is in conflict with the desire for fast
scanning approaches used for in-situ measurements or multi-frame
acquisition <sup>26,27</sup> . This is of particular importance to reduce the effects of
instabilities (e.g. mechanical/temperature drift, external magnetic
fields) whilst also lowering the electron dose rate on the specimen,
limiting beam damage effects.
Directly imaging electrons (i.e., electron counting) has been particularly advantageous in the field of cryo-electron microscopy, with
improved signal-to-noise ratio (SNR) allowing lower electron doses to
be used <sup>12</sup> . Electron counting also presents multiple benefits for STEM
imaging: image intensity units are more meaningful, with zero vacuum
level and intensities that can be calibrated as scattering probabilities
(if the beam current is known). Electron-counted detectors will be
uniform as each electron is represented the same (i.e., as a 1), instead of
depending on scintillation strength or light-guide design <sup>28</sup> . Because of
the direct measurements of the number of electrons, Gaussian noise is
eliminated, leaving only the fundamental and unavoidable Poisson
noise that can be easily modelled. Electron-counted images are therefore more closely comparable to simulations, benefitting
image quantification as well as better facilitating machine learning
approaches by allowing use of simulated datasets <sup>29</sup> . Poisson noise
imaging also provides the best possible imaging conditions for a given
dose, outperforming other advanced imaging techniques such as
compressed sensing <sup>30,31</sup> . This allows imaging at lower electron doses,
reducing beam-related damage that enables imaging of sensitive
materials such as biological specimens, organics, and battery materials.
For this reason, many 4D-STEM detectors provide a counting mode,
though sometimes only being able to measure 1 electron per pixel <sup>32</sup> .
As fast scanning acquisitions are developed <sup>26,33,34</sup>, and as the speed
of control electronics is improved, the response time of a detector
becomes a limiting factor for resolution <sup>18,35</sup> . It has been observed that
each electron detection event on a detector has a non-zero duration
with the possibility of detection events extending over multiple
pixels <sup>35,36</sup> . This effectively smears the image in the fast scan direction,
and as a temporal effect, only depends on the characteristic detector
response time and the pixel dwell time. Although this is particularly
obvious for scintillator detectors, which may have a response time on
the order of microseconds <sup>18</sup>, solid-state detectors are also affected,
especially as the latest scan controllers are capable of scanning with
dwell times on the order of 10 ns per pixel. By performing electron
counting, each pulse is converted to a delta function, removing any
temporal effects of the detection system. Furthermore, a real-time
stream of electron detection events opens the possibility of further
event-based approaches in STEM, analogous to those of the TimePix
sensor <sup>37</sup> . For example, event-based detectors have been used to
achieve fast dwell times in both conventional imaging and electron
energy loss spectroscopy (EELS) <sup>38,39</sup> .
Though single electron events have been observed before on
scintillator detectors, any approach to forming an electron-counted
image has had poor counting efficiency or requires capturing redundant information and time-consuming post-processing <sup>36,40–43</sup> . The
most promising approach calculates the gradient or the raw detector
signal, and applies a threshold to determine electron events (Fig. 1c).
This allows for a higher detection efficiency for multiple rapid electron
events, and is compatible with a range of detector pulse shapes, from
traditional scintillator to solid-state detectors (Fig. 1d, e). Here we show
a hardware signal processing approach based on field programmable
gate arrays (FPGAs). This hardware discretises the electron signal in
real time and integrates with existing microscope scan generation and
detection systems in a retrofittable, modular, and seamless manner.
This affords users straightforward access to electron pulse counting
without compromising existing analog or spectroscopic signals. This is
in contrast to counting 4D-STEM detectors, which can have limited
collection angles and also block electrons from reaching any EELS
spectrometer. By moving to a quantitative measurement mode,
removing Gaussian noise and temporal response effects, and opening
the door for event-based detection, it is envisaged that electron pulse
counting will revolutionise STEM imaging in much the same way that
single electron counting has for conventional TEM imaging.
Results
Signal quantification
A number of factors determine an electron detector’s suitability for
quantifying a signal in STEM, based on both geometry and detection
efficiency. An ideal annular STEM detector would be a perfect ring or
circle with a uniform detection efficiency across the active region. The
deviation from this can be quantified from several parameters described by K. MacArthur et al. (2014) <sup>28</sup> and repeated here for convenience:
Ellipticity - the deviation from an ideal circular shape measured as the
ratio of the major to minor diameters of the detector inner opening;
Flatness - the detector sensitivity with respect to scattering angle
(radially) after averaging azimuthally; Roundness—the consistency of
the detector sensitivity around the detector (azimuthally) after averaging radially; Smoothness—the individually point sensitivity in comparison to all other points on the detector. These parameters can be
easily measured experimentally by imaging the detector, also known as
detector mapping. This is achieved by forming a point probe in the
detector plane, which is the scanned across the detector, collecting an
intensity at each point much like a conventional STEM image. An
example analysis is shown in Fig. 2a–f. The detector maps and measured
parameters from detectors across a range of manufacturers and STEMs
are shown in supplementary Fig. S1 with both analog and electron
counting modes. It is immediately apparent that the traditional analog
imaging mode is not suited for quantitative measurements of the
electron scattering due to the large variations in signal intensity across
the detector; all electrons are not measured equally.
Whilst this detector imaging mode, with the full intensity of the
electron beam incident on the detector (as opposed to only a fraction
of the beam that is scattered) is non-ideal for pulse counting due to
electron pile-up, it is immediately clear from Fig. 2h, i that the electron
counted images consistently achieve a significantly improved flatness,
roundness and smoothness compared to their analog counterparts.
The only exception is detector I, which is split into 6 segments (4 inner
quadrants and two rings). For this detector the gaps between segments
(forming part of the conduction path of the signal for the inner segments) become more pronounced with electron counting, producing
less uniformity. This is likely due to the effective filtering of low-energy
secondary electrons generated when the primary electron beam
impinges on the material between the segments (previously invisible
borders). Equally, electron counting does not alter the geometry of the
detectors, with ellipticity measurements being unaffected and other
non-ideal geometries such as the left region of Fig. 2a.
Whilst electron counting brings real-world detectors closer to the
idealised detectors used in simulations, the resulting images also
benefit from a quantified intensity scale. Figure 3 shows atomic resolution images of two materials captured simultaneously in analog and
electron-counted forms. Qualitatively the analog and electron-counted
images have similar resolution and image contrast, further confirmed
by the intensity line profiles across the image. However, as the detected signal has fundamentally changed, the image intensities of the
electron-counted images are now expressed in real electrons, instead
of arbitrary digitisation values. The measured signals now have a more
direct meaning to the underlying measurement, that is the probability
of an incoming electron to scatter. Whilst previous studies have used
extensive characterisation of the microscope and statistical approaches in order to make comparisons between experiment and simulation, all that is required to compare electron-counted images to
simulation is a knowledge of the current of the incident electron beam.
This can be measured using a Faraday cup or, if the beam current is low
enough to avoid electron pileup, by using the electron counting
detector itself with no specimen to scatter (i.e. through a vacuum
region). Such an imaging mode has a one-to-one parity with simulations, aiding a much simpler and better understanding of any specimen inside the STEM.
Temporal response
Whilst a quantitative signal has been long sought after, the temporal
response of STEM electron detectors has often been overlooked. In
part this is because traditional images were acquired with scan speeds
synced to mains voltage frequencies (to reduce distortions/interference), but more recent developments in multi-frame non-rigid
registration, and faster scanning for video recording of dynamic events
(e.g., in situ experiments capturing phase transitions) have reduced
pixel dwell times. As dwell times are reduced to the same order of
magnitude as the detector response time, streaking starts to appear in
the images, effectively blurring the information and reducing image
resolution.
Figure 4 demonstrates the temporal response of a scintillatorbased detector (detector 9 in Fig. 2). To highlight that this effect is a
temporal effect, not a spatial effect, we have imaged a chemically fixed
a
Analog b Counted <mark>c</mark>
d e f
Analog
Counted
0 120 240 360
Azimuth (°)
15
10
5
0
1.0
0.5
Analog
Counted
Analog
Counted
0.5 1.0 1.5
Normalised intensity
0.0
0 100 200 300
Radius (pixels)
1.1
1.0
0.9
g h i j
Analog
Counted
1 2 3 4 5 6 7 8 9
Detector #
140
120
100
80
60
40
20
0
25
20
15
10
5
0
1 2 3 4 5 6 7 8 9
Detector #
Analog
Counted
1 2 3 4 5 6 7 8 9
Detector #
20
15
10
5
Analog
Counted
50
40
30
20
10
0
0
1 2 3 4 5 6 7 8 9
Detector #
Fig. 2 | Comparison of detector imperfections withand without pulse counting.
a Analog image of an annular scintillator detector with contrast showing detection
efficiency. b Electron counted signal acquired simultaneously to (a). c Ellipticity
measurement from the detector’s inner radius showing major (red) and minor
(yellow) axes. d–f Flatness, roundness, and smoothness profiles for the analog and
electron-counted detectors shown in blue and red, respectively. Defined inner and
human macrophage cell exposed to graphene, shown as a montage
image in Fig. 4a. Note that this is considered low resolution when using
a microscope capable of atomic resolution. A single image of the
montage is shown in Fig. 4b, captured at 512 pixels wide, 256 pixels
high, 50 ns per pixel and averaging 200 frames. A clear streaking is
seen in the fast scan direction (left to right) as each individual electron
event (e.g. Figure 1d) smears across multiple pixels. Supplementary
Fig. S2 shows the streaking on the individual images before averaging.
The streaking is also visible in the FFT (Fig. 4c) as a suppression of highfrequency components. The simultaneously acquired electroncounted image and FFT are shown in Fig. 4d, e, respectively. As the
electrons are now detected as delta functions, the streaking is
removed and image resolution is preserved, as highlighted by the
retention of higher frequency components in the FFT.
Whilst the response time of an individual electron detection event
is expected, it is also possible to observe multiple characteristic decay
times. Figure 4f, g shows slower scanned images of a SrTiO3 lamella
(surrounded by vacuum) captured at 420 × 420 pixels and 500 ns per
pixel. To the right of the lamella is an afterglow with a slower decay
time than the individual electron events. Without knowing the exact
detail of the detector and scintillator, the origin of this response is
outer radii are shown by dashed vertical lines in f–j Ellipticity, flatness, roundness,
and smoothness values for a range of detectors. Measurements from analog and
counted signals are shown in shaded blue and red, respectively. Ellipticity measurements show no difference between analog and counted detector signals. The
detector shown in (a–f) is labelled detector 1. More information on each detector
can be found in the supplementary material.
unknown, though it may be from defects in the scintillator trapping
electrons/holes that are slowly released at emission centres <sup>44</sup> . The
responses can be described parametrically as a function of time, t,
using an exponential decay:
Ae <sup>�t=b</sup> + c, ð1Þ
with A and c describing the amplitude and offset, respectively, and b
describing the decay time. Figure 4h, i shows the fitting of Eq. (1) to the
fast and slow decay. The slow decay of the afterglow has a decay
constant of 4.5 ± 0.4 µs compared to 0.413 ± 0.004 µs for the individual
electron detection. Whilst not as pronounced, the slow decay time is
an order of magnitude larger, and will be present on conventional,
slower scanned images. The overall temporal detector response will
differ between detectors and must be characterised on an individual
bases, though the use of electron counting removes these problems in
all cases.
Detection efficiency
One consideration with the signal processing approach to distinguish
individual electrons is the detection efficiency as the number of
## a d
Analog
Pulse Counted
2.65
2.60
2.55
2.50
2.45
220
210
200
190
180
Analog
## b
30
25
20
15
10
25
20
15
10
5
0
<u>Analog</u> <u>Counted</u>
0 1 2 3 4
Distance (nm)
<u>Analog</u> <u>Counted</u>
2 nm 2 nm
Pulse Counted
## e
## c f
2 nm 2 nm
Fig. 3 | Atomic resolution imaging with electron pulse counting. a, b Analog and
electron counted images of LaFeO3 (viewed along the 〈110〉 pseudocubic zone axis)
at atomic resolution. Images are the average of 12 frames after non-rigid registration. c Line profiles from the region highlighted in (a) for both analog and counted
electrons increases. This has been a well-understood limitation of
electron-counted CCD detectors, though arguably an upper limit to
electron dose is not disadvantageous when dose reductions are
desirable. In the approach applied here, as the number of electrons per
unit time increases, the likelihood of two events occurring close
enough together so as to be indistinguishable increases, this effect is
called coincidence loss or pile-up. Note that this does not account for
the detection efficiency of electrons hitting the detector that do not
create a pulse signal (i.e. are backscattered), though this is expected to
be close to unity for an appropriately designed detector <sup>45</sup> .
It is understood that the approach of thresholding in the gradient
domain increases detection efficiency as variances in amplitude from
detector inhomogeneity or from accumulated afterglow are removed.
Further to this, the use of solid-state detectors should provide better
detection efficiency as they typically exhibit a faster decay time,
allowing rapid events to be distinguished.
A simple approach to reduce the effects of electron pile-up may
be to split the monolithic detector into multiple segments. Such
detectors are already in use for differential phase contrast imaging
approaches <sup>46</sup> . In this case, multiple simultaneous electron events can
be detected if they occur on different detector segments.
To explore the detection efficiency of various detector geometries and detector types, simulations have been used to allow a direct
comparison using the same electron events. The geometry examined
here is shown in Fig. 5a, with four inner quadrants and two larger outer
rings. This mimics one of the real detectors analysed in Fig. 2. An
advantage of this geometry is that the innermost ring is subdivided
where electron scattering is stronger due to the Rutherford scattering
nature of the high angle scattered electrons. This is evident from the
simulation of scattering from a Si specimen shown in Fig. 5b, with the
radial profile shown in Fig. 5c. It is evident that the inner quadrants
experience the most electron dose and splitting this dose into 4 should
give larger benefits to detection efficiency than further splitting the
outer rings.
0 1 2 3 4 5
Distance (nm)
signals. d, e Analog and electron counted images of a gold nanoparticle. Images are
the average of 16 frames after non-rigid registration. f Line profiles from the region
highlighted in (d) for both analog and counted signals.
The simulated signal for a scintillator (using the experimentally
measured response shown in Fig. 1d) experiencing 3.75 e <sup>−</sup> µs <sup>−1</sup> is shown
in Fig. 5d with both raw signal and its gradient. From these simulated
signals, the electron events can be distinguished using the same
approach as in the hardware. The detection efficiency is then measured as the number of electrons detected as a fraction of the number
of electrons in the signal. Figure 5e shows the detection efficiency as a
function of the expected electrons per microsecond. This is proportional to the electron beam current that would be set experimentally,
though the electrons are Poisson distributed in time and therefore
uncertainty in the expected electrons follows a Poisson behaviour.
Figure 5e confirms the previous hypothesis that the gradient thresholding provides a better detection efficiency than direct thresholding
of the signal amplitude. It is also clear that the segmentation of the
signal improves on the unsegmented detector, with the best detection
efficiency achieved by both segmentation and thresholding the signal
gradient.
The same electron events but detected by a faster response solid
state detector (using the experimentally determined response shown
in Fig. 1e) are shown in Fig. 5f, with the detection efficiencies shown in
Fig. 5g. The expected improvements are again seen, with a similar
trend between the thresholding approach and the segmentation vs
solid detector. It should be noted that here the threshold levels have
been optimised for the specific data streams, something that is not
possible in an experimental setting. For experiments, low doses should
be used to avoid pile-up. The threshold can then be set just above the
dark noise level to avoid detecting noise as spurious electrons whilst
still detecting all real pulses.
The SNR improvements gained from the use of counting detectors should also be put in the context of the detection efficiency. As the
detection efficiency decreases, by nature the SNR also decreases
(compared to the non-counting case) as does the dose efficiency.
However, the main benefits to SNR are achieved at low doses where the
pulse detection efficiency is highest.
<mark>a</mark> <mark>b</mark> Analog <mark>c</mark> Analog
1 μm
20 μm <sup>~~-~~</sup> <sup>1</sup>
<mark>d</mark> Counted <mark>e</mark> Counted
5 μm 1 μm
f Analog g Counted
h
i
20 μm <sup>~~-~~</sup> <sup>1</sup>
Analog
Counted
0.0 0.5 1.0 1.5 2.0 2.5
Analog
Counted
1
0
20
10
2 μm
2 μm
0 10 20 30
0
40 50 60
Fig. 4 | Temporal response of analog vs pulse counted imaging. a Montage ADF
image of a human monocyte derived macrophage cell exposed to graphene.
b Zoomed in region of (a) showing 256×512 pixels. c FFT of (b) showing signal is
suppressed at higher frequencies in the fast scan direction. d Counted image
acquired simultaneously to (b). e FFT of (d) showing uniform response at all frequencies. Images are the average of 200 frames with 50 ns per pixel. f, g Analog and
Whilst the exact results displayed in Fig. 5 may not apply to all
scintillator or solid-state detectors, with varying factors such as noise,
pulse width and pulse height variance, the ultimate detection efficiency can be achieved by thresholding the gradient of a fast, uniform,
segmented detector.
Discussion
We have demonstrated how electron pulse counting hardware fitted to
a range of electron detectors can provide improvements to STEM
imaging through detector uniformity, signal quantification, and
improved temporal response. This will greatly improve and streamline
work to extract morphological information from STEM imaging, providing direct information on the electron scattering, and enable
operators to work effectively at lower electron doses, and therefore
examine more sensitive samples, than currently possible. The temporal response improvements also allow ultrafast scanning with full
signal fidelity, allowing the capture of dynamic events and providing
flexibility in dose control. We have also shown the approaches and
hardware configurations to provide the best detection efficiency, with
segmented solid-state detectors desirable. Nevertheless, the approaches shown here apply to any detector, allowing the retrofit of existing
equipment to extend its capabilities, lifetime, and sustainability.
Time (μs)
counted images, respectively, of an SrTiO3 lamella surrounded by vacuum. Image
size is 420 × 420 with 50 frames averaged at 500 ns per pixel. The white arrows
show a region where the analog image exhibits an afterglow with slow decay. The
different time constants can be seen from time profiles of a single electron event (h)
and slow afterglow (i) for both analog and electron counted signals. Dashed black
line shows fit of an exponential decay.
Methods
Counting in Hardware
Electron impacts on typical scintillator STEM detectors result in signal
pulses with a width of ~1 µs, though the rising edge of the pulse has been
observed to be relatively sharp (~100 ns) <sup>18</sup> . Therefore, the pulse
counting system requires sufficiently high temporal resolution. To
achieve this and provide flexibility, a field programmable gate array
(FPGA) approach was chosen with the signal read in through analog to
digital conversion (ADC). In particular, a Xilinx Zynq 7010 System on a
Chip (SoC) with 2 integrated 14-bit ADCs (Linear Technologies
LTC2145CUP-14) and digital outputs. The ADCs run at a clock speed of
125 MHz (8 ns period) given more than sufficient temporal resolution to
process scintillator signal pulses. To achieve the highest dynamic range,
the incoming signal voltages range must be matched to the input voltage range of the ADCs. The signal from ADF detectors can reach >10 V
depending on the specific detector and its control electronics (e.g.
brightness and contrast). This will determine the pulse heights as well as
a voltage offset. To account for this, the ADC inputs use simple signal
conditioning electronics using high-speed operational amplifiers to
provide gain/attenuation and offsets. Importantly, the input impedance
must be matched to the transmission lines to achieve good signal
integrity; typically TEMs use 50 Ω transmission lines.
a b c
Quadrants Inner ring Outer ring
S
O
b
0 100
200 300
d
f
<mark>200 mrad</mark>
0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0
Time (μs)
0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0
Time (μs)
I
e
g
1.0
0.8
0.6
0.4
0.2
0.0
1.0
0.8
0.6
0.4
0.2
0.0
Scattering angle (mrad)
Amplitude threshold, total area
Gradient threshold, total area
Amplitude threshold, segmented
Gradient threshold, segmented
0 5 10 15 20
Expected electrons (μs <sup>-1</sup> )
Amplitude threshold, total area
Gradient threshold, total area
Amplitude threshold, segmented
Gradient threshold, segmented
0 5 10 15 20
Expected electrons (μs <sup>-1</sup> )
Fig. 5 | Optimising detection efficiency with pulse counting. a Schematic of the
segmentation of a solid detector into 6 segments. b Example signal from h110i
silicon that is incident on the detector shown in dashed white lines. c Azimuthal
average of the signal shown in (b) as a function of scattering angle. Detector radii
are shown by dashed grey lines. d Simulated signal and gradient from a solid and
segmented scintillator detector (as shown in Fig. 1d). Colours correspond to those
FPGA
FPGAs provide great flexibility through the ability to implement custom microcircuitry through the use of hardware description language
(HDL) such as Verilog. This provides accessibility through abstraction
from transistor-level logic whilst also providing the speed from direct
integration with other electronics (in this case the ADCs and digital
outputs) rather than using slower communication protocols, such as
serial peripheral interface (SPI) or inter-integrated circuit (I <sup>2</sup> C) that
might be found on mainstream SBCs such as the Raspberry Pi.
shown in (a). e Detection efficiency as a function of expected electrons per unit
time for thresholding in the amplitude and gradient domains, both with and
without detector segmentation. f, g Electron events and detection efficiency for the
same event stream as shown in (d) but now detected by a solid-state detector (as
shown in Fig. 1e).
Using the flexibility of the FPGA, a range of signal processing
options can then be designed and implemented but can also be
enabled/disabled as desired. Options are available to detect pulses
only after a set number of consecutive readings are above/below the
threshold in order to suppress noise effects, as well as the time difference used for calculating the gradient. Further discussion is presented in the supplementary materials. Further controls can set the
minimum periodicity and width of the output digital pulses to match
the specifications of the specific scan controller.
Scan interface
Image formation can be a complex problem requiring the syncing
of signal inputs with the scan output to form an image. To solve this,
we have the designed the pulse counting hardware to interface with
any scan controller that accepts a transistor-transistor logic (TTL)
digital input, e.g. Gatan’s Digiscan II/III, point electronic’s TEM scan
controller. It is then a simple case of splitting the detector output
signal to the ADCs that feed into the pulse-counting FPGA. The gradientbased electron discrimination is then performed on the FPGA, with the
TTL compatible output signal fed into the scan controller. Because
the electron counting is performed in hardware, the maximum
detectable electron frequency is 62.5 MHz, where electron pile-up is the
limiting factor long before the speed of the hardware. A more important
factor is that the pulse counting is fast enough to sync with the scan
control, typically on the order of 1 µs per pixel, but frequency being
pushed to 50 ns. A usability advantage the interface gives is that the
pulse counting hardware appears as a simple detector in the control
software that can be quickly enabled/disabled and acquired simultaneously to any other detectors or spectrometers. This also immediately
gives access to a range of existing workflows as well as interfacing
seamlessly with existing acquisitions, such as the multi-frame
SmartAlign method <sup>27</sup> .
Experimental imaging
Images in Fig. 3 were acquired using a probe corrected JEOL ARM200CF operating at200 kV and being controlled by a Gatan DigiScan II.
Images in Fig. 4 were acquired using an uncorrected Thermo Fisher
Titan operating at 300 kV and controlled by a point electronic TEM
scan controller. Details of sample preparation is provided in the supplementary materials.
Detector quantification
To define the detector flatness, roundness, smoothness, and ellipticity,
the active region of the detector needs to be determined. Here it is
defined as any area with signal greater than the midpoint of the counted
image intensities. Detector map intensities are then normalised to the
range of the background level and the average of the active region. The
active region does not need to be continuous (as shown in Fig. 2a) and is
included in all measurements as all regions still contribute to the
detected signal. This defines a binary mask for the active region that is
used in the further calculations. For flatness measurements, breaks in
the active region, extreme ellipticity, or non-concentricity pose a problem for defining the active region after azimuthal averaging. In this
work, the active region for flatness measurements is defined as the 90%
level of the azimuthal average of the active region mask.
Detection efficiency simulations
Electron detection events were modelled as a Poisson distributed
process for an expected number of events per unit time. Events were
then modelled using experimental pulse profiles, pulse height distributions, and noise profiles. The segmentation of the detector/events
assumed a uniform azimuthal distribution with a radial distribution
weighted according to Fig. 5c. The pulse discrimination routine was
then performed, and the detected events compared to the known
number of events. The analysis was performed 100 times for each
number of expected electrons per unit time.
Data availability
[Data are available from https://doi.org/10.5281/zenodo.7689534.](https://doi.org/10.5281/zenodo.7689534)
References
1. Gu, K. et al. Three-dimensional racetrack memory devices designed
from freestanding magnetic heterostructures. Nat. Nanotechnol. 17,
1065–1071 (2022).
2. Wu, F. et al. Vertical MoS2 transistors with sub-1-nm gate lengths.
Nature 603, 259–264 (2022).
3. Zachman, M. J., Tu, Z., Choudhury, S., Archer, L. A. & Kourkoutis, L.
F. Cryo-STEM mapping of solid–liquid interfaces and dendrites in
lithium-metal batteries. Nature 560, 345–349 (2018).
4. Liu, T. et al. Origin of structural degradation in Li-rich layered oxide
cathode. Nature 606, 305–312 (2022).
5. Kaledhonkar, S. et al. Late steps in bacterial translation initiation
visualized using time-resolved cryo-EM. Nature 570, 400–404 (2019).
6. Henderson, R. From electron crystallography to single particle
cryoEM (Nobel Lecture). Angew. Chem. Int. Edn. 57,
10804–10825 (2017).
7. Dwyer, C. Quantitative annular dark-field imaging in the scanning
transmission electron microscope—a review. J. Phys. Mater. 4,
042006 (2021).
8. Peters, J. J. P., Sanchez, A. M., Walker, D., Whatmore, R. & Beanland,
R. Quantitative High‐Dynamic‐Range Electron Diffraction of Polar
Nanodomains in Pb2ScTaO6. Adv. Mater. 31, 1806498 (2019).
9. Brydson, R. A brief review of quantitative aspects of electron energy
loss spectroscopy and imaging. Mater. Sci. Tech. Ser. 16,
1187–1198 (2000).
10. Jones, L. Quantitative ADF STEM: acquisition, analysis and interpretation. IOP Conf. Ser. Mater. Sci. Eng. 109, 012008 (2016).
11. Hÿtch, M. J., Snoeck, E. & Kilaas, R. Quantitative measurement of
displacement and strain fields from HREM micrographs. Ultramicroscopy 74, 131–146 (1998).
12. Li, X. et al. Electron counting and beam-induced motion correction
enable near-atomic-resolution single-particle cryo-EM. Nat. Methods 10, 584–590 (2013).
13. Sawada, H. et al. Super high resolution imaging with atomic resolution electron microscope of JEM-ARM300F. JEOL News 49, (2014).
14. Batson, P. E., Dellby, N. & Krivanek, O. L. Sub-ångstrom resolution
using aberration corrected electron optics. Nature 418,
617–620 (2002).
15. Heinemann, K. & Poppa, H. Selected‐zone dark‐field electron
microscopy. Appl. Phys. Lett. 20, 122–125 (1972).
16. Bals, S., Kilaas, R. & Kisielowski, C. Nonlinear imaging using annular
dark field TEM. Ultramicroscopy 104, 281–289 (2005).
17. Jones, L. et al. Rapid estimation of catalyst nanoparticle morphology and atomic-coordination by high-resolution Z-contrast electron
microscopy. Nano Lett. 14, 6336–6341 (2014).
18. Mullarkey, T. et al. How fast is your detector? the effect of temporal
response on image quality. Microsc. Microanal. 29, 1402–1408
(2023).
19. Ishizuka, K. A practical approach for STEM image simulation based
on the FFT multislice method. Ultramicroscopy 90, 71–83 (2002).
20. Grieb, T. et al. Determination of the chemical composition of GaNAs
using STEM HAADF imaging and STEM strain state analysis. Ultramicroscopy 117, 15–23 (2012).
21. Aert, S. V. et al. Procedure to count atoms with trustworthy singleatom sensitivity. Phys. Rev. B 87, 064107 (2013).
22. Seifer, S., Houben, L. & Elbaum, M. Flexible STEM with simultaneous
phase and depth contrast. Microsc. Microanal. 27, 1476–1487 (2021).
23. Levin, B. D. A. Direct detectors and their applications in electron
microscopy for materials science. J. Phys. Mater. 4, 042005 (2021).
24. Ophus, C. Four-dimensional scanning transmission electron
microscopy (4D-STEM): from scanning nanodiffraction to ptychography and beyond. Microsc. Microanal. 25, 563–582 (2019).
25. Nord, M. et al. Fast pixelated detectors in scanning transmission
electron microscopy. part i: data acquisition, live processing, and
storage. Microsc Microanal. 26, 653–666 (2020).
26. Ishikawa, R. et al. High spatiotemporal-resolution imaging in the
scanning transmission electron microscope. Microscopy 69,
240–247 (2020).
27. Jones, L. et al. Smart Align—a new tool for robust non-rigid registration of scanning microscope data. Adv. Struct. Chem. Imaging 1,
8 (2015).
28. MacArthur, K. E., Jones, L. B. & Nellist, P. D. How flat is your
detector? Non-uniform annular detector sensitivity in STEM quantification. J. Phys. Conf. Ser. 522, 012018 (2014).
29. Gambini, L., Mullarkey, T., Jones, L. & Sanvito, S. Machine-learning
approach for quantified resolvability enhancement of low-dose
STEM data. Mach. Learn Sci. Technol. 4, 015025 (2023).
30. Sanders, T. & Dwyer, C. Inpainting versus denoising for dose
reduction in scanning-beam microscopies. IEEE Trans. Image Process. 29, 351–359 (2020).
31. Broek, W. Vden et al. Various compressed sensing setups evaluated
against shannon sampling under constraint of constant illumination. IEEE Trans. Comput. Imaging 5, 502–514 (2018).
32. Bustillo, K. C. et al. 4D-STEM of beam-sensitive materials. Acc.
Chem. Res. 54, 2543–2551 (2021).
33. Mullarkey, T., Peters, J. J. P., Downing, C. & Jones, L. Using your
beam efficiently: reducing electron dose in the STEM via flyback
compensation. Microsc Microanal. 28, 1428–1436 (2022).
34. Sang, X. et al. Precision controlled atomic resolution scanning
transmission electron microscopy using spiral scan pathways. Sci.
Rep.−UK 7, 43585 (2017).
35. Buban, J. P., Ramasse, Q., Gipson, B., Browning, N. D. & Stahlberg,
H. High-resolution low-dose scanning transmission electron
microscopy. J. Electron. Microsc. 59, 103–112 (2009).
36. Mullarkey, T., Downing, C. & Jones, L. Development of a practicable
digital pulse read-out for dark-field STEM. Microsc. Microanal. 27,
99–108 (2021).
37. Llopart, X., Ballabriga, R., Campbell, M., Tlustos, L. & Wong, W.
Timepix, a 65k programmable pixel readout chip for arrival time,
energy and/or photon counting measurements. Nucl. Instrum.
Methods Phys. Res Sect. Accel. Spectrometers Detect Assoc. Equip.
581, 485–494 (2007).
38. Jannis, D. et al. Event driven 4D STEM acquisition with a Timepix3
detector: Microsecond dwell time and faster scans for high precision and low dose applications. Ultramicroscopy 233,
113423 (2022).
39. Auad, Y. et al. Event-based hyperspectral EELS: towards nanosecond temporal resolution. Ultramicroscopy 239, 113539 (2022).
40. Sang, X. & LeBeau, J. M. Characterizing the response of a
scintillator-based detector to single electrons. Ultramicroscopy 161,
3–9 (2016).
41. Krause, F. F. et al. Effects of instrument imperfections on quantitative scanning transmission electron microscopy. Ultramicroscopy
161, 146–160 (2016).
42. Ishikawa, R., Lupini, A. R., Findlay, S. D. & Pennycook, S. J. Quantitative annular dark field electron microscopy using single electron
signals. Microsc Microanal. 20, 99–110 (2014).
43. Mittelberger, A., Kramberger, C. & Meyer, J. C. Software electron
counting for low-dose scanning transmission electron microscopy.
Ultramicroscopy 188, 1–7 (2018).
44. Ubizskii, S. et al. Role of afterglow in optically stimulated luminescence of YAP:Mn. Acta Phys. Polonica A 141, 379–385 (2022).
45. Kotera, M. & Kamiya, Y. Computer simulation of light emission by
high-energy electrons in YAG single crystals. Ultramicroscopy 54,
293–300 (1994).
46. Kohno, Y., Seki, T., Findlay, S. D., Ikuhara, Y. & Shibata, N. Real-space
visualization of intrinsic magnetic fields of an antiferromagnet.
Nature 602, 234–239 (2022).
Acknowledgements
The authors would like to acknowledge the help and support from the
Advanced Microscopy Laboratory, Trinity College Dublin and David
Cockayne Centre for Electron Micorscopy, University of Oxford. J.J.P.P.
and L.J. acknowledge funding from Science Foundation Ireland (SFI)
grant number 19/FFP/6813. L.J. acknowledges funding from SFI grant
URF/RI/191637. T.M. acknowledges the SFI-EPSRC CDT-ACM (grants 18/
EPSRC-CDT-3581 and EP/S023259/1). This project has received funding
from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 823717-ESTEEM3. We would also
like to acknowledge the help of Dr. Brant Walkley in preparing the
LaFeO3 ceramic.
Author contributions
J.J.P.P. designed and constructed the pulse counting hardware. J.J.P.P.
designed the experiments with L.J. Experiments were performed by
J.J.P.P., T.M., E.H., and A.M. Macrophage samples were prepared and
provided by A.P. and K.H.M. Data analysis was performed by J.J.P.P. The
manuscript was written by J.J.P.P. with input from all authors. All authors
have given approval to the final submission.
Competing interests
J.J.P.P. and L.J. are stakeholders in turboTEM, a university spin-out
developing pulse counting hardware. The remaining authors declare no
competing interests.
Additional information
Supplementary information The online version contains
supplementary material available at
[https://doi.org/10.1038/s41467-023-40875-w.](https://doi.org/10.1038/s41467-023-40875-w)
Correspondence and requests for materials should be addressed to
Jonathan J. P. Peters.
Peer review information Nature Communications thanks Ian MacLaren
and the other, anonymous, reviewer(s) for their contribution to the peer
review of this work. A peer review file is available.
Reprints and permissions information is available at
[http://www.nature.com/reprints](http://www.nature.com/reprints)
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Open Access This article is licensed under a Creative Commons
Attribution 4.0 International License, which permits use, sharing,
adaptation, distribution and reproduction in any medium or format, as
long as you give appropriate credit to the original author(s) and the
source, provide a link to the Creative Commons licence, and indicate if
changes were made. The images or other third party material in this
article are included in the article’s Creative Commons licence, unless
indicated otherwise in a credit line to the material. If material is not
included in the article’s Creative Commons licence and your intended
use is not permitted by statutory regulation or exceeds the permitted
use, you will need to obtain permission directly from the copyright
[holder. To view a copy of this licence, visit http://creativecommons.org/](http://creativecommons.org/licenses/by/4.0/)
[licenses/by/4.0/.](http://creativecommons.org/licenses/by/4.0/)
© The Author(s) 2023