Next Article in Journal
Adaptive Fixed-Time NN-Based Tracking Control for a Type of Stochastic Nonlinear Systems Subject to Input Saturation
Previous Article in Journal
A Fuzzy Logic Framework for Text-Based Incident Prioritization: Mathematical Modeling and Case Study Evaluation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Inverse Gravimetric Problem Solving via Prolate Ellipsoidal Parameterization and Particle Swarm Optimization

by
Ruben Escudero González
1,
Zulima Fernández Muñiz
2,*,
Antonio Bernardo Sánchez
1 and
Juan Luis Fernández Martínez
2
1
Departamento de Tecnología Minera, Topografía y Estructuras, Universidad de León, 24006 Leon, Spain
2
Grupo de Problemas Inversos, Optimización y Aprendizaje Automático, Departamento de Matemáticas, Universidad de Oviedo, 33007 Oviedo, Spain
*
Author to whom correspondence should be addressed.
Mathematics 2025, 13(12), 2017; https://doi.org/10.3390/math13122017
Submission received: 9 May 2025 / Revised: 11 June 2025 / Accepted: 16 June 2025 / Published: 18 June 2025
(This article belongs to the Special Issue Inverse Problems in Science and Engineering)

Abstract

:
We present a method for 3D gravity inversion using ellipsoidal parametrization and Particle Swarm Optimization (PSO), aimed at estimating the geometry, density contrast, and orientation of subsurface bodies from gravity anomaly data. The subsurface is modeled as a set of prolate ellipsoids whose parameters are optimized to minimize the misfit between observed and predicted anomalies. This approach enables efficient forward modeling with closed-form solutions and allows the incorporation of geometric and physical constraints. The algorithm is first validated on synthetic models with Gaussian noise, successfully recovering complex multi-body configurations with acceptable uncertainty. A statistical analysis based on multiple PSO runs provides interquartile ranges (IQRs) to quantify inversion stability. The method is then applied to a real microgravity dataset from the Nirano Salse mud volcanoes (northern Italy) using a field acquisition strategy previously described in the literature. Unlike earlier studies based on commercial software, our inversion uses the ellipsoidal–PSO framework. The best-fitting model includes four ellipsoids (two low- and two high-density), reproducing the main features of the observed Bouguer anomaly with a prediction error of 20–25%. The inferred geometry suggests that fluid migration is controlled by fault-related damage zones rather than shallow reservoirs. This method is robust, interpretable, and applicable to both synthetic and real cases, with potential uses in geotechnical, volcanic, and hydrogeological studies.

1. Introduction

Inverse problems in gravimetry aim to infer the geometry and physical properties of subsurface structures from gravity measurements collected at the surface. These problems are inherently ill-posed in the Hadamard sense [1], often exhibiting non-uniqueness, instability, and sensitivity to noise due to the smoothing nature of gravity data [2,3]. Since multiple models can equally explain the observed data, the inversion process is typically ambiguous and requires additional constraints to stabilize the solutions [4].
Classical inversion techniques address these challenges by incorporating regularization strategies, typically following the frameworks established by Tikhonov and further formalized by Menke [5] and Aster et al. [6]. However, the choice of regularization parameters and reference models can significantly influence the final solution, potentially introducing biases or obscuring important geological features [7,8]. Moreover, the misfit functional in both linear and nonlinear inverse problems often exhibits complex topographies [4,8], which further complicates the inversion process.
Probabilistic approaches, particularly those grounded in Bayesian inference [8], have been proposed to better capture the intrinsic uncertainties of inverse problems. Techniques such as Monte Carlo sampling [9,10] and transdimensional methods [8,11] enable a more thorough exploration of the solution space, although at the cost of greater computational effort. Parsimonious Bayesian inversion strategies have also been proposed to balance model complexity and computational tractability [9].
In gravity inversion, model-reduction strategies have emerged as an effective alternative to full-space discretizations. Rather than parameterizing the subsurface with dense grids, model reduction employs simple geometric bodies, such as prisms, spheres, cylinders, or ellipsoids, to describe anomalies using a small number of parameters [7,12]. These methods reduce the problem’s dimensionality and alleviate the curse of dimensionality [13] while often preserving key geological realism. Among these strategies, ellipsoidal parameterization offers a favorable balance between simplicity and flexibility. By representing subsurface cavities or density anomalies as ellipsoids, one can capture variations in depth, orientation, and elongation while retaining analytical or semi-analytical expressions for forward modeling [12,14].
Global optimization algorithms, particularly Particle Swarm Optimization (PSO) [15,16], have proven highly effective for solving inverse problems characterized by complex, multimodal, flat-valley objective functions. PSO not only enables the search for optimal solutions but also supports the sampling of plausible models, thereby facilitating uncertainty quantification without the need for explicit regularization [17,18,19]. Applications of PSO to gravity inversion have shown success in various geological contexts [17,20,21,22]. Recent developments have also explored the integration of PSO with Bayesian principles for model space exploration [8], transdimensional approaches [11], and hybrid strategies aimed at enhancing robustness in noisy environments [23].
In this study, we focus on the detection and characterization of anomalous bodies by representing them as prolate ellipsoids embedded in a homogeneous background. Assuming that the density contrast is known, each ellipsoid is described by seven parameters: the coordinates of its center, the lengths of two semi-axes, the azimuth, and the tilt. We solve the inverse problem using PSO, aiming to achieve both optimization and uncertainty quantification. Additionally, we explore the feasibility of estimating the density contrast as an extra model parameter.
The proposed methodology is validated using both synthetic datasets contaminated with Gaussian noise and a real-world application. The results show that the combination of ellipsoidal model reduction and swarm-based global optimization provides an efficient, robust, and interpretable framework for gravity inversion, particularly in scenarios where uncertainty quantification plays a significant role.
The remainder of this article is organized as follows. Section 2 introduces the mathematical and computational framework. Section 3 and Section 4 present the inversion results from synthetic datasets contaminated with noise. Section 5 applies the proposed methodology to a real gravity dataset. Section 6 discusses the method’s performance and practical implications. Finally, Section 7 concludes with final remarks and suggestions for future research.

2. Materials and Methods

We address the forward problem of computing the gravity anomaly generated by an ellipsoidal body with known density contrast Δ ρ , embedded within a homogeneous medium. The corresponding inverse problem involves estimating the model parameters—position, size, orientation, and density contrast—from a finite set of gravity measurements collected at the surface. The numerical implementation and data analysis were performed using MATLAB R2024b (The MathWorks, Inc., Natick, MA, USA). Due to the potential-field nature of gravity, the limited spatial resolution of measurements, and the presence of observational noise, the inverse problem is inherently ill-posed; its solution is generally non-unique and unstable [1,3].
The objective function associated with this inverse problem presents a highly irregular and non-convex landscape, characterized by numerous local minima and flat regions. As shown in [4], even relatively simple gravimetric configurations can yield complex misfit topographies, which significantly limits the effectiveness of local, gradient-based optimization methods. To mitigate these difficulties, we adopt a model-reduction approach, representing each anomaly as a prolate ellipsoid. The model vector m comprises eight parameters per body: the coordinates of the center ( x c , y c , z c ) , the semi-major and semi-minor axes ( A , B ) , the azimuth ( α ) , the tilt angle ( ϕ ) , and the density contrast ( Δ ρ ) . This yields a compact representation of dimension 8 n a , where n a is the number of anomalous bodies. The gravitational response of each ellipsoid is computed analytically using the formulation by MacMillan [24], ensuring both accuracy and computational efficiency.
Given the limitations of deterministic and fully Bayesian methods for high-dimensional, nonlinear problems, we employ Particle Swarm Optimization (PSO), a global, population-based optimization algorithm that does not require gradient information [15,16]. The stochastic nature of PSO and its swarm dynamics make it well-suited for navigating rugged misfit landscapes while also enabling direct uncertainty quantification through particle dispersion. Compared to Markov Chain Monte Carlo (MCMC) methods [9,10], PSO offers a more computationally tractable balance between sampling depth and cost. Techniques such as Transitional MCMC and Simulated Tempering [11,25,26] share similar objectives but often involve greater implementation complexity. In this study, we adopt a robust PSO variant (CP-PSO), which is specifically designed to balance convergence and population diversity, allowing effective sampling of the posterior distribution without additional regularization [15].
Instead of relying on post hoc resampling or linearized error propagation, uncertainty is assessed directly from the final distribution of particle positions. This strategy enables the identification of anisotropic uncertainty structures in parameter space, in line with the physical resolution limits of gravity data [8,27]. Confidence intervals and ensembles of plausible models are thus obtained without assuming Gaussianity or linearity.

2.1. Gravity Inversion and Model Reduction

In a three-dimensional domain, the forward problem is described by the integral equation
Δ g ( x ) = G V ρ ( x ) ( z z ) | x x | 3 d V ,
where G is the gravitational constant, x = ( x , y , z ) denotes the observation point at the surface, and ρ ( x ) is the subsurface density distribution within the volume V that generates the observed gravity anomaly. This formulation is derived from Newton’s law of universal gravitation [23].
The inverse problem consists of recovering ρ ( x ) from the measurements of Δ g ( x ) , which is commonly expressed in the form
Δ g ( x ) = V K ( x , x ) ρ ( x ) d V ,
with the kernel
K ( x , x ) = G ( z z ) | x x | 3 .
By discretizing the density distribution ρ ( x ) using a set of basis functions ϕ k ,
ρ ( x ) = k = 1 N ρ k ϕ k ( x ) ,
the inverse problem reduces to solving a linear system, where the number of unknowns N typically exceeds the number of gravity observations m, N m . This leads to an underdetermined and ill-posed system, necessitating the use of regularization strategies, such as Tikhonov regularization or Bayesian priors, to obtain stable and geologically plausible solutions [6,8,28].

2.2. Model Reduction in 2D Using Elliptical Bodies

An effective and practical strategy to mitigate the inherent indeterminacy of gravity inverse problems is to reduce model dimensionality through reparameterization. Instead of discretizing the entire domain into a large number of cells, this approach represents anomalous bodies using elliptical geometries, significantly decreasing the number of model parameters. Although this introduces nonlinearity, since the forward response depends nonlinearly on the shape, position, and orientation of each anomaly, it leads to more compact and interpretable models.
In a homogeneous medium, a typical parameterization of an elliptical anomaly includes the set [ ρ a , ρ b , x i , x f , z i , z f ] , where ρ b is the background density, ρ a is the anomaly density, and x i , x f , z i , z f define the horizontal and vertical bounds of the elliptical region. Compared to traditional grid-based models that require n x × n z cells along the x- and z-axes, the reparameterized model reduces the number of parameters to 5 n a + 1 , where each of the n a anomalies is described by five parameters, and one additional parameter corresponds to the background density.
The forward response can be computed using either the Barbosa and Silva formulation for gridded models or Talwani’s method for polygonal bodies. Both approaches yield comparable accuracy, although Talwani’s method is often preferred for its computational efficiency [29]. This reparameterization strategy was successfully applied by Fernández-Muñiz et al. [19], demonstrating its practical utility in gravimetric inversion via PSO for real data.
Other realistic parameterizations, such as oriented prism bodies, could also be used to reduce model dimensionality. The key is being able to compute the Bouguer anomaly of these bodies very quickly.

2.3. Model Reduction in 3D Using Ellipsoidal Bodies

In three-dimensional settings, an effective alternative to classical discretization involves representing anomalous subsurface bodies as prolate ellipsoids of revolution. This approach significantly reduces the number of model parameters and the dimensionality of the inverse problem. Although this parameterization introduces nonlinearity, since the forward model becomes a nonlinear function of the geometric parameters, it retains enough flexibility to capture the key features of subsurface anomalies.
Each ellipsoid is characterized by eight parameters: the coordinates of its center ( x c , y c , z c ) , the lengths of the semi-major and semi-minor axes ( A , B ) assuming a prolate geometry ( A > B ), the azimuth and tilt angles ( α , ϕ ) , and the density contrast ( Δ ρ ) relative to the surrounding medium. This compact representation reduces the number of degrees of freedom from n x n z in grid-based models to 8 n a , where n a is the number of ellipsoidal bodies.
  • Gravitational Attraction of a Homogeneous Prolate Ellipsoid
We consider a homogeneous ellipsoid with constant density ρ and aim to compute the vertical component of its gravitational attraction at a point located along its axis of symmetry (the z-axis), i.e., at ( 0 , 0 , z ) , with z > A . The vertical gravitational attraction at this point is given by the closed-form expression
g z ( z ) = 2 π G ρ 2 A e 2 z z 2 A 2 arctan z 2 A 2 e B 1 ,
where G is the gravitational constant and e is the eccentricity defined as
e = 1 B 2 A 2 ( with A > B ) .
This expression is derived from the analytical solution of the gravitational potential of a prolate spheroid, followed by differentiation to obtain the gravitational field component along the vertical direction [24]. It is computationally efficient and well-suited for forward modeling due to its analytical nature. The formula assumes that the observation point lies along the ellipsoid’s symmetry axis. If the ellipsoid is inclined or rotated (i.e., with non-zero tilt or azimuth), the coordinates of the observation point must be transformed into the ellipsoid’s local frame of reference. After applying the formula in this local frame, the resulting gravitational vector is rotated back to the global coordinate system. The gravitational attraction g z decreases with increasing distance z, and its dependency on the eccentricity e highlights the influence of shape: more elongated ellipsoids concentrate mass closer to their center, modifying the external gravitational field accordingly.
The associated inverse problem involves estimating the ellipsoidal parameters that best reproduce the observed gravity anomaly. By reducing the complexity of the model space and leveraging the geometric compactness of ellipsoidal shapes, this strategy enhances computational tractability while preserving physical interpretability and structural coherence.

2.4. Noise and Uncertainty

Although it may appear counterintuitive, uncertainty analysis is conducted over an error region that is broader than the error associated with the best-fitting model. In the presence of noise, the inverted model being fitted to noisy data is typically the only one that minimizes the misfit. The true model, if it were known, would generally yield a higher misfit and lie within the equivalence region rather than being identified as the best-fitting solution. To illustrate this concept, consider the case of linear regression:
y * ( x ) = a 0 + a 1 x ,
with a true parameter vector a true = ( a 0 , a 1 ) = ( 0.5 , 30 ) . A set of m 2 noisy observations is generated as
y obs ( x i ) = y * ( x i ) + δ i , δ i N ( 0 , σ ) , i = 1 , , m ,
where x i is the i-th input or spatial coordinate, y obs ( x i ) is the observed (noisy) data, δ i is the Gaussian noise term with a standard deviation σ , and y * ( x i ) is the true noise-free model output. The least-squares estimate a LS is obtained as
a LS = ( F T F ) 1 F T y obs ,
where the design matrix F R m × 2 is defined as
F = 1 x 1 1 x 2 1 x m , y obs = y obs ( x 1 ) y obs ( x 2 ) y obs ( x m ) .
The impact of noise on both linear and nonlinear inverse problems has been thoroughly analyzed by Fernández Martínez et al. [30,31]. One of the key findings of their work is that noise not only distorts the solutions obtained through linear and nonlinear optimization methods but also affects those derived via sampling techniques. In particular, noise can act as a form of implicit regularization, altering the topology of the uncertainty region.
Figure 1 illustrates the fundamental motivation for uncertainty quantification in inverse problems. Even in this simple linear regression case, the presence of noise leads the least-squares solution to deviate from the true model, underscoring the need to consider a family of plausible models rather than relying exclusively on a single estimate.
The figure shows the results of sampling the uncertainty region using a bagging algorithm. The least-squares estimate (in green), located at the center of the sampling hypercube, clearly deviates from the true model (in black), which exhibits a larger misfit than the least-squares solution.
The uncertainty M tol region is defined as
M tol = y obs y pre 2 y obs 2 < tol , with tol > F a LS y obs 2 y obs 2 ,
where y pre = ( y * ( x 1 ) , , y * ( x m ) ) T denotes the predicted response from a sampled model.
This metric quantifies the normalized discrepancy between predicted and observed data. A model y pre is considered acceptable if M tol < tol , where tol is a user-defined threshold. This criterion defines an equivalence region in the parameter space around the least-squares solution, allowing for the quantification of model uncertainty. In linear problems, this region corresponds to the hyperquadric defined by the matrix F t F (see [4]). In contrast, nonlinear problems yield a curvilinear flat valley, often with multiple disconnected basins, making numerical sampling necessary.
In high-dimensional nonlinear problems, uncertainty analysis is further complicated by the curse of dimensionality [13] and the complex topology of the objective function, which often results in non-Gaussian posteriors with multiple low-error regions. To address this, we adopt PSO algorithms to sample the posterior distribution of model parameters.
Uncertainty is estimated directly from the ensemble of particle positions generated during the PSO search. For each parameter p i , a 95 % confidence interval is computed as
CI 95 % ( p i ) = [ p i ( m i n % ) , p i ( m a x % ) ] ,
where p i ( q ) denotes the q-th percentile of the sampled values. This non-parametric approach avoids assumptions of linearity or Gaussianity, and the resulting uncertainty maps provide valuable insight into model resolution.

2.5. Model Inversion via the PSO Family

Particle Swarm Optimization (PSO) was first introduced in geophysical inversion over a decade ago [12,32,33] and has since demonstrated strong performance in solving gravity inversion problems involving complex geological structures, such as faults with variable density contrasts [34,35,36]. In particular, PSO has been widely employed in gravity inversion studies [21,22,37,38,39] due to its ability to effectively address nonlinearity, discontinuities, and the inherent non-uniqueness of geophysical inverse problems.
Gradient-based inversion methods are widely used due to their computational efficiency and fast convergence in problems where the objective function is differentiable and relatively well-behaved [40]. These approaches rely on the availability of gradient information and typically require a good initial guess to avoid becoming trapped in local minima. In contrast, PSO is a population-based, derivative-free method that does not require prior information such as gradients or specific starting models. This makes PSO particularly suitable for complex, nonlinear, or ill-posed inverse problems where the solution space is irregular or contains multiple local optima. While PSO generally involves higher computational cost per iteration compared to gradient-based methods, its ability to explore a broader solution space without strict assumptions about the model structure or data behavior can lead to more robust and interpretable results in scenarios with limited prior information.
In this study, we employ some PSO variants, selected for their strong balance between exploration and exploitation. The various PSO variants differ in behavior, some favoring broader exploration of the search space and others promoting local exploitation of promising regions. Exploration ensures a more uniform sampling across the domain, while exploitation drives particles toward regions of lower misfit values. The ideal configuration of a PSO algorithm strikes a balance between both behaviors, enabling accurate localization of the global minimum while ensuring a comprehensive sampling of the solution space. This approach mitigates the risk of premature convergence to local minima and supports robust uncertainty quantification.
PSO offers multiple advantages in gravimetric inversion: it is easy to implement, computationally efficient, and robust in navigating complex, high-dimensional search spaces [15]. Unlike gradient-based methods, PSO does not require derivative information, which makes it particularly suitable for nonlinear and ill-posed inverse problems. Its population-based nature improves global search capabilities, reducing the likelihood of entrapment in local minima. When configured with an exploratory focus, PSO facilitates meaningful uncertainty quantification. Although not a Bayesian technique, it still provides valuable insights into model stability and resolution. These strengths have led to its successful application in gravity data interpretation [22,37].
Figure 2 presents a schematic overview of the PSO-based inversion workflow. It outlines the main steps involved in estimating the parameters of ellipsoidal geological models and quantifying their associated uncertainty. From the initialization of particles to the evaluation of the misfit and the final output of optimal and plausible solutions, the flowchart highlights PSO’s dual role as both an optimization tool and a mechanism for probabilistic exploration of the parameter space.

3. Results

This section presents the inversion results for synthetic gravity data generated from models composed of one, two, or three ellipsoids, with Gaussian noise added to simulate measurement uncertainties. The recovered models are compared against the true model (TM), the best-fitting model (BM), and the median model (MedM) derived from sampling the nonlinear uncertainty region. Additionally, trade-offs and uncertainties in the model parameters are assessed through posterior distribution analysis.

3.1. Case of One Ellipsoid with 10% Gaussian Noise

The first test case considers a model defined by a single ellipsoid, described by eight parameters. Synthetic gravity data were generated and contaminated with Gaussian noise of zero mean and a standard deviation equal to 10 % of the average anomaly magnitude:
δ g N ( 0 , σ ) , σ = 0.1 · mean ( g obs )
Table 1 compares the TM, the BM exhibiting the lowest prediction error ( 7.28 % ), and the MedM selected from models with prediction errors below 10 % . Uncertainty metrics, including the interquartile range (IQR) and its normalized form (IQRn), are also provided. The BM parameters closely approximated those of the TM, particularly for centroid coordinates ( x c , y c , z c ), semi-axes (A, B), and density contrast ( ρ ), indicating high inversion fidelity. The MedM exhibited greater deviations, notably in the orientation angles ( α , θ ), highlighting parameter sensitivity within the uncertainty region. This is supported by the normalized interquartile range:
I Q R n = I Q R MedM ,
which revealed that orientation parameters were less constrained ( I Q R n > 0.8 ), while density and centroid positions were more reliably estimated ( I Q R n < 0.6 ). The parameter bounds (Min–Max) encompassed the true values, confirming a sufficiently broad search space. Overall, the method produced stable and accurate estimates, although orientation remained inherently more uncertain.
To assess the robustness of the results, a sensitivity analysis was performed using 500 independent inversions with the same TM and parameter bounds. Table 2 summarizes the outcomes, including additional metrics such as the mean model (MeanM) and the coefficient of variation using a standard deviation:
c v s = σ μ ,
where σ is the standard deviation and μ is the mean of the accepted models (prediction error < 10 % ). This coefficient quantifies relative dispersion: lower values indicate better-constrained parameters.
These results confirm that parameters x c , y c , z c , and ρ exhibited lower uncertainty (IQRn and cvs values well below 0.6 ), indicating high reliability. In contrast, shape and orientation parameters (A, B, α , θ ) were more sensitive and less constrained under the given inversion setup. The lowest prediction error in this test was 7.8 % .
The inversion results are further illustrated through a series of figures. Despite the added noise, the recovered ellipsoids matched the true anomalies in geometry, position, and density contrast.
Figure 3 shows the marginal distributions and pairwise correlations of the model parameters. Distributions are generally non-Gaussian and weakly correlated, validating the assumption of parameter independence in PSO-based sampling. The anisotropy in the uncertainty reflects the well-known limitations of gravity data resolution, especially for orientation.
Figure 4 compares the spatial configuration of the true and best-fitting ellipsoids. The accurate reconstruction of position and shape confirms the method’s effectiveness under moderate noise levels.
The convergence behavior of the PSO algorithm is shown in Figure 5. The prediction error stabilized around iteration 100, indicating efficient convergence and effective parameter-space exploration.
Figure 6 compares the noisy observed anomaly with the synthetic prediction from the best-fitting model. The strong agreement reinforces the consistency of the forward model and the success of the inversion.
These analyses underscore the relevance of uncertainty quantification in geophysical inversion. Parameters with low IQRn and cvs values (e.g., position and density) can be considered well-constrained. In contrast, shape and orientation require additional constraints, such as regularization or complementary data. This approach supports reliable model selection and enhances confidence in inversion outcomes for practical applications.
Additional tests with 5 % and 15 % Gaussian noise produced results similar to those shown. For clarity, only the best-fitting model (BM) parameters from each case are reported in Table 3.

3.2. Case of Two Ellipsoids with 10% Gaussian Noise

In this second test case, the model consists of two ellipsoidal bodies, each defined by eight parameters, for a total of 16 unknowns. The synthetic gravity data were again contaminated with Gaussian noise of zero mean and a standard deviation equal to 10 % of the mean anomaly magnitude, following the same approach as in the one-body scenario.
Table 4 and Table 5 compare the true model (TM), which generated the synthetic data; the best-fitting model (BM), which yielded the lowest prediction error ( 4.62 % ); and the median model (MedM) from the ensemble of models whose misfit fell below the 10 % threshold. These tables also include the interquartile range (IQR), normalized interquartile range (IQRn), and the minimum and maximum values of the accepted model parameters. The variability and uncertainty of each parameter are also quantitatively assessed.
For both ellipsoids, the BM yielded a close approximation to the TM, with small deviations in most parameters. In the case of Ellipsoid 1 (Table 4), parameters such as x c , z c , θ , and ρ exhibited relative errors around 6 % , while y c , A, and B showed deviations between 7.3 % and 8.6 % . The azimuth angle α displayed a slightly higher error of approximately 10 % . For Ellipsoid 2 (Table 5), the location coordinates ( x c , y c , z c ), azimuth, and density contrast were recovered with errors below 4.1 % , although the semi-axis lengths A and B exhibited errors of 8 % and 12 % , respectively, and the tilt angle θ showed a larger discrepancy of 21 % .
In contrast, the MedM exhibited noticeably larger deviations, particularly in the geometric and orientational parameters such as the semi-axes (A, B) and angles ( α , θ ). This behavior reflects the intrinsic non-uniqueness of the inverse problem and is consistent with the dispersion captured by the IQR values, which are notably higher for these parameters.
The IQRn metric further highlights the varying degree of parameter identifiability. Among all parameters, the tilt angle θ exhibited the highest IQRn in both ellipsoids, indicating its high sensitivity to noise and model nonlinearity. On the other hand, the density contrast ρ consistently yielded the lowest IQRn, suggesting it was more robustly constrained by the data. Based on the IQRn behavior, the parameters can be categorized as follows: (i) low variability: ρ ; (ii) moderate variability: x c and y c ; and (iii) high variability: z c , A, B, α , and θ .
The wide ranges observed between the minimum and maximum accepted values reinforce the inherent ambiguity of the inversion process, particularly for geometric and directional parameters. These results underscore the critical importance of uncertainty quantification in inverse problems. Even when a model fits the observed data well, substantial variability may persist in the underlying parameter estimates, especially in scenarios involving complex geometries or measurement noise.
The spatial distribution of the true and recovered ellipsoids demonstrates that the inversion method is capable of accurately resolving the essential characteristics of both anomalies simultaneously. As illustrated in the plan and front views (Figure 7), the geometry and spatial positioning of the best-fitting models closely resemble those of the true bodies, even in the presence of substantial noise contamination. This confirms the method’s capacity to handle increased model complexity without a significant loss of resolution.
The convergence behavior of the PSO algorithm in this two-body scenario further supports its robustness and efficiency. As shown in Figure 8, despite the increased dimensionality and complexity relative to the single-anomaly case, the swarm successfully converged to a stable region of the parameter space. The error curve exhibits a clear stepwise reduction, reflecting a progressive refinement of the search and a successful balance between exploration and exploitation dynamics. The stabilization of the relative misfit around iteration 225 confirms the algorithm’s effectiveness in locating reliable solutions under noisy and nonlinear conditions.
Figure 9 compares the observed gravity anomaly with the anomaly predicted by the best-fitting model. The strong agreement between the two confirms the consistency and validity of the inversion results. Not only is the global trend of the anomaly accurately captured, but the local features are also effectively reproduced, indicating that the recovered model honors both broad and detailed structures of the subsurface anomalies. This emphasizes the reliability of the PSO-based inversion in capturing complex configurations while accounting for data noise and non-uniqueness.

3.3. Swarm Behavior and Performance Analysis

The performance of Particle Swarm Optimization (PSO) is strongly influenced by its ability to effectively explore the search space. This exploratory capacity depends not only on the swarm size but also on the dynamic evolution of particle distribution throughout the optimization process. In this subsection, we analyze several aspects that shed light on how exploration and convergence are achieved and maintained.
Figure 10a,b illustrate the internal swarm dynamics over the course of the optimization. Figure 10a displays the percentage of swarm dispersion relative to its center of mass as a function of the number of PSO iterations. Initially, the swarm exhibits a brief but intense exploratory phase: dispersion decreases rapidly from approximately 24 % to 4 % within the first 10 iterations. Around iteration 30, dispersion begins to increase again, reaching 8 % near iteration 100, and then stabilizes at that level through iteration 200. This behavior reflects a well-balanced exploration-to-exploitation transition—initial diversity facilitates broad search, followed by convergence, and then a partial recovery of diversity helps avoid premature stagnation.
Figure 10b shows the proportion of particles that remained within the feasible parameter space throughout the optimization. This percentage decreased sharply during the first three iterations, likely due to the random initialization of the swarm. However, by iteration 8, more than 65 % of the particles lay within valid bounds, increasing to over 75 % by iteration 15, where it remained stable. These results confirm that the PSO configuration efficiently guides particles toward feasible regions early in the process, enhancing convergence reliability.
In addition to the temporal evolution of swarm dynamics, the effect of swarm size on computational performance and inversion quality was analyzed. Figure 11a shows the dependence of total CPU time on the number of particles. The relationship is approximately linear, with execution time increasing proportionally to swarm size. Figure 11b displays the relative prediction error of the best model as a function of swarm size. It is observed that a swarm size of around 30 particles was sufficient to reach the low-error equivalence region (error < 9 % ), while approximately 200 particles were required to attain the minimum error observed (below 8 % ). This suggests that a more efficient strategy may consist of using a moderate number of particles (e.g., 100 to 200) combined with a greater number of iterations, which would enable a faster sampling of low-error models.
The initial decrease followed by a subsequent increase in relative error observed in Figure 11b can be explained by the typical behavior of PSO with varying swarm sizes. For small swarms, the search space is insufficiently explored, often leading to premature convergence or entrapment in local minima—hence the high initial error. As the swarm size increases, the diversity of candidate solutions improves, resulting in more accurate inversions and reduced relative error. However, beyond a certain threshold, further increasing swarm size may cause inefficient convergence and oversampling of the low-misfit regions. This trade-off explains the eventual rise in relative error at large swarm sizes.
Overall, these findings highlight the importance of carefully tuning both the swarm size and its dynamic behavior throughout the PSO process. An initial phase of exploration followed by controlled convergence and stable particle retention within feasible bounds are critical elements for ensuring both robust inversion and meaningful uncertainty quantification.

4. Inverse Gravimetric Detection of Water-Filled Cavities Using Ellipsoidal Model Reduction

Water-filled subsurface cavities generate negative gravity anomalies due to their lower density than the surrounding rock. To model these, we used a prolate ellipsoid within a homogeneous limestone matrix. With known density contrast, the number of parameters was reduced from eight to seven, improving inversion stability.
Typical cavity dimensions ranged from 10–30 m in length, 2–6 m in width, and 10–60 m in depth, with volumes between 100–800 m3 and axis ratios A / B of 2.5 –5.
We simulated two synthetic cases: standard and narrow water-filled cavities. For the standard case, the inversion results are shown in Table 6, and the spatial fit between the true and recovered ellipsoids is shown in Figure 12. The reduced parameter space yielded improved convergence, as shown in Figure 13. The narrow geometry of the cavity was primarily controlled by the semi-axes A and B, which define its elongation and thickness.
For narrow cavities, tighter search bounds improved inversion accuracy. Table 7 summarizes the results, with the spatial agreement shown in Figure 14.

5. Real Case: Application of Gravity Data Inversion in Mud Volcano Studies

In this study, we analyzed microgravity data acquired over the Nirano Salse mud volcanoes in northern Italy, using a methodological approach inspired by the work of [41]. In that study, a detailed gravity survey was conducted at 61 stations across a 4 km2 area. After applying standard corrections—tidal, drift, latitude, free-air, Bouguer, and terrain—the resulting complete Bouguer anomaly was inverted using the GROWTH 3.0 software. The inversion revealed a prominent low-density anomaly ( Δ ρ 350 kg/m3), interpreted as a gas- or mud-saturated volume within a fault damage zone aligned with a NW–SE fault system.
In the present work, although the gravity data and geological context are comparable, the inversion was carried out using our own ellipsoidal parametrization approach. Based on the anomaly map, we identified two high-density bodies, located approximately along the same x-axis interval, and two low-density anomalies farther southeast. The geometry of this negative anomaly suggests a possible interpretation involving two adjacent or embedded bodies.
To explore this configuration, we tested multiple inversion scenarios with three, four, and five ellipsoids. The model with four ellipsoids—two representing high-density zones and two representing the low-density body—provided the best fit, with prediction errors ranging between 20 % and 25 % . The final inversion model balanced error minimization ( 23.2 % ) with adequate anomaly reproduction. The results are presented in Table 8, which summarizes the best-fitting model (BM) and interquartile range (IQR) for each ellipsoid. It should be noted that the ground elevation ranged between 150 and 277 m above sea level and that the z c coordinates of the ellipsoid centers were referenced to sea level.
To test the algorithm on real data, we performed inversions using three, four, and five ellipsoids. Even in the most complex case, the computation was completed in approximately 104 s using 2000 iterations and a swarm size of 500 particles on a standard Intel Core i7 processor. These results demonstrate that the algorithm is both fast and computationally efficient.
Figure 15 shows the spatial distribution of the four recovered ellipsoids, aligned with local geological trends. Figure 16 compares the observed and predicted Bouguer anomalies, demonstrating that the four-ellipsoid model effectively captured the main features of the measured gravity field, validating both the parametrization and inversion strategy used in this work.

6. Discussion

The results presented in this work confirm the effectiveness of combining geometric model reduction with global optimization for solving inverse gravimetric problems. The proposed method, based on prolate ellipsoidal parameterization and Particle Swarm Optimization (PSO), significantly reduces the number of free parameters, improves convergence stability, and facilitates a direct quantification of uncertainty.
Through synthetic experiments involving one to four ellipsoids, we demonstrated that the method reliably recovers the geometry, position, and density contrast of subsurface anomalies, even in the presence of considerable Gaussian noise. The reduced-parameter representation not only yields compact and interpretable models but also acts as an implicit regularizer, obviating the need for additional penalization terms.
Uncertainty quantification, performed via swarm dispersion, revealed anisotropic behavior consistent with the known resolution limits of gravity data. Parameters such as the center coordinates and density contrast exhibited low normalized variability (IQRn, cvs), while geometrical features like the semi-axes and orientation angles remained more sensitive and uncertain. These insights emphasize the importance of incorporating uncertainty metrics when interpreting inversion outcomes, especially in geotechnical and environmental applications.
The performance of the algorithm is further supported by its convergence dynamics. A balance between exploration and exploitation was maintained throughout the iterations, with a stable proportion of particles remaining within the feasible region and a moderate recovery of swarm diversity after initial convergence. This behavior enhances the robustness of the inversion, even in high-dimensional or multimodal search spaces.
Inversions for water-filled karstic cavities illustrate the method’s practical applicability. Assuming a known density contrast reduced the problem dimensionality from eight to seven parameters per ellipsoid, yielding more stable and accurate solutions. In the case of narrow cavities, tighter parameter bounds were shown to improve resolution, highlighting the importance of incorporating prior geological information when targeting subtle or small-scale anomalies.
Finally, a real-world application involving the inversion of a complete Bouguer anomaly over the Nirano Salse mud volcano field was analyzed. The proposed method successfully identified three high-density bodies and a low-density anomaly, achieving the lowest prediction error with a four-ellipsoid model. This case confirms the method’s capacity to resolve realistic subsurface structures of varying density contrasts, supporting its use in complex geological scenarios.

7. Conclusions

This study introduces a reduced-parameter approach to three-dimensional gravity inversion that models subsurface anomalies as ellipsoidal bodies and employs Particle Swarm Optimization (PSO) for parameter estimation. The method significantly reduces the complexity of the inverse problem while providing a practical means of exploring the associated uncertainty. By avoiding traditional regularization and instead relying on the inherent diversity of the particle swarm, the approach yields stable and interpretable models without sacrificing accuracy.
The method was validated using synthetic datasets with varying noise levels and complexity, as well as a real case involving gravity data from a volcanic setting. In all scenarios, the proposed approach produced stable, accurate, and geologically plausible models. The inclusion of a real-data application strengthens the methodology’s credibility and demonstrates its practical relevance in field investigations.
This simple model parameterization proves to be particularly useful in geological setups with gravimetric anomalies on a quasi-homogeneous background, both for decision-making and for proposing prior models used in more refined inversions.
In summary, ellipsoidal model reduction combined with PSO represents a powerful and versatile tool for gravity inversion, particularly in settings where model simplicity, uncertainty quantification, and interpretability are of paramount importance.

Author Contributions

Conceptualization, Z.F.M. and J.L.F.M.; methodology, Z.F.M. and J.L.F.M.; software, R.E.G., Z.F.M. and J.L.F.M.; validation, formal analysis, investigation, resources, data curation, writing—original draft preparation, writing—review and editing, and supervision, R.E.G., Z.F.M., A.B.S. and J.L.F.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Hadamard, J. Sur les problèmes aux dérivées partielles et leur signification physique. Princet. Univ. Bull. 1902, 13, 49–52. [Google Scholar]
  2. Snieder, R.; Trampert, J. Inverse problems in geophysics. In Wavefield Inversion; Wirgin, A., Ed.; Springer: New York, NY, USA, 1999; pp. 119–190. [Google Scholar]
  3. Scales, J.A.; Snieder, R. The anatomy of inverse problems. Geophysics 2000, 65, 1708–1710. [Google Scholar] [CrossRef]
  4. Fernández-Martínez, J.L.; Fernández-Muñiz, Z.; Tompkins, M.J. On the topography of the cost functional in linear and nonlinear inverse problems. Geophysics 2012, 77, W1–W15. [Google Scholar] [CrossRef]
  5. Menke, W. Geophysical Data Analysis: Discrete Inverse Theory, 3rd ed.; Academic Press: Cambridge, MA, USA, 2012; 330p. [Google Scholar]
  6. Aster, R.C.; Borchers, B.; Thurber, C.H. Parameter Estimation and Inverse Problems; Elsevier Academic Press: Amsterdam, The Netherlands, 2012; 376p. [Google Scholar] [CrossRef]
  7. Fernández-Martínez, J.L.; Fernández-Muñiz, Z.; Pallero, J.L.G.; Pedruelo-González, L.M. From Bayes to Tarantola: New insights to understand uncertainty in inverse problems. J. Appl. Geophys. 2013, 98, 62–72. [Google Scholar] [CrossRef]
  8. Tarantola, A. Inverse Problem Theory and Methods for Model Parameter Estimation; SIAM: Philadelphia, PA, USA, 2005. [Google Scholar] [CrossRef]
  9. Malinverno, A. Parsimonious Bayesian Markov chain Monte Carlo inversion in a nonlinear geophysical problem. Geophys. J. Int. 2002, 151, 675–688. [Google Scholar] [CrossRef]
  10. Mosegaard, K.; Tarantola, A. Monte Carlo sampling of solutions to inverse problems. J. Geophys. Res. Solid Earth 1995, 100, 12431–12447. [Google Scholar] [CrossRef]
  11. Sambridge, M.; Gallagher, K.; Jackson, A.; Rickwood, P. Transdimensional inverse problems, model comparison and the evidence. Geophys. J. Int. 2006, 167, 528–542. [Google Scholar] [CrossRef]
  12. Essa, K.S. A Fast Least-squares Method for Inverse Modeling of Gravity Anomaly Profiles due Simple Geometric-shaped Structures. In Proceedings of the Near Surface Geoscience 2012—18th European Meeting of Environmental and Engineering Geophysics, Paris, France, 3–5 September 2012. [Google Scholar] [CrossRef]
  13. Fernández-Martínez, J.L.; Fernández-Muñiz, Z. The curse of dimensionality in inverse problems. J. Comput. Appl. Math. 2020, 369, 112571. [Google Scholar] [CrossRef]
  14. Heincke, B.; Jegen, M.; Moorkamp, M.; Hobbs, R.W.; Chen, J. An adaptive coupling strategy for joint inversions that use petrophysical information as constraints. J. Appl. Geophys. 2017, 136, 279–297. [Google Scholar] [CrossRef]
  15. Fernández Martínez, J.L.; García Gonzalo, E. The PSO family: Deduction, stochastic analysis and comparison. Swarm Intell. 2009, 3, 245–273. [Google Scholar] [CrossRef]
  16. Clerc, M. Particle Swarm Optimization; ISTE Ltd.: Radlett, UK, 2005. [Google Scholar] [CrossRef]
  17. Roshan, R.; Singh, U.K. Inversion of residual gravity anomalies using tuned PSO. Geosci. Instrum. Method. Data Syst. 2017, 6, 71–79. [Google Scholar] [CrossRef]
  18. Yuan, S.; Wang, S.; Tian, N. Swarm intelligence optimization and its application in geophysical data inversion. Appl. Geophys. 2009, 6, 166–174. [Google Scholar] [CrossRef]
  19. Fernández Muñiz, Z.; Pallero, J.L.G.; Fernández-Martínez, J.L. Anomaly shape inversion via model reduction and PSO. Comput. Geosci. 2020, 140, 104492. [Google Scholar] [CrossRef]
  20. Anand, S.; Arkoprovo, B. Application of Global Particle Swarm Optimization for Inversion of Residual Gravity Anomalies Over Geological Bodies with Idealized Geometries. Nat. Resour. Res. 2015, 25, 297–314. [Google Scholar] [CrossRef]
  21. Toushmalani, R. Comparison result of inversion of gravity data of a fault by particle swarm optimization and Levenberg-Marquardt methods. SpringerPlus 2013, 2, 462. [Google Scholar] [CrossRef]
  22. Pallero, J.L.G.; Fernández-Martínez, J.L.; Bonvalot, S.; Fudym, O. 3D gravity inversion and uncertainty assessment of basement relief via Particle Swarm Optimization. J. Appl. Geophys. 2017, 139, 338–350. [Google Scholar] [CrossRef]
  23. Blakely, R.J. Potential Theory in Gravity and Magnetic Applications; United States Geological Survey, California; Cambridge University Press: Cambridge, UK, 1995. [Google Scholar] [CrossRef]
  24. MacMillan, W.D. The Theory of the Potential; McGraw-Hill: New York, NY, USA, 1930. [Google Scholar]
  25. Ching, J.; Chen, Y.C. Transitional Markov Chain Monte Carlo method for Bayesian model updating, model class selection, and model averaging. J. Eng. Mech. 2007, 133, 816–832. [Google Scholar] [CrossRef]
  26. Fichtner, A.; Zunino, A.; Gebraad, L. Hamiltonian monte carlo solution of tomographic inverse problems. Geophys. J. Int. 2019, 216, 1344–1363. [Google Scholar] [CrossRef]
  27. Zhang, Q.; Liao, J.; Luo, Z.; Zhou, L.; Zhang, X. Multi-model stacked structure based on particle swarm optimization for random noise attenuation of seismic data. Geophys. Prospect. 2024, 72, 1617–1639. [Google Scholar] [CrossRef]
  28. Parker, R.L. Geophysical Inverse Theory; Princeton University Press: Princeton, NJ, USA, 1994. [Google Scholar]
  29. Barbosa, V.C.F.; Silva, J.V.C. Generalized compact gravity inversion. Geophysics 1994, 59, 57–68. [Google Scholar] [CrossRef]
  30. Fernández-Martínez, J.L.; Pallero, J.L.G.; Fernández-Muñiz, Z.; Pedruelo-González, L.M. The effect of the noise and Tikhonov’s regularization in inverse problems. Part I: The linear case. J. Appl. Geophys. 2014, 108, 176–185. [Google Scholar] [CrossRef]
  31. Fernández-Martínez, J.L.; Pallero, J.L.G.; Fernández-Muñiz, Z.; Pedruelo-González, L.M. The effect of the noise and Tikhonov’s regularization in inverse problems. Part II: The nonlinear case. J. Appl. Geophys. 2014, 108, 186–193. [Google Scholar] [CrossRef]
  32. Martínez, J.L.F.; Gonzalo, E.G.; Álvarez, J.P.F.; Kuzma, H.A.; Pérez, C.O.M. PSO: A powerful algorithm to solve geophysical inverse problems: Application to a 1D-DC resistivity case. J. Appl. Geophys. 2010, 71, 13–25. [Google Scholar] [CrossRef]
  33. Singh, K.K.; Singh, U.K. Application of particle swarm optimization for gravity inversion of 2.5-D sedimentary basins using variable density contrast. Geosci. Instrum. Method. Data Syst. 2017, 6, 193–198. [Google Scholar] [CrossRef]
  34. Roy, A.; Kumar, T.S. Gravity inversion of 2D fault having variable density contrast using particle swarm optimization. Geophys. Prospect. 2021, 69, 1358–1374. [Google Scholar] [CrossRef]
  35. Boulanger, O.; Chouteau, M. Constraints in 3D gravity inversion. Geophys. Prospect. 2001, 49, 265–280. [Google Scholar] [CrossRef]
  36. Essa, K.S.; Munschy, M. Gravity data interpretation using the particle swarm optimisation method with application to mineral exploration. J. Earth. Syst. Sci. 2019, 128, 123. [Google Scholar] [CrossRef]
  37. Pallero, J.L.G.; Fernández-Martínez, J.L.; Bonvalot, S.; Fudym, O. Gravity inversion and uncertainty assessment of basement relief via Particle Swarm Optimization. J. Appl. Geophys. 2015, 116, 180–191. [Google Scholar] [CrossRef]
  38. Pallero, J.L.G.; Fernández-Muñiz, Z.; Fernández-Martínez, J.L.; Bonvalot, S. Posterior analysis of particle swarm optimization results applied to gravity inversion in sedimentary basins. AIMS Math. 2024, 9, 13927–13943. [Google Scholar] [CrossRef]
  39. Camacho, A.G.; Montesinos, F.G.; Vieira, R. A 3-D gravity inversion tool based on exploration of model possibilities. Comput. Geosci. 2000, 28, 191–204. [Google Scholar] [CrossRef]
  40. Zhdanov, M.S. Geophysical Inverse Theory and Regularization Problems; Elsevier: Amsterdam, The Netherlands, 2002. [Google Scholar]
  41. Nespoli, M.; Antonellini, M.; Albarello, D.; Lupi, M.; Cenni, N.; Piombo, A. Gravity data allow to image the shallow-medium subsurface below mud volcanoes. Geophys. Res. Lett. 2023, 50, e2023GL103505. [Google Scholar] [CrossRef]
Figure 1. Uncertainty region in a 2D linear regression problem. The black dot marks the true solution, and the green point represents the least-squares estimate under noise. Bootstrap sampling of the equivalent models is used in this case.
Figure 1. Uncertainty region in a 2D linear regression problem. The black dot marks the true solution, and the green point represents the least-squares estimate under noise. Bootstrap sampling of the equivalent models is used in this case.
Mathematics 13 02017 g001
Figure 2. Flowchart of the PSO-based inversion and uncertainty analysis for gravity anomaly detection.
Figure 2. Flowchart of the PSO-based inversion and uncertainty analysis for gravity anomaly detection.
Mathematics 13 02017 g002
Figure 3. Marginal histograms and pairwise correlation coefficients of inverted parameters. Distributions are mostly non-Gaussian and exhibit weak correlations. Each element r i j of the matrix is the Pearson correlation coefficient between variables i and j, ranging from –1 (perfect negative) to +1 (perfect positive).
Figure 3. Marginal histograms and pairwise correlation coefficients of inverted parameters. Distributions are mostly non-Gaussian and exhibit weak correlations. Each element r i j of the matrix is the Pearson correlation coefficient between variables i and j, ranging from –1 (perfect negative) to +1 (perfect positive).
Mathematics 13 02017 g003
Figure 4. Single-anomaly case. Comparison of true and inverted ellipsoids (lowest misfit) in plan and elevation views. Strong agreement in location and geometry is observed.
Figure 4. Single-anomaly case. Comparison of true and inverted ellipsoids (lowest misfit) in plan and elevation views. Strong agreement in location and geometry is observed.
Mathematics 13 02017 g004
Figure 5. Convergence curve of PSO for the single-ellipsoid case. Relative prediction error (%) vs. iteration. Swarm convergence is achieved near iteration 120, with a final error of approximately 7.2 % .
Figure 5. Convergence curve of PSO for the single-ellipsoid case. Relative prediction error (%) vs. iteration. Swarm convergence is achieved near iteration 120, with a final error of approximately 7.2 % .
Mathematics 13 02017 g005
Figure 6. Observed gravity anomaly with noise (a) and predicted anomaly from the best-fitting model (b) The close match validates the inversion results.
Figure 6. Observed gravity anomaly with noise (a) and predicted anomaly from the best-fitting model (b) The close match validates the inversion results.
Mathematics 13 02017 g006
Figure 7. Second example: true and best-fitting ellipsoids for the two-anomaly case (plan and front views).
Figure 7. Second example: true and best-fitting ellipsoids for the two-anomaly case (plan and front views).
Mathematics 13 02017 g007
Figure 8. Two-anomaly case. The PSO convergence curve illustrates the relative prediction error ( % ) as a function of the iteration number. The curve exhibits a stepwise behavior, with the swarm converging to a region around iteration 225, where the relative error stabilizes at approximately 5.25 % .
Figure 8. Two-anomaly case. The PSO convergence curve illustrates the relative prediction error ( % ) as a function of the iteration number. The curve exhibits a stepwise behavior, with the swarm converging to a region around iteration 225, where the relative error stabilizes at approximately 5.25 % .
Mathematics 13 02017 g008
Figure 9. Two-anomaly case. (a) Observed (with noise) and (b) predicted gravity anomalies.
Figure 9. Two-anomaly case. (a) Observed (with noise) and (b) predicted gravity anomalies.
Mathematics 13 02017 g009
Figure 10. Illustration of typical PSO behavior: (a) dispersion of the swarm and (b) proportion of particles remaining within the search boundaries over the course of the iterations.
Figure 10. Illustration of typical PSO behavior: (a) dispersion of the swarm and (b) proportion of particles remaining within the search boundaries over the course of the iterations.
Mathematics 13 02017 g010
Figure 11. (a) Total CPU time and (b) final relative error versus the number of swarm particles in the PSO algorithm.
Figure 11. (a) Total CPU time and (b) final relative error versus the number of swarm particles in the PSO algorithm.
Mathematics 13 02017 g011
Figure 12. Comparison of true and recovered ellipsoids in plan and front views: (a) standard-size cavity and (b) narrow-size cavity.
Figure 12. Comparison of true and recovered ellipsoids in plan and front views: (a) standard-size cavity and (b) narrow-size cavity.
Mathematics 13 02017 g012
Figure 13. PSO convergence curves showing relative misfit vs. iteration: (a) standard-size cavity and (b) narrow-size cavity.
Figure 13. PSO convergence curves showing relative misfit vs. iteration: (a) standard-size cavity and (b) narrow-size cavity.
Mathematics 13 02017 g013
Figure 14. Comparison of observed and predicted anomalies: (a) standard-size cavity and (b) narrow-size cavity.
Figure 14. Comparison of observed and predicted anomalies: (a) standard-size cavity and (b) narrow-size cavity.
Mathematics 13 02017 g014
Figure 15. Real-world scenario. Prolate ellipsoids simulating high- and low-density bodies, and locations of measurements (black dots).
Figure 15. Real-world scenario. Prolate ellipsoids simulating high- and low-density bodies, and locations of measurements (black dots).
Mathematics 13 02017 g015
Figure 16. Real-world scenario. Complete Bouguer anomaly maps: (a) observed and (b) predicted using the four-ellipsoid model.
Figure 16. Real-world scenario. Complete Bouguer anomaly maps: (a) observed and (b) predicted using the four-ellipsoid model.
Mathematics 13 02017 g016
Table 1. True model (TM), best-fitting model (BM) exhibiting the lowest prediction error, and median model (MedM) selected from models with prediction errors below 10 % . Also shown are the interquartile range (IQR), the normalized interquartile range (IQRn), and the minimum (Min) and maximum (Max) parameter values among the accepted models.
Table 1. True model (TM), best-fitting model (BM) exhibiting the lowest prediction error, and median model (MedM) selected from models with prediction errors below 10 % . Also shown are the interquartile range (IQR), the normalized interquartile range (IQRn), and the minimum (Min) and maximum (Max) parameter values among the accepted models.
x c (m) y c (m) z c (m)A (m)B (m) α (deg) θ (deg) ρ (kg/m3)
TM200150−551003045165−600
BM199.8150.1−54.7102.429.946.9165.7−594.7
MedM196.9117.3−64.083.442.096.1105.6−585.3
IQR93.363.844.562.632.381.096.7201.1
IQRn0.470.540.690.750.770.840.920.34
Min10050−100201000−800
Max300200−2015080180180−400
Table 2. Summary statistics for 500 independent PSO inversions. Reported values include the best-fitting model (BM), median model (MedM), mean model (MeanM), interquartile range (IQR), normalized IQR (IQRn), and coefficient of variation using a standard deviation (cvs).
Table 2. Summary statistics for 500 independent PSO inversions. Reported values include the best-fitting model (BM), median model (MedM), mean model (MeanM), interquartile range (IQR), normalized IQR (IQRn), and coefficient of variation using a standard deviation (cvs).
x c (m) y c (m) z c (m)A (m)B (m) α (deg) θ (deg) ρ (kg/m3)
BM179.9110.3−66.568.635.374.071.4−757.2
MedM189.7123.6−62.188.342.184.178.6−612.0
MeanM197.7124.8−60.889.143.989.486.0−610.9
IQR97.872.036.166.228.180.574.2201.5
IQRn0.490.590.660.740.760.990.980.33
cvs0.290.340.380.430.440.570.570.19
Table 3. Summary of 500 independent PSO inversions. Shown are the best-fitting model (BM), median model (MedM), mean model (MeanM), interquartile range (IQR), normalized interquartile range (IQRn), and coefficient of variation using a standard deviation (cvs).
Table 3. Summary of 500 independent PSO inversions. Shown are the best-fitting model (BM), median model (MedM), mean model (MeanM), interquartile range (IQR), normalized interquartile range (IQRn), and coefficient of variation using a standard deviation (cvs).
x c (m) y c (m) z c (m)A (m)B (m) α (deg) θ (deg) ρ (kg/m3)
BM ( 5 % noise)200.0150.04−54.95100.0529.644.98164.94−617.5
BM ( 15 % noise)199.9150.1−54.8100.630.244.8165.1−586.8
Table 4. Ellipsoid 1: inversion results compared with the true model (TM). Shown are the best-fitting model (BM), median model (MedM) with <10% prediction error, interquartile range (IQR), normalized interquartile range (IQRn), and parameter bounds (Min, Max).
Table 4. Ellipsoid 1: inversion results compared with the true model (TM). Shown are the best-fitting model (BM), median model (MedM) with <10% prediction error, interquartile range (IQR), normalized interquartile range (IQRn), and parameter bounds (Min, Max).
Ellipsoid 1 x c (m) y c (m) z c (m)A (m)B (m) α (deg) θ (deg) ρ (kg/m3)
TM200150−551003045165−600
BM201.1151.4−57.291.732.640.5164.3−564.0
MedM201.2113.3−57.588.741.879.584.0−571.7
IQR106.481.439.765.636.273.277.5199.4
IQRn0.530.730.690.740.860.920.920.35
Min10050−100201000−800
Max300200−2015080180180−400
Table 5. Ellipsoid 2: same structure as Table 4. Includes the TM, BM, MedM, IQR, IQRn, and parameter bounds within the accepted solution set.
Table 5. Ellipsoid 2: same structure as Table 4. Includes the TM, BM, MedM, IQR, IQRn, and parameter bounds within the accepted solution set.
Ellipsoid 2 x c (m) y c (m) z c (m)A (m)B (m) α (deg) θ (deg) ρ (kg/m3)
TM100200−40802015045800
BM104.1195.9−38.873.522.4148.654.7798.5
MedM110.8195−48.052.725.292.695.2799.1
IQR73.089.647.543.216.196.085.9198.2
IQRn0.660.460.990.820.641.030.900.25
Min30100−9020500600
Max200300−10100501801801000
Table 6. Inversion results for a standard-size water-filled cavity. TM: true model; BM: best-fitting model; MedM: median model; MeanM: mean model; IQR: interquartile range; IQRn: normalized IQR; cvs: coefficient of variation.
Table 6. Inversion results for a standard-size water-filled cavity. TM: true model; BM: best-fitting model; MedM: median model; MeanM: mean model; IQR: interquartile range; IQRn: normalized IQR; cvs: coefficient of variation.
x c (m) y c (m) z c (m)A (m)B (m) α (deg) θ (deg) ρ (kg/m3)
TM10050−50301050120−1400
BM99.450−49.728.310.343.3122.9−1400
MedM99.042.7−50.232.712.766.4109.5−1400
MeanM98.644.1−50.534.012.580.0100.4−1400
IQR45.533.120.419.77.296.990.20
IQRn0.460.770.410.600.571.460.820
cvs0.280.450.230.400.330.680.510
Min5010−7010500−1400
Max15080−306020180180−1400
Table 7. Narrow-cavity inversion results with constrained parameter space. Statistics as in Table 6.
Table 7. Narrow-cavity inversion results with constrained parameter space. Statistics as in Table 6.
x c (m) y c (m) z c (m)A (m)B (m) α (deg) θ (deg) ρ (kg/m3)
TM10050−3015550120−1400
BM98.748.8−27.115.24.944.5106.6−1400
MedM98.743.4−28.9154.990.795.5−1400
MeanM101.545−28.815591.592.6−1400
IQR44.934.43.62.01.890.090.50
IQRn0.450.790.120.130.370.990.950
cvs0.260.450.080.070.230.560.560
Min5010−3510200−1400
Max15080−252010180180−1400
Table 8. Inversion results for the real-world scenario. Shown are the best-fitting model (BM), along with the interquartile range (IQR), for each of the four ellipsoidal bodies.
Table 8. Inversion results for the real-world scenario. Shown are the best-fitting model (BM), along with the interquartile range (IQR), for each of the four ellipsoidal bodies.
x c (m) y c (m) z c (m)A (m)B (m) α (deg) θ (deg) ρ (kg/m3)
Ellipsoid 1
BM 6.4535 × 10 5 4.9302 × 10 6 −45.32249.4249.4080−313
IQR0.7116.92150.68204.44045.5512.7944.14
Ellipsoid 2
BM 6.4495 × 10 5 4.9305 × 10 6 −1.62194.73194.73175.1099.94−436.34
IQR3.051.320.460.869.2336.410.021.32
Ellipsoid 3
BM 6.4463 × 10 5 4.9308 × 10 6 75.90190.12164.7952.6094.32379
IQR0.330.240.050.121.7925.350.500.38
Ellipsoid 4
BM 6.4485 × 10 5 4.9302 × 10 6 −112.54346.53248.19179.9893.68404
IQR1.000.640.540.300.114.670.341.57
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Escudero González, R.; Fernández Muñiz, Z.; Bernardo Sánchez, A.; Fernández Martínez, J.L. Inverse Gravimetric Problem Solving via Prolate Ellipsoidal Parameterization and Particle Swarm Optimization. Mathematics 2025, 13, 2017. https://doi.org/10.3390/math13122017

AMA Style

Escudero González R, Fernández Muñiz Z, Bernardo Sánchez A, Fernández Martínez JL. Inverse Gravimetric Problem Solving via Prolate Ellipsoidal Parameterization and Particle Swarm Optimization. Mathematics. 2025; 13(12):2017. https://doi.org/10.3390/math13122017

Chicago/Turabian Style

Escudero González, Ruben, Zulima Fernández Muñiz, Antonio Bernardo Sánchez, and Juan Luis Fernández Martínez. 2025. "Inverse Gravimetric Problem Solving via Prolate Ellipsoidal Parameterization and Particle Swarm Optimization" Mathematics 13, no. 12: 2017. https://doi.org/10.3390/math13122017

APA Style

Escudero González, R., Fernández Muñiz, Z., Bernardo Sánchez, A., & Fernández Martínez, J. L. (2025). Inverse Gravimetric Problem Solving via Prolate Ellipsoidal Parameterization and Particle Swarm Optimization. Mathematics, 13(12), 2017. https://doi.org/10.3390/math13122017

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop