Draft
Conversation
Co-authored-by: attentiondotnet <566807+attentiondotnet@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add edge AI perception system for local signal analysis
Implement RuView edge AI perception system
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RuView is an edge AI perception system that reconstructs human presence, body pose, breathing rate, and heart rate entirely from WiFi Channel State Information (CSI) — no cameras, no cloud, no labeled data. Runs on ~$1 ESP32 nodes.
Python package (
ruview/)csi/—CSIFrame/CSIBufferwith ESP32 raw-byte and UDP packet parsing;CSIProcessorfor DC removal, SFO phase-ramp correction (linear regression), outlier rejection, EMA smoothingsignal/— Zero-phase Butterworth bandpass/lowpass filters; Welch PSD dominant-frequency estimator; PCA compression, variance/energy feature extractionpresence/— Variance-ratio occupancy detector; adaptive empty-room baseline via slow EMA;calibrate()API for forced re-baselinevitals/—BreathingMonitor(0.1–0.5 Hz band) andHeartRateMonitor(0.8–2.5 Hz band); both use bandpass → Welch PSD → BPMpose/— WiFi DensePose over COCO 17-keypoint skeleton; incremental linear regression from CSI feature vectors; anatomical upright-standing prior before any training dataedge/— Thread-safeEdgeNode(rolling buffer + stale-timeout status);UDPReceiver(background thread) andSerialReceiver(sync-byte + XOR-checksum framing)engine.py—RuViewEngineorchestrates all subsystems; merges frames from multiple nodes sorted by timestampcli.py—ruview demo(synthetic data, no hardware) andruview run --port / --serialESP32 firmware (
firmware/csi_node/)Arduino sketch using
esp_wifi_set_csi_rx_cb()to capture per-packet CSI. Streams to host over UDP (8-byte node ID + double timestamp + RSSI + channel +int8subcarrier pairs) and optionally serial (sync byte0xAA+ uint16 length + payload + XOR checksum). PlatformIO config included.Quick start
No-hardware demo:
ruview demoOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.