“…The majority of applications have focused on cognitive neuroscience, with a particular focus on modelling decision-making under uncertainty. Nonetheless, the framework has broad applicability and has recently been applied to diverse disciplines, ranging from computational models of psychopathology [5,6,7,8], control theory [9,10,11] and reinforcement learning [12,13,14,15,16], through to social cognition [17,18,19] and even real-world engineering problems [20,21,22]. While in recent years, some of the code arising from the active inference literature has been written in open source languages like Python and Julia [23,24,25,26,16], to-date, the most popular software for simulating active inference agents is the DEM toolbox of SPM [27,28].…”