Get started
PLUME is a toolbox composed of three main tools:
- PLUME Recorder for recording data from any Unity applications.
- PLUME Viewer for replaying records and in-situ analysis.
- PLUME Python for ex-situ analysis.
The following guide will help you get started with PLUME by recording your first experiment, reviewing it in the viewer and analyzing the data.
1. Recording your experiment and collect data ๐งช
- Install the PLUME Recorder in your Unity project by following the installation guide (2min setup).
- Build your application for deployment on Windows/iOS/Android or run it in the Unity Editor.
- By default, the record will start recording automatically as soon as the application starts so no specific action is required to start recording. Records file will be saved as
.plm
files in the persistent data directory located at:- Windows:
C:/Users/<user>/AppData/LocalLow/<company name>
- Android:
/storage/emulated/<userid>/Android/data/<packagename>/files
- iOS:
/var/mobile/Containers/Data/Application/<guid>/Documents
- Windows:
1.1. Recording event markers
The recorder provides a way to easily record event markers. For this, you can place the following code snippet in any of your Unity scripts:
1.2. Recording physiological data
By default, the recorder automatically will record any physiological data stream from the LabStreamingLayer (LSL) and synchronize it with the timestamp system of PLUME.
To record data from your own physiological hardware, start by checking the list of supported devices to see if a script to stream data to LSL already exists for your device. If not, you can easily create a script to stream data to LSL by using libraries implementing the LSL protocol such as pylsl, see an example here.
1.3. Recording custom data
Please refer to the recording custom data guide.
2. Quick inspection of the records ๐
To ensure that nothing went wrong during the recording process, you can quickly inspect .plm
files by replaying them in the PLUME Viewer.
- Install the PLUME Viewer by following the installation guide.
- In your Unity project, export the asset bundle (only required once) by following the export guide. This asset bundle contains the assets required to visualize the record.
- Open the PLUME Viewer and load the record file (
.plm
file) and asset bundle by following the replay guide.
3. In-situ analysis (using the viewer) ๐ฌ
After quickly inspecting your record, you can now perform in-situ analysis using the viewer. The viewer provides a set of modules to visualize and analyze the data within the 3D context such as 3D trajectories, position heatmap, eye-gaze heatmap and interactions highlights.
4. Ex-situ analysis (using Python) ๐ฌ
PLUME record files are fully decoupled from any application. As a result, they can be parsed from any applications using the Protobuf library. To further simplify the process, we provide a Python API to easily parse and extract data from the record files. This allows you to perform ex-situ analysis using Python for more traditional analysis workflow (statistical analysis, machine learning, etc.).
- Install the Python package using pip:
- You can now parse a record file and extract data using the Python API.
- You can now extract data from the record file and perform any analysis you want. See the usage guide for more information.