Code for manuscript:
O'Toole JM, Pavlidis E, Korotchikova I, Boylan GB, Stevenson NJ, Temporal evolution of quantitative EEG within 3 days of birth in early preterm infants, Scientific Reports, 41227, DOI: 10.1038/s41598-019-41227-9 (2019)
Please cite the above reference if using this code or data to generate new results.
Includes R code for mixed-effects models of the EEG features and an algorithm to estimate brain maturation from the EEG.
All code developed in R (version 3.4.2, The R Foundation of Statistical Computing).
EEG features calculated using NEURAL (version 0.4.0 , also available on github) with burst detector (version 0.1.2 , also available on github). See references [1,2] for more details on these.
Mixed-effects models use the lme4
package (v1.1.15), gradient boosting uses gbm
(v2.1.3), and for parallel processing foreach
(v1.4.4) and doParallel
(v1.0.11)
packages are required. Also, ggplot2
(v2.0.0) is needed for plotting and plyr
(v1.8.3)
is required somewhere.
If not installed, then
install.packages('lme4')
install.packages('gbm')
install.packages('foreach')
install.packages('doParallel')
install.packages('ggplot2')
install.packages('plyr')
# load the functions:
source('all_features_MEM.R')
source('xv_EMA_regression.R')
source('var_importance_Niter.R')
Generate mixed-effects models for all EEG features
all_features_MEM()
To train and test the model to estimate EEG maturational age (EMA) using cross-validation,
xv_EMA_regression()
(see references [3,4] for more details on these types of algorithms.)
To assess the importance of the postnatal age as a feature in the EMA model,
var_importance_Niter()
Parameter values of the NEURAL toolbox used to the generate the qEEG features are listed in the file neural_parameters_PNA_qEEG.m.
Copyright (c) 2018, John M. O' Toole, University College Cork
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
Neither the name of the University College Cork nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
JM O' Toole, GB Boylan, RO Lloyd, RM Goulding, S Vanhatalo, and NJ Stevenson, Detecting Bursts in the EEG of Very and Extremely Premature Infants Using a Multi-Feature Approach, Medical Engineering & Physics, vol. 45, pp. 42-50, 2017. doi:10.1016/j.medengphy.2017.04.003
-
JM O’Toole and GB Boylan (2017). NEURAL: quantitative features for newborn EEG using Matlab. ArXiv e-prints, arXiv:1704.05694.
-
JM O’ Toole, GB Boylan, S Vanhatalo, NJ Stevenson (2016). Estimating functional brain maturity in very and extremely preterm neonates using automated analysis of the electroencephalogram. Clinical Neurophysiology, 127(8):2910–2918. doi:10.1016/j.clinph.2016.02.024
-
NJ Stevenson, L Oberdorfer, N Koolen, JM O’Toole, T Werther, K Klebermass-Schrehof, S Vanhatalo. (2017). Functional maturation in preterm infants measured by serial recording of cortical activity. Scientific Reports, 7(1), 12969. doi:10.1038/s41598-017-13537-3
John M. O' Toole
Neonatal Brain Research Group,
INFANT: Irish Centre for Fetal and Neonatal Translational Research,
Department of Paediatrics and Child Health,
Room 2.19 UCC Academic Paediatric Unit, Cork University Hospital,
University College Cork,
Ireland
- email: j.otoole AT ieee.org