AION — Algebraic Interval Ontology for Clinical Networks. Formal mathematical model for clinical information systems.
Project description
AION — Algebraic Interval Ontology for Clinical Networks
Formal structure for consistent, time-aware clinical data.
Why AION?
Clinical data systems often produce inconsistent results.
Not because of missing interfaces —
but because time, semantics and causality are not modelled consistently.
Typical consequences:
- inconsistent analytics across systems
- manual correction logic in every project
- limited reliability for AI applications
AION solves this.
It provides a formal, executable model to:
- represent clinical events over time
- define and validate relationships between them
- ensure consistent interpretation across systems
Quick Start
pip install aion
from aion.core import Interval, classify
import datetime
dt = lambda h: datetime.datetime(2024, 1, 1, h, 0)
anaesthesia = Interval(dt(7), dt(12))
operation = Interval(dt(8), dt(11))
print(classify(anaesthesia, operation))
# → AllenRelation.CONTAINS
👉 AION models relations between events, not just events themselves.
What makes AION different?
Most systems model clinical data as isolated events.
AION models:
- intervals instead of points
- relations instead of implicit assumptions
- causal structures instead of static data
This enables:
- consistent temporal reasoning
- reproducible analytics
- verifiable data models
Core Capabilities
Temporal Model
- Complete Allen interval algebra (13 relations)
- Fuzzy intervals with probabilistic reasoning
Data Model
- Universal clinical event model (6-tuple)
- Type system with hierarchy and schema evolution
Query & Analytics
- Cohort algebra
- temporal pattern languages
Causal Inference
- causal graphs
- do-operator
- structure learning
AI Integration
- formal AI component model
- explainability (Shapley, counterfactuals)
Privacy
- differential privacy (Laplace / Gaussian)
- federated computation
Interoperability
- FHIR mapping via structural homomorphism
Architecture Overview
aion/
├── core Temporal algebra, event model
├── abstraction Episodes and trajectories
├── query Cohort algebra
├── causal Causal inference
├── privacy Differential privacy
├── ai AI model integration
├── explain Explainability
├── schema Schema evolution
└── adapters FHIR mapping
Test Suite
pytest aion/tests/
# 326 tests, ~2s runtime
Positioning
AION is not:
- a data format
- a data warehouse
- a FHIR replacement
AION is:
the structural layer beneath clinical data systems
License & Citation
EUPL-1.2 — open source
Commercial licensing: licensing@iscad-it.de
@software{aion2025,
title = {AION: Algebraic Interval Ontology for Clinical Networks},
author = {Matten, Friedhelm},
year = {2025},
url = {https://codeberg.org/fm2-project/aion}
}
© Friedhelm Matten, ISCaD GmbH
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 aion_clinical-1.0.1.tar.gz.
File metadata
- Download URL: aion_clinical-1.0.1.tar.gz
- Upload date:
- Size: 90.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9b8b29148f76a882b9934976b5c8cc258eced801699da72c9c4cdb6579e4d6a
|
|
| MD5 |
e109cbead756a6f3f3590f257dac954c
|
|
| BLAKE2b-256 |
8e048146b5811c07fb1f33e3fe41fc110b3211e21c61b202acbe69612c8bac76
|
File details
Details for the file aion_clinical-1.0.1-py3-none-any.whl.
File metadata
- Download URL: aion_clinical-1.0.1-py3-none-any.whl
- Upload date:
- Size: 106.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
539532ef0f0d2769196856cb866620bf8736a7340e4380b867ac2680ce199f2d
|
|
| MD5 |
a3297064101f4d9173c43b42ce74b222
|
|
| BLAKE2b-256 |
58a50eb1633b6cf0c6eec2aabe3b0eda1ab6a58c1d638409806e473514bec3be
|