Physarum 粘菌 / Slime mold

「跡を残す」「跡をたどる」という局所的なやり取りから、全体のネットワークが生まれる。粘菌に着想を得た粒子モデルの実験場です。

A playground for a slime-mold-inspired particle model: a whole network emerges from purely local exchanges, "leave a trail" and "follow a trail."

使い方 / How to use

粘菌と、このモデルの関係 / Slime mold and this model

真正粘菌 Physarum polycephalum の変形体は、多数の核を持つ一つの細胞として広がり、輸送ネットワークを形成します。この画面の粒子は独立した粘菌の個体ではなく、集団的な輸送や走化性を表す計算上の要素です。

The plasmodium of the true slime mold Physarum polycephalum spreads as a single cell with many nuclei and forms a transport network. The particles on this screen are not individual slime molds; they are computational elements that represent collective transport and chemotaxis.

Jeff Jonesの粒子ベースの研究に着想を得て、3方向の感知、旋回、移動、化学物質の放出、拡散・減衰を組み合わせています。本ページは仕組みを体験するための独自の簡略実装で、論文の全条件を再現したものではありません。

Inspired by Jeff Jones's particle-based research, the model combines three-way sensing, turning, movement, chemical deposition, and diffusion and decay. This page is an original simplified implementation for experiencing the mechanism; it does not reproduce all the conditions in the paper.

一つの粒子がすること / What one particle does

  1. 進行方向の前方と、左右に角度を付けた位置で化学物質の濃度を読む。 / Read the chemical concentration straight ahead and at positions angled to the left and right.
  2. 前方が最も濃ければ直進。左または右が濃ければ、その方向へ旋回する。前方が両側より薄ければ左右どちらかにランダムに旋回する。 / If straight ahead is strongest, go straight. If left or right is stronger, turn that way. If ahead is weaker than both sides, turn randomly to the left or right.
  3. 1格子分進む。移動先が壁・境界・別の粒子にふさがれていたら、その場で向きを変える。 / Move one grid cell. If the destination is blocked by a wall, the boundary or another particle, change direction on the spot.
  4. 移動に成功した位置に化学物質を放出する。 / Deposit chemical at the position where the move succeeded.

濃い跡に粒子が集まり、そこへさらに跡を残す正のフィードバックと、拡散・蒸発による平滑化と忘却が同時に働きます。粒子同士が全体の地図を共有することはありません。

Two forces work at once: positive feedback, in which particles gather on a strong trail and leave still more trail there, and smoothing and forgetting through diffusion and evaporation. The particles never share a map of the whole.

化学物質の更新 / Updating the chemical

C̃ = C + 粒子の放出 + 餌からの供給 / C + particle deposit + supply from food
C次 / next = (1 − e) × [(1 − d) C̃ + d × 近傍平均 / neighborhood mean (C̃)]

d は拡散の強さ、e は1ステップ当たりの蒸発率です。近傍平均には自身と周囲8格子を使います。壁の内部は濃度0とし、壁・外周との境界では流出を抑えます。感知の際も壁の向こう側を直接読まないようにしています。

d is the diffusion strength and e is the evaporation rate per step. The neighborhood mean uses the cell itself and its eight neighbors. The inside of a wall has concentration 0, and outflow is suppressed at the border with walls and the outer edge. Sensing also avoids reading directly across a wall.

計算は360×360格子、通常速度で1秒当たり30ステップを目標に進みます。処理が追いつかない端末では実時間より遅くなります。粒子数は一定で、繁殖・死・遺伝・進化は扱っていません。

The grid is 360×360, and at normal speed the target is 30 steps per second. On devices that cannot keep up, it runs slower than real time. The number of particles is constant; reproduction, death, heredity and evolution are not modeled.

パラメータで何が変わる? / What do the parameters change?

試してみる実験 / Experiments to try

  1. 網目が育ったら一時停止し、消しゴムで一本の跡を横切るように消す。再開すると、同じ道が戻るか、別の道ができるか? / Once a network has grown, pause and erase across one trail. When you resume, does the same path return, or does a different one form?
  2. 餌場の一つを消し、別の場所に置く。以前の跡が残る時間は、蒸発率によってどう変わるか? / Remove one food source and place it somewhere else. How long the old trail lingers depends on the evaporation rate; how?
  3. 餌への通り道に壁を描く。隙間を開けたとき、どのような経路が育つか? / Draw a wall across the route to the food. What route grows when you open a gap?

ネットワークができても、最短経路や最適解を保証するものではありません。「餌場を結ぶ」は観察のテーマで、すべての餌場が必ず接続されるという意味ではありません。再編成の結果は初期配置とパラメータによって変わります。

A network forming does not guarantee a shortest path or an optimal solution. "Linking food sources" is an observation theme, not a promise that every food source will be connected. How the network reorganizes depends on the initial layout and the parameters.

参考文献 / References

シミュレーターで試す / Try the simulator →

hamzWorkerz(ハムズワーカーズ) ・ プライバシーポリシー / Privacy