1. Module boundaries and the wireless sensing chain
1.1 What CSI measures
Wi-Fi channel state information (CSI) describes the complex channel response on individual subcarriers after a wireless signal has traversed its propagation paths. The receiver generally estimates CSI from training fields in received frames, providing amplitude, phase and reception metadata for each frame. RSSI is a coarser received-signal-strength indicator and does not replace subcarrier-level CSI.[1][2]
Human movement changes some propagation paths. Small thoracoabdominal movements during breathing may also produce extractable periodic changes. A receiver observes the combined channel formed by direct, static reflected and dynamic reflected paths; it does not directly record nasal or oral airflow, lung volume, brain electrical activity or oxygen saturation. Respiratory rate, movement and sleep labels derived from this channel are algorithmic outputs that require the target, link and processing conditions to be specified.[5][6]
This entry concerns dedicated components for research, manufacturing and supply chains, focusing on deliverable CSI acquisition, processing and interface units. A user-facing sleep respiration and movement monitor additionally includes deployment, accounts or a host, reporting and complete application validation. A movement-recognition algorithm is a processing method. These categories are related, but supplying a module does not transfer validation from a finished device or another algorithm.
1.2 Delivery scope and data access
A conventional Wi-Fi communication module can provide connectivity without exposing CSI. Support for a wireless protocol does not establish that its driver, firmware or host interface supplies the required data. Procurement should establish the exact chipset, module board, SDK and firmware versions, CSI controls, data access and validated operating modes, beyond checking that the product supports Wi-Fi.[1][4]
| Delivery form | What the supplier should specify | Capabilities remaining for the integrator |
|---|---|---|
| RF or MCU module exposing CSI | RF chains, antennas, CSI format, driver and examples | Cooperative transmission, timing, preprocessing and sleep algorithms |
| CSI acquisition node | Reception settings, filtering, queues, timestamps and data export | Room layout, link stability and target interpretation |
| Module with algorithms | Raw or diagnostic data, quality states, model and parameter versions | Bed assignment, product reporting and independent validation |
| Paired transmitter/receiver kit | Transmitter, receiver, controls and compatibility list | Installation, coexistence, replication across rooms and maintenance |
CSI extraction tools also have specific compatibility boundaries. Nexmon CSI lists chipset and firmware combinations and documents incompatible changes in its export format.[4] Retain the complete software combination rather than assuming that routers of the same brand, phones in the same family, or any connected module can directly export identical CSI.
1.3 Transmitter, receiver and Internet connectivity
Sensing requires observable wireless frames over time and corresponding reception capabilities. Map which endpoint transmits, which estimates CSI, where processing occurs, and whether Internet access or uploading uses the same RF chain. Where these functions share hardware, test the effects of application traffic, disconnection, channel changes and power-saving behavior on sensing.
| Link arrangement | Dependencies to establish | Acceptance concerns |
|---|---|---|
| Existing AP and CSI receiving node | AP position, protocol, frame source and node association | Traffic lulls, reconnection and AP configuration changes |
| Dedicated transmitter and receiver | Transmission control, link filtering, power and fixed mounting | Actual received timing and losses, beyond the transmission schedule |
| Multiple links or receivers | Channels, clocks, antennas, target mapping and coordination | Missing links, synchronization, bed-partner attribution and fusion failures |
Espressif's official examples include transmission, reception and acquisition using frames returned by a router.[3] They illustrate acquisition topologies rather than guaranteeing compatibility with every AP or validating a sleep algorithm. Check CSI acquisition and Internet reachability separately. Internet access does not establish valid sensing data; Internet loss need not stop acquisition when local frames and processing remain operational.
2. Data formats, reception timing and firmware implementation
2.1 Define a parser contract for the exact platform
Chipsets, PHY modes and training fields may produce different CSI lengths and subcarrier mappings. ESP32 documentation specifies real/imaginary ordering, fields such as LLTF and HT-LTF, and initial invalid-data flags. ESP32-C5 documentation additionally describes HT/VHT/HE configuration and validity information.[1][2] Sharing ESP-IDF does not justify using one fixed-length parser for every platform.
The following items belong in the module's data contract; confirm actual field names for its platform and version. For MAC or device addresses, distinguish the wireless source from the person being sensed. A source address does not by itself identify the sleeper.
| Data item | Required interface description | Parsing and integration checks |
|---|---|---|
| Chipset and CSI format | Chipset, SDK, format version, length and validity flags | Reject incompatible lengths and data marked invalid |
| Subcarriers and training fields | Field categories, indices, ordering, reserved or invalid elements | Do not treat alignment padding, null subcarriers or invalid bytes as signals |
| Complex values | Real/imaginary ordering, signedness, scaling and data types | Compare parsing with official examples and known arrays |
| Frame and link metadata | Source, antenna or stream, bandwidth, channel and frame type | Exclude unrelated links and frames with incompatible settings |
| Time and sequence | Reception-time units, clock base, rollover, sequence and loss counters | Midnight, restart, duplicates and export-queue backlog |
| Reception conditions | RSSI, available noise or gain information, state and configuration | Check whether magnitude jumps accompany reception or configuration changes |
Supply samples covering valid and invalid data, different lengths and configurations, along with the exact parser version. Start a new record segment when configuration changes. Do not concatenate differently ordered arrays into an apparently continuous waveform. A hardware validity flag establishes particular acquisition conditions, not automatic suitability of that frame for respiratory estimation.
2.2 A transmission schedule is not effective sampling
Wi-Fi frame arrivals may be irregular. Medium contention, retries, power saving, application buffering and acquisition queues can change the actual CSI time series.[9] Report accepted frame counts, interval distributions, longest gaps and discard reasons. Specify transmission rate, valid CSI frame rate, resampling rate, analysis-window duration and result-update rate separately.
Define intervals between accepted receptions as Delta_t_i = t_i - t_(i-1). Here t_i comes from the declared reception clock, not the arrival time of serial or network batches at the host. This bookkeeping relationship checks timing without setting a universal sampling limit. Bursts and uniformly spaced receptions can have different implications for continuous sensing even at the same average frame rate.
If the algorithm interpolates irregular CSI onto a fixed time grid, retain original timestamps and gap labels. Declare the maximum fillable gap, method and conditions for withholding an output. Interpolation cannot turn long gaps into genuine measurements; smooth curves may reflect resampling and filtering. Align antenna or subcarrier fusion to the same frame or an explicit synchronization reference rather than pairing export records by row number.
2.3 Callbacks, queues and communication coexistence
ESP-IDF states that the CSI callback runs in the Wi-Fi task context and recommends avoiding lengthy processing and passing data through a queue to a lower-priority task.[1] Assess copying, queue capacity, overflow counters, host throughput and timestamp preservation. Blocking acquisition with full-window analysis, disk writes or uploads can lose data.
Test uploads, firmware updates, heavy traffic, idle power saving, AP restarts and module reassociation. If a platform cannot continuously produce CSI while disconnected or receiving too few frames, report invalid acquisition rather than filling in a zero respiratory rate. Check sensing buffers and network-traffic buffers separately, and deduplicate backfilled records using their original acquisition times.
3. Antennas and rooms define the observable region
3.1 Test sensing regions beyond network coverage
A good communication connection establishes suitability for a communication task. Observability of small respiratory changes additionally depends on geometry between the target and endpoints, reflected paths, antenna orientation, occlusion and selected features. FarSense and WiFi-Sleep use inter-antenna CSI ratios and amplitude/phase processing to address weak signals or blind spots.[5][6] Their structural prerequisites do not directly transfer to modules supplying only single-antenna amplitudes.
Installation drawings should record endpoint coordinates and height, antenna or enclosure orientation, bed position, target posture and major furniture. Establish the effective sensing region before assessing shifts and turns in bed. Communication may remain functional after moving an endpoint, bed or antenna enclosure even though the earlier sensing baseline no longer applies.
| Room or usage change | What to observe | Records to retain |
|---|---|---|
| Bed position, endpoint height or antenna rotation | Amplitude/phase features, weak regions and quality changes | Coordinates, configuration ID, references and failed regions |
| Supine, lateral, prone and covered positions | Period extraction, movement exclusion and recovery from turning | Posture labels, validity and recovery latency |
| Door operation, furniture movement or human occlusion | Background changes, feature drift or blind regions | Raw CSI and states before and after changes |
| Fans, oscillating objects and mechanical vibration | False periodicity, movement alarms and target confusion | Empty and occupied comparisons with equipment states |
| Bed partner, caregiver or adjacent-room activity | Mixed targets, incorrect attribution and interruptions | Separate timed labels for targets and interferers |
| Heavy traffic, power saving or channel changes | Missing frames, configuration boundaries and continuity | Reception intervals, gaps, channels and reinitialization |
Installation acceptance should extend beyond a demonstration at one optimal position. Mark usable, unusable and untested regions, and state when retraining, initialization or layout adjustment is needed. If baseline collection is required, document the empty-room and occupied procedures and versions instead of describing them only as automatic calibration.
3.2 Multiple people and identity attribution
Multiple spectral peaks on a link affected by several moving targets do not necessarily correspond to multiple people. Harmonics, interference and processing artifacts can also produce peaks. Claims for two bed partners or multiple occupants should specify simultaneous capacity, spatial separation, link count, identity assignment and behavior when one person leaves.
MUSE-Fi exploits channel changes dominated by targets close to their respective devices and processes sparse multi-user traffic.[9] It illustrates one particular separation design. It does not establish that a single distant node can provide separate overnight reports for people sharing a bed. Obtain references for each person and include similar respiratory rates, one person turning, caregiver approach and targets exchanging positions.
4. Interpret channel features and sleep outputs in layers
4.1 Amplitude, phase and preprocessing
CSI amplitude and phase may change because of a person, but also because of receiver gain, frequency or sampling offsets, frame-boundary estimation and environmental changes. Specify the sequence of outlier removal, normalization, phase processing, subcarrier selection, filtering and fusion. Distinguish unprocessed CSI, cleaned data, derived features and final outputs.[5][6]
Inter-antenna ratios require corresponding antenna channels and pairing conditions; a second independent reception channel cannot be recovered from one channel without those measurements. Normalization can alter amplitude meaning, filtering can delay events, and resampling can conceal gaps. The sign, scale and phase of a respiratory-related curve need not match a respiration belt, and should not directly be labeled inhaled volume, exhaled volume or absolute chest displacement.
If only results are supplied, request quality and reason codes, installation states, traceable models and necessary diagnostic data. Identify whether processing runs on the module, host or cloud. Test output behavior without Internet connectivity, after failed updates and with incompatible model versions.
4.2 Establish a validity contract for each output
| Output | Meaning to establish | Information retained by the host or report |
|---|---|---|
| Presence or bed occupancy | Presence in a sensing region, or occupancy of a particular bed | Region, states, unknown values and departure events |
| Movement | Feature variation, activity level, or a validated action category | Analysis interval, thresholds, reference labels and false alarms |
| Respiratory rate | Period estimate extracted from accepted windows | Units, window duration, quality, gaps and update time |
| Sleep stage | Model inference within a declared label set | Classes, PSG mapping, time resolution and model version |
| Respiratory events or other derived metrics | A specific task validated for the complete system | Event rules, populations, unknown states and evidence scope |
A respiratory-like period does not establish that someone is asleep. Absence of a period alone does not establish bed exit or cessation of breathing. Distinguish motion contamination, mixed targets, missing frames and low observability. During invalid periods, do not present old values as current; mark filled or inferred results with their processing status.
Sleep staging requires reference labels and population validation. A four-class model merging N1 and N2 into light sleep must not be described as a five-class model distinguishing N1 and N2.[6] Respiratory-rate validation also does not replace apnea or hypopnea event validation. CSI export alone does not establish these application capabilities for a general RF module.
5. Acceptance, maintenance and evidence scope
5.1 Assess acquisition, sensing and sleep tasks separately
RF and data checks first establish stable collection, correct parsing and complete CSI export in target modes. Sensing checks then assess extraction of target movements or periodicity in the intended region. Overnight checks finally evaluate the declared physiological or sleep outputs. Simulated mechanical targets and short breathing experiments provide reproducible inputs, but do not replace natural sleep, multiple occupants or independent-room validation.
| Assessment layer | Test arrangement | Report contents |
|---|---|---|
| Acquisition and interfaces | Specified configurations, sample parsing, load and disconnection | Valid frames, gaps, error flags and discarded data |
| Position and movement sensing | Empty room, target-position grid, movement and interference | Detection, false alarms, unknown regions and recovery time |
| Respiratory rate | Synchronized task-appropriate references, such as belts | Paired error, bias, coverage and posture strata |
| Sleep or respiratory events | Task-specific PSG and professional scoring | Class or event results, participant-level splits and independent tests |
| Deployment and coexistence | New rooms, endpoints, bed partners and network changes | Room-level differences, failures, gaps and reconfiguration |
Report error and valid-data coverage together. Give planned recording duration, evaluable reference duration and paired duration with accepted module outputs separately. If only eight hours of a hypothetical ten-hour recording yield valid pairs, low paired-period error does not establish uninterrupted overnight performance. This 80% example illustrates denominators rather than specifying a module.
Separate training, tuning and testing by person, room or device configuration. Randomly splitting adjacent windows from one night into training and testing does not establish generalization across settings. Report overlap, smoothing, interpolation and clock alignment, and retain invalid periods. Real-time performance should include acquisition, analysis-window and transmission latency.
5.2 Recheck sensing conditions after maintenance
Maintain antennas, enclosures, power supplies and mounts according to product documentation. After replacing an antenna, moving nodes, rearranging furniture or shifting the bed, check formats, links, target regions and output quality. Reconnection alone does not establish restored sensing. For products requiring local training, record the target, time, background conditions and parameter version.
For an overnight data failure, inspect transmission, reception, CSI enablement, parsing, queues, algorithms, upload and reporting in sequence. When CSI exists but respiratory estimates are invalid, examine geometry, movement, quality thresholds and model settings. When no valid frames exist, first repair acquisition. Recovery records should include configurations before and after the intervention, longest gaps, backfill state and functional checks.
5.3 Lock production configurations and verify changes
| Change | Potentially affected behavior | Evidence to revisit |
|---|---|---|
| Chipset, driver, SDK or firmware | CSI enablement, field lengths, scaling and callbacks | Samples, parser version, throughput and error states |
| Antenna, enclosure, RF or power design | Channel features, reception and effective region | Target layouts, empty-room interference and posture matrix |
| Transmission, power saving, protocol or channel settings | Valid frame rate, gaps, coexistence and timing | Reception-interval distribution, disconnection and traffic loads |
| Preprocessing, features, model or thresholds | Periodicity, movement, validity and latency | Locked test sets, independent rooms and overnight references |
| Host, cloud or report processing | Deduplication, gaps, identity and version interpretation | Backfill, restart, incompatible models and historical displays |
Factory and procurement packages should include transmission/reception topology, hardware and firmware lists, installation drawings, the CSI parsing contract, sample data, state definitions, diagnostics and validation configurations. Each claimed metric should map to a target, reference, denominator and software version in the report, beyond a table labeled accuracy.
5.4 Different roles of research evidence
| Evidence | Observation relevant to this entry | Retained boundary |
|---|---|---|
| FarSense, 2019 [5] | Structural prerequisites for two-receiver-antenna ratios and amplitude/phase processing | Paper-specific distances and parameters do not specify arbitrary modules |
| WiFi-Sleep, 2021 [6] | Twelve people, nineteen nights, PSG-based four-class staging and participant-separated training/testing | A bedroom-like laboratory setup does not establish all homes or disease populations |
| Serene author manuscript [7] | Natural bedroom recording from five people in five apartments for over eighty nights | Breathing/movement references were radar, not direct PSG validation in this study |
| BreatheSmart, 2022 [8] | Repeatable experiments with a controlled breathing manikin | Its reflectivity and simulated patterns do not replace clinical event validation |
| MUSE-Fi, 2023 [9] | Devices near targets, multi-user traffic and separation design | Not overnight staging of bed partners using one distant node |
Interface documentation establishes integration capabilities, controlled experiments characterize channel response, and overnight research evaluates specific tasks. Application validation should retain hardware, antennas, frame modes, layout, processing and references. Changes across these conditions require a defined assessment beyond being described merely as a module replacement.
6. Sources
Official documents specify their platform and version. Development examples and research do not establish supplier-model certification or universal parameters. Tables and acceptance suggestions are organized around this entry's integration tasks.
[1] Espressif: ESP32 Wi-Fi Vendor Features. CSI definition, platform fields and callback constraints. The latest page can change; retain the actual production SDK version.
[2] Espressif: ESP32-C5 Wi-Fi Vendor Features, ESP-IDF v6.0. Modes, training fields and validity examples; not a parser specification for other chipsets.
[3] Espressif: official esp-csi project. Transmission, reception and router-based examples; demonstrations or promotional capabilities are not adopted as sleep validation.
[4] SEEMOO: Nexmon CSI project. Chipset, firmware and export compatibility; documentation was inspected without installation, flashing or acquisition.
[5] Zeng et al.: FarSense (2019). Author research manuscript on two-antenna ratios and sensing structures; distances are not universal module specifications.
[6] Yu et al.: WiFi-Sleep (2021). Author-hosted IEEE IoT Journal paper; PSG-based four-class staging and participant-separated evaluation, limited to its complete setup.
[7] Ali et al.: Serene natural-environment sleep monitoring manuscript. Natural bedroom recordings with radar references; external radar validation does not become PSG evidence for this Wi-Fi experiment.
[8] Mosleh et al.: BreatheSmart (2022). NIST-hosted primary paper using breathing-manikin experiments; simulated classification is not overnight patient diagnosis.
[9] MUSE-Fi (2023). Author research manuscript on near-target devices and multi-user traffic; retain deployment prerequisites and data-recovery methods in performance reports.