Defensive publication · prior art

Diagnostic Braid

Health issues as misalignment between structure, flow and control

Disclosed
8 January 2026 — first commit 2026-01-08 15:20:50 UTC
Rights
Public domain / CC0 (concept)
Record
github.com/sjgant80-hub/diagnostic-braid — the commit history is the timestamp

probable-telegram

Diagnostic Braid is an open-source diagnostic architecture that detects health issues as misalignments among structural, flow, and control signals, using local-first wearable data, explicit coupling metrics, and interpretable “braid fault” signatures.

Defensive Publication (Public Domain): Diagnostic Braid

An open-source, multi-signal diagnostic framework that treats the body as a braided network of rhythms, states, and constraints.

Status: speculative, implementable with commodity sensors + open protocols.

License intent: public domain / CC0 (concept).

  1. Core Idea

Most diagnostics collapse reality into a single channel (one lab value, one image, one score). The Diagnostic Braid keeps signals separate and linked: it models health as three interwoven strands that continuously constrain each other:

Strand A — Structure (where)

Anatomy, morphology, tissue integrity: imaging, anthropometrics, dermal patterns, edema markers.

Strand B — Flow (how it moves)

Hemodynamics, respiration, perfusion, lymph, gut motility: PPG, ECG, BP, respiratory belt, capnography, impedance.

Strand C — Control (how it regulates)

Neuroendocrine + immune regulation: HRV, temperature rhythms, sleep staging, cytokine proxies, glucose dynamics, stress markers.

Claim: Many conditions are not “one abnormal number” but a braid fault: structure–flow–control fall out of phase.

  1. What Makes It a “Braid”

A braid is not just three lines—it’s crossovers. The braid representation is built from relationships:

Phase coupling: does temperature rhythm align with sleep and HRV?

Latency: does stress spike precede glucose variability by a consistent delay?

Compensation: does heart rate rise to maintain perfusion when BP drifts?

Divergence: does subjective fatigue rise while objective recovery markers improve?

So the Diagnostic Braid outputs not just “high/low,” but misalignment signatures.

  1. Minimal Open Sensor Set

You can implement a useful braid with cheap hardware:

Tier 0 (phone + watch):

PPG (heart rate + pulse wave), accelerometer (activity), microphone (breath/voice), camera (skin, cap refill), thermometer (if available).

Tier 1 (maker-grade):

Single-lead ECG, cuff BP, pulse oximetry, temp patch, respiratory belt.

Tier 2 (home labs if available):

Glucose (CGM or fingerstick), urine strips, CRP or similar point-of-care assays (optional).

The braid is designed to degrade gracefully: fewer sensors = fewer crossovers, but still usable.

  1. Data Model (Open Schema)

Represent everything as events + streams + context.

Streams

Time series with sampling rate and confidence:

ECG, PPG, SpO2, Temp, BP, Resp, Actigraphy, Sleep, Glucose (optional)

Events

Sparse occurrences:

meals, meds, exercise sessions, symptoms, stressors, menstrual cycle phase, infections, travel/jet lag

Context

Static or slowly changing:

age range, sex at birth (if provided), known conditions, baseline fitness, altitude, typical schedule

Derived Features (standardized)

HRV (RMSSD, SDNN), respiratory rate stability, nocturnal dipping, circadian amplitude, glucose variability, pulse transit time proxies, sleep fragmentation, temperature slope at bedtime.

Key: every derived feature has provenance: which sensors, window, and quality score produced it.

  1. The Braid Engine

A simple, open algorithmic spine:

Step 1 — Build a Baseline “Personal Physics”

Instead of population norms, learn a personal reference manifold over 2–4 weeks:

typical circadian phase

typical recovery dynamics after exertion

typical meal-response curves

typical sleep architecture

Step 2 — Compute Crossovers (Couplings)

For each pair/triple of features, compute:

correlation under lag (0–48h)

phase coherence (circadian alignment)

conditional dependence (does A predict B when C is controlled?)

compensation index (does system push one knob to stabilize another?)

Step 3 — Detect Braid Faults

A braid fault is a stable, multi-crossover anomaly, e.g.:

Control–Flow decoupling: high sympathetic tone + falling perfusion proxies

Flow–Structure strain: rising BP variability + swelling/edema signatures

Control–Structure mismatch: inflammatory proxy pattern + unchanged load metrics but collapsing sleep

Step 4 — Explain in Human Terms (Open, Non-Medical)

Output:

“What changed” (features)

“What’s misaligned” (crossovers)

“What might it indicate” (hypotheses, not diagnoses)

“What to measure next” (lowest-cost confirmatory signals)

  1. Output Format: The “Braid Card”

A standard, shareable artifact:

(A) Alignment Map

Circadian: aligned / drifting / inverted

Recovery: adequate / strained / unstable

Perfusion: stable / compensating / failing-to-compensate

Respiratory: stable / obstructed pattern / hyperventilation pattern

Metabolic: stable / volatile / delayed recovery after meals

(B) Fault Signatures (ranked)

Each includes confidence + evidence:

Signature name (e.g., “Sympathetic Lock + Sleep Fragmentation”)

Evidence: HRV down, temp elevated, sleep fragmentation up, delayed recovery

Suggested checks: hydration/BP check, infection screen, stressor audit, etc.

(C) Red-Flag Gate (Safety)

If certain combinations appear (e.g., low SpO2 + tachycardia + chest pain event tag), the system stops and advises urgent care. (This is essential for responsible open tooling.)

  1. Validation Path (Open Science)

Phase 1: Self-consistency

Does the engine reproduce baseline patterns day-to-day?

Does it react appropriately to known perturbations (exercise, jet lag)?

Phase 2: Known-condition cohorts (voluntary, privacy-preserving)

Compare braid faults with known labels (sleep apnea, POTS, anemia, infection recovery)

Measure prediction of change (onset/flare/recovery), not just classification.

Phase 3: Interventional checks

Do suggested measurements reduce uncertainty?

Does a recommended action (sleep regularity, hydration, meal timing) shift the braid toward alignment?

  1. Privacy + Governance (Non-Negotiables)

Local-first computation by default.

Federated learning optional; no raw data sharing.

Differential privacy for aggregated research outputs.

Auditability: every inference must cite the features and windows used.

No insurance/employer mode. Explicit license discouraging coercive deployment.

  1. Open Modules You Can Build Immediately

Braid Logger: a mobile app that ingests wearables + events

Braid Feature Library: canonical open implementations of HRV, circadian metrics, sleep fragmentation, etc.

Crossover Kernel: lagged coupling, phase coherence, compensation indices

Braid Card Generator: interpretable output + red-flag gate

Synthetic Patient Simulator: generates plausible signals + faults for testing

  1. Example: A Braid Fault in Plain Language

Scenario: user feels “wired but tired” for 10 days.

HRV down, resting HR up

bedtime temp not dropping

sleep fragmentation up

activity unchanged

meals cause bigger glucose spikes than baseline

Braid interpretation: Control strand stuck “high,” pushing Flow to compensate, disrupting circadian Structure maintenance.

Next cheapest checks: hydration/BP, infection symptom log, sleep timing consistency, maybe CRP if available.

Red flags: add SpO2/respiratory checks if nighttime awakenings are frequent.