feat: Contrastive CSI Embedding Model — ADR-024 (all 7 phases) #52
Reference in New Issue
Block a user
Delete Branch "feat/adr-024-contrastive-csi-embedding"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Full implementation of ADR-024: Contrastive CSI Embedding Model with Deep RuVector Integration.
Turns WiFi CSI signals into reusable 128-dim fingerprints for room identification, anomaly detection, person re-identification, and cross-environment transfer — all in 55 KB at INT8, fitting comfortably on an ESP32.
Phases 1-5 (core embedding pipeline):
embedding.rs(909 lines): ProjectionHead, CsiAugmenter (5 augmentations), InfoNCE loss, EmbeddingExtractor, FingerprintIndex (4 types), PoseEncoder, cross-modal loss, quantized validationgraph_transformer.rs: Addedembed()method to CsiToPoseTransformertrainer.rs: Addedcontrastiveloss,pretrain_epoch()for self-supervised SimCLRrvf_container.rs: AddedSEG_EMBED(0x0C) for embedding model packagingmain.rs: Added--pretrain,--pretrain-epochs,--embed,--build-indexCLI flagsPhase 7 (deep RuVector integration):
Total: 3,352 lines added across 8 files, 272 tests (all pass)
Test plan
cargo check -p wifi-densepose-sensing-servercompiles cleancargo test -p wifi-densepose-sensing-server— 272 tests pass (189 lib + 49 bin + 16 rvf + 18 vitals)Closes #50
Generated with claude-flow