You are currently viewing a new version of our website. To view the old version click .
Sensors
  • Article
  • Open Access

30 July 2023

On the Development of a Digital Twin for Underwater UXO Detection Using Magnetometer-Based Data in Application for the Training Set Generation for Machine Learning Models

,
,
,
and
1
Department of Industrial Informatics, Silesian University of Technology, 44-100 Gliwice, Poland
2
SR Robotics Sp. z o.o., Lwowska 38, 40-389 Katowice, Poland
*
Author to whom correspondence should be addressed.
Current address: Department of Industrial Informatics, Silesian University of Technology, Akademicka 2A, 44-100 Gliwice, Poland.
This article belongs to the Special Issue Advanced Sensor Applications in Marine Objects Recognition

Abstract

Scanning underwater areas using magnetometers in search of unexploded ordnance is a difficult challenge, where machine learning methods can find a significant application. However, this requires the creation of a dataset enabling the training of prediction models. Such a task is difficult and costly due to the limited availability of relevant data. To address this challenge in the article, we propose the use of numerical modeling to solve this task. The conducted experiments allow us to conclude that it is possible to obtain high compliance with the numerical model based on the finite element method with the results of physical tests. Additionally, the paper discusses the methodology of simplifying the computational model, allowing for an almost three times reduction in the calculation time without affecting model quality. The article also presents and discusses the methodology for generating a dataset for the discrimination of UXO/non-UXO objects. According to that methodology, a dataset is generated and described in detail including assumptions on objects considered as UXO and nonUXO.

1. Introduction

In the world, and especially in the geographical area of Europe, the problem of munitions, chemical weapons, and shipwrecks with fuel in tanks dumped in water reservoirs is becoming an increasingly urgent problem to solve. Particularly after World War II, munitions and chemical weapons remaining after the war, which various countries wanted to get rid of in the cheapest possible way, were sunk en masse. It is estimated that in the Baltic Sea, there may be at least 40 thousand tons of the war remnants mentioned above [1]. Although two main areas for dumping weapons were selected here, the Gotland Deep and the Bornholm Deep, a significant part of the weapons was dumped in unidentified places. Currently, due to progressing corrosion, the threat of the unsealing of weapons and release of poisonous substances into the environment, and the intensive installation works carried out in maritime areas, the development of effective and efficient methods to identify dangerous objects is required.
The task of searching for dangerous objects in the aquatic environment, in particular unexploded ordnance (UXO), requires scanning the surveyed area with various types of sensors (magnetometers, sonars, video cameras, although in this article we focus only on magnetometers). In the next step, specialists analyze the collected data and mark places containing potentially dangerous objects. These sites are subject to further inspection or extraction work carried out by sapper divers. Their work is very expensive because of the limited number of such experts, as well as the limited time possible to spend under the water.
The scanning process is often conducted by a set of magnetometers (usually two or more) mounted on the wing pulled behind the ship or mounted on a formation of the AUVs scanning the interest area in parallel. An example of an AUV is a self-constructed vehicle shown in Figure 1.
Figure 1. Autonomous underwater vehicle developed for UXO detection.
In order to optimize the above process, one of the possibilities is to apply machine learning methods for the automatic identification of dangerous objects in particular UXO [2,3]. Considering that the scanned areas are usually calculated in a couple of square kilometers or more, automatization of data analysis should speed up the process. Even more, it is often possible to surpass the performance of human experts by more accurate classification of underwater objects by the use of machine learning models, as indicated in [4]. However, there is one potential weakness in the application of machine learning methods, which is the requirement for a large amount of good-quality training data. This issue is becoming even more important for the marine environment, where the collection of such data is associated with very high costs, as well as being labor-intensive and time-consuming. Additionally, the popular approaches for machine learning applications for UXO detection are based on electromagnetic induction (EMI), which is not applicable in underwater exploration, where the electromagnetic field is strongly attenuated. In that scenario, only magnetometers, which measure the change of earth’s magnetic field based on the magneto-static effect, are useful. Although, they are not as adept at correctly identifying UXO from non-UXO objects [5]. This is caused by several factors and additional requirements, e.g., if one wants to use historical data from real physical scans of various areas, then it is only possible for similar latitudes. A change in latitude causes a change in the magnetic inclination, and thus a different magnetic image is observed. In addition, a change in the orientation of the projectile, e.g., a change in spatial orientation angles, will result in a different magnetic image, or changing the angle of the path of the magnetometer over the projectile by a few degrees can cause a significantly different magnetic image. Thus, collecting the appropriate empirical data for training the AI models becomes physically very burdensome or even impossible.
In order to overcome the problem of the lack of magnetometer-based data, we propose building a full-featured digital twin of the UXO objects and their surroundings. A similar approach was previously attempted in [6], but the authors ignored remanent magnetization, which is particularly important within the water environment. Additionally, in [6], the authors compared a commonly used dipole model of UXO objects, which did not provide sufficiently accurate results. Thus, in our work, we propose a UXO model based on a digital twin that incorporates remanent magnetization using the finite element method. This approach more accurately simulates the shape of real ammunition and its real signals. The quality of the model is calibrated using real measurements. Obtaining a validated model allows us to conduct a series of simulations to generate full training datasets containing simulations of the passage of a group of probes equipped with magnetometers over potential UXO-based scans. However, this approach faces several issues:
  • Achieving the agreement between the synthetic model (digital twin) and real-live data—that is the match between the data recorded by the real magnetometers and the data recorded in the virtual environment.
  • Meshing problem considering the size of the 3D virtual environment that is a few meters large and the size of the UXO object that has walls a few millivoltmeters thick
In this article, we provide a detailed explanation of the process of developing such a digital twin and how we overcome the issues presented above. It must be noted that in the physical experiments conducted to validate the numerical model, we used a surrogate UXO object, which was a pipe with a length of 343 mm and 75 mm of the diameter corresponding to the typical ammunition. The term typical ammunition is defined as ammunition considered dangerous while conducting work at the bottom of water reservoirs. The pipe was used for safety reasons and allowed us to carry out the experiments without the supervision of sappers. Similarly, in numerical experiments, the UXO object was modeled with a pipe, allowing us to confirm and validate the model. When the numerical model is calibrated, we use it for the generation of a dataset for machine learning-based UXO/non-UXO classification. Therefore, in the virtual environment, when generating the training set, we model not only the pipe under consideration but also other pipes of different lengths and diameters that are too big or too small for UXO and other objects such as ferromagnetic sheets, rings, etc.
The novelty of this article is:
  • Introducing digital twin for UXO classification for magnetic data including remanent magnetization
  • Empirical verification of the digital twin using data from physical experiments obtained using magnetometer sensor
  • Introducing a means of computational complexity reduction without sacrificing the results obtained from the digital twin
  • Identifying important properties of the digital twin, which need to be implemented in order to achieve high comparability between physical data and the numerical model
  • Introducing a means of creating a dataset with multiple parallel virtual probes
The structure of this article is as follows: In Section 2, we provide the state-of-the-art in UXO identification and classification, including digital twin models. Then, in Section 3, we describe the mathematical model of the virtual environment, also introducing simplification of the model. In Section 4, experiments comparing the digital twin and the physical model are discussed. The results of the experiments are provided in Section 5. Section 6 describes the details of how we created the training set. Section 7 concludes the manuscript and summarizes the obtained results.

3. The Digital Twin Model

As mentioned in the introduction, one of the techniques used to detect dangerous objects is the study of the distortion of the earth’s magnetic field. This is a passive technique and requires the use of magnetic field sensors. As known, the earth is the source of the magnetostatic field. The distribution of the field on a global scale changes intensively (Figure 2a), but on a local scale it can be assumed that the earth’s magnetic field is homogeneous, and the field lines are parallel to each other (Figure 2b,c).
Figure 2. Earth magnetic field (a) global view, (b) local view of A detail (c) local view of A detail in classical perspective (earth surface horizontal); 1—earth; 2—air (or water); φ —magnetic field inclination.
If the field force lines are not parallel, it means that there are objects (natural or anthropogenic) disturbing this distribution. To distort the distribution of the magnetic field (according to the Formula (5)), there must be a change in the magnetic permeability of the medium (change in magnetic permeability μ ) or an additional magnetic field must occur (magnetization M). It follows that the technique of studying changes in the earth’s magnetic field allows the detection of ferromagnetic objects. Theoretically, diamagnetic or paramagnetic objects are also detectable. However, due to small differences in the value of relative magnetic permeability, the detection of paramagnetic and diamagnetic materials in the aspect analyzed in this article has no practical significance. An example of distortion of the magnetic field force lines by a ferromagnetic object is shown in Figure 3.
Figure 3. Distorted Earth magnetic field 1—earth; 2—the surroundings of the object (air, water); 3—magnetic object.
In order to create a digital twin of the UXO object, two elements are needed; these are a proper mathematical model of the system and an environment which will be used to apply this model.

3.1. Mathematical Formulations

In terms of the mathematical model, it was assumed that within the virtual environment, the Earth’s magnetic field is homogeneous with an inclination of 67°. Within this environment appears an isolated ferromagnetic object, in particular, a UXO object with known properties such as magnetic permeability. Initially, we assumed no additional magnetization of the twin object; however, during the experiments, the object was extended with the magnetization vector. More formally, the equations allowing the analysis of the static magnetic field in the absence of current are derived from Maxwell’s equations. From Gauss’s law for a magnetic field in the form (1) and Ampere’s law in the form (2) [25].
· B = 0
× B = 0
where:
B —magnetic flux density.
Supplemented by the equation describing the magnetism in materials in the form (3) and the constitutive Equation (4) [26],
B = B 0 + μ 0 M
B = μ 0 μ r H
where:
B 0 —outside magnetic flux density,
μ 0 —the magnetic permeability of vacuum,
M —magnetization vector,
μ r —the relative magnetic permeability.
Finally, the equation describing the magnetostatic field without the presence of current for linear and isotropic media takes the form (5) [26]:
× 1 μ B M = 0
where:
μ —magnetic permeability.

3.2. Modelling Environment

The research presented in this article was based on a computational model prepared in the Gmsh-Getdp environment [27]. The Gmsh-Getdp software is a universal, open, still-developing numerical modeling environment that allows the creation of three-dimensional models of many physical fields. In this case, this program was used to model the static magnetic field.
In terms of the scale of the virtual environment, we needed to take into account the size of the scanned object and the properties of the magnetic disturbance. As indicated in [28], the greatest problem of the Baltic Sea, in terms of numbers, is artillery ammunition. Over 40 times more artillery ammunition was sunk than other dangerous objects, for example, 400,000 pieces in the Bornholm Deep. Typical World War II artillery shells ranged in caliber from 75 mm to 150 mm. Considering that both UXO and non-UXO objects were to be simulated, the permissible diameter/caliber range was 20 mm—a non-UXO object (not dangerous) up to 300 mm, where the acceptable, largest UXO objects had a diameter of 150 mm, and objects over 150 mm were treated as non-UXO. The range of 5 mm to 15 mm was adopted as the wall thickness of the projectile according to [29,30].
Secondly, the volume of the simulated environment needed to be determined. In general, it is assumed that the shorter the distance between scanned object and the magnetometer, the greater the visibility of object details [15], and, as indicated in [31], when the distance is above 2.5× the length of the scanned object, it begins to resemble the image of a magnetic dipole. When determining the selection of the scanning height, the information of magnetometer manufacturers is also important, which indicates that the maximum detection distance of an object weighing 2 kg is 4 m [32]. On the other hand, due to the safety of the AUV, it is advisable to operate as high as possible above the bottom, which is why the developed virtual model assumes a range of 1 m to 4 m above the tested object.
In the case of a model reproducing the environment in which the probes equipped with magnetometers move over the object at a distance preventing their damage and covering the area of the probes’ passage to measure the entire magnetic field disturbance, we encounter the problem of the difference in scales between the size of the entire modeled environment and the size of the recognized object. This means, above all, a problem with the generation of the mesh used by the finite element method. Such a mesh must reflect the geometry of the object to the extent that it ensures the correct determination of the magnetic field in the vicinity of the object through which the probes pass. At the same time, however, as you move away from the object, taking into account the physics of the magnetic field, the mesh density should be reduced so that the calculations of the EM field distribution can be carried out in an acceptable time based on the available power of the computing cluster. This is possible due to the decrease in the disturbance of the magnetic field as a function of the square of the distance from the object (approximately).
Due to the typical, cone-shaped spread of the magnetic field disturbance, at a height of 1 m, a change in the magnetic field of 1 nT (the sensitivity of scalar cesium magnetometers is even pT) is detectable at a distance of approx. 8 m from the center of the projectile Figure 4a; at a height of 4 m, this distance is 6 m. For such assumptions, the computational model must cover an area of 8 m × 8 m.
Figure 4. Exemplary relative ( Δ B ) change of the magnetic field at the following heights: (a) 1 m; (b) 2 m; (c) 3 m; (d) 4 m over the ferromagnetic object—plot from simulation, external dimension of the plot area is 6 m × 6 m.
Such a large computing area in relation to the small wall dimensions of approx. 5 mm raises serious problems with correct model discretization. This manifested itself in two ways, either a very fine mesh, which guaranteed high accuracy of calculations at the expense of long calculation times, or in the other extreme case, a relatively coarse mesh (expanded in a classical way towards the outer borders of the calculation area), but then the calculation results at a great distance from the tested object were determined incorrectly. The compromise solution turned out to be an additional fineness of the mesh in the computational area of our interest Figure 5.
Figure 5. General view of the discretization mesh, the object in the center of the calculation area in red circle (almost invisible).
During the creation of meshes, we identified that proper results are obtained for mesh quality measures such as SICN (SICN—signed inverse condition number), Gamma (Gamma—inscribed radius/circumscribed radius), and SIGE (SIGE—signed inverse error on the gradient of FE solution) reaching values presented in Table 1. These values were used as a reference for all of the simulations.
Table 1. Reference measures of mesh quality for the tested object.

3.3. Model Simplification

As previously indicated, the model encountered a problem with proper meshing that resulted in a very high density of mesh nodes within the walls of the pipe. This resulted in a long computation time.
To solve this problem, it was decided to perform preliminary calculations for simplified models, replacing the thin-walled object (pipe) with a cylinder. Two simplified models were considered: one is a cylinder with relative magnetic permeability identical to the relative magnetic permeability of the exact model, and the other simplified model, which is a cylinder of magnetic permeability equivalent to the magnetic permeability of the exact model. The equivalent permeability was determined based on the following Equations (6) and (7). The μ r e —equivalent permittivity expresses volumetric equivalence.
μ r b V b = μ r e V r e
μ r e = μ r b V r b V r e
where:
μ r b —base relative permeability (permeability of original object),
μ r e —equivalent relative permeability,
V r b —volume of original object,
V r e —volume of the substitute object.
The use of a cylinder as a model made it possible to maintain the correctness of the discretization mesh in the object area and reduce the number of mesh nodes. Exemplary meshes for a pipe and a cylinder are shown in Figure 6a,b.
Figure 6. Discretization meshes (a) for a pipe (original object); (b) for a cylinder (substitute object).
During creation of the meshes, efforts were made to maintain similar measures of mesh quality for both models, mesh quality factors SICN, Gamma, SIGE only for objects are listed in Table 2, while mesh quality measures for the entire model along with the number of nodes are listed in Table 3. Due to the model simplification, we were able to reduce the computational complexity of the system. With a smaller number of nodes, there are fewer calculations required. The benefits of switching between a pipe and an equivalent cylinder are also shown in Table 3 in the last column.
Table 2. Real measures of mesh quality for the tested object.
Table 3. Measures of mesh quality, number of nodes, and calculation time for the entire model.

3.4. Study of the Impact of Mesh Density on the Accuracy of Calculations

In addition to simplifications of the model, another classic problem for numerical modeling is the correctness of discretization of the computational model. A typical experiment was performed to check the influence of discretization on the accuracy of calculations. Calculations were made for both geometries (tube and cylinder), for three different mesh densities: low (reduced) mesh density (LD), reference density—for which simulation calculations were performed in this article (RD) and high mesh density (HD). Changes in mesh density were made only in the object area, efforts were made to maintain similar mesh quality measures. The data describing the experiment are presented in Table 4.
Table 4. Measures of different mesh densities.
For the mesh with reduced density (LD) for the tube model, approx. four el per wall cross-section were assumed, for the reference mesh (RD), the number of elements on the wall cross-section was eight, and for the HD mesh, the number of elements on the wall cross-section was fifteen. For the cylinder model, for a mesh with a reduced number of elements, approx. nine elements on the diameter of the cylinder were assumed. For a mesh with a reference density for the cylinder model, approx. thirteen els on the diameter of the cylinder were assumed, and for the HD mesh, the number of elements on the diameter of the cylinder was twenty-two. To maintain comparable measures of mesh quality, the number of elements along the length of the object (both, tubes and cylinders) was also modified accordingly.
For three models differing in mesh density for each variant (tube, cylinder) (described above), a comparison of the obtained results was performed. The linear distribution of changes in magnetic induction ( Δ B ) in the directions N-S and E-W was adopted as a measure. Here, we simulated a path of a magnetic sensor passing 1 m above the object. The graphical comparison of the recorded signal, representing the influence of the grid quality is presented in the Figure 7a (N-S) and Figure 7b (E-W).
Figure 7. Δ B distribution for the N-S and E-W directions and different mesh density for the tube and cylinder model. (a) N-S direction and the tube model. (b) E-W direction and the cylinder model.
Additionally, we also measured the quality of the recorded signals using R 2 measure, which is defined as:
R 2 ( y , y ^ ) = 1 S S r e s S S t o t
where y is the reference signal and y ^ is the signal to be compared with the reference signal, and S S r e s = i y i y ^ i 2 is the sum of squares of residuals, and S S t o t = i y i y ¯ 2 is the total sum of squares that is proportional to the variance of the data. As a reference value, we used the HD signal recorded when passing over the object and compared it with other signals recorded for RD and LD mesh. A comparison is presented in Table 5.
Table 5. R 2 measures of different mesh densities.
As the comparison shows, the deviations obtained between the variants differing in mesh density do not exceed 0.946 and, in the case of RD, 0.96 . This proves that the grid selected for calculations (with reference density RD) is correct.

4. Digital Twin Validation Setup

The experiments consisted of three stages: the construction of a mathemat-ical-physical model, which has already been described in Section 3. Next, physical experiments were carried out involving the study of the UXO substitute with the use of magnetometers. The obtained results of the physical experiments were used to verify the quality of the mathematical model. In the next step, the mathematical model was improved in order to reduce the computational complexity, without losing its performance, as discussed in the previous section. Below, we present a description of each of these stages.

4.1. Empirical Experiments

As already indicated, the empirical experiments were conducted using a pipe 343 mm long and 75 mm in diameter. Because the water environment does not affect the magnetic field, we conducted the experiments out of the water, in an environment free of magnetic sources other than the natural Earth magnetic field. To ensure a space free of ferromagnetic objects other than the UXO substitute, the construction of the measuring station was made of wood without any nails or screws, every part was assembled with wooden nails. At the test stand, the magnetometer or magnetometers were mounted on a wooden frame above the test object—similar to the mission with the use of AUV vehicles. The only difference was that, in the tested environment, it was the UXO object that moved. It was moved on the rails under the magnetometer, simulating a passage over the UXO object by the AUV containing the magnetometer. This allowed us to keep the computer station, which collects the measurements, separate from the measuring station. The magnetometers were hanged on 1.4 m above the rails, and the length of the rails was 7 m. The magnetometer was located in the middle of the rails. A view of the measuring station is depicted in Figure 8.
Figure 8. The magnetometer measuring station.
In the experiments, we used the Geometrics MFAM LCS1005S magnetometer. The configuration of the measuring environment was as follows: orientation sensors for heading error cancellation, run mode: Low Noise and Two Independent Sensors, sampling frequency 1 kHz, notch filter 50 Hz. The measurement scheme is shown in Figure 9.
Figure 9. Measurement scheme.
For data collection, we used the LabView software package, and the obtained values were stored in CSV files. Next, the CSV files were loaded into a self-developed environment, which was developed using Python and popular libraries such as Pandas, Numpy, SciPy.

4.2. Digital Twin Experiments

The digital twin of the virtual environment was built on the basis of the Gmsh [27] and GetDP [33] packages. The first tool was used to generate a mesh of the objects and a mesh of the environment. The results are then stored as a file which is delivered as input to the GetDP, which is used for simulations. The simulation results, which are returned as a cloud of points coincided with the nodes of the mesh. Each node is described by a 3D vector with x, y, z components of the magnetic induction within the virtual environment.
In real applications, the magnetometers are often mounted on a wing pulled behind a ship, or a magnetometer is mounted on an AUV where an AUV formation (usually three or more) is conducting the measurements. In order to simulate such a magnetometer configuration, we used the point cloud and an interpolator to achieve measurements with a fixed sampling rate. In the experiments, we used Matlab’s scatteredInterpolant function with natural, linear parameters, independently for each magnetic field component. Next, a path of probing was set up, including the angle of sampling in relation to the N-S direction, the height of probing over the center of the ferromagnetic object, and the distance between particular magnetometers, assuming all sampling was conducted at the same height. Additionally, the model included the possibility of adding randomness to the probing. The randomness influences the distance between magnetometers, and height, which results from imprecise positioning within the water environment. In the conducted experiments the randomness was set to 0 because we wanted to obtain maximum agreement between the physical and mathematical model. The obtained probing route was delivered to the input of the interpolator, which returned sampled values of each magnetic field component.
It is important to note that the proposed approach is very efficient and, for given object orientation, allows for conducting multiple experiments with many probing paths.

4.3. Data Processing and Signal Comparison Process

The data recorded from numerical and empirical experiments were further processed using Python in order to compare the obtained results. The general scheme of data processing is presented in Figure 10.
Figure 10. Data processing scheme.
First, the data recorded during the physical experiments were filtered, because they were noisy. In order to reduce the effect of the noise, the signal was sampled with a relatively high frequency (1 kHz). This allowed for the use of a moving average filter with a window size of five samples. That window size was enough to remove noise. Next, the signal was resampled with a frequency equivalent to the frequency used in the numerical experiments.
Next, the data obtained with the numerical simulations and physical experiments needed to be aligned to allow for comparison. The problem of alignment resulted from differences in the length of the probing route (11 m for the digital twin, and 7 m for the physical experiments) and the location of the magnetometer within the physical experiment, where it was not exactly in the middle of the route. The standard approach of signal alignment can be obtained using cross-correlation [34]; however, in the real scenario, often multiple signals needed to be aligned simultaneously—one per magnetometer. In our experiments, we used another measure, that is, the mean square error between signals y and y ^ , where the value of n was under the subject of optimization.
n = a r g m i n j = 1 . . ( N M ) i = 1 M ( y j + i y ^ i ) 2
where:
  • N—the length of the signal recorded with a numerical model
  • M—the length of the signal recorded with the physical model
  • y = [ y 1 , y 2 , y M ] —the values of the signal recorded using physical model
  • y ^ = [ y ^ 1 , y ^ 2 , y ^ M ] —the values of the signal recorded using digital twin
  • n —the number of samples the signal y need to be moved forward or backward to align signal y ^
After finding n , the signals were trimmed according to the shorter one. After the alignment of the signals, we calculated several performance measures, which allowed us to measure how well the numerical twin fits the real data. In the experiments, we used R 2 measure, which was already described, as well as the following:
  • Root Mean Square Error (RMSE)—calculated as: R M S E ( y , y ^ ) = 1 N i = 1 N y i y ^ i 2
  • Mean Absolute Error (MAE)—calculated as: M A E ( y , y ^ ) = 1 N i = 1 N y i y ^ i
  • Mean Error (ME)—calculated as: M E ( y , y ^ ) = 1 N i = 1 N y i y ^ i
  • Peak signal-to-noise ratio (PSNR) - calculated as: P S N R ( y , y ^ ) = 20 · log 10 max ( y ) min ( y ) R M S E ( y , y ^ )
Where in the case of the PSNR we adapted this measure from image processing, it now identifies the ratio between the amplitude of the signal ( max ( y ) min ( y ) ) to the level of noise that is the RMSE between the real and numerical signal expressed in logarithmic quantity using dB scale. Commonly, in image processing for compressed images the value of PSNR should be above 20 dB [35]. All these error measures were calculated assuming that the signal of the physical experiments is denoted as y and the one from numerical experiments is denoted as y ^ .

5. Evaluation of the Twin Validation Process

The first group of experiments was designed to achieve a full match between the digital twin and the physical experiments. First, we collected the data from the physical objects. For that purpose, the UXO object was scanned in different orientations and for different directions of scanning the object using AUV. In particular, we scanned in the following conditions:
  • UXO orientation—north-south, scanning route orientation north-south
  • UXO orientation—north-south, scanning route orientation east-west
  • UXO orientation—east-west, scanning route orientation east-west
  • UXO orientation—east-west, scanning route orientation north-south
  • UXO orientation—northeast-southwest, scanning route orientation east-west
  • UXO orientation—northeast-southwest, scanning route orientation north-south
  • UXO orientation—perpendicularly, scanning route orientation north-south
  • UXO orientation—perpendicularly, scanning route orientation east-west
For the main performance measures of the digital twin we used the R 2 and PSNR because both these measures refer to the signal and the level of noise, but the other measures discussed in the previous section are also provided in Table 6.
Table 6. Results comparing the physical system with the digital twin.
In the table, in almost all cases, the obtained performances of R 2 are on the level of 0.98 or 0.95, which indicates an almost perfect match. Similarly, the PSNR is in almost all cases above 20, and only in one case of N-S, E-W, both measures drop to 0.87 and 19 dB, respectively. This drop in quality results from the fact that when scanning an object perpendicularly to its longer, main axis, small changes in the angle result in significant changes in the recorded signal. For easier analysis of the results, we added a column denoted max min , which indicates the amplitude of the signal, that is the difference between the maximum of the recorded physical signal and the minimum value of that signal. These results also indicate that the error rates of RMSE, ME and MAE are of one or two orders of magnitude smaller than the amplitude of the signal. All of the results indicate an almost perfect match. The quality of the match between the numerical model and the physical one is visualized in Figure 11, where both signals are plotted.
Figure 11. Visual representation of the match between the digital twin and the real magnetometer data. (a) N-S, N-S; (b) E-W, N-S; (c) NE-SW, N-S; (d) Perpendicularly N-S; (e) E-W E-W; (f) N-S E-W; (g) NE-SW, E-W; (h) Perpendicularly, E-W.
The only exception, that is R 2 = 0.8724 , was obtained when UXO orientation was N-S and the scanning route was in E-W direction. This is also plotted in Figure 11f, where it can be observed that the shape is almost right, except for the magnitude of the signal. This can be explained by a small change in the orientation of the UXO object or E-W orientation that changes the active length of the object as shown in Figure 12.
Figure 12. The source of the disagreement between the measurements and the model.
Therefore, it can be concluded, that the digital twin matches the real physical signal very well.
The same calculations were also repeated for the cylinder substitute, which allows for a significant reduction of the calculation time. In that case, we obtained similar results as presented in Table 7. Here, a small, insignificant increase in all error rates can be observed R M S E p i p e R M S E c y l i n d e r = 3.0 × 10 10 ; therefore, we can conclude that there are no differences between both variants. This was achieved by treating the pipe and the cylinder as elements of a magnetic circuit whose basic feature used in detection is anisotropic (depending on orientation) reluctance. This gives the possibility of significantly simplifying the geometry of the object (replacing a hollow pipe with a cylinder), without a significant impact on the measurement obtained during the passage of the probes. Here, although the volume of the object changes, by keeping the reluctance fixed, we obtained identical results, and the reluctance is adapted by appropriately modifying μ r . Given that only the object’s anisotropic reluctance matters, the mesh parameters also have no significant effect on the simulated reading obtained, although the small difference in both RMSE may be caused by small differences in the obtained mesh.
Table 7. Comparison of error rates between the pipe and a cylinder substitute.
Therefore, for the final training set creation, the cylinder substitute was used.

6. The Training Set Creation Procedure

The results presented above allowed us to conclude that the digital twin can be used for creating a training set for the machine learning purpose. Here, some additional benefits of the tandem of GMesh and GetDP appeared. These two tools are controlled by a script; therefore, it was very easy to automatize the process of generalization of the digital twin to produce many objects of different orientations. In particular, the great advantage of this solution is full control based on scripts over all stages of building the digital twin. In a single step of data generation, the following parameters were introduced to the model in the Gmsh/GetDP environment:
  • strength and orientation (inclination) of the Earth’s magnetic field for the area for which experimental work was carried out (considered in the boundary conditions of the model),
  • dimensions and orientation of the UXO and potentially other objects,
  • material properties of this object (magnetic permeability, magnetization),
  • mesh density.
Figure 13 shows the scheme of generation of the training set. The process consists of two loops. In the main loop, a random generator provides orientations and sizes of the modeled objects (in the range determined by the input parameters of the process). On this basis and the material parameters given at the input of the process, the Gmsh/GetDP model calculates the distribution of magnetic induction represented by a cloud of points. At this point, the inner subloop begins. The subgenerator randomizes the parameters of the probe route and, on this basis, the interpolator implemented in MATLAB simulates the magnetic field measurements during the passage of a group of probes. The scope of route randomization is also described by a set of input parameters of the generation process. After each flow simulation, another case is added to the training set.
Figure 13. Scheme of the training set generation process.
For the final training set creation, most of the machine learning models need positive and negative cases (the so-called supervised learning). The final training set was obtained using a set of objects which are considered positive cases—UXO objects, and negative cases—non-UXO objects. The positive cases included substitute cylinders of predefined properties—the relation between the diameter and length of the cylinder, in particular, the length = four up to six diameters (that is the typical relationship between the length of the munition and its caliber). When the pipe has other properties it is considered a non-UXO object. In particular, as non-UXO objects, we considered munition that has a caliber that is too small, less them 70mm, because it does not cause significant danger for the works conducted on the bottom of the water reservoirs, and a caliber that is too large, >200 mm, and objects that are too long, which were considered as simple long pipes—not a munition.
Additionally, sheets of metal were also considered as non-UXO objects. They had a thickness of 10 mm to 30 mm and different lengths and widths. The length and width were selected to have a similar mass to the UXO objects. The constructed model also allows the addition of two sources of magnetization of the objects. The first source corresponds to the remanence magnetization resulting from the manufacturing or storage of the objects, and it can have any direction of magnetization. The second source of magnetization depends on the time the object stayed at the bottom of the water reservoir. This magnetization results from the fact that many munitions were sunk right after the second world war; therefore, they were magnetized by the Earth’s magnetic field. In total the following objects were modeled:
  • UXO—Positive class:
    -
    cylinder with: diameter in range 75–200 mm, projectile length 350–650 mm
  • non-UXO—negative class:
    -
    Too-small projectile to be dangerous: diameter in range 45–70 mm, projectile length 150–300 mm
    -
    Too-big projectile to be considered as UXO: diameter in range 250–400 mm, pipe length 750–1200 mm
    -
    a low height cylinder—(ex. simulating a manhole cover), diameter length 110–400 mm, thickness 20 mm
    -
    rectangular prism of length in range 400–1000 mm, width in range 50–200 mm and thickness in range 20–500 mm
    -
    rectangular cube of length in range 900–2000 mm, width 50–200 mm and thickness 50–200 mm
In all cases, the magnetization was selected randomly in the range 0–0.3T, and it was assumed that the direction of magnetization is always consistent with the longest dimension of the object. This allowed us to run in total around 1600 simulations of these objects (digital twins). Then, for each digital twin, 30 random scanning routes were generated using the Matlab subroutine, where it was assumed that the height of the sensor’s path above the object is determined randomly within a range of 1 m to 3 m. The height of the probe is determined once for a single scan. Additionally, as indicated in the previous section, we added an element of randomness to the location of the sensor by adding a noise with a maximum amplitude of 10 cm. The direction of the scanning route was selected at random in the range 0–180 deg. This limitation results from the fact that, in the range 180–360 deg., the recorded signals are identical, and only flipped. Additionally, in the conducted simulations, it was assumed that a single scanning route consisted of a formation of nine virtual magnetometers, parallel to each other, as shown in Figure 14, where the fifth magnetometer always passes directly over the center of the object. The distance between the paths is 0.5 m. These nine parallel paths allow us to train and validate the prediction model in several scenarios. For example, by switching on and off particular routes, we can simulate scenarios when a particular magnetometer is scanning on the side of the UXO object instead of the center, or to identify the effect of the distance between virtual magnetometers on the prediction quality. In total, it resulted in around 48,000 training samples each consisting of nine parallel sensors recording the data. Therefore, the recorded data constitute a 4d tensor of 48,000 samples, nine probes, and 101 values of x, y, and z coordinates of the magnetic field.
Figure 14. The parallel scanning routes. When building the model it can be assumed that only three routes were available with a different relation to the center of the object. Solid lines represent such a case, while a dashed line represents routes that were off during preprocessing of the final training set for the model.
The obtained dataset allows for the training of machine learning models in order to conduct UXO/non-UXO object classification. Although, the constructed dataset has several limitations. First, the dataset was obtained for particular geographical location determined by magnetic inclination and for magnetic field amplitude; in particular, these were the Earth’s magnetic induction B e = 49.85 × 10 6 [ T ] , and inclination 67 . These values correspond to the typical conditions in central Europe. For other areas, it is required to regenerate the data and retrain the machine learning model. Additionally, the model was tuned to conduct analysis, assuming the path of the probes is between 1 m and 3 m above the object, that is, the typical distance of the AUV from the bottom of the body of water. A limitation of this dataset is the set of non-UXO objects, but new ones can be easily added. When developing the digital twins of non-UXO objects, we tried to determine objects which surround possible shapes of the UXO object, so that the machine learning model could generalize acquired knowledge and reduce false-positive alarms. Additional limitations are the parameters that were used to generate UXO and non-UXO objects. For the identification of other objects, a new set of parameters is needed, and, again, the dataset needs to be regenerated and the model retrained.

7. Conclusions

In the manuscript, a process of creating a digital twin of the environment containing UXO and non-UXO objects was presented. The virtual environment was then tuned in terms of computational complexity and used to virtually scan the objects with virtual magnetometers. Such an environment has several advantages, it allows for easy collection of the training data for building machine learning models. It is safe, and does not require the supervision of the sapper, and allows for creating a massive training set in a range of several days. In our case, the calculations for creating the training set consisting of 46,000 samples took three days on a single two-processor machine (2xAMD EPIC processor and 512GB RAM), whereas, collecting the data for the physical experiments to collect eight scans took a single day.
In the manuscript, we have also shown how to simplify the model to speed up the calculations, without sacrificing the quality of the obtained results. The proposed solution significantly reduces the number of nodes of the mesh, which resulted in reducing the calculation time by 1/3. In general, we have shown that the approach of building virtual environments for generating data for training machine learning models is not only possible for vision problems, but can be also applied to other environments; however, careful tuning of the model is required to achieve results comparable to the one recorded with physical sensors. An example of such an environment is detecting the UXO objects in an underwater environment using magnetometer sensors. In the manuscript, we omit the problem of creating a machine learning model as it is the subject of another article and is out of the scope of this article.

Author Contributions

Conceptualization, M.B. and S.G.; methodology, M.B. and S.G. and R.P.; software, R.P. and M.B. and P.Ś. and S.G.; validation, R.P. and P.S. and M.B.; formal analysis, S.G. and T.W.; investigation, R.P. and M.B. and P.Ś. and S.G.; resources, M.B. and P.S.; data curation, R.P.; writing—original draft preparation, R.P. and M.B. and P.Ś. and S.G.; writing—review and editing, T.W.; visualization, R.P. and P.Ś.; supervision, M.B. and T.W.; funding acquisition, M.B. and P.Ś. All authors have read and agreed to the published version of the manuscript.

Funding

This research was partially funded by the Silesian University of Technology proj. no. BK-221/RM4/2023; 11/040/BK_23/0029 and by the Polish National Centre for Research and Development (NCBR) under project number POIR.01.01.01-00-1088/20.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The generated dataset is available at: http://bit.ly/uxodataset.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Przeciwdziałanie Zagrożeniom Wynikającym z Zalegania Materiałów Niebezpiecznych na dnie Morza Bałtyckiego; Technical Report 192/2019/P/19/068/LGD; Najwyższa Izba Kontroli: Warszawa, Poland, 2020.
  2. Núñez-Nieto, X.; Solla, M.; Gómez-Pérez, P.; Lorenzo, H. GPR signal characterization for automated landmine and UXO detection based on machine learning techniques. Remote Sens. 2014, 6, 9729–9748. [Google Scholar] [CrossRef]
  3. Heagy, L.J.; Oldenburg, D.W.; Pérez, F.; Beran, L. Machine learning for the classification of unexploded ordnance (UXO) from electromagnetic data. In Proceedings of the SEG International Exposition and Annual Meeting, Virtual, 2–6 October 2020; OnePetro: Richardson, TX, USA, 2020. [Google Scholar]
  4. Deschaine, L.M.; Hoover, R.A.; Skibinski, J.N.; Patel, J.J.; Francone, F.; Nordin, P.; Ades, M. Using Machine Learning to Complement and Extend the Accuracy of UXO Discrimination Beyond the Best Reported Results of the Jefferson Proving Ground Technology Demonstration. Simul. Ser. 2002, 34, 46–52. [Google Scholar]
  5. Beran, L.; Zelt, B.; Billings, S. Detecting and classifying UXO. J. ERW Mine Action 2013, 17, 57–63. [Google Scholar]
  6. Furey, J.S.; Butler, D.K. The physical dipole model and polarizability for magnetostatic object parameter estimation. J. Environ. Eng. Geophys. 2011, 16, 49–60. [Google Scholar] [CrossRef]
  7. Wang, H.; Chen, S.; Zhang, S.; Yuan, Z.; Zhang, H.; Fang, D.; Zhu, J. A high-performance portable transient electro-magnetic sensor for unexploded ordnance detection. Sensors 2017, 17, 2651. [Google Scholar] [CrossRef] [PubMed]
  8. Gavazzi, B.; Le Maire, P.; de Lépinay, J.M.; Calou, P.; Munschy, M. Fluxgate three-component magnetometers for cost-effective ground, UAV and airborne magnetic surveys for industrial and academic geoscience applications and comparison with current industrial standards through case studies. Geomech. Energy Environ. 2019, 20, 100117. [Google Scholar] [CrossRef]
  9. Fassbinder, J.W. Magnetometry for archaeology. In Encyclopedia of Geoarchaeology; Springer Science + Business Media: Dordrecht, The Netherlands, 2017; pp. 499–514. [Google Scholar]
  10. Ding, Z.; Yuan, J.; Long, X. Design and optimization of a high-sensitivity radio-optical cesium magnetometer. Opt. Laser Technol. 2019, 119, 105573. [Google Scholar] [CrossRef]
  11. Goodson, R.A.; Morgan, J.C.; Butler, D.K.; Fields, M.P.; Bennett, H.H.J., Jr.; Demoss, T. Unexploded Ordnance (UXO) Data Analysis System (DAS); US Army Engineer Research and Development Center, Environmental Laboratory: Vicksburg, MS, USA, 2009. [Google Scholar]
  12. Churchill, K.M.; Link, C.; Youmans, C.C. A comparison of the finite-element method and analytical method for modeling unexploded ordnance using magnetometry. IEEE Trans. Geosci. Remote Sens. 2011, 50, 2720–2732. [Google Scholar] [CrossRef]
  13. Shubitidze, F.; Fernández, J.; Barrowes, B.; O’Neill, K.; Shamatava, I.; Bijamov, A. Comparison of the physically complete model with a simple dipole model for UXO detection and discrimination. In Proceedings of the Detection and Sensing of Mines, Explosive Objects, and Obscured Targets Xv. SPIE, Orlando, FL, USA, 5–9 April 2010; Volume 7664, pp. 81–92. [Google Scholar]
  14. Pasion, L.R.; Billings, S.D. Dipole Models for UXO Discrimination at Live Sites; Technical Report; Black Tusk Geophysics: Vancouver, BC, Canada, 2017. [Google Scholar]
  15. Butler, D.K.; Simms, J.E.; Furey, J.S.; Bennett, H.H. Review of magnetic modeling for UXO and applications to small items and close distances. J. Environ. Eng. Geophys. 2012, 17, 53–73. [Google Scholar] [CrossRef]
  16. Schultze, V.; Schillig, B.; IJsselsteijn, R.; Scholtes, T.; Woetzel, S.; Stolz, R. An optically pumped magnetometer working in the light-shift dispersed M z mode. Sensors 2017, 17, 561. [Google Scholar] [CrossRef]
  17. Butler, D.K.; Pasion, L.; Billings, S.D.; Oldenburg, D.; Yule, D.E. Enhanced discrimination capability for UXO geophysical surveys. In Proceedings of the Detection and Remediation Technologies for Mines and Minelike Targets VIII. SPIE, Orlando, FL, USA, 21–25 April 2003; Volume 5089, pp. 958–969. [Google Scholar]
  18. Zuo, B.; Wang, L.; Chen, W. Full tensor eigenvector analysis on air-borne magnetic gradiometer data for the detection of dipole-like magnetic sources. Sensors 2017, 17, 1976. [Google Scholar] [CrossRef] [PubMed]
  19. Wang, L.; Zhang, S.; Chen, S.; Luo, C. Fast Localization and Characterization of Underground Targets with a towed Transient Electromagnetic Array System. Sensors 2022, 22, 1648. [Google Scholar] [CrossRef]
  20. Lam, L.H.T.; Do, D.T.; Diep, D.T.N.; Nguyet, D.L.N.; Truong, Q.D.; Tri, T.T.; Thanh, H.N.; Le, N.Q.K. Molecular subtype classification of low-grade gliomas using magnetic resonance imaging-based radiomics and machine learning. NMR Biomed. 2022, 35, e4792. [Google Scholar] [CrossRef] [PubMed]
  21. Hart, S.J.; Shaffer, R.E.; Rose-Pehrsson, S.L.; McDonald, J.R. Using physics-based modeler outputs to train probabilistic neural networks for unexploded ordnance (UXO) classification in magnetometry surveys. IEEE Trans. Geosci. Remote Sens. 2001, 39, 797–804. [Google Scholar] [CrossRef]
  22. Billings, S. Data Modeling, Feature Extraction, and Classification of Magnetic and EMI Data, ESTCP Discrimination Study, Camp Sibert, AL; Demonstration Report; Technical Report; Sky Research: Ashland, OR, USA, 2008. [Google Scholar]
  23. Bijamov, A.; Shubitidze, F.; Fernandez, J.P.; Shamatava, I.; Barrowes, B.E.; O’Neill, K. Comparison of supervised and unsupervised machine learning techniques for UXO classification using EMI data. In Proceedings of the Detection and Sensing of Mines, Explosive Objects, and Obscured Targets XVI. SPIE, Orlando, FL, USA, 25–29 April 2011; Volume 8017, pp. 56–66. [Google Scholar]
  24. Bray, M.P.; Link, C.A. Learning machine identification of ferromagnetic UXO using magnetometry. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2014, 8, 835–844. [Google Scholar] [CrossRef]
  25. Nunes, A.S.; Dular, P.; Chadebec, O.; Kuo-Peng, P. Subproblems Applied to a 3-D Magnetostatic Facet FEM Formulation. IEEE Trans. Magn. 2018, 54, 1–9. [Google Scholar] [CrossRef]
  26. Magnetostatics Theory. 2019. Available online: https://www.comsol.com/multiphysics/magnetostatics-theory (accessed on 24 July 2023).
  27. Geuzaine, C.; Remacle, J.F. Gmsh: A 3-D finite element mesh generator with built-in pre-and post-processing facilities. Int. J. Numer. Methods Eng. 2009, 11, 1309–1331. [Google Scholar] [CrossRef]
  28. Kaffka, A.V. Sea-Dumped Chemical Weapons: Aspects, Problems and Solutions; Springer Science & Business Media: Berlin, Germany, 1996; Volume 7. [Google Scholar]
  29. A Ministry of Suppl Publication Chief Inspector of Armaments. Ammunition Bulletine No 51. 1946. Available online: https://stephentaylorhistorian.files.wordpress.com/2020/02/ammunition-bulletin-no-51.pdf (accessed on 24 July 2023).
  30. Gov, U. German Explosive Ordnance Volume 2. 1946. Available online: https://stephentaylorhistorian.files.wordpress.com/2020/09/op-1666-german-explosive-ordnance-volume-2.pdf (accessed on 24 July 2023).
  31. Han, S.; Rong, X.; Bian, L.; Zhong, M.; Zhang, L. The application of magnetometers and electromagnetic induction sensors in UXO detection. In Proceedings of the 2nd International Conference on Biofilms (ChinaBiofilms 2019), Guangzhou, China, 9–13 October 2019; Volume 131, p. 01045. [Google Scholar]
  32. Geometrics. G 882 Cesium Marine Magnetometer. 2005. Available online: https://geometrics.com/wp-content/uploads/2018/10/G-882Man_RevF.pdf (accessed on 24 July 2023).
  33. Geuzaine, C. GetDP: A general finite-element solver for the de Rham complex. Proc. Appl. Math. Mech. 2007, 7, 1010603–1010604. [Google Scholar] [CrossRef]
  34. Bourke, P. Cross Correlation. Available online: http://paulbourke.net/miscellaneous/correlate/ (accessed on 24 July 2023).
  35. Thomos, N.; Boulgouris, N.V.; Strintzis, M.G. Optimized transmission of JPEG2000 streams over wireless channels. IEEE Trans. Image Process. 2005, 15, 54–67. [Google Scholar] [CrossRef] [PubMed]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.