Difference between revisions of "Peak Finder explained"

From BESA® Wiki
Jump to: navigation, search
m
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
|title = Module information
 
|title = Module information
 
|module = BESA Research Basic or higher
 
|module = BESA Research Basic or higher
|version = 6.1 or higher
+
|version = BESA Research 6.1 or higher
 
}}
 
}}
  
 
== Introduction ==
 
== Introduction ==
This article will explain how the Peak Finders in the BESA ERP module and in the Combine Conditions work, and how the different values are computed.
+
 
 +
This article will explain how the '''Peak Finders''' in the BESA ERP module and in the Combine Conditions work, and how the different values are computed.
  
 
== ERP module: interactive peak finding ==
 
== ERP module: interactive peak finding ==
 +
 
After entering the Top Viewer, the Peak Finder can be invoked in three ways:
 
After entering the Top Viewer, the Peak Finder can be invoked in three ways:
 
# By marking a data block, and using the right-click popup menu
 
# By marking a data block, and using the right-click popup menu
Line 18: Line 20:
 
This is what it looks like after marking a block and right-clicking:
 
This is what it looks like after marking a block and right-clicking:
  
[[File:PeakFinder1a.png]]
+
[[File:PeakFinder1a.png|900px]]
  
The program automatically found the highest negative and the highest positive peak within the interval.The mean amplitude is calculated over the whole interval. In this case, positive and negative amplitudes almost cancel out. The peak label is chosen on the latency that has the highest overall amplitude. By default, other channels' amplitudes are calculated at the latencies of the search channel's positive and negative peaks (to change this, un-check the check box "All Amplitudes at Same Latency" - then, the search will run independently for each channel).  
+
The program automatically found the highest negative and the highest positive peak within the interval. The mean amplitude is calculated over the whole interval. In this case, positive and negative amplitudes almost cancel out. The peak label is chosen on the latency that has the highest overall amplitude. By default, other channels' amplitudes are calculated at the latencies of the search channel's positive and negative peaks (to change this, un-check the check box "All Amplitudes at Same Latency" - then, the search will run independently for each channel).  
 
The area is the cumulative positive and negative amplitude over the whole interval, as indicated below.
 
The area is the cumulative positive and negative amplitude over the whole interval, as indicated below.
  
[[File:PeakFinder2.png]]
+
[[File:PeakFinder2.png|300px]]
  
 
=== Peak finding after setting a cursor ===
 
=== Peak finding after setting a cursor ===
 +
 
The result of peak finding after setting a cursor (or using the mouse position) is shown below:
 
The result of peak finding after setting a cursor (or using the mouse position) is shown below:
  
[[File:PeakFinder3.png]]
+
[[File:PeakFinder3.png|900px]]
  
 
In this scenario, the first peak is found by checking which relative maximum or minimum is closest to the cursor position (or mouse position). This will become the main peak (here, it is the positive peak).
 
In this scenario, the first peak is found by checking which relative maximum or minimum is closest to the cursor position (or mouse position). This will become the main peak (here, it is the positive peak).
  
[[File:PeakFinder4.png]]
+
[[File:PeakFinder4.png|300px]]
  
 
Then, a search starts in both directions for a local minimum or maximum - in this scenario, the negative peak is searched for. Here, the next negative peak is to the right of the main peak:
 
Then, a search starts in both directions for a local minimum or maximum - in this scenario, the negative peak is searched for. Here, the next negative peak is to the right of the main peak:
  
[[File:PeakFinder5.png]]
+
[[File:PeakFinder5.png|300px]]
  
To find the ara, the next zero crossings are found, moving away from the peaks in the other direction:
+
To find the area, the next zero crossings are found, moving away from the peaks in the other direction:
  
[[File:PeakFinder6.png]]
+
[[File:PeakFinder6.png|300px]]
  
 
Let us now have a look at the scenario where local maximum and minimum are both in a negative area:  
 
Let us now have a look at the scenario where local maximum and minimum are both in a negative area:  
  
[[File:PeakFinder7.png]]
+
[[File:PeakFinder7.png|300px]]
[[File:PeakFinder8.png]]
+
[[File:PeakFinder8.png|300px]]
[[File:PeakFinder9.png]]
+
[[File:PeakFinder9.png|300px]]
 +
[[File:PeakFinder10.png|300px]]
 +
 
 +
The result is two peaks that are both in the negative area.
 +
To smoothen the waveforms in order to prevent finding too small peaks, the data can be filtered before peak finding (use the "Advanced" button in the dialog).
 +
 
 +
== Combine Conditions Peak Finder ==
 +
 
 +
The Peak Finder in the Combine Conditions dialog runs in batch mode. Thus, all parameters need to be provided beforehand.
 +
It can output either peaks, mean amplitudes over the interval provided, or areas over the interval provided. Also, search channel, montage, baseline and filters need to be set by the user before running the batch mode.
  
[[File:PeakFinder10.png]]
+
If the check box "Positive voltage" is un-checked, only negative peaks will be considered. If "Positive voltage" is checked, then the module will run in a similar mode as the first scenario of the ERP Peak Finder (with marked interval).
  
The result are two peaks that are both in the negative area.
+
[[Category:ERP/ERF]]
To smoothen the waveforms in order to prevent finding too small peaks, the data can be filtered before peak finding (use the "Adanced" button in the dialog).
+

Latest revision as of 14:27, 5 May 2021

Module information
Modules BESA Research Basic or higher
Version BESA Research 6.1 or higher

Introduction

This article will explain how the Peak Finders in the BESA ERP module and in the Combine Conditions work, and how the different values are computed.

ERP module: interactive peak finding

After entering the Top Viewer, the Peak Finder can be invoked in three ways:

  1. By marking a data block, and using the right-click popup menu
  2. By right-clicking on a channel with only a cursor position marked, or nothing marked
  3. By using the menu entry. This will open the Peak Finder dialog, but not search for peaks yet.

Peak finding with a marked interval

This is what it looks like after marking a block and right-clicking:

PeakFinder1a.png

The program automatically found the highest negative and the highest positive peak within the interval. The mean amplitude is calculated over the whole interval. In this case, positive and negative amplitudes almost cancel out. The peak label is chosen on the latency that has the highest overall amplitude. By default, other channels' amplitudes are calculated at the latencies of the search channel's positive and negative peaks (to change this, un-check the check box "All Amplitudes at Same Latency" - then, the search will run independently for each channel). The area is the cumulative positive and negative amplitude over the whole interval, as indicated below.

PeakFinder2.png

Peak finding after setting a cursor

The result of peak finding after setting a cursor (or using the mouse position) is shown below:

PeakFinder3.png

In this scenario, the first peak is found by checking which relative maximum or minimum is closest to the cursor position (or mouse position). This will become the main peak (here, it is the positive peak).

PeakFinder4.png

Then, a search starts in both directions for a local minimum or maximum - in this scenario, the negative peak is searched for. Here, the next negative peak is to the right of the main peak:

PeakFinder5.png

To find the area, the next zero crossings are found, moving away from the peaks in the other direction:

PeakFinder6.png

Let us now have a look at the scenario where local maximum and minimum are both in a negative area:

PeakFinder7.png PeakFinder8.png PeakFinder9.png PeakFinder10.png

The result is two peaks that are both in the negative area. To smoothen the waveforms in order to prevent finding too small peaks, the data can be filtered before peak finding (use the "Advanced" button in the dialog).

Combine Conditions Peak Finder

The Peak Finder in the Combine Conditions dialog runs in batch mode. Thus, all parameters need to be provided beforehand. It can output either peaks, mean amplitudes over the interval provided, or areas over the interval provided. Also, search channel, montage, baseline and filters need to be set by the user before running the batch mode.

If the check box "Positive voltage" is un-checked, only negative peaks will be considered. If "Positive voltage" is checked, then the module will run in a similar mode as the first scenario of the ERP Peak Finder (with marked interval).