Simulation Parameters
Introduction
This table defines the configuration settings for the simfish simulation environment. Note that distances are measured in pixels (the default values are based on a ratio of 10 pixels = 1 mm).
1. Global Simulation Settings
General constraints for the simulation engine and time-stepping.
Name |
Meaning |
Example Value |
Data Type |
Optional |
|---|---|---|---|---|
|
Enables diagnostic mode for visual inputs |
|
Boolean |
No |
|
Max steps before an episode ends |
|
Integer |
No |
|
Physics model sub-steps for each simulation step |
|
Integer |
No |
|
Real-world time delta per step in seconds |
|
Float |
No |
2. Arena
Defines the physical boundaries and lighting conditions.
Name |
Meaning |
Example Value |
Data Type |
Optional |
|---|---|---|---|---|
|
Arena dimensions (pixels) |
|
Integer |
No |
|
Fraction of the arena that is dark |
|
Float |
No |
|
Steepness of light-to-dark transitions (pixels) |
|
Integer |
No |
|
Dark region illumination fraction |
|
Float |
No |
|
Rate at which light intensity decreases over distance |
|
Float |
No |
|
Multiplier for UV-reflective objects |
|
Float |
No |
|
Intensity of light scattering at the bottom of the arena |
|
Float |
No |
|
Standard deviation for sediment texture |
|
Float |
No |
|
UV scattering coefficient for water |
|
Float |
No |
|
If true, fish reflects off walls |
|
Boolean |
No |
3. Fish
Parameters governing the physical body and the visual system of the agent.
[Image of larval zebrafish visual field and eye vergence]
Name |
Meaning |
Example Value |
Data Type |
Optional |
|---|---|---|---|---|
|
Size of prey capture area (pixels) |
|
Float |
No |
|
Radius of fish head (pixels) |
|
Float |
No |
|
Physical tail length (pixels) |
|
Float |
No |
|
Height of the fish’s above the bottom (pixels) |
|
Integer |
No |
|
If true, fish actions are deterministic, based on mean value |
|
Boolean |
No |
4. Eyes and vision
Parameters governing the visual system of the agent.
Name |
Meaning |
Example Value |
Data Type |
Optional |
|---|---|---|---|---|
|
Eye vergence angle (degrees) |
|
Float |
No |
|
Total degrees of vision per eye |
|
Float |
No |
|
Horizontal offset of each eye from the midline (pixels) |
|
Float |
No |
|
If true, adds shot noise to visual input |
|
Boolean |
No |
|
Size of UV photoreceptor receptive fields (radians) |
|
Float |
No |
|
Size of red photoreceptor receptive fields (radians) |
|
Float |
No |
|
Spacing of RFs in the strike zone (radians) |
|
Float |
No |
|
Size of the strike zone (radians) |
|
Float |
No |
|
Oversampling factor PRs in the strike zone |
|
Float |
No |
|
Steepness of the strike zone edge |
|
Float |
No |
|
Angles of bottom viewing (degrees) |
|
List |
No |
5. Capture swim
Name |
Meaning |
Example Value |
Data Type |
Optional |
|---|---|---|---|---|
|
Fraction of time within the bout that still allows capture |
|
Float |
No |
|
Angle within which capture is allowed (degrees) |
|
Float |
No |
|
Multiplier for energy cost during capture |
|
Float |
No |
6. Prey
Behavioral variables for prey items (paramecia)
Name |
Meaning |
Example Value |
Data Type |
Optional |
|---|---|---|---|---|
|
Collision radius of prey |
|
Float |
No |
|
Number of prey items |
|
Integer |
No |
|
Distance at which prey can sense the fish (pixels) |
|
Float |
No |
|
Maximum angle prey can turn (radians) |
|
Float |
No |
|
Number of prey clouds (zero for even distribution) |
|
Integer |
No |
|
Probability of slow gait |
|
Float |
No |
|
Probability of fast gait |
|
Float |
No |
|
Probability of escape gait if in range |
|
Float |
No |
|
Probability of switching gait |
|
Float |
No |
|
Probability of large turn behavior |
|
Float |
No |
|
Speed during slow movement (px/sec) |
|
Float |
No |
|
Speed during fast movement (px/sec) |
|
Float |
No |
|
Speed during a prey escape burst (px/sec) |
|
Integer |
No |
|
If true, prey can reproduce |
|
Boolean |
No |
|
Probability of new prey spawning |
|
Float |
No |
|
Size of the prey clouds |
|
Integer |
No |
|
Minimal prey lifespan (steps) |
|
Integer |
No |
|
Probability of prey death |
|
Float |
No |
7. Predator
Behavioral variables for predator items
Name |
Meaning |
Example Value |
Data Type |
Optional |
|---|---|---|---|---|
|
Hitbox/shadow radius of the predator |
|
Integer |
No |
|
Movement speed of the predator (px/sec) |
|
Float |
No |
|
Steps fish is safe early in the episode |
|
Integer |
No |
|
Initial distance from the fish (px) |
|
Float |
No |
|
Number of predator attack epochs |
|
Integer |
No |
|
Duration of each epoch (steps) |
|
Integer |
No |
|
Probability of predator action per step during epochs |
|
Float |
No |
|
Path to predator stimulus location data |
|
String |
Yes |
8. Salt source
Salt gradient configuration
Name |
Meaning |
Example Value |
Data Type |
Optional |
|---|---|---|---|---|
|
Whether salt gradients are enabled |
|
Boolean |
No |
|
concentration decay constant (1/pixels) |
|
Float |
No |
9. Rewards
Name |
Meaning |
Example Value |
Data Type |
Optional |
|---|---|---|---|---|
|
Penalty for being eaten |
|
Integer |
No |
|
Reward for avoiding predators |
|
Integer |
No |
|
Reward for catching prey |
|
Integer |
No |
|
Factor for translating energy use to negative rewards |
|
Integer |
No |
|
Penalty for touching walls |
|
Integer |
No |
|
Factor for salt concentration influence |
|
Float |
No |
10. Energy
Name |
Meaning |
Example Value |
Data Type |
Optional |
|---|---|---|---|---|
|
Energy cost per unit of movement |
|
Float |
No |
|
Energy cost per degree of turning |
|
Float |
No |
|
Passive energy loss per step |
|
Float |
No |