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
Sources
Wearables, a 3D body scanner, health records, lab results and genome files.
Connectors
One package per source reads its data and maps it to FHIR R4.
Shared FHIR contract
Whose data it is, which codes describe it and which units it carries are decided once, in fhir-core.
Checks
Every pull request checks codes, UCUM units and example bundles against the HL7 validator.
Reconcile
When two sources report the same measure on the same day, aggregate picks one on published evidence. Every source value is kept.
Interpret (research)
A research module compares lab biomarkers with reference ranges and reports one state per body system.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
- 01
Install Node 22 and pnpm 11.17.0
- 02
Install and build the workspace
- 03
Run the checks and tests
- 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.
- 01
Install Bun, Node 26, Postgres with pgvector, Java 21 and Ollama
- 02
Clone the repository and run setup:local
- 03
Pull qwen3:4b and nomic-embed-text
- 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.

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.

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.

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.

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.

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
Contributor
Repository
commits per week
pull requests

Peter Dike
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 commits19 pull requests
twin-llm
Oct to Nov 2026
304 commits303 pull requests

Berk Yildizgorer
The first Oura, Google Health and VITRONIC connectors in open-twin, with their mappers, tests and CI.
open-twin
Jun to Jul 2026
141 commits23 pull requests

Martin Etzrodt
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 commits5 pull requests
twin-llm
Oct 2026
2 commits1 pull requests

Paul Matthias
Started the open-twin repository. Maintenance, dependencies, security policy and review.
open-twin
Jun to Nov 2026
69 commits4 pull requests

Arvind Kumar
twin-llm
Nov 2026
1 commits1 pull requests

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