Skip to main content

spectral interpretation using gaussian mixtures and autoencoder

Project description

Description

Spectral Interpretation using Gaussian Mixtures and Autoencoder (SIGMA) is an open-source Python library for phase identification and spectrum analysis for energy dispersive x-ray spectroscopy (EDS) datasets. The library mainly builds on the Hyperspy, Pytorch, and Scikit-learn.

Test your dataset on SIGMA with Colab:

Open In Colab DOI

Installation

  1. Create a Python>=3.7.0 environment with conda:
conda create -n sigma python=3.7 anaconda
conda activate sigma
  1. Install SIGMA with pip:
pip install emsigma
  1. Use the notebook in the tutorial folder to run SIGMA.

Workflow of SIGMA

  1. A neural network autoencoder is trained to learn good representations of elemental pixels in the 2D latent space.
Autoencoder

  1. The trained encoder is then used to transform high-dimensional elemental pixels into low-dimensional representations, followed by clustering using Gaussian mixture modeling (GMM) in the informative latent space.
GMM

  1. Non-negative matrix factorization (NMF) is applied to unmix the single-phase spectra for all clusters.
NMF

In such a way, the algorithm not only identifies the locations of all unknown phases but also isolates the background-subtracted EDS spectra of individual phases.

User-friendly GUI

Check .bcf file

An example of checking the EDS dataset and the sum spectrum.

Demo with Colab

Demo-check_EDS_dataset

Dimensionality reduction and clustering

An example of analysing the latent space using the graphical widget.

Demo with Colab

Screen Recording 2022-02-22 at 12 09 38 PM

Factor analysis on cluster-wise spectra

A demo of acquiring Background-substracted spectrum using Factor Analysis (FA).

Demo with Colab

Demo-NMF

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

emsigma-0.1.26.tar.gz (38.3 kB view details)

Uploaded Source

Built Distributions

emsigma-0.1.26-py3.7.egg (71.4 kB view details)

Uploaded Source

emsigma-0.1.26-py3-none-any.whl (42.2 kB view details)

Uploaded Python 3

File details

Details for the file emsigma-0.1.26.tar.gz.

File metadata

  • Download URL: emsigma-0.1.26.tar.gz
  • Upload date:
  • Size: 38.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.11

File hashes

Hashes for emsigma-0.1.26.tar.gz
Algorithm Hash digest
SHA256 23513629879d7c75bde7eeb9fc52fbc21019a032c5f52f8a38682df7d05f675d
MD5 f3f0938a9cfb90e5d6d719690079236a
BLAKE2b-256 c41fcfdecb309d04ac2aff71acf01d45eee074722c95001e3cdd90ce9d9d7acb

See more details on using hashes here.

File details

Details for the file emsigma-0.1.26-py3.7.egg.

File metadata

  • Download URL: emsigma-0.1.26-py3.7.egg
  • Upload date:
  • Size: 71.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.4.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7

File hashes

Hashes for emsigma-0.1.26-py3.7.egg
Algorithm Hash digest
SHA256 79f316b390726c0339b6b6d70c1f57f928f339711bf13b8bee5d17a83a204372
MD5 5edb005da8d70a20fa99843325dc650c
BLAKE2b-256 8a3cf3ad4a6e2163d459a273f0dd6137e7df71c95418c2d7ae41c381040338bb

See more details on using hashes here.

File details

Details for the file emsigma-0.1.26-py3-none-any.whl.

File metadata

  • Download URL: emsigma-0.1.26-py3-none-any.whl
  • Upload date:
  • Size: 42.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.11

File hashes

Hashes for emsigma-0.1.26-py3-none-any.whl
Algorithm Hash digest
SHA256 1387188b6d4c6f782021855b2de0d56368ba7286b01e47adc910a8c4a7e8860a
MD5 e845f3e839f2ffe1860d3d5280f781ad
BLAKE2b-256 7d148af00f8ed7da318d97bf307441ab3c10a0c3dfb7e45ca98d866eae78bb51

See more details on using hashes here.

Supported by

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