Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mathfi.ai/llms.txt

Use this file to discover all available pages before exploring further.

The problem: health anomaly detection in ECG signals

Detecting anomalies within human heart ECG signals can help health practitioners identify and diagnose potentially fatal heart conditions to prevent heart attacks or cure heart diseases saving patients’ lives.

The data

In this use case, we will use a labelled ECG training data to use MathFi.ai platform to detect the ECG anomaly patterns. The data includes samples of ECG time series taken from multiple ECG sensors on human body: The base dataset used is (ECGAnomaly.csv).
ECG CSV

Dataset creation

Use the following parameters for dataset creation:
  • number of buckets: 20
Dataset creation

Training

This is the best training attempt:
  • scaling factor: 19
  • performance threshold: 0.99
Training params And the created champion model: Training best
The final performance of 0.99 was achieved after few iterations of hyperparameter tuning:
Number of BucketsScaling FactorPerformance Threshold
20190.80
20190.98
20190.99

Final result

When performing binary classifications or predictions, MathFi.ai platform’s underlying proprietary algorithms calculate the probability of certainty for a prediction outcome.
  • One label (e.g.1) will be selected when the probability is equal or above 0.5
  • and the other one (e.g. 0) will be selected when the probability is below 0.5
The closer the value is to 0 or 1, the more certain is the prediction. The probability is presented in a dedicated column in the prediction result file. Using this unseen unlabelled data, the resulting CSV looks like this: Prediction 2
Build this yourself — Follow the Quickstart to run your first prediction, or go straight to API Recipes to integrate programmatically.