Published July 3, 2023 | Version v1
Dataset Open

Data from: Smart self-propelled particles: A framework to investigate the cognitive bases of movement

  • 1. University of Leeds

Description

We present a framework specifically developed to develop theories of spatial decision-making and to fully understand the rational of decisions embedded in an environment (and therefore the underlying evolutionary processes). This is achieved by the means of cognitive agents, moving thanks to artificial neural networks controlling movements and whose parameters are optimised with a genetic algorithms. Specifically, we investigate a simple task in which single agents need to learn to explore their square arena without leaving its boundaries. We show that agents evolve by developing increasingly optimal strategies to solve a spatially-embedded learning task while not having an initial arbitrary model of movements. The process allows the agents to learn how to move (i.e. by avoiding the arena walls) in order to make increasingly optimal decisions (improving their exploration of the arena).

Our dataset is made of 4 sets of simulations: parameters of reference, a survival objective function, introducing a turning penalty and with a slower speed (see details of parameters below). Each set of simulations is made of 60 trials with different initial conditions, each of which has been simulated with 20,000 agents for 150 generations. For each generation, we record:

  • the score of the 20,000 agents across four runs with different and random initial conditions
  • the score of the 20,000 agents from the same controlled initial condition (files with _com suffix)
  • metadata with parameters used in this simulation
  • parameters (weights and biases) of the artificial neural network of the best agent (i.e. with highest score) of each generation
  • parameters (weights and biases) of the artificial neural network of the best agent (i.e. with highest score in the controlled initial condition run) of each generation (files with _com suffix)

Notes

All files are text files with file extension .pkl. These files can be opened in Python and R using these two python functions to respectively read all simulation files and the files containing the parameters of the optimised artificial neural networks:

import pickle

def read_pickle_file(file):
    with open(file, "rb") as curfile:
        pickle_data = pickle.load(curfile)
    return pickle_data        

def read_brain_file(file):
    with open(file, "rb") as curfile:
        pickle_data = pickle.load(curfile)
    return pickle_data.get_weights()    

These functions can be called from Python or from R using the package Reticulate. For instance, these two lines in R will read the metadata file stored in the folder 'current.simulated.folder'

library(reticulate)

metadata <- read_pickle_file(paste("current.simulation.folder/", "metadata.pkl", sep = ""))

Funding provided by: UK Research and Innovation
Crossref Funder Registry ID: http://dx.doi.org/10.13039/100014013
Award Number: MR/S032525/1

Files

1_paramsofreference.zip

Files (1.8 GB)

Name Size Download all
md5:bb51e71487c2284d9821bcdb254a3c35
647.6 MB Preview Download
md5:8416b308fca5de43ce522daf2e32e49d
38.9 MB Preview Download
md5:54682ccf85cb9b2901cbc27164a92d89
489.0 MB Preview Download
md5:116e76618a1a289ce9da711669c8a8e4
617.1 MB Preview Download
md5:610cfd358e5ec6db660aaf1322bb9088
3.9 kB Preview Download

Additional details

Related works

Is cited by
10.1101/2023.03.07.531552 (DOI)