# ECG-Based Denoising (DEN-TCN-SM)

## Overview

The following table provides the latest pre-trained model for ECG-based denoising. Below we also provide additional details including training configuration, performance metrics, and downloads.

| NAME                | DATASET           | FS    | DURATION | MODEL          | PARAMS | FLOPS   | METRIC      |
| ------------------- | ----------------- | ----- | -------- | -------------- | ------ | ------- | ----------- |
| __DEN-TCN-SM__      | Synthetic, PTB-XL | 100Hz | 2.5s     | TCN            | 3.3K   | 1.0M    | 18.1 SNR    |

---

## Input

The model is trained on 5-second, raw ECG frames sampled at 100 Hz.

- **Sensor**: ECG
- **Location**: Wrist
- **Sampling Rate**: 100 Hz
- **Frame Size**: 5 seconds

### Datasets

The model is trained on the following datasets:

- **[Synthetic](https://ambiqai.github.io/heartkit/datasets/synthetic/)**
- **[PTB-XL](https://ambiqai.github.io/heartkit/datasets/ptbxl/)**

---

## Model Performance

The following table provides the performance metrics for the ECG-based denoising model.

| Metric       | Value |
| ------------ | ----- |
| MAE          | 6.6%  |
| MSE          | 1.1%  |
| COSSIM       | 85.9% |

---

## Downloads

| Asset                                                                | Description                   |
| -------------------------------------------------------------------- | ----------------------------- |
| [configuration.json](https://ambiqai-model-zoo.s3.us-west-2.amazonaws.com/heartkit/denoise/den-tcn-sm/latest/configuration.json)   | Configuration file            |
| [model.keras](https://ambiqai-model-zoo.s3.us-west-2.amazonaws.com/heartkit/denoise/den-tcn-sm/latest/model.keras)            | Keras Model file              |
| [model.tflite](https://ambiqai-model-zoo.s3.us-west-2.amazonaws.com/heartkit/denoise/den-tcn-sm/latest/model.tflite)       | TFLite Model file             |
| [metrics.json](https://ambiqai-model-zoo.s3.us-west-2.amazonaws.com/heartkit/denoise/den-tcn-sm/latest/metrics.json)       | Metrics file                  |

---
