This real-time model analyzes the signal from only one-lead ECG sensor to classify beats and detect irregular heartbeats ('AFIB arrhythmia'). The model is intended to be able to detect other kinds of anomalies which include atrial flutter, and will be continually prolonged and improved.Extra tasks can be very easily added on the SleepKit framework