Chapter 22 of 22 Part V: Artificial Intelligence and Intelligent Devices

Lost and Found: Inside Smart Tracking Networks

Each project below is tailored to a specific algorithm and scientific question from Chapter 22, with concrete inputs, verifiable numerical outputs, boundary cases, and links to the related lab and pioneer.

Project 1 of 3 · v1-c22-p01 Intermediate · ~25 min

Crowdsourced BLE Relay Coverage Simulator

Lab activity: 1. Read a fictional location report · Related code: block-01.js · Pioneer: View profile

Real-World Problem: A tiny coin-cell tracker has no GPS receiver and no SIM card, yet owners see updates miles away.
Scientific Question: How does nearby helper-phone density affect detection time in a crowdsourced Bluetooth LE finding network?

Objective: Simulate a stationary lost BLE beacon on a fictional city grid and measure time-to-report across 2, 10, and 30 passing helper phones.

Hypothesis to Test: Increasing helper-device density reduces expected time until a passing phone enters BLE range (~30 m) and relays a report.

Step-by-Step Implementation

  1. Place a fictional lost BLE tag on a 2D map broadcasting rotating beacon IDs.
  2. Simulate N helper phones moving randomly across the map.
  3. When a helper enters BLE range, log that the helper observes its own coordinates and creates an encrypted relay payload.
  4. Compare mean detection delay across N = 2, 10, and 30 helpers.
Concrete Input: 100×100 fictional grid, BLE range = 10 units, test 2 vs. 10 vs. 30 random helper walkers.
Expected Output: 2 helpers -> slow/sparse sightings; 30 helpers -> rapid frequent encrypted sightings.

Test Cases: 0 helpers -> never reported; Helper within BLE range -> sighting logged.

Boundary Condition: In remote rural areas with zero passing smartphones, crowdsourced BLE networks cannot update.

Common Mistake to Avoid: Assuming coin-cell trackers contain built-in satellite GPS or cellular modems.

Interpreting Results: Crowdsourced networks trade battery life (months on a coin cell) for dependence on nearby helper devices.

Show Hint, Extension Challenge & Reflection

Hint: Review the worked example and equation in Chapter 22 before testing the boundary case: In remote rural areas with zero passing smartphones, crowdsourced BLE networks cannot update.

Extension Challenge: Add realistic BLE advertising interval (every 2 seconds) and measure missed sightings for fast-moving vehicles.

Reflection Question: Why does the helper device necessarily know its own location before encrypting the relay report?

Project 2 of 3 · v1-c22-p02 Applied · ~30 min

Rotating BLE Identifier & End-to-End Privacy Model

Lab activity: 2. Build a fictional finding network · Related code: block-02.js · Pioneer: View profile

Real-World Problem: If a Bluetooth tracker broadcast one permanent address forever, anyone with a cheap scanner could follow its owner.
Scientific Question: How do rotating public keys separate what the helper device, relay server, and item owner can each learn?

Objective: Model key rotation intervals and build a visibility matrix showing exactly what data each party (tag, helper, server, owner) sees.

Hypothesis to Test: Rotating keys deters passive third-party correlation while end-to-end encryption hides the owner's plaintext location from the relay operator.

Step-by-Step Implementation

  1. Derive distinct time-indexed fictional beacon keys K(t0), K(t1), K(t2), K(t3).
  2. Verify a passive bystander scanning at t0 and t2 cannot link the two sightings by static ID.
  3. Verify the helper encrypts its own measured coordinates under K(t) before upload.
  4. Document how specific protocols (e.g., Apple Find My vs. Android Find My Device) differ in aggregation and privacy rules.
Concrete Input: 4 time slots with 15-minute BLE ID rotation; inspect visibility of Helper, Relay Server, Bystander, and Owner.
Expected Output: Helper knows its own location (not owner identity); Server sees encrypted blob + hash; Owner decrypts location; Bystander sees unlinked IDs.

Test Cases: K(t0) !== K(t1); Server cannot read plaintext; Owner with private key decrypts exact report.

Boundary Condition: Rotation intervals must balance anti-tracking privacy against owner lookup efficiency.

Common Mistake to Avoid: Claiming the helper phone does not know its own location or assuming every brand uses identical cryptography.

Interpreting Results: Clear threat modeling specifies exactly who knows what at every step of a protocol.

Show Hint, Extension Challenge & Reflection

Hint: Review the worked example and equation in Chapter 22 before testing the boundary case: Rotation intervals must balance anti-tracking privacy against owner lookup efficiency.

Extension Challenge: Add a simulated "separated from owner" state change that enables unwanted-tracker detection.

Reflection Question: How do cryptographic protocols protect both lost-item recovery and bystander privacy simultaneously?

Project 3 of 3 · v1-c22-p03 Intermediate · ~25 min

Unwanted-Tracker Safety Alert Classifier

Lab activity: 3. Choose a safe response · Related code: block-03.js · Pioneer: View profile

Real-World Problem: Item finders can be misused to follow people without consent, requiring automatic cross-platform safety warnings.
Scientific Question: What behavioral pattern distinguishes an unknown tracker traveling with you from a stranger's keys briefly passing on a bus?

Objective: Implement a fictional unwanted-tracker detector checking separation-from-owner, co-movement duration, and distinct locations, plus safe response guidance.

Hypothesis to Test: Requiring repeated sightings of the same separated tracker across multiple distinct locations and minutes minimizes false alerts in crowds while catching persistent co-movement.

Step-by-Step Implementation

  1. Track sighting timestamps and distinct location clusters for each unknown separated BLE beacon.
  2. Trigger an alert only when sightings span >= 3 distinct locations and >= 15 minutes of co-movement.
  3. Present clear, calm safety actions aligned with official Apple and Android guidance (play sound, inspect serial/disable instructions, contact trusted adult/authorities).
  4. Verify zero real Bluetooth hardware is accessed.
Concrete Input: 3 fictional BLE sighting logs: (1) brief 1-minute bus pass, (2) stationary cafe tag, (3) unknown separated tag seen at 3 distinct stops over 25 minutes.
Expected Output: Case 1 & 2: No alert; Case 3: UNWANTED TRACKER ALERT + safe step-by-step response options.

Test Cases: 1 location -> no alert; 3 locations over 25 min -> alert triggered.

Boundary Condition: A tracker rotating its MAC too rapidly while separated would evade detection, which is why cross-platform standards coordinate rotation rules when separated.

Common Mistake to Avoid: Alerting on every nearby Bluetooth device, which would cause constant false alarms in schools or buses.

Interpreting Results: Safety engineering combines thoughtful heuristics, cross-industry standards, and clear user guidance.

Show Hint, Extension Challenge & Reflection

Hint: Review the worked example and equation in Chapter 22 before testing the boundary case: A tracker rotating its MAC too rapidly while separated would evade detection, which is why cross-platform standards coordinate rotation rules when separated.

Extension Challenge: Test how tuning the location-count threshold (2 vs. 3 vs. 5) affects detection speed vs. false alerts.

Reflection Question: Why did Apple and Google collaborate on an open IETF specification for detecting unwanted location trackers?