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
- 網目形成 / Network formation:一様に散らした粒子が、自分たちの化学物質の跡に集まって構造を作ります。少し待って模様の成長を観察してください。 / Particles scattered evenly gather along their own chemical trails and build structure. Wait a little and watch the pattern grow.
- 餌場を結ぶ / Linking food sources:5つの持続する誘引源を配置します。粒子の集まり方や経路が、餌のない場合からどう変わるか比較できます。 / Places five persistent attractors. Compare how the particles gather and which routes form against the case with no food.
- 障害物 / Obstacles:壁と餌が置かれた状態から開始します。壁の隙間を広げたり、新しい壁を描いたりして、経路の変化を観察できます。 / Starts with walls and food in place. Widen gaps or draw new walls and watch how the routes change.
- 餌を置く / Place food:クリック/タップで追加します(最大32個)。餌は食べ尽くされず、取り除くまで化学物質を供給し続けます。 / Click or tap to add (up to 32). Food is never used up; it keeps supplying chemical until you remove it.
- 壁・跡・消しゴム / Wall, trail, eraser:ドラッグして描きます。壁は粒子の移動と化学物質の拡散を遮ります。消しゴムは壁・餌・跡を消します。粒子そのものは消さないので、跡は再び現れることがあります。 / Drag to draw. Walls block both particle movement and chemical diffusion. The eraser removes walls, food and trails. It does not remove the particles themselves, so trails can reappear.
- 一時停止 / Pause:停止中も実験場を編集できます。「やり直す」で現在のパラメータのまま、選択中のプリセットの初期配置に戻せます。停止状態は保持されます。 / You can keep editing while paused. "Restart" returns to the selected preset's initial layout with the current parameters, and the paused state is kept.
- スマートフォン / Mobile:右上の歯車で設定を開閉します。動きが重い場合は粒子数や実験速度を下げてください。 / Open or close settings with the gear icon at the top right. If it runs slowly, lower the particle count or the speed.
- PNGで保存 / Save as PNG:現在の実験場を画像として保存します。 / Saves the current playground as an image.
粘菌と、このモデルの関係 / 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
- 進行方向の前方と、左右に角度を付けた位置で化学物質の濃度を読む。 / Read the chemical concentration straight ahead and at positions angled to the left and right.
- 前方が最も濃ければ直進。左または右が濃ければ、その方向へ旋回する。前方が両側より薄ければ左右どちらかにランダムに旋回する。 / 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.
- 1格子分進む。移動先が壁・境界・別の粒子にふさがれていたら、その場で向きを変える。 / Move one grid cell. If the destination is blocked by a wall, the boundary or another particle, change direction on the spot.
- 移動に成功した位置に化学物質を放出する。 / 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次 / 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?
- センサー距離 / Sensor distance:どのくらい先の跡を読むか。細かな構造と大きな構造の形成に影響します。 / How far ahead the trail is read. It affects the formation of fine versus large structures.
- センサー角度/旋回角度 / Sensor angle and turn angle:どの方向を見て、どの程度曲がるか。蛇行、集中、網目などの挙動が変わります。 / Which directions are read and how sharply to turn. Behavior shifts between meandering, clustering and net-like patterns.
- 拡散 / Diffusion:跡が周囲へ広がる強さ。離れた粒子が跡を見つけやすくなる一方、細い模様はぼやけます。 / How strongly trails spread outward. Distant particles find trails more easily, while thin patterns become blurred.
- 蒸発 / Evaporation:古い跡が消える速さ。小さいほど履歴が残り、大きいほど最近の通り道が強調されます。 / How fast old trails fade. Lower values keep history; higher values emphasize recent paths.
- 粒子数 / Particle count:混雑と化学物質の供給量が変わります。変更時は粒子と跡を初期化しますが、描いた壁と餌は保持します。 / Changes crowding and the amount of chemical supplied. Changing it resets particles and trails, but keeps the walls and food you drew.
試してみる実験 / Experiments to try
- 網目が育ったら一時停止し、消しゴムで一本の跡を横切るように消す。再開すると、同じ道が戻るか、別の道ができるか? / 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?
- 餌場の一つを消し、別の場所に置く。以前の跡が残る時間は、蒸発率によってどう変わるか? / Remove one food source and place it somewhere else. How long the old trail lingers depends on the evaporation rate; how?
- 餌への通り道に壁を描く。隙間を開けたとき、どのような経路が育つか? / 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
- Jeff Jones (2010), “Characteristics of Pattern Formation and Evolution in Approximations of Physarum Transport Networks,” Artificial Life, 16(2), 127–153. DOI
- Jeff Jones, “The Emergence and Dynamical Evolution of Complex Transport Networks from Simple Low-Level Behaviours.” 著者論文(arXiv掲載2015)/ author's paper (arXiv, 2015)
シミュレーターで試す / Try the simulator →
hamzWorkerz(ハムズワーカーズ) ・ プライバシーポリシー / Privacy