
XeonLLM: LLM Inference Engine and Agentic AI Platform
XeonLLM is the LLM inference and agentic AI platform I build and own end to end at Digimat SPA, from architecture through production handover; its open-source face is a native...
Read More

Published on May 26, 2017 by Samer Kharboush on ML Healthcare
ECG heartbeat classification model trained on the MIT-BIH Arrhythmia Database, combining scikit-learn feature extraction with Keras deep learning to classify heartbeats into five arrhythmia classes.
An electrocardiogram (ECG) records the electrical activity of the heart, and classifying individual heartbeats into arrhythmia types is a standard screening task. This project contains a machine-learning model for classifying ECG heartbeats using scikit-learn and Keras. The model is trained on the MIT-BIH Arrhythmia Database, a widely used public collection of ECG recordings with beat-level annotations for different types of arrhythmias, and classifies each heartbeat into one of five classes: Normal, Premature Ventricular Contraction (PVC), Premature Atrial Contraction (PAC), Left Bundle Branch Block (LBBB) and Right Bundle Branch Block (RBBB).
The goal is a heartbeat classifier that separates normal beats from four arrhythmia classes, using a combination of feature extraction with scikit-learn and deep learning with Keras, so the pipeline is both interpretable and accurate. The five-class output matches the annotation categories of the source database.
I built the full workflow: data preparation from the MIT-BIH annotations, feature extraction with scikit-learn, model construction in Keras, training, and evaluation on a held-out test set. I also documented the requirements and acknowledgements so the project can be reproduced.
The model combines feature extraction with scikit-learn and deep learning with Keras. Heartbeats are segmented from the recordings using the database annotations, features are extracted from each beat, and a Keras neural network classifies each heartbeat into one of the five classes. Feature extraction turns each beat into a fixed-length feature vector that the classical layer can work with, and the deep network then learns the decision boundary between classes. The project is organised as a runnable Python project: a requirements.txt lists the dependencies, and the notebook and scripts take the data from preparation through training to evaluation. The README documents the five output classes and the evaluation metrics the project reports (accuracy, precision, recall, F1).
Python 3.6 or higher, scikit-learn, Keras, TensorFlow, NumPy, Matplotlib.
No measured accuracy, precision, recall or F1 figures are available in the source — the upstream README carries placeholder markers where those numbers would go, and I have not filled them in — so results are stated as delivered capabilities. Accuracy, precision, recall and F1 are the standard classification metrics for this task; the project defines the evaluation protocol for them but publishes no values. The delivered model classifies ECG heartbeats into the five classes on the MIT-BIH Arrhythmia Database using scikit-learn feature extraction plus Keras deep learning, with a documented, reproducible Python environment (Python 3.6+, scikit-learn, Keras, TensorFlow, NumPy, Matplotlib) and a clear evaluation protocol. The MIT-BIH Arrhythmia Database is acknowledged for providing the ECG recordings and annotations, and the scikit-learn and Keras libraries for the machine-learning tools.
Source code: github.com/SamerKharboush/ECG.

XeonLLM is the LLM inference and agentic AI platform I build and own end to end at Digimat SPA, from architecture through production handover; its open-source face is a native...
Read More
AIPL is my open-source, auditable ADMET screening platform for early drug-discovery decisions, in active development. ADMET — absorption, distribution, metabolism, excretion and toxicity — screening decides which molecules move forward,...
Read More
Space2Sea is a EUR 1.04M PR FESR project with CNR that I contribute to at Digimat: a multi-sensor Earth Observation platform for protecting coastal marine environments, built on Digital Twin...
Read More