Skip to content
DnakitarePublic

About

Medicare DME/RPM fraud-network detection over public CMS data. Statistical outlier detection + reassignment-network clustering. Outputs are leads for human review, not proof.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Marlow

DME/RPM Medicare fraud-network detection engine. A public-data screening engine that surfaces candidate healthcare-fraud networks in the durable medical equipment (DME) and remote patient monitoring (RPM) space, and produces defensible, evidence-backed case dossiers.

What the engine produces are candidates for review — never proof of a false claim. Public Medicare data is aggregated and de-identified; it reveals patterns and structures, and adjudication is a human (ideally counsel) judgement. Every output is framed as an allegation/lead. See SPEC.md §3, §12.

What this repository deliberately does not contain

This repo publishes the method, not findings about named parties. An NPI resolves to a real person or organization through the public NPPES registry, so a rendered dossier is a specific factual claim about someone identifiable.

  • Rendered case dossiers and evidence memoranda are excluded (see .gitignore). The renderer is here; its output about real providers is not.
  • Real NPIs are redacted throughout FINDINGS_*.md to stable pseudonyms ([PROVIDER-A], [PROVIDER-B], [PROVIDER-C]). Every ratio, count, p-value, and conclusion is unchanged — only the identifiers are removed.
  • NPIs in tests/ are fabricated and carry valid checksums for schema tests.
  • Bulk CMS downloads are not committed (multi-GB, reproducible from the frozen manifest in DATA_SOURCES.md).

Anyone can reproduce the findings by running the pipeline against the public CMS files. That is the point: the method is auditable, and the accusation is left to whoever is qualified to make it.


Status

The engine runs end-to-end on real CMS data and produces a defensible case dossier. Built and tested:

Layer State
1 — Ingestion: catalog resolver + assumption inspectors Built. Runtime CMS-catalog resolution (no hardcoded URLs).
2 — Node detection: Tier 1 + Tier 2 + convergence Built & tested. 3 impossibility checks, 6 robust-statistics dimensions, convergence verdict.
3 — Reassignment network: clusters + two guards Built & tested. SHARES_GROUP_PACID clusters, Guard A (MSO) + Guard B (node-flag convergence).
5 — Case dossier Built. Per-cluster dossier renderer.
Synthetic harness Built. 13 planted patterns; doubles as the regression suite.

Real-data work — the four assumptions, the CCM generalization, the connective-edge probe, and the end-to-end slice — is settled. See ASSUMPTIONS.md, FINDINGS_CCM.md, FINDINGS_EDGES.md, FINDINGS_SLICE.md.

Quickstart

No install step is required — pytest and the scripts resolve src/ directly.

python -m pytest -q                       # the regression suite (48 tests)
python scripts/demo.py                    # synthetic data -> Layer 2 + 3
python scripts/run_slice.py               # real CY2024 data -> one case dossier
python scripts/inspect_assumptions.py --synthetic   # the 4 assumption inspectors
python scripts/inspect_assumptions.py --catalog     # resolve live CMS URLs

Real-data scripts (run_slice.py, probe_ccm.py, probe_edges.py, pull_rpm_data.py) need the CMS files in data/raw/ — pull_rpm_data.py (and --ccm) fetches them. For an editable install: pip install -e ".[dev]".

Repository layout

src/marlow/
  reference.py            RPM + CCM/PCM codes, billing rules, specialty prior
  schema.py               CMS column names + flexible resolution + NPI checksums
  synthetic/generators.py the harness — fabricated NPIs with planted, labelled fraud
  detection/              Layer 2 — per-NPI node detection
    config.py             every tunable threshold, in one auditable place
    profile.py            per-NPI code profile + billing-rule arithmetic
    tier1.py              3 impossibility checks (clock/calendar-bounded)
    tier2.py              6 cohort/relative dimensions (robust stats)
    hard_flags.py         Order-and-Referring eligibility cross-check
    pipeline.py           convergence rule -> per-NPI verdict
  network/                Layer 3 — the reassignment network
    clusters.py           SHARES_GROUP_PACID clusters + Guard A + Guard B
    dossier.py            the case-dossier renderer
  ingestion/
    catalog.py            runtime CMS-catalog resolution (no hardcoded URLs)
    inspect.py            the four data assumptions as empirical inspectors
scripts/                  demo, run_slice, inspect_assumptions, pull/probe tools
tests/                    48 tests; the synthetic harness IS the regression suite
data/                     where real CMS downloads go — see DATA_SOURCES.md

The detection discipline

Precision over volume. The product's worth is a small set of highly defensible flags. Three principles run through every layer:

  • Tier 1 is arithmetic impossibility only. Three checks survive contact with real data — add-on orphan, clinical-time, device-supply ceiling — each a genuine clock- or calendar-bounded violation. Checks that turned out to be strong-statistical-but-not-impossible (add-on inversion, the 99453 ceiling, setup/monitoring) were demoted to Tier 2. See ASSUMPTIONS.md.
  • Convergence, not topology. A Layer 2 case escalates on an impossibility or ≥2 converging Tier 2 dimensions. A Layer 3 cluster escalates only when ≥N members carry Tier 1 flags (Guard B) and that concentration is a statistical excess over the base rate (Guard A) — cluster size is never itself a flag. The most defamation-exposed false positive is calling a legitimate billing company a fraud network; the guards exist for that.
  • Everything explainable, robust statistics, no black box. Every flag carries a plain-language explanation and an evidence dict; Tier 2 uses median/MAD so tail fraud cannot inflate its own threshold.

Reference

STATE.md — start here for one-page current status and a document index. SPEC.md — the full project spec. DATA_SOURCES.md — data sources, access patterns, gotchas. ASSUMPTIONS.md / FINDINGS_*.md — the empirical record.

About

Medicare DME/RPM fraud-network detection over public CMS data. Statistical outlier detection + reassignment-network clustering. Outputs are leads for human review, not proof.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages