A pre-clinical Edge-AI SDK for diabetes management validation.
Project description
IINTS-AF SDK
IINTS-AF is a safety-first simulation SDK for insulin algorithm research. It helps you test controllers, validate safety behavior, and generate audit-ready artifacts.
New here? Start with: docs/PLAIN_LANGUAGE_GUIDE.md
What You Get
- Virtual patient simulation for insulin strategies.
- Deterministic safety supervision (hard rules).
- Optional AI glucose predictor as advisory signal.
- Audit outputs: CSV, JSON, PDF reports.
- Validation and scorecard tooling for repeatable benchmarks.
- Transparent evidence manifest linked to peer-reviewed sources (
iints sources).
Open Logic (Dual-Guard)
IINTS-AF is built as layered logic, not black-box control:
InputValidator
Filters biologically implausible glucose input and applies fail-soft fallback.LSTM Predictor(optional)
Forecasts future glucose; advisory only.IndependentSupervisor
Deterministically validates every dose request and overrides unsafe actions.
Install
pip install iints-sdk-python35
Research extras:
pip install iints-sdk-python35[research]
Quick Start (CLI)
iints quickstart --project-name iints_quickstart
cd iints_quickstart
iints presets run --name baseline_t1d --algo algorithms/example_algorithm.py
One full run with artifacts:
iints run-full \
--algo algorithms/example_algorithm.py \
--scenario-path scenarios/clinic_safe_baseline.json \
--output-dir results/run_full
Dual-Guard run with predictor:
iints run-full \
--algo algorithms/example_algorithm.py \
--predictor models/hupa_finetuned_v2/predictor.pt \
--scenario-path scenarios/clinic_safe_baseline.json \
--output-dir results/dual_guard
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",
)
Most Used Commands
# Environment and validation checks
iints doctor --smoke-run
iints validation-profiles
iints validate-run --results-csv results/run_full/results.csv --profile research_default
iints contract-verify --output-json results/contract_report.json
iints replay-check --algo algorithms/example_algorithm.py --output-json results/replay_check.json
iints golden-benchmark --algo algorithms/example_algorithm.py --output-json results/golden_benchmark.json
# Scenario bank benchmark
iints scorecard --algo algorithms/example_algorithm.py --profile research_default --output-dir results/scorecard
# Research diagnostics
iints research audit-split --data data_packs/public/OhioT1DM/processed/ohio_merged.csv
iints research evaluate-forecast --input-csv results/dual_guard/results.csv
iints research evaluate-forecast --input-csv results/dual_guard/results.csv --gate-profile research_default
iints research registry-list --registry models/registry.json
iints research registry-promote --registry models/registry.json --run-id <run-id> --stage validated
Demos and Notebooks
- Demo scripts: examples/demos
- Notebook tutorials: examples/notebooks
Documentation
- Manual (PDF): docs/manuals/IINTS-AF_SDK_Manual.pdf
- Comprehensive guide: docs/COMPREHENSIVE_GUIDE.md
- Technical README: docs/TECHNICAL_README.md
- Plain-language guide: docs/PLAIN_LANGUAGE_GUIDE.md
- Evidence base (peer-reviewed sources): docs/EVIDENCE_BASE.md
- Research track: research/README.md
Evidence and Provenance
The SDK ships a source manifest grounded in peer-reviewed diabetes literature and standards.
iints sources
iints sources --category trial --output-json results/source_manifest.json
Safety Notice
This SDK is for research and validation only.
It is not a medical device and does not provide clinical dosing advice.
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.21.tar.gz.
File metadata
- Download URL: iints_sdk_python35-0.1.21.tar.gz
- Upload date:
- Size: 903.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
811e6130275a545748eb56ac22fe2dd56a6fa3e0166ae42928ef8c1c7a72b494
|
|
| MD5 |
e3b4ec55c05689d481af1e74fb0a31b9
|
|
| BLAKE2b-256 |
179d5cbc63097dffe1f8176dd3f750d8138032c22ad43114bc6e98872f0b9a77
|
Provenance
The following attestation bundles were made for iints_sdk_python35-0.1.21.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.21.tar.gz -
Subject digest:
811e6130275a545748eb56ac22fe2dd56a6fa3e0166ae42928ef8c1c7a72b494 - Sigstore transparency entry: 1044193756
- Sigstore integration time:
-
Permalink:
python35/IINTS-SDK@a30fc80ea8322859f319a5d00e0f3fc8e7703dc5 -
Branch / Tag:
refs/tags/v0.1.21 - Owner: https://github.com/python35
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@a30fc80ea8322859f319a5d00e0f3fc8e7703dc5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file iints_sdk_python35-0.1.21-py3-none-any.whl.
File metadata
- Download URL: iints_sdk_python35-0.1.21-py3-none-any.whl
- Upload date:
- Size: 945.2 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 |
8f8320e2ede4d4164960d37f3c71f7f802d937dd7fc99b79ce79becc37bd386a
|
|
| MD5 |
326a10d3701064f4224e1b4b4d1c0311
|
|
| BLAKE2b-256 |
f01c64d49963eab046d0fed9d9feb0774f3b508a5cf1801c77115c1eb43f0e69
|
Provenance
The following attestation bundles were made for iints_sdk_python35-0.1.21-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.21-py3-none-any.whl -
Subject digest:
8f8320e2ede4d4164960d37f3c71f7f802d937dd7fc99b79ce79becc37bd386a - Sigstore transparency entry: 1044193893
- Sigstore integration time:
-
Permalink:
python35/IINTS-SDK@a30fc80ea8322859f319a5d00e0f3fc8e7703dc5 -
Branch / Tag:
refs/tags/v0.1.21 - Owner: https://github.com/python35
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@a30fc80ea8322859f319a5d00e0f3fc8e7703dc5 -
Trigger Event:
push
-
Statement type: