LAGO: A computationally efficient approach for statistical detection