1. Introduction
Banks serve as the cornerstone of the financial and economic system, playing a vital role in supporting and facilitating economic activity. Consequently, when banks experience significant difficulties, the stability of the entire financial and economic structure can be jeopardized. This vulnerability has been clearly demonstrated by various historical financial crises. A prominent example is the 2008 global financial crisis, which was largely caused by dysfunctions within the banking sector. Several key factors underline the fragility of modern financial systems. First, the increasing complexity and interdependence of global financial networks remain, to a large extent, insufficiently understood and regulated [
1]. Second, crises of liquidity, and at times solvency, have manifested as credit crunches affecting businesses, banks, and governments alike, thereby intensifying systemic risks.
The crisis was triggered by the bursting of the housing price bubble in 2007, along with massive financial losses incurred by banks. As a result, the “Great Recession” began in 2008, with its effects continuing well beyond 2010. This episode revealed a critical gap in risk management: banking and liquidity risks were not considered as seriously as credit or market risks. In response, the international community made efforts to standardize banking regulation, starting with Basel I in 1988 and followed by Basel II in 2004. Nevertheless, these frameworks largely overlooked liquidity risk, often reducing it to the ability to meet obligations after their due dates [
2].
The interbank exchange system operates through the transfer of deposits and the provision of credit facilities between financial institutions [
3,
4,
5]. Contagion within the banking sector arises when one or more banks experience liquidity shortages. Simultaneously, concerns about the timely repayment by counterparties prompt other banks to withdraw their funds, initiating a domino effect across the interbank network.
All of these factors influence the stability of the financial system to varying degrees. According to [
4], contagion occurs when a crisis in one country increases the likelihood of a similar crisis occurring in another. In emerging economies, this effect is often amplified by the transmission of external shocks. As a result, even minor fluctuations in developed markets can have a pronounced impact on other economies, particularly due to the high sensitivity of capital flows to changes in global interest rates. This mechanism serves as a primary driver of contagious financial crises.
In recent years, many papers have been published on the phenomenon of contagion within the financial system [
6,
7,
8]. In addition the introduction of optimal control approach to deal with liquidity contagion was studied in [
9]. In line with this trend, the present study aims to address the challenge of modeling liquidity risk contagion using a rigorous mathematical framework based on differential equations. Establishing effective financial control over all banks is of paramount importance, as such oversight plays a critical role in safeguarding institutions from systemic contagion. Financial regulation not only mitigates the spread of financial shocks but also helps prevent their negative consequences across the banking network. In this context, the European Central Bank (ECB), as a highly qualified supervisory authority, assumes the responsibility of overseeing and regulating banks. The ECB also facilitates vertical coordination among commercial banks, thereby strengthening the resilience of the system and helping to prevent the widespread transmission of financial distress.
New methods and techniques are essential for effectively conceptualizing and modeling the financial system. Mathematical models play a fundamental role in understanding the dynamic behavior of contagion risk within the banking sector, its impacts, and potential future trajectories of its spread [
1,
10,
11,
12]. In recent years, mathematical modeling of financial contagion has emerged as a relatively new yet rapidly growing research field, recognized as a critical area of study. These models are extensively applied in banking to improve risk management, forecast financial performance, and develop optimal operational strategies, thereby enabling institutions to make better-informed decisions and enhance both stability and profitability.
To study the contagion phenomenon, many researchers have drawn analogies between economic contagion and biological epidemics. From a mathematical perspective, the diffusion of a financial “virus” through economic networks is analogous to the spread of infectious diseases, and both are effectively described by systems of differential equations. This analogy is particularly relevant because national financial institutions form interconnected networks. Several studies have successfully adapted the Susceptible–Infected–Recovered (SIR) epidemiological model to the financial domain, providing valuable insights into systemic risk and contagion dynamics [
2,
13].
Our model introduces several significant innovations compared to existing approaches:
It incorporates a simultaneous delay in both the state variables and the control variable, which is rarely present in existing work.
The optimal control applied in our model has a delayed effect, which accurately reflects the implementation delays of monetary policies and regulatory interventions.
The model is then applied to empirical data on European banks, across three different countries, with partial parameter calibration.
Finally, we develop an optimal analysis using Pontryagin’s Maximum Principle with delay, which remains largely unexplored.
Additionally, research focusing on contagion in financial networks has employed the SIR model combined with optimal control theory to analyze systemic risk transmission across national banking systems. The results closely reflect real-world global economic conditions and emphasize the significant role of international financial linkages in maintaining overall financial stability [
11].
The dynamics of contagion are influenced not only by its current state but also by its past behavior. To more accurately represent contagion risk, we propose a more realistic model that builds upon the findings of [
2,
13]. Our analysis considers time delays in both the state and control variables as important factors. Numerical modeling is used as a computational method to approximate solutions and optimize the problem through simulations.
This process involves imposing various constraints on the mathematical representation of the problem under investigation and analyzing the resulting effects to identify modifications that improve outcomes. Numerical modeling is widely applied across multiple disciplines, including medicine [
14,
15], economics [
16], environmental science [
17], transportation [
18], and finance [
19,
20].
This work adopts a mathematical approach but could be complemented by multidisciplinary perspectives, incorporating monetary policy, the structure of banking supply chains, and financial network models.
Notably, recent years have seen significant advances in modeling infectious epidemics, which have become prominent examples within their respective fields [
11], as well as in studies of urban crime [
21]. Additionally, considerable research has focused on option pricing [
19], chaotic systems [
22], and the analysis of nonlinear evolutionary dynamics [
17].
The rest of this paper is organized as follows. In
Section 2, we propose a mathematical model which integrates a delay and a control term. In
Section 3, the optimization problem is analyzed and discussed. In
Section 4, an appropriate numerical method is described, along with the corresponding simulation results. The final section,
Section 5, provides a concise summary of the conclusions drawn from the study.
2. Mathematics Model
Our strategy focuses on maximizing the count of banks that are susceptible while minimizing the count of infected banks and those at risk of bankruptcy. We incorporate a control variable, denoted as u, which represents the proportion of banks that can potentially be safeguarded from contagion risk within a given time frame.
To ensure a realistic model, it is essential to consider that the transition of susceptible banks from the group of banks in the susceptible category to the group of banks in the bankrupt category experiences a delay. We incorporate this delay into the system as follows: at time t, only a certain percentage of susceptible banks, which have been rescued from risk units of time ago, i.e., at time , are transferred from the bankrupt class to the susceptible class.
The delay
models the time required between the detection of liquidity risk and the effective response by financial authorities (ECB, national central banks, support mechanisms). It therefore reflects the actual implementation delays of monetary policy. Empirically, it can be estimated using interbank transaction data by analyzing the average time lag between liquidity stress and intervention. Consequently, the mathematical formulation including state and control variables with timing aspects can be formulated by the following nonlinear delayed differential system. The formulation of this problem is influenced by the research conducted in [
4,
13,
23]. To accomplish this, we examine the following system of differential equations:
where
where
N denotes the total number of banks.
The non-negative constant is the time delay. The delay could be estimated using a lagged regression (VAR or Granger causality test) on high-frequency data from EONIA or interbank networks (TARGET2).
The constant positive value signifies the rate at which new banks enter the banking system.
The initial condition of (
1) is given as
where
where
C represents the space of continuous functions on the interval
in
, which is a Banach space denoted by
.
We suppose that for .
Let
be the control set
u integrable in the sense of Lebesgue and bounded
where
refers to the collection of banks at time t with a general ratio greater than 1, representing banks with a sufficient liquidity ratio, and therefore capable of absorbing a shock without falling into a critical situation.
refers to the collection of banks at time t with a general ratio less than 1
corresponds to all banks at time t that have become bankrupt.
represents the spread rate, which signifies the velocity at which the contagion disseminates. This parameter signifies the contagion intensity of an infected bank, indicating that a susceptible bank in contact with a single infected bank has a probability of to acquire the infection.
denotes the solution rate, which characterizes the rate of recovery. This parameter quantifies the resilience to contagion. Consequently, an infected bank has a probability of recovering from the contagion.
signifies the bankruptcy rate, which indicates the speed at which an infected bank is likely to become bankrupt. Consequently, a troubled bank will encounter bankruptcy with a probability of .
We make the assumption that, for , , , and are continuous non-negative functions, and . It should be noted that the control variable u is considered as Lebesgue integrable, bounded by , where b is a predetermined constant less than 1.
To demonstrate that the control system (
1) admits a solution, we start by proving that it is dissipative. This implies that the solutions remain uniformly bounded in an appropriate subset
.
2.1. Bornitude and Positivity of Solutions
Let
be any solution with non-negative initial conditions. Adding equations of (
1), we get
After integration, we have
Therefore, all feasible solutions of the system (
1) enters the following region:
2.2. Detailed Calculation of the Stability of System (1)
2.2.1. Lyapunov Candidate Function
The Lyapunov candidate function is chosen as
where
are positive constants. This function is positive definite.
2.2.2. Time Derivative of V
The time derivative of
V is given by
Substitute the dynamics of the system (
1) as follows:
Thus, the derivative of
V becomes
2.2.3. Expansion of Terms
Expand each term:
Term 1:
Term 2:
Combining all terms, we obtain
2.2.4. Handling Cross Terms
The term
must be bounded. Assume
, where
is a positive constant. Then
Using Young’s inequality (
), we can write
2.2.5. Simplification of
Substituting this bound into the expression for
, we obtain
2.2.6. Choice of Coefficients to Ensure
To ensure
, we choose the coefficients
such that the positive terms are dominated by the negative terms. For example, we can impose
Assuming
(where
N is a constant), we can write
Dividing by
N (assuming
), we obtain
2.2.7. Matrix Representation
The matrix representation of the system remains valid:
with
and
2.2.8. Lipschitz Continuity
The function
G satisfies a uniform Lipschitz continuity condition:
where
. This guarantees the existence and uniqueness of solutions for the system (
1).
4. Numerical Simulation
The year 2012 corresponds to a critical post-crisis year with available data on European bank spreads and interbank linkages. The 169 banks in our dataset represent large and medium-sized institutions sampled from ECB reports and analyzed in [
25]. In each simulation, the contagion is modeled using actual initial conditions, and the parameter
is varied to capture different degrees of market pessimism and shock absorption capacity. Some numerical results were used in order to make a comparison between the proposed approach and the classical one, which uses constant weight coefficients in the cost function, and to demonstrate the behavior of the proposed approach as well.
For the purpose of conducting a numerical simulation in a real-world scenario, we obtained the spread rate
and the recovery rate
from the research conducted by Philipps, Koutelidakis, and Leontitsis [
25]. The rates mentioned were obtained by extracting data from a sample of 169 prominent European banks, specifically collected for the year 2012, as computed in [
25]. In our numerical simulation, we consider a total of
banks, out of which 10 banks initially encounter liquidity risk at time
.
is a threshold that represents the maximum capacity of public authorities to intervene, set at 100% in this paper to standardize the analysis. It can be adjusted to model more constrained scenarios.
In this section, we examine the modeling of liquidity risk and the utilization of optimal control techniques to mitigate the spread of liquidity risk in the banking system. We consider three initial scenarios of liquidity crisis: the first originating from Spain, the second from France, and the third from Germany. The data for each case and scenario are summarized in the following respective tables:
Table 1 for the Spanish crisis,
Table 2 for the French crisis, and
Table 3 for the German crisis.
The evolution of the spread of liquidity risk, as modeled by the differential system (
1), is illustrated in
Figure 1,
Figure 2,
Figure 3,
Figure 4,
Figure 5,
Figure 6,
Figure 7,
Figure 8 and
Figure 9, which represent the system’s behavior in Spain, France, and Germany under varying values of the default parameter
over the same time horizon.
These countries represent three different profiles: Spain (severe crisis in 2012, fragile banks), France (large universal banks), and Germany (highly interconnected regional banking system).
In the initial scenario characterized by the highest default probability (
), illustrated in
Figure 1 (Spain),
Figure 2 (France), and
Figure 3 (Germany), it can be observed that in all three countries, the contagion rate decreases rapidly over time. This is primarily attributed to the sharp default rate in the uncontrolled case, where approximately
of all Spanish banks collapse in a short span, and nearly
of banks in France and Germany go bankrupt. However, with the application of the optimal control strategy, the proportion of defaulted banks significantly declines, eventually approaching zero. This demonstrates the effectiveness of central bank intervention in restoring the stability of the banking system.
In the second scenario, with a more moderate default probability (
), illustrated in
Figure 4 (Spain),
Figure 5 (France), and
Figure 6 (Germany), the liquidity crisis evolves more gradually. Due to the lower initial risk of default, the financial shock takes more time to spread across the system. This extended contagion window results in more banks facing liquidity distress before collapsing. Nevertheless, the implementation of control significantly reduces the spread of the crisis and enables the banking system to return to a stable configuration.
Finally, in the third scenario with a very low default probability (
), as shown in
Figure 7 (Spain),
Figure 8 (France), and
Figure 9 (Germany), the uncontrolled dynamics lead to a persistent and widespread financial contagion. Because default is almost absent, banks continue to operate despite being illiquid, which in turn amplifies the contagion and eventually destabilizes the entire system. The introduction of control in this scenario prevents this extensive spread and ensures that banks recover before the system collapses.
The impact of time delay
on the dynamics of the banking system is illustrated in
Figure 10. As the value of
increases, we observe significant changes in the evolution of the system compartments
,
, and
. Specifically, larger delays result in slower reactions to contagion events, leading to more pronounced oscillations and delayed peaks in the trajectories. This indicates that the introduction of a delay in the system weakens the immediate response capacity of banks to liquidity shocks, potentially amplifying systemic instability. The results emphasize the importance of accounting for time delays in modeling the spread of financial risks in banking networks.
The choice of Spain, France, and Germany is motivated by their contrasting positions within the Eurozone: Spain experienced significant liquidity stress post-2010, France maintained a moderate-risk banking profile, while Germany exhibited strong resilience and systemic influence.
5. Conclusions
This paper focuses on modeling the spread of liquidity risk contagion within the banking system by drawing analogies with the dynamics and control of infectious diseases. The introduction of the optimal control variable u plays a pivotal role in managing liquidity risk. It represents the proportion of banks that can be shielded from contagion within a given time frame. By adjusting the value of u, the system’s dynamics can be influenced, enabling the implementation of strategies to curb the spread of contagion and mitigate the associated financial risks. The optimal control variable u enables the implementation of preventive measures such as liquidity injections or support mechanisms to limit the spread of contagion within the banking system. By maximizing the number of susceptible banks and minimizing the number of infected or bankrupt institutions, u contributes to preserving overall financial stability. To achieve this goal, Pontryagin’s Maximum Principle is applied to determine the optimal control strategy that most effectively fulfills these objectives.
The delay in the system plays an important role by considering the temporal dynamics of banks in the model. It represents the time delay required for the susceptible banks that have been saved from risk at time to be transferred from the bankrupt category to the susceptible category at time t. Thus, in the equations of the system, the influence of the delay is observed in the terms and . These terms represent, respectively, the susceptible banks that are transferred from the bankrupt category to the susceptible category and the optimal control applied at time to protect banks from the contagion risk.
The inclusion of a delay parameter allows the model to capture the time lag and propagation effects between different categories of banks. This is essential for understanding the system’s dynamic behavior and assessing the effectiveness of control measures. The delay also facilitates the analysis of how past decisions influence the system’s evolution over time. To solve the optimization problem, we employed a discretization approach based on forward and backward difference approximations. Simulations conducted in Python revealed a strong alignment between the model’s outcomes and the observed behavior of major European banks across three examined scenarios. These results provide compelling evidence of the model’s capability to accurately reflect real-world financial dynamics.
Our results confirm that the spread of liquidity contagion is sensitive to the default parameter . A lower , contrary to intuition, may prolong contagion because distressed banks continue to interact with others, delaying systemic resolution.
The optimal control variable , representing interventions such as liquidity injections or capital support, proves highly effective: it limits contagion at early stages, preserves solvent institutions, and accelerates systemic recovery.
Importantly, we show that the inclusion of delay —reflecting real-world lags in regulatory response or market adaptation—plays a destabilizing role when not accounted for. Larger delays increase oscillations and delay the return to equilibrium.
Our findings suggest that real-time monitoring, faster deployment of liquidity tools, and network-aware regulation are crucial to reducing systemic vulnerability.
Policy recommendations derived from our model include
Strengthening central bank liquidity lines and pre-committed buffers;
Integrating dynamic contagion models into supervisory stress tests;
Improving coordination across national regulatory authorities.