Sequential algorithm for life threatening cardiac pathologies detection based on mean signal strength and EMD functions