MotorMemoryManager - Overdrive77/BioSynapStudio-Public GitHub Wiki


MotorMemoryManager Class

Summary

Handles saving and loading of motor memory for a neural network. Motor memory refers to procedural and learned behaviors, such as motion, reflexes, and habits stored independently from hippocampal (declarative) memory.


Namespace

BioSynapStudio.Net.Modules.Plasiticity

Assembly

BioSynapStudio.Net.dll


Declaration

public class MotorMemoryManager

Constructors

Signature
MotorMemoryManager(NeuralNetwork network)

Initializes a motor memory manager for the given NeuralNetwork instance.


Public Methods

Method Description
void SaveMotorMemory() Saves all [MotorMemory] properties from the NeuralNetwork to disk.
void LoadMotorMemory() Loads [MotorMemory] properties from disk and applies them to the NeuralNetwork.

Private Helpers

Method Purpose
string GetMemoryFilePath() Resolves the path for .mot file under the Documents/MotorMemory/ directory.
void SerializeValue(BinaryWriter bw, object value) Serializes common types or marked sub-properties.
object DeserializeValue(BinaryReader br, Type expectedType) Deserializes primitive or marked complex types.

File Format

  • Header Signature: "BSS_MOTOR"
  • Version: 1
  • Timestamp: UTC
  • Only properties marked with [MotorMemory] are included.
  • Stored as .mot file named after the network.

Usage Example

var manager = new MotorMemoryManager(myNetwork);
manager.SaveMotorMemory();
...
manager.LoadMotorMemory();

Remarks

  • Works similarly to HippocampusManager, but focuses exclusively on procedural knowledge.
  • Supports nested types, provided their properties are also marked with [MotorMemory].
  • Can be extended for training long-term behaviors (e.g., walking, balance, reaction timing).

See Also


Legal Notice

This software constitutes original intellectual property of the author, protected under international copyright and patent law. Patent: GB2506327.2 – Synthesized Emotional Cognition (SEC) DOI: 10.17605/OSF.IO/XERKF