Toolkit for human in the loop optimization
Note This is a part of a publication: DOI
If you find any bugs, please report them in the discussion section or create an issue.
- Python 3.10 or higher.
- Labstreaminglayer - install here.
- pylsl - install by running
pip install pylsl
.
- Cosmed or other metabolic cart device.
- Setup metabolic cost acquisition code.
- Polar H10
- Bluetooth capible laptop for ECG.
- Pressure SDK.
Complete python HIL toolkit install using pip in main directory.
pip install -e .
For setting up the new polar H10 ( ECG sensor )
- Please turn on the computer bluetooth connection.
- Run the following script to find all the available POLAR sensor scripts
python scripts/search_polar.py
. This script will search for polar sensors in the bluetooth range and save the BLE information in theconfig/polar.yml
file. And return success or failure. - Run the script to collect data from the polar and send it.
python scripts/collect_polar.py
Warning The estimation is not fully tested. Please use with caution.
Please refer the following paper for the details of the estimation.
Reference
Kantharaju, Prakyath, and Myunghee Kim. "Phase-Plane Based Model-Free Estimation of Steady-State Metabolic Cost." IEEE Access 10 (2022): 97642-97650.
- Run the following script to estimate the metabolic cost.
python scripts/estimate_metabolic_cost.py
- This script will estimate the estimate the metabolic cost data in the provided in the
data/met_data.npy
. - The scrip will generate the estimation and the also video as shown in the following figure.
- It will also make a video of the estimation and the actual data. The video will be saved in the
scripts/Results/videos/
folder.
- Run the following notebook .
notebooks/preprocessing_cosmed.ipynb
to convert the raw data to the metabolic cost data. - To perform the estimation run the following notebook.
notebooks/estimation_cosmed.ipynb
Please follow instrucction in the Instructions_rpi.md file.
This is a Fork of the repository Prakyathkantharaju/HIL_toolkit. Please visit there for updated version.