About PSGLab
Examples
Downloads
Install
Using
Documentation
PSGLab citation
Publications
Hardware module
Links
Contacts
Examples
Downloads
Install
Using
Documentation
PSGLab citation
Publications
Hardware module
Links
Contacts
Using
(file 'psglab_run.m')
- global_vars.main_path = 'c:\MATLABr2007a\work\'; % main path
- global_vars.path_define_file = 'c:\MATLABr2007a\work\data_artefacts\'; % directory with PSG DATA
- global_vars.figure_save = 1; % 0 ~ only show figures, 1 ~ show and save figures
- global_vars.figure_dpi = '-r170'; % define dpi for exported images (e.g. '-r170')
- global_vars.figure_format = '-dtiff'; % image format for exported images (e.g. '-dtiff')
- global_vars.figure_ext = 'tiff'; % file extension for exported images (e.g. 'tiff')
- global_vars.close_windows = 0; % close window with figure: 0 ~ do not close the window, 1 ~ close the Swindow
- global_vars.fig_ext = 'fig'; % file extension for exported figures (e.g. 'fig')
- global_vars.dir_list = [1]; % dirs with data (e.g. [1 : 20])
- global_vars.limitation_length = -1; % -1 ~ whole signal processing; any other number ~ limitation for processing in seconds
Simple definition of used methods
(file 'psglab_run.m')
- options.run_load_int = 0; % loading of binary data (*.bin)
- options.run_load_asc = 0; % loading of asci data (*.asc)
- options.run_load_dfile = 0; % loading of d-file data (*.D)
- options.run_load_gsr = 0; % loading of gsr data (*.txt)
- options.run_load_timecode = 0; % loading of gsr data (*.txt)
- options.run_load_defination = 0; % loading of data definition file ('data-info.xml')
- options.run_data_resampling = 0; % data resampling
- options.run_data_filtering_50hz = 0; % data filtering (notch filter 50Hz)
- options.run_data_filtering_fir = 0; % data filtering (FIR, basic EEG bands)
- options.run_data_amplitude_changing = 0; % amplitude scaling
- options.run_data_isoline_removing = 0; % isoline removing
- options.run_data_cutting = 0; % data cutting
- options.run_data_mean_channels_computing = 0; % mean channel computing
- options.run_data_covert_excl = 0; % conversion of expert classification to different time scales
- options.run_data_new_excl = 0; % conversion of expert classification to different time scales
- options.run_data_artefact_detection = 0; % artifact detection
- options.run_segmentation_constant = 0; % constant segmentation
- options.run_segmentation_adaptive = 0; % adaptive segmentation
- options.run_feature_extraction_default = 0; % feature extraction (default features)
- options.run_feature_normalization = 0; % normalization
- options.run_feature_extraction_coherence = 0; % feature extraction (coherence)
- options.run_feature_extraction_correlation = 0; % feature extraction (correlation)
- options.run_spectrogram_computing = 0; % spectrogram computing
- options.run_feature_export_to_weka = 0; % convert results to weka format
- options.run_feature_selection = 0; % feature selection
- options.run_feature_selection_sfs = 0; % feature selection - Sequential Forward Selection
- options.run_feature_selection_combining = 0; % combining of feature selection results
- options.run_classification_cross_validation = 0; % cross validation
- options.run_classification_knn = 0; % k-nn classifier
- options.run_classification_filter = 0; % postproc. filter
- options.run_classification_hmm = 0; % classification by HMM
- options.run_clustering_hierarchical = 0; % hierarchical clustering
- options.run_clustering_kmeans = 0; % k-means clustering
- options.run_show_signals = 0; % show signals + segment borders
- options.run_show_selected_features = 0; % show features
- options.run_show_features_coherence = 0; % show coherence results
- options.run_show_features_correlation = 0; % show correlation results
- options.run_show_classification_results = 0; % show results of classification
- options.run_show_clustering_hierarchical = 0; % hierarchical clustering
- options.run_show_clustering_kmeans = 0; % k-means clustering
- options.run_show_2d_map = 0; % one 2D map creating
- options.run_show_2d_maps = 0; % 2D maps creating
- options.run_show_features = 0; % comparison of features
- options.run_join_features = 0; % feature combination
- options.run_feature_selection_combining = 0; % combining of feature selection results
- options.run_join_arff_files = 0; % join arff files to one arff file
- options.run_2d_maps_to_avi = 0;
Additional definition files for PSGLab
- define-classes.txt % definition of classes
- define-coherence.txt % definition of the electrode pairs to calculate the coherence
- define-coherence-bands.txt % definition of the frequency bands to calculate the coherence
- define-colormap.bmp % color map used for the visualization of cluster analysis results
- define-correlation.txt % definition of the electrode pairs to calculate the correlation
- define-correlation-names.txt % labels for each pair of electrodes
- define-electrodes.txt % used electrodes
- define-electrodes-A.png % auxiliary file for the visualization of 2D maps
- define-electrodes-B.png % auxiliary file for the visualization of 2D maps
- define-electrodes-C.png % auxiliary file for the visualization of 2D maps
- define-electrodes-position-118.txt % position of electrodes - 118 channels
- define-electrodes-position-19.txt % position of electrodes - 19 channels
- define-electrodes-position-8.txt % position of electrodes - 8 channels
- define-features.txt % definition of active features (which are calculated)
- define-maps-names.txt % description of the maps (auxiliary file)
- define-maps-type.txt % type of maps (auxiliary file)
- define-spectrogram.txt % definition of the electrodes to calculate the spectrogram
- define-wav-energy-ratios.txt % definitions of important clinical ratios