Keywords

1 Introduction

Borderline Personality Disorder (often referred as BPD) is a psychiatric disorder characterized by a continuous pattern of swinging moods, self-image and behavior (NIH website 2017). People suffering from this disorder may also experience acute episodes of anger, depression and anxiety which can have different duration (typically from a few hours to days). These symptoms often lead to impulsive actions and problems in social interactions (Lis and Bohus 2013; Mellisa et al. 2017).

As for a relevant amount of mental disorders, people with borderline personality disorder may experience different symptoms based on disorder acuity and severity. In the case of BPD, two of the most common indicators are mood swings and display uncertainty about how they see themselves and their role in the world (NIH website 2017). People with borderline personality disorder also tend to view (i.e., interpret) things in a “dichromatic” way, such as all black or white. Consequently, their idea of other people can also change very quickly: an individual who is seen as a friend one day may be considered an enemy or traitor the day after. These fluctuating emotional states can lead to intense and unstable relationships. Other symptoms may include:

  • A pattern of intense and unstable relationships with relatives, friends, and loved ones, often swinging from extreme closeness and love (idealization) to extreme dislike or anger (devaluation)

  • Feelings of dissociation (Brand and Lanius 2014), such as feeling cut off from oneself, seeing oneself from outside one’s body, or feelings of unreality

  • Self-harming behavior and recurring thoughts of suicidal behaviors or threats;

  • Difficulty imagining embodied others, i.e. different empathy levels (Haas and Miller 2015; Dammann et al. 2011)

  • Inappropriate/intense anger or problems controlling anger

  • Distorted and unstable self-image or sense of self (Dammann et al. 2011)

As previously mentioned, not all the subjects with borderline personality disorder experience every symptom. Some individuals experience only a few symptoms, while others have many. These symptoms can be triggered by everyday life events. Moreover, studies show that people with borderline personality disorder can have structural and functional changes in the brain (Soloff et al. 2017) specially in the areas that control impulses and emotional regulation (NIH website 2008). However, it is not clear whether these changes are risk factors for the disorder, or caused by the disorder.

This paper presents a computational network model for a person with borderline. It was designed as a temporal-causal network based on the Network-Oriented Modeling approach described in (Treur 2016). First in Sect. 2 some neuropsychological background is described. In Sect. 3 the model is introduced. Section 4 discusses some example simulations. In Sect. 5 it is described how the model was verified based on Mathematical Analysis.

2 Neuropsychological Background

The findings of numerous studies and research papers from Psychiatry, Cognitive and Social Neuroscience have been used to obtain a justifiable basis for the design of the computational model. The primary criteria for assessing the diagnosis of BPD according to (Hall et al. 2017; Ellison et al. 2016; American Psychiatric Association 2013) are (1) behavioral dysregulation, including impulsivity, excessive and inappropriate anger, self-harming and suicidality, (2) a history of failed relationships and feelings of “emptiness”, (3) affective dysregulation including excessive mood lability, paranoia and fear of abandonment. One explanation offered by (De Meulemeester et al. 2017) for the interpersonal problems that these people experience is identity diffusion, fundamentally characterized by problems with self–other boundaries. According to the study, patients suffering from BPD displayed an instability in their sense of self and identity.

A factor contributing to the affective instability of BPD, according to a study by (Koenigsberg et al. 2009), is that, compared to healthy controls, patients with BPD do not engage the cognitive control regions when employing a distancing strategy to regulate emotional reactions. Anxiety and mistrust, as well as fear of other people’s intentions are also common findings in the studies regarding BPD. One such study by (King-Casas et al. 2008) involved a mix sample of BPD patients and healthy controls playing a multi round economic exchange game. The findings suggest that BPD subjects express significantly lower levels of self-reported trust relative to healthy controls, as well as negative expectations of social partners, which was also implied by their decisions throughout the game. When studying the link between empathy and social attributions in BPD patients, (Homan et al. 2017) found that BPD patients display the tendency to attribute behavior to traits rather than context, meaning that they have a reduced empathic capacity.

The implications of these studies to the computational model are further discussed is Sects. 3 and 4.

3 The Temporal-Causal Network Model

In order to conceptualize the internal processes, as well as the interaction with an external person, of a person suffering from BPD, a temporal-causal network modelling approach was used, as described in (Treur 2016). Causal modelling, causal reasoning and causal simulation have a long tradition in AI; e.g., (Kuipers and Kassirer 1983; Kuipers 1984; Pearl 2000). The Network-Oriented Modelling approach based on temporal-causal networks described in (Treur 2016) on the one hand can be viewed as part of this causal modelling tradition, and on the other hand in the perspective of mental states and their causal relations as described in Philosophy of Mind; e.g., (Kim 1996). It is a widely usable generic AI modelling approach that distinguishes itself by incorporating a dynamic and adaptive temporal perspective, both on states and on causal relations. This dynamical perspective enables modelling of cyclic and adaptive networks, and also of timing of causal effects. This enables modelling by adaptive causal networks for connected mental states and for social interaction. Temporal-causal network models can be represented at two levels: conceptual and numerical. These is discussed subsequently in Sects. 3.1 and 3.2.

The following mechanisms based on different theories from the literature are incorporated in the model:

  • mirror neuron systems (Iacoboni and Dapretto 2006; Iacoboni 2008)

  • control neurons with self-other distinction and control function (Iacoboni 2008; Brass and Spengler 2009)

  • emotion integration (Grèzes and de Gelder 2009; Grèzes et al. 2009)

  • regulation of enhanced sensory processing sensitivity, in particular for face expressions (Neumann et al. 2006; Spezio et al. 2007; Baker et al. 2008; Corden et al. 2008)

  • empathic responding using mirror neurons, self-other distinction and emotion integration (De Vignemont and Singer 2006; Singer and Leiberg 2009)

In order to have an adequate social interaction, all these mechanisms should function properly. Since they are correlated to one another, the malfunction of any one of them can lead to problems in the social functioning of the individual. People who suffer from BPD display faults in some of these mechanisms, as described in Sect. 2. They do not express the tendency to avoid stimuli, even if they are unpleasant, therefore no avoiding mechanism was included in the model. The manner in which these faults are translated into the model is described in Sect. 4.

3.1 The Conceptual Representation of the Network Model

Temporal-causal networks can be represented in a conceptual manner declaratively in either a graphical form or in a matrix form. The elements of a conceptual representation of a design are:

  • the states Y of the network

  • the connections between these states

  • connection weights ω X,Y which characterize the different strengths of these connections

  • a speed factor η Y for each state, expressing how fast this state can change

  • for each state Y a combination function c Y (…) indicating how the multiple impacts from the states with outgoing connections to Y combine into a single impact on that state.

In the graphical conceptual representation, states are displayed as nodes and connections as arrows, the pointed end of the arrow indicating the direction of the causal impact. The graphical conceptual representation depicted in Fig. 1 describes the states and their connections in a person suffering from BPD. The above mentioned concepts connection weights, speed factors and combination functions are labels for the arrows (connection weights) and nodes (speed factors and combination functions) of this graph, so that a fully specified graphical conceptual representation gets the form of a labeled graph. There are six types of states in the presented model:

Fig. 1.
figure 1

The graphical conceptual representation of the temporal-causal network model

  • world states ws, indicating an external stimulus, in this case ws s for the stimulus s and ws B for a person B

  • sensor states ss X (with X = s or X = B) for the sensing of these two external stimuli

  • sensory representation states srs X (with X = s or X = B) formed based on the sensor states, but also within the person itself and body states of aggression and anxiety

  • preparation states ps X for expressing the body states of anxiety (X = anx) and aggression (X = agg), as well as for communicating to person B (X = B)

  • control states cs X , which regulate the actual expression of anxiety and aggression (X = self) as well the self-other distinction between the person and the other person (X = B,s)

  • execution or expression states es X for anxiety and aggression and execution state esc X for communication to person B

Besides the connections described previously, there are also two loops: the as-if body loops between the preparation states for expressing anxiety and aggression and their sensory representation states, which adapt the internal body map, as described in (Treur 2016).

3.2 Numerical Representation of the Network Model

In order to obtain a basis for simulation and further mathematical analysis of the model, the conceptual representation can be transformed into a numerical representation in a systematic manner, as described in (Treur 2016), as follows:

  • The value of each state Y at each time point t is denoted by Y(t)

  • The impact from any connection from a state X i to a state Y at time point t is defined as

$$ {\mathbf{impact}}_{X_{i},Y} (t) = {\varvec{\upomega}}_{X_{i},Y} X_{i} \left( t \right) $$
(1)

where ω Xi,Y is the weight of the connection from X i to Y

  • The total impact of all the connections X1,…,X k to a state Y at time t is

$$ {\mathbf{aggimpact}}_{Y} \left( t \right) = {\mathbf{c}}_{Y} ({\mathbf{impact}}_{X_{1},Y} \left( t \right), \ldots ,{\mathbf{impact}}_{X_{k},Y} \left( t \right)) $$
(2)

where c Y (…) is the combination function

  • The change of the state Y from the time step t to the next time point t + Δt is represented by the following difference equation:

$$ Y(t + \Delta t) = Y(t) + {\varvec{\upeta}}_{Y} \left[ {{\mathbf{aggimpact}}_{Y} \left( t \right) \, - Y(t)} \right]\Delta t $$
(3)

where η Y is the speed factor of the state Y, or by the following differential equation:

$$ {\mathbf{d}}Y\left( t \right)/{\mathbf{d}}t = {\varvec{\upeta}}_{\text{Y}} \left[ {{\mathbf{aggimpact}}_{Y} \left( t \right) \, - Y(t)} \right] $$
(4)

As an example, by following the pattern described above based on formulae (1), (2), (3) and (4) the difference and the differential equation for psB are:

$$ {\text{ps}}_{B} (t + \Delta t) \, = {\text{ ps}}_{B} \left( t \right) \, +\upeta_{\text{ps}_{B}} \,[{\text{c}}_{{{\text{ps}}_{B}}} (\upomega_{11anx} \,{\text{srs}}_{anx} \left( t \right),\upomega_{11agg} \,{\text{srs}}_{agg} \left( t \right),\upomega_{12B} \,{\text{cs}}_{B,s} \left( t \right)) \, - {\text{ ps}}_{B} \left( {\text{t}} \right)]\,\Delta t $$
(5)
$$ {\mathbf{d}}{\text{ps}}_{\text{B}} \left( {\text{t}} \right)/{\mathbf{d}}\text{t} \, =\upeta_{{{\text{ps}}B}} \,[{\text{c}}_{{{\text{ps}}_{B}}} (\upomega_{11anx} \,{\text{srs}}_{anx} \left( t \right),\,\upomega_{11agg} \,{\text{srs}}_{agg} \left( t \right),\upomega_{12B} \,{\text{cs}}_{B,s} \left( t \right)) \, - {\text{ ps}}_{\text{B}} \left( \text{t} \right)] $$

Each state of the model, except for the world states which have no incoming connections, gets a difference and a differential equation assigned. The interaction between these equations describe the behavior of the model. For the model considered here there are 16 coupled difference and differential equations.

The combination function used for all the states with only one incoming impact is the identity function id(…) as described in (Treur 2016, Chap. 2):

c Y (V) = id(V) = V. By using this combination function, based on (1) to (4) the difference and the differential equation for srsB, for example, is the following:

$$ \begin{array}{*{20}l} {{\text{srs}}_{\text{B}} (t + \Delta t) = {\text{srs}}_{\text{B}} \left( t \right) +\upeta_{\text{srs}_{B}} [\upomega_{1B}\,{\text{ss}}_{\text{B}} \left( t \right) - {\text{srs}}_{\text{B}} \left( t \right)]\Delta t} \hfill \\ {\;{\mathbf{d}}{\text{srs}}_{\text{B}} (t)/{\mathbf{d}}t =\upeta_{\text{srs}_{B}} [\upomega_{1B} {\text{ss}}_{\text{B}} \left( t \right) - {\text{srs}}_{\text{B}} \left( t \right)]} \hfill \\ \end{array} $$
(6)

For the states which have multiple incoming impacts the combination function used was the advanced logistic sum combination function alogistic(…), described in (Treur 2016) as follows:

$$ {\mathbf{c}}_{{\mathbf{Y}}} \left( {V_{1} , \ldots ,V_{k} } \right) = {\mathbf{alogistic}}_{\sigma ,\tau } (V_{1} , \ldots V_{k} ) = \, [(1/(1 + {\text{e}}^{{{-}\sigma (V_{1}, \, \ldots V_{k} -\uptau)}} )) \, {-}1/(1 + {\text{e}}^{{\sigma \uptau }} )]\;(1 + {\text{e}}^{{{-}\sigma \uptau }} ) $$
(7)

The parameters τ and σ of this advanced logistic function represent the threshold and the steepness. This function has the property that it maps 0 values to 0 and it also keeps the values between 0 and 1. With this combination function (7), based on (1) to (4) the following difference and differential equations for psB, for example, are obtained:

$$ \begin{array}{*{20}l} {{\text{ps}}_{B} (t + \Delta t) \, = {\text{ ps}}_{B} \left( t \right) \, + } \hfill \\ { \;\;\;\;\;\;\;\;\upeta_{{{\text{ps}}_{B}}} [{\mathbf{alogistic}}_{\sigma ,\tau } (\upomega_{11anx} \,{\text{srs}}_{anx} \left( t \right),\;\upomega_{11agg} \,{\text{srs}}_{agg} \left( t \right),\;\upomega_{12B} \,{\text{cs}}_{B,s} \left( t \right)) - {\text{ ps}}_{\text{B}} \left( {\text{t}} \right)]\Delta t} \hfill \\ {{\mathbf{d}}{\text{ps}}_{\text{B}} \left( {\text{t}} \right)/{\mathbf{d}}{\text{t }} =\upeta_{{{\text{ps}}_{B}}} [{\mathbf{alogistic}}_{\sigma ,\tau } (\upomega_{11anx} \,{\text{srs}}_{anx} \left( t \right),\;\upomega_{11agg} \,{\text{srs}}_{agg} \left( t \right),\;\upomega_{12B} \,{\text{cs}}_{B,s} \left( t \right)) - {\text{ ps}}_{\text{B}} \left( {\text{t}} \right)]} \hfill \\ \end{array} $$
(8)

4 Simulation Results

The numerical representation presented above was implemented in Matlab, in order to obtain a realistic picture of how the mechanisms discussed in Sect. 3 interact in the case of a person suffering from BPD. The traits presented in Sect. 2 are translated into the model by constraints of some of the parameters, as shown in Table 1, thus providing the data at the basis of the simulation.

Table 1. Connection weights and their values

Following the reasoning presented in (Treur 2016, Chap. 10) a reduced self-other distinction means that the connections between srs s and cs B,s and srs B and cs B,s are weak, therefore the values of ω7, ω8 are low. The intensity of the anger and of the anxiety experienced by these people implicates that the connections between their corresponding sensory representations srs anx and srs agg and the control state for sensing cs sens,s are weak, as well as the connections between the control state for monitoring cs self and srs anx and srs agg with ω10anx, ω10agg, ω3agg, ω3anx are low. The connection between the sensory representation srs s of a stimulus s and the control state for sensing cs sens,s is also weak, with ω9 low, since people suffering from BPD do not exhibit a distancing behavior.

The poor monitoring of emotions translates into weak connections between the sensory representations of the agent itself srs self , as well as the sensory representation srs s of stimulus s, and the control state for the agent itself cs self with ω7self and ω8self low. Reduced self-control implicates that the connections coming from the control state cs sens,s , as well as from cs self , to the expression states es anx and es agg are weak, so ω13anx, ω13agg, ω14anx, and ω14agg are low. All the weights of the connections except for those in Table 1 are 1.

In order to incorporate the impulsivity trait in the implementation, the speed factors of the control states cs sens,s , cs self and cs B,s are adjusted as being lower than for the other states, for which it is 1. The speed factor of the states regarding communication, ps B and esc B are also a little lower than one, since verbalizing is a little difficult for people who suffer from BPD so it is most likely to happen after the body expressions of anxiety and aggression. The parameters for the advanced logistic sum combination function corresponding to each state are shown in Table 2.

Table 2. Parameters for the combination function alogisticσ,τ(..) for each state

The step size is set at Δt = 0.5. The initial values of the states are 0, except for the input states wsB and ws s which have either the value of 0.2 or 0, equivalent to no stimulus. The value of 0.2 is chosen so low in order to illustrate the strong impact a weak stimulus has on a person suffering from BPD. The results of the simulation for the values discussed above are shown in Fig. 2.

Fig. 2.
figure 2

Results of the simulation

In the first part of the simulation, all the values go up, first the values of the stimuli related states, ss B and ss s which are equal, so their graphical representations are overlapping, making only ss B visible. The same is happening with srs B and srs s . Even though the value of the input is as low as 0.2, the values of the states for preparation ps anx and ps agg and expression es anx and es agg climb really fast to values as high as 0.8 and 0.9. This illustrates the power of a small stimuli, when self-control is not working correctly. Note that, since aggression and anxiety are expected to play an equal role in this model, their graphical representations are overlapping. The control states for emotion regulation and suppression and self-other distinction cs sens,s , cs B,s and cs self are always low, as expected. The preparation ps B communication to person B esc B happen after the expressions of anxiety and aggression, corresponding to the behavior previously described.

After the first 10 time steps, the stimuli go away, meaning that the values of ws s and ws B become 0. In a normal person, this would imply that the values of all the other states should decrease to 0, but here the states related to anger and anxiety drop only very little, as expected. The sensory representation states for anxiety srs anx and aggression srs agg are always high in value, illustrating the constantly disturbed inner state people suffering from BPD experience. Since the value of the sensory representation state is high and the values of the control states are low, the expression of the feelings is also high, even if there are no stimuli present. This process of stimuli/no stimuli is repeated throughout the simulation a few times, with the same results.

5 Verification by Mathematical Analysis

In order to verify the implementation of the model, a mathematical analysis of the equilibria was performed. A model is in equilibrium at a time point t if all the states of the model have a stationary point at that time t. A state Y has a stationary point at a time t if Y(t + Δt) = Y(t), for a small Δt. By considering the differential equation representation for a temporal-causal network model (see (1) to (4) in Sect. 3.2), a state Y has a stationary point a time t if and only:

$$ Y\left( t \right) = {\mathbf{c}}_{Y} ({\varvec{\upomega}}_{X_{1},Y} X_{1} \left( t \right), \ldots ,{\varvec{\upomega}}_{X_{k},Y} X_{k} \left( t \right)) $$
(9)

where c Y () is the combination function for the state Y and X1,…,X k are the states which have an impact on Y; see (Treur 2016, Chap. 12). Following this representation if we consider the equilibrium equations for all the states X i of the model, by leaving out the t and denoting the values as constants X i , we get from (9) for all states Y that an equilibrium is a solution (X1,…,X n ) of the following n equations:

$$ \begin{array}{*{20}l} {\underline{{\mathbf{X}}}_{1} = {\mathbf{c}}_{X_{1}} ({\varvec{\upomega}}_{X_{1},X_{1}} \underline{{\mathbf{X}}}_{1} , \ldots ,{\varvec{\upomega}}_{X_{n}, \, X_{1}} \underline{{\mathbf{X}}}_{n} )} \hfill \\ {\;\;\;\;\;\;\;\;\;\;\;\; \cdots } \hfill \\ {\underline{{\mathbf{X}}}_{n} = {\mathbf{c}}_{X_{n}} ({\varvec{\upomega}}_{X_{1},X_{n}} \underline{{\mathbf{X}}}_{1} , \ldots ,{\varvec{\upomega}}_{X_{n}, \, X_{n}} \underline{{\mathbf{X}}}_{n} )} \hfill \\ \end{array} $$
(10)

The model discussed here has 18 states, out of which two are world states, therefore 16 equilibrium equations. For example, the equilibrium equation for the state ss B , which has the identity combination function, is:

$$ \underline{{{\mathbf{ss}}}}_{B} = {\varvec{\upomega}}_{19} \underline{{{\mathbf{ws}}}}_{B} $$
(11)

For the other states which use the identity combination function, the equilibrium equations are similar. For the states which use the combination function alogisticσ,τ(..) (see (7) in Sect. 3.2), the equilibrium equations are similar to this one, which is for the state ps B :

$$ \underline{{{\mathbf{ps}}}}_{B} = {\mathbf{alogistic}}_{\sigma ,\tau } (\upomega_{11anx} \,\underline{{{\mathbf{srs}}}}_{anx} ,\;\upomega_{11agg} \,\underline{{{\mathbf{srs}}}}_{agg} ,\;\upomega_{12B} \,\underline{{{\mathbf{cs}}}}_{B,s} ) $$
(12)

Due to the 10 equations that include a logistic function, the equilibrium equations cannot be solved analytically in an explicit manner, but they still can be used for verification of the model. Since the model discussed here has an alternating presence of the stimuli, the model reaches stationary points several times.

In order to be able to analyse the stationary points of the model, the number of time steps for observation was increased from 120 to 1200, so that the values of the states would be observed more often. The stimulus is removed and added again once every 200 time steps, so we would expect that the model reaches stationary points 6 times in the simulation. This type of pattern is called a limit cycle, with state values changing all the time. In a limit cycle, each state fluctuates between a minimum and a maximum value. When it reaches the time points for either a minimum or a maximum, each state should have a stationary point, which means that the equation for a stationary point can be verified. The stationary point equations were fulfilled for all the states of the model, with a very high accuracy, as can be seen in Table 3 which is evidence that the implemented model does what is expected.

Table 3. Overview of the outcomes of the verification of the stationary points

6 Discussion

In this paper a computational model of the internal processes of persons suffering from Borderline Personality Disorder was presented. The model was built as a temporal-causal network model according to the Network-Oriented Modelling approach presented in (Treur 2016), incorporating the characteristics described by neuropsychological findings from the literature. The Borderline Personality Disorder is a rather complex disorder, difficult to address. Such a computational model for the Borderline Personality Disorder is new, as far as the authors know.

Characteristics such as identity diffusion, the absence of a distancing mechanism, impulsivity, reduced emotion control and poor monitoring, low empathic capacity were incorporated in the model by setting specific values to the parameters concerning the underlying mechanisms, such as connection weights and speed factors. The model was verified by mathematical analysis, with satisfying results.

The model can be the basis for a virtual patient model application and used by therapists to perform what-if simulations to get insight in the borderline phenomenon. It may also be extended by therapies to simulate the effect of them. These can be next steps for future research.