Yueyang Liu et al 2023 J. Neural Eng. 20 036024
Reommend to create an environment form the env.yml file with the following command.
conda env create -f env.yml
For Mac users, you might find conflicts when trying the above command.
Please create a Python 3.7 conda environment, and install the following packages.
numpy==1.18.5
scipy==1.4.1
pandas==1.3.5
tqdm==4.64.1
scikit-learn==1.0.2
matplotlib==3.5.3
statsmodels==0.13.5
tensorflow==2.3.0
In the "simu_data" folder, you can run the file to generate a small dataset of simulation recordings which is approximately 600MB. A larger dataset is used for the paper by setting the step as 0.01/3, which will generate recordings around 10GB.
The recordings are generated following the flow chart. Ljung-Box test is used for hypothesis testing.
By running "custom_loss_bi_noise.py" file, the model will be trained on the training data located in the "simu_data" folder.
Or the trained weights that the paper has used is provided in the "saved_weights" folder.
"random_recording_test.py" will randomly generate a recording with six different combinations of