Neuromorphic Sensors and Edge Applications¶
Pairing a blazing-fast event-driven neuromorphic chip with a sluggish thirty-frame-per-second camera wastes half the architectural magic before the first spike ever fires. In this closing section of the Cognition Compendium, we explore event cameras, silicon cochleas, and electronic skins, examine the edge applications where neuromorphic systems genuinely shine, weigh them honestly against ultra-low-bit mobile NPUs, and reflect on the future of brain-like computing.
Closing the Sensory Loop Without Frame Wastage¶
-
Imagine hiring an Olympic sprinter with lightning-fast reflexes to guard an empty corridor, then locking them inside a booth where someone slides a printed photograph under the door once every thirty-three milliseconds. For hours when nothing moves in the hallway, the guard still has to scan millions of identical wallpaper pixels on every single photograph. Then, when a stray tennis ball zips past between photographs, it appears on the print as an unreadable streak!
-
That awkward mismatch is exactly what happens when engineers plug a conventional digital camera into a spiking neuromorphic processor. Standard Active Pixel Sensor (APS) cameras integrate light synchronously across every pixel on a rigid global shutter clock (typically \(30\) or \(60\,\text{Hz}\)). Feeding dense redundant frames into an event-driven chip forces expensive frame-to-spike encoding, destroys microsecond timing information, and wastes milliwatts digitising static walls and ceilings.
-
Biological sensory organs never worked in frames. Retinal ganglion cells in your eye, hair cells inside your inner ear, and mechanoreceptors in your fingertips stay quietly idle when the world is still and fire crisp asynchronous spikes the instant something changes. Neuromorphic sensors replicate that exact biological design in silicon, emitting sparse native event streams that plug straight into spiking silicon from end to end.
Dynamic Vision Sensors and Event Cameras¶
-
Instead of a film crew snapping a whole group photograph thirty times a second, picture every single pixel on a sensor chip as an independent watchkeeper holding a tiny notepad. Each watchkeeper remembers the last brightness level it saw and stays completely silent until the light landing on its own microscopic spot grows noticeably brighter or dimmer, at which moment it calls out its coordinates, timestamp, and direction of change!
-
That simple, beautiful principle defines a Dynamic Vision Sensor (DVS), often called an event camera (pioneered by Tobias Delbruck, Patrick Lichtsteiner, and Christoph Posch at ETH Zurich and now manufactured commercially by companies such as Prophesee and iniVation). Every independent pixel contains a logarithmic photoreceptor wired to an analogue differencing amplifier and two comparators. The pixel memorises a reference log-intensity \(L_{\text{ref}}(x, y) = \log I(x, y, t_{\text{ref}})\) and emits an asynchronous event tuple \((x, y, t, p)\) the exact microsecond its log-brightness drifts past a contrast threshold \(C > 0\).
- Whenever a pixel fires an ON (\(p = +1\)) or OFF (\(p = -1\)) event, it immediately resets its internal reference \(L_{\text{ref}}\) to the new log-intensity and goes silent again. Notice why the logarithm is so clever! Because \(\Delta \log I \approx \Delta I / I\), the sensor measures relative contrast rather than raw photon count. A \(15\%\) shadow edge triggers an identical event whether you are filming inside a dim moonlit warehouse or outdoors in glaring midday sunshine.
-
Operating pixels asynchronously and logarithmically grants event cameras four physical superpowers that conventional cameras struggle to match.
- Microsecond temporal resolution. Events carry timestamps accurate to roughly \(1\,\mu\text{s}\) to \(10\,\mu\text{s}\) (equivalent to tens of thousands of frames per second), yet without drowning downstream memory in gigabytes of redundant video.
- Zero motion blur. Because pixels never keep an exposure shutter open across milliseconds while fast objects streak across them, spinning helicopter blades, speeding golf balls, and vibrating industrial machinery trace razor-sharp ribbons through \((x, y, t)\) space-time!
- Over \(120\,\text{dB}\) dynamic range. Ordinary \(60\,\text{dB}\) cameras either wash out bright sunlit windows into solid white or crush dark tunnel exits into solid black. Independent logarithmic pixels comfortably read both dark pedestrians and blazing oncoming headlights inside the very same scene.
- Milliwatt power and natural data compression. When the camera sits still facing a quiet room, almost no pixels fire (aside from tiny background thermal shot noise), slashing sensor-to-processor bandwidth by \(10\times\) to \(1{,}000\times\).
-
Downstream algorithms consume these \((x, y, t, p)\) streams in two main ways. Pure neuromorphic pipelines route each AER spike packet directly into a spiking neural network core. Hybrid pipelines accumulate recent events into a time surface \(S(x, y, t) = \exp(-(t - t_{\text{last}}(x, y)) / \tau)\), which acts like a fading glowing trail marking where moving edges passed most recently, or into compact space-time voxel grids ready for lightweight convolutional networks.
Silicon Cochleas and Electronic Tactile Skins¶
-
Vision is only one sense where nature prefers sparse events over rigid clocks. Neuromorphic engineers have built equally elegant event-based front ends for hearing and touch.
-
Silicon cochleas (connecting to chapter 10). Back in chapter 10 (Audio and Speech), we saw how conventional speech pipelines chop audio into fixed \(25\,\text{ms}\) slices and run Fast Fourier Transforms on every frame, even during long stretches of silence. The human inner ear works differently. Its spiralling basilar membrane acts as a continuous physical bank of overlapping band-pass filters tuned smoothly from high pitches near the base to low pitches near the apex, and microscopic inner hair cells convert those mechanical vibrations straight into phase-locked neural spikes. A silicon cochlea implements that exact filter bank in subthreshold analogue CMOS, outputting asynchronous AER spikes tagged by frequency channel while drawing tens of microwatts!
-
Electronic tactile skins (e-skins). Pick up a wet glass of water and feel how quickly your fingers tighten the split second it begins to slip. Human skin achieves that reflex through specialised mechanoreceptors, combining slowly adapting sensors for steady grip force with rapidly adapting corpuscles that fire sharp spike bursts upon micro-slip and surface vibration. Neuromorphic electronic skins embed piezoresistive or capacitive sensor patches with local event encoders across robotic hands and prosthetic fingertips, remaining silent during stable holds and firing sub-millisecond slip spikes the instant friction breaks.
Killer Real-World Edge Applications¶
-
Where does the end-to-end partnership of event sensors and neuromorphic processors genuinely beat conventional silicon today? The winning applications all share at least one of three traits, extreme physical speed, sub-milliwatt always-on battery budgets, or continuous streaming biosignals.
- High-speed agile drone dodging and optical flow (connecting to chapter 14). In chapter 14 (Autonomous Systems), we saw how perception latency puts a hard speed limit on autonomous flight. If someone throws a ball at \(10\,\text{m/s}\) toward a quadrotor from two metres away, a standard \(30\,\text{fps}\) camera loses \(33\,\text{ms}\) just waiting for its next frame, letting the ball travel a third of a metre unseen! Event-camera drones measure sparse event-based optical flow directly from local space-time slopes (\(\partial t / \partial x, \partial t / \partial y\)) in under a few milliseconds, dodging hurled obstacles and weaving through dense woodland where standard cameras dissolve into motion blur.
- Always-on sub-milliwatt keyword spotting. Wireless earbuds, smart hearing aids, and tiny environmental monitors run on miniature batteries that cannot afford a \(50\,\text{mW}\) wake-word processor listening around the clock. Commercial ultra-low-power spiking chips (such as SynSense Xylo, BrainChip Akida, and Innatera spiking microcontrollers) pair cochlear event front ends with compact recurrent SNNs running between \(50\,\mu\text{W}\) and \(500\,\mu\text{W}\). The tiny spiking chip stays awake twenty-four hours a day and taps the heavier host processor on the shoulder only when the user actually speaks a wake phrase.
- Wearable ECG, EEG, and biosignal anomaly detection. Heartbeats (ECG), brain rhythms (EEG), and muscle traces (EMG) are naturally sparse, slow, continuous waveforms recorded around the clock on coin-cell patches or medical implants. Delta-modulating these traces into positive and negative spikes lets on-body neuromorphic processors detect cardiac arrhythmias or early epileptic seizure patterns at tens of microwatts directly on the skin, preserving patient privacy and eliminating power-hungry continuous Bluetooth radio streaming.
- Prosthetic sensorimotor control (connecting to chapter 12). Bridging chapter 12's brain-machine interfaces and myoelectric limbs with neuromorphic electronic skins allows bionic hands to execute local spinal-cord-style slip reflexes in milliseconds, adjusting grip force smoothly before a fragile cup ever starts to fall.
Honest Comparison With Ultra-Low-Bit Edge NPUs and Toolchains¶
- An honest engineering textbook must also ask the hard pragmatic question. Over the past five years, ultra-low-bit quantised artificial neural networks running on commodity mobile Neural Processing Units (NPUs) (which we studied deeply in chapter 20) have grown astonishingly fast, tiny, and cheap. When should an engineer choose neuromorphic hardware instead of an INT4 or INT8 edge NPU?
-
Comparing the two approaches side by side clears away hype quickly.
- Where mobile INT4 and INT8 edge NPUs win today. Whenever inputs are dense \(30\,\text{fps}\) RGB images, dense text tokens for on-device small language models, or large vision transformers, commodity mobile NPUs (such as Apple Neural Engine, Qualcomm Hexagon, and ARM Ethos-U) are hard to beat. They benefit from massive consumer smartphone volume, dollar-scale chip pricing, and mature one-click compiler pipelines straight from PyTorch or ONNX.
- Where neuromorphic silicon wins today. Whenever a system must stay continuously alert under \(1\,\text{mW}\) on a tiny battery, react in under a millisecond to native DVS cameras or tactile skins, process sparse streaming audio or biosignals that sit \(90\%\) silent, or adapt locally on-device without cloud connectivity, event-driven neuromorphic silicon unlocks efficiency and latency regimes that synchronous frame-based NPUs simply cannot reach.
-
Historically, the biggest practical brake on neuromorphic adoption has not been silicon physics alone, it has been software ecosystem maturity. Deep learning engineers expect effortless autograd, clean debugging, and portable model checkpoints. Happily, an open-source neuromorphic software stack has matured rapidly to narrow that gap.
- snnTorch and Norse embed differentiable surrogate-gradient spiking layers directly inside PyTorch, letting practitioners train spiking networks with familiar Python loops and GPU acceleration.
- Lava (an open framework initiated by Intel) models concurrent event-driven processes cleanly, running the same graph in software simulation before compiling it onto Loihi 2 neurocores.
- NIR (Neuromorphic Intermediate Representation) (Pedersen, Eshraghian, et al., Nature Communications, 2024) acts as a shared portable interchange format (much like ONNX for spiking hardware), expressing continuous-time neuron and synapse graphs so one trained SNN can deploy seamlessly across snnTorch, Norse, Lava, SpiNNaker, Loihi, and Xylo without hand-rewriting hardware code.
Looking Ahead at the End of the Cognition Compendium¶
-
Reaching the final page of chapter 26 is a wonderful moment to pause, take a quiet breath, and look back across the whole Cognition Compendium. We began in chapters 01 through 05 with humble building blocks, vectors pointing through space, matrices rotating coordinates, derivatives measuring slope, and probability distributions taming uncertainty. Across chapters 06 to 15, those mathematical foundations grew into learning machines that read language, recognise visual scenes, hear speech, plan robotic motion, reason over graphs, and mirror the architecture of human cognition and living cortex. From chapters 16 to 25, we descended beneath the abstractions into operating systems, algorithms, production engineering, GPU kernels, quantised inference, distributed systems, and frontier computing paradigms.
-
Neuromorphic computing brings our twenty-six-chapter journey back full circle. Early computer science gained its immense power by separating abstract logic from physical matter through clocked von Neumann instructions, and modern AI scaled that separation into planet-spanning datacentres. Neuromorphic silicon gently reminds us that physics, biology, and computation are still deeply intertwined. Inside our own skulls, a silent, wet, noisy network of eighty-six billion spiking neurons navigates an unpredictable world, composes poetry, and holds a lifelong conversation on roughly twenty watts of power.
-
The next decade of intelligent machines will almost certainly be heterogeneous rather than winner-take-all. Vast datacentre GPUs will keep pushing the frontier of training and deep reasoning, quantised edge NPUs will power rich everyday perception inside phones and laptops, and ultra-frugal neuromorphic sensors and spiking co-processors will act as the reflex nervous system right where silicon touches the physical world. Wherever you take the mathematics, code, and intuition from these twenty-six chapters next, build with curiosity, honesty about trade-offs, and deep care for the human minds our tools exist to serve.
Take-Home¶
- Feeding rigid \(30\,\text{fps}\) camera frames into an event-driven spiking chip wastes bandwidth and latency on unchanging backgrounds, so neuromorphic sensors close the loop by emitting asynchronous spikes directly at the physical transducer.
- Dynamic Vision Sensors (event cameras) measure local logarithmic brightness changes (\(\Delta \log I \ge \pm C\)) independently at every pixel, delivering microsecond latency, zero motion blur, over \(120\,\text{dB}\) dynamic range, and milliwatt sparse event streams.
- Silicon cochleas and neuromorphic electronic tactile skins extend the exact same event-driven biology to continuous audio filterbanks and sub-millisecond robotic slip reflexes.
- Neuromorphic hardware excels in high-speed event-camera drone dodging, sub-milliwatt always-on keyword spotting, wearable ECG/EEG monitoring, and reflexive prosthetic control, whereas commodity INT4/INT8 mobile NPUs remain superior for dense RGB frames and large transformers.
- Open toolchains including snnTorch, Norse, Lava, and the Neuromorphic Intermediate Representation (NIR) are steadily closing the software gap, pointing toward a heterogeneous future where frugal spiking co-processors work alongside dense edge NPUs and cloud GPUs.
Coding Tasks (use CoLab or notebook)¶
-
Build a DVS event camera simulator from scratch on a \(32 \times 32\) pixel grid. Fly a bright disc rapidly across the sensor over \(40\) micro-steps, compare the motion-blurred long-exposure frame from a conventional camera against the crisp asynchronous ON/OFF polarity map and space-time \((x, t)\) ribbon emitted by the event camera, and measure event compression versus dense frame reads.
import jax.numpy as jnp import matplotlib.pyplot as plt H, W, T = 32, 32, 40 yy, xx = jnp.meshgrid(jnp.arange(H), jnp.arange(W), indexing="ij") # Rapid diagonal flight of a glowing circular disc over one 33 ms frame period cx_path = jnp.linspace(5.0, 26.0, T) cy_path = jnp.linspace(24.0, 7.0, T) + 2.5 * jnp.sin(jnp.linspace(0.0, jnp.pi, T)) frames = [] for t in range(T): dist2 = (xx - cx_path[t]) ** 2 + (yy - cy_path[t]) ** 2 img = 1.0 + 18.0 * jnp.exp(-dist2 / (2.0 * 2.4 ** 2)) frames.append(img) frame_stack = jnp.stack(frames, axis=0) blurred_frame = jnp.mean(frame_stack, axis=0) # Conventional global shutter integration # Asynchronous DVS pixel simulation: fire when |log(I) - L_ref| >= C C = 0.35 L_ref = jnp.log(frame_stack[0]) on_events, off_events = [], [] ev_x, ev_t, ev_p = [], [], [] for t in range(1, T): L_now = jnp.log(frame_stack[t]) dL = L_now - L_ref on_mask = dL >= C off_mask = dL <= -C fired = on_mask | off_mask L_ref = jnp.where(fired, L_now, L_ref) on_events.append(on_mask.astype(jnp.float32)) off_events.append(off_mask.astype(jnp.float32)) # Collect 1D horizontal x-coordinates for space-time ribbon plot on_xs = xx[on_mask] off_xs = xx[off_mask] if on_xs.size > 0: ev_x.append(on_xs); ev_t.append(jnp.full_like(on_xs, t)); ev_p.append(jnp.ones_like(on_xs)) if off_xs.size > 0: ev_x.append(off_xs); ev_t.append(jnp.full_like(off_xs, t)); ev_p.append(-jnp.ones_like(off_xs)) on_stack = jnp.stack(on_events, axis=0) off_stack = jnp.stack(off_events, axis=0) # Recent polarity snapshot over final 4 micro-steps (sharp, blur-free edges) recent_pol = jnp.sum(on_stack[-4:], axis=0) - jnp.sum(off_stack[-4:], axis=0) total_events = int(jnp.sum(on_stack + off_stack)) dense_reads = T * H * W print(f"Total DVS events: {total_events} vs Dense pixel reads: {dense_reads} ({dense_reads / max(total_events, 1):.1f}x reduction)") all_x, all_t, all_p = jnp.concatenate(ev_x), jnp.concatenate(ev_t), jnp.concatenate(ev_p) fig, axes = plt.subplots(1, 3, figsize=(12.2, 3.6)) axes[0].imshow(blurred_frame, cmap="gray") axes[0].set_title("Conventional Camera (Motion Blur)"); axes[0].axis("off") axes[1].imshow(recent_pol, cmap="bwr_r", vmin=-2.0, vmax=2.0) axes[1].set_title("DVS Polarity Snapshot (Blue ON, Red OFF)"); axes[1].axis("off") axes[2].scatter(all_t[all_p > 0], all_x[all_p > 0], s=8, color="#3498db", alpha=0.7, label="ON (+1)") axes[2].scatter(all_t[all_p < 0], all_x[all_p < 0], s=8, color="#e74c3c", alpha=0.7, label="OFF (-1)") axes[2].set_title("Space-Time Event Ribbon (x vs t)"); axes[2].set_xlabel("Micro-step t"); axes[2].set_ylabel("Pixel X") axes[2].legend(); plt.tight_layout(); plt.show() -
Estimate event-based optical flow directly from an exponential time surface. Sweep a sharp moving edge across a \(64\)-pixel 1D sensor at five true speeds, record noisy microsecond-jittered ON events, construct the decaying time surface \(S(x) = \exp(-(t_{\text{now}} - t_{\text{last}}(x)) / \tau)\), and recover speed \(\hat{v} = 1 / (dt / dx)\) by fitting a local space-time line.
import jax import jax.numpy as jnp import matplotlib.pyplot as plt key = jax.random.PRNGKey(19) W, dt_ms, T_steps = 64, 0.25, 220 x_grid = jnp.arange(W, dtype=jnp.float32) true_speeds = [0.45, 0.75, 1.10, 1.55, 2.10] # pixels per millisecond def run_flow_trial(v_true, k_jit): L_ref = jnp.log(1.0 + 10.0 * jax.nn.sigmoid((6.0 - x_grid) * 2.2)) t_last = jnp.full(W, -1e4) ev_x_list, ev_t_list = [], [] C = 0.45 for step in range(1, T_steps): t_ms = step * dt_ms edge_pos = 6.0 + v_true * t_ms # Smooth bright step moving rightward across the 1D pixel strip intensity = 1.0 + 10.0 * jax.nn.sigmoid((edge_pos - x_grid) * 2.2) L_now = jnp.log(intensity) on_mask = (L_now - L_ref) >= C L_ref = jnp.where(on_mask, L_now, L_ref) t_last = jnp.where(on_mask, t_ms, t_last) xs = x_grid[on_mask] if xs.size > 0: ev_x_list.append(xs) ev_t_list.append(jnp.full_like(xs, t_ms)) ex = jnp.concatenate(ev_x_list) et = jnp.concatenate(ev_t_list) + 0.12 * jax.random.normal(k_jit, ex.shape) # Restrict fit to interior pixels away from sensor borders valid = (ex >= 10.0) & (ex <= 52.0) xv, tv = ex[valid], et[valid] # Closed-form least squares fit for t = slope * x + intercept -> v_hat = 1 / slope xm, tm = jnp.mean(xv), jnp.mean(tv) slope = jnp.sum((xv - xm) * (tv - tm)) / jnp.maximum(jnp.sum((xv - xm) ** 2), 1e-8) v_est = float(1.0 / slope) t_now = (T_steps - 1) * dt_ms time_surface = jnp.exp(-(t_now - t_last) / 8.0) * (t_last > 0.0) return v_est, xv, tv, time_surface est_speeds = [] sample_data = None for idx, v in enumerate(true_speeds): key, kj = jax.random.split(key) v_hat, xv, tv, ts = run_flow_trial(v, kj) est_speeds.append(v_hat) if idx == 2: sample_data = (v, v_hat, xv, tv, ts) print(f"True speed: {v:.2f} px/ms -> Estimated optical flow: {v_hat:.2f} px/ms (err {abs(v - v_hat):.3f})") v_s, vh_s, xv_s, tv_s, ts_s = sample_data fig, axes = plt.subplots(1, 2, figsize=(11.0, 3.8)) axes[0].scatter(xv_s, tv_s, s=14, color="#3498db", alpha=0.8, label="ON Events (x, t)") x_line = jnp.linspace(10.0, 52.0, 50) t_line = jnp.mean(tv_s) + (1.0 / vh_s) * (x_line - jnp.mean(xv_s)) axes[0].plot(x_line, t_line, color="#e74c3c", lw=2.0, label=f"Fitted Slope (v={vh_s:.2f} px/ms)") axes[0].set_title(f"Space-Time Plane Fit (True v = {v_s:.2f} px/ms)"); axes[0].set_xlabel("Pixel X") axes[0].set_ylabel("Event Timestamp (ms)"); axes[0].legend() axes[1].plot([0.3, 2.3], [0.3, 2.3], color="#333", ls="--", lw=1.2, label="Perfect Flow") axes[1].scatter(true_speeds, est_speeds, s=65, color="#27ae60", label="Event Optical Flow") axes[1].set_title("True vs Event-Based Optical Flow Speed"); axes[1].set_xlabel("True Speed (px/ms)") axes[1].set_ylabel("Estimated Speed (px/ms)"); axes[1].grid(alpha=0.3); axes[1].legend() plt.tight_layout(); plt.show() -
Model an always-on neuromorphic wake-word cascade (a \(0.25\,\text{mW}\) silicon cochlea plus spiking spotter waking a \(120\,\text{mW}\) INT8 edge NPU only during genuine wake triggers) against an always-on NPU and a duty-cycled microcontroller on a tiny \(100\,\text{mWh}\) wearable battery. Plot cumulative energy over a realistic \(60\)-second timeline and resulting battery life across wake duty cycles.
import jax.numpy as jnp import matplotlib.pyplot as plt # Realistic 60-second wearable audio timeline at 0.1 s resolution (600 ticks) dt_s, T = 0.1, 600 t_sec = jnp.arange(T) * dt_s # Three brief voice commands totalling ~6% active duty cycle wake_active = (((t_sec >= 8.0) & (t_sec <= 9.2)) | ((t_sec >= 27.0) & (t_sec <= 28.4)) | ((t_sec >= 48.0) & (t_sec <= 49.0))).astype(jnp.float32) P_npu = 120.0 # mW for dense INT8 mobile NPU running continuously P_mcu_listen = 12.0 # mW for conventional microcontroller DSP listener P_neuro = 0.25 # mW for always-on silicon cochlea + SNN wake-word chip # Instantaneous power traces (mW) and cumulative energy (mJ = mW * s) pow_npu = jnp.full(T, P_npu) pow_mcu = P_mcu_listen + wake_active * P_npu pow_neuro = P_neuro + wake_active * P_npu energy_npu = jnp.cumsum(pow_npu * dt_s) energy_mcu = jnp.cumsum(pow_mcu * dt_s) energy_neuro = jnp.cumsum(pow_neuro * dt_s) # Battery life (hours) on a 100 mWh earbud cell across wake duty cycles (0.5% to 25%) battery_mwh = 100.0 duty = jnp.linspace(0.005, 0.25, 50) life_npu = battery_mwh / jnp.full_like(duty, P_npu) life_mcu = battery_mwh / (P_mcu_listen + duty * P_npu) life_neuro = battery_mwh / (P_neuro + duty * P_npu) print(f"60 s Energy -> Always-On NPU: {float(energy_npu[-1]):.1f} mJ | " f"MCU Gate: {float(energy_mcu[-1]):.1f} mJ | Neuromorphic Gate: {float(energy_neuro[-1]):.1f} mJ") print(f"At 1% wake duty -> NPU: {float(life_npu[1]):.2f} h | " f"MCU Gate: {float(life_mcu[1]):.2f} h | Neuromorphic Gate: {float(life_neuro[1]):.1f} h") fig, axes = plt.subplots(1, 2, figsize=(11.2, 3.9)) axes[0].plot(t_sec, energy_npu, color="#e74c3c", lw=2.2, label="Always-On INT8 NPU (120 mW)") axes[0].plot(t_sec, energy_mcu, color="#f39c12", lw=2.2, label="MCU DSP + NPU Gate") axes[0].plot(t_sec, energy_neuro, color="#27ae60", lw=2.4, label="Neuromorphic 0.25 mW + NPU Gate") axes[0].set_title("Cumulative Energy Over 60 s Timeline"); axes[0].set_xlabel("Time (seconds)") axes[0].set_ylabel("Cumulative Energy (mJ)"); axes[0].grid(alpha=0.3); axes[0].legend() axes[1].semilogy(duty * 100.0, life_npu, color="#e74c3c", lw=2.2, label="Always-On NPU") axes[1].semilogy(duty * 100.0, life_mcu, color="#f39c12", lw=2.2, label="MCU DSP Gate") axes[1].semilogy(duty * 100.0, life_neuro, color="#27ae60", lw=2.4, label="Neuromorphic Cascade") axes[1].set_title("100 mWh Wearable Battery Life vs Wake Duty"); axes[1].set_xlabel("Wake-Word Active Duty Cycle (%)") axes[1].set_ylabel("Battery Life (hours, log scale)"); axes[1].grid(alpha=0.3); axes[1].legend() plt.tight_layout(); plt.show()