MedDataGuard is a local-first dataset QA and leakage/drift auditor for medical image segmentation datasets.
This repository is intentionally code-first for portfolio/research use: core logic and controls are exposed via Python and config, without a required frontend/backend split.
- File integrity issues (missing/corrupt images, mask/image mismatches)
- Image quality risks (blur, low contrast, resolution outliers)
- Mask quality risks (empty masks, invalid class IDs)
- Leakage (exact and near-duplicate overlap across splits)
- Drift and outliers (split-level feature shifts and PCA outliers)
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e .\corecore/: scanner and report generation logicbenchmark/: benchmark runner + summary generatorsdemo_data/: sample data for local runsreports/: generated outputs
Run full benchmark:
py -3 benchmark/run_cholec_benchmark.py --archive-root archive --output-dir reports/generatedGenerate portfolio summary tables:
py -3 benchmark/generate_benchmark_summary.py --input-json reports/generated/cholecseg8k_benchmark.json --output-csv reports/generated/benchmark_summary.csv --output-md reports/generated/benchmark_summary.mdCurrent full-run result (local, archive/):
- Samples:
8080 - Issues:
63(image quality) - Risk score:
0.07797 / 100 - Runtime:
640.153s - Throughput:
12.622 samples/s - Cross-split duplicates: exact
0, near0
- Prototype-level heuristics; not a clinical validation system.
- Not intended for medical decision-making.