anywatch¶
Anytime-valid post-market monitoring for deployed AI systems.
anywatch provides measurable statistical evidence for the post-market monitoring of AI models. It answers questions such as:
- Is the sensitivity of the model still at least 90 % in every hospital, age band and device type?
- Has the input distribution drifted away from the validation data?
- Did performance drop after a software update or a change in the patient population?
- Can these results be documented in a form that matches Article 72 of the EU AI Act or an FDA Predetermined Change Control Plan?
The key property: anytime validity¶
Post-market monitoring means looking at the data again and again. A classical test run every day will eventually raise a false alarm even when nothing is wrong, because the error probability accumulates over looks.
The tests in anywatch are built on e-values and confidence sequences. Their guarantees hold uniformly over time: the probability of ever raising a false alarm, however often and whenever you look, is at most the level you choose. You may stop, continue or extend monitoring at any time based on what you have seen.
Components¶
| Component | What it does |
|---|---|
| Sequential testing | Betting e-processes and confidence sequences for bounded means |
| Subgroup monitoring | Per-subgroup sensitivity, specificity and error rates with multiplicity control |
| Drift detection | Data drift and performance degradation alarms |
| Regulatory reporting | Audit trails and Article 72 or PCCP reports |
Where to start¶
Install the package as described in Installation, then follow the Quick start. The Theory page explains why the guarantees hold.