Giter VIP home page Giter VIP logo

franklelechen / brain-heart-interaction-indexes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from catrambonevincenzo/brain-heart-interaction-indexes

0.0 1.0 0.0 32 KB

The current repository contains an implementation of the Brain-Heart Interaction model proposed by Catrambone et al in 2019 ("Time-Resolved Directional Brain–Heart Interplay Measurement Through Synthetic Data Generation Models").

License: GNU General Public License v3.0

MATLAB 100.00%

brain-heart-interaction-indexes's Introduction

Brain-Heart Interaction Indexes

This code implements the theoretical dissertation about a new Brain-Heart interaction model, published in: [1] Catrambone Vincenzo, Alberto Greco, Nicola Vanello, Enzo Pasquale Scilingo, and Gaetano Valenza. "Time-Resolved Directional Brain/Heart Interplay Measurement Through Synthetic Data Generation Models." Annals of biomedical engineering 47, no. 6 (2019): 1479-1489.

This function quantifies directional Brain-Heart Interplay (BHI) through the model proposed by Catrambone et al.(2019) [1].

INPUT variables:

  • TFR_EEG = Time course of EEG power spectral density (PSD). This must be a matrix (Dimension: Channels X time samples). Each series in each row should be filtered in the desired frequency band of interest (psi)
  • TFR_HRV = Time course of HRV PSD (Dimension: 1 X time samples). This should be filtered in the desired frequency band of interest (phi: e.g., LF or HF band).
  • FS = Sampling Frequency of the two TFRs
  • RR = HRV time series (expressed in seconds)
  • win_RR = windows length (expressed in seconds) in which the heartbeat generation model (IPFM) is reconstructed (default = 15 s)
  • window = windows length (in seconds) in which the parameters are calculated (default: window*FS >= 15 )

OUTPUT variables:

  • HeartToBrain = Functional coupling index (c_rrTOeeg(T)) from HRV Phi-band to EEG Psi-band
  • BrainToHF, BrainToLF = Functional coupling indices from EEG Psi-band to HRV-LF or HRV-HF bands
  • HeartToBrain_sigma, HeartToBrain_mc = model parameters to be used for fitting evaluation [1]

This software assumes that input series are all artifact free, e.g., heartbeat dynamics free of algotirhmic and/or physiological artifacts; e.g. EEG series free of artifacts from eye blink, movement, etc.


Copyright (C) 2019 Vincenzo Catrambone, Gaetano Valenza

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

If you use this program in support of published research, please include a citation of the reference above. If you use this code in a software package, please explicitly inform the end users of this copyright notice and ask them to cite the reference above in their published research.


To use the software from Matlab or Octave, simply call the BHImodel function in the src/folder. Type 'help BHImodel' from the Matlab/Octave command window for help on the command's syntax and input/output arguments.

The software does not come with a GUI. Assuming the series sampled at 1 Hz, with 'x' as the time-varying PSD of a given EEG channel integrated in the theta band (4-8 Hz) and 'y' as the time-varying PSD of an HRV series integrated in 0.04-0.4 Hz, and 'z' as the HRV series, the following example performs the BHImodel analysis (with default parameters) and plots the function outcomes:

Fs = 1;

[HeartToTheta, ThetaToHF, ThetaToLF] = BHImodel(x,y,Fs,z);

figure, hold all

plot(1:length(HeartToTheta))'/Fs, HeartToTheta);

plot(1:length(ThetaToHF))'/Fs, ThetaToHF);

plot(1:length(ThetaToHF))'/Fs, ThetaToLF);


brain-heart-interaction-indexes's People

Contributors

catrambonevincenzo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.