{"id":76,"date":"2020-02-24T16:01:48","date_gmt":"2020-02-24T15:01:48","guid":{"rendered":"http:\/\/autopose.dfki.de\/?page_id=76"},"modified":"2022-11-15T14:06:48","modified_gmt":"2022-11-15T13:06:48","slug":"home","status":"publish","type":"page","link":"https:\/\/projects.dfki.uni-kl.de\/rada\/home\/","title":{"rendered":"Dataset description"},"content":{"rendered":"\n<p><strong>General information<\/strong><\/p>\n\n\n\n<p>The data set contains data from 10 participants [p_1,..p_n, p_10] performing six activities within a driving simulator. Each activity was recorded separately in a continuous manner (small variations in recording length are possible).<\/p>\n\n\n\n<p>The data stored in the zip file has the following structure:<\/p>\n\n\n\n<p>&lt;user&gt;\/&lt;activity&gt;\/pulsedoppler_float.csv<\/p>\n\n\n\n<p><strong>Extracting range-Doppler data<\/strong><\/p>\n\n\n\n<ol>\n<li>The following section provides information on the reading of pulsedoppler_float.csv and transforming it to a .npy file. Thereby only information about bins [1, 24], frequency values [1, 1024], and frames (recording length) is extracted. <\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>with open 'pulsedoppler_float'.csv as f:\n    pulse_doppler = csv.reader(f)\n\n    for row in pulse_doppler:\n        idx, frame_counter, matrix_counter, range_idx, range_bins, frequency_count, pulsedoppler_instance,\\\n        fps, fps_decimated, frequency_start, frequency_step, rrange, data = row\n\n        if idx == \"\":\n            pass\n        else:\n            data = np.array(data&#91;1:-1].split(\",\")).astype(float)\n            if matrix_counter in frames:\n                range_idx = int(range_idx)\n                \n                if float(frequency_start) &lt; 0:\n                    frames&#91;matrix_counter]&#91;0:512, range_idx] = data\n                else:\n                    frames&#91;matrix_counter]&#91;512:1024, range_idx] = data\n            else:\n                frames&#91;matrix_counter] = np.zeros((1024, 24))\n\nframes = np.array(list(frames.values()))<\/code><\/pre>\n\n\n\n<p>2. Generated .npy files can be used to generate sliding windows. The proposed study used a 2\/3 frames overlap for building a ResNet-18-based ring buffer. A sliding window of one second (doppler_frame) contains roughly 3 frames and has a shape (3, 1024, 24).<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>pulse_doppler = np.load('doppler_float'.npy)\n\nwin_len = 3\ni = 0\n\n# store only full 1 second\/3 frames files \nfor i in range(len(pulse_doppler)-2):\n    doppler_frame = pulse_doppler&#91;i:i+win_len]     \n    \n    np.save(os.path.join(file_storage, f'&lt;user>_&lt;activity>_doppler_float_{i}'.npy), doppler_frame)\n    i+=1<\/code><\/pre>\n\n\n\n<p><strong>Dataset statistics<\/strong><\/p>\n\n\n\n<p>Using the aforementioned steps, the following class distribution was observed:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{'Autopilot': 1844, 'Driving': 1747, 'Driving &amp; smartphone utilization': 1692, 'Sleeping': 1708, 'Smartphone utilization': 1715, 'Talking to passenger': 1700}. Total size: 10406. <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>General information The data set contains data from 10 participants [p_1,..p_n, p_10] performing six activities within a driving simulator. Each activity was recorded separately in a continuous manner (small variations in recording length are possible). The data stored in the<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/projects.dfki.uni-kl.de\/rada\/wp-json\/wp\/v2\/pages\/76"}],"collection":[{"href":"https:\/\/projects.dfki.uni-kl.de\/rada\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/projects.dfki.uni-kl.de\/rada\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/projects.dfki.uni-kl.de\/rada\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/projects.dfki.uni-kl.de\/rada\/wp-json\/wp\/v2\/comments?post=76"}],"version-history":[{"count":39,"href":"https:\/\/projects.dfki.uni-kl.de\/rada\/wp-json\/wp\/v2\/pages\/76\/revisions"}],"predecessor-version":[{"id":369,"href":"https:\/\/projects.dfki.uni-kl.de\/rada\/wp-json\/wp\/v2\/pages\/76\/revisions\/369"}],"wp:attachment":[{"href":"https:\/\/projects.dfki.uni-kl.de\/rada\/wp-json\/wp\/v2\/media?parent=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}