Skip to content

A project of the Open Science Institute

OpenTwin Lab

Build and validate human digital twins on open standards

OpenTwin Lab provides standards, protocols, and reference pipelines to build, validate, and apply digital twins without centralizing personal health data.

Problem

Healthcare is fragmented.

Data infrastructure lacks interoperability.

Digital twin implementations are built in isolation.

OpenTwin Lab provides the missing foundation.

Positioning

What OpenTwin Lab is (and is not)

  • Not a product

    → provides open standards and protocols

  • Not a data platform

    → provides validation layer

  • Not a healthcare application

    → provides reference implementations

How it works · open-twin

Health data from several sources, mapped to one standard

  1. Sources

    Wearables, a 3D body scanner, health records, lab results and genome files.

  2. Connectors

    One package per source reads its data and maps it to FHIR R4.

  3. Shared FHIR contract

    Whose data it is, which codes describe it and which units it carries are decided once, in fhir-core.

  4. Checks

    Every pull request checks codes, UCUM units and example bundles against the HL7 validator.

  5. Reconcile

    When two sources report the same measure on the same day, aggregate picks one on published evidence. Every source value is kept.

  6. Interpret (research)

    A research module compares lab biomarkers with reference ranges and reports one state per body system.

  7. Ask (TwinLLM)

    TwinLLM, the agentic layer, takes the coded data and answers research questions with cited evidence, on an open model that can run locally.

  8. View

    OpenTwin XR shows the results on a 3D body, in the browser or on a headset.

How it works · TwinLLM

Ask open models, and see which numbers each answer used

  1. Sources

    Wearables through their vendor clouds, a BodyLoop scan on the local network, open guideline texts and our own knowledge notes, a synthetic Synthea cohort, and a genome that stays on its Ark device.

  2. Connect and sync

    Wearable syncs run on request with encrypted tokens. The scanner syncs or a scan is uploaded. Guidelines and notes are cut into chunks. The cohort is loaded with warehouse:ingest.

  3. Convert and store

    open-twin maps wearable data to FHIR R4 with LOINC codes and UCUM units, kept as snapshots in Postgres. Chunks are embedded on the machine into pgvector. Synthetic bundles fill the warehouse.

  4. Context and tools

    Models never see raw records. A turn gives them a wearable summary, scan measurements as numbers, and a small set of closed, capped query tools: latest value, trend, baseline, coverage, two windows compared, guideline and knowledge search.

  5. Model

    An open model served by Ollama on the same machine is the default; in local-only mode nothing about a person leaves it. Hosted open models get synthetic data only.

  6. Answer

    Up to three models answer the same question side by side, each with its reasoning, the values it cited and its uncertainty. The same pipeline runs the synthetic evaluation, scored and replayable.

  7. View

    The Digital Twin viewer shows the scan with reference anatomy layers and the Anchor biomarkers. The genome panel shows status only and never reaches the chat.

  8. Audit

    Every tool call is written to a hash-linked audit log, so each number in an answer can be traced to the rows it came from.

Get started

open-twin

open-twin is a set of TypeScript libraries that map health data from wearables, body scans, health records, lab results and genome files to FHIR R4. It is experimental software for research and non-medical wellness, not for diagnosis, treatment or other medical decisions.

  1. 01

    Install Node 22 and pnpm 11.17.0

  2. 02

    Install and build the workspace

  3. 03

    Run the checks and tests

  4. 04

    Emit example FHIR bundles

TwinLLM

TwinLLM is the research app on top of open-twin. It reads wearables, body scans and synthetic patient cohorts, lets up to three open models answer the same question, and shows the tool calls and values behind every answer. It can run entirely on your own machine. Research use only: it gives no medical advice and is not a medical device.

  1. 01

    Install Bun, Node 26, Postgres with pgvector, Java 21 and Ollama

  2. 02

    Clone the repository and run setup:local

  3. 03

    Pull qwen3:4b and nomic-embed-text

  4. 04

    Start the app and open localhost:3000

Implementations

Digital twins in action

OpenTwin Lab enables validated digital twin implementations across research and clinical environments.

  • The BodyLoop scanner room: a white sensor arch on a floor mat beside a desk with the operator workstation.

    Active

    Body scanner in Freiburg

    The VITRONIC BodyLoop at Medical Me in Freiburg scans the whole body in 0.3 seconds, without radiation. It is the first physical measurement layer of OpenTwin.

  • The TwinLLM chat: three local models asked for a chart of a synthetic subject’s heart rate, each column listing the tools it called, its answer and an inline heart-rate chart.

    Active

    TwinLLM research app

    Ask questions about wearable, body-scan and synthetic cohort data with up to three open models side by side. Every answer shows the tool calls and values behind it, and the whole app can run on your own machine. Research use only.

  • The OpenTwin XR viewer showing a male anatomical model, abdomen view, with the dataset panel open.

    Active

    OpenTwin XR viewer

    Our open-source 3D viewer of human anatomy. It brings several open atlases into one view, runs in the browser without installation, and works in WebXR headsets.

  • Rendering of the curtained meeting circles with lounge seating in front

    Coming soon

    Etherlaken Twin Experience zone

    A physical place to experience, explore, and understand one’s digital health twin, at the Open Twin Hub on the Etherlaken campus in Interlaken.

  • App-ready

    Available connectors

    WHOOP, Oura and Google Health connect through open-twin and map to FHIR R4. TwinLLM, the agentic layer on top, uses them to answer research questions with cited evidence.

  • The blue Springer cover of Digital Twins in Medicine, Health Informatics series.

    Coming soon

    Book: Digital Twins in Medicine

    Architecture, ethics and clinical applications for a learning health system. Edited by Robin Wilkening: 13 chapters by 37 authors, Open Access in the Springer Health Informatics series.

Contributors

Who writes the code

Both repositories are developed in the open. The figures come from their GitHub history, refreshed when the site is built: per repository the commits, merged pull requests, contributors and stars; per person the commits per week, commits and merged pull requests.

Updated

  • open-twin ↗

    TypeScript libraries that convert wearable, scanner, record, lab and genome data to FHIR R4, validate bundles and reconcile measurements across sources.

    Commits
    452
    Pull requests
    78
    Contributors
    4
    Stars
    16

    MIT licence · first commit 15 June 2026 · last commit 8 November 2026

  • twin-llm ↗

    The research app that asks open language models about that data and shows exactly which numbers every answer used.

    Commits
    307
    Pull requests
    305
    Contributors
    3
    Stars
    4

    Apache-2.0 licence · first commit 25 October 2026 · last commit 9 November 2026

  • Portrait of Peter Dike

    Peter Dike

    @CPD9, GitHub ↗, Profile →

    Maintains TwinLLM. In open-twin: the interpretation layer, Anchor biomarker ingest, the WHOOP connector and the Synthea cohort.

    open-twin

    Aug to Nov 2026

    102 commits

    19 pull requests

    twin-llm

    Oct to Nov 2026

    304 commits

    303 pull requests

  • Portrait of Berk Yildizgorer

    Berk Yildizgorer

    @BerkYildizgorer, GitHub ↗

    The first Oura, Google Health and VITRONIC connectors in open-twin, with their mappers, tests and CI.

    open-twin

    Jun to Jul 2026

    141 commits

    23 pull requests

  • Portrait of Martin Etzrodt

    Martin Etzrodt

    @etzm, GitHub ↗, Profile →

    Conceived open-twin as an open connector repository. The shared FHIR core, verification gates, reconciliation, the FHIR R4, HL7 v2, VCF and OpenWearables packages, and the intended-use guidance.

    open-twin

    Jul to Nov 2026

    113 commits

    5 pull requests

    twin-llm

    Oct 2026

    2 commits

    1 pull requests

  • Portrait of Paul Matthias

    Paul Matthias

    @PaulMatthiasVUSE, GitHub ↗

    Started the open-twin repository. Maintenance, dependencies, security policy and review.

    open-twin

    Jun to Nov 2026

    69 commits

    4 pull requests

  • twin-llm

    Nov 2026

    1 commits

    1 pull requests

  • Portrait of Robin Wilkening

    Robin Wilkening

    @robin-opening-science, GitHub ↗, Profile →

    Program lead Open Health at the Open Science Institute, home of OpenTwin Lab. Project lead of open-twin: scientific direction and the original Anchor biomarker list.

    Project lead

    scientific direction, no commits

Figures from the GitHub API: every commit on each repository’s main branch, merge commits included as GitHub counts them, and the pull requests merged, by author. Dependabot’s 27 commits and 27 pull requests are part of the open-twin totals.

Contribute

OpenTwin Lab is developed openly and collaboratively.

Contribute to standards, pipelines, and validation methods.

Open Source

open-twin is MIT-licensed, TwinLLM Apache-2.0. Both are maintained under the Open Science Foundation on GitHub.

Standards · Protocols · Reference pipelines · Validation

Cookie Notice

We use Matomo analytics, run on our own servers, to see how this site is used. It runs only if you accept. Privacy policy