KernelCo commited on
Commit
277ce64
·
verified ·
1 Parent(s): 013fa30

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +112 -3
README.md CHANGED
@@ -1,3 +1,112 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Robot Control Dataset
2
+
3
+ ## Overview
4
+
5
+ The TD-NIRS and EEG data for this dataset was collected using a Kernel Flow headset.
6
+
7
+ Participants were asked to:
8
+ - Clench left fist
9
+ - Clench right fist
10
+ - Clench both fists
11
+ - Tap tongue
12
+ - Relax
13
+
14
+ ## Data
15
+
16
+ The `data` folder contains numpy files. Each numpy file represents a 15s chunk of data.
17
+
18
+ ### Timing
19
+
20
+ ```
21
+ t=0 t=3 t=15
22
+ rest period stimulus presented end of data
23
+ ```
24
+
25
+ ### Format
26
+
27
+ You can use the following to load a chunk:
28
+ ```python
29
+ arr = np.load('/tmp/file.npz', allow_pickle=True)
30
+ ```
31
+
32
+ There are 3 keys in this array:
33
+ ```python
34
+ > list(arr.keys())
35
+
36
+ ['feature_moments', 'feature_eeg', 'label']
37
+ ```
38
+
39
+ ### Labels
40
+
41
+ You can access the label with:
42
+ ```python
43
+ > arr['label'].item()
44
+
45
+ {'label': 'Both Fists',
46
+ 'subject_id': None,
47
+ 'session_id': 'bf56a42cfa7e4026be1b1ecdb130d3b3',
48
+ 'duration': 9.411478996276855}
49
+ ```
50
+
51
+ The labels are:
52
+ - `Right Fist`
53
+ - `Left First`
54
+ - `Both Firsts`
55
+ - `Tongue Tapping`
56
+ - `Relax`
57
+
58
+ The `subject_id` represents a unique participant. Chunks with the same `subject_id` came from the same participant.
59
+
60
+ The `session_id` represents a unique ID for the recording. Chunks with the same `session_id` came from the same recording.
61
+
62
+ The `duration` is the duration of the stimulus itself. The cue was presented at t=3 in the chunk and was removed `duration` seconds after. The participant was in a rest state for the rest of the chunk.
63
+
64
+ ## EEG
65
+
66
+ You can access the EEG data with:
67
+ ```python
68
+ > arr['feature_eeg'].shape
69
+
70
+ (7499, 6) # (num_samples, num_channels)
71
+ ```
72
+
73
+ The first dimension has the samples. The EEG streams at 500Hz and 15 seconds at 500Hz is 7499 samples.
74
+
75
+ The second dimension corresponds to the 6 channels. Their locations are:
76
+ ```
77
+ 0 1 2 3 4 5
78
+ AFF6 AFp2 AFp1 AFF5 FCz CPz
79
+ ```
80
+
81
+ ## TD-NIRS
82
+
83
+ You can access the TD-NIRS data with:
84
+ ```python
85
+ > arr['feature_moments'].shape
86
+
87
+ (72, 40, 3, 2, 3) # (num_samples, num_modules, num_sds_ranges, num_wavelengths, num_moments)
88
+ ```
89
+
90
+ The first dimension has the samples. The TD-NIRS streams at 4.76Hz and 15 seconds at 4.76Hz is 72 samples.
91
+
92
+ The second dimension corresponds to the 40 modules on the Kernel Flow headset. The moments data is averaged by module across channels where the module acted as a source.
93
+
94
+ The third dimension corresponds to the 3 various SDSs (source-detector separations) used. The moments data is averaged across channels whose separation is within a range. The mapping to index is:
95
+ ```
96
+ 0: short channels from 0mm to 10mm
97
+ 1: medium channels from 10mm to 25mm
98
+ 2: long channels from 25mm to 60mm
99
+ ```
100
+
101
+ The fourth dimension corresponds to the wavelengths in the Kernel Flow system. Each sample contains 2 wavelengths worth of data:
102
+ ```
103
+ 0: 690nm / red
104
+ 1: 905nm / infrared
105
+ ```
106
+
107
+ The fifth dimension corresponds to the 3 moments:
108
+ ```
109
+ 0: log10(sum) - logarithm of total intensity
110
+ 1: mean time of flight - average arrival time of photons
111
+ 2: variance/central moment - temporal broadening of the photon pulse
112
+ ```