Signal processing and detection