Skip to main content

A pre-clinical Edge-AI SDK for diabetes management validation.

Project description

IINTS-AF SDK

PyPI version Python Package CI Site

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:

  1. InputValidator
    Filters biologically implausible glucose input and applies fail-soft fallback.
  2. LSTM Predictor (optional)
    Forecasts future glucose; advisory only.
  3. 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

Documentation

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iints_sdk_python35-0.1.21.tar.gz (903.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iints_sdk_python35-0.1.21-py3-none-any.whl (945.2 kB view details)

Uploaded Python 3

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

Hashes for iints_sdk_python35-0.1.21.tar.gz
Algorithm Hash digest
SHA256 811e6130275a545748eb56ac22fe2dd56a6fa3e0166ae42928ef8c1c7a72b494
MD5 e3b4ec55c05689d481af1e74fb0a31b9
BLAKE2b-256 179d5cbc63097dffe1f8176dd3f750d8138032c22ad43114bc6e98872f0b9a77

See more details on using hashes here.

Provenance

The following attestation bundles were made for iints_sdk_python35-0.1.21.tar.gz:

Publisher: publish-pypi.yml on python35/IINTS-SDK

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file iints_sdk_python35-0.1.21-py3-none-any.whl.

File metadata

File hashes

Hashes for iints_sdk_python35-0.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 8f8320e2ede4d4164960d37f3c71f7f802d937dd7fc99b79ce79becc37bd386a
MD5 326a10d3701064f4224e1b4b4d1c0311
BLAKE2b-256 f01c64d49963eab046d0fed9d9feb0774f3b508a5cf1801c77115c1eb43f0e69

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page