$ \newcommand{\RR}{\mathbb{R}} \newcommand{\NN}{\mathbb{N}} \newcommand{\OO}{\mathcal{O}} \newcommand{\mathcow}{\OO} \newcommand{\QQ}{\mathbb{Q}} \newcommand{\ZZ}{\mathbb{Z}} \newcommand{\CC}{\mathbb{C}} \newcommand{\KK}{\mathbb{K}} \newcommand{\PP}{\mathcal{P}} \newcommand{\TT}{\mathcal{T}} \newcommand{\BB}{\mathcal{B}} \newcommand{\LL}{\mathcal{L}} \renewcommand{\Re}{\operatorname{Re}} \renewcommand{\Im}{\operatorname{Im}} \newcommand{\veca}{\vec{a}} \newcommand{\vecb}{\vec{b}} \newcommand{\vecd}{\vec{d}} \newcommand{\vece}{\vec{e}} \newcommand{\vecf}{\vec{f}} \newcommand{\vecn}{\vec{n}} \newcommand{\vecp}{\vec{p}} \newcommand{\vecr}{\vec{r}} \newcommand{\vecu}{\vec{u}} \newcommand{\vecv}{\vec{v}} \newcommand{\vecx}{\vec{x}} \newcommand{\vecy}{\vec{y}} \newcommand{\vecz}{\vec{z}} \renewcommand{\vec}[1]{\mathbf{#1}} $ Shaw Research Notes

June 17th, 2021

We numerically verify the wave response calculated in the previous report and motivate the need for a higher order method.


To-Do List Snapshot


Some Corrections

Figure 3 in report 2021-06-03 was incorrectly interpreted as ill-conditioned in the computation of the pulse-speed. The calculation of the pulse-speed $c \approx 4$ is very well-conditioned as the derivative is large near the root. However, the formula for the pulse-width is very sensitive to the value of $c$ as $c \to 4$ making numerical approximation of the pulse-width, and by extension the traveling pulse soltuion, infeasible.

There was a small error in the previous report in the calculation of the asymptotic approximation of the wave repsonse function for the specific example chosen. The correct formula is used below.


Spatially Homogeneous Pulse Stimulus

Last week (report 2021-06-10) we have derived the wave-response function $$ \epsilon \nu(t) = \frac{\mu c+1}{\mu^2 c \theta} \int_0^t \int_0^\infty e^{-\xi/c\mu} \epsilon I(\xi, t) \ d\xi \ d\tau $$ for general stimului $\epsilon I(\xi, t)$. We further simplified this for the case $\epsilon I(\xi, t) = I_0 \delta(t - t_0)$ to obtain $$ \nu(t) = \frac{\mu c+1}{\mu \theta} I_0. $$

The rest of the report focused on certain numerical difficulties in measuring the pulse-speed and pulse-width when simulating an unperturbed traveling pulse solution, in anticipation of these difficulties confounding our attempts to numerically verify our asymptotic approximation of the wave-response function. Such a discussion is more clearly motivated by first attempting said verification.

In Figure 1, we attempt to create a plot similar to Figure 3(b) in Kilpatrick & Bressloff 2010, comparing the measured wave response from a stimulus $I(x, t) = I_0 \delta(t - t_0)$ to our asymptotic approximation. Initially, the results are promising, but this is slightly deceptive. Figure 1 does not use the value $c_\text{analytic} = 3.9999$ found by root-finding as specified in report 2021-06-03. We will refer to this as the analytic value, as it is the numerical result from a well-conditioned analytic formula. Figure 1 does not use this analytic value, but rather it simulates the traveling wave solution, measures the pulse-speed before stimulation, and uses this measured value for $c_\text{measured} \approx 3.9802$ in the asymptotic formula. We will call this the measured value.

Fig 1. The measured wave response compared to the semi-analytic asymptotically predicted wave response for stimuli of the form $I(x, t) = I_0 \delta(t - t_0)$. Note that the formula uses the measured value for the pulse-speed $c$ rather than the value found by solving the conditions for $c$ and $\Delta$. (Parameters $\mu= 1$, $\alpha= 5$, $\gamma= 1$, and $\theta = 0.1$.)
In Figure 2, we do not use the measured speed. Since the measured speed does not closely match the analytic speed, the results are much less meaningful.
Fig 2. The measured wave response compared to the analytic asymptotically predicted wave response for stimuli of the form $I(x, t) = I_0 \delta(t - t_0)$. Note that the wave speed of the simulation differs from the analytically predicted wave speed. (Parameters $\mu= 1$, $\alpha= 5$, $\gamma= 1$, and $\theta = 0.1$.)

Lastly, Figure 3 shows measured wave response function, adjusted for the measured speed, compared to the asymptotic approximation using the analytically computed speed. This is, perhaps, a more honest comparison. The difference in Figures 1 and 3 is only in asymptotic approximation.

Fig 3. The measured wave response, using the measured speed, compared to the analytic asymptotically predicted wave response using the analytic speed, for stimuli of the form $I(x, t) = I_0 \delta(t - t_0)$. (Parameters $\mu= 1$, $\alpha= 5$, $\gamma= 1$, and $\theta = 0.1$.)

As the asymptotic approximation is affine in $c$, the constant difference is given by $$ \nu_\text{analytic}(t) - \nu_\text{measured}(t) = (c_\text{analytic} - c_\text{measured}) \frac{I_0}{\theta}. $$ Visually the difference is still small, but but a more precise comparison in the form of a convergence study would put any uncertainty to rest. This has proven difficult, as the front locations, relative to the pulse-speed, do not converge to a constant value, but rather ocillate rappidly between time-steps.


Simulation Convergence

The measurment errors and ocillations are presumably due to the large grid-spacing in the spatial dimension and the low-order accuracy of the convolution. The convergence study in Figures 4 and 5 would seem to confirm this. They show our measurements of the speed and width over the course of a simulation for a series of simulations with progressivly smaller grid-spacing. These simulations do not incorporate external sitmuli and are initialized with our analytic formula for the traveling wave soltuion.

Fig 4. Measurments of the pulse width and pulse speed. These simulations are without external stimulation, and are initialized by the analytic formula for the traveling wave solution. (Model parameters: $\mu= 1$, $\alpha= 5$, $\gamma= 1$, and $\theta = 0.1$. Simulation parameter: $\Delta t = 10^{-2}$.)
Fig 5. As in Figure 4, but focusing on the end behaviour.

We see that the solutions seem to be converging (though not to our predicted speed and pulse-width) up to a point, but the oscilations remain. We expect that a higher order algorithm will give better results

Improving Accuracy

Presently, the accuracy and speed of our simulations is limited by the convolution step. We precompute a dense matrix for the weight function and then perform the convolution by applying this matrix to the output of the firing-rate function. The matrix multiplication limits our speed as it has $O(n^2)$ complexity, and the discretization of the non-smooth Heaviside firing-rate function limits our accuracy to $O(h)$ (despite using the trapezoidal rule).

We can improve this by calculating the convolution semi-analytically, using the treshold-crossing locations as we have for previous models. However, in this case, locating these locations to higher than $O(h)$ is more difficult due to the non-smoothness of the solutions. Using polynomial interpolation to find the threshold-crossings more accurately fails since it requires smoothness of the underlying function.

We propose the following work-around that should identify the threshold-crossings to higher order:

  1. Locate the threshold-crossings to first order, by identifying the two grid points on either side, which will will call the bounding grid points.
  2. Apply a three-point second-derivative finite difference stencil to nearby grid ponits to identify cusps (jumps in the first derivative).
  3. Use the cusp locations to select between the following interpolation shchemes:
    1. If a cusp does not occur near our threshold-crossing, improve the approximation by interpolating nearby grid points
    2. If a cusp occurs near our threshold-crossing, but not between the bounding grid points, use a one-sided polynomial interpolation over points that do not include the cusp.
    3. If a cusp occurs between the bounding grid points, find separate polynomial interpolants for each side, locate their intersection point, and use the intersection point to determine which polynomial will be used to approximate the threshold-crossing.