Every map in the last three modules came out of a decomposition, and the software offers several. They are not competing implementations of one calculation. Each begins by assuming something different about what a trace is made of, and each returns a different answer from the same data. The first three steps show that this happens, say why, and give the one thing worth doing about it. The last two are marked as advanced and hold the arithmetic behind the first three.
The trace — a thin bed, an isolated event, and a close pair
Build the trace — every step updates as you drag
The earth
The analysis
Steps 1 to 3 are the module. Steps 4 and 5 are marked as advanced: they hold the
arithmetic behind the first three, and nothing later in the set depends on either. Then try the
exercises.
Method and references are there when you want them.
1One bed, three answers
The same trace, three programs, three thicknesses
Why this step is here. A project directory holds three spectral decomposition volumes of the same survey. Do they say the same thing?
A 30 ms bed comes back as a 36 m sand or a 21 m sand, depending on which
file was opened. The three programs report peak frequencies of 17.1, 22.9 and 29.7 Hz at that
bed. Turned into thickness through 1/(2f) those are 29, 22 and 17 ms, which at 2500 m/s are
36, 27 and 21 meters of rock. Nothing in the model changed between them. The trace is identical,
the bed is identical, and the numbers are not close.
None of the three is a mistake and none is a worse implementation of the other two.
They are three different measurements, and step 2 is about what makes them different. The three
names are worth having now, because they are what the files will be called: a short-time
Fourier transform, a wavelet transform, and matching pursuit.
The disagreement is largest on thick beds and smallest on thin ones: 12.6 Hz between
the methods at 30 ms and 5.3 Hz at 8 ms. That is the opposite of what most people expect, and it
matters before a thickness from one program is contoured beside a thickness from another.
The three panels below are how those numbers were produced: time down, frequency
across, brightness for how much energy the trace holds at each. They are the display module 03
introduced. Reading them is not necessary to take the point of this step, which is in the
readouts beneath them.
Agreement between methods is not the same as being right. On a 30 ms bed, where
1/(2T) predicts 16.7 Hz, the Fourier transform reports 17.1, the wavelet transform 22.9 and
matching pursuit 29.7. They disagree by 12.6 Hz and the Fourier answer is the one near the
prediction. Take the bed down to 8 ms, where 1/(2T) predicts 62.5 Hz, and the three read
36.8, 40.9 and 35.6: now they agree with each other to within 5.3 Hz and all three are more than
20 Hz below the right answer. Agreement has gone up while accuracy has collapsed, because the bed
has thinned past what the recorded band can express and every method is reporting the wavelet
instead. Three programs agreeing is evidence that they share an assumption, not that the
assumption holds.
2What each method assumes
The analysis element, drawn
Why this step is here. Three methods analyze the same trace and disagree. What is each one assuming?
To measure a frequency, a method has to look at a piece of trace. The three
differ in which piece they look at, and that single choice is where the disagreement in step 1
comes from. The panel below draws it: each row is one frequency, and the shaded box is the
length of trace that method uses to measure it.
Fixed window. The short-time Fourier transform uses the same length of trace
at every frequency, set by one number the operator supplies. At 60 ms a 15 Hz component gets
barely one cycle to be measured in, and a 60 Hz component gets almost four. The same window
therefore treats the low end of the band much more coarsely than the high end.
Fixed cycles. The wavelet transform holds the number of cycles constant
instead, so its box is long at low frequency and short at high. Every frequency is measured over
the same number of cycles, which means the length of rock it averages over is roughly the same
at all of them. Time detail improves toward the high end and frequency detail toward the low.
No window. Matching pursuit does not cut out a piece of trace at all. It
holds one waveform, slides it along, and asks where in the trace that shape fits. The faint
copies in the third column are the same shape at other positions. Because nothing is being cut,
there is no window length to choose, and the assumption moves instead to the shape: whatever the
method holds is what it will find.
What each method looks at, to measure one frequency
One row per frequency; the shaded box is the piece of trace used
The same thing as a number, at every frequency
Crimson: fixed window. Teal: wavelet family
STFT length, at 20 and 60 Hz—
Wavelet length, at 20 and 60 Hz—
STFT frequency resolution—
Wavelet frequency resolution—
Neither choice is better, and the difference is not small. At a 60 ms setting the
fixed window is 60 ms at both 20 and 60 Hz. The wavelet family is 100 ms at 20 Hz and 33 ms at
60 Hz, so at the low end it averages over three times as much section as the fixed window and at
the high end over half as much. A target sitting low in the band is described by the two methods
over lengths of rock that differ by a factor of three, which is why they can report different
thicknesses for it. Which one suits a survey depends on where in the band the target sits, and
that is a decision about the geology rather than about the software.
3What to do about it
One wedge, measured three ways, across every thickness
Why this step is here. Does the thickness extracted from a decomposition depend on which program produced it?
The three curves below are the same wedge measured by the three methods. At a 30 Hz
wavelet their mean errors are 25%, 35% and 37%, and at their worst they disagree with each other
by 23.4 ms on a 34 ms bed — an interval about two thirds of the bed itself.
What to do with that in an interpretation. Where the three agree, the
thickness is a property of the data and can be carried forward. Where they disagree, the spread is
a measurement of how much the answer depends on the assumption behind each method, and it belongs
with the number rather than being resolved by picking a favorite. Running two programs and mapping
the difference is a simpler uncertainty estimate than most, and it is the one thing the existence
of three programs makes easy.
Stated as a working rule: run the decomposition twice with different programs, map
the two results, and subtract one from the other. Where the difference map is near zero the
thickness is a property of the data. Where it is large, the number there depends on which
assumption was made, and the size of the difference is how much. That map goes alongside the
thickness map, not instead of it.
Steps 4 and 5 are the arithmetic behind this and are marked as advanced. Nothing
in the modules that follow depends on them.
All three are wrong by comparable amounts, in different places. Over the whole wedge the mean errors are 25% for the Fourier transform, 35% for the wavelet transform and 37% for matching pursuit. No method is accurate where the others are not; each is accurate over a different part of the wedge. The spread between them at one thickness is therefore an estimate of the uncertainty, and it requires no information the interpreter does not already have, since the second estimate comes from the same data.
4Advanced concept: resolving past the uncertainty bound
Two tones inside one short window
Why this step is here. Module 02 measured a resolution bound that no window escapes. Some programs appear to beat it. How?
A sparse inversion is not bound by it, because it is not transforming. It asks which few frequencies, if present, would produce the data being seen. That is a model rather than a measurement, and it resolves detail no window could.
Two clean tonesa model the solver fits
A broadband eventa model it does not fit
Fourier limit, 1/T—
Fourier peaks found—
Sparse peaks found—
Sparse peaks on the broadband event—
The same behavior that resolves two tones splits one broad event into several. In a 40 ms window the Fourier limit is 25 Hz, and two tones 8 Hz apart are one blob to the transform and two peaks to the inversion. Given a broadband wavelet instead, which is one event and not several, the inversion returns a set of narrow spikes. It answers the question it was asked — which few frequencies explain this — and the answer is wrong because the premise was.
5Advanced concept: matching pursuit at a tuned bed
Fitting one event at a time to interfering events
Why this step is here. Matching pursuit fits one event at a time and subtracts it. What happens when two events overlap?
The panels show the fit and the residual. The bed thickness slider in the header is the control that matters: taking it from well above tuning down through it changes what the algorithm does.
What the residual panel is showing about the rock. A dictionary of waveforms
fitted one at a time reproduces a well-separated top and base with two or three atoms. As the bed
thins through tuning the top and base stop being separable events, and the algorithm answers with
more atoms rather than fewer: seven land near the bed at 20 ms against two or three above and
below it. Those extra atoms have times and frequencies, they plot as points on a display, and none
of them corresponds to an interface in the model.
On real data the same thing happens wherever the section stops resembling the
dictionary: at a fault plane, across a rugose unconformity, through a heterolithic interval with
many closely spaced contrasts. The fit is forced, the residual stays small, and the excess atoms
are delivered as structure. A sparse result that looks unusually detailed over a stratigraphically
complicated interval is the case to check against the seismic rather than the case to trust.
Trace, model and residualgray, crimson, teal
Where the atoms landedagainst the true reflections
Atoms fitted—
Residual energy—
Atoms near the bed—
First atom frequency—
Below tuning the algorithm stops seeing the top and base as separate events. On a 40 ms bed it places three atoms in the bed window and leaves 0.6% of the energy in the residual. The fit is excellent and the decomposition is wrong: the extra atoms are describing the interference pattern rather than reflectors. A small residual measures how well the model fits, not whether the model was the right one.
Why it matters
Choosing, and reading someone else's choice
The program name in a file header states what was assumed, and belongs with the frequency list and the balancing parameters when a volume is described.
Choosing for a target. Thin, high-frequency targets favor the wavelet transform, whose
time resolution improves where the target lives. A narrow-band question over a long interval
favors a fixed window.
Deciding whether extra detail is real. A decomposition that resolves more than a
transform of the same data has supplied the difference from its own assumptions.
Interpreting near a tuned bed. Matching pursuit's bias is largest exactly where thin-bed
work happens, which matters before building a thickness map from it.
Estimating uncertainty. Two methods disagreeing gives an error bar that neither method provides on its own, and it requires no data beyond what has already been decomposed.
Reading a paper or a report. Results that hold under one decomposition and not another
are results about the decomposition.
Mistakes made when choosing a method. The most common is treating the sharpest picture as the most accurate. Sharpness in a time-frequency panel comes partly from the method's assumptions, and a model-based method returns sharp output whether or not its model fits. The second is reading agreement between two methods as confirmation, when methods agree wherever the data are simple enough for all of them.
The AASPI documentation describes spec_max_entropy and spec_clssa as though they were higher-resolution versions of the same measurement. They resolve detail a transform cannot, on the strength of an assumption about the data, and that assumption is what a reader should weigh.
Exercises
Find where the three pictures disagree.Why: methods agree wherever the data are simple, so the disagreement is where the choice of method matters.
In step 1, read the three peak frequencies at
the bed, then take the bed thickness down toward its minimum.
Before reading them: three methods, one trace, one true thickness. Should they agree? And if they converge as the bed thins, does that mean they are getting more reliable?HintThe result is the opposite of
what most people expect. On a 30 ms bed the three read 17.1, 22.9 and 29.7 Hz against a
prediction of 16.7 — a spread of 12.6 Hz, with only the Fourier transform close. On an 8 ms
bed they read 36.8, 40.9 and 35.6 against a prediction of 62.5 — a spread of only 5.3 Hz, and
all three wrong by a wide margin. The methods converge on the thin bed because none of them
can see the tuning peak any more, so all three fall back on the wavelet and give the same
wrong answer. Close agreement between decompositions is not evidence that the answer is
right; it can mean the measurement has failed the same way three times.
Compare the two windows.Why: a fixed-length window and a fixed-cycle window place the same resolution in different parts of the band.
In step 2, read the analysis length at 20 Hz and at 60 Hz for
both methods, then change the STFT window slider.
HintAt a 60 ms setting the Fourier
window is 60 ms at both frequencies by construction, with 33.3 Hz of frequency resolution at
each. The wavelet family runs 100 ms at 20 Hz and 33 ms at 60 Hz, with 5.3 Hz and 15.9 Hz of
frequency resolution. The frequency resolution readouts show the consequence: the wavelet transform is much
coarser in frequency at 60 Hz than the fixed window is. Neither is better in general. The
wavelet distribution suits seismic because thin beds are brief and high-frequency, so the
method spends its time resolution where the short events are and its frequency resolution
where the long ones are.
Beat the bound, then break it.Why: a model-based method returns sharp output whether or not its model fits the data.
In step 4, bring the tone separation below 1/T and count
the peaks each method finds. Then look at the right-hand panel.
HintBelow the Fourier limit the
transform reports one peak and the sparse solver reports two, in the right places. That is a
real gain and not a trick: the solver has extra information, namely the assumption that only a
few frequencies are present, and the data happen to satisfy it. The right-hand panel is the
same solver on a broadband wavelet, where the assumption is false, and it produces several
spikes where the truth is one smooth hump. A method cannot know which situation it is in, and
neither can a picture.
Break matching pursuit on a tuned bed.Why: a small residual measures how well the model fits, not whether it was the right model.
In step 5, take the bed from 40 ms down to 4 ms,
watching the atom count and the residual.
HintOn a 40 ms bed it places
three atoms in the bed window and leaves 0.6% of the energy behind. At 6 ms it places two and
leaves 2.6%, and the strongest atom reads 36.8 Hz on data built with a 30 Hz wavelet. The top
and base have merged into a single composite peak and a greedy algorithm sees one event. The residual stops falling, and the frequency of that single atom belongs to the
composite rather than to either reflection. Everything downstream of that fit inherits the
error. This is the documented weakness of the greedy approach and the reason
spec_cmp solves for its peaks simultaneously
instead.
Use the disagreement as an error bar.Why: running a second program gives an uncertainty estimate for a thickness map without acquiring anything further.
In step 3, look at where the three curves
separate and compare with where each one departs from the truth.
HintMean errors of 25%, 35% and
37% put the three methods within reach of each other, so none is simply better. Their largest
disagreement is 23.4 ms and it sits at 34 ms of true thickness — the thick end, where the
tuning peak has fallen toward the bottom of the band, rather than the thin end where attention
usually goes. No single decomposition reports an uncertainty, and the temptation is to treat a
smooth attribute map as a confident one.
Computing the same attribute two ways and mapping the difference takes one extra run and gives
something no single volume contains: a map of where the answer depends on the method,
which is a map of where not to trust it.
Give one disagreement between methods three explanations.Why: a disagreement has several causes, and only one of them is that a method is broken.
In step 1, find a bed
thickness where the three methods differ, then vary the noise and the wavelet.
HintMethods disagree for reasons
that are not equally interesting. The signal may be outside the recorded band, in which case
all three are reporting the wavelet and the disagreement is about how each one fails, not
about the earth — that is what happens on the 8 ms bed. The events may be interfering, in
which case matching pursuit is biased in the specific way step 5 shows and the transforms
are not. The data may be noisy, in which case the model-based methods have more freedom to
fit the noise. Or one method's assumption may genuinely fit the earth better than the others,
which is the case worth acting on and the rarest of the four. Raising the noise separates the
third from the rest; changing the wavelet separates the first. Disagreement is information
about the measurement before it is information about the rock.
Key points
The programs compute different things, because each assumes something different about
what a trace is made of: sines in a fixed window, scaled copies of one shape, a few discrete
wavelets, or a spectrum with few frequencies in it.
A fixed window spends its resolution evenly; a wavelet family spends it with
frequency. A fixed window length against a fixed number of cycles is the whole difference between the first
two, and neither escapes module 02's product.
A model-based method can beat the uncertainty bound when the data fit its model, which
is real and useful — two tones closer than 1/T come back separated.
The same mechanism invents structure when the model is wrong. A sparse solver given a
broadband event returns spikes that were never in the data, and nothing in the output says so.
Greedy matching pursuit is biased at tuning, exactly where thin-bed work happens,
because it fits the composite as one event. Simultaneous fitting reduces this and does not
remove it.
The disagreement between two methods is an error bar obtained from the data already in hand — but note
that agreement is not evidence of accuracy. Three methods converge on a bed too thin for any of
them, and all three are wrong together.
Words introduced here
short-time Fourier transform, STFT
One window length used at every frequency. The method module 02 built by hand.
continuous wavelet transform, CWT
A family of filters each holding the same number of cycles, so the window is long at low
frequency and short at high. What spec_cwt uses.
matching pursuit
Fitting the largest event in the trace, subtracting it, and repeating on the remainder.
atom
One fitted wavelet in that process. Extra atoms at a tuned bed describe interference rather
than reflectors.
residual
What is left after the fitted atoms are subtracted. A small residual means the model fits,
not that the model was correct.
sparse inversion
Asking which few frequencies, if present, would produce the observed data. A model rather
than a measurement, and not bound by the window limit.
uncertainty bound
The floor under the product of time width and frequency width, measured in module 02. It
binds every fixed-window method and no model-based one.
greedy algorithm
One that takes the largest available fit at each step without revisiting earlier choices.
The bias at tuning follows from that.
Method
What is computed, and what is left out
All four methods come from assets/spectral.js and each
was verified against a case with a known answer before this module was built: the Morlet family
against the closed-form Gaussian bandwidth, the short-time transform against a pure tone and its
window floor, matching pursuit against three planted atoms recovered to within 0.04 Hz, and the
sparse solver against two tones separated by less than the Fourier limit.
The wavelet transform uses a complex Morlet family built the way
spec_cwt builds it, scaled from a mother wavelet at 1 Hz so that the ratio of
center frequency to bandwidth is constant. One departure from the documentation is worth recording:
its Figures 4 and 5 pair their quoted bandwidths with the opposite variances, and the quantity it
labels a half-bandwidth is numerically the full half-power bandwidth. The arithmetic here follows
the numbers rather than the captions.
Matching pursuit here is greedy — it locates envelope peaks above a threshold,
takes the instantaneous frequency at each, fits a complex Ricker atom, subtracts it and repeats.
spec_cmp fits all peaks above its threshold simultaneously by solving a banded
system, which reduces the tuned-bed bias that step 5 demonstrates. One correction was needed to make
the documented recipe work: the instantaneous frequency at the envelope peak of a Ricker is 2/√π
times its peak frequency, about 13% high, and taking the instruction literally fits every atom with
a wavelet too short and leaves several percent of the input energy in the residual.
The sparse spectrum stands in for spec_max_entropy. It
solves the same underdetermined problem with an iteratively reweighted model norm rather than the
constrained least-squares formulation in the literature, which is a simpler solver reaching a
similar answer. It is computed only in step 4, on single windows, because a solve at every sample is
too slow for a page that redraws on a slider.
Simplifications, stated plainly. Every transform here is normalized so that a
cosine of amplitude A at the analysis frequency returns magnitude A, which AASPI does not do — so
shapes and ratios are comparable with production output and absolute magnitudes are not. There is no
balancing anywhere in this module, deliberately, so the comparison is between methods rather than
between processing choices. The S-transform is not included: none of the AASPI programs use it, and
it would be a fourth comparison point rather than a fourth program.
References
Mallat, S., and Z. Zhang, 1993, Matching pursuits with time-frequency dictionaries:
IEEE Transactions on Signal Processing, 41, 3397–3415.
Sinha, S., P. Routh, P. Anno, and J. Castagna, 2005, Spectral decomposition of seismic data
with continuous-wavelet transform: Geophysics, 70, P19–P25.
Portniaguine, O., and J. Castagna, 2004, Inverse spectral decomposition:
SEG Technical Program Expanded Abstracts, 1786–1789.
Castagna, J. P., and S. Sun, 2006, Comparison of spectral decomposition methods:
First Break, 24, 75–79.
Liu, J., and K. J. Marfurt, 2007, Instantaneous spectral attributes to detect channels:
Geophysics, 72, P23–P31.
AASPI, Spectral Attributes: Programs spec_cwt, spec_cmp and spec_max_entropy,
University of Oklahoma.
Next up
09 · Three ways to make a low-frequency anomaly, and one to miss a reservoir
The last module in the set, and the one to read before presenting anything: the several things
other than the target that produce a spectral anomaly, and how to tell them apart.