NIST detection limits and image quality metrics for SEM images.
Project description
Detection Limits of Artificial Intelligence (AI) based Object Detection from Scanning Electron Microscopy (SEM) Images
This project is about designing a methodology for quantifying and relating detection limits of AI model-based measurements from SEM images to digital image quality metrics and to human observers.
Statements of purpose and maturity
This software supports the methodology for quantifying detection limits for AI-based measurements from SEM images. The detection limits establish the relationship between the quality of SEM images and human or AI model detection performance The software is actively developed.
Description of the repository contents
The repository contains the software for
- extracting image quality metrics from simulated SEM image collections
- merging image quality metrics with AI model accuracy metrics, where the AI model was trained on the same simulated SEM image collection
- plotting image quality metrics and AI model accuracy metrics as a function of SEM Image simulation noise and contrast parameters
- plotting relationships between detection limits of human (eye model) and numerical (AI model) observers
- plotting relationships between AI model single-valued metrics (Dice, FNR, FPR) and multiple SNR definitions
- interactively interrogating all plots via web interface
The repository contains two folders:
- src folder: contains all Python scripts
- web folder: contains all HTML, JavaScript, and CSS files together with the plots
Installation
To install the package, simply run:
pip install detection-limits
Usage
You can use the package to calculate image quality metrics for SEM images.
1. Import the package
import detection_limits as dl
import numpy as np
2. Calculate metrics for a single image
# Load your image and mask (example using numpy arrays)
image = np.random.rand(1024, 1024)
mask = np.random.randint(0, 2, (1024, 1024))
# Calculate metrics
metrics = dl.calculate_all_metrics(image, mask)
print(metrics)
3. Calculate metrics for a batch of images
# Define input and output paths
input_intensity_path = "./path/to/images"
input_mask_path = "./path/to/masks"
output_csv_path = "./results.csv"
# Run metrics calculation
dl.metrics(input_intensity_path, input_mask_path, output_csv_path, set_index=1)
Future Work
Future updates will include:
- Computational efficiency improvements
- Automated report generation
- GPU support for faster processing
Workflow of Computations
- Step 1: compute data quality metrics using
dl-metrics - Step 2: plot data quality metrics as a function of contrast and noise using
dl-plot-quality - Step 3: train UNet model on set 1 - set 5 (Web Image Processing Workflow)
- Step 4: infer image masks for set 6 using the trained UNet model and evaluate its accuracy (Web Image Processing Workflow)
- Step 5: merge the data quality metrics and AI model accuracy metrics using
dl-match - Step 6: plot relationships between data quality metrics and AI model accuracy metrics using
dl-plot-ai - Step 7: support decisions to obtain a trusted AI-based measurement by applying an AI model with a user-defined minimum accuracy requirement to an input SEM image with minimum SNR characteristics defined by the graph generated using
dl-analyze
Contact information
- Peter Bajcsy, ITL NIST, Software and Systems Division, Information Systems Group
- Contact email address at NIST: peter dot bajcsy at nist dot gov
Citation of the work
- Peter Bajcsy, Brycie Wiseman, Michael Majurski, and Andras E. Vladar, "Detection Limits of AI-based SEM Dimensional Metrology", Proceedings of SPIE conference on Advanced Lithography + Patterning, 23 - 27 February 2025, San Jose, California, US, URL
- Peter Bajcsy, Pushkar Sathe, and Andras E. Vladar, "Relating human and AI-based detection limits in SEM dimensional metrology", Under review.
LICENSE
- The version of LICENSE included in this repository is approved for use.
- Updated language on the [Licensing Statement][nist-open] page supersedes the copy in this repository. You may transcribe the language from the appropriate "blue box" on that page into your README.
Related material
-
We used ARTIMAGEN SEM Simulation Software to generate images with varying contrast and noise level.
- Cizmar P., Vladár A., Postek M. “Optimization of accurate SEM imaging by use of artificial images”, Proc. SPIE 7378, Scanning Microscopy, 737815, 2009, URL
- Project URL and GitHub Repo URL
- License: As this software was developed as part of work done by the United States Government, it is not subject to copyright, and is in the public domain. Note that according to GNU.org public domain is compatible with GPL.
-
We used UNet Convolutional Neural Network (CNN) AI model implementation By Michael Majurski (NIST) for training and inference of image segmentation
- Ronneberger, Olaf, Philipp Fischer, and Thomas Brox. "U-net: Convolutional networks for biomedical image segmentation." International Conference on Medical image computing and computer-assisted intervention. Springer, Cham, 2015.
- Name: WIPP UNet CNN Training Plugin and WIPP UNet CNN Inference Plugin
- Title: WIPP UNet CNN Training Plugin, Version: 1.0.0, Repository, Container image: wipp/wipp-unet-cnn-train-plugin:1.0.0
- Title: WIPP UNet CNN Inference Plugin, Version:1.0.0, Repository Container images: wipp/wipp-unet-cnn-inference-plugin:1.0.0
-
The execution and full computational provenance were obtained by using the WIPP scientific workflow software:
- GitHub: WIPP code
- Bajcsy, P. , Chalfoun, J. and Simon, M. (2018), Web Microanalysis of Big Image Data, Springer International Publishing.
Acknowledgement
- This work was performed with funding from the CHIPS Metrology Program, part of CHIPS for America, National Institute of Standards and Technology, U.S. Department of Commerce.
CODEOWNERS
The file named CODEOWNERS can be viewed to discover which GitHub users are "in charge" of the repository. More crucially, GitHub uses it to assign reviewers on pull requests. GitHub documents the file (and how to write one) [here][gh-cdo].
CODEMETA
Project metadata is captured in CODEMETA.yaml, used by the NIST
Software Portal to sort the GitHub work under the appropriate thematic
homepage.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file detection_limits-0.9.2.tar.gz.
File metadata
- Download URL: detection_limits-0.9.2.tar.gz
- Upload date:
- Size: 27.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47ee20b733453202c1309692720d9fa10faffdc02b52fb77956c6497554da2d3
|
|
| MD5 |
ed1f8a831f5d0d8c486dc2d6fcd5db9a
|
|
| BLAKE2b-256 |
cb86e7a2bc817fba317a8356fd869eececb2f8722bc039f99baaeb8f08ea6bef
|
File details
Details for the file detection_limits-0.9.2-py3-none-any.whl.
File metadata
- Download URL: detection_limits-0.9.2-py3-none-any.whl
- Upload date:
- Size: 27.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1addb57854de281c5e22a3e3e3f04a96d705d7e834f1b2161d053998ec924ba
|
|
| MD5 |
7cd5cfd11eb00928dbd6550187ac5515
|
|
| BLAKE2b-256 |
a608c71a73cce6f071416b55848e537e789a56625de582784520bacb8b28ceb3
|