A semi-automated system prototype that annotates skin conductance data.
To install this software, we'll need Anaconda and Git. If you already have them, you can skip to the User Guide section.
Please download and install Anaconda. Please do not check or uncheck any installation options.
Please download and install Git
Go to the folder where you want save the interface software. Open a git bash (right click on the folder and select Git Bash here)
We will clone this repo. Copy the location of this repo: \
Use the next command:
**git clone https://github.com/jorgpg5/EzySCR.git"
Then, we will open an anaconda prompt. Type "anaconda prompt" on the windows search bar.
We will install the interface by using the yml file in the repo.
In the anaconda prompt, go to the folder where you cloned this repo with Git.
Run the next command for windows:
conda env create -f environment.yml
Run the next command for MacOS:
conda env create -f environment_mac.yml
The virtual environment that hosts the annotation interface should be ready after a few minutes.
When the installation of the virtual environment has finished, run the next commands:
conda activate ezyscr
voila ezyscr.ipynb
Voila! (pun intended :P) your interface is ready to use.
Note: Before you run the interface, you need to double-check a couple of things.
1.- Check that the folder structure is the same as the repo.
2.- Check that you have the .m files in the dataset folder. If you have the .acq files, you'll need to use AcqKnowledge to convert the .acq files into .m files.
To run the interface, go to the folder where you cloned this repo.
Enter the following commands:
conda activate ezyscr
voila ezyscr.ipynb
The last command will open a browser where the interface is hosted.
- Enter the name of the file that you want to analyse (without the extension type, i.e. Acq_P301). If the file is not in the dataset folder, the interface will ask you to verify the filename.
- Wait a few seconds while the data is preprocessed. Then Click on the "Start Annotation" button.
- The interface will be loaded. To annotate, click and drag the markers on the chart. If you're not happy with the annotation or just want to start over, click on the "Reset" button.
- To visualise a preview of the data that will be saved, click on "Visualise Annotation".
- Click on "Next" or "Prev" to change events. The data will be saved on the fly. When these buttons are pressed, the annotations will be saved in the "annotated_data" folder. To make sure that all the data has been annotated, please go through the all events in that file.
Troubleshooting:
- If you want to see the code or change some stuff, type "jupyter notebook" in the terminal where you cloned the repo. Then, open the jupyter notebook to modify/see the code.
- If something goes wrong, just refresh the page and the interface will start from the beginning.
- If you open the annotated file located in the "annotated_data" folder, please close the csv file before making more annotations. By not doing so, the interface will have issues as it won't be able to write the data into the csv file.