Brain Computer Interface(BCI) Data Migration



Introducing the Brain Computer Interface(BCI) Data Migration

1. Check raw data

The EEG measurement results are in text files, as shown in the image below.

2. Set the Preprocessing Plan

Since it is 1000 Hz sensor data, set it to collect data from January 1, 2024, 00:00 for 3 seconds at 1 ms intervals.

  • Batch Reading & Data Matching.
  • Convert to UTC time.

Batch Reading & Data Matching

Convert to UTC time

Once the data frame is restructured as shown in the image below, it will be ready for upload to Machbase Neo.

3. Data Upload

Finally, the data can be uploaded to Machbase Neo using the command below.

machbase-neo shell import --input ./datahub-2024-5-bci1.csv.gz --compress gzip --header --method append --timeformat ns bci1

Check the entire code.

datahub/dataset/2024/05.BCI1/conv/convert.py at main · machbase/datahub
All Industrial IoT DataHub with data visualization and AI source - machbase/datahub

4. Check the results after uploading

Output when executing the following code in the Machbase Neo internal shell.

select * from v$bci1_stat;

※ Subsequent link to the AI training process: Brain Computer Interface(BCI) Data

Back to Top