A pre-clinical Edge-AI SDK for diabetes management validation.
Project description
IINTS-AF SDK
Intelligent Insulin Titration System for Artificial Pancreas
IINTS-AF is a safety-first simulation and validation platform for insulin dosing algorithms. It lets you test AI or classical controllers on virtual patients, enforce deterministic safety constraints, and generate audit-ready clinical reports before anything touches a real patient.
In one session you can:
- Run a clinic-safe preset and compare against PID and standard pump baselines
- Import real-world CGM CSV into a standard schema + scenario JSON
- Use the bundled demo CGM data pack (zero setup)
- Export a clean PDF report plus full audit trail (JSONL/CSV)
- Stress-test sensor noise, pump limits, and human-in-the-loop interventions
- Generate patient profiles with ISF/ICR + dawn phenomenon
Who it’s for:
- Diabetes researchers and clinicians validating new control strategies
- ML engineers benchmarking AI controllers with medical safety rails
- Developers building decision-support systems for closed-loop insulin delivery
Installation
Install the SDK directly via PyPI:
pip install iints-sdk-python35
Quick Start (CLI)
iints quickstart --project-name iints_quickstart
cd iints_quickstart
iints presets run --name baseline_t1d --algo algorithms/example_algorithm.py
One-line full run (CSV + audit + PDF + baseline):
iints run-full --algo algorithms/example_algorithm.py \
--scenario-path scenarios/clinic_safe_baseline.json \
--output-dir results/run_full
Import real-world CGM data:
iints import-data --input-csv data/my_cgm.csv --output-dir results/imported
Try the bundled demo data pack:
iints import-demo --output-dir results/demo_import
Official real-world datasets (download on demand):
iints data list
iints data info aide_t1d
iints data fetch aide_t1d
Some datasets require approval and are marked as request in the registry.
iints data info prints BibTeX + citation text for easy referencing.
Offline sample dataset (no download required):
iints data fetch sample --output-dir data_packs/sample
Or run the full demo workflow (import + run + report) in one script:
python3 examples/demo_quickstart_flow.py
Quick Start (Python)
import iints
from iints.core.algorithms.pid_controller import PIDController
outputs = iints.run_simulation(
algorithm=PIDController(),
scenario="scenarios/example_scenario.json",
patient_config="default_patient",
duration_minutes=720,
seed=42,
output_dir="results/quick_run",
)
Notebook Guide
Hands-on Jupyter notebooks live in examples/notebooks/
- Quickstart end-to-end run
- Presets + scenario validation
- Safety supervisor behavior
- Audit trail + PDF report export
- Baseline comparison + clinical metrics
- Sensor/pump models + human-in-the-loop
- Optional Torch/LSTM usage
- Ablation study (with/without Supervisor)
Documentation
- Product manual:
SDK_COMPREHENSIVE_GUIDE.md - Notebook index:
examples/notebooks/README.md - Technical README:
TECHNICAL_README.md - API Stability:
API_STABILITY.md
Ethics & Safety
This SDK is for research and validation. It is not a medical device and does not provide clinical dosing advice.
“Code shouldn’t be a secret when it’s managing a life.” — Bobbaers Rune
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iints_sdk_python35-0.1.11.tar.gz.
File metadata
- Download URL: iints_sdk_python35-0.1.11.tar.gz
- Upload date:
- Size: 829.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6acea5af2af911ecf40543069f39ebd0ab7b3cb3dcb26bbc47b48f6a1811dc95
|
|
| MD5 |
8999a8a224a046264d233f7d5835606a
|
|
| BLAKE2b-256 |
254dca976013858514a6670d5d7c6d841fb7f2c7ef6521bbdb462d032d91393d
|
Provenance
The following attestation bundles were made for iints_sdk_python35-0.1.11.tar.gz:
Publisher:
publish-pypi.yml on python35/IINTS-SDK
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
iints_sdk_python35-0.1.11.tar.gz -
Subject digest:
6acea5af2af911ecf40543069f39ebd0ab7b3cb3dcb26bbc47b48f6a1811dc95 - Sigstore transparency entry: 955651575
- Sigstore integration time:
-
Permalink:
python35/IINTS-SDK@e62a082c15a1566a03710df6b3deaa541df1825f -
Branch / Tag:
refs/tags/v0.1.11 - Owner: https://github.com/python35
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@e62a082c15a1566a03710df6b3deaa541df1825f -
Trigger Event:
push
-
Statement type:
File details
Details for the file iints_sdk_python35-0.1.11-py3-none-any.whl.
File metadata
- Download URL: iints_sdk_python35-0.1.11-py3-none-any.whl
- Upload date:
- Size: 860.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9f82fc805cb6ae5125d0ca4d189f3323378098144e16feb642249c7bd15e9d4
|
|
| MD5 |
d2ae8c7d4e10a9d813a3c92892fa75c1
|
|
| BLAKE2b-256 |
5ccd366b00b45d202023295cb369134e97559a17766efe71f65a722da274ba11
|
Provenance
The following attestation bundles were made for iints_sdk_python35-0.1.11-py3-none-any.whl:
Publisher:
publish-pypi.yml on python35/IINTS-SDK
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
iints_sdk_python35-0.1.11-py3-none-any.whl -
Subject digest:
b9f82fc805cb6ae5125d0ca4d189f3323378098144e16feb642249c7bd15e9d4 - Sigstore transparency entry: 955651601
- Sigstore integration time:
-
Permalink:
python35/IINTS-SDK@e62a082c15a1566a03710df6b3deaa541df1825f -
Branch / Tag:
refs/tags/v0.1.11 - Owner: https://github.com/python35
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@e62a082c15a1566a03710df6b3deaa541df1825f -
Trigger Event:
push
-
Statement type: