Skip to content

CarlBittendorf/OPTIMIND

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OPTIMIND

Introduction

OPTIMIND is a research project within the Collaborative Research Center 289 titled "Treatment Expectation", funded by the German Research Foundation (DFG). The overarching goal is to understand and harness the power of patient expectations to improve medical treatment outcomes. Specifically, OPTIMIND aims to counteract negative treatment expectations regarding antidepressants and thus improve treatment outcomes through just-in-time adaptive interventions (JITAI). Participants receive daily, individualized feedback tailored to their current expectations.

This repository contains the code for real-time analyses that detect repeatedly exceeded cut-offs and regularly report compliance.

Setup

The code is deployed on a virtual machine. Currently, an Ubuntu 22.02 image is used via bwCloud SCOPE. See First Steps for setup instructions.

After creating the virtual machine, all packages should first be updated.

sudo apt update
sudo apt upgrade

Julia can then be installed with the following command.

curl -fsSL https://install.julialang.org | sh

Additionally, this repository must be cloned.

git clone https://github.com/CarlBittendorf/OPTIMIND.git

To use the cloned repository, a secrets.jl file must be created inside the project directory that contains access data, API keys, etc.

touch secrets.jl
nano secrets.jl

To have the scripts run automatically at specific times, a corresponding entry must be made in the crontab configuration file. This is opened or created with the following command.

crontab -e

The following lines run the jitai and compliance scripts.

0 4 * * 0-6 bash -l -c 'cd /home/ubuntu/OPTIMIND && julia --project scripts/jitai.jl 12'
0 10 * * 0-6 bash -l -c 'cd /home/ubuntu/OPTIMIND && julia --project scripts/jitai.jl 6'
0 11 * * 0-6 bash -l -c 'cd /home/ubuntu/OPTIMIND && julia --project scripts/jitai.jl 1'
0 12 * * 0-6 bash -l -c 'cd /home/ubuntu/OPTIMIND && julia --project scripts/jitai.jl 1'
0 13 * * 0-6 bash -l -c 'cd /home/ubuntu/OPTIMIND && julia --project scripts/jitai.jl 1'
0 14 * * 0-6 bash -l -c 'cd /home/ubuntu/OPTIMIND && julia --project scripts/jitai.jl 1'
0 15 * * 0-6 bash -l -c 'cd /home/ubuntu/OPTIMIND && julia --project scripts/jitai.jl 1'
0 16 * * 0-6 bash -l -c 'cd /home/ubuntu/OPTIMIND && julia --project scripts/jitai.jl 1'
30 6 * * 1 bash -l -c 'cd /home/ubuntu/OPTIMIND && julia --project scripts/compliance.jl'
30 6 * * 3 bash -l -c 'cd /home/ubuntu/OPTIMIND && julia --project scripts/compliance.jl'
30 6 * * 5 bash -l -c 'cd /home/ubuntu/OPTIMIND && julia --project scripts/compliance.jl'

To update to the latest version, run

git pull

in the project directory.

Acknowledgements

Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – GRK2739/1 – Project Nr. 447089431 – Research Training Group: KD²School – Designing Adaptive Systems for Economic Decisions

Releases

No releases published

Packages

No packages published