Abstract
SimpactCyan is an open-source simulator for individual-based models (IBMs) in HIV epidemiology. Its core algorithm is written in C++ for computational efficiency, while the R and Python interfaces aim to make the tool accessible to the fast-growing community of R and Python users. Transmission, treatment, and prevention of HIV infections in dynamic sexual networks are simulated by discrete events. A generic "intervention" event allows model parameters to be changed over time, and can be used to model medical and behavioural HIV prevention programmes. This paper describes the modified Next Reaction Method (mNRM) driving the simulator, outlines key features, and provides examples of applications in policy estimation and phylodynamic benchmarking.
Introduction
Traditional epidemiological models often use compartmental approaches to represent population averages. However, HIV transmission is driven by highly specific individual behaviors and biological heterogeneities that population averages often miss. Individual-Based Models (IBMs) can capture these nuances but face hurdles regarding computational cost, temporal precision, and usability.
SimpactCyan 1.0 addresses these challenges by providing a high-performance engine that combines a fast C++ core with accessible R and Python interfaces. As shown in the comparison of existing tools, SimpactCyan uniquely offers continuous-time implementation alongside modern programming interfaces, filling a critical gap in the software landscape.
Methods
The core of SimpactCyan is a modified Next Reaction Method (mNRM), which enables continuous-time simulation. Instead of fixed time steps, the model uses "internal clocks" for every possible event—such as birth, death, transmission, or treatment—mapped to real-world time via hazard functions. This approach allows the simulator to "jump" precisely to the next event, handling competing risks without the ad-hoc assumptions required by discrete-time models.
The simulator tracks individual life histories and interactions within a population. The engine only recalculates event times for specific individuals affected by a change, maintaining high computational speed even as complex relationships form and dissolve. This event-driven architecture allows for the simulation of millions of individual interactions with high temporal precision.
Applications and Results
The utility of SimpactCyan was demonstrated through two primary applications:
- Eswatini Policy Evaluation: Calibrated using UNAIDS data and the SHIMS I study, the model projected that shifting to universal ART access (Early Access to ART for All) would reduce HIV incidence by 64% by 2019, compared to only 12% under previous status quo criteria.
- Phylodynamic Benchmarking: Using HIV-1 subtype C sequences, the authors generated synthetic data to test genetic tree recovery of transmission history. The results highlighted that decreasing sequence coverage significantly reduces the accuracy of phylogenetic trees as proxies for transmission events.
Performance analysis indicates that SimpactCyan is up to 280 times faster than its predecessor, SimpactWhite. This scalability allows for massive sensitivity analyses and Bayesian calibrations that were previously computationally prohibitive.
Discussion and Future Work
While SimpactCyan 1.0 offers significant advancements, future versions aim to include mother-to-child transmission, parenteral transmission routes, and co-infections such as HSV-2 and Hepatitis C. Additionally, work is ongoing to better model the behavioral links between high-risk sexual activity and health-seeking behavior.
SimpactCyan stands as a robust "ground truth" generator, allowing researchers to create perfect synthetic datasets to validate other analytical frameworks and surveillance methods. By lowering the barrier to entry for R and Python users, it empowers a broader community of researchers to tackle the complexities of HIV epidemiology.
Summary updated