Skip to content
/ EMSR Public

Super-resolution of 3D electron microscopy images using deep learning, enabling high-quality reconstruction of large-scale 3D EM volumes across large brain fields of view.

Notifications You must be signed in to change notification settings

mkhateri/EMSR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

No-Clean-Reference Image Super-Resolution: Application to Electron Microscopy

This repository contains the official implementation of Electron Microscopy Image Super-Resolution (EMSR) — a deep-learning framework for reconstructing high-resolution (HR) 3D electron microscopy volumes from noisy low-resolution (LR) acquisitions, without requiring any clean ground-truth data.

EMSR is designed for large–field-of-view EM imaging, enabling high-quality and scalable SR reconstruction in realistic EM acquisition scenarios.

This work has been published in IEEE Transactions on Computational Imaging.
📄 Paper link: https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=10592622


Super-Resolution Results from EMSR

The examples below demonstrate the performance of EMSR on challenging real-world EM data.

LR-to-HR (45nm-to-15nm) sample1
LR-to-HR (45nm-to-15nm) sample2

EMSR super-resolution can outperform real HR acquisitions by providing reduced noise, fewer artifacts, and improved structural clarity, as illustrated below:


EMSR Network Architecture


Features

✔ Supports training with either real or synthetic LR/HR pairs
✔ Transformer-based SR designed for EM textures
✔ Full 3D stack inference with sliding-window reconstruction
✔ Theoretical support for training with no-clean ground truth


Dataset Structure (Training)

Your training data should follow:

DATA_ROOT/
└── Train/
    ├── HR/
    │   ├── SampleA/
    │   │   ├── SampleA_000001.png
    │   │   ├── SampleA_000101.png
    │   │   └── ...
    │   └── SampleB/
    │       ├── SampleB_000001.png
    │       └── ...
    │
    └── LR/
        ├── SampleA/
        │   ├── SampleA_000001.png
        │   ├── SampleA_000101.png
        │   └── ...
        └── SampleB/
            ├── SampleB_000001.png
            └── ...

Installation

1. Clone the repository

git clone https://github.com/mkhateri/EMSR.git
cd EMSR

2. Create and activate the environment

conda env create -f environment.yaml
conda activate EMSR

3. Add EMSR to PYTHONPATH

export PYTHONPATH=$(pwd):$PYTHONPATH

Training EMSR

All training settings are defined in:

configs/train_config.py

Edit the following:

  • data.train_dir
  • experiment.epochs
  • model.* and params.*

Start training:

python train.py

During training:

  • saves the full configuration → logs/CONFIG.yaml
  • saves checkpoints → logs/checkpoints/*.pt
  • logs TensorBoard → logs/

Inference on 3D EM .mat Files

The model loads:

  • training config (logs/CONFIG.yaml)
  • selected checkpoint (--ckpt)
  • inference settings from configs/inference_config.py

Run inference:

python inference.py     --logs_dir /path/to/logs     --mat_dir /path/to/mat_files     --output_dir /path/to/output     --ckpt /path/to/checkpoints/ckpts_step_450.pt

Arguments

  • --logs_dir → folder containing CONFIG.yaml
  • --mat_dir → folder of .mat stacks
  • --output_dir → where SR results (.h5) will be saved
  • --ckpt → choose checkpoint manually

📚 Citation

If you find this work useful in your research, please consider citing our paper and starring ⭐ our repository.

@article{khateri2024no,
  title={No-clean-reference image super-resolution: Application to electron microscopy},
  author={Khateri, Mohammad and Ghahremani, Morteza and Sierra, Alejandra and Tohka, Jussi},
  journal={IEEE Transactions on Computational Imaging},
  year={2024},
  publisher={IEEE}
}

Acknowledgments

We thank the CSC–IT Center for Science (Finland) and the Bioinformatics Center at the University of Eastern Finland for providing computational resources.


About

Super-resolution of 3D electron microscopy images using deep learning, enabling high-quality reconstruction of large-scale 3D EM volumes across large brain fields of view.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages