detection and analysis