Skip to main content

nicu-validate

Federated validation for clinical decision support tools.

Lets NICU researchers validate an existing tool across multiple hospitals — without any raw patient data leaving any hospital. Each site runs a local evaluation script and returns only aggregate statistics (sensitivity, specificity, AUC). The coordinator pools results using DerSimonian-Laird random-effects meta-analysis and generates a publishable report.

Built for the BYU Technology Transfer Office.


The Problem

A NICU researcher builds a clinical decision support tool. It works on local data. To publish or get FDA clearance, they need multi-site validation. But HIPAA prevents raw patient data from leaving any hospital, and existing research networks (Vermont Oxford Network, CHNC) have 12–18 month approval timelines.

nicu-validate solves this in days, not months.


How It Works

Researcher                Site A (NICU)             Site B (NICU)
    |                          |                          |
    |-- registers study -----→ coordinator               |
    |                          |                          |
    |                  pip install nicu-validate          |
    |                  nicu-validate run --input data.csv |
    |                          |-- {sensitivity: 0.85,    |
    |                          |    specificity: 0.90,    |
    |                          |    n_patients: 80} ----→ coordinator
    |                                                     |
    |                                            (same flow)
    |                                                     |
    |←-- GET /studies/{id}/report ---------------------- coordinator
         D-L pooled sensitivity: 0.83 [0.76–0.90]
         D-L pooled specificity: 0.89 [0.83–0.94]
         Method: DerSimonian-Laird random-effects

No raw patient records leave any hospital. Ever.


Components

Coordinator Server (coordinator/)

FastAPI + SQLite server. Hosts the study registry, collects aggregate stats from sites, runs meta-analysis, and generates publishable reports.

Deploy:

cd coordinator
flyctl deploy   # or any Python host (Railway, Render, etc.)

Endpoints:

  • POST /studies — create a validation study
  • POST /studies/{id}/sites — register a participating NICU, receive API token
  • POST /results — submit aggregate stats (site-side, authenticated)
  • GET /studies/{id}/report — D-L meta-analysis report

Safety features:

  • Small-cell suppression: sites with N<10 positives are flagged and excluded from meta-analysis (re-identification protection for rare conditions)
  • IRB expiration tracking: coordinator blocks submissions from sites with lapsed IRB approval
  • Append-only audit log for every submission (21 CFR Part 11 baseline)
  • HTTPS enforced at the edge

Site Package (site-package/)

Zero-dependency pip package. Runs locally at each participating NICU. Never sends raw records — computes stats locally, POSTs only JSON aggregate stats.

Install:

pip install nicu-validate
nicu-validate init --coordinator https://your-coordinator.fly.dev --token <token>
nicu-validate run --input your_data.csv

Input CSV format:

condition,prediction
1,0.92
0,0.13
1,0.87
...
  • condition: 0/1 ground truth (patient has the condition)
  • prediction: 0/1 or continuous probability score (tool output)

Study Setup

python3 setup_study.py

Interactive script. Creates a study, registers participating sites, and prints the exact pip install command to send to each NICU.


HIPAA Compliance

Aggregate statistics (sensitivity, specificity, AUC) are not PHI under HIPAA Safe Harbor (45 CFR §164.514(b)). The nicu-validate package enforces small-cell suppression (N<10 positives suppressed) to prevent statistical re-identification of rare condition patients.

Note: For very rare conditions, consult a biostatistician to confirm the suppression threshold is appropriate for your specific condition's base rate before live site submissions.


Regulatory Notes

  • Coordinator-level validation studies using aggregate-only outputs typically qualify as not-human-subjects research. Confirm with your institution's IRB.
  • Each participating site handles their own local IRB authorization.
  • If the underlying clinical decision support tool is subject to FDA 510(k) clearance, ensure the coordinator's audit log meets 21 CFR Part 11 requirements before using the validation data in a submission.

License

BYU Technology Transfer Office. Contact tto@byu.edu for licensing.

Metadata

Release files for nicu-validate 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nicu-validate 0.1.0
File Size Uploaded Provenance Actions
nicu_validate-0.1.0.tar.gz 8.1 kB Without provenance Details for nicu_validate-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nicu-validate 0.1.0
File Interpreter ABI Platform Actions
nicu_validate-0.1.0-py3-none-any.whl Python 3 none any Details for nicu_validate-0.1.0-py3-none-any.whl

Total release size: 16.3 kB

Release files / nicu_validate-0.1.0.tar.gz

Download URL nicu_validate-0.1.0.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c2476ee5cb6ea08cd498dccd655f0d60d4bab4b37eb9a7b92d403ba27d2877d2
BLAKE2b-256 checksum
How to use checksums
79ae11b6a51934ff635ae0227d6e302a353538d5f5111346b3aa0c86faae69e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.0

Release files / nicu_validate-0.1.0-py3-none-any.whl

Download URL nicu_validate-0.1.0-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a85daeca112177fd9b1261fcab673e2fe530eac9a55ba91e83d6eeb3504399ca
BLAKE2b-256 checksum
How to use checksums
539310e6f4695d31c872cb14c440338fb64b82f1d260abf06ea772264bb8bcb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.0

Security for nicu-validate 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page