Skip to main content

Advanced epidemiological model combining SIR dynamics with social-psychological behavior patterns

Project description

Epidemiological Model with Social-Psychological Behavior

This package implements an advanced epidemiological modeling framework that combines traditional SIR (Susceptible-Infected-Recovered) dynamics with social-psychological behavior patterns based on General Adaptation Syndrome (GAS) theory. It's designed to provide deeper insights into disease transmission patterns by incorporating human behavioral responses during epidemics.

Features

Classical SIR Model

  • Implementation of fundamental epidemiological equations
  • Customizable infection and recovery rates
  • Population conservation guarantees
  • Numerical integration using advanced solvers
  • Basic reproduction number (R0) calculations

Extended GAS Model Integration

## Three distinct behavioral states:

  • Ignorance (Sign)

  • Resistance (Sres)

  • Exhaustion (Sexh)

  • State transition modeling

  • Behavioral feedback mechanisms

  • Time-dependent adaptation patterns

Crowd Effect Modifications

  • Superlinear alarm responses
  • Population density considerations
  • Social network effects
  • Mass media influence factors
  • Dynamic behavioral thresholds

## Advanced Analysis Tools

  • Real-time simulation capabilities
  • Data visualization utilities
  • Parameter estimation functions
  • Statistical analysis tools
  • Cross-regional comparison frameworks

Installation

pip install sir-equations

Sample Code

from sir-equations import GASModel, run_simulation, analyze_data

Create a model instance

model = GASModel( a=0.3, # infection rate b=0.1, # recovery rate k=0.2, # crowd effect parameter Ip=0.02, # media influence factor transition_rates=[1/50, 1/100], # behavioral transition rates initial_conditions=[0.99, 0.01, 0] )

Run simulation

t, solution = run_simulation(model, t_span=100, t_points=1000)

Analyze results

results = analyze_data(t, solution, model_type='GAS')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sir_equations-0.1.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sir_equations-0.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file sir_equations-0.1.1.tar.gz.

File metadata

  • Download URL: sir_equations-0.1.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.8

File hashes

Hashes for sir_equations-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9b19413c6d0c8d83ae1d06d73b30063425bba5cedf716fd91203452b405187c8
MD5 373a6126e8cac491da8a6ef2c61f974b
BLAKE2b-256 fc77d58a5e44746ad4301585b031a8bc76953079b8c85274971db9ded147fee7

See more details on using hashes here.

File details

Details for the file sir_equations-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sir_equations-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.8

File hashes

Hashes for sir_equations-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d7c43cc255265262e4b367894d86067ddf091ba976b7236f635cfc5171992c3
MD5 e77577c6a485485f94c87ee48900b5fd
BLAKE2b-256 012282d252b1696f7f29387e133cc211394f60204fb2997d30bf795f139b762a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page