1 Introduction

In the recent years, magnetic techniques have been more important in geothermal research, engineering applications that benefit the environment, archaeology research, unexploded ordnances delineation (UXO), and geotectonic visualization (Hinze 1990; Linford et al. 2019; Elhussein and Shokry 2020; Fkirin et al. 2021; Liu et al. 2021; Nyaban et al. 2021; Hasan et al. 2022). Moreover, a variety of uses for magnetic technology exist for identifying the economic targets including mineral resources and hydrocarbons (Sharma 1987; Gunn and Dentith 1997; Abdelrahman et al. 2007a, b; Mandal et al. 2014; Essa et al. 2018, 2022; Lu et al. 2021).

In the discipline of exploratory geophysics, the investigation and elucidation of magnetic data anomalies appraised along with profiles by some geometrically simple models (spheres, cylinders, sheets, and dikes) continue to be of importance in interpreting the buried magnetized sources (Rao et al. 1981; Abdelrahman and Essa 2015; Biswas 2016; Biswas and Acharya 2016; Essa and Elhussein 2019; Mehanee et al. 2021). Using these simple geometrical models, magnetic data analysis methods have been developed using a variety of graphical and numerical methods. For instance, the approaches using characteristic points, nomograms, and matching curves (Gay 1963; McGrath and Hood 1970; Dondurur and Pamuku 2003; Subrahmanyam and Prakasa Rao 2009), Deconvolution techniques of Euler and Werner (1953; Melo and Barbosa 2020), moved averaging techniques (Abdelrahman et al. 2003), least-squares approaches (Abo-Ezz and Essa 2016), Fourier transforms (Ram Babu and Rao Atchuta 1991; Nuamah and Dobroka 2019), alternative local wave number technique (Ma and Li 2013), numerical gradient-based technique (Essa and Elhussein 2017), tilt-angle methods (Salem et al. 2008; Cooper 2016), correlation techniques (Ma et al. 2017), and spectral analysis techniques (Al-Garni 2011; Kelemework et al. 2021). Though, the majority of these techniques have drawbacks, including the subjectivity involved in data interpretation, the utilization of part of interest data along the deliberate profile, the hyper-sensitiveness to the different noises present in magnetic data, the influence of adjacent effects that may reduce the accuracy of the results, and the reliance on a priori information, that is not constantly available.

In contrast, metaheuristic algorithms, which rely on finding the global optimal solution and are more precise and effective than graphical and numerical approaches, were created to analyze the geomagnetic data. These algorithms including the techniques of simulated annealing algorithm (SA) (Biswas and Rao 2021), genetic algorithm (GA) (Sohouli et al 2022), particle swarm optimization method (PSO) (Essa and Elhussein 20182020; Pace et al. 2021; Heidari et al. 2022), differential evolution algorithm (DE) (Du et al. 2021), ant colony optimization algorithm (ACO) (Yu et al. 2021) and Manta Ray Foraging Optimizing algorithm (Ben et al. 2022). The reason these algorithms are so well-liked by researchers is because, compared to conventional approaches, they are more flexible and capable of handling a variety of issues. The suggested GOBA technique in the current work belongs to the category of metaheuristic algorithms and provides a novel method of analyzing the magnetic data.

In the current work, we implemented the approach of GOBA to interpret the magnetic data measured along 2D profiles using specific elementary geometric forms in the category of spherical shaped models, infinitely long horizontal cylinders, thin sheets, as well as the source of multiple models. The study's objective of the current GOBA approach is represented in inverting the observed data of magnetic anomaly to determine the causal buried body's properties, which are stated in the vertical depth from surface to the center (z), the position of structure origin (xo), the magnitude of amplitude coefficient (K), the effective magnetizing angle (θ), as well as form factors of the structure (q). The recommended interpretative model parameters are attained to match the minimal normal root mean square error (NRMSE) of the given objective function as the software approaches the global best solution. Numerous numerical examples of specific geometric forms are used to test the suggested GOBA technique (spheres, cylinders, and sheets), and multiple-source models as well as is applied to different field cases for ore & mineral deposits as well as the basement rock intrusion.

The accompanying work is coordinated as takes after: Sect. 2 comprises the basics of echolocation as well as the ordinary definition of the bat calculation. The forward modelling and formulation of the suggested GOBA technique are covered in Sect. 3, and the utilizing of GOBA scheme to invert the observed data of magnetic anomaly is covered in Sect. 4. In Sect. 5, it is stated that the recommended GOBA technique has been verified on many numerical instances, both with and without noises, and that the interference multiple model effect has been examined. The applicability of the suggested GOBA technique on numerous real-case examples from diverse fields is demonstrated and discussed in Sect. 6. The conclusion of Sect. 7 concludes by summarizing the goal of the current GOBA technique.

2 The global optimizing bat algorithm

The global optimizing bat algorithm (GOBA), a naturally-inspiration metaheuristic optimizing method, was developed by Yang (2010), and we implemented it to magnetic data interpretation. The GOBA is dependent on the echolocation attribute of bats. In the dark, bats utilised echolocation to find their colony, navigate hazards, and locate prey. The strong sound pulse produced by these bats (8–10 kHz) is used to detect echoes that reflected from adjacent targets. Every pulse scarcely endures a couple of milliseconds (i.e., 8–10 ms). The bats' pulse rates rise as they get closer to prey or an object, but their voice volume decreases (Yang 2010). As a result, it is possible to depict the echolocation behaviour of microbats in a manner which optimizes or maximizes objective functions. The following are the main tenets of the GOBA: (1) Bats utilize sonar to quantify the distance; and (2) Bats fly within a specific frequency band [Qmin, Qmax] to pick up on their surroundings with a primary velocity of (Vi) at location (Xi); and (3) the loudness (Li) & emission rate of pulses, (ri), which differ relied on the gap or separation in the midst of the objective item and the bat.

The movement domain of the bats in the optimization problem may be altered by varying the frequency or wavelength. Therefore, choosing the right frequency is essential. It needs to be selected such that it complements the size of the interest zone before being toned down to lower limits. After utilizing the approach with various settings, the optimal frequency range for the inquiry was found to be in the spectrum of [0, 5 Hz] (Fig. 1). The range of the pulse rate, ri, is [0–1], with 0 meaning no pulses emits and 1 signifying the greatest emission rate of the pulses. Additionally, Li may frequently be in the [1, 2] range for the initial loudness (Yang 2010). The bats' loudness decreases but their rate of pulse emission increases as they draw closer to their target. When a new solution is developed, the algorithm reupdates the emission rate and loudness of the bats, indicating that the bats have found the optimal option (Fister et al. 2013; Essa and Diab 2022).

Fig. 1
figure 1

The effect of different sets of optimization parameters (Qi, Li and ri) on the convergence rate of the GOBA approach technique

The GOBA technique convergence behavior and rate were examined (Fig. 1) utilizing various ranges of the optimum parameters, frequency (Qi), loudness (Li), and rate of pulse emission (ri). According to Fig. 1, the best set is one with (Q1 = [0, 5], L1 = 1, and r1 = 0.9), because it delivers speedy convergence to the optimal solution and has the least NRMSE of the objective function in comparison to other sets. Take note that at the start of the GOBA approach inversion procedure, the starting speed (Vi) at location (Xi) was set to zero.

The following equations demonstrate the relationship between algorithmic parameters (Yang 2010):

$${Q}_{i}^{t}={Q}_{min}+\left({Q}_{max}-{Q}_{min}\right)\beta$$
(1)
$${V}_{i}^{(t+1)}={V}_{i}^{t}+({X}_{i}^{t}-{X}_{best}){Q}_{i}^{t}$$
(2)
$${X}_{i}^{(t+1)}={X}_{i}^{t}+{V}_{i}^{(t+1)}$$
(3)
$${L}_{i}^{(t+1)}=\alpha {L}_{i}^{t}$$
(4)
$${r}_{i}^{t}={r}_{i}^{0} \; [1-\mathrm{exp}\left(-\gamma \tau \right)]$$
(5)

where, Qi stands for the ith bat's spectrum frequency, which is updated during each iteration process, \(\beta\) stands for a uniform distributed random arbitrary vector in the domain of [0, 1] and Xbest stands for the actual best global solution obtained from all the bats, \(\alpha\) and \(\gamma\) are constants their values lies between 0 < \(\alpha\)  < 1 and \(\gamma\) > 0 and \(\tau\) stand for a scaling factor.

For each best result in the local search, the GOBA method exploits a haphazard track to create new outcomes as shown below:

$${X}_{new}={X}_{old}+\epsilon {A}^{t}$$
(6)

where Lt stand for the average or main loudness of all bats number at the currently running process, and \(\epsilon\) \(\in\) [-1, 1] stands for a random integer.

3 Forward modeling of magnetic formula

The observed magnetic effect (T) at fixed points (xj) in conjunction with profiles of fundamental geometrically formed entities within the framework of sphere, cylinder, and sheet models (Fig. 2) is provided by (Gay 1963; Rao and Subrahmanyam 1988; Abdelrahman et al. 2012; Mehanee et al. 2021):

$$T\left({x}_{j},{x}_{0}, z, \theta , q, K\right)=K\left[\frac{A{z}^{2}+B\left({x}_{j}-{x}_{o}\right)+C{\left({x}_{j}-{x}_{o}\right)}^{2}}{{\left({\left({x}_{j}-{x}_{o}\right)}^{2}+{z}^{2}\right)}^{q}}\right], j=\mathrm{1,2},3,\dots ,n$$
(7)

where xj stands for the fixed points profile distances (in meters), xo denotes covered source's origin (in meters) (Fig. 2), z stands for the vertical depth to the center of the covered source (in meters) (Fig. 2), θ stands for the effective magnetization angle (in degrees), q denotes the shape factor (unitless), K stands for the amplitude coefficient (nT m2q−2), Table 1 provides a detailed description of the A, B, and C parameters, and n stands for the data point numbers along the profile.

Fig. 2
figure 2

Geometrical shaped model configurations: (a) sphere model, (b) infinite horizontal cylinder model, and (c) thin sheet model

Table 1 Definition of the parameters A, B, and C in Eq. 7 (Gay 1963; Rao and Subrahmanyam 1988; Abdelrahman et al. 2012; Mehanee et al. 2021)

4 Methodology

When interpreting the magnetic data, it is vital to get the truthful parameters for the subsurface model that matching the measured data. In order to produce accurate estimates of the parameters of the underground model, including the depth, location and form of the anomalous body of the buried structure, a large-capacity inversion procedure is necessary. Metaheuristic inversion techniques have shown to be efficient in a number of case studies.

In this study, we have implemented the GOBA to invert magnetic data. The most important parameters that characterize the magnetic data anomaly are depth (z), location (xo), effective magnetization angle (θ), body shape (q), and amplitude coefficient (K). Therefore, in the current GOBA inversion approach, these factors are studied to find an underground model which corresponds to the actual data. The ideal best arrangement solution is found at the place where the objective goal function's NRMSE has the lowest misfit error (Xbest). Following that, the GOBA inversion program was tested on a range of synthetic numerical examples in this research. Following that, it was put to the test on different actual-field examples.

The suggested GOBA method is composed of the following phases are utilized to invert the magnetic data:

  1. (1)

    Initial location Xi (i = 1, 2, 3,…, N), frequencies Qi, speed or velocities Vi, loudness Li, as well as emission rate of pulses ri of the virtual bats are takes after: Each bat signifies a possible solution in the pursuit space. The variable Xi is depicted by the characteristic model attributes (i.e., z, xo, K, θ, and q) are picked at random from the searching space, and Vi denotes the speed of each virtual bat,

  2. (2)

    Discover the Xbest,

    The objective function is the NRMSE between calculated and observed magnetic anomalies (\(\psi\)) or the misfit and is expressed as:

    $$\psi =100\sqrt{\frac{1}{N}\sum_{j=1}^{N}{\left[\frac{{T}_{Obs}-{T}_{Cal}}{{T}_{Obs}}\right]}^{2}}$$
    (8)

    where, N characterizes the data point numbers, TObs stands for the observed magnetic data and TCal stands for the calculated magnetic model response. Equation 8 is used to assess the misfits first, and The Xbest bat is determined to be the one with the least misfit or mismatch.

  3. (3)

    while the programme has not yet gone through the maximum number of iterations, execute the next set of instructions:

    figure a

The fundamental components of the GOBA approach can be framed in the flow diagram delineated in Fig. 3.

Fig. 3
figure 3

Flowchart shows the essential elements of the GOBA approach

5 Numerical dataset examples

The suggested GOBA approach was examined on various numerical dataset examples to determine its efficiency and validity in understanding and inverting the magnetic data. These numerical examples depend on using simple geometrical shapes models (spheres, cylinders, and sheets). The suggested approach is tested to noise-free example first and contaminated with noise to show the effectiveness and durability of the proposed approach. Moreover, it investigated the interference impact of multi-neighboring structures.

5.1 Case model 1

Initially, free of noise numerical case of an infinite horizontally cylinder source model with the taking after specifications K = 3000 nT m2, z = 15 m, xo = 0 m, θ = -55 ̊ and q = 2.0 has been investigated (Fig. 4a) using the procedures of the GOBA approach introduced in Sect. 2. Figure 4b plots the average loudness of the bats vs iteration counts. Figure 4c displays the bats’ emission rate generated at every iteration operation, where the pulse emission rate rises, and the bats' loudness increases as they draw closer to their prey. Figure 4d plots the NRMSE of the lowest objective function, of the global best solution, against the number of iterations. It can be seen from the figure that all bat numbers reach the min after 300 iterations. The average value of NRMSE of all numbers of the bats acquired during each iterative process is shown in Fig. 4e.

Fig. 4
figure 4

Noise-free numerical example of the infinite horizontal cylinder model (case Model-1); (a) The measured magnetic anomaly generated by horizontal cylinder model (True model parameters), as well as the calculated magnetic anomaly (Recovered model parameters) using the GOBA approach, (b) loudness of the bats, (c) emission rate of the bats, (d) NRMSE of the global best solution (\(\psi\)) of the bats versus the iteration numbers, and (e) the average NRMSE of all the bats

When the objective function (\(\psi\)) during the iteration process achieves the lowest value of the NRMSE, the magnetic anomaly's global best solution (i.e., the source model attributes) are obtained. Table 2 shows that the provided noise-free example's evaluated model attributes match those of the actual model attributes exactly. This implies that the conducted GOBA approach is accurate, firm, and capable of retrieving acceptable outcomes of the attributes of the given model. Additionally, Table 2 displays the search rang or space and relative errors (RE) for every model parameter.

Table 2 True and recovered model parameters of the noise-free numerical example (case Model-1) of the infinite horizontal cylinder model with the corresponding RE of each parameter using the GOBA approach

With varying levels of noise (10 and 15%), we added two distinct types of noise, first the additive white Gaussian noise (AWGN) and second the Gaussian random noise (GRN) to the data free of noise shown in Fig. 4a to assess the robustness of the current GOBA technique. The optimum model parameters were discovered at the lowest NRMSE of the objective goal function (\(\psi\)) by using the GOBA scheme's aforementioned procedures to the erratic data anomaly patterns. Figure 5 displays the noisy polluted magnetic anomaly that resulted from the 10% and 15% GRN being added to the data (Fig. 4a), together with the computed magnetic response (frame a). Frames (b), (c), (d), and (e) of Fig. 5 show, in turn, the curve of loudness, the curve of pulse rate of emission, NRMSE of the best global arrangement solution (\(\psi\)), and the average values of NRMSE of all number of the bats.

Fig. 5
figure 5

Noisy numerical example of the infinite horizontal cylinder model (case Model-1: Fig. 4a) after contaminated with 10% GRN (I) and 15% GRN (II); (a) Noisy magnetic anomaly generated by horizontal cylinder model (True model parameters) and the calculated magnetic anomaly (Recovered model parameters) using the GOBA approach, (b) loudness of the bats, (c) emission rate of the bats, (d) NRMSE of the global best solution (\(\psi\)) of the bats versus the iteration numbers, and (e) the average NRMSE of all the bats

After including the 10% & 15% of the AWGN noise type into the generated data (Fig. 4a), Fig. 6 displays the polluted magnetic data as well as the predicted magnetic response (frame (a)). Frames (b), (c), (d), and (e) of Fig. 6 show the loudness curve, the pulse rate emission curve, the NRMSE of the best global arrangement solution (\(\psi\)), respectively, and the average values of the NRMSE of all numbers of the bats. The associated retrieved attributes or parameters for the noisy cases for both forms of injected noises (GRN & AWGN) and their percentages are displayed in Tables 3 and 4. The derived parameters are so near to the real ones that they are not considerably impacted by the forms of intruded noise. Additionally, Tables 3 and 4 show the RE related to every model attribute that was derived for each type of given noise. Finally, it may be inferred that the GOBA technique recommended here is steady in regard to the different kind of noise.

Fig. 6
figure 6

Noisy numerical example of the infinite horizontal cylinder model (case Model-1: Fig. 4a) after contaminated with 10% AWGN (I) and 15% AWGN (II); (a) Noisy magnetic anomaly generated by horizontal cylinder model (True model parameters) and the calculated magnetic anomaly (Recovered model parameters) using the GOBA approach, (b) loudness of the bats, (c) emission rate of the bats, (d) NRMSE of the global best solution (\(\psi\)) of the bats versus the iteration numbers, and (e) the average NRMSE of all the bats

Table 3 True and recovered model parameters of the noisy numerical example (case Model-1) of the infinite horizontal cylinder model after contaminated with noise levels (10% & 15% GRN), in addition to the corresponding RE for each parameter using the GOBA approach
Table 4 True and recovered model parameters of the noisy numerical example of the infinite horizontal cylinder model (case Model-1) after contaminated with noise levels (10% & 15% AWGN), in addition to the corresponding RE for each parameter using the GOBA approach

5.2 Case model 2

In some geologic environments, the interference effects (i.e. the activity of surrounded numerous source structure) might affect the collected magnetic data of an anomalous confined hidden source structures. As a result, we used Eq. 7 to compute the composite magnetic effect for two nearby sources, also known as the infinite horizontal cylinder model with true parameters [K1 = 1500 nT m2, z1 = 12 m, xo1 = −50 m, θ = -35° and q1 = 2] as well as a spherical source model has the taking after actual attributes [K2 = 10,000 nT m3, z2 = 10 m, xo2 = 50 m, θ = −35° and q2 = 2.5], along a profile with 201 m length (Fig. 7a) to test the influence of these double interference sources on the precision of the inverted model attributes elucidated utilizing the current GOBA technique. The observed magnetic anomaly of the two models is shown in Fig. 7a using the aforementioned GOBA approach processes. Figure 7b displays the composite anomaly's calculated average loudness curve, and Fig. 7c displays the bat emission rate. Additionally, Fig. 7d displays the NRMSE of the overall best arrangement solution (\(\psi\)), and Fig. 7e displays the average values of the NRMSE of all numbers of the bats. The obtained model attributes of these two neighboring source bodies or structures, which are quite similar to the genuine input ones, are displayed in Table 5. Additionally, Table 5 displays the RE of the retrieved model attributes in relation to every source bodies. The outcomes demonstrate that the GOBA technique is firm and accurate even in the case of multi-sources.

Fig. 7
figure 7

Interference and multiple structure effect (case Model-2); (a) The composite magnetic anomaly generated by infinite horizontal cylinder and sphere model (True model parameters), as well as the calculated magnetic response of them (Recovered model parameters) using the GOBA approach, (b) loudness of the bats, (c) emission rate of the bats, (d) NRMSE of the global best solution (\(\psi\)) of the bats versus the iteration numbers, and (e) the average NRMSE of all the bats

Table 5 True and recovered model parameters of the composite interference magnetic anomaly of an infinite horizontal cylinder and a sphere model (case Model-2) with the corresponding RE of each model parameters using the GOBA approach

In addition, the stability and exactness of the recommended GOBA scheme on multiple source structures and neighbouring influences was checked in case of the field contaminated with various kind of noises (GRN and AWGN) (Fig. 7a). The optimal model parameters were derived using the GOBA approach scheme when the objective goal function's NRMSE (\(\psi\)) was the lowest for the noisy composite anomaly. After including the 10% GRN (Fig. 8I) & 10% of the other noise type of AWGN (Fig. 8II) to the composite magnetic curve displayed in Figs. 7a, 8 displays the polluted composite anomaly curve of the two surrounding source bodies, and their calculated responses after getting the best model attributes (window a). Window (b), (c), (d), and (e) of Fig. 8 show, correspondingly, the loudness, emission rate, global best solution's NRMSE (\(\psi\)), and the average values of the NRMSE of all number of bats.

Fig. 8
figure 8

Noisy interference and multiple structure effect (Case Model-2: Fig. 7a) after contaminated with 10% GRN (I) and 10% AWGN (II); (a) The noisy composite magnetic anomaly generated by infinite horizontal cylinder and sphere model (True model parameters) and the calculated magnetic response of them (Recovered model parameters) using the GOBA approach, (b) loudness of the bats, (c) emission rate of the bats, (d) NRMSE of the global best solution (\(\psi\)) of the bats versus the iteration numbers, and (e) the average NRMSE of all the bats

The inverted attributes of the polluted composite magnetic anomaly are displayed in Tables 6 and 7 for the respective noise types (GRN and AWGN). The estimated characteristics properties of the two contaminated source structures, including both two different kinds of are still very good corresponding to the real ones. The RE related to every computed model attribute for noise of all kinds are also shown in Tables 6 and 7.

Table 6 True and recovered model parameters of the noisy composite interference magnetic anomaly of an infinite horizontal cylinder and a sphere model (case Model-2) after added 10% GRN to the composite anomaly, and the corresponding RE of each model parameters using the GOBA approach
Table 7 True and recovered model parameters of the noisy composite interference magnetic anomaly of an infinite horizontal cylinder and a sphere model (case Model-2) after added 10% AWGN to the composite anomaly, and the corresponding RE of each model parameters using the GOBA approach

It can be concluded from the synthetic data cases displayed over that the GOBA method utilized here is steady and proper for the analysis and clarification of actual magnetic field data, as described in the subsequent section.

6 Real dataset examples

In the following sections, we have studied the applicability of the GOBA approach on three published magnetic data field examples as follows; the first case is the Cataldere magnetic effect from Turkey on magnetite ore & mineral resources in the Bala district. The Faro magnetic anomaly from Canada for the lead–zinc deposit in the Yukon territory is the second case. The third case is the West Coast magnetic anomaly from Senegal for the basement rock intrusion.

6.1 Case example 1: The Cataldere magnetic anomaly, Bala district, Turkey

The Bala district includes five iron ore deposits with 400–2000 thousand tone reserve. These deposits are located within a magnetite-mineralization zone that covers a total area of 25 km2 and has similar mineralogical and geological properties. Ozturk et al. (1983) proposed that “the magnetite ore in this district skarn regions resulted from a meta-somatic hydrothermal interaction between marble layers and acidic materials”. The orebodies are made up of 90% magnetite and 10% specularite, limonite, and hematite. In the district, there are hematite rich regions. Magnetite cores samples came from drillings in this area had susceptibilities ranging from 400 × 10−3 to 1200 × 10−3 SI. The Cataldere anomaly is located on the easternmost side of the Bala district. An alluvial layer of thickness rang 2–3 m covers the whole surface of the land. The province's geography is slightly planed, with elevation less than 7 m.

The skarn zone shows small outcropping magnetite blocks found in limited region east of the drilled-hole C1 (Fig. 11). These magnetite boulders composed the main anomaly’s figure. Furthermore, these blocks have obscured the primary anomaly's pinnacle location as well as the true strength of the positive and negative components (Fig. 9). In the 1970s, old geophysical surveys in the Bala district measured the magnetic field's vertical component strength using a 40 m separation between station and a 200 m of profile length (Kayaoglu and Ozertan 1979). According on this ancient magnetic data, the drilled-holes CD1 and CD7 had recommended and accomplished. The most recent total magnetic field estimations were collected by a proton-type magnetometer with a 1 nT precision between stationary points with varied spacing range from 2 to 10 m across the profiles, which separated by 20 m. Figure 9 depicts the final magnetic anomaly contouring map of the Cataldere area as well as the sites of the most recent drilling.

Fig. 9
figure 9

The Cataldere magnetic anomaly map shown the position of the A–A' profile and the drilling holes location. The drillings cut the iron orebody are shown by solid circles

Fig. 10
figure 10

The Cataldere magnetic anomaly, Bala district, Turkey; (a) The measured magnetic anomaly profile (blue squares) and the calculated best-fitting magnetic response (red circles) using the GOBA approach and the calculated curve by Aydin (2008) method, (b) loudness of the bats, (c) emission rate of the bats, (d) NRMSE of the global best solution (\(\psi\)) of the bats versus the iteration numbers, and (e) the average NRMSE of all the bats

A magnetic profile A–A’ is taken across the Cataldere anomaly in NE-SW direction over the magnetic map (Fig. 9). The Cataldere anomaly profile A–A’ of length 256 m was sampled at 4 m digitizing interval (Fig. 10a). By employing the GOBA processes on the Cataldere magnetic anomaly profile A–A’, the distinctive source attributes of the anomaly were estimated. The average values of the bat loudness plot and the emission rate curve across the magnetic data are depicted in Fig. 10b and c, respectively. Figure 10d and e, respectively, display the NRMSE of the best global arrangement result (\(\psi\)) and the average values NRMSE of all number of bats. The model attributes that can be best comprehended are those that match the minimum (\(\psi\)). The min (\(\psi\)) is 11.8 and the corresponding optimal parameters of the response model are [K = 7,600,000 ± 726.27 nT m2, z = 62 ± 4.00 m, xo = 20 ± 1.87 m, θ = −70° ± 4.08 and q = 2 ± 0.01], which proposes that the effect of the Cataldere anomaly be similar to a horizontal cylinder-like model. Figure 10a shows that the estimated and measured magnetic anomalies agree well.

The Cataldere magnetic anomaly profile A–A' was interpreted by Aydin (2008) using analytic signals method as a triangle model with three depths 90, 30, and 20 m represent the triangle corners. The current work of GOBA scheme interpreted the Cataldere magnetic anomaly approximated by horizontal cylinder body at depth to the center to the subsurface ore body deposit about 62 m, which agrees very well with the drilling information (C1, CD1, and C3 of Fig. 11). Additionally, the present GOBA scheme has RMS error (217 nT) amongst the observed and calculated anomaly, which is less than the RMS error (259 nT) achieved by Aydin (2008) method (Fig. 10a). The slightly large values in the RMS error (i.e., the mismatch) between the measured and calculated anomalies are due to the interpretation was done directly on the observed anomaly not on the residual one.

Fig. 11
figure 11

(a) Cataldere magnetic profile A–A' (from SW to NE) and the interpreted calculated response using the present study and other published technique (Aydin 2008). (b) Drilling cross-section showing iron ore deposits and the computed models using the present approach and Aydin (2008) technique. The plus sign indicates the source position

6.2 Case example 2: The Faro magnetic anomaly, Yukon, Canada

The Faro Mine lies 15 km north of Faro, in the south-central Yukon Region in northern Canada (Tang 2011). The geography of this region is dictated by the Yukon Plateau and the adjacent Anvil Range Mountains, which have altitudes exceeding 1800 m. The Faro Mine lies in the northern west area of the Faro Complex zone (Fig. 12) and its regional geology described by the geologic information of the Anvil territory (Fig. 13). A geophysical survey was conducted over the Faro district area including both magnetic as well as gravity measurements to discover the ore deposits in the area. The magnetic effect over the Faro deposit (Fig. 14a) provided shallow gradient anomaly (Reynolds 1997). The ore deposit of Faro (i.e. lead–zinc sulphide ore resource) locates nearby 100 m beneath the Mount Mye Vangorda boundary (Fig. 14b).

Fig. 12
figure 12

The location map of the Faro Mine Complex, Canada with site layout (sourced from, Tang 2011)

Fig. 13
figure 13

The Geology of Canada's Anvil District (Tang 2011). The Faro sulphide deposit is depicted in this diagram

Fig. 14
figure 14

(a) The Faro lead–zinc magnetic anomaly, Yukon, Canada and (b) Geological cross-section model with drilling boreholes (modified from Fig. 15; Brock 1973)

The hosted rocks, so called the Mount Mye rock Formation, has been transformed to biotite muscovite schist, while the Vangorda rock Formation has been altered to thick, banded calcsilicate (Brock 1973). According to Brock (1971), the initial estimates during the exploratory step (with the ore density equals 3.65 g/cc and the host rocks is 2.75 g/cc) yielded a 44 M tons-mass, which was later compared to a proved drilling recovery of roughly 46 M tons (Brock 1971, 1973; Tanner and Gibb 1979).

A 12-m sampling interval was used to digitize an 805-m magnetic profile collected over the "Faro No. 1 Deposit" (Fig. 15a). The Faro magnetic anomaly profile is interpreted using the present GOBA approach by applying the previously mentioned procedures and hence the source attribute parameters of the anomaly can be determined. Figure 15b and c, respectively, display the bat's average values loudness curve and the emission rate curve across the magnetic effect. In Fig. 15d and e, the NRMSE of the best global arrangement solution (\(\psi\)) and the average values of the NRMSE of all number of the bats, sequentially, are displayed. The best determined model attributes that can be retrieved are found to match the minimum (\(\psi\)). The min (\(\psi\)) = 10.49 and the best interpreted model attributes for the matching data are [K = 7,200,000 ± 599.30 nT.m2, z = 173 ± 2.44 m, xo = −70 ± 23.11 m, θ = −20° ± 3.35 and q = 2 ± 0.40], which recommended that the Faro anomaly source is roughly represented by cylinder-shaped horizontal model. Figure 15a illustrates how well the estimated and measured magnetic anomalies of the Faro correspond.

Fig. 15
figure 15

The Faro magnetic anomaly, Yukon, Canada; (a) The measured magnetic anomaly profile (blue squares) and the calculated best-fitting magnetic response (red circles) using the GOBA approach, (b) loudness of the bats, (c) emission rate of the bats, (d) NRMSE of the global best solution (\(\psi\)) of the bats versus the iteration numbers, and (e) the average NRMSE of all the bats

The gravity anomaly that collected by the geophysical survey over the Faro district area have been interpreted using the R-parameter imaging technique (Essa et al. 2020) mentioned that the Faro anomaly has a depth to the center equals 195 m and the form of the anomaly is approximated as cylinder-shaped horizontal model. The present GOBA approach interpreted the Faro anomaly at depth extended from the surface to the center of the uncovered ore source about 173 m, which in turn matched greatly with the geologic and drill-holes data (Fig. 14b), as well as gives good integration with the published results of the gravity field of the Faro anomaly (Essa et al. 2020).

6.3 Case example 3: The West Coast magnetic anomaly, Senegal, West Africa

Figure 16a depicts a large magnetic anomaly (total field) detected along Senegal's western coast in West Africa (Nettleton 1976). The magnetic profile's reference line and zero intersection were supplied by Nettleton (1976) as well as Rao and Subrahmanyam (1988). The causal body, according to Nettleton (1976), is a basic basement rock intrusion. The magnetic profile of the length of 40 km was sampled at 0.5 km intervals (Fig. 16a).

Fig. 16
figure 16

The West Coast magnetic anomaly, Senegal, West Africa; (a) The measured magnetic anomaly profile (blue squares), and the calculated best-fitting magnetic response (red circles) using the GOBA approach and the calculated curve by Mehanee et al. (2021) method, (b) loudness of the bats, (c) emission rate of the bats, (d) NRMSE of the global best solution (\(\psi\)) of the bats versus the iteration numbers, and (e) the average NRMSE of all the bats

Figure 16b–e illustrates, in accordance with the GOBA approach's processes, the loudness, emission rate, global best solution's NRMSE (\(\psi\)), and the average values of the NRMSE of all numbers of the bats. The min (\(\psi\)) values correspond to the best interpretative model parameters (\(\psi\) = 9.2) are K = 463,000 ± 16.09 nT.km3, z = 10 ± 0.17 km, xo = 9 ± 0.48 km, θ = 19.3° ± 0.34 and q = 2.5 ± 0.00, which recommended that the west coast Senegal anomaly is approximated by a sphere-like model. The estimated and measured magnetic anomaly curves of the West Coast of Senegal have outstanding matching as illustrated in Fig. 16a.

The anomaly of West Coast of Senegal has been elucidated by several authors (Table 8). Table 8 compares the results attained by the current GOBA technique to those indicated in the scholarly studies (Nettleton 1976; Rao and Subrahmanyam 1988; Abdelrahman et al. 2007b; Mehanee et al. 2021). The comparison of the attained results shows that the depth and the effective magnetizing angle obtained by the technique described in our research are consistent with those reported in the literature.

Table 8 Comparison results of the West Coast of Senegal anomaly, West Africa

7 Conclusions

Calculation of the suitable buried model responses for simulating the subsurface source structures is important in interpretation of magnetic data. To attain the appropriate model parameters (best model), a Global Optimizing Bat algorithm (GOBA) was employed to the magnetic data. After determining the global best arrangement that minimizes the NRMSE misfit of the objective goal function, the best optimized model attributes are derived (i.e. amplitude coefficient, center depth, the place of origin, and model form factors), correlating to the recommended minimal objective function. No prior knowledge is necessary for the GOBA method; the recovered solution is depending on using a search space to search for the model parameters. The GOBA's designed inversion method is straightforward, quick, precise, and easy to use with a variety of magnetic datasets. Moreover, it can handle multi-model problems efficiently. Furthermore, the effectivity and precision of the recommended approach have been verified on synthetic data examples with various noise kinds (GRN & AWGN) and levels (10 & 15%). The GOBA method is then successfully applied to three distinct actual datasets from Turkey, Canada, and Senegal for ore deposit and basement rock intrusion investigations. From the investigations indicated above, we deduced that the suggested method is advantageous for ore and mineral explorations and may be expanded in the future to include geothermal exploration and studies of volcanic activity.