Next Article in Journal
Efficiency–Accuracy Trade-Off in Light Field Estimation with Cost Volume Construction and Aggregation
Previous Article in Journal
RSDNet: A New Multiscale Rail Surface Defect Detection Model
Previous Article in Special Issue
Coded Excitation for Ultrasonic Testing: A Review
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On the Generalizability of Time-of-Flight Convolutional Neural Networks for Noninvasive Acoustic Measurements

by
Abhishek Saini
*,
John James Greenhall
,
Eric Sean Davis
and
Cristian Pantea
Los Alamos National Laboratory, Los Alamos, NM 87544, USA
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(11), 3580; https://doi.org/10.3390/s24113580
Submission received: 8 May 2024 / Revised: 29 May 2024 / Accepted: 31 May 2024 / Published: 1 June 2024
(This article belongs to the Special Issue Ultrasound Imaging and Sensing for Nondestructive Testing)

Abstract

:
Bulk wave acoustic time-of-flight (ToF) measurements in pipes and closed containers can be hindered by guided waves with similar arrival times propagating in the container wall, especially when a low excitation frequency is used to mitigate sound attenuation from the material. Convolutional neural networks (CNNs) have emerged as a new paradigm for obtaining accurate ToF in non-destructive evaluation (NDE) and have been demonstrated for such complicated conditions. However, the generalizability of ToF-CNNs has not been investigated. In this work, we analyze the generalizability of the ToF-CNN for broader applications, given limited training data. We first investigate the CNN performance with respect to training dataset size and different training data and test data parameters (container dimensions and material properties). Furthermore, we perform a series of tests to understand the distribution of data parameters that need to be incorporated in training for enhanced model generalizability. This is investigated by training the model on a set of small- and large-container datasets regardless of the test data. We observe that the quantity of data partitioned for training must be of a good representation of the entire sets and sufficient to span through the input space. The result of the network also shows that the learning model with the training data on small containers delivers a sufficiently stable result on different feature interactions compared to the learning model with the training data on large containers. To check the robustness of the model, we tested the trained model to predict the ToF of different sound speed mediums, which shows excellent accuracy. Furthermore, to mimic real experimental scenarios, data are augmented by adding noise. We envision that the proposed approach will extend the applications of CNNs for ToF prediction in a broader range.

1. Introduction

Acoustic time-of-flight (ToF) prediction is an essential tool in non-destructive evaluation (NDE) techniques for a wide range of applications, including noninvasive measurement for in situ process control [1,2,3], biohazard monitoring [4], chemical reaction monitoring [5], structure monitoring [6,7,8] and identification or classification of materials inside sealed containers [9,10]. The ToF refers to the time required by acoustic waves to travel between source and receiver through a given medium. Typically, the ToF-based techniques are the first choice for inspection and characterization because they are sensitive to any change in acoustic speed (i.e., to material), they are relatively simple to interpret, and they enable rapid measurements. One popular ToF technique is travel time tomography, which reconstructs the sound speed profile of the medium [11] that can then be used for correlating physical properties of interest, such as temperature, material phase, species concentration, etc. In many NDE applications, the materials are enclosed in containers (in this work “containers” refer to cylindrical shape containers), and the material is attenuative.
In closed containers, “bulk waves” propagating through the enclosed material can interfere with the guided waves propagating around the container wall. These guided waves inhibit identifying and measuring the ToF of the bulk waves. When using a broad-band (high frequency and short burst duration) signal, time-gating is used to identify bulk and guided waves. However, in attenuating materials, lower excitation frequencies must be used to mitigate attenuation. This results in longer burst durations and, thus, more overlap between bulk and guided wave arrivals. Several other techniques were proposed for detecting the bulk waves through cylindrical containers in the presence of guided waves [1]. Baseline subtraction was used to separate the bulk and guided waves by first measuring the guided waves from an empty container while keeping a thin fluid residue on the container wall and then subtracting the baseline signal from the combined wave signal (bulk and guided) obtained from a fluid-filled container [1]. However, this is not feasible in many applications where operators do not have access to the empty container to collect baseline measurements. Alternatively, a broadband linear chirp excitation technique was implemented to exploit the dispersive behavior of the guided waves [9]. The frequency-dependent characteristic of the guided waves distorts and disperses the guided waves, whereas the bulk waves remain undistorted. The undistorted bulk waves were then identified using cross-correlation. However, this typically requires high frequencies and bandwidths (>1 MHz), which makes it infeasible for attenuating materials or large containers. In recent years, data-driven techniques, such as machine learning (ML)-based models, especially convolutional neural networks (CNNs), have shown promising results in acoustic imaging and signal processing [12,13,14,15,16,17,18,19,20,21,22]. CNNs are distinguished from other neural networks by their superior performance with image, speech, or audio signal inputs. CNNs can solve complex problems by learning the descriptive functional behavior between input and output, which can be challenging to solve using conventional techniques. They carry this out by extracting features through multiple layers of convolution, nonlinear activation, and pooling, followed by linear classification or regression [23].
A ToF-CNN was proposed for measuring bulk wave ToF through the material enclosed in cylindrical containers and validated for experimental data [10]. The problem of estimating ToF was split into two steps. In the first step, a small time-windowed segment of the acoustic measurement was passed to the CNN, which would determine the likelihood that the time window contained a bulk wave arrival. Next, after evaluating each windowed region of an acoustic measurement, the ToF was measured as the time for which the arrival likelihood was highest. Splitting the ToF measurement into two steps provides three main advantages: (1) it reduces the CNN complexity by reframing a regression problem (predicting ToF) as a binary classification problem (predicting whether a time window contains a bulk wave arrival), (2) using small time windows removes bias from the dimensions and materials of the training data, and (3) dividing each acoustic measurement into small time windows increases the amount of training data. However, the demonstration of the ToF-CNN was limited to nominally identical containers. In practice, it is likely that an operator will encounter containers that differ from those used to train the ToF-CNN, in terms of container size and internal material. Thus, there is a need to analyze the generalizability of the ToF-CNN method with respect to training/testing set parameters such as container dimensions and internal material properties for a broader application. In general, the performance of ML models degrades if (i) the dataset size is not large enough (overfitting), (ii) the features in the dataset do not contain enough information to explain the outcome, and (iii) the ML model is not sufficiently complex to represent the relationship between the features and the outcome (underfitting) [24,25,26,27,28,29]. Collecting sufficient labeled data to overcome these issues in NDE applications presents several challenges due to unknown properties inside the structure, a lack of realistic training cases due to rare conditions, as well as challenges in obtaining real samples for experiments. Furthermore, in high-dimensional data space, the inadequate training samples may span in a small subspace and provide weak constraints on the possible decision boundaries learned by the network, which can lead to poor performance [30,31,32]. Therefore, it is essential to understand the influence of training data on ML model performance for scientific as well as practical benefits.
In the field, an NDE method is useful if it can work on structures with a broad range of parameters that the method likely had not encountered during training. The ability to perform well on new data is known as “generalizability”. In most generalizability studies, the dataset is fixed, and model hyperparameters are tuned to maximize the generalizability on some randomly selected subset of the training data. For the case of developing the ToF-CNN as an NDE technique, the size of the training dataset is not fixed, i.e., we can always collect additional measurements, but we need a method to determine how many data samples are sufficient. Additionally, traditional generalizability studies assume that test samples are drawn from the same distribution as the training samples. In practice, it is challenging to know what the distribution of dimensions and material properties will be encountered in future NDE measurements. Thus, we need a way to determine the range of parameters over which the CNN is expected to perform with a specified level of accuracy. We investigate the model performance by training the CNN on a fraction of data with the smallest diameters, and then testing the CNN using the remaining data samples. We then repeat this process, training on data from the largest containers. This exercise enables quantifying how the expected error level is affected by the amount of parameter separation between the training and testing datasets. In practical terms, it enables an operator to know the range of container sizes that could be measured within a given level of expected accuracy.
Thus, the novel contributions of this work are to (1) develop a methodology to assess how generalizability is affected by training dataset size and differences in training/testing dataset parameter distribution, and (2) quantify the ToF-CNN accuracy and robustness to demonstrate its potential for a broad range of NDE applications. The remainder of the manuscript is organized as follows: Section 2 presents the methodology, including data generation, data preprocessing and augmentation. Results and discussions are illustrated in Section 3, followed by conclusions in Section 4.

2. Methodology

To assess the generalizability of the ToF-CNN, we measure its performance in situations where the training and testing containers are not identical and even follow different distributions, i.e., for different container diameters, thicknesses, and internal material sound speeds. The model performance was evaluated by adjusting the training dataset size and distribution and measuring the resulting change in test accuracy. We used finite element simulations to generate synthetic datasets that closely match experimental data. Additionally, data augmentation is incorporated for generating further labeled datasets by adding noise to the data to expand database diversity and better represent experimental data. Data augmentation enlarges the number of training samples, which can improve generalization.

2.1. Simulated Data Using Finite Element Method

We simulate the acoustic bursts through a 2D cross-section of the cylindrical container using the finite element method (FEM) software COMSOL 6.1. A fluid-filled axisymmetric aluminum 6063 containers with varying dimensions (inner diameter and thickness) is modeled, as displayed in Figure 1. A symmetric boundary condition is applied, and the half-space is modeled to reduce computational complexity. We attached five receivers opposing one transmitter (Lead Zirconate Titanate, PZT-5J) with a cross-section of 7 mm diameter and 0.5 mm thickness to the outer circumference of the container. We note that, for the half-space simulation, we only simulate three of the receivers (upper receivers in Figure 1), where the remaining two receivers (lower receivers not shown in Figure 1) are assumed to be symmetrical. We note that, for the case of a homogeneous fluid in the container, one receiver is theoretically sufficient for accurately measuring sound speed. We note that, for the case of a homogeneous fluid in the container, one receiver is theoretically sufficient for accurately measuring sound speed. We include multiple receivers for three reasons: (1) to ensure that the ToF-CNN technique can be applied to materials that are not homogeneous and require multiple receivers, (2) to add robustness to the ToF-CNN technique to account for faults in any one receiver, and (3) because including data from three receivers triples the dataset size and the variability in the bulk and guided wave arrival times and amplitudes, which leads to improved model generalizability.
We excite the transmitter with a Gaussian-modulated cosine voltage v e x t defined as
v e x t = v 0 e t T / 2 2 2 σ e x 2 c o s 2   π f c t T / 2 ,
where v o is the amplitude,   f c = 350 kHz is the center frequency, σ e x = 150   kHz is the standard deviation, T is the burst duration, and t is time. Acoustic waveforms are obtained by solving time-domain coupled acoustic-elastic wave propagation in a closed container. Triangular elements are used in the mesh with the size of at least 15 elements per wavelength of the smallest wavelength at a given center frequency to reduce numerical error. Besides the spatial, the temporal discretization also satisfied a sampling criterion Δ t 10 ( f c + σ e x ) 1  to ensure the stability of the finite element method.
In experiments, the largest deviations are often caused by the transducer coupling, which can change the ringing in the transducer. To replicate realistic transducer attachment via adhesive, we model the transducer-container coupling as a thin elastic layer (TEL), where the layer thickness is varied to represent variability in experimental attachment. TEL represents the elastic and damping conditions between two boundaries. In an interior boundary, the TEL separates the displacements between two sides of the boundary. The two boundaries are then linked by elastic and viscous forces of equal magnitude but opposite directions, which are proportional to the relative displacements and velocities. We defined the TEL material properties for random thickness ( Γ T E L ), Young’s modulus ( E = 3   GPa ), Poisson’s ratio ( ν = 0.36 ), and the thickness of the TEL to resemble an epoxy adhesive. From these material properties, we compute the spring constant per unit area in directions normal ( k n ) and tangential ( k t ) of the TEL as: k n = E 1 ν Γ T E L 1 + ν 1 2 ν ; k t = E 2 Γ T E L 1 + ν . The values of k n and k t stiffness per unit area are used for spring constant per unit area in the TEL boundary condition. A multiphysics approach was used to couple acoustic-structure boundary and piezoelectric effect in simulations. For each wave propagation simulation, we randomly sampled the outer diameter, thickness of container wall, TEL thickness, and internal material sound speed from normal distributions with mean and standard deviation listed in Table 1, based on common values in NDE applications. We simulated 1089 bursts for a sound velocity of 1498 m/s, each of which returned 3 waveforms (one per receiver), where each waveform was then divided into 952 windows with an overlap of 99-time samples. This resulted in a total of 3,110,184 data samples (one windowed waveform X q plus true arrival y q per sample).
Additionally, experimental data often contains noise due to, e.g., ambient vibrations and electrical noise in the wires and electronics. To improve the generalization ability of the ToF-CNN, we add normally distributed random noise, and we empirically set the noise amplitude to be 4.5% of the average value of the maximum amplitude (3.33 × 104) of the complete dataset to approximate noise levels found in experiment measurements. Raw signals are normalized with the maximum amplitude for further data processing, as discussed in Section 2.2. Figure 2 shows the original waveform and the noisy waveform.

2.2. Data Preprocessing

For each of the simulated waveforms, we approximate the “true” ToF as
T o F t r u e = d r t c f + 2 Γ 1 c m 1 c f ,
where d r t is the distance from the transmitter to the receiver, Γ is the thickness of the container wall, c f and c m are the sound speed in fluid and the longitudinal sound speed of the container material, respectively. To measure the arrival times, we utilize a CNN to predict the likelihood of a burst arrival P a r r at time t. We define the true burst arrival likelihood as
P a r r = e x p t T o F t r u e 2 2 σ T o F 2   ,
We simplify the problem of predicting P a r r (a regression problem) to a binary classification problem. In this problem, we approximate the bulk wave arrival likelihood as a binary label
y t = 1   if   P arr t 0.5   0   if   P arr t < 0.5 ,
which indicates if the probability of a bulk wave arrival at time t is greater than 50%.
Figure 3a shows an example of the received waveform (black) with the bulk wave burst arrival likelihood (red). We then compute the cross-correlation envelope ( C C E ) between the received waveform v t and the excitation v e x t , defined as
C C E t = H v t v e x t ,
where H · indicates the Hilbert transform, and indicates cross-correlation. The CCE is used as input data instead of the raw acoustic waveform because CCE improves the signal quality by excluding the content outside of the excitation bandwidth while preserving the amplitude information. This procedure also gives the flexibility to downsample longer data without losing useful information, which leads to improved CNN generalizability. It should be noted that the CCE signal may result in lower ToF precision.
We further simplify the sequence-to-sequence problem of detecting the bulk wave arrival y at all times t to a traditional singular classification problem, wherein we observe small time windows and classify whether they contain a bulk arrival. To achieve this, we split the CCE signal into time-windowed segments with span Δ t , centered at t q for the qth window, i.e., x q = C C E t q Δ t 2 t < t q + Δ t 2 . We then define a scalar label ( y q ) for each window q indicating whether there is a bulk wave arrival at the center of the time window (Figure 3b).
Here, the window span Δ t and the amount of overlap (overlap of 99 samples was used in this study) between windows are treated as hyperparameters. Time-windowing assists in reducing any arrival time biases while training because the CNN does not receive any information about what time tq in a given time window is centered around. Figure 3c shows a single CCE divided into multiple inputs X and scalar outputs Y .

2.3. Convolutional Neural Network Structure

Figure 4 shows a schematic of a CNN architecture containing a series of layers including, convolution (black), batch + dropout + ReLu (red), pooling (yellow), fully connected (green), and output layers (blue).
The first element of the CNN is convolutional (Conv) layers that convolve an input signal with a given number of convolution filters to produce filtered signals that are then passed to the next layer through batch normalization (or norm), dropout and activation functions. Batch norm standardizes the values of hidden layer outputs for each batch with its mean and standard deviation. Dropout is used to randomly drop a predefined ratio of connections in a neural network to prevent overdependence on any one neuron. An activation function introduces nonlinear scaling that has been shown to improve CNN performance [33]. We use the rectified linear unit (ReLU) activation function, which helps to create sparse representations of the filtered signals to improve learnability [34].
The second element of our CNN is pooling layers, introduced between two conv layers. Max pooling is used to pick the maximum value from the patch of the input data and summarize these values into a feature map, which maintains the most significant features of the input while reducing its dimensions. The pooling layer also removes sensitivity to small translations of the input signals. Thus, the pooled features are smaller and less sensitive to input signal distortions while preserving critical information from the original signal [29]. Additionally, pooling allows CNN to be more robust to learn invariant features and avoid overfitting, meaning the network will be able to extract features from the signal of interest regardless of the feature position in the signal [35].
The third element of the network is a fully connected dense layer, incorporated into the last layer of the convolutional neural network. A sigmoid activation function is applied in the last layer to scale the output labels between 0 and 1.
Our CNN utilizes 5 Conv layers, each of them with 16 1D convolution kernels ( N f i l t ) of length ( L f i l t ) 50. We minimize binary cross-entropy loss by iteratively updating the learnable parameters such as weights and biases in each layer using an adaptive moment estimation, or Adam optimizer over 15 epochs (iteration steps) for each training run. Model checkpointing is used to monitor the model performance after every epoch, and the best model is saved for each dataset size.
To predict ToF, for a test waveform, we break up the waveform CCE into overlapping time-windowed samples (99-time samples), centered at times 0 t q t f , and then use the CNN to predict the likelihood of a bulk arrival Y(tq) at each time tq. Finally, the bulk wave ToF is estimated by computing the time tq with the highest likelihood Y t q , given by.
T o F = argmax t q   Y t q
Figure 5 shows the predicted (blue) and true ToF (red) for an example test CCE (green) for a transmitter–receiver pair. We observed good agreement between the predicted and true ToFs.

3. Results and Discussion

In the field, operators will likely encounter containers with parameters (dimensions or material properties) that are not found in the training dataset. Intuitively, if the training dataset is too small, the model will overfit, resulting in low prediction accuracy. Similarly, we expect low accuracy if the field container is not drawn from the same distribution of parameters as the training data, e.g., it is significantly larger or smaller than the training data containers. We analyze the ToF-CNN performance in these situations by investigating the influence of training dataset size, and parameter distribution separation between training and testing datasets. The goal is to examine the impact of dataset size and dataset type (data distribution) on the prediction performance. The network performance is evaluated with respect to root mean square error (RMSE).

3.1. Influence of Dataset Size

To investigate the impact of dataset size on model accuracy, the ToF-CNN model was trained using 1% to 99.9% of the total dataset, sampled randomly, and the remaining dataset was used for testing. The total dataset contains the acoustic burst (CCE) for all the diameters as mentioned in Section 2.1 and Table 1 using a single medium velocity of 1498 m/s. Figure 6 shows the mean (line) with 95% confidence interval (shaded area) RMSE of the ToF, obtained by investigating the training and testing 10 times. We observe that the RMSE begins to converge after 10% of training data and then dramatically reduces when training on >90% of the total dataset. This indicates that the ToF-CNN is able to represent the distribution of waveform time windows once it has “seen” 90% of those samples during training. It may also be possible that the model “memorizes” rather than “learns” the feature when training on a very large dataset and testing on a small dataset. Additionally, we observe an increase in the test RMSE when using around 70% to 80% of the training data. This is likely due to the fact that 81.5% of the data windows are quite similar, and approximately 18.5% of the datasets are outlier data points, which are relatively similar to each other but dissimilar to the majority of the dataset. Once enough (>10%) data are included in the training dataset, the CNN is no longer overfitting, and the training set contains similar data points to the majority of the test data points. But once the training dataset fraction increases to 70–80%, then test sets are much smaller, so any outlier test samples will have more weight when calculating the RMSE. The presence of outliers can be observed from the wide band of errors, seen in between 70 and 80% of the dataset. Finally, once the fraction of training samples is >90%, whenever there is an outlier sample in the test set, it is highly likely that the CNN will have encountered another similar outlier sample during training.

3.2. Influence of Training-Testing Dataset Distribution Separation

In practice, it is likely that a user will encounter a container in the field with dimensions that the ToF-CNN has not been trained on. We investigate the effect of the training/testing dataset (distribution) overlap by first sorting the dataset based on container diameter, and then selecting some fraction of the smallest or largest diameters as a training set X t r a i n , Y t r a i n X , Y and then selecting the remaining samples to be the test set X t e s t , Y t e s t X , Y   : X t e s t , Y t e s t X t r a i n , Y t r a i n = . We then evaluate the prediction performance on the testing set, the training set, and the total dataset, including data used in training and not used in training. Figure 7 shows the RMSE of ToF trained on the smallest diameter containers (Figure 7a), and largest diameter containers (Figure 7b), for the test data (purple), the training data (blue), and the full data, i.e., training + test data (green). It can be observed from Figure 7 that training the model with a small amount of training data produces low training RMSE and much higher test RMSE, suggesting likely overfitting, i.e., that the models are unable to generalize well to unseen data.
Comparing Figure 7a,b, we observe that training on the smallest containers and testing on the largest containers results in significantly lower test RMSE, compared to training on the largest containers and testing on the smallest containers. Additionally, we observe that, when training on the smallest diameter containers, increasing the training dataset size results in a consistent decrease in the mean test error (Figure 7a). Alternatively, when training on the largest diameter containers, increasing the training dataset size had little effect on the test RMSE until the training set included >80% of the largest containers. To understand why, we observe example wavefield snapshots and waveforms for different diameter containers in Figure 8. We indicate the theoretical bulk wave (red) and first guided wave (green) arrivals. We observe that waveforms from small-diameter containers have similar bulk and guided wave arrival times, making it challenging to distinguish between them. In contrast, for larger containers, bulk and guided waves can be separated comparatively easily. Therefore, for the ranges of dimensions and material properties that we investigate, we contend that small-diameter data has higher complexity compared to large-diameter data. The ToF-CNN is able to learn the complex features from small-diameter data and extrapolate it to large-diameter data, whereas training on large-container data results in lower prediction accuracy for small-diameter data. These results provide important insights into the effect of dataset size and dataset type on predicted ToF error.

3.3. Influence of Medium Sound Speed

We have further investigated the viability of the ToF-CNN on containers with different internal material sound speeds. Figure 9 shows the predicted ToF RMSE for different sound speeds of the enclosed material. The training was performed on the smallest 50% and largest 50% diameter data with an acoustic speed of 1498 m/s (water at standard temperature and pressure), and the model was tested on data with sound speed range in the range 1200 m/s to 1800 m/s. Results show that the RMSE decreases monotonically with increasing sound speed for the model trained using a small diameter. This is likely due to the fact that when testing on larger diameters, higher sound speeds will bring the guided and bulk arrival times closer together, which is more similar to the small-diameter data used in training. Alternatively, for the large-diameter data, we observe that the RMSE decreases with increasing sound speed, but not monotonically, and there are large variations in RMSE for all sound speeds. This variation is due to the fact that for many of the containers (especially small), higher sound speed results in similar bulk and guided arrival times. As a result, there is significant interference between the two and it is challenging for the CNN to distinguish them when it has not encountered this in the training data. Thus, these results validate the broader generalizability of the model when training the model on a small-diameter dataset.

3.4. Influence of Including Data Augmentation

One method for overcoming overfitting is to increase the number of independent training samples. However, this task may not be possible in practice due to the burden of collecting additional experimental data. Alternatively, the training dataset can be augmented or made artificially larger by duplicating and modifying training samples. Here, we test the effect of augmenting the training dataset by duplicating training samples and adding Gaussian noise to the signals. The description of adding noise to the signal is discussed in Section 2.1. An example of the original waveform and noisy waveform is shown in Figure 2. We consider two scenarios: first, the ToF-CNN is trained on data from the smallest 50% of the containers, and second, the ToF-CNN is trained on data from the largest 50% of the containers, as shown in Figure 10a and Figure 10b, respectively. We observe that the model performs better when training on small-diameter data versus training on large-diameter data using augmented samples in the training dataset. Additionally, including noisy data in the training process improves the prediction accuracy for test data when training on small-diameter data (Figure 10a). Interestingly the performance degrades when training on the large-diameter data (Figure 10b). Degradation in the performance of the model trained on large-diameter data is caused by the added noise, which distorts the bulk wave signals, and the ToF-CNN cannot learn features from the training data. Additionally, the model may not be sufficiently complex to represent the relationship between the feature and the outcome. However, the trend follows the same as discussed in Section 3.2.

4. Conclusions

We investigate a technique for measuring acoustic bulk wave ToF within closed containers via a ToF-CNN. In closed containers, guided waves propagate through the container walls and interfere with the bulk waves, which makes it challenging to identify the bulk wave. We consider the applicability of a ToF-CNN technique for realistic applications where the test containers encountered in the field may have different dimensions or contain different materials from those used to train the ToF-CNN. The results show low measurement error in test data when enough data is used in training. The impact of training data set size on ToF-CNN is understood, and the influence of the type of container required to train the model is investigated. It was found that training the model with small-diameter data provides higher prediction accuracies when testing on large-diameter data, compared to training on large-diameter data and testing on small-diameter data. It was also observed that the model is robust to noise and speed variation when training the model considering small-diameter data.
To further enhance the data variability in the ToF-CNN model, data augmentation to other variables can be considered, such as transducer positioning. In practice, it is highly possible that the transducers are not positioned equidistantly. Transducer misalignment is straightforward, and it can be augmented in the data by delaying or advancing the time from the signal. Although the model shows excellent prediction accuracy for variable speed medium, it is worth including more data sets with a wide variability in speed for a much broader application range.
These results demonstrate the robustness of the ToF-CNN measurement technique and its limitations in terms of how far the test set parameters can be from those of the training database and still achieve reasonable accuracy. It enables the users to efficiently decide the type of data required to predict ToF within closed containers for various applications such as industrial process control, in situ process monitoring, characterizing phase-change energy storage devices, and material identification.

Author Contributions

Conceptualization, A.S. and J.J.G.; methodology, A.S. and J.J.G.; validation, A.S.; formal analysis, A.S.; investigation, A.S. and J.J.G.; data curation, A.S.; writing—original draft preparation, A.S.; writing—review and editing, A.S., J.J.G., E.S.D. and C.P.; visualization, A.S.; supervision, J.J.G.; project administration, C.P.; funding acquisition, C.P. All authors have read and agreed to the published version of the manuscript.

Funding

Research presented in this article was supported by the Laboratory Directed Research and Development program of Los Alamos National Laboratory under project number 20230468MFR.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data are not publicly available due to Los Alamos National Laboratory data sharing policy.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Chillara, V.K.; Sturtevant, B.T.; Pantea, C.; Sinha, D.N. Ultrasonic sensing for noninvasive characterization of oil-water-gas flow in a pipe. In AIP Conference Proceedings; AIP Publishing: Melville, NY, USA, 2017; Volume 1806. [Google Scholar]
  2. Remenieras, J.; Cervenka, P.; Alais, P. Non intrusive measurements of the acoustic pressure and velocity fluctuations of fluids flowing in pipes. In Proceedings of the 1994 IEEE Ultrasonics Symposium, Cannes, France, 31 October–3 November 1994; Volume 3, pp. 1323–1326. [Google Scholar]
  3. Sinha, D.N. Noninvasive Identification of Fluids by Swept-Frequency Acoustic Interferometry. U.S. Patent 5,767,407, 16 June 1988. [Google Scholar]
  4. Sinha, D.; Springer, K.; Han, W.; Lizon, D.; Kogan, S. Applications of Swept-Frequency Acoustic Interferometer for Nonintrusive Detection and Identification of Chemical Warfare Compounds; Los Alamos National Laboratory (LANL): Los Alamos, NM, USA, 1997.
  5. Shen, C.-C.; Weng, M.-Y.; Sheu, J.-K.; Yao, Y.-T.; Sun, C.-K. In situ monitoring of chemical reactions at a solid–water interface by femtosecond acoustics. J. Phys. Chem. Lett. 2017, 8, 5430–5437. [Google Scholar] [CrossRef] [PubMed]
  6. Saini, A.; Felice, M.V.; Fan, Z.; Lane, C.J. Optimisation of the half-skip total focusing method (HSTFM) parameters for sizing surface-breaking cracks. NDT E Int. 2020, 116, 102365. [Google Scholar] [CrossRef]
  7. Saini, A.; Lane, C.J.; Tu, J.; Xue, H.; Fan, Z. 3D ultrasonic imaging of surface-breaking cracks using a linear array. Ultrasonics 2022, 125, 106790. [Google Scholar] [CrossRef] [PubMed]
  8. Rao, J.; Saini, A.; Yang, J.; Ratassepp, M.; Fan, Z. Ultrasonic imaging of irregularly shaped notches based on elastic reverse time migration. NDT E Int. 2019, 107, 102135. [Google Scholar] [CrossRef]
  9. Greenhall, J.; Hakoda, C.; Davis, E.S.; Chillara, V.K.; Pantea, C. Noninvasive acoustic measurements in cylindrical shell containers. IEEE Trans. Ultrason. Ferroelectr. Freq. Control 2021, 68, 2251–2258. [Google Scholar] [CrossRef] [PubMed]
  10. Greenhall, J.; Zerkle, D.; Davis, E.S.; Broilo, R.; Pantea, C. Noninvasive acoustic time-of-flight measurements in heated, hermetically-sealed high explosives using a convolutional neural network. Mach. Learn. Appl. 2022, 9, 100391. [Google Scholar] [CrossRef]
  11. Williamson, P. A guide to the limits of resolution imposed by scattering in ray tomography. Geophysics 1991, 56, 202–207. [Google Scholar] [CrossRef]
  12. Gao, F.; Li, B.; Chen, L.; Wei, X.; Shang, Z.; He, C. Ultrasonic signal denoising based on autoencoder. Rev. Sci. Instrum. 2020, 91, 045104. [Google Scholar] [CrossRef] [PubMed]
  13. Adavanne, S.; Politis, A.; Nikunen, J.; Virtanen, T. Sound event localization and detection of overlapping sources using convolutional recurrent neural networks. IEEE J. Sel. Top. Signal Process. 2018, 13, 34–48. [Google Scholar] [CrossRef]
  14. Althnian, A.; AlSaeed, D.; Al-Baity, H.; Samha, A.; Dris, A.B.; Alzakari, N.; Abou Elwafa, A.; Kurdi, H. Impact of dataset size on classification performance: An empirical evaluation in the medical domain. Appl. Sci. 2021, 11, 796. [Google Scholar] [CrossRef]
  15. Barat, V.; Kostenko, P.; Bardakov, V.; Terentyev, D. Acoustic signals recognition by convolutional neural network. Int. J. Appl. Eng. Res 2017, 12, 3461–3469. [Google Scholar]
  16. Bianco, M.J.; Gerstoft, P.; Traer, J.; Ozanich, E.; Roch, M.A.; Gannot, S.; Deledalle, C.-A. Machine learning in acoustics: Theory and applications. J. Acoust. Soc. Am. 2019, 146, 3590–3628. [Google Scholar] [CrossRef] [PubMed]
  17. Chen, Y.; Zhang, G.; Bai, M.; Zu, S.; Guan, Z.; Zhang, M. Automatic waveform classification and arrival picking based on convolutional neural network. Earth Space Sci. 2019, 6, 1244–1261. [Google Scholar] [CrossRef]
  18. Liu, Y.; Chen, H.; Wang, B. DOA estimation based on CNN for underwater acoustic array. Appl. Acoust. 2021, 172, 107594. [Google Scholar] [CrossRef]
  19. McBrearty, I.W.; Delorey, A.A.; Johnson, P.A. Pairwise association of seismic arrivals with convolutional neural networks. Seismol. Res. Lett. 2019, 90, 503–509. [Google Scholar] [CrossRef]
  20. Perol, T.; Gharbi, M.; Denolle, M. Convolutional neural network for earthquake detection and location. Sci. Adv. 2018, 4, e1700578. [Google Scholar] [CrossRef] [PubMed]
  21. Ross, Z.E.; Meier, M.A.; Hauksson, E. P wave arrival picking and first-motion polarity determination with deep learning. J. Geophys. Res. Solid Earth 2018, 123, 5120–5129. [Google Scholar] [CrossRef]
  22. Ross, Z.E.; Meier, M.A.; Hauksson, E.; Heaton, T.H. Generalized seismic phase detection with deep learning. Bull. Seismol. Soc. Am. 2018, 108, 2894–2901. [Google Scholar] [CrossRef]
  23. Liang, Z.; Powell, A.; Ersoy, I.; Poostchi, M.; Silamut, K.; Palaniappan, K.; Guo, P.; Hossain, M.A.; Sameer, A.; Maude, R.J. CNN-based image analysis for malaria diagnosis. In Proceedings of the 2016 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), Shenzhen, China, 15–18 December 2016; pp. 493–496. [Google Scholar]
  24. Bailly, A.; Blanc, C.; Francis, É.; Guillotin, T.; Jamal, F.; Wakim, B.; Roy, P. Effects of dataset size and interactions on the prediction performance of logistic regression and deep learning models. Comput. Methods Programs Biomed. 2022, 213, 106504. [Google Scholar] [CrossRef]
  25. Dawson, H.L.; Dubrule, O.; John, C.M. Impact of dataset size and convolutional neural network architecture on transfer learning for carbonate rock classification. Comput. Geosci. 2023, 171, 105284. [Google Scholar] [CrossRef]
  26. Rieschel, E.; Nilsson, E. A Study of the Biological Sex in the Classification of Alzheimer’s Disease Using a Convolutional Neural Network; KTH Royal Institute of Technology: Stockholm, Sweden, 2022. [Google Scholar]
  27. Prusa, J.; Khoshgoftaar, T.M.; Seliya, N. The effect of dataset size on training tweet sentiment classifiers. In Proceedings of the 2015 IEEE 14th International Conference on Machine Learning and Applications (ICMLA), Miami, FL, USA, 9–11 December 2015; pp. 96–102. [Google Scholar]
  28. Rahman, M.S.; Sultana, M. Performance of Firth-and logF-type penalized methods in risk prediction for small or sparse binary data. BMC Med. Res. Methodol. 2017, 17, 33. [Google Scholar] [CrossRef] [PubMed]
  29. De Andrade, A. Best practices for convolutional neural networks applied to object recognition in images. arXiv 2019, arXiv:1910.13029. [Google Scholar]
  30. Zhu, W.; Mousavi, S.M.; Beroza, G.C. Seismic signal augmentation to improve generalization of deep neural networks. In Advances in Geophysics; Elsevier: Amsterdam, The Netherlands, 2020; Volume 61, pp. 151–177. [Google Scholar]
  31. Luo, C.; Li, X.; Wang, L.; He, J.; Li, D.; Zhou, J. How does the data set affect cnn-based image classification performance? In Proceedings of the 2018 5th International Conference on Systems and Informatics (ICSAI), Nanjing, China, 10–12 November 2018; pp. 361–366. [Google Scholar]
  32. Alzubaidi, L.; Zhang, J.; Humaidi, A.J.; Al-Dujaili, A.; Duan, Y.; Al-Shamma, O.; Santamaría, J.; Fadhel, M.A.; Al-Amidie, M.; Farhan, L. Review of deep learning: Concepts, CNN architectures, challenges, applications, future directions. J. Big Data 2021, 8, 53. [Google Scholar] [CrossRef] [PubMed]
  33. Hao, W.; Yizhou, W.; Yaqin, L.; Zhili, S. The role of activation function in CNN. In Proceedings of the 2020 2nd International Conference on Information Technology and Computer Application (ITCA), Guangzhou, China, 18–20 December 2020; pp. 429–432. [Google Scholar]
  34. Glorot, X.; Bordes, A.; Bengio, Y. Deep sparse rectifier neural networks. In Proceedings of the Fourteenth International Conference on ARTIFICIAL intelligence and Statistics, Lauderdale, FL, USA, 11–13 April 2011; pp. 315–323. [Google Scholar]
  35. Zafar, A.; Aamir, M.; Mohd Nawi, N.; Arshad, A.; Riaz, S.; Alruban, A.; Dutta, A.K.; Almotairi, S. A comparison of pooling methods for convolutional neural networks. Appl. Sci. 2022, 12, 8643. [Google Scholar] [CrossRef]
Figure 1. Schematic of the symmetric FEM model of the cylindrical container. A wavefield snapshot at an arbitrary time shows the bulk and guided waves.
Figure 1. Schematic of the symmetric FEM model of the cylindrical container. A wavefield snapshot at an arbitrary time shows the bulk and guided waves.
Sensors 24 03580 g001
Figure 2. Example original waveform and waveform with noise.
Figure 2. Example original waveform and waveform with noise.
Sensors 24 03580 g002
Figure 3. Acoustic data preprocessing for CNN learning. (a) Measured acoustic waveform and the corresponding cross-correlation envelope and burst arrival likelihood. (b) Example of the time-windowed data with labels indicating whether there is a burst arrival at the time window center. (c) Illustration of CNN inputs X and outputs Y created from a single acoustic waveform.
Figure 3. Acoustic data preprocessing for CNN learning. (a) Measured acoustic waveform and the corresponding cross-correlation envelope and burst arrival likelihood. (b) Example of the time-windowed data with labels indicating whether there is a burst arrival at the time window center. (c) Illustration of CNN inputs X and outputs Y created from a single acoustic waveform.
Sensors 24 03580 g003
Figure 4. Schematic representation of the CNN used in bulk wave arrival prediction.
Figure 4. Schematic representation of the CNN used in bulk wave arrival prediction.
Sensors 24 03580 g004
Figure 5. Superimposed comparison of test waveform (CCE) with true and predicted arrival likelihood.
Figure 5. Superimposed comparison of test waveform (CCE) with true and predicted arrival likelihood.
Sensors 24 03580 g005
Figure 6. Influence of dataset size on testing accuracy. Plot illustrates the mean (black line) with 95% confidence interval (green shaded area) RMSE of the ToF.
Figure 6. Influence of dataset size on testing accuracy. Plot illustrates the mean (black line) with 95% confidence interval (green shaded area) RMSE of the ToF.
Sensors 24 03580 g006
Figure 7. Performance evaluation of CNN for different dataset sizes: (a) training on small-diameter containers, and (b) training on large-diameter containers. Solid black and dashed line represent the RMSE with standard deviation in shaded region.
Figure 7. Performance evaluation of CNN for different dataset sizes: (a) training on small-diameter containers, and (b) training on large-diameter containers. Solid black and dashed line represent the RMSE with standard deviation in shaded region.
Sensors 24 03580 g007
Figure 8. Wavefield snapshot and waveform for different diameter containers, 35 mm, 70 mm, 125 mm, and 212 mm. The bulk wave and first guided wave arrivals are indicated by red and green lines, respectively.
Figure 8. Wavefield snapshot and waveform for different diameter containers, 35 mm, 70 mm, 125 mm, and 212 mm. The bulk wave and first guided wave arrivals are indicated by red and green lines, respectively.
Sensors 24 03580 g008
Figure 9. ToF prediction for different speeds when the model is trained on 50% of data for small and large containers. Solid lines represent the RMSE with standard deviation in shaded region.
Figure 9. ToF prediction for different speeds when the model is trained on 50% of data for small and large containers. Solid lines represent the RMSE with standard deviation in shaded region.
Sensors 24 03580 g009
Figure 10. Influence model prediction performance by adding noise: (a) training on data (including different velocities) from the smallest 50% of containers, (b) training on the largest 50% of containers. Solid lines depict the RMSE with standard deviation in shaded region.
Figure 10. Influence model prediction performance by adding noise: (a) training on data (including different velocities) from the smallest 50% of containers, (b) training on the largest 50% of containers. Solid lines depict the RMSE with standard deviation in shaded region.
Sensors 24 03580 g010
Table 1. Description of the features considered.
Table 1. Description of the features considered.
Parameter NameMeanStandard Deviation
Inner Diameter [mm]96.27832.15
Outer Diameter [mm]108.5332.49
Thickness [mm]6.011.95
Thin Elastic Layer [mm]4 × 10−69.8 × 10−7
Sound speed [m/s]1498216.02
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

Saini, A.; Greenhall, J.J.; Davis, E.S.; Pantea, C. On the Generalizability of Time-of-Flight Convolutional Neural Networks for Noninvasive Acoustic Measurements. Sensors 2024, 24, 3580. https://doi.org/10.3390/s24113580

AMA Style

Saini A, Greenhall JJ, Davis ES, Pantea C. On the Generalizability of Time-of-Flight Convolutional Neural Networks for Noninvasive Acoustic Measurements. Sensors. 2024; 24(11):3580. https://doi.org/10.3390/s24113580

Chicago/Turabian Style

Saini, Abhishek, John James Greenhall, Eric Sean Davis, and Cristian Pantea. 2024. "On the Generalizability of Time-of-Flight Convolutional Neural Networks for Noninvasive Acoustic Measurements" Sensors 24, no. 11: 3580. https://doi.org/10.3390/s24113580

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