1/6/2024 0 Comments Python decode mat file![]() The loop breaks when theĬurrent tag is empty, or is the item delimitation tag (group=FFFE,Īfter it has broken out of the loop, if the last tag was (FFFE, E00D) The end of the loop, it reads the next tag. The tag is processed (by setting values into the return structure). The read_dicom subfunction reads a tag, then has a loop during which Otherwise - crash out with error saying that this is not DICOM file. Signature for a ‘GE Twin+excite’ for which JA notes there is noĭocumentation set file pointer to 0 and continue read with If group = 8 and element = 0, this is apparently the Spm_dicom_dict.mat, then set file pointer to 0 and continue Reads two unsigned short values into group and tag Otherwise, tests to see if this is what SPM calls truncated DICOMįile format - lacking 128 byte lead in and DICM string: When opening the DICOM file, SPM (subfunction readdicomfile)Ĭhecks if these are DICM if so then continues file read Reads the given DICOM files into a struct. Group and element, and values, where values is a structĪrray, one element per (group, element) pair, with fields name and The version in SPM8, as of around January 2010. Spm_dicom_dict.mat and spm_dicom_convert.m. The relevant SPM files are spm_dicom_headers.m, There are other notes in Siemens mosaic format. "chan" describes the names of EEG channels.These are some notes on the algorithms that SPM uses to convert fromĭICOM to nifti. If you want to play back the signal through earphones, please apply an HRTF filter.) "leftWav" and "rightWav" contains the aligned audio stimuli of the left and right competing speakers. "eeg": The EEG signals are stored in this field. ![]() "data" is the field containing audio and EEG information. As described in the abstract, the directions of the competing speakers are drawn randomly from fifteen alternates. "azimuth" indicates the directions of the two competing speakers. You can directly extract the audio waveform from the "data" field. "l_audio" and "r_audio" indicate the file name of the left and right competing speakers, respectively. "left" indicates the subject was instructed to attend to the speaker on the left side. "attended_lr" indicates the relative attended direction (the relative direction of the attended speaker). "expinfo" is a table containing attention information. mat file into MATLAB or Python, you can access the data and experiment information through the "data" and "expinfo" fields. ![]() ![]() Note that as we manually removed some abnormal parts from the original EEG recordings besides ICA and filtering, the EEG duration of each trial is slightly different. mat files separately, including the EEG signal, attention information, and the competing speakers' information for each trial. The EEG signals were preprocessed in EEGLAB and sliced into trials.ĭata of each subject are stored in. The dataset includes EEG signals and audio stimuli. Note that there are 28 subjects participated in our experiments and the data of seven subjects were removed from further analysis due to device failure. Please contact the author at for additional information. This dataset provides the preprocessed EEG recordings and the aligned audio stimuli signals, as long as the attention information. In each trial, the subject was exposed to a pair of randomly selected stimuli, the directions of whom were randomly drawn from the 15 possible competing speaker directions, i.e., ☑35°, ☑20°, ☙0°, ☖0°, ±45°, ☓0°, ☑5° and 0°. The EEG data were recorded with the 32-channel EMOTIV Epoc Flex Saline system at a sampling rate of 128 Hz (downsampled from 1024 Hz) in a low-reverberant listening room.įor each subject, the experiment includes 32 trials. Unlike previous datasets (such as the KUL dataset), the locations of the two speakers are randomly drawn from fifteen alternatives.Īll subjects have given formal written consent approved by the Nanjing University ethical committee before the experiment and received financial compensation upon completion. This is an auditory attention decoding dataset including EEG recordings of 21 subjects when they were instructed to attend to one of the two competing speakers at two different locations. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |