Volume 23, Issue 4 e202300122
RESEARCH ARTICLE
Open Access

Can one hear the depth of the water?

Melina A. Freitag

Melina A. Freitag

Institute for Mathematics, University of Potsdam, Potsdam, Germany

Search for more papers by this author
Pavel Kříž

Pavel Kříž

Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic

Search for more papers by this author
Thomas Mach

Corresponding Author

Thomas Mach

Institute for Mathematics, University of Potsdam, Potsdam, Germany

Correspondence

Thomas Mach, Institute for Mathematics, University of Potsdam, 14476 Potsdam, Germany.

Email: [email protected]

Search for more papers by this author
Jan Martin Nicolaus

Jan Martin Nicolaus

Institute for Mathematics, University of Potsdam, Potsdam, Germany

Search for more papers by this author
First published: 19 September 2023

Abstract

We discuss discrete-time dynamical systems depending on a parameter μ. Assuming that the system matrix urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0001 is given, but the parameter μ is unknown, we infer the most-likely parameter urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0002 from an observed trajectory x of the dynamical system. We use parametric eigenpairs urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0003 of the system matrix urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0004 computed with Newton's method based on a Chebyshev expansion. We then represent x in the eigenvector basis defined by the urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0005 and compare the decay of the components with predictions based on the urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0006. The resulting estimates for μ are combined using a kernel density estimator to find the most likely value for urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0007 and a corresponding uncertainty quantification.

1 INTRODUCTION

We are interested in discrete-time dynamical systems of the form
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0008(1)
where urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0009 is a matrix depending on a parameter μ chosen from an interval urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0010, urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0011 is a noise term with urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0012, h is the time increment of the discretization, and urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0013 stands for the matrix exponential function. We assume that urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0014 is diagonalizable for all urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0015. We further assume that the dependency of A on μ is known, but the parameter μ itself is not. Estimating μ is the subject of this paper.
Discrete-time dynamical systems of the form (1) occur when applying the Euler–Maruyama method to solving a stochastic differential equation of the form
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0016
see, for instance, Kloeden and Platen [1] for details.

The paper focuses on the following example.

Example 1.1.Imagine we have a chain anchored below the water and on a pole above water. Submerged chain links are damped more than chain links in the air. The chain can be discretized by masses and springs like in Figure 1. We know the masses urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0017, the characteristics urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0018 of the springs, and the damping when the masses are in the air as well as when they are in the water. However, we do not know the depth of the water μ or, if you like, how many of the masses are below water. The system is excited by external forces. We record the ensuing motion, that is we record the position of the masses at equidistant discrete time points, and try to infer the depth of water from said recording. Since the motion can be associated with the sound emitted one can arguably say that we are attempting to hear the depth of the water and hence the title of the paper.

Discretization leads to a matrix urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0019 to describe this setup, where the parameter μ describes the depth of the water. We assume for simplicity that all masses are 1, that all spring characteristics are 1, and that the damping in water is 10, while the damping in air is 5. The mechanical system can be described with the second-order differential equation

urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0020(2)
where urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0021 and urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0022. The matrix D is diagonal with a transition on the diagonal from 5 for the parts in the air to 10 for the parts in water. To make this transition smooth and to account for a reduced damping near the surface caused by waves, we use sigmoid-functions on the diagonal,
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0023
where n is the number of masses, that is urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0024. Equation (2) is a standard example of a quadratic eigenvalue problem that has been discussed in many publications, for instance in Refs. [2, 3]. We deliberately chose an overdamped system, that is one that fulfills
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0025
to ensure that all eigenvalues of urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0026 are real and nonpositive [2, 4]. We linearize this quadratic eigenvalue problem to
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0027
Details on the linearization of quadratic eigenvalues can be found in the review paper [2].

Details are in the caption following the image
Example 1—sketch of the springs and masses.

In this paper, we pursue the following idea: A discretized trajectory urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0028 of the noisy dynamical system (1) is recorded. This is combined with approximations of the functions describing the eigenvalues urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0029 and eigenvectors urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0030 of urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0031 to estimate the most likely μ using a kernel density estimator. We choose a urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0032 and use the urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0033's for a coordinate transform to the eigenvector basis. We obtain new vectors urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0034 describing the trajectory in the eigenbasis. If we have chosen the correct urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0035, then the components of urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0036 decrease like urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0037 with time urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0038. Obviously, as soon as the components become too small, the influence of the noise η becomes dominant. Thus even with the correct urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0039, the relation between urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0040 and urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0041 is not perfect. Nevertheless, each eigenpair i, each time step j, and each choice of urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0042 provide an estimate for μ. We combine all these estimates by employing a kernel density estimator, which will provide us with the most likely guess of μ based on the individual guesses and a corresponding probability density, that is an uncertainty extimate. This is demonstrated by the numerical example in Section 4. Before we discuss the experiments, we provide a brief review in Section 2 regarding the computation of parametric eigenpairs of urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0043 described in Mach and Freitag [5]. In Section 3, we discuss how μ is found.

2 TAYLOR SERIES AND CHEBYSHEV EXPANSIONS OF urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0044 AND urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0045

Recently, Mach and Freitag presented a Taylor series and a Chebyshev expansion for the eigenvalue decomposition of urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0046, see Mach and Freitag [5] for details. They show how one can compute an approximation to the eigenvalues and eigenvectors,
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0047
First, a Taylor series is used for urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0048, urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0049, and urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0050 about an expansion point μ0. Under certain assumptions, the existence of such a series expansion for urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0051 and urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0052 is shown in Kato's book on perturbation theory for linear operators [6]. In particular, if urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0053 is real and symmetric such a series converges. The idea of using Taylor series expansions for the perturbation analysis is not new and goes at least as far back as 1939 [7]. The Taylor coefficients regarding the expansion point μ0 of v and λ can be successively computed by solving first
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0054
and then
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0055
Such linear systems have been used for first-order perturbation analysis, for instance, in Andrew et al. [8]. The novel contribution is the extension to use the same linear systems for the computation of higher-order derivatives for approximating the function urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0056 and urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0057 and the efficient implementation. In our numerical experiments, we are going to use the Matlab code provided by Mach [9]. In particular, if a Schur decomposition of A0 is computed in the initial step, recall we need to solve urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0058 anyway, then this Schur decomposition can be used to transform
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0059
see Mach and Freitag [5] for further details. The Schur decomposition can be computed with Francis's implicitly shifted QR algorithm in about urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0060 [10-12]. The algorithm is described in many textbooks, among others in Aurentz et al. [13]. This enables us to compute the first p Taylor series coefficient for all eigenpairs in urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0061.
For the Chebyshev expansion, the algorithm is more complicated. Mach and Freitag used Chebyshev polynomials of second kind defined by
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0062
This has the consequence that for urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0063 (follows with induction from Benjamin and Walton [14, Identity 3])
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0064
This minor difference to the monomial basis, for which urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0065 holds, means that the Chebyshev coefficients cannot be computed one-by-one as for the Taylor series coefficients, but have to be computed all at once. Nonetheless, approximating the products with urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0066 allows to use an approach similar to the Taylor polynomials to compute an initial approximation. Despite this rough approximation, the resulting eigenpairs are often accurate to three or four digits and serve as suitable starting points for a refinement with Newton's method, see Mach and Freitag [5] for further details. We observe that often the initial approximation places us within the area of quadratic convergence of Newton's method. Thus, three or four Newton steps often suffice to reach convergence to double precision.

Despite the increased costs, the Chebyshev expansion is preferable, due to the advantage of achieving a high approximation quality relatively homogeneously over the expansion interval. However, we observe a slight increase of the approximation error near the endpoints of the interval. The Taylor series approximation, by contrast, is mainly accurate near the expansion point μ0 and looses accuracy with increased distance from μ0. Thus, the numerical experiments in this paper solely use the Chebyshev expansion.

3 FINDING THE UNKNOWN PARAMETER μ

In this section, we discuss how μ can be found with the help of a trajectory urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0067 and the eigenpairs urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0068 of urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0069.

We perform a coordinate transform of trajectory urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0070 onto the eigenbasis. That is, we compute
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0071
where urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0072 is an initial guess for μ. Initially, we use equispaced urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0073 in the interval of interest. Other choices based on a prior distribution are possible and are subject to future research. This coordinate transformation depends on urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0074. Hence, we fix a urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0075 in the superscript. For urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0076, we have (see, for instance, Higham [15])
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0077
For the hidden urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0078, the components of urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0079 evolve like an exponential function,
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0080
with urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0081 the representation of η in the eigenbasis for urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0082. For other μ, the urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0083 decay exponentially as well, but the effect is a mix of different urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0084. Ignoring urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0085, we have
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0086
We have made two simplifications and approximations: (1) We ignore the noise term η. This is justified since for large absolute values of urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0087, the η term is negligible. If the system is close to being stationary, the noise becomes very relevant and a more elaborate approach for inferring μ is needed. (2) We also ignore that for different urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0088, the eigenbasis urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0089 changes. We are going to use both simplifications and will demonstrate that the results are useful despite of them.
We have an approximation urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0090. Thus, the polynomial urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0091 approximates urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0092. We use this together with the difference between the quotient and the exponential of the eigenvalue to μ to guess μ by
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0093(3)
This equation  is based on the linear Taylor polynomial:
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0094
We then solve for that μ which minimizes the difference between urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0095 and urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0096.
For each combination of urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0097, urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0098, and urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0099 we get a new guess of μ. We combine all of the guesses inside our interval of interest using Matlab's kernel density estimator ksdensity. This function computes for selected ξ the following sum:
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0100
where β is a predetermined bandwidth, essentially a parameter deciding how far urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0101 is smoothed out, and where
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0102
is the kernel—a Gaussian kernel—used for the smoothing. As a result, we obtain a discretization of the density function urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0103 with urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0104. We pick the mode urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0105 with
urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0106
which is the most likely μ with respect to the probability density function.

Alternatively, one can use the density function to draw a new set of guesses urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0107 based on the new distribution. This process can be iterated, see Section 5.

4 NUMERICAL EXPERIMENTS

This section is devoted to numerical experiments based on Example 1.1. For our numerical experiments, we use Matlab (R2020b) with IEEE 754 double precision arithmetic and a computer with Ubuntu 18.04.6 LTS, an Intel Core i7-10710U CPU (six physical cores), and 16 GB of RAM.

We first demonstrate the accuracy of the Chebyshev expansion approach by repeating some experiments from Mach and Freitag [5] with the matrix urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0108 from Example 1.1. In Figure 2, we observe that a fourth-degree Chebyshev expansion with three Newton steps (solid blue line ) is sufficient to approximate the sampled eigenvalues (red crosses +) visually very well on the interval [2,4] and reasonably well outside the interval of interest. The visual impression of a small error is confirmed by the absolute error plot, see Figure 3.

Details are in the caption following the image
Example 1.1, urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0109, Chebyshev expansion on the interval urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0110.
Details are in the caption following the image
Example 1.1—maximal difference between Chebyshev approximations and eigenvalues, urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0111, eight Newton steps.

Our penultimate experiment is a demonstration that we can find a good approximation to a hidden μ. Figure 4 depicts the results. We use one trajectory with 50 time steps of size 1/10 each. The chosen starting point x0 is randomly computed by 10*randn(20,1) and the added noise is computed by 1e-5*randn(20,1). We use a Chebyshev expansion up to degree 9 for the eigenvalues of Example 1.1 with 10 masses, that is urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0112. The interval of interest is [2,4] in which we use 15 equidistant-spaced urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0113 to compute guesses for μ, see Figure 5 for the contribution of each urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0114 to the density. The kernel density estimator indicates that the most likely μ is urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0115, while the actual μ used for the simulation of the trajectory was 3.2. This demonstrates that the described procedure is capable of inferring a good approximation of μ based on the parametric eigenpairs of urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0116.

Details are in the caption following the image
Example 1.1, urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0117, urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0118, unknown hidden urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0119, best guess urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0120, noise urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0121.
Details are in the caption following the image
Example 1.1, same as Figure 4 but showing the contribution of each urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0122 separately.

5 CONCLUSIONS AND FUTURE WORK

We have successfully demonstrated that we can estimate the depth μ based on a recorded trajectory, that is recording the sound emitted by the mass-spring system is sufficient to hear the depth of the water. The necessary computations were aided by initially computing a parametric eigendecomposition of urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0123.

The guess of urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0124 depends on the initial guess of μ. In the last section, we used 15 equidistant-spaced points in [2,4]. Using more points improves the accuracy and so does using points closer to the sought μ. Preliminary experiments reported in Figure 6 indicate that it is promising to draw new guesses for μ based on the estimated density and repeat the process with those. Beginning with the second iteration, we use 60 guesses for μ, which are shown as red crosses. We observe that the red crosses cluster closer and closer to the hidden urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0125. Figure 6 indicates the density function that seem to converge toward a delta-pulse at urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0126, see also Table 1. In the case of Table 1 the mode, the most likely μ, is a superior guess compared with the mean. These experiments are preliminary, since we observed different behavior for other examples. Once these differences are fully understood, we will report these experiments elsewhere. Other future work may involve investigations into the dependency on the noise level and extensions to 2 or more parameters.

TABLE 1. Results of the iterative refinement.
it. Mode Mean Variance
1 3.2315 3.1682 0.1626
2 3.2095 3.1905 0.1089
3 3.2022 3.2090 0.0714
4 3.2006 3.2047 0.0372
5 3.2003 3.2013 0.0293
6 3.1999 3.1954 0.0199
Details are in the caption following the image
Example 1.1, urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0127, urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0128, hidden urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0129, 60 different μ per iteration, best guess urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0130, urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0131, urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0132, urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0133, urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0134, urn:x-wiley:16177061:media:pamm202300122:pamm202300122-math-0135.

ACKNOWLEDGMENTS

The title of this paper has been inspired by “Can you hear the shape of a drum?” by Marc Kac [16]. The research has been partially funded by the Deutsche Forschungsgemeinschaft (DFG)—Project-ID 318763901—SFB1294. In particular, we would like to acknowledge that this research started with a discussion at the annual SFB1294 Spring School 2023.

Open access funding enabled and organized by Projekt DEAL.

    DATA AVAILABILITY STATEMENT

    The code used for the numerical experiments is available from GitHub, https://github.com/thomasmach/PEVP_with_Taylor_and_Chebyshev.

    • 1 An alternative would be to turn Equation (3) into a least squares problem. For the sake of brevity, we are not going to follow this idea here.

    The full text of this article hosted at iucr.org is unavailable due to technical difficulties.