This article is devoted to introducing a novel application of the Gray Wolf Optimizer (GWO) algorithm in one of the most challenging issues related to mineral exploration, anomaly separation from the background in stream sediment geochemical studies. The Alut geological sheet, located in the Sanandaj-Sirjan zone, which has special importance to gold prospecting, has been studied for the distribution of gold and arsenic that accompany each other as the paracenteses in such deposits. The cost function used in this algorithm has been provided according to previously well-explored deposits. While the GWO algorithm was able to divide the sheet into two classes of anomalous and non-anomalous areas, the fractal method identified four categories among distributions of gold and arsenic, which impose the responsibility of selecting anomalous areas on the scientists. The GWO draws the areas as potential zones of prospecting that may be neglected by fractal strategy. The derived results show that 24.8ppm and 15.7ppb is anomaly threshold for arsenic and gold distribution respectively. The comparison of the results shows that the anomaly threshold obtained by the fractal methods and GWO algorithm for arsenic is almost the same, but the anomaly threshold for gold in the GWO algorithm method is optimal.