FLIM Playground

Author

Wenxuan Zhao

Published

July 30, 2025

Logo courtesy to Matt Stefely. The yellow dot is a photon sliding down a lifetime decay curve 🛝.

1 Quick Start

Welcome to the FLIM Playground 🥳🎉🥂! This is an interactive graphical user interface (GUI) that allows you to extract single-cell features from fluorescence lifetime imaging microscopy (FLIM) raw data (Data Extraction) and analyze extracted features or datasets extracted via other methods using a built-in repertoire of methods (Data Analysis).

To quickly try out different analysis methods, download this sample dataset and try the online demo. If you prefer to use your own data, read this chapter on data analysis configuration to learn how to configure the system.

A video of the Data Analysis section:

Data Analysis on mobile:

Due to the limitation in local file system access, extracting features from raw data is not available in the online demo. Read on to discover how FLIM Playground transforms raw fluorescence decay data into biological insight through an integrated, interactive workflow.

A video of the Data Extraction section:

1.1 Installation

FLIM Playground is built entirely in Python and is open-source.

1.1.1 Download

Download the desktop app from GitHub and double-click it to run. Releases are currently available for Windows 11 and Mac OS 26. If your operating system is not either of these, you can build it yourself by following the instructions below.

1.1.2 Build it yourself

  1. Clone the repo and navigate into the repository once cloned.

  2. Install the Python environment

    • Install uv if not yet installed
    • run uv sync
  3. Build the app

    • run pyinstaller Flim-Playground.spec --clean

1.2 Introduction

Fluorescence lifetime imaging microscopy (FLIM) measures the time it takes for a fluorescent molecule to emit light (return to the ground state) after being excited by a pulse of light (enter the excited state). It is sensitive to changes in fluorophore microenvironment including, pH, temperature, and conformational changes due to protein-binding and the presence of quenchers1. Coupled with modern automated cell-segmentation methods2, FLIM enables single-cell analyses that can reveal biological heterogeneity.

To acquire FLIM data, a light source—typically a pulsed laser for time-domain methods or a modulated continuous-wave source for frequency-domain methods—is used to excite the fluorophore of interest. The emission is detected using instrumentation capable of resolving fluorescence decay, such as time-correlated single-photon counting (TCSPC), time-gated, or phase/modulation-based detection. In time-domain FLIM, the delay between excitation and photon arrival is measured, and often a histogram is built, with the x-axis representing the delay time and the y-axis representing the number of photons falling into each time bin. Compared to intensity images, FLIM has an additional dimension of time (e.g., 256 time bins per 12.5 nanoseconds).

In frequency-domain FLIM, the phase shift and modulation depth of the emission relative to the excitation are determined.

1.3 Challenges

A diverse set of tools — both open-source and commercial, ranging from libraries to code-free graphical user interfaces (GUIs) — is available to extract and analyze FLIM data, providing alternative methods and therefore flexibility to FLIM researchers. Examples include PhasorPy3, an open-source library for analyzing fluorescence lifetime using the phasor approach; FLUTE4, an open-source GUI for interactive phasor analysis; FLIMPA5, an open-source phasor analysis GUI enabling batch processing, ROI-based quantification, and experiment-level comparison through manual assignment; FLIMLib, an open-source generic curve fitting library that can be used to fit fluorescence lifetime decay data; SPCImage6, a commercial software for fitting and phasor features.

However, while some tools offer code-free interfaces, users still need to write custom code—either to prepare data in the proper format as input, or to further process their outputs for downstream analysis. The fragmentation between tools arises because each focuses on only a subset of data levels: pixel, cell ROI, channel, field of view, and experiment.

1.3.1 Data Levels

  • Pixel:
    • A single decay curve encoded in vendor-specific file formats (e.g., Becker & Hickl, PicoQuant, etc.)
  • Region of Interest (ROI)
    • Mask with cell labels
  • Channel
    • Different fluorophores
    • Fluorophore-specific calibration files
    • Masks focusing on different parts of the cell (e.g., whole cell, cytoplasm, nucleus, stain, etc.)
    • Different feature extraction methods (fitting, phasor, morphology, texture)
  • Field of View (FOV)
  • Experiment
    • Different treatments, time points, cell lines, etc., and combinations thereof

An integrated framework should take into account all data levels (•) while maintaining the flexibility to handle various input types (◦). It should provide a level of abstraction to address fragmentation from data levels and input types.

Additionally, the use of FLIM is rapidly evolving, and new methods are being developed all the time. An integrated framework should allow users to choose among alternative methods seamlessly, be the backbone of iterative explorations integral to research, and be ready to incorporate new methods: The provided level of abstraction should address fragmentation from extraction and analysis methods.

Finally, many of the existing tools, including GUI-based software, are not cross-platform, which limits their accessibility. The Installation addresses this last challenge.

A closer parallel to FLIM Playground’s integrated approach is the combination of CellProfiler7, which extracts per-object morphological and texture features, and CellProfiler Analyst8, which ingests these outputs or other feature tables for visualization and statistical analysis. However, FLIM Playground stands apart in that it can extract lifetime features from time-resolved data, alongside morphological and texture features from intensity images. Its general Data Analysis section incorporates FLIM-specific methods (e.g., phasor analysis) and provides statistical models that address additional analysis aspects such as data heterogeneity, in addition to training machine learning classifiers.

1.4 Method

1.4.1 Feature Classes

Tabular data columns can be categorized into three feature classes:

  • Identifiers: unique row identifier and (optional) field of view identifier that allow us to investigate the biological heterogeneity at the single-cell level
  • Categorical features: conceptually help us group the rows (e.g., treatment will group the rows into different treatment groups)
  • Numerical features: quantify the differences/similarities between data groups

Science, from the data perspective, is about closing the conceptual categorical gaps with quantitative measurements.

At data levels, the data are processed to extract the feature classes in Data Extraction, and the classes are used in the Data Analysis section.

1.4.2 Design

FLIM Playground has two independent sections:

Data Extraction

Data Extraction extracts single-cell features from the raw data. It adopts a framework that offers channel-level flexibility in input types and extraction methods without incurring too much overhead for users. Following the above categorization, it is divided into the following steps:

Data Analysis

Data Analysis analyzes features—whether extracted through Data Extraction or by other methods—using visualizations and statistical modeling. It deploys a shared framework (F) built to handle the feature classes across all analysis methods, enabling the same interactive and frictionless exploration experience and allowing new methods to be integrated in the future easily.

Here is the list of analysis methods incorporated into FLIM Playground, grouped by the number of numerical features they take as inputs:

Both sections are built in Python and as self-contained executables ready to run on major operating systems and in browsers (H).

1.4.3 Summary

FLIM Playground resolves these challenges with an interactive code-free graphical user interface (GUI) that spans the full pipeline. It integrates validation checks that guide users at every step, and has a built-in repertoire of analytical methods with interactive widgets that encourage hypothesis-driven, iterative exploration of large datasets. It is built on a modular architecture that enables incorporation of new algorithms in the future.

1.4.4 Citation

FLIM Playground is currently on bioarchive. If it contributed to your research—whether through Data Extraction for single-cell feature generation or through Data Analysis for data exploration, visualization, selection of analysis methods, or hyperparameter tuning (UMAP, clustering, classification, etc.)—please cite this work in your publication. Your citation directly supports us in maintaining and improving it ✨🎈🍾.

1.
Datta, R., Heaster, T. M., Sharick, J. T., Gillette, A. A. & Skala, M. C. Fluorescence lifetime imaging microscopy: fundamentals and advances in instrumentation, analysis, and applications. Journal of Biomedical Optics 25, 071203 (2020).
2.
Stringer, C., Wang, T., Michaelos, M. & Pachitariu, M. Cellpose: A generalist algorithm for cellular segmentation. Nature methods 18, 100–106 (2021).
3.
Gohlke, C., Pannunzio, B., Schüty, B. & Blanco, R. Phasorpy/phasorpy: v0.7. Zenodo https://doi.org/10.5281/zenodo.16923774 (2025).
4.
Gottlieb, D., Asadipour, B., Kostina, P., Ung, T. P. L. & Stringari, C. FLUTE: A python GUI for interactive phasor analysis of FLIM data. Biological Imaging 3, e21 (2023).
5.
Kapsiani, S. et al. FLIMPA: A versatile software for fluorescence lifetime imaging microscopy phasor analysis. Analytical Chemistry (2025).
6.
Becker, W. The Bh TCSPC Handbook. (Becker & Hickl GmbH, 2021).
7.
Stirling, D. R. et al. CellProfiler 4: Improvements in speed, utility and usability. BMC Bioinformatics 22, 433 (2021).
8.
Stirling, D. R., Carpenter, A. E. & Cimini, B. A. CellProfiler analyst 3.0: Accessible data exploration and machine learning for image analysis. Bioinformatics 37, 3992–3994 (2021).