An open-source compendium

Nature’s physics, explained.

How does a bat see in the dark? Why does a shrimp’s snap flash with light? WildBionics connects biology with physics, mathematics, chemistry, computer science and Physical AI – through animals, plants and the living planet – and shows how engineers borrow nature’s solutions.

Diagram of bat echolocation A bat emits sound waves towards a moth. Echo waves travel back. The echo delay of 17.5 milliseconds corresponds to a distance of about 3 metres. An inset spectrogram shows the call sweeping down from 80 to 40 kilohertz. d = c·Δt / 2 ≈ 3.0 m Call · FM 80→40 kHz Echo · Δt = 17.5 ms Moth Spectrogram · kHz 80 40 0 3 ms
Fig. 1 Echolocation. A bat sends out a frequency-modulated call; the delay of the echo reveals how far away the moth is.

Explained through

  • Biology
  • Physics
  • Mathematics
  • Chemistry
  • Computer science
  • Physical AI

The lens

One phenomenon. Four ways of seeing it.

Every WildBionics article can be read through different lenses. Switch between them to follow the same bat hunt as a biologist, a physicist, a mathematician and a programmer would.

Sensory ecology · Evolution

An arms race in the dark

Echolocation made bats formidable night hunters – and turned their prey into listeners. Many moths have evolved ears that pick up bat calls and trigger evasive flight. Some tiger moths go one step further: Bertholdia trigona answers an attacking bat with ultrasonic clicks of its own that jam the bat’s sonar.

Corcoran, Barber & Conner (2009), Science 325, 325–327. doi:10.1126/science.1174096

Bat and tiger moth: sonar and sonar jamming A bat sends sonar calls towards a tiger moth. The moth flies an evasive loop and answers with ultrasonic clicks that jam the bat's sonar. evasive flight Bat: sonar call Moth: ultrasonic clicks

Acoustics · Doppler effect

Hearing speed

A bat flying towards a moth hears the echo at a higher pitch than the call it sent. The size of this Doppler shift tells it how fast it is closing in. Horseshoe bats even lower their call in flight, so that the echo always lands in their most sensitive band of hearing.

Δf ≈ 2 v f0c

At v = 5 m/s and f0 = 50 kHz, the echo returns about 1.5 kHz higher.

Doppler effect of a flying bat Wavefronts bunch up ahead of the moving bat and spread out behind it. v Behind: stretched · lower f Ahead: compressed · higher f

Geometry · Trigonometry

Measuring distance with time

Sound travels at about 343 m/s in air. Halve the round-trip time of the echo and you have the distance. The tiny difference in arrival time between the left and the right ear adds the direction – two measurements, one position.

d = c · Δt2 θ = arcsin (c · Δτb)

An echo after 17.5 ms puts the moth 3.0 m away. Δτ: time difference between the ears, b: distance between the ears.

Geometry of echo ranging A right triangle from the bat to the moth with distance d and angle theta, above a timeline showing the call and the echo 17.5 milliseconds later. θ d = c·Δt / 2 t Δt = 17.5 ms Call Echo

Signal processing · Sonar

From chirp to code

Autonomous drones and parking sensors use the same trick. A matched filter slides the known chirp along the recording; the peak of the cross-correlation marks the echo – robust even in noise.

sonar.pyPython · NumPy
import numpy as np

SPEED_OF_SOUND = 343.0  # m/s, air at 20 °C

def echo_distance(chirp, recording, sample_rate):
    """Find the echo with a matched filter; return metres."""
    corr = np.correlate(recording, chirp, mode="valid")
    delay = np.argmax(np.abs(corr)) / sample_rate  # round trip, s
    return SPEED_OF_SOUND * delay / 2

# Demo: a 2 ms call sweeping 80 → 40 kHz, echo from a moth 1.7 m away
rate = 250_000                                   # samples per second
t = np.arange(0, 0.002, 1 / rate)
chirp = np.sin(2 * np.pi * (80_000 * t - 1e7 * t**2))
recording = np.random.default_rng(1).normal(0, 1, 5_000)  # 20 ms of noise
start = round(2 * 1.7 / SPEED_OF_SOUND * rate)
recording[start:start + chirp.size] += 0.5 * chirp  # echo weaker than the noise
print(f"moth at {echo_distance(chirp, recording, rate):.2f} m")

Read the full article on bat echolocation

The ontology

Four dimensions to map the living world

Every article is a node in a knowledge graph. Follow a phenomenon through time, across habitats, down to the physical rules behind it – and out into the sciences it inspires.

  1. Time

    Evolution & geology

    From the Big Bang to humanoid robots – and on to the open question of superintelligence: when did a solution appear, and how long did nature, or technology, refine it?

    • Cambrian
    • Cenozoic
    • Age of AI
  2. Space

    Habitats & scales

    From the microcosm to the stratosphere: where does a phenomenon happen, and at what scale?

    • Deep sea
    • Desert
    • Microcosm
  3. Rules

    The laws of physics

    Mechanics, thermodynamics, optics, acoustics, electromagnetism: the rules every organism has to play by.

    • Acoustics
    • Fluid dynamics
    • Optics
  4. Adjacent sciences

    Maths, AI & engineering

    Where the insight leads: mathematics, computer science, Physical AI and robotics, medical technology, materials science and bionics.

    • Bionics
    • Physical AI
    • Robotics

Explore the knowledge graph

Radius of a cavitation bubble over time The bubble radius rises after the snap, then drops steeply to zero at the collapse, where a flash and a shock wave occur, followed by two small rebounds. Radius R Time t Snap Collapse Vapour bubble grows Flash &shock wave
Fig. 2 Life of a cavitation bubble: rapid growth, violent collapse, weak rebounds. The whole cycle takes less than a millisecond.

Flagship article

The pistol shrimp and the physics of cavitation

With a single snap of its oversized claw, a shrimp just a few centimetres long shoots out a jet of water so fast that the pressure behind it drops below the vapour pressure. A bubble forms and collapses – and for a split second its core reaches thousands of kelvin and emits a flash of light.

speed of the water jet
≈ 25 m/s
inside the collapsing bubble
≥ 5,000 K
body length of the shrimp
3–5 cm
  • Coral reefs
  • Fluid dynamics
  • Thermodynamics
  • Acoustics
  • Bionics

Sources

  1. Versluis, M., Schmitz, B., von der Heydt, A., Lohse, D. (2000). How snapping shrimp snap: through cavitating bubbles. Science 289, 2114–2117. doi:10.1126/science.289.5487.2114
  2. Lohse, D., Schmitz, B., Versluis, M. (2001). Snapping shrimp make flashing bubbles. Nature 413, 477–478. doi:10.1038/35097152
Read the article

Open source

Built in the open. Written by curious minds.

WildBionics lives on GitHub. Everything – articles, translations, code – is open for you to read, reuse and improve.

  • Write an article

    Know a phenomenon that deserves the lens treatment? Propose it, or draft it in Markdown.

  • Translate

    Help bring WildBionics to more languages. English and German are just the beginning.

  • Improve the site

    Accessibility, the knowledge graph, visualisations: the code is MIT-licensed.