Extraction of periodic signals from a noise background