models
Models API
heartKIT provides a number of model architectures that can be used for training heart-monitoring tasks.
While a number of off-the-shelf models exist, they are often not efficient nor optimized for real-time, edge applications.
To address this, heartKIT provides a model factory that allows you to easily create and train customized models via helia-edge.
helia-edge includes a growing number of state-of-the-art models that can be easily configured and trained using high-level parameters.
The models are designed to be efficient and well-suited for real-time, edge applications.
Most of the models are based on state-of-the-art architectures that have been modified to allow for more fine-grain customization.
In addition, the models support 1D variants to allow for training on time-series data.
Please check helia-edge for list of available models and their configurations.
Available Models
- TCN: A CNN leveraging dilated convolutions (key=
tcn) - U-Net: A CNN with encoder-decoder architecture for segmentation tasks (key=
unet) - U-NeXt: A U-Net variant leveraging MBConv blocks (key=
unext) - EfficientNetV2: A CNN leveraging MBConv blocks (key=
efficientnet) - MobileOne: A CNN aimed at sub-1ms inference (key=
mobileone) - ResNet: A popular CNN often used for vision tasks (key=
resnet) - Conformer: A transformer composed of both convolutional and self-attention blocks (key=
conformer) - MetaFormer: A transformer composed of both spatial mixing and channel mixing blocks (key=
metaformer) - TSMixer: An All-MLP Architecture for Time Series Classification (key=
tsmixer)
Model Factory
The ModelFactory provides a convenient way to access the built-in models.
Usage
A model architecture can easily be instantied by providng a custom set of parameters to the model factory. Each model exposes a set of parameters defined using Pydantic to ensure type safety and consistency.
Example
The following example demonstrates how to create a TCN model using the Tcn class. The model is defined using a set of parameters defined in the TcnParams and TcnBlockParams classes.