Event Tab

NeuroMatic analysis software for detecting spontaneous events. This page describes the threshold-below-baseline (or threshold-above-baseline) detector similar to that described by Kudoh and Taguchi 2002.


Threshold < Baseline. A forward sliding-window search for the first data point that falls below level y at dt msec after t0 (negative events, see image below) or falls above level y at dt msec after t0 (positive events, threshold > baseline). This algorithm is similar to that of Kudoh and Taguchi 2002 except for the use of a baseline average (avg) window centered at t0 rather than a single baseline point at t0.

    avg = baseline average window size

    Yavg = baseline average y-value

    y = Yavg - threshold (threshold < baseline, negative events)

    y = Yavg + threshold (threshold > baseline, positive events)

    t0 = baseline window midway-time-point (slides forward during event detection)

    dt = event detection window beginning at t0

    tevent = y-threshold-crossing event time (t0 + dt)

There are two baseline parameters, avg and dt. Baseline avg specifies the baseline average window size (orange line). Baseline dt specifies the time after the baseline midway-time-point to search for an event; this parameter is equivalent to wi of Kudoh and Taguchi 2002. Previously avg and dt were set equal, but now you have the option to specify a larger dt without increasing the baseline window. If you do not wish to use a baseline window, set avg = 0.


Event Onset Search. This is an optional search creteria for the onset of an event once the event has been detected. If no onset is found, the event is ignored and the search for events continues. If you do not wish to use this onset criteria for limiting what is considered an acceptable event, uncheck the onset checkbox.

The onset search is a backward sliding-window search from tevent for the first occurrence of the right-most window point falling above level y (negative events, see image below) or below level y (positive events). Note, this algorithm is slightly different from Kudoh and Taguchi 2002 in that it searches backward from tevent. Searching backward gives a more accurate estimate of the onset time since it is less influenced by the baseline noise. There are three onset search parameters which you can adjust manually: avg, Nstdv and limit.

    avg = sliding average window size (slides backward from tevent)

    Yavg = average y-value computed within avg window

    Ystdv = standard deviation of y-values computed within avg window

    Nstdv = number of standard deviations above / below Yavg

    y = Yavg - Nstdv * Ystdv (negative events)

    y = Yavg + Nstdv * Ystdv (positive events)

    tonset = y-threshold-crossing time

    limit = time before tevent to end onset search


Event Peak Search. This is an optional search creteria for the peak of an event once the event has been detected. If no peak is found, the event is ignored and the search for events continues. If you do not wish to use this peak criteria for limiting what is considered an acceptable event, uncheck the peak checkbox.

The peak search is a forward sliding-window search from tevent for the first occurrence of the left-most window point falling below level y (negative events, see image below) or above level y (positive events). Note, this algorithm implements only the forward peak search of Kudoh and Taguchi 2002. There are three peak search parameters: avg, Nstdv and limit.

    avg = sliding average window size (slides forward from tevent)

    Yavg = average y-value computed within avg window

    Ystdv = standard deviation of y-values computed within avg window

    Nstdv = number of standard deviations above / below Yavg

    y = Yavg - Nstdv * Ystdv (negative events)

    y = Yavg + Nstdv * Ystdv (positive events)

    tpeak = y-threshold-crossing time

    limit = time after tevent to end peak search


Equivalent Parameters of Kudoh and Taguchi 2002 for Threshold Search

    wi = dt = sliding detection window (they use 1.6 - 4 msec)

    bin = onset avg window = peak avg window (they use 1 - 2 msec)

    pp = peak limit (they use 4 - 10 msec)

    n = onset Nsdv = peak Nsdv (they use 1 - 1.5)

    baseline avg they do not use, in which case avg = 0 msec.


Adjusting Parameters

  • Set threshold/level to minimum event amplitude to be detected.

  • Set sliding detection window dt such that the midway-time-point of the baseline average window t0 rests comfortably before event time tevent. The onset limit value can be set to this same value.

  • Set peak search limit to approximately half the length of your event.

  • Set onset and peak Nsdv to 1 - 2, depending on the noise levels in your data.

  • Adjust peak, onset and baseline avg windows to obtain best results. These values will change depending on the levels of noise in your data.