Embedded solution for ECG measurement and machine learning-based real time analysis