DEEP Inspection for Materials Science

Inspection and characterization of materials are fundamental for understanding material properties, ensuring quality control, and accelerating materials development and advanced manufacturing. However, conventional approaches often require extensive expert analysis of complex images, making them time-consuming and difficult to scale. With the rapid growth of high-resolution imaging techniques, deep learning-based methods provide powerful solutions for automated materials image analysis by learning meaningful visual features for tasks such as defect classification, microstructure recognition, process monitoring, and intelligent quality assessment.

This workshop offers a focused, hands-on introduction to deep learning for visual inspection in materials science. Using the Severstal Steel Defect Detection dataset as a concrete, running example, participants will follow a complete analysis pipeline, from raw image data through model training to interpretable results. The techniques covered are deliberately chosen for their breadth of applicability: while the examples are grounded in industrial quality control, the same approaches translate directly to defect detection in electron microscopy, anomaly identification in medical imaging, and structural characterization across a wide range of domains.

Prerequisites

  • Basic Python programming (loops, functions, libraries)

  • Familiarity with NumPy or similar data manipulation tools is helpful but not required

  • No prior deep learning experience necessary – core concepts will be introduced from scratch

Learning outcomes

This material is for practitioners and researchers in materials science and industrial inspection who want to apply deep learning to surface defect analysis. No prior deep learning experience is required, but familiarity with Python is assumed. The techniques covered transfer directly to related domains such as electron microscopy, medical imaging, crystallography, and broader manufacturing quality control.

By the end of this workshop, learners should be able to:

  • Explain the two core assumptions behind CNNs (translation invariance and locality) and why they make convolution more parameter-efficient than fully connected layers

  • Describe and distinguish four computer vision paradigms: anomaly detection, image classification, object detection, and image segmentation, and identify which is appropriate for a given inspection task

  • Apply transfer learning (feature extraction and fine-tuning) with pretrained CNN and transformer architectures (VGG, ResNet, ViT) to a new defect classification dataset

  • Explain how PatchCore detects anomalies without labeled defect examples, and contrast this with supervised classifiers and their open-set failure modes

  • Understand the YOLO family’s progression from two-stage pipelines to single-pass anchor-free detection, and apply YOLO11 to both object detection and instance segmentation tasks

  • Distinguish semantic segmentation (U-Net, SegFormer) from instance segmentation (YOLO11-seg) and select the appropriate architecture for a given materials inspection scenario

Credit

This material was developed by the Sweden AI Factory at NAISS/NSC, Linköping University and RISE.

Parts of the curriculum are adapted from Dive into Deep Learning (CC BY-SA 4.0).

License

Licensing

Unless noted otherwise, this material is dual-licensed:

  • Teaching material, text, figures and other media — CC BY-SA 4.0

  • Source code, code cells and snippets — MIT

Copyright © 2026 Sweden AI Factory and the contributors.

The full license texts are in LICENSE and LICENSE.code in the repository.

Suggested attribution

“DEEP Inspection for Materials Science” by Sweden AI Factory, used under CC BY-SA 4.0.