Algorithms for signal extraction