Abstract
Introduction
In recent years, researchers in many areas of scientific fields, such as computer science, sociology, mathematics, physics, economics, and biology, have realized the importance of complex systems analysis, modelling, and engineering (Ma’ayan, 2017). Today, modelling approaches are essential in interdisciplinary fields, including biomedical engineering, biophysics, and system physiology, which not only require thorough knowledge of mathematical (e.g. calculus, linear algebra, and differential equations) and engineering (electronic, photonic, mechanical, and materials) skills (Northrop, 2010), but also a computer-based analysis of a system’s properties. For example, biological systems are understood to be highly complex given that they involve many subsystems, which, in turn, have a structure and organizational principles (Cardelli, 2005). Human physiology is considered a complex system inasmuch as it consists of a number of biological systems comprising a large number of interacting components such as agents and processes (Rocha, 2020). In the domain of human physiology, the cardiovascular system (CVS) is defined as a sophisticated mechanism including complex interactions and physiological processes (Kokalari
In the present study, we describe some of the methods developed to model the CVS, with a focus on two distinct modelling approaches: Windkessel model and agent-based modelling and simulation (ABMS). These modelling approaches provide a foundation for understanding both the dynamics and complexity of the CVS. We improve the Windkessel model by connecting it with an astable multivibrator that provides the timing of the systole and diastole phases during the cardiac cycle and an inverter circuit to represent the aortic valve and the aorta. Based on digital electronics and including 3-element Windkessel model, the Windkessel model explains both the behaviour of the left heart and the aorta and their timing. In order to establish the relative effectiveness of our model, we constructed a digital circuit for the model with real electronic components and observed its behaviour.
Agent-based model comprises a network, a grid, and a continuous space in the Repast Simphony platform (North
The rest of the study is organized as follows: a detailed description of the CVS is given in Section 2; a review of studies in which researchers propose models of the CVS is presented in Section 3; a description of the methods and our modelling approaches are described in Section 4; the circuit model is developed and the simulation results are given in Section 5; an account of the evaluation and a more general discussion of the study are given in Section 6; the conclusion, including a summary of the study and recommendations for future research directions, is presented in Section 7.
Human Cardiovascular System
The human cardiovascular system (CVS) is a closed loop circulatory system in which vital functions, such as the circulation of oxygen, nutrients, hormones, ions, and fluids, and the removal of metabolic waste, are maintained. This system consists of two important circulatory processes that take place simultaneously within the body: systemic circulation and pulmonary circulation. The blood’s circulatory cycle begins with systemic circulation. The left ventricle (LV) of the heart pumps oxygen-rich blood into the main artery, i.e. the aorta. The blood travels from the aorta to the arterial branches and arterioles into the capillary bed, where it releases oxygen and nutrients and other important substances, and then continues back toward the heart by taking on carbon dioxide and waste substances through venules and veins, after which the blood returns via the vena cavae to the right atrium (RA) of the heart. Pulmonary circulation carries oxygen-poor (deoxygenated) blood away from the right ventricle (RV) of the heart to the lungs and returns the oxygen-rich blood, which is oxygenated in the lungs, back to the left atrium (LA) of the heart (Guyton and Hall, 2015; Bora
Each vessel behaves in a specific way in order to facilitate blood flow. Directly connected to the LV of the heart, the aorta is the most important artery in the human CVS. Serving as a conduit and an elastic chamber, it helps pump blood in the arteries and monitors changes in arterial pressure. When the LV pumps blood into the aorta, the latter expands and the blood flows in the circulatory system and returns to the heart. These events occur in a cardiac cycle, which consists of two phases: the systole phase and the diastole phase. The cardiac cycle begins with the systole phase in which the LV contracts and pushes blood into the aorta, which dilates the aortic wall and generates a pressure wave that moves along the arterial tree. The relaxation and subsequent filling of the LV starts during the diastole phase (Guyton and Hall, 2015). In this study, the systole and diastole phases are investigated by two different methods. We use the Windkessel model to examine these phases in terms of timing, starting from the left heart, and we use agent-based model to examine the phases of the cardiac cycle by using a state machine approach in which each state is adopted by the vessel agents.
Literature Review
ABMS has been applied in many domains, including complexity science, which refers to biological systems, several branches of the social sciences, management systems, economic systems, physiological systems, ecological systems, animal societies, and etc. (Macal and North, 2009; Di Marzo Serugendo
These and similar studies provide us with a better understanding of the CVS dynamics. These studies, although different in regard to specific purpose and approach, all examine the mathematical and computer-based modelling techniques that we draw on in the present study. Each method has its own advantages and disadvantages. Mathematical models describing a complex system can be overly difficult to solve analytically; therefore, they are typically solved numerically (Fischer, 2008) or implemented as a computer code (i.e. the algorithm-like ABM) (Motta and Pappalardo, 2012). In this study, we examine both a mathematical model, i.e. the Windkessel model, and a computer-based model, i.e. ABMS.
Modelling Approaches
CVS is defined by principal physiological parameters including pressure, flow, resistance, volume, compliance, etc. These parameters shown in Table 1 are important for circulation of the blood throughout the body. When these parameters are examined, it is observed that they are used in similar ways in different engineering modelling scenarios such as fluid mechanics, electricity and computer science (Emek, 2018). We present the representations of the CVS in fluid mechanics (Westerhof
The representation of the CVS’s parameters in various domains.
The representation of the CVS’s parameters in various domains.
We have developed the Windkessel model of the arterial system and an agent-based blood vessel model of the CVS in order to observe changes in the pressure of the vascular system when the
The Windkessel is a lumped parameter model of the arterial system. The Windkessel model describes the hemodynamics of the arterial system such as compliance and resistance (see Fig. 1) and is analogous to the electric circuit model (Frank, 1899; Mei

Concept of the Windkessel model.
The Windkessel model takes into consideration the following parameters as shown in Fig. 1 and characterizes peripheral resistance of the aortic valve, arterial compliance and peripheral resistance of the vessels:
Resistance of the aortic valve (
Arterial compliance (
Peripheral resistance (
The original version of the Windkessel is the 2-element model, which consists of a capacitor (
The Windkessel model takes into account the effects of arterial compliance and total peripheral resistance determined by the systolic and diastolic phases of the cardiac cycle. As shown in Table 1,
The differential equation of the 3-element Windkessel model is given as:
In the 2- or 3-element Windkessel model, no defined time-varying potential
Given that it does not have a stable operating state, an astable multivibrator oscillates back and forth between reset and set states. Also referred to as clock circuits, astable multivibrators are used to provide a clock signal to digital circuits so that these can operate. Figure 3a shows a circuit diagram of an astable multivibrator. A characteristic of an astable multivibrator is the availability of two outputs (0 and 1) that are logically inverse. The action of the transistors in a multivibrator can be considered an ideal switch. If a transistor is off, it does not draw a current through the collector-emitter and is an open-circuit. Thus, the power supply voltage

Waveforms of an astable multivibrator.
The period of the wavefoms
By using equation (4), the voltage across the capacitor
For this circuit to work,
In our design, the astable multivibrator has the component values of
According to the calculations,

Proposed Windkessel model: (a) astable multivibrator circuit; (b) inverter circuit.
The astable multivibrator followed by an inverter (see Fig. 3b) is sufficient to obtain cardiac events during the cardiac cycle. The inverter circuit operates in the following way: If the input to the inverter is logical 0, the transistor of that circuit is held in cutoff such that there is no base current and the base-emitter appears as an open circuit. If there is no base current, there is no collector current and the output voltage is the supply voltage value. If the input to the inverter is logical 1 (12 V), the transistor becomes saturated and the transistor begins to turn on. When the output waveform of the collector of the transistor
The inverter circuit represents the aortic valve of the heart. A resistor
The astable multivibrator represents the left heart from the perspective of physiology. The transistor
In the diastole phase, the LV is relaxed. In this case, the collector voltage of transistor
Moreover, when the inverter circuit is connected to the collector of the
In the systole phase, the LV contracts and pumps the blood out of the arteries. At the same time, when the LA is relaxed, the voltage drop on the collector of
Agent-based modelling and simulation (ABMS) is a rule-based computational modelling approach that focuses on rules and interactions among the individuals or components of a real system. ABMS is useful for representing, creating, analysing, and experimenting with artificial worlds populated by agents that behave autonomously and interact with other agents or collective entities (Di Marzo Serugendo
In a previous study (Bora
In agent-based blood vessel model, the aorta is divided into segments referred to as aorta agents (see Fig. 4), each of which mimics the aorta’s functionality.

Agent-based aorta model.
Information is transferred between consecutive agents. When the LV contracts, the pressure on the first aorta agent reaches its maximum value in the cardiac cycle. This pressure value is transferred to the second aorta agent. In the next cardiac simulation cycle, the aortic pressure on the second aorta agent reaches its maximum value and is transferred to the next aorta agent, and so on. We implement the well-known pattern of publish-subscribe in order to provide interaction between the agents. Each agent subscribes itself to the corresponding agent and publishes messages in order to propagate messages to its listeners. On receiving a message, an agent updates itself (adapts itself if required) and regulates its behaviour according to the current environment situation. Each aorta agent evaluates its current situation according to its local knowledge and behaves accordingly (Bora
In Fig. 5 1, the aortic pressure waveform is represented in respect to time. The aorta can be in one of the following states in a cardiac cycle: systolic uptake, systolic decline, dicrotic notch, diastolic runoff, and end-diastolic pressure. When the LV pumps blood into the aorta, the pressure in the aorta is at its maximum value. Before the LV ejects the blood to the aorta, the pressure in the aorta is at its minimum value.

Aortic pressure waveform.
We show the cardiac cycle in the state machine in Fig. 6. We use the state machine to represent the agent’s states. The state machine is an abstract concept used to design algorithms or/and describe program interactions. It is defined as an initial state, a set of input and output events, a set of new states that result from the input events, a set of possible actions that result from a new state. During a cardiac cycle, each agent is being at an agent state which is defined in the state machine at a time (Cakırlar, 2015).

State machine of the aorta during a cardiac cycle.

Aorta agents’ behaviour.
Figure 7 shows the behaviour of the aorta agents that transmit oxygen-rich blood. Aorta agents represent a specific aortic cross-section. The message transmitted through the aorta agents is that the blood pressure value is to be pumped from the LV of the heart. Each aorta agent updates the value of its pressure according to its radius and other vessel parameter values (length, resistance, volume, compliance, etc.) and sends these values to neighbour agents. If the incoming pressure value indicates that dilation is necessary, the radius of the aorta is adjusted.
At any given time, the aorta agents can be in various states: whereas some are in systolic uptake, others can be in systolic decline, dicrotic notch, diastolic runoff, or end-diastolic pressure. In order to represent a wave of pressure, a cardiac cycle is represented in 100 simulation cycles (see Fig. 5). The aorta agents’ states in a cardiac cycle that we observed and the corresponding simulation cycles (
Aorta agent states during a cardiac cycle and associated pressure values.
In Table 2, the pressure values for each state of agents are calculated uniformly.
In this study, we offered two distinct methods for observing aortic behaviour in the CVS: (1) a Windkessel model and (2) an agent-based model. The results of the Windkessel model approach are observed both in experimental and simulation environments. It is very difficult to capture very small frequency signals. Therefore, the observed results were tested in a simulation environment (see Fig. 8). We could capture the image of the test results with the component values of

Proposed Windkessel model in the simulation environment.
In the other simulation approach, we developed our model in Java language, using Repast Simphony tool. We run the simulation at 1000 simulation cycles (tick counts). We defined one cardiac cycle as 100 simulation cycles. In Table 3 below, we list all the global parameters used by an aorta agent in the algorithm of the model and their definitions.
Global parameters for the aorta model of the human CVS.
These parameters depend on the assumptions made during the design of the ABMS model. The reason for this is that agents are not modelled in cell size. Each vessel agent represents a specific vessel cross section, and therefore, first aortic radius and the aortic length values of the model are added as the simulation parameters. The general structure of the vessel is decreasing in size towards the capillaries from the first aortic entrance. However, the first aortic radius can be calculated based on a known vessel structure, age and gender. In addition, blood density and fluidity cause blood vessels to behave differently during transport of blood through the vessels. In addition, due to some internal calculations, it is necessary to define certain constants as information sources. The mean arterial pressure pumped from the LV agent to the aorta agents is shown in Fig. 9.

Mean arterial pressure over time.
Any effort to assess a simulation relies on a combination of protocols properly applied together with the application of analytical expertise as well as a framework within which initial predictions are proposed and a retrodictive consideration offered. In the present article, the behaviour of agents takes place in relation to the parameters of a healthy person in usual circumstances. Further, the study relies on field experts to determine the boundary ranges of the parameters, the default values, and the results reported.
Emprical knowledge is created in building and validating models of this nature, such that they tend to be associated with processes described as the “Empirical Validation of Agent-Based Models”. Such models are defined by characteristics that have been empirically confirmed in relation to a specific domain. Scientific methods of investigation and analysis are used to collect and describe data in both quantitative and qualitative terms (David
Whereas physiological parameters can be modelled using hemodynamic principles, agents’ behaviour can be monitored in the simulation (David
Discussion and Conclusions
Several approaches to the Windkessel models are documented in the literature; each focuses on aspects of electrical modelling of arterial system as elaborated in Section 3. However, none of them concerns the timing perspective of output of the Windkessel circuit. The astable multivibrator may be connected to the Windkessel circuits documented in the literature in order to improve timing in their models. We have established the proposed Windkessel model in the real environment as a digital electronic circuit based on the theoretical, formula-based, physics laws. Moreover, we have modelled and simulated the agent-based blood vessel in the Repast Symphony environment as rule-based according to the agents’ roles and behaviours. Considering agent-based model, the role of the blood vessels is to deliver the blood to various parts of the body. The blood density and fluidity of the vessels during the transport of blood within the vessels causes different behaviour. Before implementation of the agent-based blood vessel model, the agents must be determined and every actor defined outside of blood can be represented as an agent. That is why every actor can show its own and autonomous behaviour. In addition, due to some internal calculations, it is necessary to define certain constants as information sources.
In this study, an agent-based blood vessel model and a Windkessel model are developed in order to report a research and development study on mathematical and computational techniques used to model the behaviour of the aorta. From the results, it is observed that both models’ exhibited the same responses to their inputs which represented blood presure in the CVS. Therefore, these two models are useful for extending the studies in terms of the understanding of the dynamics of the vascular system. Besides, the Windkessel model is the first one that uses digital electronics for realizing the left heart and aorta behaviours’ in terms of timing perspective and electrical quantities. While this model still takes into consideration hemodynamic of the arterial system such as compliance and resistance, it also represents the left heart, aortic valve, and aorta during the systole and diastole phases. Moreover, an agent-based blood vessel approach to modelling the behaviour of the aorta is implemented and changes in the pressure of the arterial system through the aorta are reported in this paper.
