Logo

Psyche AI Toolset

General idea

This is a research project about General Artificial Intelligence system loosely based on Practopoiesis Theory which stands for neural network that depends purely on its environment and instead of converting inputs into symbols that are processed by "machine" to give output, it processes signals as energy potentials and by evolution of connections and constant change of brain structure, it produces "consciousness" naturally.

You can read more about Practopoiesis Theory here: http://www.danko-nikolic.com/practopoiesis/

Tech used

All toolset modules are written in Rust programming language (a multi-paradigm systems programming language focused on safety, especially safe concurrency) and is available on crates.io as Rust Crate ready to be your project dependency.

Foreign Function Interface

Psyche toolset provides FFI libraries and wrappers for many languages and frameworks. - C and C++ headers with native static and dynamic libraries; - C# wrapper; - TODO: Unity 3D engine plugin (there is a bug to fix on the integration side); - TODO: Godot engine plugin (there is a bug to fix on the integration side); - TODO: Amethyst engine integration crate. - TODO: Game Maker engine plugin.

Toolset modules

Demos

Brain activity visualizer

Every blue line is a connection between two neurons and every white dot is a signal traveling through neural network.

psyche-demo-brain-activity

Spores in fluid environment

Each spore has its own brain connected to body sensors (smell) and motors (legs) and by that it tries to find and eat food portions left in water. You can also manipulate environment by producing fluid currents with mouse dragging.

psyche-demo-spore

Usage

Docs.rs Crates.io

Record in Cargo.toml: toml [dependencies] psyche = "0.2"

Your crate module: ```rust extern crate psyche;

use psyche::core::brain_builder::BrainBuilder; use psyche::core::config::Config; use psyche::core::Scalar;

// prepare config for brain. let mut config = Config::default(); config.propagationspeed = 50.0; config.synapsereconnectionrange = Some(15.0); config.neuronpotentialdecay = 0.1; config.synapsepropagationdecay = 0.01; config.synapsenewconnectionreceptors = Some(2.0);

// build brain. let mut brain = BrainBuilder::new() .config(config) .neurons(100) .connections(200) .minneurogenesisrange(5.0) .maxneurogenesisrange(15.0) .radius(30.0) .sensors(10) .effectors(10) .brain();

loop { // trigger sensors. for sensor in brain.getsensors() { brain.sensortrigger_impulse(sensor, 1.0); }

// process brain step. brain.process(1.0);

// read effectors and act based on their stored potential. for effector in brain.geteffectors() { if let Ok(potential) = brain.effectorpotential_release(effector) { println!("{:?} = {:?}", effector, potential); } } } ```