Skip to main content

Autonomous Learning for Tomographic Ensembles and Attributes: a reproducible pipeline for quality control, segmentation and 3D morphometry of tomographic image stacks.

Project description

ALTEA

Autonomous Learning for Tomographic Ensembles and Attributes

A reproducible, provenance-tracked Python pipeline for automated quality control, segmentation and 3-D morphometry of tomographic image stacks such as FIB-SEM. Built with porous and heterogeneous materials in mind (MOFs, battery electrodes, catalysts, membranes, rock), but general to any two-phase or multi-phase volumetric acquisition.

CI License: MIT


Why

Analysing FIB-SEM tomography today typically involves two costly, poorly reproducible steps: an operator manually discards a large fraction of acquired slices (e.g. 500–600 acquired, 300–400 kept) by visual inspection, and the image treatment is tuned by eye per sample "like Photoshop", with no single procedure that applies across samples. ALTEA turns both into deterministic, config-driven, versioned operations, and records exactly what was done to every volume.

ALTEA is a reproducible orchestration layer, not a single model. Every stage is explicit, every parameter lives in a config file, and every run emits a provenance record (software and dependency versions, input data hash, per-stage parameters and metrics). The same input always yields the same result — and you can prove it.

Pipeline

load → quality control → drift correction → preprocessing → segmentation → morphometry
Stage What it does
io Load FIB-SEM stacks (multi-page TIFF or slice directories) with voxel spacing
qc Per-slice sharpness / brightness / drift / curtaining scores; reproducible, threshold-driven slice selection (replaces manual curation)
align Rigid drift correction by phase cross-correlation
preprocess Deterministic denoising and contrast normalization — every parameter recorded
segment Pluggable backends: classical (Otsu, watershed) and learned (random-forest pixel classifier; optional deep U-Net)
morphometry Porosity, specific surface area, pore-size distribution, connectivity/percolation, geometric tortuosity — all voxel-size-aware
acquire Convergence analysis: how few slices suffice for a target accuracy (basis for cost-aware acquisition)

Install

pip install altea            # core
pip install "altea[deep]"    # + optional deep-learning segmentation backends
pip install "altea[dev]"     # + test / lint tooling

Quickstart

No data required — run the synthetic demo:

altea demo --output runs/demo

Or on your own stack:

altea run --input stack.tif --config configs/fibsem_default.yaml --output runs/sample1

In Python:

from altea import Pipeline
from altea.datasets import make_porous_volume, add_acquisition_artifacts

clean, ground_truth = make_porous_volume(porosity=0.35)
raw = add_acquisition_artifacts(clean, blur_slices=(8,), charge_slices=(15,))

results = Pipeline.from_yaml("configs/fibsem_default.yaml").run(raw, output_dir="runs/demo")

m = results["morphometry"]
print(m.porosity, m.specific_surface_area, m.tortuosity)
print(results["qc_report"].summary())      # which slices were dropped, and why

Segmentation backends

Backends share one interface and self-register, so switching is a one-line config change:

segment:
  backend: pixel_rf      # otsu | watershed | pixel_rf | unet
  params: {sigmas: [1, 2, 4], n_estimators: 200}

Add your own by subclassing SegmentationBackend and decorating with @register_backend. Nothing else in the pipeline changes.

Reproducibility

Every run writes provenance.json:

{
  "altea_version": "0.1.0",
  "dependency_versions": {"numpy": "...", "scikit-image": "..."},
  "input_hash": "sha256:...",
  "config": {...},
  "stages": [{"name": "qc", "params": {...}, "metrics": {...}}, ...]
}

Roadmap

  • Cost-aware autonomous acquisition. The acquire module already quantifies the accuracy-vs-slice-count trade-off. The next step is an active policy that decides on the fly how many sections to acquire to reach a target uncertainty, reducing destructive beam time.
  • Deep segmentation backends (2-D U-Net / nnU-Net wrapper) under altea[deep].
  • Sparse-view reconstruction of discarded slices.

Status

Alpha. Interfaces may change before 1.0.

Citation

If you use ALTEA, please cite it via CITATION.cff.

License

MIT — see LICENSE.

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

altea-0.1.0.tar.gz (34.6 kB view details)

Uploaded Source

Built Distribution

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

altea-0.1.0-py3-none-any.whl (39.0 kB view details)

Uploaded Python 3

File details

Details for the file altea-0.1.0.tar.gz.

File metadata

  • Download URL: altea-0.1.0.tar.gz
  • Upload date:
  • Size: 34.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.8

File hashes

Hashes for altea-0.1.0.tar.gz
Algorithm Hash digest
SHA256 76f2ea47fe649e2a19c886a2fbeb1fdaf457e0bc5b2fd8b2f027ed04cf741d1f
MD5 63e49e01b0059fd6392a209667595abe
BLAKE2b-256 4134b6cedc575be2c7c4dfcb5000a217c07c54fb200ff91bf6df4d7ce2bf1a4e

See more details on using hashes here.

File details

Details for the file altea-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: altea-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 39.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.8

File hashes

Hashes for altea-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a61f16bf7fc587f5292cdb673347ae5c1fe50a6d517fed287a94153592985444
MD5 80ff2ad2a764ea7e38806e77b0a263fb
BLAKE2b-256 f1071de9027e91e3b574bb7b781069e7ef5435456aaf59ec733a9f439df53215

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