Modeling intraindividual variability in affect (MIVA): Formalized theoretical approach, computational model, and parameter recovery study.
The 5 matches · 3 of them tie a paragraph to a whole file, not to 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
- [2] § Simulation study › Performance validation ↔ evaluation_clean.ipynb, lines 72–113 · score 0.73 · positive reactivity, negative reactivity, positive regulation, negative regulation, inference, anchoring
- [3] § Simulation study › Performance validation ↔ evaluation_noisy.ipynb, lines 75–116 · score 0.73 · positive reactivity, negative reactivity, positive regulation, negative regulation, inference, anchoring
- [4] § Simulation study ↔ training.py, the whole file · a weak match · score 0.59 · summary network, inference network, embed, trained, event, Simulation
- [5] § Simulation study › Performance validation › Correlation ↔ correlation.py, the whole file · a weak match · score 0.56 · ground truths, posterior samples, inferred, correlation
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: 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.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
- [2] doi:10.1038/s42003-026-10957-8 [code]
- Brain defence by the extracellular matrix protein Cochlin.Journal: Communications biologyIn common: Keras, Numba, seaborn, 4 other tools
- [3] doi:10.1371/journal.pcbi.1014571 [code]
- SynAPSeg: A novel dataset and image analysis framework for deep learning-based synapse detection and quantification.Journal: PLoS computational biologyIn common: Keras, Numba, seaborn, 4 other tools
- [4] doi:10.1093/nar/gkag706 [code]
- scDifformer: diffusion-based post-training for virtual cell modeling across large-scale single-cell data.Journal: Nucleic acids researchIn common: Keras, Numba, seaborn, 4 other tools
- [5] doi:10.1016/j.xcrm.2026.102766 [code]
- A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.Journal: Cell reports. MedicineIn common: Keras, Numba, seaborn, 4 other tools
- [6] doi:10.1038/s44320-026-00208-7 [code]
- Interpretable deep generative ensemble learning for single-cell omics with Hydra.Journal: Molecular systems biologyIn common: Keras, Numba, seaborn, 4 other tools
- [7] doi:10.1038/s41592-026-03057-2 [code]
- CREsted: modeling genomic and synthetic cell-type-specific enhancers across tissues and species.Journal: Nature methodsIn common: Keras, Numba, seaborn, 4 other tools
- [8] doi:10.1038/s41467-026-74565-0 [code]
- The functional neurobiology of dispositions towards negative emotions.Journal: Nature communicationsIn common: Numba, pandas, Matplotlib, 1 other tool, 2 references
- [9] doi: [code]
- Real-time closed-loop feedback system for mouse mesoscale cortical signal and movement controlJournal: eLifeIn common: Keras, Numba, seaborn, 4 other tools
- [10] doi:10.1523/eneuro.0023-26.2026 [code]
- Real-Time Segmentation and Classification of Birdsong Syllables for Learning Experiments.Journal: eNeuroIn common: Keras, Numba, seaborn, 4 other tools
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:88a129fbd066cfbb…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[.
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
