Modeling intraindividual variability in affect (MIVA): Formalized theoretical approach, computational model, and parameter recovery study.
2 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 5 matches · 3 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [1] § Simulation study › Network architectures and simulation-based training ↔ training.py, the whole file · a weak match · score 0.74 · summary network, inference network, epoch, online, training, transformer · block
oscr:b:KCQ7VPD9PJCE0-4· Report a mismatch - [2] § Simulation study › Performance validation ↔ evaluation_clean.ipynb, lines 72 to 113 · score 0.73 · positive reactivity, negative reactivity, positive regulation, negative regulation, inference, anchoring · Report a mismatch
- [3] § Simulation study › Performance validation ↔ evaluation_noisy.ipynb, lines 75 to 116 · score 0.73 · positive reactivity, negative reactivity, positive regulation, negative regulation, inference, anchoring · Report a mismatch
- [4] § Simulation study ↔ training.py, the whole file · a weak match · score 0.59 · summary network, inference network, embed, trained, event, Simulation · block
oscr:b:KCQ7VPD9PJCE0-4· Report a mismatch - [5] § Simulation study › Performance validation › Correlation ↔ correlation.py, the whole file · a weak match · score 0.56 · ground truths, posterior samples, inferred, correlation · block
oscr:b:MVDBAXY00PQ6W-Q· Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 73 lines · 2.3 KB · no license · 2 matches
- import os
- os.environ["KERAS_BACKEND"] = "tensorflow"
- import bayesflow as bf
- import keras
- from miva import prior, prior_noisy, likelihood, underreport_both, design
- train_config = {
- "epochs": 500,
- "num_batches_per_epoch": 200,
- "batch_size": 32
- }
- setups = ["clean"]
- models = {
- "scm": (bf.networks.StableConsistencyModel, {})
- }
- for setup in setups:
- for model_name, model in models.items():
- if setup == "noisy":
- simulator = bf.make_simulator([prior_noisy, likelihood, underreport_both], meta_fn=design)
- adapter = (
- bf.Adapter()
- .convert_dtype("float64", "float32")
- .broadcast(["M", "D"], to="data", exclude=(1, 2), squeeze=1)
- .sqrt(["M", "D"])
- .concatenate(["b", "rp", "rn", "dp", "dn", "s", "affect_prob", "event_prob"], into="inference_variables")
- .rename("data_underreported_both", "summary_variables")
- .concatenate(["M", "D"], into="inference_conditions")
- )
- else:
- simulator = bf.make_simulator([prior, likelihood], meta_fn=design)
- adapter = (
- bf.Adapter()
- .convert_dtype("float64", "float32")
- .broadcast(["M", "D"], to="data", exclude=(1, 2), squeeze=1)
- .sqrt(["M", "D"])
- .concatenate(["b", "rp", "rn", "dp", "dn", "s"], into="inference_variables")
- .rename("data", "summary_variables")
- .concatenate(["M", "D"], into="inference_conditions")
- )
- workflow = bf.BasicWorkflow(
- simulator=simulator,
- adapter=adapter,
- inference_network=model[0](**model[1]),
- summary_network = bf.networks.FusionTransformer(
- summary_dim=64,
- embed_dims=(64,64,64),
- num_heads=(4,4,4),
- mlp_depths=(1,1,1),
- mlp_widths=(128,128,128),
- dropout=0.0,
- template_dim=128
- ),
- checkpoint_filepath=f"{model_name}_{setup}_fusion3",
- initial_learning_rate=1e-4,
- standardize="inference_variables"
- )
- history = workflow.fit_online(**train_config)
- keras.backend.clear_session()
training.py, no license · at the source
Overview
- Department of Psychology, Friedrich Schiller University Jena, Am Steiger 3/1, 07743 Jena, Germany
- Department of Psychology, Heidelberg University, Heidelberg, Germany
- Department of Cognitive Science and Center for Modeling, Simulation, and Imaging in Medicine, Rensselaer Polytechnic Institute, Troy, NY USA
Abstract
No matter how angry, sad, or happy we are, eventually, we will feel different. Studying this ebb and flow of affective experience in daily life provides important insights into psychological functioning and well-being. We have developed a parsimonious formalized model of intraindividual variability in affect (MIVA), resting on the assumption that such affective changes reflect transactions between an individual and their proximal environment. We provide an outline of its theoretical background, scope, and mathematical formulation. We situate MIVA within the research field of affect dynamics and illustrate the models’ behavior under realistic conditions using a simulation study. We use simulation-based inference to train a custom neural network on MIVA simulations, which we employ to rapidly estimate the model’s parameters on a multitude of synthetic experiments with different configurations. Our simulation study demonstrates that the synthesis between a computational model and probabilistic neural networks results in an efficient and flexible tool for model-based inference of affect dynamics. Our simulation study also offers insights into the data requirements for a precise recovery of the model’s parameters and recommendations for future data collection. The potential of MIVA for providing insights into affect dynamics is discussed.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 5 matches between paragraphs and lines of code.
OSF spxf8
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
5 files
- correlation.py, Python, 105 lines, 1 match
- evaluation_clean.ipynb, Jupyter, 216 lines, 1 match
- evaluation_noisy.ipynb, Jupyter, 216 lines, 1 match
- miva.py, Python, 226 lines
- training.py, Python, 73 lines, 2 matches
Code availability
Scripts included in this manuscript are available at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 5 scripts, each with its path and the digest of its content;
- 5 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data availability
Data included in this manuscript are available at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 2, 28 September 2026
- Publisher: n/a → Springer Science+Business Media
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 6 keywords, 6 MeSH terms, 134 references.
Cite
This paper
Wirth, M., Voss, A., Radev, S. T., & Rothermund, K. (2026). Modeling intraindividual variability in affect (MIVA): Formalized theoretical approach, computational model, and parameter recovery study. Behavior research methods, 58(9), 242. https://
BibTeX
@article{wirth2026modeli
author = {Wirth, Maria and Voss, Andreas and Radev, Stefan T and Rothermund, Klaus},
title = {{Modeling intraindividual variability in affect (MIVA): Formalized theoretical approach, computational model, and parameter recovery study}},
journal = {Behavior research methods},
year = {2026},
month = jul,
volume = {58},
number = {9},
pages = {242},
publisher = {Springer Science+Business Media},
issn = {1554-351X},
doi = {10.3758/
url = {https://
pmid = {42477244},
pmcid = {PMC13384981}
}
RIS
TY - JOUR
AU - Wirth, Maria
AU - Voss, Andreas
AU - Radev, Stefan T
AU - Rothermund, Klaus
TI - Modeling intraindividual variability in affect (MIVA): Formalized theoretical approach, computational model, and parameter recovery study
T2 - Behavior research methods
J2 - Behav Res Methods
PY - 2026
DA - 2026/
VL - 58
IS - 9
SP - 242
SN - 1554-351X
PB - Springer Science+Business Media
DO - 10.3758/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.3758/
"type": "article-journal",
"title": "Modeling intraindividual variability in affect (MIVA): Formalized theoretical approach, computational model, and parameter recovery study",
"container-title": "Behavior research methods",
"author": [
{
"family": "Wirth",
"given": "Maria"
},
{
"family": "Voss",
"given": "Andreas"
},
{
"family": "Radev",
"given": "Stefan T"
},
{
"family": "Rothermund",
"given": "Klaus"
}
],
"container-title-short":
"volume": "58",
"issue": "9",
"page": "242",
"DOI": "10.3758/
"PMID": "42477244",
"PMCID": "PMC13384981",
"ISSN": "1554-351X",
"publisher": "Springer Science+Business Media",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
20
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1038/s41598-023-40278-3 [code]
- Neural superstatistics for Bayesian estimation of dynamic cognitive models.Journal: Scientific reportsIn common: Numba, Keras, seaborn, 4 other tools, 4 references
- [2] doi:10.1038/s41467-025-61706-0 [code]
- A neurofunctional signature of affective arousal generalizes across valence domains and distinguishes subjective experience from autonomic reactivity.Journal: Nature communicationsIn common: Numba, pandas, Matplotlib, 1 other tool, 4 references
- [3] doi:10.1007/s42113-025-00248-6 [code]
- Lévy Versus Wiener: Assessing the Effects of Model Misspecification on Diffusion Model Parameters.Journal: Computational brain & behaviorIn common: Numba, Keras, seaborn, 3 other tools, computational, computational modeling (no new data), 2 references
- [4] doi:10.1371/journal.pcbi.1014364 [code]
- A comparative study of simulation-based inference methods for epidemic models with identifiability considerations.Journal: PLoS computational biologyIn common: Numba, pandas, SciPy, 2 other tools, computational, computational modeling (no new data), 2 references
- [5] doi:10.1098/rsif.2024.0880 [code]
- Dynamic causal modelling in probabilistic programming languages.Journal: Journal of the Royal Society, InterfaceIn common: Numba, seaborn, pandas, 3 other tools, computational, 2 references
- [6] doi:10.7554/elife.64812 [code]
- Decoding subjective emotional arousal from EEG during an immersive virtual reality experience.Journal: eLifeIn common: Keras, seaborn, pandas, 3 other tools, 2 references
- [7] doi:10.1371/journal.pcbi.1012184 [code]
- Missing data in amortized simulation-based neural posterior estimation.Journal: PLoS computational biologyIn common: Keras, seaborn, pandas, 3 other tools, computational, computational modeling (no new data), 1 reference
- [8] doi:10.7554/elife.77220 [code]
- Flexible and efficient simulation-based inference for models of decision-making.Journal: eLifeIn common: Keras, pandas, SciPy, 2 other tools, computational modeling (no new data), 2 references
- [9] doi:10.1016/j.cub.2025.09.053 [code]
- Behavioral and circuit principles of temperature gradient navigation.Journal: Current biology : CBIn common: Numba, Keras, seaborn, 4 other tools, 1 reference
- [10] doi:10.1111/psyp.14696 [code]
- Linking brain-heart interactions to emotional arousal in immersive virtual reality.Journal: PsychophysiologyIn common: pandas, SciPy, Matplotlib, 1 other tool, 3 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 5 scripts, and 5 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:22a23e9bb2fc6311…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.3758/s13428-026-03122-w)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.3758/s13428-026-03122-w.svg
:target: https://openscicode.org/badge/doi/10.3758/s13428-026-03122-w
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.3758/s13428-026-03122-w"><img src="https://openscicode.org/badge/doi/10.3758/s13428-026-03122-w.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
