Skip to main content

NIST detection limits and image quality metrics for SEM images.

Project description

License

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

Technical installation instructions, including operating system or software dependencies

To set up the environment and run the Python scripts, follow these steps:

  1. Create a virtual environment (recommended):

    • Using venv:

      foo@bar:~$ python -m venv detection_limits
      
      • Activate the virtual environment:

        # On Linux/macOS:
        foo@bar:~$ source detection_limits/bin/activate
        
        # On Windows:
        foo@bar:~$ detection_limits\Scripts\activate
        
    • Or using conda:

      foo@bar:~$ conda create -n detection_limits python=3.8
      
      • Activate the conda environment:

        foo@bar:~$ conda activate detection_limits
        
  2. Install the package.

    • From PyPI (recommended):

      foo@bar:~$ pip install detection-limits
      
    • From Source: Ensure you are in the root directory of the repository and run:

      foo@bar:~$ pip install .
      
  3. Run the Python scripts as described in the workflow section.

To interactively view and explore the plots, you can either use the hosted pages.nist.gov instance or download the web folder and open index.html in your web browser.

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.md 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

detection_limits-0.9.1.tar.gz (26.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

detection_limits-0.9.1-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

Details for the file detection_limits-0.9.1.tar.gz.

File metadata

  • Download URL: detection_limits-0.9.1.tar.gz
  • Upload date:
  • Size: 26.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for detection_limits-0.9.1.tar.gz
Algorithm Hash digest
SHA256 9a667eaefd6c85f9fdee5726b544e5f6d3b0bad8d40b2f030473d3eb4f7cad5f
MD5 03f177d5449f2ff6faa02d40ac37e37a
BLAKE2b-256 e3c4052095c4d98406a52c8c3d057b923c1975e25c4ab83fd6f30735f9d3ebbc

See more details on using hashes here.

File details

Details for the file detection_limits-0.9.1-py3-none-any.whl.

File metadata

File hashes

Hashes for detection_limits-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4c112580c840961d17b4911f73d154cef0b59bd732ddcb28b7f8a7e64b63585f
MD5 46d984284f567a8b3645ac63efdbe902
BLAKE2b-256 cc99b2589975b7efd6a5e6815c73ad3a7ee1a728218e57ac7443712f6a052f2c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page