Skip to main content

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

Project description

IINTS-AF SDK

EUCYS 2026 PyPI version Python Package CI Docs

"Code shouldn't be a secret when it's managing a life."

Insulin pumps make hundreds of autonomous decisions about drug delivery every day.
The algorithms behind those decisions are proprietary, unauditable, and difficult to inspect or improve, even by the patients whose lives depend on them.

IINTS-AF is an open-source research platform that changes that.

Core Research Question

Can open-source simulation and deterministic safety supervision make insulin delivery algorithm development safer and more transparent for researchers and patients?


What It Does

Simulate: Run virtual patients through thousands of scenarios before any algorithm reaches a real device. A deterministic safety supervisor audits every AI decision. The AI may suggest. The supervisor decides.

Certify: Every dataset is fingerprinted and graded before it touches a study workflow. The goal is to keep benchmark inputs traceable, reviewable, and reproducible.

Understand: Generate audit-ready reports, visual posters, and local AI summaries from the same study bundle. IINTS-AF can use local models such as Ministral for explanation workflows on your own hardware.


Research Results

Final locked benchmark: 3600 simulation runs, 6 profiles, 4 scenario families, 5 algorithms, 10 fixed seeds.

Metric ExampleAlgorithm PID Baseline Delta
Time in Range 87.16% 83.72% +3.44%
Time < 70 mg/dL 1.28% 5.25% -3.97%
Supervisor interventions 99 177 -78

Additional benchmark result:

  • clean certified conditions showed +17.64 Time-in-Range points versus corrupted uncertified conditions

For the full scientific write-up, see:

  • research/EUCYS_REPORT.md
  • research/EUCYS_REPORT.pdf
  • results/eucys_2026/EUCYS_RESULTS/EUCYS_SUMMARY.md

Install

python3 -m venv .venv && source .venv/bin/activate
pip install -U "iints-sdk-python35[full,mdmp]"
iints doctor --smoke-run

Edge devices (Raspberry Pi 5, Arduino UNO Q):

pip install -U "iints-sdk-python35[edge,mdmp]"

Quick Start

iints quickstart --project-name my_study
cd my_study
iints presets run --name baseline_t1d --algo algorithms/example_algorithm.py
iints data certify contracts/clinical_mdmp_contract.yaml data/demo/diabetes_cgm.csv --output-json audit/certification.json
iints ai report results/<run_id>

Final Benchmark Workflow

tools/research/run_eucys_final.sh \
  --algo algorithms/example_algorithm.py \
  --output-dir results/eucys_2026 \
  --seeds 1,2,3,4,5,6,7,8,9,10

Then render the report:

tools/research/render_eucys_report_pdf.sh

Main final artifacts:

  • results/eucys_2026/
  • results/eucys_2026/EUCYS_RESULTS/EUCYS_MAIN_FIGURE.png
  • results/eucys_2026/EUCYS_RESULTS/EUCYS_RESULTS_TABLE.csv
  • research/EUCYS_REPORT.md
  • research/EUCYS_REPORT.pdf

Live Digital Patient (Raspberry Pi)

iints patient start \
  --algo algorithms/example_algorithm.py \
  --scenario-profile expo_hot_start \
  --mode demo-time --speed 60x

Open http://127.0.0.1:8765/dashboard. You will see a virtual patient running continuously, reacting to meals, exercise, and sleep in real time.


Documentation

Getting started Open guide
Edge hardware Open guide
Raspberry Pi setup Open guide
Data certification Open guide
Full manual Open PDF manual
Research report Open report source

IINTS-AF is research software. Not a medical device.
No clinical dosing advice. MIT Licensed.


Built by a 17-year-old with type 1 diabetes who wanted to understand the device managing his life.

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-1.5.4.tar.gz (1.2 MB 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-1.5.4-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file iints_sdk_python35-1.5.4.tar.gz.

File metadata

  • Download URL: iints_sdk_python35-1.5.4.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for iints_sdk_python35-1.5.4.tar.gz
Algorithm Hash digest
SHA256 a20e76ce10bf79620a02a09a9b5d6e6f54a3a583cb5ccb480800282dcf41d5da
MD5 414215e74c7d346d81b20ae6fca3185e
BLAKE2b-256 58751e86ae82a2ce9de00c5e8b5421b0f85ab9b89ad02256ddb22cbccf55df77

See more details on using hashes here.

Provenance

The following attestation bundles were made for iints_sdk_python35-1.5.4.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-1.5.4-py3-none-any.whl.

File metadata

File hashes

Hashes for iints_sdk_python35-1.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7cbfb56a2464ad95bb48884a918947e0801e47ab4e072a107f13f644088aa0c0
MD5 2b2692a5e0222d17d5c87f98fd46adcc
BLAKE2b-256 ac76066fd99592fac23ea72f1da5798c3310ed39b3bde2bc7d4ae99e5599e0f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for iints_sdk_python35-1.5.4-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