Repository navigation
DWBA/SDWBA model flavor and resolving cross-software disagreement #73
brandynlucca
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
DWBA/SDWBA model flavor and resolving cross-software disagreement
Hi @gavinmacaulay and @jmjech (and anyone else contributing to
echoSMs), I've recently been doing some cross-implementation comparisons for various models (e.g., #68) and have gotten to the SDWBA and DWBA. I've run into a few discrepancies/differences in DWBA/SDWBA results fromechoSMsand other software, as well as published equations/formulations, and I'd appreciate y'all's perspective below. This grew into more material than I expected, so I've put the main questions first and linked the supporting comparisons in collapsible sections. I welcome any and all corrections where I've misunderstood a convention or missed relevant context. Thank you for any time you give any of these questions.The
echoSMspackage states that it uses the Stanton et al. (1998) and Demer and Conti (2003) models for DWBA and SDWBA, respectively. Its predictions differ from other implementations and the outputs do not appear to coincide with the description by Demer and Conti (2003). Some or all of this may be a simple matter of clarifying conventions and the documentation, but nonetheless, there seem to be inconsistencies as well with the description between the Jech et al. (2015) paper as well. This discussion concerns the formulationechoSMsshould implement, including its integration rule, phase statistics, averaging, and whether to use the phase definitions from Demer and Conti (2003; 2004), Conti and Demer (2006), and/or some other notation.Questions for discussion
Important
1. DWBA integration in
echoSMs.echoSMsevaluates a nodal disc sum, assigning full adjacent-interval lengths to the endpoints. ref1 The interval-based implementations integrate linearly interpolated positions and radii. IncreasingechoSMsfrom 15 to 700 nodes reduces the discrepancy for the same cylinder. ref2The documentation should explain how the nodal sum approximates Stanton et al. (1998) Eq. (5), including whether the supplied positions represent disc centers or physical boundaries and how endpoint weights are assigned.
Important
2. SDWBA averaging in
echoSMs.echoSMsaverages backscattering magnitude before converting to TS. ref3 Demer and Conti (2003), the cited SDWBA reference, average backscattering cross sections.Important
3. The number of independent phase elements.
echoSMsassigns one independent phase to each node, giving 15 phase elements for the 14-interval cylinder and 700 for the refined profile. Refinement therefore changes both the integration accuracy and the stochastic model. ref4The documentation should distinguish the numerical integration from the definition and calibration of independent phase elements. At fixed geometry, frequency and phase standard deviation, approximately uniform refinement reduces the incoherent contribution to expected power roughly as$1/N$ , where $N$ denotes the number of independent phase elements. ref5 This can bring predictions closer to those of
SDWBA_TSand the underlying Jech et al. (2015) (S)DWBA benchmarks in some cases, but does not establish equivalence between their phase definitions.Important
4. Clarifying which SDWBA parameterization and flavor.
echoSMskeeps the supplied node count and phase standard deviation fixed across frequency and length. Conti and Demer (2006) introduce coupled scaling of the cylinder count and phase deviation usingImportant
5. Phase convention and Jech et al. (2015) benchmark agreement.
echoSMsappliesSDWBA_TSappliesSDWBA_TSand the SWFSC applet agree more closely with the benchmarked SDWBA values in the spheroid example from Jech et al. (2015). ref8Investigation
For reference, the comparisons use common shape dimensions, material properties, orientation, and surrounding medium. The coordinate-based implementations received identical initial position and radius vectors. SDWBA retains each implementation's own resampling and phase rules; however, shared arguments are parameterized identically (e.g., initial phase deviation). The centerline of shapes was offset to be 1 mm above the origin.
Note
Investigation parameterization table
DWBA implementations
The DWBA was used for the first copmarison to isolate whether downstream inconsistencies in SDWBA predictions were due to phase definitions or other structural components.
Note
Software DWBA implementation differences table
SDWBA_TSechoSMsSDWBA.jlacousticTSWarning
One additional note: the exactly end-on Bessel limit for$ka$ , whereas McGehee et al. (1998), $\frac{ka}{h}$ . Due to how
SDWBA_TSisacousticTS, andSDWBA.jluseechoSMshandles the local angle definitions, it was parameterized with the same number of cylinders as the models, and then re-ran using 700 nodes to evaluate null frequency precision.Note
DWBA incidence angles and frequency spectra
Incidence angle
Left: 70/10 mm spheroid. Right: 70/10 mm cylinder. Frequency: 38 kHz. Broadside:$\frac{\pi}{2}$ .
acousticTS,SDWBA_TS, McGehee et al. (1998), and the SWFSC applet generally track closely.echoSMsandSDWBA.jlshow different off-broadside behavior despite receiving the same initial profiles. The additional 700-nodeechoSMscurve shows its sensitivity to spatial discretization. These are deterministic differences, independent of stochastic phase handling.Frequency
Left: 75°. Center: 90°. Right: 105°. Cylinder length/radius: 38.35/1 mm. Frequency: 38–400 kHz.
acousticTS,SDWBA_TS, McGehee et al. (1998), and the SWFSC applet once again generally track closely.echoSMsshifts minima through its nodal integration. Increasing its resolution reduces the difference from the four former models at 120 kHz broadside from 0.60 to 0.01 dB.SDWBA.jldevelops a different high-frequency response. It is worth noting that shifting the position vector's center line onto the origin makes the DWBA results fromSDWBA.jlagree with the former four models withinSDWBA.jllocal-angle calculation depends on the absolute position, although translation should not alter physical TS. Agreement on an origin-aligned shape profile conceals this problem.SDWBA implementations
Let$\mathscr{f}_\mathrm{bs}(j)$ denote the complex DWBA backscattering amplitude of component $j$ , and let $\mathcal{Z}_j\overset{\mathrm{iid}}{\sim}\mathcal{N}(0,1)$ denote independent standard normal draws, each with mean zero and variance one. The rescaled phase parameter is $\mathrm{sd}_\varphi(f,L)$ . Reference inputs are $N_0,f_0,L_0,\mathrm{sd}_{\varphi_0}$ . The count column below describes the 38.35 mm cylinder: its 15 boundary points define 14 intervals.
Note
SDWBA implementation differences table
SDWBA_TSechoSMsechoSMs(700 nodes)SDWBA.jlacousticTSWarning
echoSMsassigns independent phases to nodes, giving 15 phase elements for the same 14-interval input and 700 in the additional curve. BothechoSMsvariants use the sameSDWBA_TSandacousticTSretain radii from the supplied samples when repartitioning this profile.Note
Phase deviation definitions
acousticTS,echoSMs, andSDWBA.jlapplySDWBA_TSapplieswhere$\mathcal{Z}_{jk}\overset{\mathrm{iid}}{\sim}\mathcal{N}(0,1)$ for $k = 1, 2, 3, 4$ , independent across components and terms. The applet draws a different angle for each sine/cosine term, allowing an individual component's magnitude to change. A single phase rotation would preserve that magnitude.
Averaging operations also differs. With$\mathscr{f}'_\mathrm{bs}(j)$ denoting each implementation's phase-perturbed component, $20\log_{10}|\langle \sum_j\mathscr{f}'_\mathrm{bs}(j) \rangle|$ , while the other ensemble curves use $10\log_{10} \langle |\sum_j\mathscr{f}'_\mathrm{bs}(j)|^2 \rangle$ , where $\langle \cdot \rangle$ corresponds to the average across realizations.
echoSMsreturnsCaution
Attempting to derive the squared phase definition used by
SDWBA_TSA note on the phase definition by
SDWBA_TS: squaring the phase deviation allows for much stronger agreement with the benchmark values, particularly for the Jech et al. (2015) prolate spheroids. However, Calise and Skaret (2011) describe Gaussian phases by their standard deviation without specifying this extra square. It is quite possible I am missing something here or not thinking about this correctly. With that being said, the only thing that immediately comes to mind that justifies this squared standard deviation are correlated phases... so below I took a stab at that to see if it could potentially explain it. Crucial: the construction below does not establish why the implemnentation squares the parameter.For fixed scattering contributions,$\mathscr{f}_\mathrm{bs}$ , TS depends on the phase differences between fixed copmonents. A random phase shared by every component rotates their sum without changing its magnitude. For jointly Gaussian, zero-mean phases:
Colosi and Morozov (200), Eqs. (28)-(29) use this dependence on phase-difference variance to describe coherence between ocean acoustic modes. This supports the general relationship between covariance and interference, although their study does not address krill scattering.
To illustrate that connection, suppose every component has phase standard deviation$\mathrm{sd}_\varphi$ and the same pairwise correlation $\rho_\varphi$ , with $0 \leq \rho_\varphi \leq 1$ . These phases can be represented as:
where$\mathcal{Z}_0, \mathcal{Z}_1, \ldots$ are independent standard normal draws. The independent contribution affecting TS has standard deviation $\mathrm{sd}_\varphi \sqrt{1 - \rho_\varphi}$ , giving, for distinct components:
This correlation therefore reduces the effective perturbation, but does not by itself produce a quadratic dependence. Taht would require the independent contribution to grow faster than the shared contribution as the underlying motion increases. One possible mechanism is shared displacement producing a first-order phase change while local ending produces a second-order change.
The position-dependent backscatter phase in Stanton et al. (1998), Eq. (5) illustrates this to some degree. Consider two components separated by a fixed distance$d$ , initially aligned with the incident wave. Tilting their separation through a small angle $\theta$ changes their relative phase by:
While this is an illustrative expansion of the geometric phase, it is not a mechanism established by that paper for the squared phase deviation used by$1 - \rho_\varphi \propto \mathrm{sd}_\varphi^2$ . That is the proposed connection between the geomeetric dependence and changing phase correlation.
SDWBA_TS. But if shared displacement and local bending both grow with the same underlying motion amplitude, shared phase variability could grow linearly while differential variability grows quadratically. At small amplitudes, the shared contribution would dominate the total phase variance. If the local residuals are treated as independent, this would yield approximatelyThe proposed mechanism could make the independent phase standard deviation proportional to$\mathrm{sd}_\varphi^2$ , but it does not determine the proportionality constant. To reproduce the implementation exactly, the Gaussian construction must assume:
At$\mathrm{sd}_\varphi=\sqrt{2}/32$ , this requires $\rho_\varphi \approx 0.998$ , so approximately 99.8% of each component's phase variance is shared. This remains an assumed construction, however. The geometric exaxmple neither determines its coefficient nor establishes independent Gaussian residuals. Its quadratic behavior also depends on the initial alignment, and squared Gaussian angular fluctuations are themselves non-Gaussian. It supplies a plausible physical route to quadratic differential phase, but does not establish why
SDWBA_TSsquares its Gaussian phase-deviation parameter.Note
Phase scaling
70/10 mm spheroid. Top left: rescaled phase parameter. Top right: actual random-angle standard deviation. Bottom left: native SDWBA minus each implementation's zero-phase result on its own integration grid at 38 kHz. Bottom right: expected mean power using identical component amplitudes on the common 100-interval profile and the three applied phase standard deviations. Colors identify the phase prescriptions. Line types distinguish coherent, incoherent and total power.
The SWFSC applet's rescaled phase parameter increases as$\sqrt f$ . $\frac{1}{f}$ above its count floor, $N_0$ . Squaring these parameters gives applied angle standard deviations proportional to $f$ and $f^{-2}$ , apart from integer-count steps. The different operations for computing rescaled $\mathrm{sd}_\varphi(f,L)$ and the actual random-angle standard deviation yield different results:
SDWBA_TS's decreases approximately asacousticTSSDWBA_TSFor fixed component amplitudes and independent Gaussian phase angles with a common variance$\mathrm{Var}(\varphi_j)$ :
where the variance is$\mathrm{sd}_\varphi(f,L)^2$ for $\mathrm{sd}_\varphi(f,L)^4$ for $\mathrm{sd}_\varphi(f,L)^4$ , although its realization distribution differs. The SWFSC applet and $\mathscr{f}_\mathrm{bs}(j)$ , without an angular threshold. Assessing these differences requires reconciling the applied phase distributions with the published standard deviation and calibration.
acousticTS,echoSMsandSDWBA.jl, andSDWBA_TS. The same mean-power identity holds for the SWFSC applet's four-angle update using each angle's varianceSDWBA_TS's small applied angles preserve coherent cancellation here, keeping results close to the DWBA outputs.acousticTS's larger applied standard deviation raises the incoherent contribution until it dominates deep off-broadside minima, resulting with a much higher effective TS prediction floor for off-incidence angles. This contribution varies with incidence throughNote
SDWBA frequency spectra and small phase deviations
Frequency
Left: 75°. Center: 90°. Right: 105°. Same cylinder, materials and frequency range as the DWBA spectra.
Differences are most pronounced near off-broadside minima, where phase perturbations weaken cancellation between component amplitudes. The SWFSC applet's 75° and 90° spectra are distinct. A shared reference phase SD does not ensure the same effective phase distribution after the operations in the table.
Zero and small phase deviations
At zero phase deviation, SDWBA and DWBA agree to numerical precision across the tested angles and frequencies when both use the same shape discretization. Changing that discretization can change TS even at zero phase. For the spheroid at 38 kHz, a reference phase standard deviation of$\mathrm{sd}_{\varphi_0}=0.001$ rad gives $\mathrm{sd}_\varphi=0.003147$ rad under
acousticTS's frequency and length scaling. TS changes by less than 0.0001 dB at broadside and increases by 2.275 dB at the 26° minimum. Small phase perturbations weaken destructive interference, so their relative effect is greatest near deep minima.Jech et al. (2015) reference comparisons
The figures use the archived columns accompanying Jech et al. (2015). Modal series is$\mathrm{sd}_\varphi(f,L)\mathcal{Z}_j$ .
Benchmark, DWBA (Jech et al., 2015) isGorska_DWBA_TS, and SDWBA (Jech et al., 2015) isDemer_SDWBA_TS. DWBA and SDWBA panels contain their respective model column. For the finite cylinder, the modal-series reference is the paper's DCM approximation, applicable near broadside at approximately 70–90°. At the spheroid's 38 kHz/26° minimum, the archived SDWBA value is −137.41 dB.acousticTSgives −105.00,SDWBA_TS−135.17, SWFSC applet −136.95,SDWBA.jl−115.70, andechoSMs−115.38 dB, or −123.48 dB with 700 nodes.acousticTS's exact Gaussian expectation is −105.01 dB, confirming the discrepancy persists without Monte Carlo noise. Its effective phase standard deviation is 0.139082 rad.SDWBA.jland bothechoSMsvariants retain 0.044194 rad despite sharing the expressionNote
All comparisons: DWBA on the left, SDWBA on the right
Figure 3(D): sphere, frequency.
Figure 5(D): spheroid, frequency through 200 kHz.
Figure 6(D): spheroid, frequency through 400 kHz.
Figure 7(D): spheroid, incidence at 38 kHz.
Figure 8(D): cylinder, frequency.
Figure 9(D): cylinder, 70–90° incidence at 38 kHz.
Figure 10(D): cylinder, 0–90° incidence at 38 kHz.
All reactions