1 Introduction

Blasting is a common rock fragmentation technique used in mining works, and also several civil engineering applications like tunneling and road construction. Conducting a desired blasting work can cause overall cost reduction, improving the efficiency of drilling operation, increasing cost of loading and cargo, and improving the operation after extraction of minerals [1]. In blasting operation, a large amount of explosive energy are wasted to create environmental impacts like ground vibration, air-overpressure (AOp), flyrock and back-break which can affect surrounding area [26].

According to institute of makers of explosives (IME), flyrock is an unexpected throw or movement of the fragmented rock due to excessive force of the explosive material [7]. Flyrock as a serious environmental impact of blasting is often a cause of fatalities, serious injury to people, damage to equipment, building, and property [1]. Based on study conducted by Rustan [8], back-break (BB) is defined as broken rocks beyond the limits of the rear row of holes in a blast pattern. In addition to some risks of BB such as instabilities of equipment and bench, this environmental impact can also cause problems in the next blast-cycle due to escape of gas from the created cracks. According to many researchers such as Bajpayee et al. [9], Fletcher and D’Andrea [10], Rehak et al. [11], Shea and Clark [12], and Siskind and Kopp [13], generally, mismatch between the explosive material energy and surrounded rock mass strength can cause flyrock. Moreover, Massey and Siu [14] mentioned that loose rocks (with many cracks) in the blast-hole may create flyrock. Gustafsson [15] concluded that energy of flyrock distance has a direct relation with excessive explosive material used in the blast-hole. Furthermore, powder factor and stemming length were selected as the most influential parameter on flyrock in the studies by Monjezi et al. [16] and Rezaei et al. [17], whereas rock density was introduced as the least effective parameter in these studies.In case of back-break, Konya [18] believed that this impact can be increased by increasing the length of burden and stemming. In addition, Gateset al. [19] mentioned two factors as the most influential parameters on BB: inadequate delay time and increasing the number of blast-row. Monjezi and Dehghani [20] reported that stemming to burden ratio, ratio of last row charge to total charge, number of row are the most effective parameters on BB. In another study, Esmaeili et al. [21] concluded that last row charge weight, number of row, powder factor, and stemming length are the most influential parameter on BB, whereas stiffness ratio, burden to spacing ratio and rock density are the least effective parameters.

Empirical models have been utilized for blasting pattern design. Since these models only consider a limited number of effective parameters on blasting environmental impacts, they cannot estimate blasting pattern parameters properly. Previously, several scholars, e.g. Lundborg [22], Roth [23], have been proposed empirical models to predict flyrock and BB. Hustrulid [24] highlighted that proposed empirical methods of flyrock are not good enough in predicting flyrock induced by blasting.

Recently, the use of artificial intelligence (AI) techniques such as artificial neural network (ANN), fuzzy inference system (FIS), adoptive neuro-fuzzy inference system (ANFIS) in solving geotechnical problems is underlined in many studies (e.g. [2528]). Specially, in the field of blasting environmental impacts, these methods have been widely utilized (e.g. [20, 21]). That is due to the fact that AI-based predictive models take advantage of flexible nature where the models can be easily calibrated when new data become available. This advantage makes them powerful and fast in solving engineering problems more specifically when the problems are highly nonlinear and the contact natures between input and output parameters are unknown [29].

Grima and Babuška [30] and Tonnizam Mohamad et al. [31] proposed an AI model for prediction of uniaxial compressive strength (UCS) of the rock. Alvarez Grima et al. [32] introduced a new model based on ANFIS to predict tunnel boring machine (TBM) performance. A hybrid ANN-based predictive model was developed to estimate pile bearing capacity in the study carried out by Momeni et al. [25]. Ocak and Seker [33] developed ANN technique for solving problem of surface settlement caused by tunneling. Gordan et al. [34] proposed a hybrid particle swarm optimization (PSO)-ANN to predict seismic stability of the homogeneous slopes. Furthermore, several researchers have been used AI techniques in the case of blasting environmental impacts. Khandelwal and Singh [35] utilized ANN to develop a new model for prediction of ground vibration resulting from blasting. A FIS model was applied and developed by Rezaei et al. [17] to predict flyrock distance. They compared the FIS results with conventional statistical models and showed the higher efficiency of the developed FIS model compared to statistical models. Esmaeili et al. [21] applied ANN, ANFIS and regression models to predict BB using the data of Sangan iron mine, Iran. Their results showed the capability of ANFIS model in predicting BB compared to other used methods. A new approach was developed by Hajihassani et al. [36] based on hybrid particle swarm optimization (PSO) and ANN model for prediction of AOp. The results demonstrated that the presented method is an applicable tool to predict AOp with high degree of accuracy. Table 1 shows recent studies of flyrock and backbreak prediction using AI techniques.

Table 1 Recent studies of flyrock and backbreak prediction using AI techniques

Swarm intelligence is a relatively new approach to solve the optimization problems in which these methods are inspired by the behaviour of insects and animals. Among these, ant colony optimization (ACO) algorithm has been received attention due to its success in optimizing the engineering problems [49]. ACO is a multi-agent optimization algorithm inspired by the behaviour of real ants. It was originally developed to solve discrete optimization problems e.g. travelling sales person [4951], routing [52, 53] and scheduling [54, 55]. Afterwards, ACO was performed successfully in continuous optimization problems [56]. In the field of mining engineering, only a few studies have been carried out using ACO algorithm. A new metaheuristic approach based on ACO was proposed by Shishvan and Sattarvand [57] for the solution of the problem of open-pit mine production planning. Zhu and Xiao-ping [58] evaluated the indices of human accident at coal mines using ACO algorithm. In another study, Gao [59] developed an abstraction ant colony clustering algorithm for forecasting rockbursts in deep underground engineering. For solving blasting environmental impacts such as flyrock and BB, there is no attempt to optimize blasting parameters using ACO. In the present research, initially, flyrock and BB induced by blasting are predicted by ANN using 97 datasets obtained from Delkan iron mine, Iran. After that, considering the blasting data of Delkan mine and using ACO algorithm, blasting pattern parameters are optimized to minimize the results of flyrock and BB.

2 Method

2.1 Artificial neural network

Artificial neural network (ANN) was developed by McCulloch and Pittsin 1943 [60]. ANNs are composed of large numbers of neurons, while a neuron is a simplification of a biological neuron. Depending on problem to be solved, different numbers of neurons can be utilized. There are various ways to connect the neurons to create an ANN model. Feed-forward (FF)-back-propagation (BP)is the most commonly used ANN type in a wide range of science and engineering as reported by many researchers (e.g. [6163]).The multi-layer perceptron (MLP) neural network is one of the most well-known FF-ANNs [61, 64]. MLP includes several nodes or neurons in three layers (input, hidden and output) linked to each other by weights. An ANN model with maximum two hidden layers can solve complex engineering problems [20]. Normally, the number of hidden layers and number of neurons in hidden layers are obtained using trial-and-error procedure [65, 66]. In ANN, initially, a desired weight in the range of (0, 1) is assigned to each input parameter. Then, each input is multiplied by the weight and summation of these amounts is assigned to the hidden layer(s). The obtained value is summed with bias (neuron weight) which is normally equal to one. In the next round, another weight is assigned to the obtained value and the cycle is reached the next layer (output layer). Summation of all obtained values from each layer is the last step of ANN modelling and after that the training procedure is completed and the system is ready to test (or check). In aFF-BP algorithm, the signals flow from input layer to the output layer, called forward pass, then the achieved value(s) from the system is compared to the actual one and the error is computed by the network. The obtained error is propagated back through the network to update the individual weights, called backward pass. In the mentioned process, errors of both training and testing datasets are decreased. FF-BP procedure is repeated until the error is converged to a level defined by a cost function such as root mean squared error (RMSE) [6769]. However, a database comprising sufficient number of datasets is needed to construct a suitable ANN model.

2.2 Ant colony optimization algorithm

Ant colony optimization (ACO) which was developed by Dorigo [70] is used to solve optimization problems such as the travelling sales person (TSP) as a multi-agent solution. This algorithm is based on studies of the behaviour of real ants that are searching for food source. In this optimization algorithm, a series of artificial ants cooperate to find good solutions using indirect exchange of information via artificial pheromone. The idea behind ACO is the parallel search over numerous computational threads based on local problem data. This search is based on the quality of achieved results which are constructed over time and also a dynamic memory structure of the problem characteristics [71]. In ACO, pheromone is normally associated with the solution components utilized by artificial ants to build new solutions, guiding their decisions. This artificial pheromone is accumulated at run time through a learning mechanism that rewards good solutions. More pheromone on a path increases the probability ofthat path being followed. An evaporation rule will be tied with thepheromones, which will reduce the chance for poor quality solutions. The superiority of the ACO algorithm compared to other algorithms is mainly based on the appropriateness of solutions generated by colonies. The ACO metaheuristic algorithm is shown in Fig. 1.

Fig. 1
figure 1

ACO metaheuristic algorithm [72]

Assuming \(q_{0} \in (0, 1]\), a path that has the greatest amount of pheromones and the minimum distance is selected with possibility of \(q_{0} .\) Eq. (1) presents a path with possibility of \(1 - q_{0}\):

$$P_{ij}^{k} = \left\{ {\begin{array}{ll} \frac{{(\tau_{ij} )^{\alpha } (\eta_{ij} )^{\beta } }}{{\mathop \sum \nolimits_{{m \in N_{i}^{k} }} \left( {\tau_{im} } \right)^{\alpha } (\eta_{im} )^{\beta } }}\quad&j \in N_{i}^{k} \\ 0\quad&j \notin N_{i}^{k} \\ \end{array} } \right.$$
(1)

where τ ij is the pheromone value associated with component, η ij is a value that is given by the weighting function (heuristic information), and \(\alpha\) and \(\beta\) are positive factors that are used for assigning weight to pheromone and heuristic information, respectively. If \(\alpha\) = 0, the probability of selecting the closer cities is higher. In fact, in this condition ACO is converted to a stochastic search algorithm. In contrast, if β = 0, only the pheromone information is utilized. In this case, there will be a faster convergence of the algorithm. If after a while all ants will be converge in a direction that is generally inappropriate, in this condition, it is said that the algorithm is getting trapped in local minima. Therefore, appropriate balance between pheromone and heuristic information using \(\alpha\) and \(\beta\) parameters is very important in ACO algorithm. There are two pheromone updates in ACO algorithm. (1) In the first update which is local, ant colonies distribute pheromones in their path as it can be presented as follows:

$$\tau \to \tau_{ij} + \rho \tau_{0}$$
(2)

where \(\tau_{0}\) is initial value of the pheromone and \(\rho\) is evaporation coefficient. (2) Second pheromone update which is global is applied on the best paths (ψ +) in each iteration. If l ij \(\in\) ψ + and J + is the path distance of the ψ +, pheromone of l ij can be changed as follows:

$$\tau \to \left( {1 - \rho } \right) \tau_{ij} + \frac{\rho }{{J^{ + } }}$$
(3)

If the evaporation operation is removed from the above equation, then the following equation will be obtained as:

$$\tau \to \left( {1 - \rho } \right) \tau_{ij} + \frac{\rho }{{\left( {1 - \rho } \right) J^{ + } }}$$
(4)

The two-step planning in ACO algorithm is conducted to create a balance between exploration and exploitation of pheromones [73]. Cooperation to find the food sources (solutions) by ants is illustrated in Fig. 2.

Fig. 2
figure 2

Cooperation to find the food sources by ants

3 Case study

Delkan iron mine is situated 83 km southwest of Kashmar, in Khorasan Razavi province, Iran. This mine is located in Delkan and Kal Asb mountain area. The maximum height in this region is appertained to Delkan Mount with height of 1283 m. Delkan mountains with a trend towards the southwest are met mountains of Kal Asb and Kamar Kaseh with height of 1485 m. North side of the study area is relatively flat and hollow with average height of 900 m. Also, south part of the study area is composed of salt (salt desert). It should be noted that the estimated reserve of Delkan iron mine is more than 1 Mt.

A total number of 97 blasting works were investigated and their blasting parameters were measured. In these operations, several blasting parameters including burden, spacing, stemming length, hole length, and powder factor were recorded. The range of powder factor in these operations was observed from 200 to 250 gr/ton. In the established datasets, the maximum and maximum measured stemming lengths were 1.5 and 2 m, respectively. Overall, the design of holes was rhomb-like with distances (B × S) of 2 × 3 m in the rockdeposit. Moreover, blast-hole length ranging from 8 to 10 m was measured in Delkan iron mine. Ammonium nitrate and fuel oil (ANFO) and soft soil were used as the main explosive and stemming, respectively. BB values were recorded in each operation using measuring tape. To measure flyrock distance in Delkan iron mine, bench surfaces were coloured and two video cameras were put in place to monitor the flyrock projections. After each blasting, the relevant videos were reviewed to find the locations of the maximum rock projections. Then, using measuring tape, flyrock values were recorded. A view of Delkan iron mine is displayed in Fig. 3.

Fig. 3
figure 3

A view of Delkan iron mine

4 Prediction and optimization of flyrock and back-break

4.1 ANN models for predicting flyrock and back-break

In simulation works, preparing a sufficient database plays an important role for training the system. Using the available datasets and considering previous investigations, input parameters can be selected according to problems to be solved. Having the proper input parameters and using the required information for training, complex relationships between input and output parameters can be found by the system. However, in practice, determining all influential parameters on blasting is too difficult. The input parameters in this study have been selected based on previous investigations in the field of back-break and flyrock prediction/optimization. For this purpose, based on the studies presented in Table 1 and also collected data from the mine, burden, spacing, hole depth, stemming length, and powder factor were set as model inputs to predict both flyrock and back-break. Input and output parameters with their statistical details (i.e. range, mean and standard deviation) are listed in Table 2. Since a wide range can be seen for the parameters presented in Table 2, normalization of the datasets was employed before ANN modelling. Rafig et al. [74] mentioned that normalization of the data can improve the network learning speed. Therefore, all datasets were normalized using the following equation:

$$X_{\text{norm}} = \left( {X - X_{\rm{min} } } \right)/\left( {X_{\rm{max} } - X_{\rm{min} } } \right)$$
(5)

where X is the measured value, X norm is the normalized value of the measured parameter; X min and X max are the minimum and maximum values of the measured parameters in the dataset, respectively. Considering the above equation, datasets were normalized in the range of [0, 1].

Table 2 Statistical details of input and output parameters used in this study

The purpose of the ANN training is to determine the values of weights to achieve the best network based on cost or objective function. Since the output value is determined corresponding to the input vector, the best learning can be considered as supervised learning. Among supervised learning algorithms, BP has been received attention in the field of engineering. Normally, the number of hidden neuron is obtained using the trial-and-error procedure as this method was used in several ANN studies (e.g. [25, 28]). If the selected number of hidden neuron is small, the system cannot train properly and if the selected number of hidden neuron is large, over fitting (a network obtaining a large error) will be happened in the ANN modelling. In this study, all datasets were divided randomly to training and testing datasets. The idea behind using some data for testing is to check the performance capacity of the developed model. A range of 20–30 % of whole data was suggested for testing datasets in the study by Nelson and Illingworth [75]. So, in this study, 30 datasets (\(\cong 30\% )\), were selected randomly for testing the model development, whereas the remaining 67 datasets were used for training the ANN models. Table 3 shows several constructed ANN models applied in this study together with their structures and performances. To evaluate the ANN model, absolute error (Ea) and RMSE were utilized. Their equations are presented as follows:

Table 3 Several ANN models and their performance capacities applied in this study
$$E_{\text{a}} = \left| {M_{\text{B}} - P_{\text{B}} } \right|$$
(6)
$${\text{RMSE }} = \sqrt {\frac{1}{N}\mathop \sum \limits_{i = 1}^{N} (y - y^{'} )^{2} }$$
(7)

where y, y′ and are the measured, predicted and mean of the y values respectively, N is the total number of data, \(M_{\text{B}} , P_{\text{B}}\) are average measured and average predicted values, respectively. As shown in Table 3, model no. 7 with five inputs (burden, spacing, hole length, stemming length, and powder factor), two hidden layer (including 5 neurons in each layer) and two outputs (flyrock and back-break) outperforms the other models. In the selected model, the values of 0.0137 and 0.063 were obtained for Ea and RMSE, respectively. It is also interesting to note that in ANN analysis of this study, the learning rate and momentum coefficient were set as 0.05 and 0.9, respectively. Figure 4 displays the suggested ANN structure for prediction of flyrock and BB in this study.

Fig. 4
figure 4

The suggested ANN structure

The graphs of predicted flyrock using the ANN technique against the measured flyrock for training and testing datasets are shown in Figs. 5 and 6, respectively. R 2 values of 0.989 and 0.994 for training and testing datasets, respectively, show that the ANN approach is able to predict flyrock with high degree of accuracy. In addition, Figs. 7 and 8 illustrate the predicted BB values by performing ANN model plotted against the measured flyrock values for training and testing datasets, respectively. Based on these figures, R 2 values of 0.838 and 0.832 were obtained for training and testing datasets, respectively. These results demonstrate capability of the ANN technique to predict BB. Generally, the results reveal that ANN can be introduced as a powerful tool for prediction of flyrock and back-break induced by blasting works.

Fig. 5
figure 5

R 2 of measured and predicted values of flyrock for training datasets using ANN

Fig. 6
figure 6

R 2 of measured and predicted values of flyrock for testing datasets using ANN

Fig. 7
figure 7

R 2 of measured and predicted values of back-break for training datasets using ANN

Fig. 8
figure 8

R 2 of measured and predicted values of back-break for testing datasets using ANN

4.2 Optimization of blasting pattern parameters using ACO algorithm

To optimize the blast pattern parameters for controlling flyrock and BBof Delkan iron mine using ACO algorithm, definition of cost function is required. Hence, the same cost function utilized in the ANN modelling was used. The optimization procedure by ACO used in this research is displayed in Fig. 9. As a first step of the optimization, ANN code is called by ACO algorithm in the MatLab environment and then optimization process is started. The parameters used in ACO algorithm are as follows:

Fig. 9
figure 9

ACO algorithm

Interval number: Ants are looking for the solutions in the small intervals and find the optimum solution based on the size of the intervals.

Ant number:

the number of ants to find the optimal path (tour)

\(\rho\) :

is a constant which is used for converting the minimum cost function to maximum cost function

Q :

is a constant which is used for converting the minimum cost function to maximum cost function

\(\alpha\) :

is a positive factor that is utilized for assigning weight to pheromone

\(\beta\) :

is a positive factor that is used for assigning weight to heuristic information

Iteration:

the number of repetition to find the optimum solution

\(r_{0}\) :

the values assigned to the various tours

In this study, interval solution was divided by 200 parts, then a tour was selected randomly in these intervals. After that, based on heuristic information, the ants are travelled in the different tours. After a while, ants tend to travel in a particular tour because of pheromones distribution. This particular tour has higher numbers of pheromone compared to other tours. In this step, using ant tour program, the best intervals are chosen for each input parameter. Since the ants select the shortest tour, hence, the cost function will be minimized. By dividing the cost function on constant value of Q, the cost function can be converted to the maximum function. Finally, after some time, an optimal tour with the best solution from the interval is selected as the best tour. The network is repeated in the remaining tours to find more attractive solutions.

The values of ACO parameters such as \(\alpha\), \(\beta\), \(\rho\), number of ant and number of iteration were determined using trial-and-error method. Figure 10 shows the analyses’ results on the iteration number to find the best solution for optimizing blasting pattern using ACO algorithm. Based on this figure, the significant changes happened in the first iterations, whereas after iteration number 140, there are no changes in network results. Since a lower amount of error was obtained by ants in different iterations, significant changes can be seen in Fig. 10. After the mentioned iteration, there are no significant changes in the results of best cost; therefore, value of 140 was selected for the maximum number of iterations for optimizing blasting pattern parameters. Eventually, a series of values for input parameters were obtained to minimize the results of flyrock and BB of Delkan iron mine. Table 4 presents ACO parameters used in this study for the best optimization results. In addition, Table 5 shows the best parameters of blasting pattern obtained by ACO algorithm. Moreover, optimized values of flyrock and BB can be seen in this table. RMSE values of 0.537 and 0.141 were achieved for flyrock and back-break, respectively. Based on these results, the optimized values of the flyrock and back-break were reduced as 2.5 and 155 m, respectively. Since the blasting operations in the Delkan iron mine are performed close to the location of existing facilities and equipment, by implementing the optimized blasting pattern parameters, these damages will be minimized.

Fig. 10
figure 10

The effect of the number of iteration on the ACO network performance

Table 4 ACO parameters used in this study
Table 5 Initial and optimized parameters of blasting pattern using ACO algorithm

4.3 Model evaluation

To evaluate the ACO algorithm, a function shown in Eq. (8) was utilized. Evaluation of the ACO algorithm is shown in Fig. 11. According to this figure, considering the Eq. (8) in range of (−3, 3), the optimum solution would be very close to zero.

Fig. 11
figure 11

Evaluating ACO algorithm

$$Z = X^{2} + Y^{2}$$
(8)

It is worth noting that the minimum value of the mentioned function is (0, 0). The intersection of this function and ACO function is at point of (0.015, 0.015) as it can be seen in Fig. 11. The obtained values of error show capability of the ACO algorithm. This indicates that the ACO algorithm is able to be performed in optimizing blasting pattern parameters.

5 Conclusion

In this research, an attempt has been made to minimize flyrock distance and back-break induced by blasting operations. To this aim, Delkan iron mine in Iran was investigated and blasting pattern parameters for 97 operations were collected. In addition, flyrock distance and back-break were measured in each operation. Considering the previous investigations and also collected data from the mine, burden, spacing, hole length, stemming, and powder factor were selected as input parameters. Initially, using these input parameters, flyrock and back-break were predicted by employing ANN. After trial-and-error procedure, a model with two hidden layers (including 5 neurons in each layer) was chosen as the best ANN model in predicting flyrock and back-break. The R 2 values of 0.994 and 0.832 for testing datasets of flyrock and back-break, respectively, reveal that ANN can provide high performance capacity in predicting flyrock and back-break. Afterward, blasting parameters as well as outputs of ANN part were optimized using ACO algorithm. The values of ACO parameters such as \(\alpha\), \(\beta\), \(\rho\), number of ant and number of iteration were determined using trial-and-error method. Eventually, reductions of 61 and 58 % were obtained for flyrock and back-break results, respectively. By implementing the optimized blasting pattern parameters, the possible damages caused by flyrock and back-break would be minimized.