OSCR

Defensive Strategies and Handling Paths in Intimate Relationship Conflicts: A Dynamic Game Model From the Perspective of Emotional Regulation.

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

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 · 98 lines · 3.1 KB · Apache-2.0

  1. """compare timings across 2 benchmarks."""
  2. import pickle
  3. import numpy as np
  4. import pandas as pd
  5. filename1 = "timings_1"
  6. filename2 = "timings_2"
  7. with open(f"{filename1}.pickle", "rb") as handle:
  8. timings_1 = pickle.load(handle) # noqa: S301
  9. with open(f"{filename2}.pickle", "rb") as handle:
  10. timings_2 = pickle.load(handle) # noqa: S301
  11. def bootstrap_percentage_change_confidence_interval(data1, data2, n=1000):
  12. """Calculate the percentage change and perform bootstrap to estimate the confidence interval.
  13. Args:
  14. data1: benchmark dataset 1
  15. data2: benchmark dataset 2
  16. n: bootstrap sample size
  17. Returns:
  18. float, mean, and lower and upper bound of confidence interval.
  19. """
  20. change_samples = []
  21. for _ in range(n):
  22. sampled_indices = np.random.choice(
  23. range(len(data1)), size=len(data1), replace=True
  24. )
  25. sampled_data1 = np.array(data1)[sampled_indices]
  26. sampled_data2 = np.array(data2)[sampled_indices]
  27. change = 100 * (sampled_data2 - sampled_data1) / sampled_data1
  28. change_samples.append(np.mean(change))
  29. lower, upper = np.percentile(change_samples, [2.5, 97.5])
  30. return np.mean(change_samples), lower, upper
  31. # DataFrame to store the results
  32. results_df = pd.DataFrame()
  33. def performance_emoji(lower, upper):
  34. """Function to determine the emoji based on change and confidence interval."""
  35. if upper < -3:
  36. return "🟢" # Emoji for faster performance
  37. elif lower > 3:
  38. return "🔴" # Emoji for slower performance
  39. else:
  40. return "🔵" # Emoji for insignificant change
  41. # Iterate over the models and sizes, perform analysis, and populate the DataFrame
  42. for model, size in timings_1:
  43. model_name = model.__name__
  44. # Calculate percentage change and confidence interval for init times
  45. (
  46. init_change,
  47. init_lower,
  48. init_upper,
  49. ) = bootstrap_percentage_change_confidence_interval(
  50. timings_1[(model, size)][0], timings_2[(model, size)][0]
  51. )
  52. init_emoji = performance_emoji(init_lower, init_upper)
  53. init_summary = (
  54. f"{init_emoji} {init_change:+.1f}% [{init_lower:+.1f}%, {init_upper:+.1f}%]"
  55. )
  56. # Calculate percentage change and confidence interval for run times
  57. run_change, run_lower, run_upper = bootstrap_percentage_change_confidence_interval(
  58. timings_1[(model, size)][1], timings_2[(model, size)][1]
  59. )
  60. run_emoji = performance_emoji(run_lower, run_upper)
  61. run_summary = (
  62. f"{run_emoji} {run_change:+.1f}% [{run_lower:+.1f}%, {run_upper:+.1f}%]"
  63. )
  64. # Append results to DataFrame
  65. row = pd.DataFrame(
  66. {
  67. "Model": [model_name],
  68. "Size": [size],
  69. "Init time [95% CI]": [init_summary],
  70. "Run time [95% CI]": [run_summary],
  71. }
  72. )
  73. results_df = pd.concat([results_df, row], ignore_index=True)
  74. # Convert DataFrame to markdown with specified alignments
  75. markdown_representation = results_df.to_markdown(index=False, tablefmt="github")
  76. # Display the markdown representation
  77. print(markdown_representation)

compare_timings.py at commit f85955b, under Apache-2.0 · at the source

Overview

Authors: Yiwen Liu1
ORCID iDs: Yiwen Liu
  1. The Education University of Hong Kong Hong Kong China
Institutions: Education University of Hong Kong (Hong Kong SAR China)
Journal: PsyCh journal, volume 15, issue 4, article e70103
Dates: received 22 April 2026; accepted 6 May 2026; published online 18 July 2026; in print August 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1002/pchj.70103 · PMID 42470233 · PMCID PMC13379787 · OpenAlex W7169681904
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: human (organism), cognitive (subfield)
Methods: Spectral & time-frequency, Machine learning, Connectivity, Preprocessing, Statistics, Physiology & signal measures, Smoothing, state filtering, decompositions
Keywords: conflict, defense strategy, dynamic game model, emotional regulation, intimate relationship, processing path
MeSH: Conflict, Psychological*, Emotional Regulation*, Game Theory*, Interpersonal Relations*, Adult, Female, Humans, Male, Models, Psychological (* major topic)
Topic: Attachment and Relationship Dynamics (Social Psychology, Psychology), according to OpenAlex
Citations: not cited yet (Europe PMC); 36 references in the paper

Abstract

This study develops a dynamic game model of intimate relationship conflicts that incorporates emotion regulation mechanisms, translating cognitive reappraisal and expressive suppression into strategic parameters. The model simulates the dynamic evolution of defensive strategies and intervention paths, capturing the continuous interplay between emotional states and conflict behavior choices in realistic relational contexts. Using longitudinal tracking data from 320 couples and agent‐based simulations, we validate the core mechanisms and demonstrate that flexibility in emotion regulation significantly reduces conflict intensity and shortens conflict cycles. When one partner's emotion regulation capacity is limited, power asymmetry intensifies defensive rigidity, highlighting the combined influence of neural coordination, relational fluidity, and micro‐level cultural practices on conflict dynamics. By operationalizing emotion regulation as a computable variable within a formalized game‐theoretic framework, this research bridges theoretical constructs and observable behavior, revealing how neural synchrony and relational context shape the selection and effectiveness of defensive strategies. The findings offer both theoretical and practical contributions: theoretically, the study provides a more integrated understanding of intimate relationship conflicts, emphasizing the joint roles of emotional, relational, and cultural factors in conflict evolution; practically, the model equips clinicians and family intervention practitioners with a structured, quantifiable tool for diagnosing conflict patterns and designing evidence‐based strategies to reduce destructive behaviors and foster cooperative problem‐solving. Overall, this study presents a concise yet comprehensive framework that advances both the conceptualization and empirical analysis of intimate relationship conflicts, offering actionable insights for intervention while highlighting the importance of integrating emotional, neural, and cultural dimensions in research and practice.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above.

projectmesa/mesa

License: Apache-2.0
State: the link answers, verified on 26 September 2026
Evidence: files inventoried
Commit: f85955b7ecc3a6d79d8bfaec2d0b406d85c8f0a6, 23 September 2026
Languages: Python (151), Jupyter (13), Shell (1)
Size: 245 files, 165 scripts
Software Heritage: archived
Found in: “Data Availability Statement”
Holds: README, license file, CITATION.cff, environment (pyproject.toml, binder/environment.yml), tests, continuous integration, documentation, 13 notebooks
Tools: NumPy (49 files), pandas (29 files), Matplotlib (14 files), NetworkX (10 files), seaborn (10 files), SciPy (5 files), Pillow (2 files)
Availability: 1 check, the latest on 26 September 2026: the link answers
  • 26 September 2026: the link answers
167 files

The paper's code and data availability statement is in the Data section.

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;
  • 165 scripts, each with its path and the digest of its content;
  • no match between paragraphs and code yet;
  • 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 Statement

To enhance transparency and reproducibility, the simulation procedure used in this study follows standard agent‐based modeling practices. Representative implementations of agent‐based simulation frameworks are publicly available in the Mesa open‐source repository (https://github.com/projectmesa/mesa), which provides a Python environment for constructing and analyzing agent‐based models of complex social interactions. The analytical procedures described in this study can be reproduced using this framework together with the parameter settings and experimental design reported in the manuscript.

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 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 1 author, 6 keywords, 9 MeSH terms, 35 references.

Cite

This paper

Liu, Y. (2026). Defensive Strategies and Handling Paths in Intimate Relationship Conflicts: A Dynamic Game Model From the Perspective of Emotional Regulation. PsyCh journal, 15(4), e70103. https://doi.org/10.1002/pchj.70103

BibTeX

@article{liu2026defensive,
author = {Liu, Yiwen},
title = {{Defensive Strategies and Handling Paths in Intimate Relationship Conflicts: A Dynamic Game Model From the Perspective of Emotional Regulation}},
journal = {PsyCh journal},
year = {2026},
month = aug,
volume = {15},
number = {4},
pages = {e70103},
publisher = {Wiley},
issn = {2046-0252},
doi = {10.1002/pchj.70103},
url = {https://doi.org/10.1002/pchj.70103},
pmid = {42470233},
pmcid = {PMC13379787}
}

RIS

TY - JOUR
AU - Liu, Yiwen
TI - Defensive Strategies and Handling Paths in Intimate Relationship Conflicts: A Dynamic Game Model From the Perspective of Emotional Regulation
T2 - PsyCh journal
J2 - Psych J
PY - 2026
DA - 2026/08/01
VL - 15
IS - 4
SP - e70103
SN - 2046-0252
PB - Wiley
DO - 10.1002/pchj.70103
UR - https://doi.org/10.1002/pchj.70103
LA - en
ER -

CSL-JSON

{
"id": "10.1002/pchj.70103",
"type": "article-journal",
"title": "Defensive Strategies and Handling Paths in Intimate Relationship Conflicts: A Dynamic Game Model From the Perspective of Emotional Regulation",
"container-title": "PsyCh journal",
"author": [
{
"family": "Liu",
"given": "Yiwen"
}
],
"container-title-short": "Psych J",
"volume": "15",
"issue": "4",
"page": "e70103",
"DOI": "10.1002/pchj.70103",
"PMID": "42470233",
"PMCID": "PMC13379787",
"ISSN": "2046-0252",
"publisher": "Wiley",
"URL": "https://doi.org/10.1002/pchj.70103",
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
1
]
]
}
}

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/s41467-026-74358-5 [code]
Brain-inspired spatial intelligence for embodied agents.
Journal: Nature communications
In common: NetworkX, Pillow, seaborn, 4 other tools, cognitive
[2] doi:10.1126/sciadv.aef6263 [code]
Deep learning-enabled versatile shape perception for soft robots via single-ended multimode fiber.
Journal: Science advances
In common: NetworkX, Pillow, seaborn, 4 other tools, cognitive
[3] doi:10.7554/elife.110588 [code]
Opening the black box toward a modular approach to spike sorting.
Journal: eLife
In common: NetworkX, Pillow, seaborn, 4 other tools
[4] doi:10.1038/s42003-026-10957-8 [code]
Brain defence by the extracellular matrix protein Cochlin.
Journal: Communications biology
In common: NetworkX, Pillow, seaborn, 4 other tools
[5] doi:10.3390/ijms27167275 [code]
Integrative Multi-Omics Analysis of Multiple Sclerosis Reveals Cell-Type-Specific Regulatory Landscapes and Discordant Methylation-Expression Coupling.
Journal: International journal of molecular sciences
In common: NetworkX, Pillow, seaborn, 4 other tools
[6] 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 biology
In common: NetworkX, Pillow, seaborn, 4 other tools
[7] doi:10.1371/journal.pcbi.1014555 [code]
Body surface potential driven personalisation of electrophysiological digital twins in hypertrophic cardiomyopathy.
Journal: PLoS computational biology
In common: NetworkX, Pillow, seaborn, 4 other tools
[8] doi:10.1038/s41467-026-74357-6 [code]
Hippocampo-neocortical interaction as compressive retrieval-augmented generation.
Journal: Nature communications
In common: NetworkX, Pillow, seaborn, 4 other tools
[9] doi:10.1162/imag.a.1278 [code]
Young and old adult brains experience opposite effects of acute sleep restriction on the functional connectivity network.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: NetworkX, Pillow, seaborn, 4 other tools
[10] doi:10.1162/imag.a.1276 [code]
High-resolution whole-brain magnetic resonance spectroscopic imaging in youth at risk for psychosis.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: NetworkX, Pillow, 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.

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: 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.