Table of Contents
Fetching ...

FAST-MEPSA: an optimised and faster version of peak detection algorithm MEPSA

Manuele Maistrello, Romain Maccary, Cristiano Guidorzi

TL;DR

FAST-MEPSA delivers an optimized MEPSA peak-detection framework for GRB light curves by introducing a sparser offset-scanning strategy and a parabolic-linear re-binning schedule, achieving about 400× faster runtimes without major drops in detection efficiency. It also adds a 40th pattern targeted at rising-edge, sub-threshold peaks, increasing completeness for faint events. Validated on simulated GRB light curves, FAST-MEPSA substantially reduces false positives and preserves performance while enabling large-scale analyses; the 40th pattern further improves recovery of elusive peaks, especially in the sub-threshold regime. The authors provide practical guidelines on when to use the faster code and when to adopt the expanded pattern set, and make the implementation publicly available.

Abstract

We present FAST-MEPSA, an optimised version of the MEPSA algorithm developed to detect peaks in uniformly sampled time series affected by uncorrelated Gaussian noise. Although originally conceived for the analysis of gamma-ray burst (GRB) light curves (LCs), MEPSA can be readily applied to other transient phenomena. The algorithm scans the input data by applying a set of 39 predefined patterns across multiple timescales. While robust and effective, its computational cost becomes significant at large re-binning factors. To address this, FAST-MEPSA introduces a sparser offset-scanning strategy. In parallel, building on MEPSA's flexibility, we introduce a 40th pattern specifically designed to recover a class of elusive peaks that are typically sub-threshold and lie on the rising edge of broader structures - often missed by the original pattern set. Both versions of FAST-MEPSA - with 39 and 40 patterns - were validated on simulated GRB LCs. Compared to MEPSA, the new implementation achieves a speed-up of nearly a factor 400 at high re-binning factors, with only a minor (~4%) reduction in the number of detected peaks. It retains the same detection efficiency while significantly lowering the false positive rate of low significance. The inclusion of the new pattern increases the recovery of previously undetected and sub-threshold peaks. These improvements make FAST-MEPSA an effective tool for large-scale analyses where a robust trade-off between speed, efficiency, and reliability is essential. The adoption of 40 patterns instead of the classical 39 is advisable when an enhanced efficiency in detecting faint events is desired. The code is made publicly available.

FAST-MEPSA: an optimised and faster version of peak detection algorithm MEPSA

TL;DR

FAST-MEPSA delivers an optimized MEPSA peak-detection framework for GRB light curves by introducing a sparser offset-scanning strategy and a parabolic-linear re-binning schedule, achieving about 400× faster runtimes without major drops in detection efficiency. It also adds a 40th pattern targeted at rising-edge, sub-threshold peaks, increasing completeness for faint events. Validated on simulated GRB light curves, FAST-MEPSA substantially reduces false positives and preserves performance while enabling large-scale analyses; the 40th pattern further improves recovery of elusive peaks, especially in the sub-threshold regime. The authors provide practical guidelines on when to use the faster code and when to adopt the expanded pattern set, and make the implementation publicly available.

Abstract

We present FAST-MEPSA, an optimised version of the MEPSA algorithm developed to detect peaks in uniformly sampled time series affected by uncorrelated Gaussian noise. Although originally conceived for the analysis of gamma-ray burst (GRB) light curves (LCs), MEPSA can be readily applied to other transient phenomena. The algorithm scans the input data by applying a set of 39 predefined patterns across multiple timescales. While robust and effective, its computational cost becomes significant at large re-binning factors. To address this, FAST-MEPSA introduces a sparser offset-scanning strategy. In parallel, building on MEPSA's flexibility, we introduce a 40th pattern specifically designed to recover a class of elusive peaks that are typically sub-threshold and lie on the rising edge of broader structures - often missed by the original pattern set. Both versions of FAST-MEPSA - with 39 and 40 patterns - were validated on simulated GRB LCs. Compared to MEPSA, the new implementation achieves a speed-up of nearly a factor 400 at high re-binning factors, with only a minor (~4%) reduction in the number of detected peaks. It retains the same detection efficiency while significantly lowering the false positive rate of low significance. The inclusion of the new pattern increases the recovery of previously undetected and sub-threshold peaks. These improvements make FAST-MEPSA an effective tool for large-scale analyses where a robust trade-off between speed, efficiency, and reliability is essential. The adoption of 40 patterns instead of the classical 39 is advisable when an enhanced efficiency in detecting faint events is desired. The code is made publicly available.

Paper Structure

This paper contains 16 sections, 6 equations, 4 figures, 4 tables.

Figures (4)

  • Figure 1: Cumulative histogram of the FPs detected by all four combinations of codes and patterns, as a function of the triggering pattern. Different colours represent the contribution of each algorithm to the total frequency in each histogram bin.
  • Figure 2: Top panel: Cumulative histogram of TPs with $\mathrm{SNR} \ge 5$ detected by all four algorithm configurations, as a function of the triggering pattern. Bottom panel: Cumulative histogram of TPs with $4 \le \mathrm{SNR} < 5$. In both panels, different colours represent the contribution of each algorithm to the total frequency in each histogram bin.
  • Figure 3: Peak detection efficiency in the SNR--separability plane for mepsa using 39 patterns (top left), mepsa using 40 patterns (top right), fast-mepsa using 39 patterns (bottom left), and fast-mepsa using 40 patterns (bottom right). Different contour levels (from cold to hot colours) correspond to 20 different, equally spaced efficiency levels from 0 to 1.
  • Figure 4: Example of a visually identified peak in GRB 180728A that is missed by mepsa with 39 patterns and successfully recovered with the inclusion of the 40th pattern. The zoomed-in time interval highlights the peak lying on the rising edge of a broader structure.