← sur.personal

天机

tianjī — "heaven's hidden mechanism"; the secret workings of nature that cannot be spoken aloud

On the structural parallels between biology and robotics

I. Introduction

The classical Chinese concept of 天机 (tianjī) refers to the hidden mechanism of heaven: the underlying logic of how things work, which is real and discoverable but not immediately obvious. It is what you are supposed to not reveal, because once you name it, it sounds too simple. I came across the word while reading about Chinese cosmology, and it stuck, because it describes something I keep running into in engineering.

I came to biology the wrong way. Most people learn biology first and engineering second. I did it backwards: years of soldering, writing inverse kinematics, tuning PID loops, and designing leg linkages before I ever seriously read about how a cell moves. When I finally did, I had the unsettling feeling that I had seen all of it before.

The kinesin motor protein, which walks cargo along microtubule tracks inside your cells, does so with two "legs" that alternate in a hand-over-hand gait. It converts chemical energy (ATP) into mechanical motion with roughly 25% efficiency.1 The servo motor driving the knee joint of a quadruped robot also converts energy into mechanical motion, also with roughly 20-30% efficiency, also using a gait that alternates between legs. The mechanisms are completely different. The substrate is completely different. But the problem being solved, controlled locomotion under energy constraints, is identical.

This essay is about the uncanny structural parallels between biological systems and robotic ones. Not as a metaphor, and not as a pop-science observation. Rather, as an engineer's reading: that biology, looked at through the right lens, is a set of solutions to engineering problems. And that this reading might actually be useful for building things.

II. The Motor Problem

When I was building Quadrapet, the first major decision was actuation. You can drive a quadruped with hydraulics, pneumatics, or electric motors. Each trades off force density, control bandwidth, backdrivability, and energy efficiency in different ways. You pick based on your constraints.

Biology made the same decision, and arrived at a richer answer. Cells use not one but at least three distinct motor proteins: myosin (for muscle contraction and cell division), kinesin (for moving cargo toward the cell's periphery), and dynein (for moving cargo toward the nucleus). Each is optimized for a different task: myosin for high force, kinesin for directed long-distance transport, dynein for retrograde motion and sensing.2

Biological motor proteins vs. robotic actuators, a structural comparison

Biological motor Robotic analogue Primary role Energy source
Myosin IILinear actuator / hydraulicHigh-force contractionATP hydrolysis
Kinesin-1Stepper motor + railDirected cargo transportATP hydrolysis
DyneinBrushless DC (backdrivable)Retrograde transport, force sensingATP hydrolysis
ATP synthaseRegenerative braking / generatorEnergy harvesting from flowProton gradient

What is striking is not just the functional parallel, but the design philosophy. Biology does not use a single general-purpose actuator scaled to context. It uses specialized motors for specialized tasks, connected through a shared energy currency (ATP). This is precisely the multi-actuator architecture that modern legged robots are converging toward: a mix of high-torque motors at the hip, lighter motors at the knee, and series elastic elements at the ankle. The cell got there three billion years earlier.

The more I read, the more this pattern holds. The flagellar motor in bacteria, which propels them through fluid, is a rotary actuator: literally a wheel driven by a proton gradient, operating at up to 100,000 RPM.3 It is, as far as I know, the only true rotary joint in biology. The fact that it appears in the simplest organisms, and only for locomotion in fluid, suggests that rotation is the right solution for that specific problem, just as it is in robotics.

III. Sensing and Feedback

The first time I tuned a PID controller, I did not understand it intuitively. I understood the math, but not the intuition. Then I read about how the human body maintains blood glucose. The pancreas monitors blood glucose (measurement), compares it against a setpoint of ~90 mg/dL (error), and releases insulin or glucagon proportionally and with a time delay (output). It is a textbook PID loop, implemented in wetware, evolved over hundreds of millions of years.

Homeostasis, the tendency of biological systems to maintain stable internal states, is not a vague biological concept. It is a control system concept. And biology is full of them. The pupillary light reflex, the way your iris contracts in bright light, has a measured latency of about 200ms, a rise time, an overshoot, and a settling time. These are the parameters of a second-order control system.4

"The most remarkable feature of biological control systems is not their accuracy, but their robustness to component failure. Individual neurons die constantly. Individual cells are replaced. The system continues to function." paraphrased from Norbert Wiener, Cybernetics (1948)

This robustness is something robotics has genuinely struggled with. A legged robot with a failed motor joint typically fails catastrophically. A dog with a broken leg limps: its control architecture redistributes load across three remaining limbs, recalibrates its gait, and continues to function, albeit at reduced performance. The biological solution here is redundancy plus graceful degradation, which is also the right engineering solution, but we rarely implement it well because it is expensive.

What makes biological sensing particularly remarkable is its range. The human ear responds to pressures from 20 micropascals to 200 pascals, a dynamic range of 120 dB. Achieving this in a silicon microphone requires logarithmic amplifier stages and careful AGC design. The ear does it with two distinct mechanical structures (the basilar membrane's stiffness gradient) and active amplification via outer hair cells. It is not a single sensor. It is a sensor array with built-in signal processing, exactly the architecture a robotics engineer would reach for if they were trying to match that specification.

IV. The Compilation Problem

Here is where the analogy becomes most interesting, and most strained. In robotics, the gap between specification and physical instantiation is large but legible. I write code, it compiles, it runs on hardware I can inspect. When something breaks, I can attach a debugger. I can read memory. I can trace execution. The system is, in principle, transparent.

Biology has a specification language (DNA), a compiler (transcription and translation), and a runtime environment (the cell). But the compiler is enormously lossy and context-dependent. The same gene, expressed in a liver cell and a neuron, produces different proteins depending on which exons get spliced in, how the mRNA gets modified, and what the chemical environment of the ribosome looks like when translation happens.5 The "same" source code produces different binaries depending on which machine it runs on, and the machine is itself produced by the same source code.

This is what makes biotech hard in a way that robotics is not. You cannot simply read off the genotype and predict the phenotype. You cannot step through protein folding with a debugger. AlphaFold2 was a landmark precisely because it partially automated what biologists had spent decades doing by hand: figuring out what a protein actually looks like from its sequence. But even knowing the structure, predicting the function in context remains genuinely open.

And yet: the compilation problem in biology is being cracked, slowly. The tools are not debuggers. They are large-scale perturbation experiments, CRISPR screens, and increasingly, foundation models trained on protein sequences and structures. The epistemology is different. You learn by breaking things systematically, not by reading state. But it is converging toward something that an engineer would recognize as controllable.

This is, I think, why biotech is interesting right now in a way it has not been before. The gap between biological specification and physical outcome is narrowing, not because we have found a debugger, but because we have found statistical regularities large enough to be useful. The field is moving from natural history to engineering.

V. Final Reflections

I do not think the biology-robotics analogy is a coincidence. Both are solving the same underlying problem: how do you build a physical system that persists in a variable environment, using bounded energy, over long timescales? The solution space is constrained by physics. Actuators need to convert energy to motion. Sensors need to transduce physical signals into information. Control loops need to maintain stability. Given these constraints, the space of good solutions is narrower than it looks, and biology and robotics have found many of the same ones.

What this means practically, I think, is two things. First, for robotics engineers moving into biotech: the conceptual vocabulary transfers. The hardest parts of biology are not the parts that feel unfamiliar. They are the parts that feel familiar but are subtly different. The "code" runs differently. The "hardware" reconfigures itself. The "compiler" is context-dependent in ways we do not yet fully understand. Second, for biotech engineers: robotics has already solved some of your problems, at larger scales and with more debuggability. Fault-tolerant control architectures, multi-modal sensing, energy-harvesting actuators: these are not new ideas. They are just implemented in silicon rather than protein.

The most interesting work, I suspect, is at the boundary. Not bio-inspired robotics, which tends to copy biological forms without understanding biological principles. And not synthetic biology as pure molecular engineering, disconnected from the control-theoretic insights of the last century. But something in between: engineers who can read both languages, and translate between them.

I am still learning to read both. But from where I stand, they look more like dialects of the same language than separate ones. The 天机 is the same. The substrate is different.

// footnotes

  1. Kinesin efficiency is typically quoted at 25-35% under physiological conditions, comparable to a good brushless DC motor. The comparison is somewhat loose: efficiency definitions differ between mechanical and biochemical contexts, but the order of magnitude holds. See Vale, R.D. (2003), "The Molecular Motor Toolbox for Intracellular Transport," Cell.
  2. The three-motor taxonomy is simplified. There are over 40 identified kinesin family members in mammals, each with distinct cargo-binding domains and directionalities. The point holds: specialization rather than generalism.
  3. The bacterial flagellar motor is genuinely one of the most remarkable machines in biology. It has a stator, a rotor, a bushing, and a drive shaft: all the components of a rotary machine, self-assembled from ~40 distinct proteins. The 100,000 RPM figure is for E. coli under low-load conditions; it operates at ~10,000 RPM under the loads typical of swimming.
  4. The pupillary light reflex has been studied extensively as a control system since at least the 1960s. Its dynamics are well-characterized and used clinically: the "sluggish pupil" of a concussion is a control system response time increasing, not a metaphor.
  5. Alternative splicing affects roughly 95% of multi-exon genes in humans. The proteome (the set of proteins a cell can produce) is substantially larger than the genome would suggest. Estimates range from 250,000 to over a million distinct protein variants from roughly 20,000 genes. The "same" gene is, in a real sense, not a single program.