Behaviour Dynamics Model

Published: 4 March 2024| Version 1 | DOI: 10.17632/twhwk6mnpf.1
Contributor:
Sunil Maria Benedict

Description

This visual representation captures the evolution of a behavioral system modeled through a set of Ordinary Differential Equations (ODEs). The system comprises undesirable behaviors (U) and positive behaviors (P), both subject to dynamic influences. The model is governed by the ODEs encapsulated in the function behavior_dynamics. The behaviors are modulated by parameters � a, � b, � c, and � d, reflecting the dynamics of amplifying positive behaviors and diminishing undesirable behaviors. The intentional effort, represented by the functions � ( � ) f(t) and � ( � ) g(t), introduces intentional influences on the system. In this specific scenario, the intentional effort is exemplified by a sine function, but this can be tailored to mirror the intentional dynamics relevant to a particular context. The time evolution of the system is depicted on the plot, with the x-axis representing time and the y-axis representing the levels of undesirable and positive behaviors. The initial conditions, set at the beginning, define the starting point of the system, with initial undesirable behaviors and positive behaviors represented by the values [1, 0]. The 'Undesirable Behaviours (U)' and 'Positive Behaviours (P)' lines on the graph illustrate the changing dynamics over time. The intentional effort, reflected in the intentional functions, contributes to the modulation of these behaviours. The plot provides a visual narrative of how intentional efforts impact the balance between undesirable and positive behaviours over the specified time range. The title, "Behaviour Dynamics with Intentional Modulation," encapsulates the essence of the visual representation, emphasising the interplay between inherent behavioural dynamics and intentional efforts to shape the trajectory of undesirable and positive behaviours. This visualisation serves as a valuable tool for understanding how intentional interventions influence the evolution of a dynamic behavioural system.

Files

Steps to reproduce

import numpy as np from scipy.integrate import odeint import matplotlib.pyplot as plt # System of ODEs representing behavior dynamics def behavior_dynamics(y, t, a, b, c, d, f, g): U, P = y dydt = [-a * U + b * f(t) * g(t), 2 * c * P + d * f(t) * g(t)] # Amplify positive behaviors return dydt # Function representing intentional effort def intentional_effort(t): # You can define this function based on your specific scenario return np.sin(t) # Just an example, replace it with your function # Time points t = np.linspace(0, 10, 100) # Adjust the time range accordingly # Parameters (adjust these based on your scenario) a, b, c, d = 0.1, 0.2, 0.15, 0.2 # Initial conditions initial_conditions = [1, 0] # Starting with some initial undesirable (U) and positive (P) behaviors # Solve ODEs solution = odeint(behavior_dynamics, initial_conditions, t, args=(a, b, c, d, intentional_effort, np.exp)) # Plot the results plt.figure(figsize=(10, 6)) plt.plot(t, solution[:, 0], label='Undesirable Behaviors (U)') plt.plot(t, solution[:, 1], label='Positive Behaviors (P)') plt.xlabel('Time') plt.ylabel('Behavior Levels') plt.legend() plt.show()

Institutions

CMR Group of institutions

Categories

Psychology, Intensity Modulation, Intention, Behavior Change

Licence