# Earthquakes, tides, and tsunami prediction

I've been wanting to try this for awhile — to see if the solver setup used for fitting to ENSO would work for conventional tidal analysis.  The following post demonstrates that if you give it the recommended tidal parameters and let the solver will grind away, it will eventually find the best fitting amplitudes and phases for each parameter.

The context for this analysis is an excellent survey paper on tsunami detection and how it relates to tidal prediction:

S. Consoli, D. R. Recupero, and V. Zavarella, “A survey on tidal analysis and forecasting methods for Tsunami detection,” J. Tsunami Soc. Int.
33 (1), 1–56.

The question the survey paper addresses is whether we can one use knowledge of tides to deconvolute and isolate a tsunami signal from the underlying tidal sea-level-height (SLH) signal. The practical application paper cites the survey paper above:

Percival, Donald B., et al. "Detiding DART® buoy data for real-time extraction of source coefficients for operational tsunami forecasting." Pure and Applied Geophysics 172.6 (2015): 1653-1678.

This is what the raw buoy SLH signal looks like, with the tsunami impulse shown at the end as a bolded line:

After removing the tidal signals with various approaches described by Consoli et al, the isolated tsunami impulse response (due to the 2011 Tohoku earthquake) appears as:

As noted in the caption, the simplest harmonic analysis was done with 6 constituent tidal parameters.

As a comparison, the ENSO solver was loaded with the same tidal waveform (after digitizing the plot) along with 4 major tidal parameters and 4 minor parameters to be optimized. The solver's goal was to maximize the correlation coefficient between the model and the tidal data.

The yellow region is training which reached almost a 0.99 correlation coefficient, with the validation region to the right reaching 0.92.

This is the complex Fourier spectrum (which is much less busy than the ENSO spectra):

The set of constituent coefficients we use is from the Wikipedia page where we need the periods only. Of the following 5 principal tidal constituents, only N2 is a minor factor in this case study.

In practice, multiple linear regression would provide faster results for tidal analysis as the constituents add linearly (see the CSALT model). In contrast, for ENSO there are several nonlinear steps required that precludes a quick regression solution.  Yet, this tidal analysis test shows how effective and precise a solution the solver supplies.

The entire analysis only took an evening of work, in comparison to the difficulty of dealing with ENSO data, which is much more noisy than the clean tidal data.  Moreover, the parameters for conventional tidal analysis stress the synodic/tropical/sidereal constituents — unfortunately, these are of little consequence for ENSO analysis, which requires the draconic and anomalistic parameters and the essential correction factors. The synodic tide is the red herring for the unwary when dealing with global phenomena such as ENSO, QBO, and LOD. The best way to think about it is that the synodic cycle impacts locally and most immediately, whereas the anomalistic and draconic cycles have global and more cumulative impacts.

# Limits to Goodness of Fit

Based on a comparison of local interval correlations between the NINO34 and SOI indices, there probably is a limit to how well a model can be fit to ENSO.  The lower chart displays a 4-year-windowed correlation coefficient (in RED) between the two indices (shown in upper chart):

Note that in the interval starting at 1930, the correlation is poor for about 7 years.

Next note that the ENSO model fit shows a poor correlation to the NINO34 data in nearly the same intervals (shown as dotted GREEN). This is an odd situation but potentially revealing. The fact that both the ENSO model and SOI don't match the NINO34 index over the same intervals, suggests that the model may match SOI better than it does NINO34.  Yet, because of the excessive noise in SOI, this is difficult to verify.

But more fundamentally, why would NINO34 not match SOI in these particular intervals? These regions do seem to be ENSO-neutral, not close to El Nino or La Nina episodes.  Some also seem to occupy regions of faster, noisy fluctuations in the index.

It could be that the ENSO lunar tidal model is revealing the true nature of the ENSO dynamics, and these noisier, neutral regions are reflecting some other behavior (such as amplitude folding) — but since they also appear to be obscured by noise, it makes it difficult to unearth.

The paper by Zajączkowska[1] also applies a local correlation to compare the lunar tidal cycles to plant growth dynamics. There's a treasure trove of recent research on this topic.

# Second-Order Effects in the ENSO Model

For ocean tidal predictions, once an agreement is reached on the essential lunisolar terms, then the second-order terms are refined. Early in the last century Doodson catalogued most of these terms:

"Since the mid-twentieth century further analysis has generated many more terms than Doodson's 388. About 62 constituents are of sufficient size to be considered for possible use in marine tide prediction, but sometimes many fewer can predict tides to useful accuracy."

That's possibly the stage we have reached in the ENSO model.  There are two primary terms for lunar forcing (the Draconic and Anomalistic) cycles, that when mixed with the annual and biannual cycles, will reproduce the essential ENSO behavior.  The second-order effects are the  modulation of these two lunar cycles with the Tropical/Synodic cycle.  This is most apparent in the modification of the Anomalistic cycle. Although not as important as in the calculation of the Total Solar Eclipse times, the perturbation is critical to validating the ENSO model and to eventually using it to make predictions.

The variation in the Anomalistic period is described at the NASA Goddard eclipse page. They provide two views of the variation, a time-domain view and a histogram view.

 Time domain view Histogram view

Since NASA Goddard doesn't provide an analytical form for this variation, we can see if the ENSO Model solver can effectively match it via a best-fit search to the ENSO data. This is truly an indirect method.

First we start with a parametric approximation to the variation, described by a pair of successive frequency modulated (and full-wave rectified) terms that incorporate the Tropical-modified term, wm. The Anomalistic term is wa.

COS(wa*t+pa+c_1*ABS(SIN(wm*t+k_1*ABS(SIN(wm*t+k_2))+c_2)))

$\cos(\omega_a t+\phi_a+c_1 \cdot |\sin(\omega_m t+k_1 \cdot |\sin(\omega_m t+k_2)|+c_2)|)$

This can generate the cusped behavior observed, but the terms pa, c_1, c_2, k_1, and k_2 need to be adjusted to align to the NASA model. The solver will try to do this indirectly by fitting to the 1880-1950 ENSO interval.

Plotting in RED the Anomalistic time series and the histogram of frequencies embedded in the ENSO waveform, we get:

 Time domain view of model Histogram view of model

This captures the histogram view quite well, and the time-domain view roughly (in other cases it gives a better cusped fit).  The histogram view is arguably more important as it describes the frequency variation over a much wider interval than the 3-year interval shown.

What would be even more effective is to find the correct analytical representation of the Anomalistic frequency variation and then plug that directly into the ENSO model. That would provide another constraint to the solver, as it wouldn't need to spend time optimizing for a known effect.

Yet as a validation step, the fact that the solver detects the shape required to match the variation is remarkable in itself. The solver is obviously searching for the forcing needed to produce the ENSO waveform observed, and happens to use the precise parameters that also describe the second-order Anomalistic behavior.  That could happen by accident but in that case there have been too many happy accidents already, i.e. period match, LOD match, Eclipse match, QBO match, etc.

# Search for El Nino

The model for ENSO includes a nonlinear search feature that finds the best-fit tidal forcing parameters.  This is similar to what a conventional ocean tidal analysis program performs — finding the best-fitting lunar tidal parameters based on a measured historic interval of hundreds of cycles. Since tidal cycles are abundant — occurring at least once per day — it doesn't take much data collected over a course of time to do an analysis.  In contrast, the ENSO model cycles over the course of years, so we have to use as much data as we can, yet still allow test intervals.

What follows is the recipe (more involved than the short recipe) that will guarantee a deterministic best-fit from a clean slate each time. Very little initial condition information is needed to start with, so that the final result can be confidently recovered each time, independent of training interval.

# The Hawkmoth Effect

Contrasting to the well-known Butterfly Effect, there is another scientific modeling limitation known as the Hawkmoth Effect.  Instead of simulation results being sensitive to initial conditions, which is the Butterfly Effect, the Hawkmoth Effect is sensitive to model structure.  It's a more subtle argument for explaining why climate behavioral modeling is difficult to get right, and named after the hawkmoth because hawkmoths are "better camouflaged and less photogenic than butterflies".

Not everyone agrees that this is a real effect, or it just reveals shortcomings in correctly being able to model the behavior under study. So, if you have the wrong model or wrong parameters for the model, of course it may diverge from the data rather sharply.

In the context of the ENSO model, we already provided parameters for two orthogonal intervals of the data.  Since there is some noise in the ENSO data — perfectly illustrated by the fact that SOI and NINO34 only have a correlation coefficient of 0.79 — it is difficult to determine how much of the parameter differences are due to over-fitting of that noise.

In the figure below, the middle panel shows the difference between the SOI and NINO34 data, with yellow showing where the main discrepancies or uncertainties in the true ENSO value lie. Above and below are the model fits for the earlier (1880-1950 shaded in a yellow background) and later (1950-2016) training intervals. In certain cases, a poorer model fit may be able to be ascribed to uncertainty in the ENSO measurement, such as near ~1909., ~1932, and ~1948, where the dotted red lines align with trained and/or tested model regions. The question mark at 1985 is a curiosity, as the SOI remains neutral, while the model fits to more La Nina conditions of NINO34.

There is certainly nothing related to the Butterfly Effect in any of this, since the ENSO model is not forced by initial conditions, but by the guiding influence of the lunisolar cycles. So we are left to determine how much of the slight divergence we see is due to non-stationary variation of the model parameters over time, or whether it is due to missing some other vital structural model parameters. In other words, the Hawkmoth Effect is our only concern.

In the model shown below, we employ significant over-fitting of the model parameters. The ENSO model only has two forcing parameters — the Draconic (D) and Anomalistic (A) lunar periods, but like in conventional ocean tidal analysis, to make accurate predictions many more of the nonlinear harmonics need to be considered [see Footnote 1]. So we start with A and D, and then create all combinations up to order 5, resulting in the set [ A, D, AD, A2, D2, A2D, AD2, A3, D3, A2D2, A3D, AD3, A4, D4, A2D3, A3D2, A4D1, A1D4, A5, D5 ].

This looks like it has the potential for all the negative consequence of massive over-fitting, such as fast divergence in amplitude outside the training interval, yet the results don't show this at all.  Harmonics in general will not cause a divergence, because they remain in phase with the fundamental frequencies both inside and outside the training interval. Besides that, the higher order harmonics start having a diminished impact, so this set is apparently about right to create an excellent correlation outside the training interval.  The two other important constraints in the fit, are (1) the characteristic frequency modulation of the anomalistic period due to the synodic period (shown in the middle left inset) and (2) the calibrated lunar forcing based on LOD measurements (shown in the lower panel).

The resulting correlation of model to data is 0.75 inside the training interval (1880-1980) and 0.69 in the test interval (1980-2016).  So this gets close to the best agreement we can expect given that SOI and NINO34 only reaches 0.79.  Read this post for the structural model parameter variations for a reduced harmonic set to order 3 only.

Welcome to the stage of ENSO analysis where getting the rest of the details correct will provide only marginal benefits;  yet these are still important, since as with tidal analysis and eclipse models, the details are important for fine-tuning predictions.

Footnote:

1. For conventional tidal analysis, hundreds of resulting terms are the norm, so that commercial tidal prediction programs allow an unlimited number of components.

Switching between two models

# Deterministic and Stochastic Applied Physics

Pierre-Simon Laplace was one of the first mathematicians who took an interest in problems of probability and determinism.  It's surprising how much of the math and applied physics that Laplace developed gets used in day-to-day analysis. For example, while working on the ENSO and QBO analysis, I have invoked the following topics at some point:

1. Laplace's tidal equations
2. Laplace's equation
3. Laplacian differential operator
4. Laplace transform
5. Difference equation
6. Planetary and lunar orbital perturbations
7. Probability methods and problems
1. Inductive probability
2. Bayesian analysis, e.g. the Sunrise problem
8. Statistical methods and applications
1. Central limit theorem
2. Least squares
9. Filling in holes of Newton's differential calculus
10. Others here

Apparently he did so much and was so comprehensive that in some of his longer treatises he often didn't cite the work of others, making it difficult to pin down everything he was responsible for (evidently he did have character flaws).

In any case, I recall applying each of the above in working out some aspect of a problem. Missing was that Laplace didn't invent Fourier analysis but the Laplace transform is close in approach and utility.

When Laplace did all this research, he must have possessed insight into what constituted deterministic processes:

We may regard the present state of the universe as the effect of its past and the cause of its future. An intellect which at a certain moment would know all forces that set nature in motion, and all positions of all items of which nature is composed, if this intellect were also vast enough to submit these data to analysis, it would embrace in a single formula the movements of the greatest bodies of the universe and those of the tiniest atom; for such an intellect nothing would be uncertain and the future just like the past would be present before its eyes.

— Pierre Simon Laplace,
A Philosophical Essay on Probabilities[wikipedia]
This is summed up as:

He also seemed to be a very applied mathematician, as per a quote I have used before  “Probability theory is nothing but common sense reduced to calculation.”  Really nothing the least bit esoteric about any of Laplace's math, as it seemed always motivated by solving some physics problem or scientific observation. It appears that he wanted to explain all these astronomic and tidal problems in as simple a form as possible. Back then it may have been esoteric, but not today as his techniques have become part of the essential engineering toolbox. I have to wonder if Laplace were alive now whether he would agree that geophysical processes such as ENSO and QBO were equally as deterministic as the sun rising every morning or of the steady cyclic nature of the planetary and lunar orbits. And it wasn't as if Laplace possessed confirmation bias that behaviors were immediately deterministic; as otherwise he wouldn't have spent so much effort in devising the rules of probability and statistics that are still in use today, such as the central limit theorem and least squares.

Perhaps he would have glanced at the ENSO problem for a few moments, noticed that in no way that it was random, and then casually remarked with one his frequent idiomatic phrases:

"Il est aisé à voir que..."  ... or ..  ("It is easy to see that...").

It may have been so obvious that it wasn't important to give the details at the moment, only to fill in the chain of reasoning later.  Much like the contextEarth model for QBO, deriving from Laplace's tidal equations.

Where are the Laplace's of today that are willing to push the basic math and physics of climate variability as far as it will take them? It has seemingly jumped from Laplace to Lorenz and then to chaotic uncertainty ala Tsonis or mystifying complexity ala Lindzen. Probably can do much better than to punt like that ... on first down even !

# Scaling El Nino

Recently, the rock climber Alex Honnold took a route up El Capitan without ropes.There's no room to fail at that. I prefer a challenge that one can fail at, and then keep trying.  This is the ascent to conquering El Nino:

# The Free-thought Route*

Χ  Base camp:  ENSO (El Nino/Southern Oscillation) is a sloshing behavior, mainly in the thermocline where the effective gravity makes it sensitive to angular momentum changes.
Χ  Faster forcing cycles reinforce against the yearly cycle, creating aliased periods. How?
Χ  Monthly lunar tidal cycles provide the aliased factors: Numbers match up perfectly.
This aliasing also works for QBO, an atmospheric analog of ENSO.
Χ  A biennial meta-stability appears to be active. Cycles reinforce on alternating years.
Χ  The well-known Mathieu modulation used for sloshing simulations also shows a biennial character.
Machine learning experiments help ferret out these patterns.
Χ  The delay differential equation formulation matches up with the biennial Mathieu modulation with a delay of one-year.  That's the intuitive yearly see-saw that is often suggested to occur.
The Chandler wobble also shows a tidal forcing tendency, as does clearly the earth's LOD (length-of-day) variations.
Χ  Integrating the DiffEq model provides a good fit, including long-term coral proxy records
Χ  Solving the Laplace tidal equation via a Sturm-Liouville expression along the equator helps explain details of QBO and ENSO
Close inspection of sea-level height (SLH) tidal records show evidence of both biennial and ENSO characteristics
Δ Summit: Final validation of the geophysics comparing ENSO forcing against LOD forcing.

Model fits to ENSO using a training interval

The route encountered several dead-ends with no toe-holds or hand-holds along the way (e.g. the slippery biennial phase reversal, the early attempts at applying Mathieu equation). In retrospect many of these excursions were misguided or overly complex, but eventually other observations pointed to the obvious route.

This is a magnification of the fitting contour around the best forcing period values for ENSO. These pair of peak values are each found to be less than a minute apart from the known values of the Draconic cycle (27.2122 days) and Anomalistic cycle (27.5545 days).

The forcing comes directly from the angular momentum variations in the Earth's rotation. The comparison between what the ENSO model uses and what is measured via monitoring the length-of-day (LOD) is shown below:

*  This is not the precise route I took, but how I wish it was in hindsight.

# The Lunar Geophysical Connection

The conjecture out of NASA JPL is that the moon has an impact on the climate greater than is currently understood:

Claire Perigaud (Caltech/JPL)
and
 07/05/2011 Dr. Claire Perigaud JPL Earth-Moon-Sun alignments influencing El Niños and water/air mass momentum
Has this research gone anywhere?  Looks as if has gone to this spin-off.
According to the current consensus, variability in wind is what contributes to forcing for behaviors such as the El Nino/Southern Oscillation (ENSO).
OK, but what forces the wind? No one can answer that apart from saying wind variability is just a part of the dynamic climate system.  And so we are lead to believe that a wind burst will cause an ENSO and then the ENSO event will create a significant disruptive transient to the climate much larger than the original wind stimulus. And that's all due to positive feedback of some sort.
I am only paraphrasing the current consensus.
A much more plausible and parsimonious explanation lies with external lunar forcing reinforced by seasonal cycles.

# ENSO Proxy Validation

This is a straightforward validation of the ENSO model presented at last December's AGU.

What I did was use the modern instrumental record of ENSO — the NINO34 data set — as a training interval, and then tested across the historical coral proxy record — the UEP data set.

The correlation coefficient in the out-of-band region of 1650 to 1880 is excellent, considering that only two RHS lunar periods (draconic and anomalistic month) are used for forcing. As a matter of fact, trying to get any kind of agreement with the UEP using an arbitrary set of sine waves is problematic as the time-series appears nearly chaotic and thus requires may Fourier components to fit. With the ENSO model in place, the alignment with the data is automatic. It predicts the strong El Nino in 1877-1878 and then nearly everything before that.