Chapters

37 Sensing with Existing Infrastructure

sensors
sensor
types
infrastructure

A Clear First Route

Imagine a school wants a rough room count without fitting a new sensor above each door. The team must decide whether signs from its Wi-Fi system are good enough for that job. This page starts with one job. Name the real change that the team wants to infer. Then note the old system signal that may act as a clue. Look for a site check against a trusted count and a clear error range. Last, choose reuse the old system, add a new sensor, or use both. Keep the limit in view. A clue can track the wrong cause. A busy network may reflect software work rather than a busy room.

37.0.1 Follow One Decision

  • What real event starts the case?
  • Who needs the result?
  • What action may follow?
  • Which sign comes from the device?
  • How old can that sign be?
  • What can make it wrong?
  • What must still work after a fault?
  • Who owns the next check?
  • What change will force a new test?
  • What proof should the team keep?

A good record answers each point in plain words. It names the site and the people. It names the device and its state. It says when the event took place. It says when the result arrived. It marks doubt instead of hiding it. It also names the safe fallback. That makes the result useful without making it sound more sure than it is.

37.0.2 Know What This Route Leaves Out

This first route is a guide to the main choice. It does not model every field effect or rare fault. The Practitioner sections add signal features, site tests, return on cost, and worked estimates. Under the Hood adds radio path models, drift, false causes, and code used for deeper checks. Those deeper parts add detail to this route. They do not reverse its main claim.

37.0.3 Retell the Proxy Check

Name the real state first. Name the old signal next. Explain why the signal might track the state. Then list another cause that can change the same signal. Test both causes at the site. Compare the result with a trusted count. Mark the range of error. Keep a rule for stale or missing data. Add a direct sensor when the risk needs firmer proof.

37.1 Start With the Measurement Story

Sometimes the best sensor is infrastructure that already exists: Wi-Fi, cameras, traffic loops, phones, meters, or building systems. The story begins by asking what proxy signal can be trusted and where it can mislead.

In 60 Seconds

Instead of deploying new sensors, you can extract sensing data from existing infrastructure: Wi-Fi routers detect presence, gestures, and even breathing via channel state information; smart electricity meters identify individual appliances through power signature analysis (NILM); and cell towers estimate crowd density from device counts. This approach can reduce deployment costs by 10-100x while providing area-wide coverage.

The mathematical gist. Free-space loss in MHz is 20log10d+20log10fMHz27.5520\log_{10}d+20\log_{10}f_{MHz}-27.55, so solving for distance gives d=10(27.5520log10fMHzRSSI)/20d=10^{(27.55-20\log_{10}f_{MHz}-RSSI)/20}. At 2,400 MHz and −65 dBm this ideal model gives 17.7 m; replacing the logarithm with 20×2.420\times2.4 gives 169 m, a 9.55-fold error even before walls and multipath.

Math Bridge · guided foundationsHow does −65 dBm become 17.7 metres?Let Phoebe unpack logarithms, unit constants, and the chapter's corrected RSSI-distance quiz.
Key Concepts

Start with Structural Health Monitoring (SHM): Continuous or periodic measurement of structural response — strain, vibration, displacement, crack propagation — to detect damage, assess remaining service life, and prevent catastrophic failure. Then Fiber Bragg Grating (FBG) Sensor: An optical fiber sensor where periodic refractive index variations reflect specific wavelengths proportional to strain and temperature; immune to electromagnetic interference, suitable for embedded concrete installations. Next Acoustic Emission (AE) Sensor: Detects high-frequency stress waves (100 kHz - 1 MHz) generated when cracks form or grow in materials; provides early warning of fatigue crack initiation before visible damage appears. After that Tiltmeter: A precision inclinometer measuring angular deviation from vertical; MEMS tiltmeters achieve sub-millidegree resolution; used for monitoring slope stability, building settlement, and dam deformation. Continue by Corrosion Sensor: Electrochemical probes measuring instantaneous corrosion rate of metal structures; deployed in bridges, offshore platforms, and pipelines to schedule maintenance before structural compromise. Continue by Distributed Sensing: Fiber optic sensing systems measuring temperature or strain continuously along the entire cable length — thousands of virtual sensors in a single optical fiber installation. Continue by Wireless Sensor Node for Infrastructure: Battery or energy-harvesting powered nodes with sensing, processing, and wireless communication; must operate 5-10 years with minimal maintenance in outdoor temperature extremes and moisture. Finally Infrastructure Sensing: The use of sensors to monitor physical infrastructure condition — bridges, roads, buildings, pipelines, power grids — enabling predictive maintenance and safety monitoring at scale.

Learning Objectives

After completing this chapter, you will be able to:

  • Evaluate existing infrastructure for repurposing as sensing platforms
  • Apply Wi-Fi CSI sensing techniques for presence and gesture detection
  • Analyze power meter waveforms to identify individual appliances via NILM
  • Design hybrid sensing systems that combine infrastructure signals with targeted dedicated sensors

37.2 Prerequisites

37.3 Use Existing Infrastructure

~20 min | Advanced | P06.C08.U05

37.3.1 Use Existing Sensors First

Traditional IoT thinking: “We need temperature data -> Deploy temperature sensors.”

Infrastructure-leveraging thinking: “We need occupancy data -> Use existing Wi-Fi routers.”

This paradigm shift—leveraging existing infrastructure instead of deploying dedicated sensors—can reduce costs by 10-100x while providing area-wide coverage instead of point measurements.

Free Sensor Revolution

Imagine you want to detect if someone is in a room. Traditional approach:

Deploy Dedicated Sensors ($$$):

Start by Buy PIR motion sensors ($15-150 each depending on installation and housing). Then Install wiring and power. Next Calibrate and maintain batteries. Finally Get point measurements (one spot per sensor).

Leverage Infrastructure ($0):

Start by Use existing Wi-Fi router (already there!). Then Detect phone/device connections. Next Get room-wide coverage. Finally No installation, no batteries, no maintenance.

The Wi-Fi router becomes a “free” presence sensor. This is infrastructure-leveraging sensing—using existing devices as sensors.

37.4 Indirect Infrastructure Sensing

Instead of deploying new sensors, extract sensing information from infrastructure already in place:

InfrastructureTraditional UseSensing CapabilityWhat It Measures
Wi-Fi RouterInternet connectivityRSSI, CSI, device countPresence, gestures, breathing, occupancy
Power MeterEnergy billingCurrent waveform analysisAppliance identification (NILM)
Cell TowerMobile calls/dataHandoff patterns, signal strengthTraffic density, crowd size, movement
Street LightIlluminationCurrent draw, vibrationPedestrian count, vehicle detection
Water PipeWater deliveryAcoustic vibrationsLeak detection, flow rate
HVAC DuctsClimate controlAirflow patternsOccupancy, room-level activity

Key Insight: Every piece of infrastructure emits signals. We can sense the world by observing how the environment disturbs these signals.

37.5 Comparison: Deploy vs Leverage

DimensionDeploy Dedicated SensorsInfrastructure-Leveraging
Upfront Cost$10-100 per sensor point$0 marginal cost (already installed)
InstallationDrilling, wiring, positioningSoftware-only deployment
CoveragePoint measurements (discrete)Area-wide coverage (continuous)
MaintenanceBattery replacement, calibrationMinimal (infrastructure already maintained)
PrivacyObvious sensors (cameras visible)Less intrusive (passive RF sensing)
AccuracyHigh (purpose-built)Moderate (indirect inference)
LatencyImmediate (direct sensing)May require processing (feature extraction)

When to Choose What:

  • Deploy sensors when: Accuracy critical, point measurement needed, safety-critical
  • Leverage infrastructure when: Large-scale deployment, cost-sensitive, retrofit scenario, quick pilot

37.6 Wi-Fi Breathing/Gestures

Infrastructure: Standard Wi-Fi router (802.11n/ac/ax)

Sensing Capability: Channel State Information (CSI) captures how Wi-Fi signals propagate through space. Human movement, breathing, even heartbeat disturbs these signals.

What It Measures:

Start with Occupancy estimation: Device count gives headcount estimates (+/-15% accuracy at zone level using devices-per-person divisor). Then Presence detection: CSI-based binary detection (occupied vs. empty room, no device needed). Next Gesture recognition: Hand waves, swipes (85-95% accuracy). After that Breathing rate: Chest movement modulates signal (+/-2 breaths/min under controlled single-occupant, line-of-sight conditions; accuracy degrades with multiple occupants or movement). Finally Fall detection: Sudden signal disruption pattern.

Real Deployment:

Start with University dorms: Detect occupancy without cameras (privacy-preserving). Then Elderly care: Fall detection without wearables. Finally Smart homes: Gesture control of lights and appliances.

37.7 Non-Intrusive Load Monitoring

Infrastructure: Smart electricity meter (already installed for billing)

Sensing Capability: Analyze current and voltage waveforms to identify unique “signatures” of individual appliances.

What It Measures:

Start with Appliance state: On/off, standby, active. Then Energy breakdown: Per-appliance consumption. Finally Usage patterns: When devices are used.

How It Works:

A NILM algorithm watches changes in total home power:

Start with 150 W baseline: Only always-on devices are active. Then 1,650 W: A +1,500 W jump strongly suggests a hair dryer or heater. Next 1,750 W: A further +100 W step suggests a refrigerator compressor. Finally 250 W: A -1,500 W drop suggests the hair dryer turned off.

Each appliance has unique electrical signatures: Start with Resistive loads (heaters, toasters): Clean on/off transitions. Then Motors (refrigerators, fans): Inrush current spike, steady-state hum. Finally Switched-mode power supplies (computers, chargers): High-frequency harmonics.

37.8 Example 3: Cellular Signal Analysis

Infrastructure: Cell towers (already everywhere)

Sensing Capability: Analyze signal strength patterns and handoff events to infer crowd density and movement.

What It Measures:

  • Crowd density: Number of active devices in area
  • Traffic flow: Movement patterns between cell zones
  • Event detection: Large gatherings, unusual patterns

37.9 The Three-Layer Model

Start with Infrastructure Layer: Existing devices emitting signals (Wi-Fi, power, cellular). Then Disturbance Layer: Environment modulates these signals (human movement, appliance usage). Finally Analytics Layer: Software extracts sensing information from signal perturbations.

37.10 Design Guidelines

When to Leverage Infrastructure

Good candidates for infrastructure sensing:

Start by Large buildings (retrofit without new wiring). Then Privacy-sensitive environments (no cameras needed). Next Budget-constrained projects. After that Quick proof-of-concept deployments. Finally Aggregate measurements (counts, not identity).

Still need dedicated sensors for:

Start by Safety-critical applications (fire, gas). Then High-precision measurements (temperature +/-0.1C). Next Point-specific data (this exact location). After that Real-time response (<100 ms). Finally Regulatory compliance (certified sensors).

Meet the Sensor Squad

the microcontroller had a brilliant idea: “What if we do not need to BUILD new sensors? What if sensors are already ALL AROUND US?”

“What do you mean?” asked Temperature Terry.

“Think about your Wi-Fi router at home,” Max explained. “It sends out radio waves all the time. When a person walks through the room, they disturb those radio waves — like making ripples in a pond. A smart computer can analyze those ripples and figure out that someone walked by, WITHOUT any cameras or motion sensors!”

the LED was amazed: “So the Wi-Fi router IS a sensor?”

“Exactly! And your electricity meter is a sensor too,” Max continued. “Every appliance in your house uses electricity differently. A hair dryer uses 1500 watts, a fridge uses 100 watts, a phone charger uses 5-25 watts. By watching the power meter, a computer can figure out which devices are turned on — like identifying people by their footsteps!”

the battery loved this: “No new sensors to install, no batteries to replace, no wires to run. The infrastructure does double duty!”

“But,” Sammy reminded everyone, “for really important measurements — like fire detection or medical monitoring — you still need dedicated sensors. Infrastructure sensing is clever but not as precise.”

37.11 Campus Occupancy Monitoring

Wi-Fi Building Occupancy

Scenario: The University of Southern California (USC) wants to monitor real-time occupancy across 12 campus buildings to optimize HVAC scheduling. Installing dedicated occupancy sensors in every room (2,400 rooms) would cost over $360,000. Instead, they propose leveraging 480 existing Cisco Aironet Wi-Fi access points.

Given:

Start by 12 buildings, 200 rooms average per building = 2,400 rooms. Then 480 Wi-Fi APs already deployed (Cisco Aironet 3802i), 40 per building. Next Average 18,000 daily connected devices across campus (phones, laptops, tablets). After that Each device associates with one AP at a time; AP coverage radius ~25m indoors. Finally Current HVAC bill: $2.8 million/year across all 12 buildings.

Step 1 — Extract occupancy signal from AP data:

Each Cisco AP reports associated client count every 60 seconds via SNMP. We map AP location to room/zone:

Building ZoneAPs in ZoneAvg Devices (9am)Avg Devices (3am)Occupancy Estimate
Engineering Lecture Halls83402~227 students + staff (340 ÷ 1.5)
Library Main Floor62805~187 occupants (280 ÷ 1.5)
Admin Offices12950~63 staff (95 ÷ 1.5)
Gym / Recreation41200~80 people (1.5 devices/person)

Key correction factor: Students carry 1.2-1.8 devices on average (phone + laptop). Apply divisor of 1.5 for headcount estimate.

Step 2 — Compare costs: Dedicated sensors vs. Wi-Fi infrastructure:

ApproachHardware CostInstallationAnnual MaintenanceAccuracy
PIR sensors (2,400 rooms)$360,000$120,000$48,000/year+/-1 person per room
CO2-based (2,400 rooms)$840,000$200,000$96,000/year+/-3 people per room
Wi-Fi AP analysis (existing)$0$12,000 (software)$3,600/year+/-15% per zone
Wi-Fi + 50 PIR (high-traffic)$7,500$14,000$4,200/year+/-10% per zone

Step 3 — Calculate HVAC savings:

Start by Baseline: HVAC runs fixed schedule (6am-10pm) regardless of occupancy. Then With occupancy-responsive HVAC: Reduce conditioning in unoccupied zones. Next Measured savings from pilot (2 buildings, 6 months): 22% energy reduction. After that Projected annual savings: $2.8M x 22% = $616,000/year. Continue by Implementation cost: $33,500 (software $12,000 + 50 PIR sensors $7,500 + installation $14,000). Finally Payback period: ~20 days.

Putting Numbers to It

ROI for infrastructure-based sensing is compelling. The hybrid Wi-Fi + PIR approach costs:

  • Software: $12,000
  • 50 supplementary PIR sensors: $7,500
  • Installation: $14,000
  • Total implementation cost: $33,500

Annual savings from 22% HVAC reduction:

  • Annual HVAC bill: $2,800,000/year
  • Expected reduction: 22%
  • Annual savings: $616,000/year

Payback period: about 20 days. Compare that with a dedicated PIR deployment costing $480,000 ($360,000 sensors + $120,000 installation), which takes about 284 days to pay back. The infrastructure approach delivers the same HVAC savings at 93% lower capital cost.

Result: By leveraging existing Wi-Fi infrastructure plus 50 supplementary PIR sensors in high-traffic areas, USC achieved zone-level occupancy estimates accurate to +/-10% at 93% lower cost than a dedicated PIR sensor deployment ($33,500 vs. $480,000). The system identified that 35% of HVAC runtime was wasted on empty zones, saving $616,000/year.

Key Insight: Infrastructure-leveraging sensing excels for “good enough” aggregate measurements. Zone-level accuracy (+/-10%) is sufficient for HVAC optimization — you do not need to know exactly who is in which room. The hybrid approach (Wi-Fi infrastructure + targeted dedicated sensors) gives the best cost-accuracy tradeoff.

37.12 Wi-Fi Occupancy Estimator

Use this calculator to estimate room occupancy from Wi-Fi access point device counts. Adjust the number of connected devices and the average devices per person to see the estimated headcount range.

37.13 Infrastructure Sensing ROI

Estimate the payback period and cost savings when using infrastructure-based sensing instead of dedicated sensors for building occupancy monitoring.

37.14 Activity: Wi-Fi CSI Presence Detection

This compact example demonstrates the core idea behind Wi-Fi Channel State Information (CSI) occupancy sensing. When a person moves through a Wi-Fi signal path, the CSI amplitude fluctuates more than in an empty room. Real deployments process many subcarriers over time, but the student-facing decision is simple:

Try the Decision Logic Without Code

Start by Observe CSI amplitude for an empty room and treat it as the baseline. Then Observe CSI amplitude while a person walks through the signal path. Next Compare how much the values fluctuate in each case. Finally Mark the room as occupied only when the current fluctuation is much larger than the empty-room baseline.

Optional Python Pattern
def variance(values):
    mean = sum(values) / len(values)
    errors = [
        (x - mean) ** 2
        for x in values
    ]
    return sum(errors) / len(values)

empty_room = [
    0.50, 0.51,
    0.49, 0.50,
]

person_moving = [
    0.20, 0.82,
    0.35, 0.75,
]

baseline = variance(empty_room)
current = variance(person_moving)
ratio = current / baseline

occupied = ratio > 2.0
print(f"variance ratio = {ratio:.1f}")
print(f"occupied = {occupied}")

Key design decisions:

DecisionChoiceRationale
Window size5 secondsSmooths transient noise while detecting walking pace movement
Variance ratio threshold2.0x baselineEmpirically validated; 1.5x causes false positives from HVAC airflow
Subcarrier count52Standard for 802.11n 20 MHz channels
CalibrationEmpty-room baselineAccounts for room geometry and furniture reflections

37.15 Concept Relationships

ConceptRelated ToConnection Type
Wi-Fi CSISignal VarianceHuman movement increases channel state variance
NILMPower SignaturesEach appliance has unique current draw pattern
Cell Tower DensityCrowd EstimationDevice count per tower estimates population
Infrastructure CostMarginal vs FixedLeveraging existing = $0 marginal cost
PrivacyRF SensingWi-Fi CSI preserves privacy better than cameras

37.16 Label the Diagram

37.17 Code Challenge

37.18 Proxy Sensing and Loop Limits

The body above explains how existing Wi-Fi, power, cellular, and building infrastructure can act as indirect sensors. Continue to Infrastructure Proxy Sensing and Inductive Loop Limits when you need the deeper physics and evidence boundaries behind those proxies. That page separates the L2 material: Wi-Fi fingerprint reuse, inductive-loop oscillator shifts, eddy-current blind spots, threshold trade-offs, auto-baselining, and proxy drift.

37.19 Summary

Infrastructure-leveraging sensing turns existing equipment into sensors through software analysis, providing area-wide coverage at near-zero marginal cost while trading some accuracy for convenience. Key takeaways:

Start with Existing infrastructure can serve as sensors — Wi-Fi routers (CSI for presence/gestures), power meters (NILM for appliance identification), and cell towers (crowd density estimation). Then Software deployment replaces hardware installation — Faster, cheaper, and easier to maintain. Next Area-wide vs point measurements — Zone-level accuracy (+/-10-15%) is sufficient for many applications like HVAC optimization. After that Privacy-preserving options — RF sensing avoids cameras while still detecting presence and activity. Continue by Combine approaches for best results — Hybrid deployments (infrastructure + targeted dedicated sensors) deliver the best cost-accuracy tradeoff. Finally Reserve dedicated sensors for safety-critical, high-precision, or real-time applications.

37.20 See Also

Start with Sensor Classification - Active vs passive sensing principles apply to infrastructure. Then Signal Processing - CSI data requires filtering and feature extraction. Next Common Mistakes - Infrastructure sensing still needs validation logic. Finally Selection Guide - When to leverage infrastructure vs deploy dedicated sensors.

37.21 Try It Yourself

Exercise: Wi-Fi Occupancy Estimation

Challenge: Estimate room occupancy from Wi-Fi access point data.

Given data: A conference room’s access point reports these device counts over 1 hour:

09:00 → 2 devices
09:30 → 8 devices
10:00 → 8 devices
10:30 → 12 devices
11:00 → 3 devices

Your task:

Start by estimate occupancy at 10:30. Then account for the fact that people carry 1.2-1.8 devices on average. Finally determine when the meeting likely started and ended.

Click for solution

1. Occupancy at 10:30:

Use the average device ratio: 12 devices ÷ 1.5 devices/person = 8 people.

2. Accounting for device ratio:

Start by conservative (1.8 devices/person): 12 ÷ 1.8 = 6.67 ≈ 7 people. Then liberal (1.2 devices/person): 12 ÷ 1.2 = 10 people. Finally Best estimate: 7-10 people at 10:30.

3. Meeting timeline:

Start with Started: Between 09:00 and 09:30 (jump from 2 → 8 devices). Then Ended: Between 10:30 and 11:00 (drop from 12 → 3 devices). Finally Duration: Approximately 1-1.5 hours.

Key insight: This ±2-person accuracy is sufficient for HVAC optimization but inadequate for safety-critical occupancy limits (fire code compliance).

Common Pitfalls

Single-Point Coverage Gaps

A single strain gauge only measures strain at its exact location. A fatigue crack forming 20 cm away produces no signal. Infrastructure monitoring requires sensor arrays with spacing matched to the expected damage scale. Work with structural engineers to determine appropriate sensor placement density.

Long-Term Drift in Deployments

Infrastructure sensors are often installed for 10-20 year lifespans. A strain gauge with 0.01% annual drift accumulates significant error over 10-20 years — enough to mask meaningful structural changes. Select sensors with certified long-term stability or include redundant sensors to detect drift through comparison.

Bandwidth for Fast Monitoring

High-frequency vibration monitoring (1 kHz sampling on 10 channels) generates 1.4 GB per day. Design the processing pipeline to extract features (RMS, spectral peaks, damping ratios) at the node and transmit only compressed summaries, not raw time series.

Moisture in Outdoor Enclosures

IP67 ratings are tested in clean water but real deployments involve condensation cycles and chemical exposure. Use hermetically sealed enclosures with desiccant for sensors in harsh environments. Specify higher IP ratings (IP68, IP69K) for washdown applications.

37.22 What’s Next

If you want to…ChapterDescription
Understand proxy limitsInfrastructure Proxy Sensing and Inductive Loop LimitsLC oscillator shifts, eddy-current blind spots, baseline drift, and confidence boundaries
Calibrate infrastructure sensorsCalibration TechniquesTechniques for establishing accurate baselines and correction factors
Decode sensor specificationsReading DatasheetsExtract key parameters from datasheets for sensor selection
Explore common IoT sensorsCommon IoT SensorsSurvey of popular dedicated sensors to complement infrastructure sensing
Avoid deployment pitfallsCommon MistakesValidation logic and error-handling patterns for sensing systems
Choose the right sensorSelection GuideDecision framework for infrastructure vs dedicated sensor trade-offs