Classify ECG signals into predefined categories based on heartbeat abnormality by transforming time series to images