Keywords

1 Introduction

Nowadays, reaction-diffusion models are used in designing and studies of a lot of detecting, measuring, and sensing devices. One of the examples is the immunosensor which is studied here. Such spatial-temporal models are described by the systems of partial or lattice differential equations.

The biosensor models are traditionally studied from the viewpoint of their qualitative analysis. Even in case of a small number of spatial elements, they show complex behavior. In [1], it was shown that the model describes the chemical reaction of two morphogens (reactants), one of them diffusing within two compartments, results in “bi-chaotic” behavior. The origin of such chaotic phenomenaFootnote 1 were also explained with the help of statistics of topological defects [2].

When considering continuously distributed reaction-diffusion models described by nonlinear partial differential equations, FeigenbaumSharkovskiiMagnitskii bifurcation theory can be applied, which results in a subharmonic cascade of bifurcations of stable limit cycles [3].

The lattice differential equations describe the systems with the discrete spatial structure, which is more consistent with pixel devices. These equations were also called earlier by a series of authors as spatially discrete differential equations [4].

Due to [5], a typical lattice differential equation takes the form

$$\begin{aligned} \dot{u_\xi } = g_\xi ( \{u_\zeta \}_{\zeta \in \varLambda }), \xi \in \varLambda , \end{aligned}$$
(1)

where we consider a lattice \(\varLambda \subset \mathbb {R}^n\), which can be presented as a discrete subset of \(\mathbb {R}^n\), consisting of either finite or infinite number of points, which are located in accordance with some regular spatial structure. The vectors \(u_\xi \), \(\xi \in \varLambda \) are the values of the state \(u = \left\{ u_\xi \right\} _{\xi \in \varLambda }\), calculated at the points of the lattice, and \(g_\xi \) are the right sides of the equations with the properties enabling us the solution existence.

As a rule, without loss of generality, they consider \(\varLambda = \mathbb {Z}^n\), which is the integer lattice in \(\mathbb {R}^n\). The methods developed can be easily applied to different types of lattices, namely, the planar rectangular and hexagonal lattice, the crystallographic lattices in \(\mathbb {R}^3\).

They pay attention to the notion of delay in lattice differential equations, so-called delayed lattice differential equations. One of the applications dealing with them is the investigation of traveling wavefronts and their stability [5]. The main results are applied to the delayed and discretely diffusive models for the population (see, e.g., [6, 7]).

Lattice differential equations are used as models in a lot of applications, for example, cellular neural networks, image processing, chemical kinetics, material science, in particular, metallurgy and biology [5, 8]. Lattice models are extremely attractive from the viewpoint of population dynamics, especially in case of spatially separated populations [5, 6, 8,9,10,11].

There are few reasons requiring consideration of the hexagonal grid instead of rectangular ones (primarily in image and vision computing). Namely, the equal distances between neighboring pixels for hexagonal coordinate systems [12]; hexagonal points are packed more densely [13]; since the “hexagons are ‘rounder’ than squares”, the presentation of curves are more consistent with help of hexagonal systems [13]; hence mathematical operations of edge detection and shape extraction are more successful when applying hexagonal lattices [14].

With the purpose of indexing hexagonal pixels, as a rule, they use two-Footnote 2 or three-elementFootnote 3 coordinate systems [15]. Our reasoning will be based on the last one. In contrary to skewed axes, the use of the cubic coordinates enables us symmetries with respect to all three axes.

2 Lattice Model of Antibody–Antigen Interaction for Two-Dimensional Biopixels Array

Let \(V_{i,j}(t)\) be the concentration of antigens, \(F_{i,j}(t)\) be the concentration of antibodies in biopixel (ij), \(i,j=\overline{1,N}\).

The model is based on the following biological assumptions for arbitrary biopixel (ij).

  1. 1.

    We have some constant birthrate \(\beta >0\) for antigen population.

  2. 2.

    Antigens are detected, binded, and finally neutralized by antibodies with some probability rate \(\gamma >0\).

  3. 3.

    We have some constant death rate of antibodies \(\mu _f>0\).

  4. 4.

    We assume that when the antibody colonies are absent, the antigen colonies are governed by the well-known delay logistic equation

    $$\begin{aligned} \frac{dV_{i,j}(t)}{dt} = (\beta - \delta _v V_{i,j}(t-\tau ))V_{i,j}(t), \end{aligned}$$
    (2)

    where \(\beta \) and \(\delta _v\) are positive numbers and \(\tau \ge 0\) denotes delay in the negative feedback of the antigen colonies.

  5. 5.

    The antibody decreases the average growth rate of antigen linearly with a certain time delay \(\tau \); this assumption corresponds to the fact that antibodies cannot detect and bind antigen instantly; antibodies have to spend \(\tau \) units of time before they are capable of decreasing the average growth rate of the antigen colonies; these aspects are incorporated in the antigen dynamics by the inclusion of the term \(-\gamma F_{i,j}(t-\tau )\), where \(\gamma \) is a positive constant which can vary depending on the specific colonies of antibodies and antigens.

  6. 6.

    In the absence of antigen colonies, the average growth rate of the antibody colonies decreases exponentially due to the presence of \(-\mu _f\) in the antibody dynamics and so as to incorporate the negative effects of antibody crowding, we have included the term \(-\delta _f F_{i,j}(t)\) in the antibody dynamics.

  7. 7.

    The positive feedback \(\eta \gamma V_{i,j}(t-\tau )\) in the average growth rate of the antibody has a delay since mature adult antibodies can only contribute to the production of antibody biomass; one can consider the delay \(\tau \) in \(\eta \gamma V_{i,j}(t-\tau )\) as a delay in antibody maturation.

  8. 8.

    While the last delay need not be the same as the delay in the hunting term and in the term governing antigen colonies, we have retained this for simplicity. We remark that the delays in the antibody term, antibody replacement term, and antigen negative feedback term can be made different and a similar analysis can be followed.

  9. 9.

    We have some diffusion of antigens from four neighboring pixels \((i-1,j)\), \((i+1,j)\), \((i,j-1)\), \((i,j+1)\) (see Fig. 1) with diffusion \(D>0\). Here we consider only diffusion of antigens because the model describes the so-called “competitive” configuration of immunosensor [16]. When considering competitive configuration of immunosensor, the factors immobilized on the biosensor matrix are antigens, while the antibodies play the role of analytes or particles to be detected.

  10. 10.

    We consider surface lateral diffusion (movement of molecules on the surface on solid phase toward immobilizated molecules) [17]. Moreover, there are works [18, 19] which assume and consider surface diffusion as an entirely independent stage.

  11. 11.

    We extend the definition of the usual diffusion operator in case of surface diffusion in the following way. Let \(n\in (0,1]\) be a factor of diffusion disbalance. It means that only nth portion of antigens of the pixel (ij) may be included in the diffusion process to any neighboring pixel as a result of surface diffusion.

Fig. 1
figure 1

Linear lattice interconnected four neighboring pixels model, \(n>0\) is disbalance constant

For the reasoning given, we consider a very simple delayed antibody–antigen competition model for biopixels two-dimensional array, which is based on well-known Marchuk model [20,21,22,23] and using spatial operator \(\hat{S}\) offered in [24] (Supplementary information, p. 10)

$$\begin{aligned} \begin{array}{ll} \frac{dV_{i,j}(t)}{dt} &{}= (\beta - \gamma F_{i,j}(t-\tau ) - \delta _v V_{i,j}(t-\tau ))V_{i,j}(t)+\hat{S}\{ V_{i,j} \},\\ \frac{dF_{i,j}(t)}{dt} &{}=( -\mu _f + \eta \gamma V_{i,j}(t-\tau ) - \delta _f F_{ij}(t) \Big )F_{i,j}(t) \end{array} \end{aligned}$$
(3)

with given initial functions

$$\begin{aligned} \begin{array}{ll} &{}V_{i,j}(t)=V_{i,j}^0(t)\ge 0,\quad F_{i,j}(t)=F_{i,j}^0(t) \ge 0,\quad t\in [-\tau , 0),\\ &{}V_{i,j}(0),F_{i,j}(0)>0. \end{array} \end{aligned}$$
(4)

For a square \(N\times N\) array of traps, we use the following discrete diffusion form of the spatial operator [24]

$$\begin{aligned} \hat{S}\{ V_{i,j} \} = \left\{ \begin{array}{l} D \Big [ V_{1,2} + V_{2,1} - 2nV_{1,1} \Big ]\quad i,j=1\\ D \Big [ V_{2,j} + V_{1,j-1} + V_{1,j+1} - 3nV_{i,j} \Big ]\quad i=1,j\in \overline{2,N-1}\\ D \Big [ V_{1,N-1} + V_{2,N} - 2nV_{1,N} \Big ]\quad i=1,j=N\\ D \Big [ V_{i-1,N} + V_{i+1,N} + V_{i,N-1} - 3nV_{i,N} \Big ]\quad i=\in \overline{2,N-1},j=N\\ D \Big [ V_{N-1,N} + V_{N,N-1} - 2nV_{N,N} \Big ]\quad i=N,j=N\\ D \Big [ V_{N-1,j} + V_{N,j-1} + V_{N,j+1} - 3nV_{N,j} \Big ]\quad i=N, j\in \overline{2,N-1}\\ D \Big [ V_{N-1,1} + V_{N,2} - 2nV_{N,1} \Big ]\quad i=N,j=1\\ D \Big [ V_{i-1,1} + V_{i+1,1} + V_{i,2} - 3nV_{i,1} \Big ]\quad i\in \overline{2,N-1},j=1\\ D \Big [ V_{i-1,j} + V_{i+1,j} + V_{i,j-1} + V_{i,j+1} - 4nV_{i,j} \Big ]\quad i,j\in \overline{2,N-1} \end{array}\right. \end{aligned}$$
(5)

Each colony is affected by the antigen produced in four neighboring colonies, two in each dimension of the array, separated by the equal distance \(\varDelta \). We use the boundary condition \(V_{i,j}=0\) for the edges of the array \(i,j=0,N+1\). Further, we will use the following notation of the constant

$$\begin{aligned} k(i,j) = \left\{ \begin{array}{l} 2\quad i,j=1;\quad i=1,j=N;\quad i=N,j=N; \quad i=N,j=1, \\ 3\quad i=1,j\in \overline{2,N-1};\quad i\in \overline{2,N-1},j=N;\quad i=N, j\in \overline{2,N-1};\\ \quad \quad i\in \overline{2,N-1},j=1 \\ 4 \quad i,j\in \overline{2,N-1}\\ \end{array}\right. \end{aligned}$$
(6)

which will be used in manipulations with the spatial operator (20).

Results of modeling (3) are presented further. It can be seen that the qualitative behavior of the system is determined mostly by the time of immune response \(\tau \) (or time delay), diffusion D, and constant n.

2.1 Stability Investigation

2.1.1 Steady States

The steady states of the model (3) are the intersection of the null-clines \(dV_{i,j}(t)/dt=0\) and \(dF_{i,j}(t)/dt=0\), \(i,j=\overline{1,N}\).

Antigen-free steady state. If \(V_{i,j}(t)\equiv 0\), the free antigen equilibrium is at \(\mathscr {E}_{i,j}^0\equiv \Big ( 0,0 \Big )\), \(i,j=\overline{1,N}\) or \(\mathscr {E}_{i,j}^0\equiv \Big ( 0, -\frac{\mu _f}{\delta _f} \Big )\), \(i,j=\overline{1,N}\). The last solution does not have biological sense and cannot be reached for nonnegative initial conditions (19).

When considering endemic steady state \(\mathscr {E}_{i,j}^* \equiv \Big ( V_{i,j}^* , F_{i,j}^* \Big )\), \(i,j=\overline{1,N}\) for (3) we get algebraic system:

$$\begin{aligned} \begin{aligned}&\Big ( \beta - \gamma F_{i,j}^* - \delta _v V_{i,j}^*\Big ) V_{i,j}^* + \hat{S} \left\{ V_{i,j}^* \right\} =0,\\&\Big ( -\mu _f +\eta \gamma V_{i,j}^* - \delta _f F_{i,j}^*\Big ) F_{i,j}^* =0,\quad i,j=\overline{1,N}. \end{aligned} \end{aligned}$$
(7)

The solutions \(\Big ( V_{i,j}^* , F_{i,j}^* \Big )\) of (7) can be found as a result of solving lattice equation with respect to \(V_{i,j}^*\), and using relation \(F_{i,j}^*=\frac{-\mu _f + \eta \gamma V_{i,j}^*}{\delta _f}\)

Thus we have to differ two cases.

Identical endemic state for all pixels. Let’s assume there is the solution of (7) \(V_{i,j}^*\equiv V^*\), \(F_{i,j}^*\equiv F^*\), \(i,j=\overline{1,N}\), i.e., \(\hat{S} \left\{ V_{i,j}^* \right\} \equiv 0\). Then \(\mathscr {E}_{i,j}^* = \Big ( V^*, F^* \Big )\), \(i,j=\overline{1,N}\) can be calculated as

$$\begin{aligned} \quad V^* = \frac{ -\beta \delta _f - \gamma \mu _f}{\delta _v \delta _f - \eta \gamma ^2},\quad F^*=\frac{\delta _v\mu _f - \eta \gamma \beta }{\delta _v \delta _f - \eta \gamma ^2}. \end{aligned}$$
(8)

provided that \(\delta _v \delta _f - \eta \gamma ^2<0\).

Nonidentical endemic state for pixels. In the general case, we have an endemic steady state which is different from (8). It is shown numerically in Appendix B that it appears as a result of diffusion between pixels D.

At the absence of diffusion, i.e., \(D=0\), we have only an identical endemic state for pixels of external layer. At the presence of diffusion,i.e., \(D>0\), nonidentical endemic states tends to be identical ones (8) at internal pixels, which can be observed at numerical simulation. This phenomenon clearly appears at bigger amount of pixels.

Basic reproduction numbers. Here we define the basic reproduction number for antigen colony which is localized in pixel (ij). When considering epidemic models, the basic reproduction number, \(\mathscr {R}_0\), is defined as the expected number of secondary cases produced by a single (typical) infection in a completely susceptible population. It is important to note that \(\mathscr {R}_0\) is a dimensionless number [25]. When applying this definition to the pixel (ij), which is described by the Eq. (3), we get

$$\begin{aligned} \mathscr {R}_{0,i,j} = \mathscr {T}_{i,j} \overline{c}_{i,j}, d_{i,j} \end{aligned}$$

where \(\mathscr {T}_{i,j}\) is the transmissibility (i.e., probability of binding given constant between an antigen and antibody), \(\overline{c}_{i,j}\) is the average rate of contact between antigens and antibodies, and \(d_{i,j}\) is the duration of binding of antigen by antibody till deactivation.

Unfortunately, the lattice system (3) doesn’t include all parameters, which allows to calculate the basic reproduction numbers in a clear form. Firstly, let’s consider pixel \((i^\star , j^\star )\) without diffusion, i.e., \(\hat{S}\left\{ V_{i^\star , j^\star } \right\} \equiv 0\). In this case, the non-negative equilibria of (3) are

$$\begin{aligned} \mathscr {E}_{i^\star ,j^\star }^0 = \big ( V^0,0 \big ):= \big ( \frac{\beta }{\delta _v},0 \big ),\quad \mathscr {E}_{i^\star ,j^\star }^\star = \big ( V^\star , F^\star \big ). \end{aligned}$$

Due to the approach which was offered in [26] (in pages 4 for ordinary differential equations, 5 for delay model), we introduce the basic reproduction number for pixel \((i^\star , j^\star )\) without diffusion, which is given by expression

$$\begin{aligned} \mathscr {R}_{0,i^\star ,j^\star }:=\frac{V^0}{V^\star }= \frac{\beta }{\delta _v V^\star } = \frac{\beta (\eta \gamma ^2 - \delta _v \delta _f)}{\delta _v (\beta \delta _f + \gamma \mu _f)}. \end{aligned}$$

Its biological meaning is given as being the average number of offsprings produced by a mature antibody in its lifetime when introduced in an antigen-only environment with antigen at carrying capacity.

According to the common theory, it can be shown that antibody-free equilibrium \(\mathscr {E}_{i^\star ,j^\star }^0\) is locally asymptotically stable if \(\mathscr {R}_{0,i^\star ,j^\star } <1\) and it is unstable if \(\mathscr {R}_{0,i^\star ,j^\star } >1\). It can be done with help of analysis of the roots of characteristic equation (similarly to [26], p. 5). Thus, \(\mathscr {R}_{0,i^\star ,j^\star } >1\) is sufficient condition for existence of the endemic equilibrium \(\mathscr {E}_{i^\star ,j^\star }^\star \).

We can consider the expression mentioned above for the general case of the lattice system (3), i.e., when considering diffusion. In this case, we have the “lattice” of the basic reproduction numbers \(\mathscr {R}_{0,i,j}\), \(i,j=\overline{1,N}\) satisfying to

$$\begin{aligned} \mathscr {R}_{0,i,j}:=\frac{V_{i,j}^0}{V_{i,j}^\star },\quad i,j=\overline{1,N}, \end{aligned}$$
(9)

where \(\mathscr {E}_{i,j}^0\), \(i,j=\overline{1,N}\) are nonidentical steady states, which are found as a result of solution of the algebraic system

$$\begin{aligned} \Big ( \beta - \delta _v V_{i,j}^0\Big ) V_{i,j}^0 + \hat{S} \left\{ V_{i,j}^0 \right\} =0,\quad i,j=\overline{1,N}, \end{aligned}$$
(10)

endemic states \(\mathscr {E}_{i,j}^\star =\Big ( V_{i,j}^\star , F_{i,j}^\star \Big )\), \(i,j=\overline{1,N}\) are found using (7).

It is worth to say that due to the common theory the conditions

$$\begin{aligned} \mathscr {R}_{0,i,j}>1,\quad i,j=\overline{1,N} \end{aligned}$$
(11)

are sufficient for the existence of endemic state \(\mathscr {E}_{i,j}^\star \). We will check it only with help of numerical simulations.

2.2 Persistence of the Solutions

We will use the following definition which generalizes [27] for lattice differential equations.

Definition 1

System (3) is said to be uniformly persistent if for all \(i,j=\overline{1,N}\) there exist compact regions \(\mathscr {D}_{i,j}\subset \text {int } \mathbb {R}^2\) such that every solution \((V_{i,j}(t),F_{i,j}(t))\), \(i,j=\overline{1,N}\) of (3) with the initial conditions (19) eventually enters and remains in the region \(\mathscr {D}_{i,j}\).

Theorem 1

Let \((V_{i,j}(t),F_{i,j}(t))\), \(i,j=\overline{1,N}\) be the solutions of (3) with initials conditions (19). If

$$\begin{aligned} \beta \eta \gamma - \mu _f \delta _v >0, \end{aligned}$$
(12)

then

$$\begin{aligned} \begin{aligned} 0<V_{i,j}(t)\le M_v,\quad 0<F_{i,j}(t)\le M_f \end{aligned} \end{aligned}$$
(13)

for some large values of t. Here

$$\begin{aligned} \begin{aligned} M_v=\frac{\beta }{\delta _v}e^{\beta \tau },\quad M_f=\frac{1}{\delta _f}\Big ( \eta \gamma M_v - \mu _f \Big ). \end{aligned} \end{aligned}$$
(14)

Proof

Firstly, we can prove that there exists some large instant of time \(T_1\) that \(\hat{S}\{ V_{i,j}(t) \}\le 0\), \(i,j=\overline{1,N}\), \(t>T_1\).

Let’s assume the contrary, i.e., there is \(i^\star , j^\star \in \overline{1,N}\), that \(\hat{S}\{ V_{i,j}(t) \}> 0\) at \(t>T_1\), which is a contradiction with a balance principle.

Since the solutions of the system (3), (19) are positive, then

$$\begin{aligned} \frac{dV_{i,j}(t)}{dt}\le \Big ( \beta - \delta _v V_{i,j}(t-\tau ) \Big )V_{i,j}(t). \end{aligned}$$
(15)

Further, we can apply the basic steps of proof of Lemma 3.1 [28] which is proved in nonlattice case (i.e., without spatial operator).

Remark 1

Conditions of uniform persistence of system (3) in nonlattice case were obtained in [29]. They resulted in inequality (12) provided that

$$\begin{aligned} \beta \delta _f + \mu _f \gamma >0 \end{aligned}$$
(16)

holds.

2.3 Extinction Research

The next result introduces a sufficient condition for the underlying grid size ensuring that the solution of (3) is non-vanishing.

Theorem 2

Let for the system (3) the positive orthant \(\varOmega \) be positive invariant. Besides that, let N be such that \(f_{\text {extnc}}(N)<1\) holds, where

$$\begin{aligned} f_{\text {extnc}}(N) = \max _{k,l=\overline{1,N}} \Bigg | \beta - \frac{4D}{\varDelta ^2}\Bigg ( 1+\cos \frac{\pi (k+l)}{2(N+1)} \cos \frac{\pi (k-l)}{2(N+1)} \Bigg ) \Bigg |. \end{aligned}$$
(17)

Then \(\lim _{t\rightarrow \infty } V_{i,j}(t) = 0\), \(i,j=\overline{1,N}\).

Proof

It requires a comparison principle for differential equations.

The following inequalities hold for \(V_{i,j}(t)\)

$$\begin{aligned} \frac{V_{i,j}(t)}{dt} < \beta V_{i,j}(t) + \hat{S}\left\{ V_{i,j}(t) \right\} . \end{aligned}$$

Consider \(N^2\)-vector of the form

$$\begin{aligned} \begin{aligned} V(n)=\Big (&V_{1,1}(t),V_{1,2}(t),\dots ,V_{1,N}(t),V_{2,1}(t),\dots ,V_{2,N}(t),\dots ,\\&V_{N,1}(t),\dots ,V_{N,N}(t) \Big )^\top . \end{aligned} \end{aligned}$$

We compare \(\frac{V(t)}{dt}\le CV(t)\), where \(C=I_N \otimes A + B \otimes I_N\),

$$\begin{aligned} A=\begin{bmatrix} \beta - \frac{4D}{\varDelta ^2}&{}\frac{D}{\varDelta ^2}&{} &{} &{} &{} &{}\\ \frac{D}{\varDelta ^2}&{}\beta - \frac{4D}{\varDelta ^2}&{}\frac{D}{\varDelta ^2}&{} &{} &{} &{}\\ &{} \frac{D}{\varDelta ^2}&{}\ddots &{} &{} &{} &{}\\ &{} &{} &{} &{}\ddots &{} &{} \\ &{} &{} &{} &{} &{} \beta - \frac{4D}{\varDelta ^2} &{} \frac{D}{\varDelta ^2}\\ &{} &{} &{} &{} &{} \frac{D}{\varDelta ^2} &{} \beta - \frac{4D}{\varDelta ^2} \end{bmatrix} \in \mathbb {R}^{N\times N}, \end{aligned}$$
$$\begin{aligned} B=\begin{bmatrix} 0&{}\frac{D}{\varDelta ^2}&{} &{} &{} &{} &{}\\ \frac{D}{\varDelta ^2}&{}0&{}\frac{D}{\varDelta ^2}&{} &{} &{} &{}\\ &{} \frac{D}{\varDelta ^2}&{}\ddots &{} &{} &{} &{}\\ &{} &{} &{} &{}\ddots &{} &{} \\ &{} &{} &{} &{} &{} 0 &{} \frac{D}{\varDelta ^2}\\ &{} &{} &{} &{} &{} \frac{D}{\varDelta ^2} &{} 0 \end{bmatrix} \in \mathbb {R}^{N\times N}, \end{aligned}$$

\(I_N\) is \(N\times N\) identity matrix. The \(N^2\) eigenvalues of C are of the form (see [30], Theorem 8.3.1) \(\lambda _{k,l}(C)=\lambda _k(A) + \lambda _l(B)\), \(k,l=\overline{1,N}\), where the eigenvalues of A

$$\begin{aligned} \lambda _k(A)=\beta - \frac{4D}{\varDelta ^2}-\frac{2D}{\varDelta ^2}\cos {(\pi k/(N+1))}, \quad k=\overline{1,N}, \end{aligned}$$

the eigenvalues of B

$$\begin{aligned} \lambda _l(B)=-\frac{2D}{\varDelta ^2}\cos {(\pi l/(N+1))}, \quad l=\overline{1,N}. \end{aligned}$$

The comparison system \(\frac{Z(t)}{dt}=CZ(t)\) tends asymptotically to zero if \(\big | \lambda _{k,l} \big | <1\). That is

$$\begin{aligned} \max _{k,l=\overline{1,N}} \Bigg | \beta - \frac{4D}{\varDelta ^2} - \frac{2D}{\varDelta ^2}\Bigg ( \cos \frac{\pi k}{N+1} + \cos \frac{\pi l}{N+1} \Bigg ) \Bigg | <1. \end{aligned}$$

2.4 Numerical Simulation of Square \(4\times 4\) Pixels Array

First of all, we calculate the basic reproductive numbers \(\mathscr {R}_{0,i,j}\), \(i,j=\overline{1,4}\) due to (9) (See Table 1).

Table 1 The values of \(R_{0,i,j}\), \(i,j=\overline{1,4}\)

We see that the conditions (11) hold. Thus, equilibrium without antibodies \(\mathscr {E}_{i,j}^0\), \(i,j=\overline{1,4}\) is unstable and there exists endemic equilibrium \(\mathscr {E}_{i,j}^\star \), \(i,j=\overline{1,4}\).

The numerical simulations were implemented at different values of \(n\in (0,1]\). Here we can see that when changing the value of \(\tau \) we have changes in the qualitative behavior of pixels and the entire immunosensor. We considered the parameter value set given above and computed the long-time behavior of the system (3) for \(\tau = 0.05, 0.22, 0.23\), 0.2865, and 0.28725. The phase diagrams of the antibody versus antigen populations for the pixel (1, 1) are shown in Table 2.

For example, at \(\tau \in [0, 0.22]\), we can see trajectories corresponding to the stable node for all pixels.

Table 2 The phase plane plots of the system (3) for antibody populations \(F_{i,j}\) versus antigen populations \(V_{i,j}\), \(i,j=\overline{1,4}\). Numerical simulation of the system (3) at \(n=0.9\), \(\tau = 0.28725\). Here \(\bullet \) indicates identical steady state, \(\bullet \) indicates nonidentical steady state. Trajectories are constructed for \(t\in [550,800]\). The solution behavior looks chaotic

For \(\tau = 0.23\), the phase diagrams show that the solution is a limit cycle with two local extrema (one local maximum and one local minimum) per cycle. Then for \(\tau = 0.2825\), the solution is a limit cycle with four local extrema per cycle, and, for \(\tau = 0.2868, 0.2869, 0.28695\) the solutions are limit cycles with 8, 16, and 32 local extrema per cycle, respectively. Finally, for \(\tau = 0.28725\), the behavior shown in Table 2 is obtained which looks like chaotic behavior. In this paper, we have regarded behavior as chaotic if no periodic behavior could be found in the long-time behavior of the solutions.

As a check that the solution is chaotic for \(\tau =0.28725\), we perturbed the initial conditions to test the sensitivity of the system. Figure 2 shows a comparison of the solutions for the antigen population \(V_{1,3}\) with initial conditions \(V_{1,3}(t)=1\) and \(V_{1,3}(t)=1.001\), \(t\in [-\tau , 0]\), and identical all the rest ones. Near the initial time, the two solutions appear to be the same, but as time increases, there is a marked difference between the solutions supporting the conclusion that the system behavior is chaotic at \(\tau = 0.28725\).

We have also checked numerically that the solutions for the limit cycles are periodic and computed the periods for each of the local maxima and minima in the cycles. In the chaotic solution region, the numerical calculations (not shown in this paper) confirmed that no periodic behavior could be found.

Fig. 2
figure 2

The time series of the solutions to the system (3) for the antigen population \(V_{1,3}\) from \(t =0\) to 700 with \(\tau =0.28725\) for initial conditions \(V_{1,3}(t)=1\) and \(V_{1,3}(t)=1.001\) (deviated), \(t\in [-\tau , 0]\), and identical all the rest ones. At the beginning, the two solutions appear to be the same, but as time increases there is a marked difference between the solutions supporting the conclusion that the system behavior is chaotic

A bifurcation diagram showing the maximum and minimum points for the limit cycles for the antigen population \(V_{1,3}\) as a function of time delay is given in Fig. 3. The Hopf bifurcation from the stable equilibrium point to a simple limit cycle and the sharp transitions at critical values of the time delay between limit cycles with increasing numbers of maximum and minimum points per cycle can be clearly seen.

Fig. 3
figure 3

A bifurcation diagram showing the “bifurcation path to chaos” as the time delay is increased. The points show the local extreme points per cycle for the \(V_{1,3}\) population. Chaotic-type solutions occur at \(\tau \approx 0.28725\) and are indicated in red in the figure with value 0 for the number of extreme points

3 Three-Dimensional Biopixels Array

When modeling three-dimensional pixels array, it is natural way to apply the model based on the hexagonal lattice. Such model may use the following assumption. Namely, antigens are assumed to diffuse from six neighboring pixels, \((i+1,j,k-1)\), \((i+1,j-1,k)\), \((i,j-1,k+1)\), \((i-1,j,k+1)\), \((i-1,j+1,k)\), \((i,j+1,k-1)\) (see Fig. 1), with diffusion rate \(D\varDelta ^{-2}\), where \(D>0\) and \(\varDelta >0\) is distance between pixels.

Taking into account prerequisites mentioned above, we get a simplified antibody–antigen competition model with delay for a hexagonal array of biopixels, which uses Marchuk model of the immune response [20,21,22,23] and using spatial operator \(\hat{S}\) which is constructed similarly to [24] (Supplementary information, p. 10)

$$\begin{aligned} \begin{aligned} \frac{dV_{i,j,k}(t)}{dt}&= (\beta - \gamma F_{i,j,k}(t-\tau ) - \delta _v V_{i,j,k}(t-\tau ))V_{i,j,k}(t)+\hat{S}\{ V_{i,j,k} \},\\ \frac{dF_{i,j,k}(t)}{dt}&=( -\mu _f + \eta \gamma V_{i,j,k}(t-\tau ) - \delta _f F_{i,j,k}(t) \Big )F_{i,j,k}(t) \end{aligned} \end{aligned}$$
(18)

with given initial functions

$$\begin{aligned} \begin{aligned}&V_{i,j,k}(t)=V_{i,j,k}^0(t)\ge 0,\quad F_{i,j,k}(t)=F_{i,j,k}^0(t) \ge 0,\quad t\in [-\tau , 0),\\&V_{i,j,k}(0),F_{i,j,k}(0)>0. \end{aligned} \end{aligned}$$
(19)
Fig. 4
figure 4

Diffusion of antigens for the hexagonal lattice model. Antigens from six neighboring pixels interact, \(n>0\) is the constant of disbalance. Here ‘1’, ‘3’, ‘5’, ‘8’, ‘9’, ‘11’ have to be replaced with \(D\varDelta ^{-2}V_{i,j,k}(t)\), ‘2’ with \(D\varDelta ^{-2}V_{i+1,j,k-1}(t)\), ‘4’ with \(D\varDelta ^{-2}V_{i+1,j-1,k}(t)\), ‘6’ with \(D\varDelta ^{-2}V_{i,j-1,k+1}(t)\), ‘7’ with \(D\varDelta ^{-2}V_{i-1,j,k+1}(t)\), ‘10’ with \(D\varDelta ^{-2}V_{i-1,j+1,k}(t)\), ‘12’ with \(D\varDelta ^{-2}V_{i,j+1,k-1}(t)\)

We use the following spatial operator of discrete diffusion for a hexagonal array of pixelsFootnote 4

$$\begin{aligned} \begin{aligned} \hat{S}\{ V_{i,j,k} \}&= D\varDelta ^{-2} \Big [ V_{i+1,j,k-1}+V_{i+1,j-1,k}+ V_{i,j-1,k+1}+V_{i-1,j,k+1}+V_{i-1,j+1,k}\\&+V_{i,j+1,k-1} - 6nV_{i,j,k} \Big ]\\&i,j,k\in \overline{-N+1,N-1}, \quad i+j+k=0. \end{aligned} \end{aligned}$$
(20)

Each pixel is affected by the antigens flowing out six neighboring pixels, two in each of three directions of the hexagonal array. The adjoint pixels are separated by the distance \(\varDelta \) (Fig. 4).

Boundary conditions \(V_{i,j,k}=0\) for the edges of the hexagonal array, i.e., if \(i\vee j\vee k\in \{-N-1,N+1\}\), are used.

We can present analytical results with respect to the model (18) in the form of restrictions for the parameters, enabling us persistence and global asymptotic stability. Moreover, we executed numerical research of the system qualitative behavior in dependence of changes of the time of immune response \(\tau \) (delay of time), diffusion rate \(D\varDelta ^{-2}\) and factor n.

3.1 Persistence and Extinction of Solutions

Concerning persistence, for the hexagonal lattice the similar result can be obtained as for square one (Theorem 1), just adding the third index.

Unfortunately, we didn’t manage to present such a clear condition of extinction as in Theorem 2. We can check it only numerically in an experimental way.

3.2 Numerical Study

For numerical simulation, we consider model (18) of hexagonal pixels array at \(N = 4\), \(\beta = 2\) min\(^{-1}\), \(\gamma = 2 \frac{mL}{min \cdot \mu g}\), \(\mu _f = 1\) min\(^{-1}\), \(\eta = 0.8/\gamma \), \(\delta _v = 0.5 \frac{mL}{min \cdot \mu g}\), \(\delta _f = 0.5 \frac{mL}{min \cdot \mu g}\), \(D = 0.2 \frac{nm^2}{min}\), \(\varDelta = 0.3 nm\). Numerical modeling was implemented at different values of \(n\in (0,1]\). For this purpose, we used RStudio environment.

Using local bifurcation plot, dynamics of the system (18) was analyzed for different values of \(n\in (0,1]\). We have concluded that oscillatory and then chaotic behavior starts for smaller values of \(\tau \) at smaller values of n. Further, increasing the values of n, we can observe asymptotically stable steady solutions for a wider range of \(\tau \).

Numerical integration of the system has shown the influence of time delay \(\tau \). Namely, as it is agreed with the analytical results, we observe the stable focuses at pixel-dependent endemic states for small delays \(\tau \in [0, 0.18)\). At \(\tau \approx 0.18\) min the stable focus is transformed into a stable limit cycle of tiny radius, which corresponds to Hopf bifurcation. A deeper study of this phenomenon requires obtaining the condition of the appearance of the pair of purely imaginary roots of the characteristic quasipolynomial of the linearized system. The limit cycles of ellipsoidal form are observed till \(\tau \approx 0.285\) min. Pay attention that when increasing \(\tau \), near \(\tau =0.285\), we get period doubling (see Fig. 5).Footnote 5

Fig. 5
figure 5

Phase plots of the system (18) at \(\tau =0.287\). Here \(\bullet \) indicates initial state, \(\bullet \) indicates pixel-independent endemic state, \(\bullet \) indicates pixel-dependent endemic state. The solution tends to a stable limit cycle with six local extrema per cycle

The qualitative behavior of immunosensor model can be analyzed with help of hexagonal tiling plots also. For this purpose, we can use both plots for antigens (Fig. 6), antibodies (Fig. 7), and probabilities of binding antigens by antibodies (Fig. 8).

Fig. 6
figure 6

Example of hexagonal tiling plot for V

Fig. 7
figure 7

Example of hexagonal tiling plot for F

Fig. 8
figure 8

Example of hexagonal tiling plot for probabilities of binding antigens by antibodies, i.e., \(V\times F\). In case of optical immunosensor, it is fluorescence intensity

4 Conclusions

In this work, reaction-diffusion models of two- and three-dimensional immunopixels array were considered. Mathematically, it is described by the system of lattice delayed differential equations on rectangular or hexagonal grids. The systems include the spatial operator describing the diffusion of antigens between pixels.

The main results are dealing with the qualitative investigation of the model. The conditions of persistence were obtained. Also, we have managed to get the result dealing with the extinction of the solutions. Namely, it can be seen that the amount of pixels determines their non-vanishing. In a two-dimensional case, this dependence can be presented in a clear form.

The conditions of local or global asymptotic stability can be obtained using the construction of the Lyapunov functional. Because of the cumbersome evidence, we didn’t include it here. They result in inequality including the system parameters and delay. So, estimation of the delay enabling us local or global asymptotic stability can be obtained.

Numerical analysis of the model qualitative behavior is performed with the help of the bifurcation diagram, phase trajectories, and rectangular or hexagonal tile portraits. It has shown the changes in qualitative behavior with respect to the growth of time delay. Namely, starting from the stable focus at small delay values, then through Hopf bifurcation to limit cycles, and finally through period doublings to deterministic chaos. It is agreed with the results on space-time chaos for reaction-diffusion systems, which were previously obtained in [1,2,3].

As compared with the rectangular lattice model, for the hexagonal model, we observe Hopf bifurcation at smaller values of \(\tau \). That is hexagonal lattice accelerates changes in qualitative behavior.

Note, that model can be applied for an arbitrary amount of pixels determined by natural \(N\ge 1\). However, it can be numerically seen that qualitative behavior of the entire immunosensor is determined by 5 or 7 pixels array for square and hexagonal lattices, respectively.