Slow Wave Detector
Module name: SlowWaveDetector
Package: CEAMSModules 7.4.0
Version: 2.2.0
Overview
This plugin detects slow wave events based on multiple criterias such as Carrier’s, sex and / or age of subject. The plugin also keeps in memory the caracteristics of the slow wave, including the transition frequency of the wave in order to eventually classify the slow waves collected. To assure best results, the detector keeps only 30 s or + epochs. If epochs aren’t the same size, the detector reformats the signal and keeps only 30 s segments.
Inputs
Input |
Format |
Default |
Description |
|---|---|---|---|
|
a list of SignalModel |
— |
signal.samples : the actual signal data as numpy list
signal.sample_rate : sampling rate of the signal
signal.channel : current channel label
|
|
String, event group. |
ssw_carrier |
String, event group. |
|
String, event label. |
— |
String, event label. |
|
float, minimal wave frequency |
0.16 |
float, minimal wave frequency |
|
float, maximal wave frequency |
4 |
float, maximal wave frequency |
|
float, peak-to-peak minimal amplitude |
75 |
float, peak-to-peak minimal amplitude |
|
float, negative minimal amplitude |
40 |
float, negative minimal amplitude |
|
int, minimal duration of negative part of the slow wave |
125 |
int, minimal duration of negative part of the slow wave |
|
int, maximal duration of negative part of the slow wave |
1500 |
int, maximal duration of negative part of the slow wave |
|
int, minimal duration of positive part of the slow wave |
0 |
int, minimal duration of positive part of the slow wave |
|
int, maximal duration of positive part of the slow wave |
1000 |
int, maximal duration of positive part of the slow wave |
|
String, ‘1’ or ‘0’ |
0 |
‘1’ to modify criterias according to age
‘0’ to keep criterias as they are
|
|
int, 0 to 122 |
0 |
int, 0 to 122 |
|
int, 0 to 11 |
0 |
int, 0 to 11 |
|
String, ‘1’ or ‘0’ |
0 |
‘1’ to modify criterias according to sex
‘0’ to keep criterias as they are
|
|
String, ‘Female’ or ‘Male’ |
Female |
String, ‘Female’ or ‘Male’ |
Outputs
Output |
Format |
Description |
|---|---|---|
|
Pandas DataFrame |
DataFrame events (columns=[‘group’,’name’,’start_sec’,’duration_sec’,’channels’])
containing a slow wave event
|
|
Pandas DataFrame |
DataFrame events (columns=[‘start_sec’, ‘duration_sec’, ‘n_t’,’pkpk_amp_uV’,’neg_amp_uV’, ‘neg_sec’, ‘pos_sec’, ‘Pap_raw’, ‘Neg_raw’, ‘mfr’, ‘trans_freq_Hz’, ‘slope_0_min’, ‘slope_min_max’, ‘slope_max_0’, ‘channels’,’name’])
containing data of each detected slow wave for further analysis
|
Usage in a process
Open Dev Tools -> New process in Snooz.
In the Module Library, find Slow Wave Detector under the Detectors category.
Drag the module onto the process canvas.
Connect the required inputs from upstream modules (or set values in the Settings tab).
Connect outputs to downstream modules as needed.
Double-click the module to configure parameters in the Settings tab.
Run the process and inspect results in the Results tab.
Note
For general guidance on building processes with modules, see Explore examples.