| Literature DB >> 34561819 |
Tim Loossens1, Kristof Meers2, Niels Vanhasbroeck2, Nil Anarat2, Stijn Verdonck2, Francis Tuerlinckx2.
Abstract
Computational modeling plays an important role in a gamut of research fields. In affect research, continuous-time stochastic models are becoming increasingly popular. Recently, a non-linear, continuous-time, stochastic model has been introduced for affect dynamics, called the Affective Ising Model (AIM). The drawback of non-linear models like the AIM is that they generally come with serious computational challenges for parameter estimation and related statistical analyses. The likelihood function of the AIM does not have a closed form expression. Consequently, simulation based or numerical methods have to be considered in order to evaluate the likelihood function. Additionally, the likelihood function can have multiple local minima. Consequently, a global optimization heuristic is required and such heuristics generally require a large number of likelihood function evaluations. In this paper, a Julia software package is introduced that is dedicated to fitting the AIM. The package includes an implementation of a numeric algorithm for fast computations of the likelihood function, which can be run both on graphics processing units (GPU) and central processing units (CPU). The numerical method introduced in this paper is compared to the more traditional Euler-Maruyama method for solving stochastic differential equations. Furthermore, the estimation software is tested by means of a recovery study and estimation times are reported for benchmarks that were run on several computing devices (two different GPUs and three different CPUs). According to these results, a single parameter estimation can be obtained in less than thirty seconds using a mainstream NVIDIA GPU.Entities:
Keywords: Affect dynamics; Affective Ising Model; CPU; Euler-Maruyama; GPU; Metropolis-Hastings; Non-linear diffusion models
Mesh:
Year: 2021 PMID: 34561819 PMCID: PMC9170664 DOI: 10.3758/s13428-021-01674-7
Source DB: PubMed Journal: Behav Res Methods ISSN: 1554-351X
Fig. 1Illustration of ESM data a A time series of PA (light grey) and NA (dark grey) ratings. This is an extract from the data discussed by Heininga et al., (2019). b A scatter plot of the data from panel (a). c The same scatter plot as in panel (b), but combined with a fit of the AIM. The contour depicts the altitude lines of the equilibrium distribution of the AIM fit
Some CPU specifications
| Frequency | |||||
|---|---|---|---|---|---|
| CPU | Launch year | Cores | Base | Turbo | Vector extensions |
| (GHz) | (GHz) | ||||
| i7-7600U | 2017 | 2 | 2.80 | 3.90 | AVX2 |
| i7-9850H | 2019 | 6 | 2.60 | 4.60 | AVX2 |
| i7-7800X | 2017 | 6 | 3.50 | 4.00 | AVX-512 |
Some CPU specifications
| Frequency | |||||
|---|---|---|---|---|---|
| GPU | Launch year | Memory | Base | Turbo | FP32 performance |
| (GB) | (GHz) | (GHz) | (TFLOPS) | ||
| T2000 | 2019 | 4 | 1.575 | 1.785 | 3.656 |
| RTX 2080 Ti | 2018 | 11 | 1.350 | 1.545 | 13.45 |
Fig. 2Comparison between the Euler-Maruyama method and the Metropolis-Hastings method The median L2-difference between the conditional probability densities obtained with the Euler-Maruyama method and those obtained with the Metropolis-Hastings method in function of the grid size. The different lines correspond to different time intervals (such that for larger time intervals, the conditional distribution lies closer to the equilibrium distribution)
Fig. 3Results of the recovery study. The recovered parameters depicted in function of the true parameters. If the parameter was recovered correctly, the point lies on the main diagonal (depicted in red). Lighter dots correspond to simulated data sets which have the same sample size as the original data sets. Darker dots correspond to data sets with 100 times more data points than the original data sets
Fig. 4Benchmarks The average time per estimation is indicated in red and the median time per estimation is indicated in grey. The grey lines denote the 95% range of the estimation times