A Spiking Vision System Learns to See Microrobots in Motion

When a Grain of Machinery Swims Through a Cell

Under a microscope, a device smaller than a red blood cell drifts through fluid. A tightly focused laser beam holds it steady. The beam nudges it toward a target inside living tissue.

The device is an optical microrobot. Its job might be to deliver a drug, prod a single cell, or assemble a microscopic structure. Yet none of that works without a computer watching through the camera. That computer must answer two questions many times per second. Which way is the device facing? How far above or below the focal plane has it drifted?

That watching computer is the quiet bottleneck. Researchers at George Mason University, the National University of Sciences and Technology, Majmaah University, and Sunway University built a new visual system to fix it. Their model answers both questions while using a fraction of the compute that current methods burn. They call it SpikeMicroNet. According to their report, it is the first spiking neural network designed and tested for optical microrobot perception.

Why the Perception Step Matters So Much

The laser trap can only steer as fast as the vision system reports the robot’s position. Consequently, a slow perception module caps the whole control loop. Meanwhile, the same embedded computer must drive lasers, aim the steering optics, and run safety routines. Every millijoule spent on vision is therefore a millijoule taken from somewhere else.

Existing systems lean on dense artificial neural networks. Those networks are accurate. However, they consume several to tens of millijoules per camera frame. On a battery-powered or point-of-care instrument, that appetite becomes a real problem.

The authors point to the standard benchmark for this task, the OpTical MicroRobot dataset. Every model in it is dense. Per-image compute runs from roughly one millijoule for a compact convolutional model up to seventeen millijoules for the most accurate vision transformer. An entire family of low-energy alternatives had gone untested.

A Different Kind of Neural Network

Spiking neural networks behave more like biological neurons. Rather than passing smooth floating-point numbers between layers, they communicate through brief binary events called spikes. A neuron only does work when it fires. Much of the network stays silent at any moment. As a result, this style of computing fits naturally onto event-driven neuromorphic chips such as Intel’s Loihi processor. On such hardware, a spiking model can dissipate orders of magnitude less energy per inference than a dense network on a graphics card.

Still, spiking networks come with a quirk. They are built to process signals that unfold over time. A single microscopy frame, however, is a static snapshot with no time axis at all. Feeding a frozen image into a spiking network usually wastes its main strength. The authors solved this by turning the still frame itself into a sequence.

Turning Blur Into Time

Here is the central idea. It rests on a simple fact of optics.

When a microrobot sits exactly in focus, its edges look crisp. Sharp high-frequency detail dominates. When it drifts above or below the focal plane, the image goes soft and smooth. Low-frequency blur takes over. The character of that blur therefore encodes how far the device has moved along the depth axis.

The researchers built a component to read it. They named it the Phase-Coded Defocus Encoder, or PCDE. The encoder passes the image through a bank of filters. Each filter is tuned to a different band of spatial detail. Those bands then arrive one after another across a short series of time-steps.

Low-frequency blur comes early in the sequence. Fine in-focus detail comes late. In effect, the encoder converts the frequency content of a still frame into a temporal signal. That is exactly the format a spiking network was built to consume. Notably, four time-steps suffice to cover the full working depth range of the optical trap.

A Neuron That Keeps Its Balance

A second component tackles a subtler problem. The benchmark contains eighteen microrobot shapes. Each one drives the network’s neurons differently.

Some shapes push the network into overactivation, where far too many neurons fire. That wastes energy. Other shapes leave neurons so quiet they stop learning altogether. A neuron that never fires produces no useful training signal.

To steady this, the authors designed the Adaptive-Threshold Leaky Integrate-and-Fire neuron, shortened to AT-LIF. Rather than firing at a fixed voltage, it adjusts its own threshold. The adjustment tracks a compact summary of the input flowing in. When input rises, the threshold rises to prevent runaway firing. When input falls, the threshold drops to rescue neurons that would otherwise fall silent.

This acts as a gain-control loop. It resembles the self-regulating behavior seen in real cortical neurons. Moreover, the payoff is concrete. Across all eighteen shapes, the firing rate stays within three percent of its target. Layer-wise spike-rate variance drops by forty-three percent against a fixed-threshold neuron.

Attention That Respects the Blur

The third piece rebuilds the attention mechanism behind modern transformers in fully spike-driven form. Ordinary spiking attention would treat every time-step identically. That would throw away the whole point of the encoder, since each time-step carries a different band of spatial detail.

The Defocus-Aware Spiking Self-Attention block, called DASSA, fixes this. It adds a learnable phase bias tied to the encoder’s time-step index. Different attention heads can therefore specialize in different scales of blur.

Every operation inside the block reduces to sparse binary logic. No floating-point multiplication occurs. The accuracy gain thus arrives without a matching compute bill. An ablation confirms the piece earns its place. Removing the phase bias dropped pose accuracy by more than one point and worsened depth error.

How It Performed

The authors trained SpikeMicroNet from scratch. They measured it against five dense networks and two other spiking models. A strict protocol kept every microrobot instance out of both training and test sets.

One detail deserves attention first. Pose classification is scored on a type-aware subset of six geometries. Depth regression is scored across the full set of eighteen. That split reflects which labels the dataset provides, not any restriction in the architecture.

Accuracy and Speed

On pose classification over those six geometries, SpikeMicroNet reached 95.1 percent top-1 accuracy. The figure sits about one point below the strongest and largest dense transformer. It leads every spiking rival. It also beats three of the five dense networks outright.

Measured latency landed at 4.1 milliseconds on an A100 graphics card. No model in the comparison ran faster.

Reading the Energy Claim Correctly

The compute story needs careful framing. The authors themselves are careful about it.

Their headline figure of 0.61 millijoules per frame is a theoretical model-side estimate. Operation counts produced it, not a wattmeter reading from a physical chip. The researchers tallied multiply-accumulate operations for the dense networks. They tallied spike-gated accumulate operations for the spiking ones. Standard hardware assumptions followed, at 4.6 picojoules per 32-bit multiply-accumulate and 0.9 picojoules per spike-triggered accumulation.

Several real costs sit outside that tally. Camera acquisition, image preprocessing, host input and output, memory traffic, and on-chip routing are all excluded.

Read correctly, then, the 28.4 times reduction against the heavyweight vision transformer is an algorithmic ratio. So is the 6.75 times reduction against a mid-size residual network. What these ratios establish is candidacy. A workload dominated by sparse binary accumulations, almost free of floating-point multiplication, is precisely what an event-driven chip such as Loihi was built to run. Confirming the numbers in silicon remains work still to be done.

The Depth Result Flips Under Real Conditions

On depth estimation across all eighteen geometries, SpikeMicroNet reached a mean absolute error of 1.78 micrometres. A dense residual network still holds the crown on clean benchmark data at 1.55 micrometres. The authors decline to overclaim on this point.

What Happens Once the Bench Gets Messy

Then the story changes. Real microscopes suffer laser flicker, illumination drift, and focal planes that never stay perfectly calibrated.

The researchers carried three models into a robustness study. SpikeMicroNet went in alongside the two strongest dense networks. Each faced added sensor noise, brightness swings, and a five percent focal shift.

Under that focal shift, the ranking inverts. SpikeMicroNet posted a depth error of 2.12 micrometres. The residual network came in at 2.22 and the vision transformer at 2.14. SpikeMicroNet was the best of the three. The same holds for pose accuracy under focal drift, where it again finished ahead of both dense baselines.

The authors credit the structure of the encoder rather than statistical luck. Because the blur-to-depth relationship is baked into the input stage, a small miscalibration gets absorbed gently. The network reweights its time-step responses instead of scrambling internal feature maps. Put another way, the model that wins on a calibrated bench is not the model that wins on a working instrument.

Which Shapes Give the Network Trouble

Not every microrobot is equally readable. The largest depth errors clustered on three geometries. Robot 4 came in at 2.18 micrometres, robot 13 at 2.26, and robot 8 at 2.31. Cleaner designs sat near 1.6.

The reasons are geometric. Robot 4 carries elongated asymmetric branches. A small shift along the depth axis alters only a local piece of its silhouette while the outline stays put. Meanwhile, robot 8 packs compact repeating structures. Their individual responses blend together once blur suppresses fine boundary detail. Robot 13 combines high-curvature features with partially overlapping components. The same apparent blur can therefore match more than one nearby depth.

Importantly, every model in the benchmark struggles on these same three shapes. The difficulty belongs to the data, not to the spiking backbone.

From Perception Numbers to Control Numbers

Robotics readers will want these metrics in control terms. The authors provide that translation.

The Timing Budget

At 4.1 milliseconds of model latency, perception alone could run near 244 hertz. A typical closed-loop microscope controller cycles at 50 to 100 hertz. That allows 10 to 20 milliseconds per frame in total.

Subtracting perception time leaves 5.9 to 15.9 milliseconds. Camera exposure, frame transfer, preprocessing, controller computation, and the optical steering response all share what remains. The vision step, in short, will probably not be what caps the loop.

Depth Error as Control Jitter

Depth error translates similarly. Treat the clean root-mean-square error of 2.34 micrometres as measurement noise entering a proportional feedback loop. With a moderate gain of 0.5, the authors calculate an expected axial jitter floor near 1.35 micrometres.

Harsher conditions raise it modestly. The floor reaches 1.82 micrometres under the worst noise and 1.59 under focal shift. All three values stay tight enough for repeated coarse axial stabilization. However, the authors note they would not stand in for high-precision metrology.

Why a Wrong Pose Label Matters Less Than It Seems

Pose errors behave differently in a control setting. A wrong label may select the wrong control primitive.

Without temporal smoothing, the clean-test pose error rate is 4.9 percent. A simple three-frame majority vote would drive that to roughly 0.7 percent. The cost is two extra frame intervals. Stream redundancy, in other words, softens the effect of an occasional single-frame mistake.

Looking Inside the Network

To check what the model attends to, the researchers applied Gradient-weighted Class Activation Mapping. The technique highlights which parts of an image drove a prediction.

The heatmaps concentrated tightly on the microrobot body. They also lit up the high-curvature points where its spherical handles attach. Background activation stayed minimal.

The Zero-Shot Segmentation Result

Then came the quantitative test. Thresholding those heatmaps produced binary outlines. The authors compared them against 200 hand-annotated masks.

SpikeMicroNet scored 0.812 mean Intersection-over-Union. The residual network managed 0.764 and the vision transformer 0.781 under the identical procedure. No model in the study ever saw a segmentation label. This amounts to zero-shot localization falling out of a network trained only for pose and depth.

The result carries weight beyond the score. A model that had merely learned background shortcuts would produce diffuse or off-object heatmaps. It would not outline a shape it was never shown how to outline. Scoring highest here indicates the spiking network learned genuine geometric structure rather than artifacts of the imaging setup.

The authors stay measured about how far to push this. Those outlines come from thresholded heatmaps scored on a deliberately small annotated set. The finding therefore stands as localization evidence rather than a segmentation benchmark. Even so, a thresholded heatmap could serve as a lightweight region-of-interest cue for downstream control.

The Numbers at a Glance

MetricSpikeMicroNetResNet-50ViT-B/16
Model latency (A100, batch 1)4.1 ms6.8 ms9.7 ms
Estimated compute per frame0.61 mJ4.12 mJ17.30 mJ
Pose accuracy, 6-type subset95.1%94.6%96.2%
Clean depth error, 18 geometries1.78 um1.55 um1.61 um
Depth error under 5% focal shift2.12 um2.22 um2.14 um
Zero-shot segmentation, mIoU0.8120.7640.781
Parameter count14.7 M25.5 M86.0 M

Compute figures rest on operation counts at 4.6 picojoules per multiply-accumulate and 0.9 picojoules per spike accumulation. Latency covers the perception model only. That corresponds to a throughput ceiling near 244 hertz.

Where This Could Go

Point-of-Care Biomedical Tools

The most immediate payoff lies in portable clinical instruments. A device steering microrobots for single-cell surgery or targeted drug delivery has a strict power and heat budget. A perception module estimated at a fraction of a millijoule leaves room for everything else. Deployed on a neuromorphic accelerator beside the camera, this style of vision could keep the loop fast without draining a battery or warming the sample.

Microscopy Beyond Microrobots

The authors expect the same encoder-neuron-attention pattern to carry over elsewhere. They name light-sheet microscopy of organoids, where researchers grow miniature tissue models and track structures through depth. They also name high-throughput cytometry, where cells stream past a sensor faster than a heavy network can follow. In each case, the trick of reading depth out of blur should transfer.

Training Without Mountains of Data

Looking further out, pairing this backbone with physics-informed simulation could help labs adopt new microrobot designs quickly. Fresh perception systems could be trained without collecting mountains of new labeled data.

The authors stay candid about what remains undone. Their closed-loop control results are analytical rather than tested on a live microscope. They flag two clear next steps, validation on real optical-tweezer hardware and measurement on an actual neuromorphic chip. Even so, the design gives the field a concrete starting point that few expected this soon.

The Takeaway

SpikeMicroNet reframes an old assumption. Accurate perception need not be expensive perception.

The researchers encoded optical blur as time. They steadied their neurons with an adaptive threshold. Then they aligned attention to the physics of defocus. The result keeps pace with dense networks on accuracy while running on roughly an order of magnitude less estimated compute.

More interesting still, the model that finishes second on a pristine benchmark finishes first once the focal plane drifts. That is the condition a working microscope actually lives in. Where tiny machines are meant to work inside our bodies, a lighter and steadier set of eyes may be what lets them finally go to work.


Based on: Sajid, M. Z., Hamid, M. F., Alshenaifi, R., and Khan, N. A. (2026). SpikeMicroNet: Neuromorphic Visual Sensing for Energy-Efficient Optical Microrobot Pose and Depth Estimation under Microscopy. Scientific Reports. https://doi.org/10.1038/s41598-026-63305-5

Related Articles

PHP Code Snippets Powered By : XYZScripts.com
★

Track This Company

Create a free account to add companies to your watchlist and get notified when patents, funding, or key developments change.