1 Introduction

Cancer is a class of evolving diseases, similar in many ways to infectious diseases characterized by viral, bacterial, or eukaryotic parasite infection. Tumor cells can be thought of as cheaters in the cooperative multicellular state from which they are derived, although tumor cells often act collectively in a proto-multicellular manner (Ben-Jacob et al. 2012; Aktipis et al. 2015). The key point is that cancer cells overcome controls ensuring intercellular cooperation and develop into a distinct population upon which evolutionary forces act, not unlike a population of pathogens within a host organism. While this evolutionary nature of cancer has long been acknowledged (Nowell 1976), recent work has rapidly developed our understanding of cancer population dynamics by applying concepts and theoretical tools from evolutionary biology and ecology (Gerlinger et al. 2014; Korolev et al. 2014; Wu et al. 2016; Reynolds et al. 2020). Advances in lineage tracing (Simeonov et al. 2021) and genomics (Navin 2014) technologies have allowed for unprecedented understanding of the complex eco-evolutionary processes underlying tumor growth and metastasis, and theoretical approaches drawing from evolutionary and ecological theory (McFarland et al. 2014; Gluzman et al. 2020; Gatenbee et al. 2022; Kessler and Levine 2022) have enabled predictions of eco-evolutionary phenomena in cancer and interpretation of experimental data. However, much is still unknown about cancer population dynamics, with many complexities still unexplored.

Recent work has developed the concept of the tumor microenvironment (TME), referring to the biochemical, cellular, and physical context in which a tumor exists and how this context impacts tumor behavior (Anderson and Simon 2020). To further emphasize the specific role played by the immune system, one can focus on the tumor-immune microenvironment (TIME). The TIME concept emphasizes that tumors exist in an ecological context of immune and other host cells which influence tumor growth and progression in a complex manner (Binnewies et al. 2018). While there are several clear differences between the ecological interactions of tumors with host cells and traditionally studied interactions in ecology, such as those between predator and prey animals (Kareva et al. 2021), concepts from ecology have nonetheless proved useful in understanding tumor-immune interactions. These concepts hold promise for further untangling the complexities arising from nonlinear, multi-directional interactions between adapting (through varying combinations of mutations and phenotypic plasticity) populations of cells (Hamilton et al. 2022).

While the ability of the immune system to suppress tumor proliferation and metastasis has rightfully received considerable attention (Schreiber et al. 2011), our understanding of how tumors attempt to shape the immune system into cancer-tolerant or even cancer-promoting states remains incomplete (De Visser et al. 2006). While tumors are well-known to affect the metabolic and biochemical state of the TIME (Binnewies et al. 2018; Roy et al. 2021), tumor cells are also able to influence immune cell phenotypes (Flavell et al. 2010), a process known as immune cell conversion. A prime example of immune cell conversion is the polarization of macrophages between M1 and M2 phenotypes (Biswas and Mantovani 2010; Li et al. 2019b). In the M1 phenotype, macrophages produce tumor-suppressing molecules, including nitric oxide and reactive oxygen species, while M2 macrophages produce pro-tumor factors and promote angiogenesis (Wang et al. 2014; Jetten et al. 2014). Other examples of tumor-influenced immune cell conversion include T cell/regulatory T cell polarization (Liu et al. 2007) and NK cell/ILC1 cell polarization (Gao et al. 2017).

Despite strong evidence for the importance of immune cell conversion in the TIME, this phenomenon has been largely ignored in mathematical models of the TIME. While a number of models exist which include the polarization of immune cells in the TIME (Eftimie and Hamam 2017; Shu et al. 2020), very few (Guo et al. 2023) have included the ability of tumor cells to bias this immune cell polarization. In order to explore the role of immune cell conversion in the TIME, we develop here a minimal mathematical model for tumor-immune interaction including the ability of tumor cells to convert immune cells into a pro-tumor phenotype. Using modified Lotka–Volterra equations, we explore the effects of the rate of immune cell conversion, finding that conversion can be essential to the viability of a tumor population. Specifically, non-zero immune conversion rates can allow for tumor survival in the presence of non-trivial anti-tumor immunity. Our results highlight the need to further inspect the role of tumor-to-immune system feedback, especially in mathematical and computational models of cancer. Furthermore, greater understanding of the consequences of immune cell conversion may have an impact on the development of novel cancer immunotherapies.

2 Model

2.1 Guiding Principles for Tumor-Immune Modeling

Following the work of Wilson and Levy (2012) and Arabameri et al. (2018), we adopt a minimal description of the essential aspects of tumor-immune population dynamics by considering the densities of tumor, anti-tumor immune, and pro-tumor immune cells. This coarse-grained approach greatly simplifies our model and its analysis. This simplification is of course at the expense of the potential quantitative accuracy of a more detailed approach. Once we have established basic mechanisms, future efforts can extend our approach to include a larger number of cell types and more realistic descriptions of interactions.

We proceed by adapting the Lotka-Volterra framework (Wangersky 1978) with multiplicative interaction terms. The resultant ODEs ignore both spatial aspects of tumor-immune interaction and complexities such as saturating interactions. We note that some TIMEs may be better represented by spatially homogeneous models than others. For example, tumor cells in leukemia are largely suspended in the bloodstream, and therefore the assumption that all cells interact with all other cells is a reasonable approximation. For solid tumors, our model assumes that there is no barrier to immune infiltration (Li et al. 2019a). Regardless of which biological scenarios our model is better suited for, we emphasize that our goal is to explore the potential consequences of immune conversion, not to make quantitative predictions about tumor-immune population dynamics.

2.2 A Modified Lotka–Volterra Model

We examine a generalized Lotka–Volterra model describing tumor cell (T), pro-tumor immune cell (P), and anti-tumor immune cell (A) population densities. Our basic innovation is the inclusion of a tumor-induced switching term from anti-tumor to pro-tumor immune phenotypes. We abbreviate pro-tumor immune cells as PTI cells and anti-tumor immune cells as ATI cells. Our baseline model can be written as

$$\begin{aligned} \frac{dT}{dt}&=T\bigg (r_{T}-\frac{r_{T}}{K_{T}}T+\alpha _{TP}P-\alpha _{TA}A\bigg ) \end{aligned}$$
(1)
$$\begin{aligned} \frac{dP}{dt}&=P\bigg (-d_{P}P+\alpha _{PT}T\bigg )+\omega {}AT\end{aligned}$$
(2)
$$\begin{aligned} \frac{dA}{dt}&=A\bigg (r_{A}-\frac{r_{A}}{K_{A}}A+\alpha _{AT}T-\alpha _{AP}P\bigg )-\omega {}AT, \end{aligned}$$
(3)

or in condensed vector notation

$$\begin{aligned} \frac{d{\textbf{N}}}{dt}=f({\textbf{N}}),~{\textbf{N}}=\begin{bmatrix} T \\ P \\ A \end{bmatrix}. \end{aligned}$$
(4)

All parameters are non-negative (Table 1), so that a negative sign in front of a parameter in Eqs. (1)–(3) indicates either inhibition of growth or contribution to death, while a positive sign indicates contribution to growth or inhibition of death. The parameters \(r_{T}\) and \(r_{A}\) describe the “intrinsic” growth rates of tumor and ATI cells each in the absence of other cell types, while \(K_{T}\) and \(K_{A}\) denote their carrying capacities. Quadratic self-limitation terms for tumor and ATI cells are written as \(r_{T}/K_{T}\) and \(r_{A}/K_{A}\) for convenience, in a similar manner to previous work (Bunin 2017). By calling \(r_{T}\) and \(r_{A}\) intrinsic growth rates, we mean that they are the growth rates in the absence of other interactions in the model. We assume that PTI cells mostly arise through tumor-induced conversion processes, so we take \(r_{P}\) to be zero, and denote their density-dependent growth inhibition and/or death rate as \(d_{P}\). The parameters \(\alpha _{XY}\) represent the quadratic contributions of interactions between cell types to growth rates, where \(\alpha _{XY}\) is the effect of Y on the net growth rate of X. Note that we assumed that contact with tumor cells induces growth of all types of immune cells.

Table 1 Parameter values used in figures

Finally, as mentioned above, we include terms reflecting the ability of tumor cells to induce some immune cells that inhibit tumor growth, such as M1 macrophages, to switch phenotypes into functionally pro-tumor states, such as M2 macrophages. This is reflected in Eqs. (1)–(3) by a conversion parameter \(\omega \ge {}0\) controlling the rate at which tumor cells induce ATI cells to switch to PTI cells. We assume that all of these parameters are independent of time and cell concentrations.

2.3 Types of Steady States

We refer to states of the system as feasible when the densities of all cell types are non-negative

$$\begin{aligned} {\textbf{N}}\ge {}0\iff {}T,~P,~A\ge {}0 \end{aligned}$$
(5)

corresponding to physically meaningful states of the system. Equations (1)–(3) can support the following types of feasible steady states beyond the trivial steady state \(T=P=A=0\):

  • (\({\textbf{T}}\)) Tumor-only: \(T>0\) and \(P=A=0\)

  • (\({\textbf{A}}\)) ATI-only: \(A>0\) and \(T=P=0\)

  • (\(\textbf{TA}\)) Tumor-ATI coexistence: \(T,A>0\) and \(P=0\)

  • (\(\textbf{TP}\)) Tumor-PTI coexistence: \(T,P>0\) and \(A=0\)

  • (\(\textbf{TPA}\)) Tumor-PTI-ATI coexistence: \(T,P,A>0\).

Tumor-only (\({\textbf{T}}\)) and ATI-only (\({\textbf{A}}\)) steady states always exist and are always feasible in the allowed parameter space, while the simultaneous feasibility and existence of steady states \(\textbf{TA}\), \(\textbf{TP}\), and \(\textbf{TPA}\) depend on the choice of parameters. As we will see, there can be at most one steady state corresponding to types \({\textbf{T}}\), \({\textbf{A}}\), \(\textbf{TA}\), and \(\textbf{TP}\), while there can be more than one tumor-PTI-ATI coexistence (\(\textbf{TPA}\)) steady state.

We denote the set of steady state solutions corresponding to each type as \({\mathcal {S}}_{X}\), where X in the subscript indicates the cell types that are positive in the steady state. For example, for the tumor-only steady states, we have

$$\begin{aligned} {\mathcal {S}}_{T}=\{{\textbf{N}}\in {}{\mathbb {R}}^{3}~|~f({\textbf{N}})={\textbf{0}},~T>0,~P=A=0\}, \end{aligned}$$
(6)

while for tumor-PTI-ATI coexistence steady states we have

$$\begin{aligned} {\mathcal {S}}_{TPA}=\{{\textbf{N}}\in {}{\mathbb {R}}^{3}~|~f({\textbf{N}})={\textbf{0}},~{\textbf{N}}>0\}. \end{aligned}$$
(7)

Because there can be at most one feasible steady state for each of the types (\({\textbf{T}}\)), (\({\textbf{A}}\)), (\(\textbf{TA}\)), and (\(\textbf{TP}\)), we can unambiguously refer to the steady state meeting the respective criteria of these types, writing these as

$$\begin{aligned} {\textbf{T}}\in {\mathcal {S}}_{T},~{\textbf{A}}\in {\mathcal {S}}_{A},~\textbf{TA}\in {\mathcal {S}}_{TA},~\textbf{TP}\in {\mathcal {S}}_{TP}. \end{aligned}$$
(8)

We can refer to steady states with tumor-PTI-ATI coexistence similarly

$$\begin{aligned} \textbf{TPA}\in {\mathcal {S}}_{TPA}, \end{aligned}$$
(9)

but we must often take care to specify which solution in \({\mathcal {S}}_{TPA}\) we are referring to.

2.4 Linear Stability Analysis

In order to assess the linear stability of steady states, we use the Jacobian matrix

$$\begin{aligned} \nonumber&\nabla {}f({\textbf{N}})\\&\quad =\begin{bmatrix} r_{T}-2\frac{r_{T}}{K_{T}}T+\alpha _{TP}P-\alpha _{TA}A &{} \alpha _{TP}T &{} -\alpha _{TA}T \\ \alpha _{PT}P+\omega {}A &{} -2d_{P}P+\alpha _{PT}T &{} \omega {}T \\ (\alpha _{AT}-\omega )A &{} -\alpha _{AP}A &{} r_{A}-2\frac{r_{A}}{K_{A}}A+(\alpha _{AT}-\omega )T-\alpha _{AP}P \end{bmatrix}, \end{aligned}$$
(10)

obtained from taking partial derivatives of the right-hand side of Eqs. (1)–(3) with respect to T, P, and A, and check whether the real parts of its eigenvalues are all negative. When this is the case, the Hartman-Grobman theorem allows us to identify a steady state as stable. When at least one eigenvalue of the Jacobian is positive, the steady state is unstable. When at least one eigenvalue is zero, while all others are negative, we cannot determine whether the steady state is stable from the linearized system alone. In this case, we provide numerical evidence for the asymptotic stability (or instability) of a steady state.

2.5 Computational Methods

We performed all numerical ODE integration and root finding using SciPy 1.7 (Virtanen et al. 2020). We used NumPy 1.21 Harris et al. (2020) in most calculations. For creating plots, we used Matplotlib 3.5 (Hunter 2007) within a Jupyter notebook (Kluyver et al. 2016). We used the scikit-learn 1.0 (Pedregosa et al. 2011) support vector machine implementation with a degree 3 polynomial kernel for visualizing the interfaces between basins of attraction in Fig. 4.

3 Results

3.1 Characterizing the Steady States Through Feedback and Invasion Growth Rates

As described above, we can classify the steady states of our model by the cell types that have non-zero density. For all classes of steady states, except for the case of tumor-PTI-ATI coexistence (\(\textbf{TPA}\)) with \(\omega >0\), we can write the steady state densities in simple terms of the model parameters (Table 2). We can further simplify these expressions by gathering parameters into terms describing effective growth rates, written as \(\Omega _{X\rightarrow {}Y}\), meaning the net growth rate of X when “invading” a steady state population of Y, and net negative feedback, written as \(\Gamma _{X\rightarrow {}Y; S}\), meaning the net negative feedback of X on Y at the specified steady state S. For example, the effective growth rate of tumor cells in a population of ATI cells is

$$\begin{aligned} \Omega _{T\rightarrow {}{\textbf{A}}}=r_{T}-\alpha _{TA}K_{A} \end{aligned}$$
(11)

We note that by “invasion” we refer to the general concept of invasive populations in ecological settings, rather than the specific physical movement of one type of cell into a population of another type of cell (although this could constitute an invasion by our definition). Invasive species and their effects on ecosystems are an important topic of study in ecology. In theoretical ecology, invasions have been given a precise definition to serve as a mathematical tool for analyzing the robustness of communities against invasive species. Suppose we catalog \(n>0\) different species and index them by the set \(\{1,2,\ldots ,n\}\). Within a community, we observe a steady state, described by the vector of densities of each species within the community, \({\textbf{N}}^{\star }\). Suppose that \(N_{i}^{\star }>0\) for at least one species \(i\in \{1,2,\dots ,n\}\setminus \{j\}\), while \(N_{j}^{\star }=0\) for some focal species \(1\le {}j\le {}n\). An infinitesimal density of species j is then introduced into the community, representing the introduction of an invasive species, whether through natural migration or human intervention. Species j is said to invade the community if the per-capita growth rate of species j is positive, or using our notation described above

$$\begin{aligned} \Omega _{j\rightarrow {}{\textbf{N}}^{\star }}\equiv \lim _{\delta {}N_{j}\rightarrow {}0^{+}}\frac{1}{\delta {}N_{j}}\frac{dN_{j}}{dt}\bigg |_{{\textbf{N}}={\textbf{N}}^{\star }+\delta {\textbf{N}}}>0 \end{aligned}$$
(12)

with the density introduced through invasion defined as

$$\begin{aligned} \delta {}N_{i}={\left\{ \begin{array}{ll} 0 &{} i\ne {}j\\ \delta {}N_{j}>0 &{} i=j. \end{array}\right. } \end{aligned}$$
(13)

We use this definition of invasions throughout the article.

As an example of net negative feedback, we define the net negative feedback of tumor cells on tumor cells in the tumor-PTI-ATI coexistence state (\(\textbf{TPA})\) with \(\omega =0\) as

$$\begin{aligned} \Gamma _{T\rightarrow {}T;\textbf{TPA}}=\frac{r_{T}}{K_{T}}+\frac{\alpha _{TA}\alpha _{AT}}{r_{A}/K_{A}}-\frac{\alpha _{TA}\alpha _{AP}\alpha _{PT}}{(r_{A}/K_{A})d_{P}}-\frac{\alpha _{TP}\alpha _{PT}}{d_{P}}. \end{aligned}$$
(14)

This quantity arises from rearrangement of the \(\textbf{TPA}\) the steady state solution of Eqs. (1)–(3) with \(\omega =0\), and adds up all the contributions to tumor negative self-feedback, which can be visualized in Fig. 1. The first term, \(r_{T}/K_{T}\), is direct tumor self-limitation. The second term reflects the positive effect of tumor density of ATI cell growth, which in turn inhibits tumor growth. This effect is mitigated by strong ATI self-limitation, which is why \(r_{A}/K_{A}\) appears in the denominator. The third and fourth terms are actually positive feedback, and hence have negative signs in the net negative feedback, \(\Gamma _{T\rightarrow {}T;\textbf{TPA}}\). The third term represents the positive effect that tumor cell density has on PTI cell growth, while PTI cell density has a negative effect on ATI cell growth, and ATI cell density has a negative effect on tumor cell growth. Thus, tumor cell density activates PTI cell growth which inhibits the growth of tumor-inhibiting ATI cells, a net positive effect on tumor growth. Finally, the fourth term represents tumor cell density activating PTI cell growth, which then activates tumor cell growth. Self limitation terms also appear in the denominators of the third and fourth terms, for the same reasons as discussed for the second term.

Note that the feedback \(\Gamma _{X\rightarrow {}Y;S}\) depends directly on the state S, because zero density of one or more cell types will remove feedback “channels”, limiting the number of ways that feedback can be felt by a cell type. To illustrate this, we can compare the net feedback of tumor cells on tumor cells in the tumor-PTI-ATI coexistence state (Eq. 14) with that for the tumor-PTI coexistence state (\(\textbf{TP}\))

$$\begin{aligned} \Gamma _{T\rightarrow {}T; \textbf{TP}}=\frac{r_{T}}{K_{T}}-\frac{\alpha _{TP}\alpha _{PT}}{d_{P}} \end{aligned}$$
(15)

which lacks all interaction parameters with ATI cells (see Fig. 1).

Fig. 1
figure 1

Schematic diagram of interactions in the model. Note that the exponential growth terms \(r_{T}\) and \(r_{A}\) are not depicted. The meanings of each type of line between T, P, and A are as follows. Single pointed arrow: positive (“activating”) interaction; Line with straight, perpendicular end: negative (“inhibiting”) interaction; Double pointed arrow with perpendicular, bisecting single pointed arrow: conversion interaction, here conversion of A to P is “catalyzed” by T

The tumor-only (\({\textbf{T}}\)) and tumor-ATI coexistence (\(\textbf{TA}\)) steady states are always unstable (Table 2), and are therefore of no interest for our purposes. This leaves the ATI-only (\({\textbf{A}}\)), tumor-PTI coexistence (\(\textbf{TP}\)), and tumor-PTI-ATI coexistence (\(\textbf{TPA}\)) states as the focus of our analysis. These can be thought of respectively as immune “wins”, tumor “wins”, and tumor-immune “draw”. To narrow the parameter space of interest, we can see that \(\textbf{TP}\) is feasible only when

$$\begin{aligned} \frac{r_{T}}{K_{T}}>\frac{\alpha _{TP}\alpha _{PT}}{d_{P}}~\text {or~equivalently}~\Gamma _{T\rightarrow {}T;\textbf{TP}}>0 \end{aligned}$$
(16)

is satisfied. This can be interpreted to mean that the direct negative feedback of tumor cells on themselves must be greater than the positive feedback of tumor cells on themselves through PTI cells, where the feedback signs are clear from Eqs. (1) and (2) (tumors are self-limiting through \(r_{T}/K_{T}\) while tumor cells increase PTI growth rate and PTI cells increase tumor growth rate). If this condition is violated, unbounded tumor growth is possible (see Fig. 7), contradicting the biophysical realities of cancer. Thus, we can reasonably focus on the parameter space where Eq. (16) is met, as we do throughout the remainder of this work.

Table 2 Summary of steady states

3.2 Stability of Steady States

The stability conditions we have derived for several of the steady states have several interesting implications. The \({\textbf{A}}\) state is only stable when the tumor invasion growth rate (\(\Omega _{T\rightarrow {}{\textbf{A}}}\)) is negative (Table 2). When \(\omega =0\), a necessary condition for the \(\textbf{TPA}\) state to be stable is that \(\Gamma _{T\rightarrow {}T;\textbf{TPA}}>0\) (Appendix A). This means that the only way for there to be a feasible, stable tumor-PTI-ATI steady state when \(\omega =0\) is for \(\Omega _{T\rightarrow {}{\textbf{A}}}\) to be positive (Table 2). Thus, when \(\omega =0\) the \({\textbf{A}}\) and \(\textbf{TPA}\) steady states cannot both be feasible and stable. There can, however be bistability for \(\omega =0\) between the \({\textbf{A}}\) and \(\textbf{TP}\) states.

The stability of the \(\textbf{TP}\) state can switch when \(\omega \) is increased, provided that the right-hand side of the stability condition

$$\begin{aligned} \omega >\Gamma _{T\rightarrow {}T;\textbf{TP}}\frac{r_{A}}{r_{T}}+\alpha _{AT}-\frac{\alpha _{AP}\alpha _{PT}}{d_{P}} \end{aligned}$$
(17)

is positive. We will see in the next section that this stability switch corresponds to a transcritical bifurcation where the \(\textbf{TPA}\) state collides with the \(\textbf{TP}\) state. The \(\textbf{TP}\) state can only be stable for \(\omega =0\) when the right-hand side of Eq. 17 is negative (see Appendix A). While we can exactly solve for the \(\textbf{TPA}\) state and the eigenvalues of the corresponding Jacobian for any \(\omega \) value, the complexity of the resulting expressions prevent clear interpretation. See Appendix A for a more detailed account of solving for \(\textbf{TPA}\).

3.3 Viability of Tumor Cell Populations is Dependent on Immune Cell Conversion

Given the stability conditions discussed in the previous section, there are several possible scenarios exhibited by the tumor-immune ecosystem when immune cells cannot be converted (\(\omega =0\)). There can be a single, stable, steady state, either \({\textbf{A}}\) or \(\textbf{TPA}\), or there can be bistability between \({\textbf{A}}\) and \(\textbf{TP}\). This bistability can only occur when ATI cells cannot invade the \(\textbf{TP}\) state (\(\Omega _{A\rightarrow \textbf{TP}}<0\), see Appendix A and Eq. (52)), an exceptionally hostile environment to ATI cells for a normally functioning immune system. Because \(\Omega _{A\rightarrow \textbf{TP}}\) depends only on the model parameters, the choice of parameters for the model in some sense reflect the long-term development of the tumor while the dynamics of the model reflect faster processes. A parameter set where \(\Omega _{A\rightarrow \textbf{TP}}<0\) reflects a decidedly pro-tumor TIME where immune cell conversion is less relevant than when \(\Omega _{A\rightarrow \textbf{TP}}>0\), where \(\omega \) must be positive for bistability between \({\textbf{A}}\) and \(\textbf{TP}\) (healthy and cancerous states, respectively).

The behavior is of more interest in this second case, where we consider non-zero \(\omega \) effects. The top row of Fig. 2 shows the behavior of the steady states as \(\omega \) varies when \(\Omega _{T\rightarrow {}{\textbf{A}}}\ge {}0\), where an increasing killing rate of tumor cells by ATI cells (\(\alpha _{TA}\)) decreases the tumor density in \(\textbf{TPA}\). When \(\Omega _{T\rightarrow {}{\textbf{A}}}=0\), as shown in the first row of Fig. 2 (darkest green curve in the subplot), the stable \(\textbf{TPA}\) solution disappears altogether at \(\omega =0\), while the \({\textbf{A}}\) state switches from being unstable to stable. Thus, when \(\Omega _{T\rightarrow {}{\textbf{A}}}\) is non-negative, there is no stable healthy state (\({\textbf{A}}\)) of the system, while once \(\Omega _{T\rightarrow {}{\textbf{A}}}\) becomes negative the healthy state becomes stable. When there is no stable state with non-zero tumor cell density at \(\omega =0\) (\(\Omega _{T\rightarrow {}{\textbf{A}}}<0\)), a saddle node bifurcation occurs at a positive \(\omega \) (Fig. 2). Above this \(\omega \) value, there are two \(\textbf{TPA}\) steady states, one stable and one unstable. As \(\omega \) increases, eventually the stable \(\textbf{TPA}\) solution collides with the \(\textbf{TP}\) state, exchanging stability in a transcritical bifurcation. For larger \(\omega \) values, past the transcritical bifurcation, there is bistability between the \({\textbf{A}}\) and \(\textbf{TP}\) states.

The saddle node bifurcation occurs at larger \(\omega \) values as \(\alpha _{TA}\) increases, meaning that in order to maintain a positive steady state population density, tumor cells must convert ATI cells more rapidly when ATI cells kill tumor cells more efficiently. When \(\alpha _{TA}\) is large enough, the stable branch of the \(\textbf{TPA}\) state disappears and a pitchfork bifurcation occurs at \(\omega =\Gamma _{T\rightarrow {}T;\textbf{TP}}\frac{r_{A}}{r_{T}}+\alpha _{AT}-\frac{\alpha _{AP}\alpha _{PT}}{d_{P}}\) (Fig. 3). For even larger \(\alpha _{TA}\) values, the \(\omega \) value at which the saddle node bifurcation occurs decreases, but the stable \(\textbf{TPA}\) steady state is no longer feasible.

There are several interesting biological implications of these results. First, we would expect to see a minimal immune cell conversion rate for tumor viability, below which the tumor cannot be sustained. This is visible in the second row of Fig. 2, for \(\omega \) values below the the saddle node bifurcations. We would not expect to observe this phenomenon in all cases, as we see viable tumor cell populations at \(\omega =0\) for tumor-friendly parameters, as mentioned above. Rather, we would expect to find minimal immune conversion rates for tumor viability in the early stages of tumor development. This is a testable prediction of our model. If the production rate or degradation rate of the biochemical messengers mediating immune cell conversion, such as TGF\(\beta \) (Flavell et al. 2010) can be experimentally manipulated, it should be possible, albeit perhaps technically difficult, to examine the effects of \(\omega \) on tumor viability in vitro.

Fig. 2
figure 2

Bifurcation diagrams over \(\omega \) for different ATI tumor-killing rates (\(\alpha _{TA}\)). When tumor cells can invade an ATI-only state (\(\Omega _{T\rightarrow {}{\textbf{A}}}>0\), first row), there is no stable steady state with \(T=0\). When \(\Omega _{T\rightarrow {}{\textbf{A}}}=0\) (\(\alpha _{TA}=1\) in the first row, with the \(\textbf{TPA}\) steady state shown in the darkest shade of green) then the \({\textbf{A}}\) and \(\textbf{TPA}\) states collide at \(\omega =0\), and as \(\omega \) increases the \(\textbf{TPA}\) state changes continuously from the \({\textbf{A}}\) state. The \(\textbf{TPA}\) state has increasing values of T and P as \(\omega \) increases, until it collides with the \(\textbf{TP}\) state in a transcritical bifurcation, swapping stabilities. When tumor cells cannot invade an ATI-only state (\(\Omega _{T\rightarrow {}{\textbf{A}}}<0\), second row), there is always a stable cancer-free state \({\textbf{A}}\). At \(\omega =0\) the only stable steady state is \({\textbf{A}}\), with the \(\textbf{TPA}\) steady state appearing for \(\omega >0\); there is a saddle node bifurcation at a value of \(\omega \), below which there is no steady state with positive tumor density. Above this value of \(\omega \), there is bistability between the cancer-free and cancer states. The first column shows the steady state densities of tumor cells, while the second column shows the density of PTI cells, and the third column shows the density of ATI cells. Only feasible steady states are shown. Note that each individual subplot is a projection onto to T, P, or A densities from the full three-dimensional state space, so that intersections of solutions occur only when curves in all three projections intersect (Color figure online)

Second, our model suggests that a “stalemate” state (\(\textbf{TPA}\)) can exist at intermediate immune conversion rates, as seen in all subplots of Fig. 2. The steady state with coexistence between tumor cells, PTI cells, and ATI cells represents a stalemate between pro-tumor and anti-tumor cell types, consistent with previously hypothesized “equilibrium” tumor states (Koebel et al. 2007). In the context of metastasis, this possibility is sometimes referred to as tissue dormancy. We predict that, intuitively, the possible sizes of “equilibrium” tumor populations are limited by the ability of ATI cells to kill tumor cells (\(\alpha _{TA}\), see Fig. 2).

Third, we find that there can be an intermediate immune cell conversion rate at which the tumor population density is maximal in the stable \(\textbf{TPA}\) state, as can again be seen in all subplots of Fig. 2. This is due to the fact that the steady state ATI cell “reservoir” for producing PTI cells shrinks as \(\omega \) increases, so that in some parameter sets there is an optimal \(\omega _{\text {max}}\) such that for larger \(\omega >\omega _{\text {max}}\), the tumor cell density is less than at \(\omega _{\text {max}}\). This phenomenon occurs as the stable \(\textbf{TPA}\) solution approaches the \(\textbf{TP}\) solution, in which the anti-tumor immune system is non-existent in the local TIME. While it is unclear how well a complete (local) lack of ATI cells reflects a late stage TIME, the possibility of an intermediate immune cell conversion rate that maximizes tumor cell density has not, to our knowledge, been discussed previously.

Finally, our model predicts that above a threshold immune cell conversion rate, large tumor killing rates by ATI cells (\(\alpha _{TA}\)) are not sufficient to eradicate stable states with positive tumor density (Fig. 3). In this way, immune cell conversion can protect tumor viability against even an extraordinarily effective immune system.

3.4 Immune Cell Conversion Promotes Tumor Survival at Small Growth Rate

As discussed in the previous section, our model indicates that when \(\Omega _{T\rightarrow {}{\textbf{A}}}=r_{T}-\alpha _{TA}K_{A}\le {}0\), there cannot be a stable \(\textbf{TPA}\) state when \(\omega =0\). While we have focused on the effects of \(\alpha _{TA}\) in Fig. 2, it is clear that reducing \(r_{T}\) (reflecting a decreased tumor growth rate) or increasing \(K_{A}\) (reflecting a larger ATI cell carrying capacity) can yield similar results. When the intrinsic tumor growth rate (\(r_{T}\)), the rate of ATI cells killing tumor cells (\(\alpha _{TA}\)), and the ATI cell carrying capacity (\(K_{A}\)) yield a negative \(\Omega _{T\rightarrow {}{\textbf{A}}}\), we observe bistability between \({\textbf{A}}\) (cancer-free) and either \(\textbf{TPA}\) or \(\textbf{TP}\) (cancer), provided that \(\omega \) is large enough. This leads to basins of attraction for the cancer-free and cancer states, divided by an \(\omega \)-dependent two-dimensional surface (Fig. 4).

Fig. 3
figure 3

Values of \(\omega \) for saddle node and pitchfork bifurcations. (ac) Bifurcation diagrams showing the steady state tumor cell density as \(\omega \) is changed, as in Fig. 2, for three representative \(\alpha _{TA}\) values. a) For \(\alpha _{TA}=2\), we see the same behavior as in the last row of Fig. 2. b At \(\alpha _{TA}\approx {}9.05\), there is a pitchfork bifurcation rather than a saddle node bifurcation. The inset subfigure shows a zoomed-in view of the pitchfork bifurcation. c For the large value of \(\alpha _{TA}=20\), there is again a saddle node bifurcation, which occurs at a value of \(\omega \) which now decreases as \(\alpha _{TA}\) is further increased. The stable part of the lower red branch of the tumor-PTI-ATI solution (before colliding with the tumor-PTI solution in a transcritical bifurcation) is not feasible. The inset subfigure shows a zoomed-in view of the saddle node and transcritical bifurcations. d) The value of \(\omega \) at which the saddle node bifurcation (or pitchfork bifurcation in the special case of \(\alpha _{TA}\approx {}9.055\)) occurs, labeled as \(\omega _{SN/PF}\), as a function of \(\alpha _{TA}\). The \(\omega \) value where the tumor-PTI-ATI solution and the tumor-PTI solution collide in a transcritical bifurcation (\(\omega _{TC}\approx {}0.832\)) is shown as a red horizontal line (Color figure online)

Fig. 4
figure 4

The basins of attraction with increasing \(\omega \). As \(\omega \) increases, the region of initial states that end up at the cancer-free state diminishes rapidly, while the basins of attraction for states with positive tumor density increase in volume. Each subplot depicts a three-dimensional grid of points representing initial values of T, P, and A. The larger dots with black edges indicate the locations of steady states, with colors matching those in Fig. 2 (note that the \(T=P=A=0\) and \({\textbf{T}}\) steady states, shown in black and brown respectively, are not shown in Fig. 2). The points in the three-dimensional grid are colored according to the steady state that they asymptotically approach in numerical integration of Eqs. (1)–(3). The black curves are estimates of the dividing surface contours separating basins of attraction, found using support vector machines with degree 3 polynomial kernels as implemented in scikit-learn 1.0 (Pedregosa et al. 2011) (Color figure online)

This bistability between a state with zero tumor density and a state with positive tumor density is an example of an Allee effect, a term commonly used in ecology (Korolev et al. 2014). With an initially low tumor density, the system will evolve towards the cancer-free state, while with sufficiently large tumor and ATI cell density the system will evolve towards the cancer state. As the ATI-to-PTI conversion rate increases, the region of state space where the system will evolve towards the cancer free state shrinks (Fig. 4). This means that if the system is initially in the cancer-free state, the amount of tumor density that must be introduced for the system to reach the cancer state decreases as \(\omega \) increases. Without any ATI-to-PTI conversion (\(\omega =0\)), there cannot be bistability between the \({\textbf{A}}\) and \(\textbf{TPA}\) states. However, there can still be bistability between \({\textbf{A}}\) and \(\textbf{TP}\) with \(\omega =0\) when

$$\begin{aligned} r_{A}+\alpha _{AT}T-\alpha _{AP}P\le {}0 \end{aligned}$$
(18)

where T and P here are the steady state densities in the \(\textbf{TP}\) state (see discussion on Appendix A and Eqs. (49)–(52) therein). This means that the growth rate of a small ATI density introduced to the \(\textbf{TP}\) state must be negative, consistent with a developed TIME state that is uninhabitable for ATI cells. Thus, while an ATI-to-PTI conversion term is not strictly necessary for bistability, it allows for bistability in a broader range of parameter sets with biological relevance.

Finally, we note that this baseline model does not exhibit tristability. That is, the existence of a stable \(\textbf{TPA}\) state means that, for some range of parameters, further growth of the tumor is precluded by an increasing immune response. There is no mechanism whereby even a large increase in tumor size could overcome this linear response, hypothetically giving rise to \({\textbf{A}}\), \(\textbf{TP}\), \(\textbf{TPA}\) tristability. We cannot exclude the possibility that a more complete model might exhibit such a parameter region.

3.5 Alternate Modeling Choices Yield Similar Results

While we have sought to analyze a minimal model of tumor-immune interaction, there are several alternate modeling choices we could have made, depending on assumptions about the behavior of the immune system. In order to test the effects of changing our assumptions, we consider three modifications to our original model in Eqs. (1)–(3)

  1. 1.

    Linearity of PTI direct self feedback: \(-d_{P}P^{2}\) or \(-d_{P}P\) in Eq. (2)

  2. 2.

    Direct positive feedback from tumor cells to PTI cells: \(\alpha _{PT}>0\) or \(\alpha _{PT}=0\) in Eq. (2)

  3. 3.

    ATI proliferation and non-linear direct self feedback or constant recruitment with linear direct self feedback: \(r_{A}A-\frac{r_{A}}{K_{A}}A^{2}\) or \(r_{A}-\frac{r_{A}}{K_{A}}A\) in Eq. (3).

Altogether, there are eight total models spanned by all the choices listed above, leading to seven alternate models to our original set of equations in Eqs. (1)–(3). With the same parameters examined for the original model (Table 1), we find that the bifurcation behavior remains qualitatively similar for all of the eight models (Fig. 5). However, there are several noticeable differences with the alternate models. One of these differences is that for each model except for the original, there is no stable, feasible \(\textbf{TP}\) state for any \(\omega \) value. Additionally, when ATI dynamics are altered so that ATI cells are recruited in an A-independent manner and die at a constant rate, there is no \({\textbf{T}}\) state, so that the tumor density of the \(\textbf{TPA}\) state, when it exists, is an increasing function of \(\omega \). For a more detailed analysis of the alternate models, see Appendices B & C.

Fig. 5
figure 5

Bifurcation diagrams showing the steady state density of tumor cells from all eight choices of model. a The model from Eqs. (1)–(3), analyzed in the above sections. b The model in (a) except with an ATI source term (immune cell recruitment) and a linear ATI death term. c The model in (a) without a PTI growth term dependent on tumor cells (equivalent to \(\alpha _{PT}=0\)). d The model in (c) with an ATI source term and a linear ATI death term. e The model in (a) with a linear PTI death term. f The model in (d) with an ATI source term and a linear ATI death term. g The The model in (a) without a PTI growth term dependent on tumor cells and with a linear PTI death term. h The model in (g) with an ATI source term and a linear ATI death term. With a linear intrinsic ATI birth term and non-linear ATI death rate, in subplots (a), (c), (e), and (g), the stable tumor-PTI-ATI steady state collides either with the tumor-PTI coexistence state in (a) or with the tumor-only state in (c), (e), and (g). On the other hand, with an ATI source term and a linear ATI death term, in subplots (b), (d), (f), and (h), the stable tumor-PTI-ATI steady state does not collide with another steady state but saturates as \(\omega \) increases (Color figure online)

When PTI cells have a non-linear self-limitation term, the saddle node bifurcation leading to bistability occurs at a lower \(\omega \) value (Fig. 5). This difference is likely due to the fact that the value of P in the \(\textbf{TPA}\) state for the parameters we used is less than one, leading to less self-limitation than would occur with a linear self-limitation term. Thus, the saddle node bifurcation will likely occur at a larger \(\omega \) value for these models than for those with linear PTI self-limitation terms with the same parameters.

4 Conclusions

We have analyzed the effects of tumor-induced immune cell conversion in a simple model of the TIME, finding that an immune cell conversion term allows for bistability between a cancer-free state and a state with a non-zero tumor cell density. Our results suggest an important role for immune cell conversion in the early stages of tumor growth, before the TIME has been shaped into a pro-tumor state, which in the context of our model is characterized by parameters for which there is no stable steady state with positive tumor density for \(\omega =0\). For a large enough immune cell conversion rate, we find that a “stalemate” or “equilibrium” stable steady state can exist. In this stalemate state, tumor cells, PTI cells, and ATI cells can coexist, maintained by a balance of pro-tumor and anti-tumor factors. Eventual escape from equilibrium tumor states, leading to tumor growth not limited by the anti-tumor immune system, is not directly captured by our model; perhaps including a direct competition for metabolic resources might allow a large enough tumor to completely suppress immunity. Instead, escape from a coexistence state can be caused by changes in model parameters so that a shift from a coexistence state to a stable tumor and PTI cell steady state occurs.

By assuming a quadratic form for ATI-induced tumor cell death (\(-\alpha _{TA}TA\) in Eq. 1), we ignore the possibility of tumor cell population size-dependent or tumor growth rate-dependent immunosurveillance (Finn 2018). In the case where small tumor cell populations are not detected and/or targeted by the immune system, it is conceivable that a large enough tumor cell population can grow before ATI-induced tumor cell death becomes appreciable, allowing tumors to bypass the basin of attraction for \({\textbf{A}}\) states when there is bistability with steady states characterized by a non-zero tumor cell density. In this case, the tumor cell population density at which the immune system begins killing tumor cells can be considered the initial state of a tumor in our model, and larger ATI-to-PTI conversion rates will place this initial state closer to the basin of attraction of cancer states. At the same time, our model suggests that an immune system able to successfully reduce a large tumor cell density may be able to bring tumor cell density to a threshold value, below which tumor clearance is nearly inevitable.

Previous work has suggested that tumor cell populations may subject to an Allee effect (Korolev et al. 2014; Böttger et al. 2015; Johnson et al. 2019; Azimzade et al. 2021). Allee effects can be classified as weak, where below a threshold population size the growth rate is non-negative but small, or strong, where below a threshold the growth rate is negative, driving the mean population size to zero. One suggested mechanism for an Allee effect in tumor population dynamics is cell-density dependence of “go or grow” phenotype switching (Böttger et al. 2015). Our ecological model of the TIME suggests that tumor-immune interactions, namely immune cell conversion, may also contribute to an Allee effect. Clearly, if a threshold initial population of tumor cells is necessary for the tumor to persist (on average), there is a significant barrier to tumor viability. As the ability of tumor cells to convert ATI cells to PTI cells increases, the threshold population size decreases, lowering the barrier for tumor viability as a function of initial population size.

Further work is needed to uncover the role of tumor-induced immune cell conversion on cancer dynamics. From the theoretical side, more realistic treatment of the immune system, together with consideration for the effects of spatial organization on tumor growth and immune interaction could be incorporated into modeling efforts. In addition, phenotypic switching of tumor cells should be taken into account, especially since processes such as EMT might alter a cell’s sensitivity to immune interdiction (Tripathi et al. 2016). Ideally, a quantitatively predictive model could be developed to allow for direct comparison with experiments, in order to test our theory-generated hypotheses concerning the role of immune cell conversion in tumor dynamics. Further, such a model could inform immunotherapy strategies targeting immune cell conversion, including attempts to promote M1 tumor-associated macrophage phenotypes over M2 phenotypes (Zhang et al. 2019; Li et al. 2020; Jaynes et al. 2020; Guo et al. 2023) and the targeting of regulatory T-cells (Tanaka and Sakaguchi 2019).