Datasets:
id string | features list | label int64 | subclass string |
|---|---|---|---|
sgtin:0600100000.LOT-1000.0 | [
0.033333333333333326,
1,
1,
1,
1,
1,
3,
0
] | 0 | counterfeit_unverifiable |
sgtin:0600100000.LOT-1000.1 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.2 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.3 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.4 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.5 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
1
] | 1 | diversion_ring |
sgtin:0600100000.LOT-1000.6 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.7 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.8 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.9 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.10 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.11 | [
0.033333333333333326,
1,
1,
1,
1,
1,
3,
0
] | 0 | counterfeit_unverifiable |
sgtin:0600100000.LOT-1000.12 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.13 | [
0.033333333333333326,
1,
1,
1,
1,
1,
6,
0
] | 0 | cold_chain |
sgtin:0600100000.LOT-1000.14 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.15 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.16 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.17 | [
0.9666666666666667,
2,
1,
2,
1,
1,
6,
0
] | 0 | diversion_geo |
sgtin:0600100000.LOT-1000.18 | [
0.033333333333333326,
1,
1,
1,
1,
1,
3,
0
] | 0 | counterfeit_unverifiable |
sgtin:0600100000.LOT-1000.19 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.20 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.21 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.22 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.23 | [
0.033333333333333326,
1,
1,
1,
1,
1,
3,
0
] | 0 | counterfeit_unverifiable |
sgtin:0600100000.LOT-1000.24 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.25 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.26 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
1
] | 1 | diversion_ring |
sgtin:0600100000.LOT-1000.27 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.28 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.29 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.30 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.31 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.32 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.33 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.34 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.35 | [
0.9666666666666667,
1,
1,
1,
1,
1,
5,
0
] | 1 | diversion_route |
sgtin:0600100000.LOT-1000.36 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.37 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.38 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.39 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.40 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.41 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.42 | [
0.033333333333333326,
1,
1,
1,
1,
1,
3,
0
] | 0 | counterfeit_unverifiable |
sgtin:0600100000.LOT-1000.43 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.44 | [
0.9666666666666667,
1,
1,
1,
1,
1,
5,
0
] | 1 | diversion_route |
sgtin:0600100000.LOT-1000.45 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.46 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.47 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.48 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.49 | [
0.033333333333333326,
1,
1,
1,
1,
1,
6,
0
] | 0 | cold_chain |
sgtin:0600100000.LOT-1000.50 | [
0.9666666666666667,
2,
1,
2,
1,
1,
6,
0
] | 0 | diversion_geo |
sgtin:0600100000.LOT-1000.51 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.52 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.53 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.54 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.55 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.56 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.57 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.58 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100000.LOT-1000.59 | [
0.033333333333333326,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.0 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.1 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.2 | [
0,
1,
2,
1,
1,
0,
7,
0
] | 0 | cloned_serial |
sgtin:0600100001.LOT-1001.3 | [
0,
1,
1,
1,
1,
1,
6,
0
] | 0 | cold_chain |
sgtin:0600100001.LOT-1001.4 | [
0.9833333333333333,
2,
1,
2,
1,
1,
6,
0
] | 0 | diversion_geo |
sgtin:0600100001.LOT-1001.5 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.6 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.7 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.8 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.9 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.10 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.11 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.12 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.13 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.14 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.15 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.16 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.17 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.18 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.19 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.20 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.21 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.22 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.23 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.24 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.25 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.26 | [
0,
1,
1,
1,
1,
1,
5,
1
] | 1 | diversion_ring |
sgtin:0600100001.LOT-1001.27 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.28 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.29 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.30 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.31 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.32 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.33 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.34 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.35 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.36 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.37 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.38 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
sgtin:0600100001.LOT-1001.39 | [
0,
1,
1,
1,
1,
1,
5,
0
] | 0 | genuine |
ZigoTrace Pharma — Serialized Events (synthetic)
Feature vectors extracted from a synthetic DSCSA-style serialized medicine supply
chain, generated by packages/intelligence/src/synthetic.ts in the
zigo-pharma engine and exported via
hf/generate_fixtures.mjs. Used to train and validate the diversion-detection model
(zigotrace/pharma-authenticity-model).
⚠️ Synthetic data notice
This is entirely synthetic — a seeded generator (generateChain), not real
distributor or patient data. It exists to prove the modeling pipeline and give a
reproducible gold set with labelled ground truth. A -real variant, gated and under a
distributor's consent/DPA terms, is planned once a lighthouse dataset is secured (see
docs/huggingface-model-plan.md Phase 5). Do not treat metrics on this set as
predictive of real-world performance.
Files
| File | Rows | Purpose |
|---|---|---|
train.jsonl |
420 | training split (fed to train.ts's weak-supervision logistic fit) |
test.jsonl |
180 | held-out split, used for the parity test and dry-run metrics |
Schema (one JSON object per line)
{"id": "sgtin:0600100000.LOT-1004.7", "features": [0.83, 1, 1, 1, 1, 1, 4, 0.0], "label": 1, "subclass": "diversion_route"}
| Field | Type | Meaning |
|---|---|---|
id |
string | the synthetic serial (SGTIN) |
features |
float[8] | see order below — the model's exact input contract |
label |
0/1 | 1 = diversion (route or ring). This is the model's trained scope — auth/clone/expiry/recall/cold-chain gaps are caught by ZigoTrace's deterministic layer, not this model; labelling those as positives here would misrepresent what this specific model is for. |
subclass |
string | the generator's injected pattern: genuine, diversion_route, diversion_ring, cloned_serial, counterfeit_unverifiable, cold_chain, expired, recalled |
Feature order (must match model.json's featureNames)
route_rarity, num_receives, num_dispenses, distinct_receive_locations,
aggregation_consistent, attestation_ok, hop_count, case_dispense_anomaly
case_dispense_anomaly is the relational feature — the fraction of a unit's
aggregation-case siblings dispensed at a location rare for the lot. It is what lets
the model catch diversion rings (each individual unit looks normal; the pattern is
only visible across the case).
Generation & reproducibility
node hf/generate_fixtures.mjs # regenerates train/test/model/expected_scores from source
Seeded (seed=7), so re-running produces byte-identical output. Provenance: git commit
of the zigo-pharma repo at export time (see the model card for the paired revision).
Intended use
Training/validating an advisory diversion-anomaly model that fuses into a larger
Dempster-Shafer authenticity-confidence engine — never a standalone classifier, never
a release/dispense gate. See zigotrace/pharma-authenticity-model's model card for the
full intended-use statement.
- Downloads last month
- 36