{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,7]],"date-time":"2026-05-07T03:53:52Z","timestamp":1778126032114,"version":"3.51.4"},"reference-count":48,"publisher":"Frontiers Media SA","license":[{"start":{"date-parts":[[2025,8,5]],"date-time":"2025-08-05T00:00:00Z","timestamp":1754352000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["frontiersin.org"],"crossmark-restriction":true},"short-container-title":["Front. Artif. Intell."],"abstract":"<jats:p>This article presents Affinity, a visual analytics tool that enhances the simulation of the emergence of derived relations between stimuli in humans. Built on the foundations of a reinforcement learning model called Enhanced Equivalence Projective Simulation, Affinity provides both real-time visualizations of the agent's relational memory and enables the simulation of Relational Density Theory, a novel approach to understanding relational responding through the modeling of higher-order properties of density, volume, and mass. We demonstrate these features in a simulation of a recent study into the quantification of relational volume. We also use this as an opportunity to examine the effect of the underlying model's consolidation mechanism, Network Enhancement, on the agent's relational network. Our results highlight Affinity's innovation as an explainable modeling interface for relational formation and a testbed for new experiments. We discuss the limitations of Affinity in its current state, underline future work on the software and computational modeling of Stimulus Equivalence and locate this contribution in the broader scope of integrations of Contextual Behavioral Science and Artificial Intelligence.<\/jats:p>","DOI":"10.3389\/frai.2025.1618678","type":"journal-article","created":{"date-parts":[[2025,8,5]],"date-time":"2025-08-05T11:39:41Z","timestamp":1754393981000},"update-policy":"https:\/\/doi.org\/10.3389\/crossmark-policy","source":"Crossref","is-referenced-by-count":1,"title":["Elucidating simulated equivalence responding through dynamic visualization of structural connectivity and relational density"],"prefix":"10.3389","volume":"8","author":[{"given":"James","family":"O'Sullivan","sequence":"first","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Freddy","family":"Jackson Brown","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Oliver","family":"Ray","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1965","published-online":{"date-parts":[[2025,8,5]]},"reference":[{"key":"B1","doi-asserted-by":"crossref","first-page":"6","DOI":"10.1109\/SDS64317.2024.10883917","article-title":"\u201cA novel model for digital twins in mental health: the biopsychosocial AI-driven digital twin (BADT) framework,\u201d","volume-title":"2024 11th International Conference on Software Defined Systems (SDS)","author":"Alimour","year":"2024"},{"key":"B2","doi-asserted-by":"publisher","first-page":"79","DOI":"10.1007\/BF03395344","article-title":"Probability of stimulus equivalence as a function of class size vs. number of classes","volume":"50","author":"Arntzen","year":"2000","journal-title":"Psychol. Rec"},{"key":"B3","doi-asserted-by":"publisher","first-page":"118","DOI":"10.1016\/j.jcbs.2021.03.008","article-title":"Coherence and the merging of relational classes in self-organizing networks: extending relational density theory","volume":"20","author":"Belisle","year":"2021","journal-title":"J. Contextual Behav. Sci"},{"key":"B4","doi-asserted-by":"publisher","first-page":"80","DOI":"10.1016\/j.jcbs.2020.01.013","article-title":"An exploratory analysis of relational density theory: relational resistance and gravity","volume":"16","author":"Belisle","year":"","journal-title":"J. Contextual Behav. Sci"},{"key":"B5","doi-asserted-by":"publisher","first-page":"259","DOI":"10.1007\/s40614-020-00248-w","article-title":"Relational density theory: nonlinearity of equivalence relating examined through higher-order volumetric-mass-density","volume":"43","author":"Belisle","year":"","journal-title":"Perspect. Behav. Sci"},{"key":"B6","first-page":"57","article-title":"\u201cThe aesthetics of graph visualization,\u201d","volume-title":"CAe 581","author":"Bennett","year":"2007"},{"key":"B7","doi-asserted-by":"publisher","first-page":"400","DOI":"10.1038\/srep00400","article-title":"Projective simulation for artificial intelligence","volume":"2","author":"Briegel","year":"2012","journal-title":"Sci. Rep"},{"key":"B8","doi-asserted-by":"publisher","first-page":"289","DOI":"10.3390\/fi16080289","article-title":"Testing stimulus equivalence in transformer-based agents","volume":"16","author":"Carrillo","year":"2024","journal-title":"Future Internet"},{"key":"B9","doi-asserted-by":"publisher","first-page":"20190825","DOI":"10.1098\/rspa.2019.0825","article-title":"Contributions of modern network science to the cognitive sciences: revisiting research spirals of representation and process","volume":"476","author":"Castro","year":"2020","journal-title":"Proc. R. Soc. A"},{"key":"B10","doi-asserted-by":"publisher","first-page":"375","DOI":"10.1007\/s40732-023-00555-z","article-title":"The role of volume in relational density theory: isolating the effects of class size and nodal distance on density and resistance in equivalence classes","volume":"73","author":"Cotter","year":"2023","journal-title":"Psychol. Rec"},{"key":"B11","doi-asserted-by":"publisher","first-page":"461","DOI":"10.1901\/jaba.1992.25-461","article-title":"Using stimulus equivalence procedures to teach name-face matching to adults with brain injuries","volume":"25","author":"Cowley","year":"1992","journal-title":"J. Appl. Behav. Anal"},{"key":"B12","doi-asserted-by":"crossref","first-page":"402","DOI":"10.1145\/3580305.3599534","article-title":"\u201cTwin: personalized clinical trial digital twin generation,\u201d","volume-title":"Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining","author":"Das","year":"2023"},{"key":"B13","doi-asserted-by":"publisher","first-page":"83","DOI":"10.1007\/BF03395539","article-title":"Exploring the development and dismantling of equivalence classes involving terrorist stimuli","volume":"56","author":"Dixon","year":"2006","journal-title":"Psychol. Rec"},{"key":"B14","doi-asserted-by":"crossref","first-page":"241","DOI":"10.1007\/978-1-4842-3237-8_16","article-title":"\u201cThreads and timers,\u201d","volume-title":"wxPython Recipes: A Problem-Solution Approach","author":"Driscoll","year":"2018"},{"key":"B15","doi-asserted-by":"publisher","first-page":"1395901","DOI":"10.3389\/fncom.2024.1395901","article-title":"A functional contextual, observer-centric, quantum mechanical, and neuro-symbolic approach to solving the alignment problem of artificial general intelligence: safe AI through intersecting computational psychological neuroscience and LLM architecture for emergent theory of mind","volume":"18","author":"Edwards","year":"2024","journal-title":"Front. Comput. Neurosci"},{"key":"B16","doi-asserted-by":"publisher","first-page":"745306","DOI":"10.3389\/fpsyg.2022.745306","article-title":"A functional contextual account of background knowledge in categorization: implications for artificial general intelligence and cognitive accounts of general knowledge","volume":"13","author":"Edwards","year":"2022","journal-title":"Front. Psychol"},{"key":"B17","doi-asserted-by":"publisher","first-page":"143","DOI":"10.1901\/jeab.1984.42-143","article-title":"Stimulus equivalence and transitive associations: a methodological analysis","volume":"42","author":"Fields","year":"1984","journal-title":"J. Exp. Anal. Behav"},{"key":"B18","doi-asserted-by":"publisher","first-page":"183","DOI":"10.1080\/03057267.2011.605307","article-title":"Challenges with graph interpretation: a review of the literature","volume":"47","author":"Glazer","year":"2011","journal-title":"Stud. Sci. Educ"},{"key":"B19","doi-asserted-by":"publisher","first-page":"229","DOI":"10.1007\/978-1-4899-1947-2_8","article-title":"\u201cStimulus equivalence,\u201d","author":"Green","year":"1998","journal-title":"Handbook of Research Methods in Human Operant Behavior. Applied Clinical Psychology"},{"key":"B20","doi-asserted-by":"crossref","DOI":"10.25080\/TCWV9851","volume-title":"Exploring network structure, dynamics, and function using Networkx","author":"Hagberg","year":"2008"},{"key":"B21","volume-title":"Qt5 Python GUI Programming Cookbook: Building Responsive and Powerful Cross-platform Applications with PyQt","author":"Harwani","year":"2018"},{"key":"B22","doi-asserted-by":"publisher","DOI":"10.1007\/b108413","author":"Hayes","year":"2001","journal-title":"Relational Frame Theory: A Post-Skinnerian Account of Human Language and Cognition"},{"key":"B23","doi-asserted-by":"publisher","first-page":"2315","DOI":"10.1007\/s10586-016-0649-7","article-title":"A novel density-based clustering method using word embedding features for dialogue intention recognition","volume":"19","author":"Jang","year":"2016","journal-title":"Cluster Comput"},{"key":"B24","doi-asserted-by":"crossref","DOI":"10.1007\/978-3-030-27005-6_10","article-title":"\u201cArbitrarily applicable relational responding in NARS,\u201d","volume-title":"Artificial General Intelligence (AGI-2019)","author":"Johansson","year":"2019"},{"key":"B25","doi-asserted-by":"crossref","first-page":"158","DOI":"10.1007\/978-3-031-33469-6_16","article-title":"\u201cStimulus equivalence in NARS,\u201d","volume-title":"Artificial General Intelligence","author":"Johansson","year":"2023"},{"key":"B26","doi-asserted-by":"publisher","first-page":"2782","DOI":"10.1016\/j.neucom.2007.09.010","article-title":"Differences in prefrontal and motor structures learning dynamics depend on task complexity: a neural network model","volume":"71","author":"Lew","year":"2008","journal-title":"Neurocomputing"},{"key":"B27","doi-asserted-by":"publisher","first-page":"113","DOI":"10.3389\/fnhum.2011.00113","article-title":"A computational theory for the learning of equivalence relations","volume":"5","author":"Lew","year":"2011","journal-title":"Front. Hum. Neurosci"},{"key":"B28","doi-asserted-by":"publisher","first-page":"14430","DOI":"10.1038\/s41598-017-14740-y","article-title":"Projective simulation with generalization","volume":"7","author":"Melnikov","year":"2017","journal-title":"Sci. Rep"},{"key":"B29","doi-asserted-by":"publisher","first-page":"912","DOI":"10.1162\/neco_a_01274","article-title":"Equivalence projective simulation as a framework for modeling formation of stimulus equivalence classes","volume":"32","author":"Mofrad","year":"2020","journal-title":"Neural Comput"},{"key":"B30","doi-asserted-by":"publisher","first-page":"483","DOI":"10.1162\/neco_a_01346","article-title":"Enhanced equivalence projective simulation: a framework for modeling formation of stimulus equivalence classes","volume":"33","author":"Mofrad","year":"2021","journal-title":"Neural Comput"},{"key":"B31","doi-asserted-by":"publisher","first-page":"381","DOI":"10.3389\/fgene.2019.00381","article-title":"To embed or not: network embedding as a paradigm in computational biology","volume":"10","author":"Nelson","year":"2019","journal-title":"Front. Genet"},{"key":"B32","doi-asserted-by":"publisher","first-page":"877","DOI":"10.1901\/jaba.2011.44-877","article-title":"Behavioral momentum theory: equations and applications","volume":"44","author":"Nevin","year":"2011","journal-title":"J. Appl. Behav. Anal"},{"key":"B33","doi-asserted-by":"publisher","first-page":"121","DOI":"10.1007\/s40614-017-0125-6","article-title":"The emergence of stimulus relations: human and computer learning","volume":"41","author":"Ninness","year":"2018","journal-title":"Perspect. Behav. Sci"},{"key":"B34","doi-asserted-by":"publisher","first-page":"375","DOI":"10.1037\/pne0000143","article-title":"Stimulus equivalence and n400 in poststroke patients: an exploratory study","volume":"11","author":"Paranhos","year":"2018","journal-title":"Psychol. Neurosci"},{"key":"B35","doi-asserted-by":"publisher","first-page":"225","DOI":"10.1901\/jeab.1995.63-225","article-title":"Reversal of baseline relations and stimulus equivalence: I. adults","volume":"63","author":"Pilgrim","year":"1995","journal-title":"J. Exp. Anal. Behav"},{"key":"B36","unstructured":"PyQt: Python Bindings for the Qt Application Framework.\n          \n          2012"},{"key":"B37","doi-asserted-by":"publisher","first-page":"539","DOI":"10.1007\/BF03395526","article-title":"Equivalence class establishment with two-, three-, and four-choice matching to sample by senior citizens","volume":"55","author":"Saunders","year":"2005","journal-title":"Psychol. Rec"},{"key":"B38","doi-asserted-by":"publisher","first-page":"5","DOI":"10.1044\/jshr.1401.05","article-title":"Reading and auditory-visual equivalences","volume":"14","author":"Sidman","year":"1971","journal-title":"J. Speech Hear. Res"},{"key":"B39","doi-asserted-by":"publisher","first-page":"5","DOI":"10.1901\/jeab.1982.37-5","article-title":"Conditional discrimination vs. matching to sample: an expansion of the testing paradigm","volume":"37","author":"Sidman","year":"1982","journal-title":"J. Exp. Anal. Behav"},{"key":"B40","doi-asserted-by":"publisher","first-page":"643","DOI":"10.1901\/jeab.1996.65-643","article-title":"Speed analyses of stimulus equivalence","volume":"65","author":"Spencer","year":"1996","journal-title":"J. Exp. Anal. Behav"},{"key":"B41","doi-asserted-by":"publisher","first-page":"519","DOI":"10.1901\/jeab.1991.56-519","article-title":"Stimulus equivalence and arbitrarily applicable relational responding","volume":"56","author":"Steele","year":"1991","journal-title":"J. Exp. Anal. Behav"},{"key":"B42","first-page":"241","article-title":"\u201cIs backpropagation biologically plausible?\u201d","volume-title":"International 1989 Joint Conference on Neural Networks","year":"1989"},{"key":"B43","doi-asserted-by":"publisher","first-page":"189","DOI":"10.1037\/h0061626","article-title":"Cognitive maps in rats and men","volume":"55","author":"Tolman","year":"1948","journal-title":"Psychol. Rev"},{"key":"B44","doi-asserted-by":"publisher","first-page":"747","DOI":"10.1007\/BF03395833","article-title":"A connectionist model of stimulus class formation with a yes\/no procedure and compound stimuli","volume":"62","author":"Tovar","year":"2012","journal-title":"Psychol. Rec"},{"key":"B45","doi-asserted-by":"publisher","first-page":"407","DOI":"10.1002\/jeab.829","article-title":"Computational models of stimulus equivalence: an intersection for the study of symbolic behavior","volume":"119","author":"Tovar","year":"2023","journal-title":"J. Exp. Anal. Behav"},{"key":"B46","doi-asserted-by":"publisher","first-page":"3108","DOI":"10.1038\/s41467-018-05469-x","article-title":"Network enhancement as a general method to denoise weighted biological networks","volume":"9","author":"Wang","year":"2018","journal-title":"Nat. Commun"},{"key":"B47","volume-title":"Interactive Data Visualization: Foundations, Techniques, and Applications","author":"Ward","year":"2010"},{"key":"B48","doi-asserted-by":"publisher","first-page":"3021","DOI":"10.21105\/joss.03021","article-title":"Seaborn: statistical data visualization","volume":"6","author":"Waskom","year":"2021","journal-title":"J. Open Source Softw"}],"container-title":["Frontiers in Artificial Intelligence"],"original-title":[],"link":[{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/frai.2025.1618678\/full","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,8,5]],"date-time":"2025-08-05T11:39:43Z","timestamp":1754393983000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/frai.2025.1618678\/full"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,8,5]]},"references-count":48,"alternative-id":["10.3389\/frai.2025.1618678"],"URL":"https:\/\/doi.org\/10.3389\/frai.2025.1618678","relation":{},"ISSN":["2624-8212"],"issn-type":[{"value":"2624-8212","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,8,5]]},"article-number":"1618678"}}