MEMS IMU Capacitive Transducer Physics, Seismic Desk Waves & OS Permission Hardening
Ollama Modal Top-10 Feature #8: MEMS Accelerometer Keystroke Acoustic Leakage · Category: MEMS Transducers & Mobile Side-Channels · Paired 3D Simulation: Scene 131
Discover how a microscopic silicon proof mass measures picometer capacitances, how keystrokes travel as Rayleigh waves across a desk, and how modern mobile OS rate limits neutralize IMU eavesdropping.
Governing Physical Equation: H(ω) = 1 / (ω₀² - ω² + j·ω·ω₀/Q), f_alias = | f_signal - k · f_sample |
5-Stage Theoretical & DSP Curriculum
- Stage 1: Micromachined Silicon Proof-Mass & Differential Capacitance
A MEMS accelerometer suspends a microscopic silicon proof mass (m ≈ 1–5 µg) on folded polysilicon flexures between fixed differential capacitor fingers C_1, C_2. External acceleration a(t) deflects the mass by Δx = a / ω₀², producing sub-femtofarad capacitance shifts converted to voltage by a chopper-stabilized charge amplifier.
m·ẍ + c·ẋ + k·x = -m·a_ext(t), ΔC ≈ 2·C₀·(Δx / d_gap) - Stage 2: Keystroke Impulse & Rayleigh Flexural Wave Propagation on Desks
Pressing a mechanical key imparts a 0.5–1.5 N vertical impulse (5–15 ms duration) into the desk surface, launching flexural bending waves (c_B ∝ √f) and airborne acoustic waves. Because solid wood or glass has much lower geometric spreading loss than air for contact vibrations, a phone resting on the same hard tabletop receives a direct Z-axis impulse.
c_bending(f) = ( (E · h²) / (12 · ρ · (1 - ν²)) )^{1/4} · √(2π · f) - Stage 3: Nyquist Rate Limits & Temporal Aliasing (Gyrophone / STAG)
According to the Shannon-Nyquist theorem, an IMU sampled at f_s = 200 Hz has a strict Nyquist ceiling of f_N = 100 Hz. Vibrations between 100 Hz and 200 Hz fold (alias) backward into [0, 100 Hz] unless an analog anti-aliasing LPF precedes the ADC. Early smartphone IMUs lacked tight low-pass filters, allowing fundamental male/female vocal F0 (85–250 Hz) to fold into the baseband—a vulnerability patched by modern hardware LPFs and OS rate caps.
f_aliased = | f_true - round(f_true / f_s) · f_s | - Stage 4: Modern Android 12+ (`HIGH_SAMPLING_RATE_SENSORS`) & W3C Browser Defenses
Android 12+ enforces a strict 200 Hz ceiling on `SensorManager` unless an app explicitly declares `HIGH_SAMPLING_RATE_SENSORS`, and Chromium/WebKit round `devicemotion` values to 0.1 m/s² / 0.1°/s. Amplitude quantization at 0.1 m/s² sets a quantization noise floor ~35 dB above micro-acoustic speech vibrations, completely blinding browser-based IMU speech recovery.
SNR_quant = 6.02 · B_effective + 1.76 dB - Stage 5: Physical Elastomer Decoupling (4 mm Neoprene Desk Mat)
Placing a 4 mm closed-cell neoprene or natural rubber desk mat under the keyboard and resting the phone off the desk surface inserts an impedance mismatch. Attenuates high-frequency keystroke impact transients by 14–22 dB before they enter the desk slab.
R_reflection = (Z_desk - Z_neoprene) / (Z_desk + Z_neoprene) > 0.92
Reference Implementation — mems_imu_defense_sim.py (Python 3 (MEMS Aliasing & Quantization Defense Simulator))
import numpy as np
def aliased_frequency_hz(f_signal: float, f_sample: float) -> float:
"""Computes the folded baseband frequency after discrete sampling at f_sample."""
k = round(f_signal / f_sample)
return float(abs(f_signal - k * f_sample))
def simulate_browser_quantization_snr(peak_accel_ms2: float = 0.008, quant_step: float = 0.1) -> float:
"""
Demonstrates how W3C browser quantization (0.1 m/s^2 step) zeroes out
micro-acoustic speech vibrations (~0.008 m/s^2).
"""
t = np.linspace(0, 1.0, 200, endpoint=False)
raw_signal = peak_accel_ms2 * np.sin(2 * np.pi * 85.0 * t)
quantized = np.round(raw_signal / quant_step) * quant_step
residual_power = np.mean(quantized ** 2)
return float(residual_power)
if __name__ == "__main__":
for f in [85, 135, 190, 240]:
print(f"True Freq: {f:3d} Hz @ fs=200 Hz -> Aliased Baseband Freq: {aliased_frequency_hz(f, 200.0):5.1f} Hz")
p_out = simulate_browser_quantization_snr()
print(f"Quantized Browser IMU Power for 0.008 m/s^2 Speech Vibration: {p_out:.6f} (0.0 = Completely Masked)")
Calibrated Laboratory Hardware BOM
- 4 mm High-Density Neoprene Desk Mat ($15) — Shore 40A Elastomer, -16 dB Impact Impulse Isolation. Role: Physical Keystroke Vibration Decoupling
- Bosch BMI270 / TDK ICM-42688-P 6-Axis IMU Breakout ($14) — 16-bit ADC, Hardware Programmable Anti-Alias LPF. Role: Educational MEMS Bench Experimentation
Defensive Countermeasures & Lab Verification
- You can verify your browser’s IMU privacy protection directly on Scene 49 of this site: when resting still on a table while you speak normally, quantized browser `devicemotion` readings remain flat.
- In Android settings or iOS Safari (`Settings → Safari → Motion & Orientation Access`), you can disable web motion sensor access globally.
Frequently Asked Questions
Can a website today record my voice through my phone’s gyroscope without microphone permission?
No. Following the 2014 Gyrophone disclosure, W3C browser vendors (Chrome, Safari, Firefox) and mobile OS makers capped web motion APIs at 60–200 Hz, added hardware anti-aliasing low-pass filters, and quantized sensor precision so micro-acoustic speech vibrations fall below a single least-significant bit (LSB).
Why does placing a phone on the same hard table as a keyboard leak more than holding it?
Keystrokes deliver mechanical force directly into the table, creating flexural surface waves that shake the phone chassis. Holding the phone or placing a soft neoprene desk pad under the keyboard breaks the solid mechanical coupling path.
What is the Android HIGH_SAMPLING_RATE_SENSORS permission?
Introduced in Android 12 (API level 31), this install-time permission is required for any native app requesting IMU data faster than 200 Hz (5 ms period), preventing background apps from sampling acoustic frequencies above the 100 Hz Nyquist limit.
Peer-Reviewed Citations
- Michalevsky, Y.; Boneh, D.; Nakibly, G. (2014). Gyrophone: Recognizing Speech from Gyroscope Signals. USENIX Security Symposium 2014. Finding: Showed that un-aliased MEMS gyroscopes sampled at 200 Hz leaked fundamental voice pitch F0, prompting industry-wide OS rate caps.
- Marquardt, P.; Verma, A.; Carter, H.; Traynor, P. (2011). (sp)iPhone: Decoding Vibrations from Nearby Keyboards Using Mobile Phone Accelerometers. ACM CCS 2011. Finding: Analyzed desk-coupled keystroke impulse profiles and inter-keystroke timing features.
More Educational Guides
If any of this frightens you: this site documents what signal physics makes possible in a laboratory, which is not evidence about what is happening to any individual. If you feel watched, targeted or unsafe, that distress is real and treatable. Read about paranoia, mental health and how to get help, or call a free 24/7 line — 988 in the US and Canada, 116 123 in the UK and Norway, 13 11 14 in Australia, or find your country at findahelpline.com.