sample_detection