{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,10]],"date-time":"2026-05-10T07:15:54Z","timestamp":1778397354112,"version":"3.51.4"},"reference-count":39,"publisher":"Frontiers Media SA","license":[{"start":{"date-parts":[[2025,7,2]],"date-time":"2025-07-02T00:00:00Z","timestamp":1751414400000},"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. Comput. Neurosci."],"abstract":"<jats:p>Mind-wandering reflects a dynamic interplay between focused attention and off-task mental states. Despite its relevance in understanding fundamental cognitive processes, such as attention regulation, decision-making, and creativity, previous models have not yet provided an account of the neural mechanisms for autonomous shifts between focus state (FS) and mind-wandering (MW). To address this, we conduct model simulation experiments employing predictive coding as a theoretical framework of perception to investigate possible neural mechanisms underlying these autonomous shifts between the two states. In particular, we modeled perception processes of continuous sensory sequences using our previously proposed variational RNN model under free energy minimization. The current study extends this model by introducing an online adaptation mechanism of a meta-level parameter, referred to as the meta-prior <jats:bold>w<\/jats:bold>, which regulates the complexity term in the free energy minimization. Our simulation experiments demonstrated that autonomous shifts between FS and MW take place when <jats:bold>w<\/jats:bold> switches between low and high values responding to a decrease and increase of the average reconstruction error over a past time window. Particularly, high <jats:bold>w<\/jats:bold> prioritized top-down predictions while low <jats:bold>w<\/jats:bold> emphasized bottom-up sensations. In this work, we speculate that self-awareness of MW may occur when the error signal accumulated over time exceeds a certain threshold. Finally, this paper explores how our experiment results align with existing studies and highlights their potential for future research.<\/jats:p>","DOI":"10.3389\/fncom.2025.1578135","type":"journal-article","created":{"date-parts":[[2025,7,2]],"date-time":"2025-07-02T05:52:30Z","timestamp":1751435550000},"update-policy":"https:\/\/doi.org\/10.3389\/crossmark-policy","source":"Crossref","is-referenced-by-count":2,"title":["Modeling autonomous shifts between focus state and mind-wandering using a predictive-coding-inspired variational recurrent neural network"],"prefix":"10.3389","volume":"19","author":[{"given":"Henrique","family":"Oyama","sequence":"first","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Takazumi","family":"Matsumoto","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Jun","family":"Tani","sequence":"additional","affiliation":[],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1965","published-online":{"date-parts":[[2025,7,2]]},"reference":[{"key":"B1","doi-asserted-by":"publisher","first-page":"2025","DOI":"10.1162\/neco_a_01228","article-title":"A novel predictive-coding-inspired variational rnn model for online prediction and recognition","volume":"31","author":"Ahmadi","year":"2019","journal-title":"Neural Comput"},{"key":"B2","doi-asserted-by":"publisher","first-page":"3207","DOI":"10.3389\/fpsyg.2020.584869","article-title":"A hybrid human-neurorobotics approach to primary intersubjectivity via active inference","volume":"11","author":"Chame","year":"2020","journal-title":"Front. Psychol"},{"key":"B3","doi-asserted-by":"publisher","first-page":"718","DOI":"10.1038\/nrn.2016.113","article-title":"Mind-wandering as spontaneous thought: a dynamic framework","volume":"17","author":"Christoff","year":"2016","journal-title":"Nat. Rev. Neurosci"},{"key":"B4","doi-asserted-by":"publisher","DOI":"10.1093\/acprof:oso\/9780190217013.001.0001","author":"Clark","year":"2015","journal-title":"Surfing Uncertainty: Prediction, Action, and the Embodied Mind"},{"key":"B5","doi-asserted-by":"publisher","first-page":"4564","DOI":"10.1002\/hbm.24721","article-title":"Dynamic brain network configurations during rest and an attention task with frequent occurrence of mind wandering","volume":"40","author":"Denkova","year":"2019","journal-title":"Hum. Brain Mapp"},{"key":"B6","doi-asserted-by":"publisher","first-page":"815","DOI":"10.1098\/rstb.2005.1622","article-title":"A theory of cortical responses","volume":"360","author":"Friston","year":"2005","journal-title":"Philosop. Trans. R. Soc. B"},{"key":"B7","doi-asserted-by":"publisher","first-page":"127","DOI":"10.1038\/nrn2787","article-title":"The free-energy principle: a unified brain theory?","volume":"11","author":"Friston","year":"2010","journal-title":"Nat. Rev. Neurosci"},{"key":"B8","doi-asserted-by":"publisher","first-page":"137","DOI":"10.1007\/s00422-011-0424-z","article-title":"Action understanding and active inference","volume":"104","author":"Friston","year":"2011","journal-title":"Biol. Cybern"},{"key":"B9","doi-asserted-by":"publisher","first-page":"20130481","DOI":"10.1098\/rstb.2013.0481","article-title":"The anatomy of choice: dopamine and decision-making","volume":"369","author":"Friston","year":"2014","journal-title":"Philosop. Trans. R. Soc. B"},{"key":"B10","doi-asserted-by":"publisher","first-page":"227","DOI":"10.1007\/s00422-010-0364-z","article-title":"Action and behavior: a free-energy formulation","volume":"102","author":"Friston","year":"2010","journal-title":"Biol. Cybern"},{"key":"B11","doi-asserted-by":"publisher","first-page":"140","DOI":"10.1016\/j.neuropsychologia.2017.07.006","article-title":"Functional connectivity within and between intrinsic brain networks correlates with trait mind wandering","volume":"103","author":"Godwin","year":"2017","journal-title":"Neuropsychologia"},{"key":"B12","doi-asserted-by":"publisher","first-page":"e0147174","DOI":"10.1371\/journal.pone.0147174","article-title":"Fluctuating minds: spontaneous psychophysical variability during mind-wandering","volume":"11","author":"Henr\u00edquez","year":"2016","journal-title":"PLoS ONE"},{"key":"B13","doi-asserted-by":"publisher","DOI":"10.31234\/osf.io\/stxu6","article-title":"Awareness of being: a computational neurophenomenological model of mindfulness, mind-wandering, and meta-attentional control","author":"Idei","year":"2024","journal-title":"PsyArXiv"},{"key":"B14","article-title":"Adam: a method for stochastic optimization","author":"Kingma","year":"2014","journal-title":"arXiv preprint arXiv:1412.6980"},{"key":"B15","article-title":"Auto-encoding variational bayes","author":"Kingma","year":"2014","journal-title":"arXiv:1312.6114"},{"key":"B16","doi-asserted-by":"publisher","first-page":"393","DOI":"10.1126\/science.1131295","article-title":"Wandering minds: the default network and stimulus-independent thought","volume":"315","author":"Mason","year":"2007","journal-title":"Science"},{"key":"B17","doi-asserted-by":"publisher","first-page":"61","DOI":"10.3389\/fnbot.2020.00061","article-title":"Investigation of the sense of agency in social cognition, based on frameworks of predictive coding and active inference: a simulation study on multimodal imitative interaction","volume":"14","author":"Ohata","year":"2020","journal-title":"Front. Neurorobot"},{"key":"B18","doi-asserted-by":"publisher","DOI":"10.1145\/3605655.3605672","article-title":"\u201cIntentional mind wandering is objectively linked to low effort and tasks with high predictability,\u201d","author":"Peral-Fuster","year":"2023","journal-title":"Proceedings of the European Conference on Cognitive Ergonomics"},{"key":"B19","doi-asserted-by":"publisher","first-page":"79","DOI":"10.1038\/4580","article-title":"Predictive coding in the visual cortex: a functional interpretation of some extra-classical receptive-field effects","volume":"2","author":"Rao","year":"1999","journal-title":"Nat. Neurosci"},{"key":"B20","doi-asserted-by":"publisher","first-page":"104078","DOI":"10.1016\/j.cognition.2019.104078","article-title":"A multi-faceted approach to understanding individual differences in mind-wandering","volume":"198","author":"Robison","year":"2020","journal-title":"Cognition"},{"key":"B21","doi-asserted-by":"publisher","DOI":"10.21236\/ADA164453","author":"Rumelhart","year":"1985","journal-title":"Learning internal representations by error propagation"},{"key":"B22","doi-asserted-by":"publisher","first-page":"niab018","DOI":"10.1093\/nc\/niab018","article-title":"Towards a computational phenomenology of mental action: modelling meta-awareness and attentional control with deep parametric active inference","volume":"2021","author":"Sandved-Smith","year":"2021","journal-title":"Neurosci. Consc"},{"key":"B23","doi-asserted-by":"publisher","DOI":"10.1109\/ICDL-EpiRob48136.2020.9278106","article-title":"\u201cTracking emotions: intrinsic motivation grounded on multi-level prediction error dynamics,\u201d","author":"Schillaci","year":"2020","journal-title":"10th Joint IEEE ICDL-EPIROB"},{"key":"B24","doi-asserted-by":"publisher","first-page":"255","DOI":"10.1016\/j.concog.2018.08.005","article-title":"The role of task difficulty in theoretical accounts of mind wandering","volume":"65","author":"Seli","year":"2018","journal-title":"Conscious. Cogn"},{"key":"B25","doi-asserted-by":"publisher","first-page":"605","DOI":"10.1016\/j.tics.2016.05.010","article-title":"Mind-wandering with and without intention","volume":"20","author":"Seli","year":"2016","journal-title":"Trends Cogn. Sci"},{"key":"B26","doi-asserted-by":"publisher","first-page":"8677","DOI":"10.1038\/s41598-025-92561-0","article-title":"Extending homeostasis to thought dynamics for a comprehensive explanation of mind-wandering","volume":"15","author":"Shinagawa","year":"2025","journal-title":"Sci. Rep"},{"key":"B27","doi-asserted-by":"publisher","first-page":"441","DOI":"10.3389\/fpsyg.2013.00441","article-title":"Not all minds that wander are lost: the importance of a balanced perspective on the mind-wandering state","volume":"4","author":"Smallwood","year":"2013","journal-title":"Front. Psychol"},{"key":"B28","doi-asserted-by":"publisher","first-page":"458","DOI":"10.1162\/jocn.2008.20037","article-title":"Going awol in the brain: Mind wandering reduces cortical analysis of external events","volume":"20","author":"Smallwood","year":"2008","journal-title":"J. Cogn. Neurosci"},{"key":"B29","doi-asserted-by":"publisher","first-page":"487","DOI":"10.1146\/annurev-psych-010814-015331","article-title":"The science of mind wandering: Empirically navigating the stream of consciousness","volume":"66","author":"Smallwood","year":"2015","journal-title":"Annu. Rev. Psychol"},{"key":"B30","first-page":"516","article-title":"An interpretation of the \u2018self' from the dynamical systems perspective: a constructivist approach","volume":"5","author":"Tani","year":"1998","journal-title":"J. Consc. Stud"},{"key":"B31","doi-asserted-by":"publisher","first-page":"81","DOI":"10.1177\/1059712320962158","article-title":"Cognitive neurorobotics and self in the shared world, a focused review of ongoing research","volume":"30","author":"Tani","year":"2022","journal-title":"Adapt. Behav"},{"key":"B32","doi-asserted-by":"publisher","first-page":"96","DOI":"10.1111\/nyas.13171","article-title":"The brain on silent: mind wandering, mindful awareness, and states of mental tranquility","volume":"1373","author":"Vago","year":"2016","journal-title":"Ann. N. Y. Acad. Sci"},{"key":"B33","doi-asserted-by":"publisher","first-page":"202","DOI":"10.1016\/j.cognition.2018.05.013","article-title":"A new approach to differentiate states of mind wandering: effects of working memory capacity","volume":"179","author":"Voss","year":"2018","journal-title":"Cognition"},{"key":"B34","doi-asserted-by":"publisher","first-page":"263","DOI":"10.3390\/e25020263","article-title":"Turn-taking mechanisms in imitative interaction: Robotic social interaction based on the free energy principle","volume":"25","author":"Wirkuttis","year":"2023","journal-title":"Entropy"},{"key":"B35","doi-asserted-by":"publisher","first-page":"681","DOI":"10.3758\/s13421-016-0589-8","article-title":"Studying in the region of proximal learning reduces mind wandering","volume":"44","author":"Xu","year":"2016","journal-title":"Memory Cogn"},{"key":"B36","doi-asserted-by":"publisher","first-page":"e1000220","DOI":"10.1371\/journal.pcbi.1000220","article-title":"Emergence of functional hierarchy in a multiple timescale neural network model: a humanoid robot experiment","volume":"4","author":"Yamashita","year":"2008","journal-title":"PLoS Comput. Biol"},{"key":"B37","doi-asserted-by":"publisher","first-page":"1464603","DOI":"10.3389\/fncom.2024.1464603","article-title":"Dynamical predictive coding with reservoir computing performs noise-robust multi-sensory speech recognition","volume":"18","author":"Yonemura","year":"2024","journal-title":"Front. Comput. Neurosci"},{"key":"B38","doi-asserted-by":"publisher","first-page":"217","DOI":"10.1037\/bul0000424","article-title":"Mind-wandering increases in frequency over time during task performance: an individual-participant meta-analytic review","volume":"151","author":"Zanesco","year":"2024","journal-title":"Psychol. Bull"},{"key":"B39","doi-asserted-by":"publisher","first-page":"104689","DOI":"10.1016\/j.cognition.2021.104689","article-title":"Spontaneous state alternations in the time course of mind wandering","volume":"212","author":"Zukosky","year":"2021","journal-title":"Cognition"}],"container-title":["Frontiers in Computational Neuroscience"],"original-title":[],"link":[{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/fncom.2025.1578135\/full","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,7,2]],"date-time":"2025-07-02T05:52:31Z","timestamp":1751435551000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/fncom.2025.1578135\/full"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,7,2]]},"references-count":39,"alternative-id":["10.3389\/fncom.2025.1578135"],"URL":"https:\/\/doi.org\/10.3389\/fncom.2025.1578135","relation":{},"ISSN":["1662-5188"],"issn-type":[{"value":"1662-5188","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,7,2]]},"article-number":"1578135"}}