Application Notes

Improving EBSD Analysis with AI-powered Shadow Masking

Author: Eleni Vomhof

Published: 01 Nov 2026 · Last updated: 01 Dec 2026

Introduction

EBSD analysis relies on the accurate detection of diffraction bands within an EBSP. If part of the pattern is obscured, the shadowed region can interfere with band detection and reduce the ability to index the acquired EBSP successfully. Shadowing can occur in several EBSD measurement geometries such as when measuring topographic specimens, when hardware components obstruct part of the signal path during in-situ measurements or shadowing from FIB milled trenches. The position and extent of the shadow may also vary from pattern to pattern as the electron beam moves across the specimen.

Conventional approaches can exclude a predefined region of the EBSP from band detection or use intensity-based thresholding to identify areas likely to be shadowed (Figure 1). These approaches may be effective where the shadow remains clearly defined and in a relatively constant position. However, a fixed detection region becomes less suitable when the shadow changes across the dataset, while intensity-based approaches may struggle to distinguish shadows reliably under varying pattern and background conditions.

Reduced EBSD detection area

Figure 1: Reduced band detection area excludes shadow region by only measuring bands inside the white circle.

AI-Powered Shadow Detection for Individual EBSPs

The AI-powered Shadow Masking functionality in Oxford Instruments AZtecHKL EBSD analysis software offers a dynamic alternative. Instead of applying the same mask or reduced detection area to every pattern, the AI-powered Shadow Masking functionality uses a convolutional neural network to identify and segment shadowed regions within each EBSP. The affected area is then excluded from subsequent processing, allowing band detection and indexing to use the remaining visible diffraction information (Figure 2).

AI-powered EBSD shadow masking vs standard EBSD shadow masking

Figure 2. Improvement of AI-powered shadow masking (c, d) vs standard shadow masking (a, b), showing whole band detection with shadow region masked and background correction, giving better EBSP and indexing of both patterns even when the shadow changes.

The detected shadowed region is converted into a binary mask that is applied before band detection. This prevents image features and intensity variations within the shadowed area from contributing to the band-detection algorithm, while preserving diffraction information from the remaining visible part of the pattern for background correction, band detection and indexing (Figure c, d). Built on a lightweight U-Net architecture, AI-powered Shadow Masking is designed for fast processing at rates compatible with high-speed EBSD acquisition (1000 Hz).

Results and Discussion

This Application Note demonstrates the capabilities of AI Shadow Masking using EBSD data from a Zinc sample positioned behind a heat shield during an in-situ heating experiment. The EBSP dataset was processed using two analysis configurations: a standard, fixed, reduced band-detection area and AI-powered Shadow Masking.

EBSD IPF-Z maps with standard and AI-powered shadow masking

Figure 3: IPF-Z maps generated from the same EBSD dataset demonstrating significant indexing improvement with AI-powered shadow masking. (a) standard shadow masking, (b) AI-powered shadow masking. With thanks to Dr Ali Gholinia and Dr Jack Donoghue, University of Manchester.

Using the reduced band-detection area approach (Figure 3a), only part of the mapped field could be analysed. The ROI in the center where the band detection area was optimized shows good indexing, however across larger areas towards the edges, the heat-shield shadow extended into the region used for EBSP analysis, preventing successful indexing.

In contrast, AI Shadow Masking (Figure 3b) uses a dynamic masking solution allowing indexing across the entire field of view.

Importantly, AI Shadow Masking did not reconstruct diffraction information obscured by the heat shield. The improved results were achieved solely by efficiently excluding shadowed regions from processing. Band detection and indexing continued to rely entirely on measured diffraction information.

Conclusion

The results of this study demonstrate how dynamic, pattern-specific masking can extend reliable EBSD analysis in measurements where changing shadows would otherwise interfere with band detection and indexing.

Key Takeaways

  • Shadowing can interfere with EBSP band detection and indexing, leading to incomplete EBSD datasets.
  • AZtecHKL AI Shadow Masking uses a neural-network-based segmentation model to identify and exclude shadowed regions in each individual EBSP.
  • AI Shadow Masking enabled successful EBSD indexing and analysis where fixed reduced band-detection area approaches failed.

← Back to Learning