1
|
Frasch MG. Comprehensive HRV estimation pipeline in Python using Neurokit2: Application to sleep physiology. MethodsX 2022; 9:101782. [PMID: 35880142 PMCID: PMC9307944 DOI: 10.1016/j.mex.2022.101782] [Citation(s) in RCA: 5] [Impact Index Per Article: 2.5] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Download PDF] [Figures] [Journal Information] [Subscribe] [Scholar Register] [Received: 04/04/2022] [Accepted: 07/05/2022] [Indexed: 10/31/2022] Open
Abstract
NeuroKit2 is a Python Toolbox for Neurophysiological Signal Processing. The presented method is an adaptation of NeuroKit2 to simplify and automate computation of the various mathematical estimates of heart rate variability (HRV) or similar time series. By default, the present approach accepts as input electrocardiogram's R-R intervals (RRIs) or peak times, i.e., timestamp of each consecutive R peak, but the RRIs or peak times can also stem from other biosensors such as photoplethysmography (PPGs) or represent more general kinds of biological or non-biological time series oscillations. The data may be derived from a single or several sources such as conventional univariate heart rate time series or intermittently weakly coupled fetal and maternal heart rate data. The method describes preprocessing and computation of an output of 124 HRV measures including measures with a dynamic, time-series-specific optimal time delay-based complexity estimation with a user-definable time window length. I also provide an additional layer of HRV estimation looking at the temporal fluctuations of the HRV estimates themselves, an approach not yet widely used in the field, yet showing promise (doi: 10.3389/fphys.2017.01112). To demonstrate the application of the methodology, I present an approach to studying the dynamic relationships between sleep state architecture and multi-dimensional HRV metrics in 31 subjects. NeuroKit2's documentation is extensive. Here, I attempted to simplify things summarizing all you need to produce the most extensive HRV estimation output available to date as open source and all in one place. The presented Jupyter notebooks allow the user to run HRV analyses quickly and at scale on univariate or multivariate time-series data. I gratefully acknowledge the excellent support from the NeuroKit team.•Univariate or multivariate time series input; ingestion, preprocessing, and computation of 124 HRV metrics.•Estimation of intra- and inter-individual higher order temporal fluctuations of HRV metrics.•Application to a sleep dataset recorded using Apple Watch and expert sleep labeling.
Collapse
|
2
|
Hasselman F. Early Warning Signals in Phase Space: Geometric Resilience Loss Indicators From Multiplex Cumulative Recurrence Networks. Front Physiol 2022; 13:859127. [PMID: 35600293 PMCID: PMC9114511 DOI: 10.3389/fphys.2022.859127] [Citation(s) in RCA: 6] [Impact Index Per Article: 3.0] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Download PDF] [Figures] [Journal Information] [Subscribe] [Scholar Register] [Received: 01/20/2022] [Accepted: 03/22/2022] [Indexed: 11/13/2022] Open
Abstract
The detection of Early Warning Signals (EWS) of imminent phase transitions, such as sudden changes in symptom severity could be an important innovation in the treatment or prevention of disease or psychopathology. Recurrence-based analyses are known for their ability to detect differences in behavioral modes and order transitions in extremely noisy data. As a proof of principle, the present paper provides an example of a recurrence network based analysis strategy which can be implemented in a clinical setting in which data from an individual is continuously monitored for the purpose of making decisions about diagnosis and intervention. Specifically, it is demonstrated that measures based on the geometry of the phase space can serve as Early Warning Signals of imminent phase transitions. A publicly available multivariate time series is analyzed using so-called cumulative Recurrence Networks (cRN), which are recurrence networks with edges weighted by recurrence time and directed towards previously observed data points. The results are compared to previous analyses of the same data set, benefits, limitations and future directions of the analysis approach are discussed.
Collapse
Affiliation(s)
- Fred Hasselman
- Behavioural Science Institute, Radboud University, Nijmegen, Netherlands
| |
Collapse
|
3
|
Rodríguez-Hernández AJ, Sevcik C. Hidden chaos factors inducing random walks which reduce hospital operative efficiency. PLoS One 2022; 17:e0262815. [PMID: 35085317 PMCID: PMC8794195 DOI: 10.1371/journal.pone.0262815] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [MESH Headings] [Grants] [Track Full Text] [Download PDF] [Figures] [Journal Information] [Subscribe] [Scholar Register] [Received: 05/10/2021] [Accepted: 01/05/2022] [Indexed: 11/30/2022] Open
Abstract
Operative parameters of La Fuenfría Hospital such as: hospitalized patients; daily admissions and discharges were studies for the hospital as a whole, and for each hospital's service unit (henceforth called 'services'). Conventional statistical analyzes and fractal dimension analyzes were performed on daily In-Patient series. The sequence of daily admissions and patients staying on each service were found to be a kind of random series known as random walks (Rw), sequences where what happens next, depends on what happens now plus a random variable. Rw analyzed with parametric or nonparametric statistics may simulate cycles and drifts which resemble seasonal variations or fake trends which reduce the Hospital's efficiency. Globally, inpatients Rw s in LFH, were found to be determined by the time elapsed between daily discharges and admissions. The factors determining LFH R were found to be the difference between daily admissions and discharges. The discharges are replaced by admissions with some random delay and the random difference determines LFH Rw s. These findings show that if the daily difference between admissions and discharges is minimized, the number of inpatients would fluctuate less and the number of unoccupied beds would be reduced, thus optimizing the Hospital service.
Collapse
Affiliation(s)
| | - Carlos Sevcik
- Centro de Biofísica y Bioquímica, Instituto Venezolano de Investigaciones Científicas, Caracas, Venezuela
| |
Collapse
|
4
|
Twose J, Licitra G, McConchie H, Lam KH, Killestein J. Early-warning signals for disease activity in patients diagnosed with multiple sclerosis based on keystroke dynamics. CHAOS (WOODBURY, N.Y.) 2020; 30:113133. [PMID: 33261343 DOI: 10.1063/5.0022031] [Citation(s) in RCA: 4] [Impact Index Per Article: 1.0] [Reference Citation Analysis] [Abstract] [MESH Headings] [Track Full Text] [Subscribe] [Scholar Register] [Received: 07/16/2020] [Accepted: 10/21/2020] [Indexed: 06/12/2023]
Abstract
Within data gathered through passive monitoring of patients with Multiple Sclerosis (MS), there is a clear necessity for improved methodological approaches to match the emergence of continuous, objective, measuring technologies. As most gold standards measure infrequently and require clinician presence, fluctuations in the daily progression are not accounted for. Due to the underlying conditions of homogeneity and stationarity (the main tenets of ergodicity) not being met for the majority of the statistical methods employed in the clinical setting, alternative approaches should be investigated. A solution is to use a non-linear time series analysis approach. Here, Early-Warning Signals (EWS) in the form of critical fluctuations in Keystroke Dynamics (KD), collected using participant's smartphones, are investigated as indicators for a clinical change in three groups. These are patients with MS and changes in Magnetic Resonance Imaging (MRI), patients with MS but without changes in MRI, and healthy controls (HCs). Here, we report examples of EWS and changes in KD coinciding with clinically relevant changes in outcome measures in both patients with and without differences in the amount of MRI enhancing lesions. We also report no clinically relevant changes in EWS in the HC population. This study is a first promising step toward using EWS to identify periods of instability as measured by a continuous objective measure as a proxy for outcome measures in the field of MS.
Collapse
Affiliation(s)
- J Twose
- Neurocast B.V., Amsterdam 1097DN, The Netherlands
| | - G Licitra
- Neurocast B.V., Amsterdam 1097DN, The Netherlands
| | - H McConchie
- Neurocast B.V., Amsterdam 1097DN, The Netherlands
| | - K H Lam
- Department of Neurology, Amsterdam University Medical Centers, Amsterdam 1105AZ, The Netherlands
| | - J Killestein
- Department of Neurology, Amsterdam University Medical Centers, Amsterdam 1105AZ, The Netherlands
| |
Collapse
|
5
|
Olthof M, Hasselman F, Lichtwarck-Aschoff A. Complexity in psychological self-ratings: implications for research and practice. BMC Med 2020; 18:317. [PMID: 33028317 PMCID: PMC7542948 DOI: 10.1186/s12916-020-01727-2] [Citation(s) in RCA: 18] [Impact Index Per Article: 4.5] [Reference Citation Analysis] [Abstract] [Key Words] [MESH Headings] [Track Full Text] [Download PDF] [Figures] [Journal Information] [Submit a Manuscript] [Subscribe] [Scholar Register] [Received: 04/15/2020] [Accepted: 07/31/2020] [Indexed: 12/19/2022] Open
Abstract
BACKGROUND Psychopathology research is changing focus from group-based "disease models" to a personalized approach inspired by complex systems theories. This approach, which has already produced novel and valuable insights into the complex nature of psychopathology, often relies on repeated self-ratings of individual patients. So far, it has been unknown whether such self-ratings, the presumed observables of the individual patient as a complex system, actually display complex dynamics. We examine this basic assumption of a complex systems approach to psychopathology by testing repeated self-ratings for three markers of complexity: memory, the presence of (time-varying) short- and long-range temporal correlations; regime shifts, transitions between different dynamic regimes; and sensitive dependence on initial conditions, also known as the "butterfly effect," the divergence of initially similar trajectories. METHODS We analyzed repeated self-ratings (1476 time points) from a single patient for the three markers of complexity using Bartels rank test, (partial) autocorrelation functions, time-varying autoregression, a non-stationarity test, change point analysis, and the Sugihara-May algorithm. RESULTS Self-ratings concerning psychological states (e.g., the item "I feel down") exhibited all complexity markers: time-varying short- and long-term memory, multiple regime shifts, and sensitive dependence on initial conditions. Unexpectedly, self-ratings concerning physical sensations (e.g., the item "I am hungry") exhibited less complex dynamics and their behavior was more similar to random variables. CONCLUSIONS Psychological self-ratings display complex dynamics. The presence of complexity in repeated self-ratings means that we have to acknowledge that (1) repeated self-ratings yield a complex pattern of data and not a set of (nearly) independent data points, (2) humans are "moving targets" whose self-ratings display non-stationary change processes including regime shifts, and (3) long-term prediction of individual trajectories may be fundamentally impossible. These findings point to a limitation of popular statistical time series models whose assumptions are violated by the presence of these complexity markers. We conclude that a complex systems approach to mental health should appreciate complexity as a fundamental aspect of psychopathology research by adopting the models and methods of complexity science. Promising first steps in this direction, such as research on real-time process monitoring, short-term prediction, and just-in-time interventions, are discussed.
Collapse
Affiliation(s)
- Merlijn Olthof
- Behavioural Science Institute, Radboud University, Nijmegen, The Netherlands
| | - Fred Hasselman
- Behavioural Science Institute, Radboud University, Nijmegen, The Netherlands
- School of Pedagogical and Educational Sciences, Radboud University, Nijmegen, The Netherlands
| | | |
Collapse
|
6
|
Kasum O, Perović A, Jovanović A. Measures and Metrics of Biological Signals. Front Physiol 2018; 9:1707. [PMID: 30564137 PMCID: PMC6288820 DOI: 10.3389/fphys.2018.01707] [Citation(s) in RCA: 1] [Impact Index Per Article: 0.2] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Download PDF] [Figures] [Journal Information] [Subscribe] [Scholar Register] [Received: 06/14/2018] [Accepted: 11/13/2018] [Indexed: 11/13/2022] Open
Abstract
The concept of biological signals is becoming broader. Some of the challenges are: searching for inner and structural characteristics; selecting appropriate modeling to enhance perceived properties in the signals; extracting the representative components, identifying their mathematical correspondents; and performing necessary transformations in order to obtain form for subtle analysis, comparisons, derived recognition, and classification. There is that unique moment when we correspond the adequate mathematical structures to the observed phenomena. It allows application of various mathematical constructs, transformations and reconstructions. Finally, comparisons and classifications of the newly observed phenomena often lead to enrichment of the existing models with some additional structurality. For a specialized context the modeling takes place in a suitable set of mathematical representations of the same kind, a set of models M, where the mentioned transformations take place. They are used for determination of structures M, where mathematical finalization processes are preformed. Normalized representations of the initial content are measured in order to determine the key invariants (characterizing characteristics). Then, comparisons are preformed for specialized or targeted purposes. The process converges to the measures and distance measurements in the space M. Thus, we are dealing with measure and metric spaces, gaining opportunities that have not been initially available. Obviously, the different aspects in the research or diagnostics will demand specific spaces. In our practice we faced a large variety of problems in analysis of biological signals with very rich palette of measures and metrics. Even when a unique phenomena are observed for slightly different aspects of their characteristics, the corresponding measurements differ, or are refinements of the initial structures. Certain criteria need to be fulfilled. Namely, characterization and semantic stability. The small changes in the structures have to induce the small changes in measures and metrics. We offer a collection of the models that we have been involved in, together with the problems we met and their solutions, with representative visualizations.
Collapse
Affiliation(s)
- Obrad Kasum
- Group for Intelligent Systems (GIS), Faculty of Mathematics, University of Belgrade, Belgrade, Serbia
| | - Aleksandar Perović
- Group for Intelligent Systems (GIS), Faculty of Mathematics, University of Belgrade, Belgrade, Serbia.,Faculty of Transport and Traffic Engineering, University of Belgrade, Belgrade, Serbia
| | - Aleksandar Jovanović
- Group for Intelligent Systems (GIS), Faculty of Mathematics, University of Belgrade, Belgrade, Serbia
| |
Collapse
|
7
|
Hasselman F. Classifying acoustic signals into phoneme categories: average and dyslexic readers make use of complex dynamical patterns and multifractal scaling properties of the speech signal. PeerJ 2015; 3:e837. [PMID: 25834769 PMCID: PMC4380160 DOI: 10.7717/peerj.837] [Citation(s) in RCA: 7] [Impact Index Per Article: 0.8] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Download PDF] [Figures] [Journal Information] [Subscribe] [Scholar Register] [Received: 07/21/2014] [Accepted: 02/24/2015] [Indexed: 11/25/2022] Open
Abstract
Several competing aetiologies of developmental dyslexia suggest that the problems with acquiring literacy skills are causally entailed by low-level auditory and/or speech perception processes. The purpose of this study is to evaluate the diverging claims about the specific deficient peceptual processes under conditions of strong inference. Theoretically relevant acoustic features were extracted from a set of artificial speech stimuli that lie on a /bAk/-/dAk/ continuum. The features were tested on their ability to enable a simple classifier (Quadratic Discriminant Analysis) to reproduce the observed classification performance of average and dyslexic readers in a speech perception experiment. The ‘classical’ features examined were based on component process accounts of developmental dyslexia such as the supposed deficit in Envelope Rise Time detection and the deficit in the detection of rapid changes in the distribution of energy in the frequency spectrum (formant transitions). Studies examining these temporal processing deficit hypotheses do not employ measures that quantify the temporal dynamics of stimuli. It is shown that measures based on quantification of the dynamics of complex, interaction-dominant systems (Recurrence Quantification Analysis and the multifractal spectrum) enable QDA to classify the stimuli almost identically as observed in dyslexic and average reading participants. It seems unlikely that participants used any of the features that are traditionally associated with accounts of (impaired) speech perception. The nature of the variables quantifying the temporal dynamics of the speech stimuli imply that the classification of speech stimuli cannot be regarded as a linear aggregate of component processes that each parse the acoustic signal independent of one another, as is assumed by the ‘classical’ aetiologies of developmental dyslexia. It is suggested that the results imply that the differences in speech perception performance between average and dyslexic readers represent a scaled continuum rather than being caused by a specific deficient component.
Collapse
Affiliation(s)
- Fred Hasselman
- School of Pedagogical and Educational Science, Radboud University Nijmegen , The Netherlands
| |
Collapse
|
8
|
De Ruiter NMP, Den Hartigh RJR, Cox RFA, Van Geert PLC, Kunnen ES. The Temporal Structure of State Self-Esteem Variability During Parent–Adolescent Interactions: More Than Random Fluctuations. SELF AND IDENTITY 2014. [DOI: 10.1080/15298868.2014.994026] [Citation(s) in RCA: 7] [Impact Index Per Article: 0.7] [Reference Citation Analysis] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Indexed: 10/24/2022]
|
9
|
Making sense of the noise: Replication difficulties of Correll's (2008) modulation of 1/f noise in a racial bias task. Psychon Bull Rev 2014; 22:1135-41. [PMID: 25384891 DOI: 10.3758/s13423-014-0757-4] [Citation(s) in RCA: 3] [Impact Index Per Article: 0.3] [Reference Citation Analysis] [Abstract] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Indexed: 11/08/2022]
Abstract
Correll (Journal of Personality and Social Psychology, 94, 48-59, 2008; Study 2) found that instructions to use or avoid race information decreased the emission of 1/f noise in a weapon identification task (WIT). These results suggested that 1/f noise in racial bias tasks reflected an effortful deliberative process, providing new insights regarding the mechanisms underlying implicit racial biases. Given the potential theoretical and applied importance of understanding the psychological processes underlying implicit racial biases - and in light of the growing demand for independent direct replications of findings to ensure the cumulative nature of our science - we attempted to replicate Correll's finding in two high-powered studies. Despite considerable effort to closely duplicate all procedural and methodological details of the original study (i.e., same cover story, experimental manipulation, implicit measure task, original stimuli, task instructions, sampling frame, population, and statistical analyses), both replication attempts were unsuccessful in replicating the original finding challenging the theoretical account that 1/f noise in racial bias tasks reflects a deliberative process. However, the emission of 1/f noise did consistently emerge across samples in each of our conditions. Hence, future research is needed to clarify the psychological significance of 1/f noise in racial bias tasks.
Collapse
|
10
|
Ihlen EAF. Multifractal analyses of human response time: potential pitfalls in the interpretation of results. Front Hum Neurosci 2014; 8:523. [PMID: 25100972 PMCID: PMC4104308 DOI: 10.3389/fnhum.2014.00523] [Citation(s) in RCA: 2] [Impact Index Per Article: 0.2] [Reference Citation Analysis] [Key Words] [Track Full Text] [Download PDF] [Figures] [Journal Information] [Subscribe] [Scholar Register] [Received: 04/23/2014] [Accepted: 06/27/2014] [Indexed: 11/13/2022] Open
Affiliation(s)
- Espen A F Ihlen
- Department of Neuroscience, Norwegian University of Science and Technology Trondheim, Norway
| |
Collapse
|
11
|
Wijnants ML. A comment on "Measuring fractality" by Stadnitski (2012). Front Physiol 2014; 5:28. [PMID: 24550839 PMCID: PMC3913829 DOI: 10.3389/fphys.2014.00028] [Citation(s) in RCA: 1] [Impact Index Per Article: 0.1] [Reference Citation Analysis] [Key Words] [Track Full Text] [Download PDF] [Journal Information] [Subscribe] [Scholar Register] [Received: 09/02/2013] [Accepted: 01/13/2014] [Indexed: 11/25/2022] Open
Affiliation(s)
- Maarten L Wijnants
- Behavioural Science Institute, Radboud University Nijmegen Nijmegen, Netherlands
| |
Collapse
|
12
|
Bosman AMT, Cox RCA, Hasselman F, Wijnants ML. From the Role of Context to the Measurement Problem: The Dutch Connection Pays Tribute to Guy Van Orden. ECOLOGICAL PSYCHOLOGY 2013. [DOI: 10.1080/10407413.2013.810091] [Citation(s) in RCA: 1] [Impact Index Per Article: 0.1] [Reference Citation Analysis] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Indexed: 10/26/2022]
|
13
|
Holden JG, Riley MA, Gao J, Torre K. Fractal analyses: statistical and methodological innovations and best practices. Front Physiol 2013; 4:97. [PMID: 23658545 PMCID: PMC3647382 DOI: 10.3389/fphys.2013.00097] [Citation(s) in RCA: 11] [Impact Index Per Article: 1.0] [Reference Citation Analysis] [Track Full Text] [Download PDF] [Journal Information] [Subscribe] [Scholar Register] [Received: 04/17/2013] [Accepted: 04/20/2013] [Indexed: 11/17/2022] Open
Affiliation(s)
- John G Holden
- Complexity Group, Department of Psychology, CAP center for Cognition, Action, and Perception, University of Cincinnati Cincinnati, OH, USA
| | | | | | | |
Collapse
|