
Automated F0 estimation is one of MSparkles' key features and is essential for accurate detection of active regions as well as signal analysis.
To configure F0 estimation, select one or more datasets in the project manager and then select "Edit F0" from the F0 drop-down menu, accessible via the arrow next to the F0 button. This opens the F0 configuration dialog. Here, you can find the list of datasets you selected for configuration, next to the current F0 configuration for the selected dataset (1).
The two main ideas behind MSparkles' F0 estimation are:
- Remove statistically large values of a pixels temporal profile to exclude potential signals from background estimation.
- Fit a polynomial curve to the remaining values in order to adapt to fluctuations in background brightness.
In order to accelerate the process of finding good parameters, MSparkles provides direct visual feedback (2, 3). You can drag the crosshair in the stack preview (2) to any pixel and investigate that pixels temporal profile, together with its estimated F0 baseline, based on the current parameters (3).
Tip: You can verify the selected parametes and the quality of the fit by dragging the crosshair accross the preview image and observing the individual estimates for the F0 baselines.
In order to get a good estimation for the F0 baseline, MSparkles uses some advanced techniques for signal cleanup & outlier removal as well as signal simplification. From the point of view of the baseline estimation, fluorescent signals above background noise (and usually some additional safety threshold) are considered outliers. Thus, they have to be removed for a propper baseline estimation. Contrary, long-lasting decreases of overall fluorescence, typically originate from some form of bleaching or depletion of fluorescent dyes. Therefore, it is desirable to incorporate these fluorescence changes into the baseline.
However, in some situations, e.g. during long-term exposure phototoxic effects can cause a slow and steady increase of baseline fluorescence.
In order to being able to handle these different scenarios, MSparkles offers two related methods for signal cleanup:
- A (Global) temporal mean filter
- A Hampel filter
Temporal mean filter
The temporal mean filter computes the mean fluorescence value of a pixels temporal profile with the associated standard deviation. All values above mean plus n-times standard deviation are removed from the background estimation. This process is then iteratively applied m times.
Parameter | Description | |
---|---|---|
Order | Number of iterations | |
Sigma factor | Number of standard deviations above mean. |
Hampel filter
The Hampel filter, similar to the temporal mean filter, computes the mean fluorescence value of a pixels temporal profile with the associated standard deviation. However, the hample filter is a sliding window filter, and only regards values around the current pixels within a restricted neighborhood. All values above mean plus n-times standard deviation are removed from the background estimation. This allows to incorporate slow increases of baseline fluorescence into the estimated baseline.
Parameter | Description | |
---|---|---|
Order | Size of the filter window, in samples | |
Sigma factor | Number of standard deviations above mean. |
The Hampel filter may require a considerable amount of samples, in order to produce good results, especially in the presence of long-lasting transients. Filter-sizes (Order) of 75 - 200 samples (or even more) may be required.
Prior to polynomial fitting, MSaprkles computes a guidance signal as a simplified version of a pixels cleaned temporal profile. This has two effects
- The effect of noise remaining in the signal is reduced
- Oscillations at the beginning and the end of the estimated polynomial baseline are avoided.
Simplification is performed by iterative, piecewise constand approximation of the input signal, resulting in a scale-space of "staircase signals". Simplification is performed iteratively up to an upper bound k, where at the highest level 2k constant sections are computed. In total, k iterations with 2l sections are computet, where l is increased from 1 to k. The polynomial is then fitted to the simplified signal and can be optimized with in one of three ways: local minima or local maxima of the guidance signal, or, minimal error of the guidance signal to the clean signal. Here, local minima and maxima are with respect to the multiple candidates from the simplified scale space of each timepoint.
Parameter | Description | |
---|---|---|
Order | Number of iterations | |
Optimizer | Method to choose samples from the simplified signal. |