Skip to content

Learning the experimental design for Fourier Ptychographic Microscopy

Notifications You must be signed in to change notification settings

kellman/LearnedDesignFPM

Repository files navigation

Data-Driven Design for Fourier Ptychographic Microscopy

Fourier Ptychographic Microscopy (FPM) is a computational imaging method that is able to super-resolve features beyond the diffraction-limit set by the objective lens of a traditional microscope. This is accomplished by using synthetic aperture and phase retrieval algorithms to combine many measurements captured by an LED array microscope with programmable source patterns. FPM provides simultaneous large field-of-view and high resolution imaging, but at the cost of reduced temporal resolution, thereby limiting live cell applications. In this work, we learn LED source pattern designs that compress the many required measurements into only a few, with negligible loss in reconstruction quality or resolution. This is accomplished by recasting the super-resolution reconstruction as a Physics-based Network and learning the experimental design to optimize the network's overall performance. Specifically, we learn LED patterns for different applications (e.g. amplitude contrast and quantitative phase imaging) and show that the designs we learn through simulation generalize well in the experimental setting.

This library provides an implementation of physics-based learned design for Fourier Ptychographic Microscopy (FPM). Reconstructions are implemented in Pytorch, learning is accomplished using backpropagation, and all is fully supported to run on GPU. We provide synthetic training data and experimental testing data used in this work's experiments here.

Demonstration

  1. Download all of the training and experimental data below. We provide synthetic training and experimental testing data for both amplitude and quantitative phase imaging applications.

  2. Training (make sure to set path argument to the desired training data). We have also included an ipython notebook that has similar functionality. python train.py --verbose True --training_iter 100 --batch_size 5 --test_freq 1 --step_size 0.01 --num_unrolls 75 --alpha 0.1 --num_bf 1 --num_df 9 --loss abs --tensorboard True --path=./training_data_amplitude.mat

  3. Monitor training by starting tensorboard tensorboard --logdir runs

  4. Inference can be run using the ipython notebook Inference (experimental data).

Arguments:

* path (string) - training dataset path
* training_iter (int) - number of iterations for training
* step_size (float) - step size for training
* batch_size (int) - batch size per training iteration
* num_batch (int) - number of batches
* loss (string) - loss function for training (mse on the complex value, mse on the amplitude, mse on the phase)
* test_freq (int) - test dataset evaluated every number of training iterations
* optim (string) - optimizer for training (_e.g._ adam, sgd)
* gpu (int) - GPU device number used for training (-1 for cpu)
* verbose (bool) - prints extra outputs
* tensorboard (bool) - writes out intermediate training information to a tensorboard
* alpha (float) - step size for physics-based network
* num_meas (int) - number of measurements for the learned design
* num_bf (int) - number of bright-field images for learned design constraint
* num_df (int) - number of dark-field images for learned design constraint
* num_unrolls (int) - number of layers for physics-based network

Requirements

References

[1] Michael Kellman, Emrah Bostan, Michael Chen, Laura Waller. "Data-driven Design for Fourier Ptychographic Microscopy." International Conference for Computational Photography. IEEE, 2019.

[2] Michael Kellman, Emrah Bostan, Nicole Repina, Laura Waller. "Physics-based Learned Design: Optimized Coded-Illumination for Quantitative Phase Imaging." Transactions on Computational Imaging. IEEE, 2019.

If you found this library/demonstration useful for your research, please consider citing this work and checking out my other research:

@article{kellman2019data,
    title={Data-Driven Design for Fourier Ptychographic Microscopy},
    author={Kellman, Michael and Bostan, Emrah and Chen, Michael and Waller, Laura},
    journal={International Conference for Computational Photography},
    year={2019}
}

About

Learning the experimental design for Fourier Ptychographic Microscopy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published