# STI-GMaS: an open-source environment for simulation of sexually-transmitted infections

- Martin R Nelson
^{1, 2}Email author, - Kelly J Sutton
^{2, 3}, - Bindi S Brook
^{2}, - Dann G Mallet
^{4}, - Daniel P Simpson
^{5}and - Roger G Rank
^{6}

**8**:66

https://doi.org/10.1186/1752-0509-8-66

© Nelson et al.; licensee BioMed Central Ltd. 2014

**Received: **13 November 2013

**Accepted: **2 June 2014

**Published: **12 June 2014

## Abstract

### Background

Sexually-transmitted pathogens often have severe reproductive health implications if treatment is delayed or absent, especially in females. The complex processes of disease progression, namely replication and ascension of the infection through the genital tract, span both extracellular and intracellular physiological scales, and in females can vary over the distinct phases of the menstrual cycle. The complexity of these processes, coupled with the common impossibility of obtaining comprehensive and sequential clinical data from individual human patients, makes mathematical and computational modelling valuable tools in developing our understanding of the infection, with a view to identifying new interventions. While many within-host models of sexually-transmitted infections (STIs) are available in existing literature, these models are difficult to deploy in clinical/experimental settings since simulations often require complex computational approaches.

### Results

We present STI-GMaS (Sexually-Transmitted Infections – Graphical Modelling and Simulation), an environment for simulation of STI models, with a view to stimulating the uptake of these models within the laboratory or clinic. The software currently focuses upon the representative case-study of *Chlamydia trachomatis*, the most common sexually-transmitted bacterial pathogen of humans. Here, we demonstrate the use of a hybrid PDE–cellular automata model for simulation of a hypothetical *Chlamydia* vaccination, demonstrating the effect of a vaccine-induced antibody in preventing the infection from ascending to above the cervix. This example illustrates the ease with which existing models can be adapted to describe new studies, and its careful parameterisation within STI-GMaS facilitates future tuning to experimental data as they arise.

### Conclusions

STI-GMaS represents the first software designed explicitly for *in-silico* simulation of STI models by non-theoreticians, thus presenting a novel route to bridging the gap between computational and clinical/experimental disciplines. With the propensity for model reuse and extension, there is much scope within STI-GMaS to allow clinical and experimental studies to inform model inputs and drive future model development. Many of the modelling paradigms and software design principles deployed to date transfer readily to other STIs, both bacterial and viral; forthcoming releases of STI-GMaS will extend the software to incorporate a more diverse range of infections.

## Keywords

## Background

In this article we describe the recent development of a novel software environment for modelling of sexually-transmitted infections (STIs). Since STI progression cannot be monitored within humans directly without being highly invasive and expensive, mathematical modelling is a valuable strategy in elucidating infection dynamics and evaluating the potential impact of new interventions [1]. Within-host modelling of STIs still being a relatively new field, determining new treatments currently relies primarily on animal trials. While some authors have sought to integrate mathematical models with data from animal experiments [2–5], there has to date been relatively little uptake of mathematical models by non-theoreticians, attributable (at least in part) to the fact that dynamic simulation of mathematical models relies upon the researcher having sufficient knowledge of mathematical techniques and computational strategies to generate simulations relevant to their specific studies. To enhance the relevance of model outputs, and strengthen the uptake of such models, it is invaluable to enable the investigator to run simulations of a range of models with easily customisable parameter sets and user-friendly visualisation of results.

We focus here upon the representative case study of *C. trachomatis* infection—the most common sexually-transmitted bacterial pathogen of humans, with over 105 million new adult cases occurring worldwide each year [6]. Due to its lengthy (6–14 day) incubation period and its high rate of asymptomatic infection, a large reservoir of *C. trachomatis* infection can accumulate in the lower genital tract of both men and women, without early detection. This reservoir presents a risk of an infection ascending to the upper genital tract with resultant adverse effects on reproductive health, including serious complications such as pelvic inflammatory disease (PID), tubal factor infertility and ectopic pregnancies. Although *C. trachomatis* affects men, women and infants, women bear the brunt of the chlamydial burden due to a higher risk of adverse reproductive consequences. We focus here upon *C. trachomatis* infection in females.

*C. trachomatis*is an obligate, intracellular bacterium;

*i.e.*its replication relies upon internalisation by a host cell of the genital epithelium (as shown in Figure 1). The bacterium exists in two forms: the infectious form, termed the

*elementary body*(EB); and the intracellular replicative form, termed the

*reticulate body*(RB). The EB is thought to be metabolically inert until it attaches to, and is endocytosed by, a susceptible host epithelial cell. After the EB attaches, it is rapidly ingested by an enhanced phagocytic process similar to ordinary bacterial phagocytosis [7]. Within two hours of internalisation, the EB differentiates into the metabolically active RB form. The RB then multiplies 200–500-fold by binary fission [8], before converting back into the infectious EB form. The host cell eventually lyses, releasing the new EBs back into the genital tract. The infection cycle then begins anew.

A common starting point for many recent within-host models of *C. trachomatis* is the model of [9], which uses ordinary differential equations (ODEs) to describe the temporal evolution of the chlamydial infection at the tissue-scale. The model incorporates infection of epithelial cells by EBs at a rate proportional to the concentration of the infection; birth, natural death and lysis of epithelial cells at prescribed rates; removal by macrophages of extracellular EBs; and removal of infected cells by elements of the cell-mediated immune system. This model provides a robust foundation for modelling of *C. trachomatis*, and has since been extended by many authors, including [10] who incorporated a more thorough multi-stage description of the intracellular EB replication process.

Recent studies by Mallet and co-workers [2, 11–13] have placed greater focus upon understanding the processes through which *C. trachomatis* infection ascends the cervix. To incorporate the spatial dependence of extracellular quantities, the ODE model of [9] is replaced with a partial differential equation (PDE) analogue; extracellular particles are generally considered to move diffusively, and the models are able to incorporate *e.g.* chemotactic terms to capture migration of immune cells in response to diffusible chemical cues.

While PDE models succeed in qualitatively capturing the ascension of the infection, they lack a robust description of cell-scale phenomena. In the model of [2], the above PDE description of extracellular chlamydiae is combined with a cell-based description of the epithelium, in which each cell is modelled via a cellular automaton whose behaviour is governed by prescribed probabilistic rules. We further describe and extend this hybrid model in the forthcoming sections.

In the remainder of this article, we describe the development of a new software environment for easy simulation of a range of STI models, focusing on *C. trachomatis* in particular. We then illustrate the use of the software through a simple extension of the model of [2] to describe immunisation of adolescent females. We then describe scope for extensions of the software beyond the currently available models, and to describe other STIs.

## Implementation

To promote the use of mathematical and compuational models by clinical and experimental researchers, the authors have developed new software for easy STI model simulation. This software environment, named STI-GMaS (Sexually-Transmitted Infections – Graphical Modelling and Simulation) has been designed with accessibility and extensibility at its core, and makes progress toward thorough curation and annotation of models to clarify nomenclature, and maximise coherence between different models and ultimately across multiple infections.

STI-GMaS is built upon a framework of existing tools from within the Virtual Physiological Human (VPH) Toolkit—an online repository of tools for interdisciplinary modelling of the human physiome [14]. Integration with the Toolkit provides direct access to a number of standards for model development, annotation and validation, which (in the long-term) will allow STI-GMaS to be integrated with a range of other software for simulation of the wider physiome. Model simulations within STI-GMaS are implemented through new and existing finite-element tools provided by the open-source CHASTE (Cancer, Heart and Soft Tissue Environment) project [15–17], whose use provides on-going development in terms of diversity of tools, computational efficiency and cross-platform support. Furthermore, CHASTE’s delevopment deploys a test-oriented approach that ensures that algorithms are rigorously and regularly validated [16]; STI-GMaS benefits directly from this testing, and comparison with published results is performed for any newly added model, to ensure that simulation results are numerically accurate. For details of the implementation and testing of CHASTE itself, the reader is directed to [15–17].

The implementation of STI-GMaS has considered two broad classes of end user: the clinician/experimentalist, who will be able to run new simulations of existing models easily; and the theoretician, for whom the source code is accessible for encoding of new models. To facilitate the latter, templates have been created within STI-GMaS to govern model parameteristion and enforce a minimum level of model annotation. New models will be required to meet these standards prior to being included in future releases; STI-GMaS developers will work alongside authors of new models to incorporate these as they arise.

STI-GMaS is distributed as an open-source ‘bolt-on’ of CHASTE, is licensed under CHASTE’s 3-clause BSD license, and can be downloaded via the STI-GMaS website, or directly from the CHASTE homepage [18].

## Results

Here, we demonstrate the use of STI-GMaS as an investigative tool for future interventions and treatment. We consider a scenario in which adolescent females are to be immunised with a *Chlamydia* vaccine prior to their sexual debut, to circumvent the development of inflammation in the Fallopian tubes: a common precursor to PID. The aims of the vaccination could be achieved by halting the ascension of the *C. trachomatis* organism through the genital tract, and by reducing the level of infection within the Fallopian tubes to a level below that required to trigger an inflammatory response.

The modelling assumptions in the design of the vaccination intervention are: (i) it takes at least 24 hours for white blood cells to enter the tissue at the site of infection, (ii) the vaccine elicits a strong cell-mediated immune response that becomes effective more quickly as a result of the expansion of the antigen-specific T cell population, and (iii) the vaccine enhances humoral immunity such that an antibody response is already present in the cervical secretions. The antibodies can combat the infection in two ways: either by neutralising extracellular chlamydiae, preventing attachment to host cells; or by stimulating phagocytosis of extracellular EBs, removing them from the system.

*C*(

**x**,

*t*), and healthy cells become infected with probability proportional to the number of extracellular EBs in their vicinity (as discussed below). On infection, a cell is allocated a length of time until lysis, drawn from an appropriate normal distribution, since infection prevents natural death by apoptosis. On lysis,

*B*new EBs are released, which appear as a source term in the extracellular PDE. After lysis, the void which remains in the cell monolayer is considered to be immediately filled by a new healthy cell. The model accounts for both innate and cell-mediated immune responses: as the density of infected cells increases, so does the strength of an emitted chemical infection signal (

*I*), which is used to calculate the likelihood with which immune responses clear extracellular EBs or remove the infected cell. The signal strength at a given cell location increases while that cell remains infected; this infection signal is also transmitted to neighbouring cells across cell boundaries. If there are no infected cells in a given neighbourhood, the local infection signal is subject to exponential decay at a prescribed rate. The model incorporates delays between cell infection, activation of the response and recruitment of immune cells to the infected cell location. Each of the above infection and clearance events occurs probabilistically with likelihood given by

In (1–2), *X* represents either the local extracellular EB concentration (*C*) or infection signal level (*I*), and *X*
_{1/2} is the value of *X* for which Pr(*e* *v* *e* *n* *t*)=0.5. Each infection or clearance event is therefore described by three parameters: *p*
_{min}, *p*
_{max} and *X*
_{1/2}. We direct the reader to [2] for further information regarding model parameters and their values.

*A*to represent the vaccine-induced antibody level, and allow the model’s original parameters to vary with

*A*in the manner described by (1). We assume that in the presence of high levels of antibody, the maximum probability of cell infection is reduced, and the minimum probability of EB clearance is increased. In the nomenclature of the original model, we let

The extent to which these quantities are adjusted is suitable for later fitting to experimental data through tuning of the new parameters ${p}_{min}^{A}$, ${p}_{max}^{A}$ and *A*
_{1/2}. We examine the progression of the infection under three antibody levels: no antibodies (*A*=0, *A*
_{1/2}=100; corresponding to no vaccination), moderate antibody levels (*A*=50, *A*
_{1/2}=100), and high antibody levels (*A*=100, *A*
_{1/2}=100). Typical values of other parameters are illustrated in Figure 3 (in which nomenclature is as given in the original paper), and parameter sets are provided in full within the STI-GMaS software as model ‘Nelson2014’.

*C*=0 on the lower boundary, since the lower genital tract is inhospitable to chlamydial infection, and impose a zero-flux condition on the top boundary to represent the effects of the cervical mucus plug. In each simulation, a deposit of extracellular chlamydiae is initially randomly distributed in a stripe close to the lower boundary.

In the absence of the antibody (Figure 5), the infection builds rapidly and ascends the cervix in a manner reminiscent of a travelling wave. The infection progresses to above the cervix (not modelled here), with potentially serious implications upon reproductive health. Infection in the cervix itself is also maintained, with lysis of infected cells generating recurring peaks in EB number (Figure 5(h)). With a moderate antibody level (Figure 6), the short-term behaviour is similar to that of Figure 5; however, after 72 hours the majority of the EBs have been successfully removed as a result of the antibody stimulating the immune response and hindering cell infection. While the situation is somewhat improved by the presence of the antibody, a small number of EBs do still ascend to the upper cervical boundary (Figure 6(e)). For a high antibody level (Figure 7) the infectious extracellular chlamydiae are quickly removed by the immune response; the infection is successfully prevented from ascending to the upper reproductive tract. For the demonstrative parameters used here, the infection is cleared within 60 hours; a timescale similar to those observed in related animal inoculation experiments [19].

## Discussion

The current release of STI-GMaS (version 1.2) incorporates three *Chlamydia* models: that of [9], a temporal model operating on the tissue scale, the outputs of which compare readily to the results of many animal experiments; that of [2], which elucidates the spatial ascension of an infection up the female genital tract; and a new extension of the latter model (described above) to examine the effectiveness of a hypothetical vaccine. This vaccine model demonstrates how existing models can be readily adapted and reused through STI-GMaS, and exhibits much scope for coupling to laboratory experiments to inform parameter values. With parameter values more accurately determined to model specific vaccines, the model will be in a position to address questions regarding appropriate vaccine dosage and optimisation of immune response times to remove infections efficiently.

While this article has focused upon the use of STI-GMaS for *in silico* experimentation, there is also great scope for its use as part of *e.g.* Approximate Bayesian Computation (ABC) schemes for inferring model parameters from data [20–22]. These schemes weight parameters according to the closeness of a forward simulation of a model (such as those produced by STI-GMaS) to true data, allowing for good parameter estimation even in the presence of extremely complicated disease dynamics. Hence, STI-GMaS has the potential to facilitate model simulation, parameterisation and inference within the same software package.

The design of STI-GMaS has extensibility at its core: further models will be added to the software in due course, subject to strict standards of clear model annotation and parameterisation being demonstrably met. The framework for incorporating these models is now well-defined, with templates in use for creation of codes for CHASTE simulations and for the graphical user interface itself. While we do not expect non-theoretical users to add new models to the software themselves, these templates ease the developers’ task of introducing new models as they arise, and the environment’s open source design makes the corresponding codes accessible to researchers of any background who do wish to become more familiar with the computational principles.

The models discussed herein exhibit great scope for future extension. Currently, a key limitation of spatial models lies in their focus upon only cervical tissue. Expansion of the modelled domain to include regions up to the Fallopian tubes, would allow for investigations of scarring, inflammation and PID. One direct target for such a model is the “arrested immunity” hypothesis proposed by [23], which suggests that although early antibiotic treatment can cure the chlamydial infection, it can also interrupt the development of immunity. Consequently, the prevalence of *Chlamydia* in the population does not decline but actually increases. However, early treatment can prevent the development of PID. The experimentalist may therefore question whether there exists a time frame during which antibiotic intervention can prevent PID but also allow the host to develop immunity, potentially leading to new antibiotic interventions. The mathematical model presented here exhibits many of the requirements of such a theoretical investigation, although it does not currently represent adequate regions of the host anatomy.

We note that while work to date has focused upon within-host models of *Chlamydia*, targets for future development within the STI-GMaS environment are to incorporate both population-scale models, and models of other STIs. Many of the modelling techniques deployed here transfer directly to within-host models of other infections: models of gonorrhoea show particular similarity to those described above and, while having a different pathogenesis to that of Chlamydia, syphilis and viral infections such as Herpes simplex virus, Human papillomavirus and viral hepatitis could be represented with models employing a highly similar process. Future work will examine the above infections in isolation, as well as co-infections, and will incoporate such models into the STI-GMaS software.

## Conclusions

The STI-GMaS environment represents, to the authors’ knowledge, the first software designed explicitly for *in silico* simulation of STI models by non-theoreticians. Albeit a growing field, mathematical modelling of STIs is in its relative infancy, with little uptake of models in biological domains. This software presents a novel route to bridging the gap between computational and clinical/experimental disciplines, and in doing so will stimulate dissemination and uptake of both existing and new theoretical models.

As described above, the implementation of Chlamydia models to date constitutes a template that can be easily extended to other STIs. Such extensions will be included in future releases. A key target for future development will be to include within STI-GMaS a full geometric desciption of the genital tract, which can be deployed readily within new models, regardless of the infection under consideration. In parallel, key parameters will be identified in each of the key subtissues and made available across models. In doing so, STI-GMaS will improve upon the current necessity for models to be heavily relient on phenomenological parameter values.

We remark that, while STI-GMaS has made headway in making computational models more accessible, a true bridging of disciplines would benefit greatly from a bidirectional exchange of information. The task of making experimental data available through repositories with robust annotation is considerable and unresolved, and has been the focus of many other VPH-related initiatives; see *e.g.*[24] for details. Such integration of experimental data remains a long-term target for STI-GMaS.

## Availability and requirements

**Project name**: STI-GMaS

**Project home page**: http://www.sti-gmas.org

**Operating systems**: Linux, Mac OS X, Windows (64 bit)

**Programming language**: C++, Java

**Other requirements**: Paraview

**License**: 3-clause BSD

**Restrictions to use by non-academics**: none.

## Declarations

### Acknowledgements

The work described herein was funded as an Exemplar Project of the Virtual Physiological Human Network of Excellence. The authors would like to thank the CHASTE development team (Gary Mirams, Joe Pitt-Francis, Jonathan Cooper and Pras Pathmanathan in particular) for useful discussions and technical advice throughout the project.

## Authors’ Affiliations

## References

- Garnett G: An introduction to mathematical models in sexually transmitted disease epidemiology. Sex Transm Infect. 2002, 78: 7-12.PubMed CentralView ArticlePubMedGoogle Scholar
- Mallet D, Heymer K, Rank R, Wilson D: Chlamydial infection and spatial ascension of the female genital tract: a novel hybrid cellular automata and continuum mathematical model. FEMS Immunol Med Microbiol. 2009, 57 (2): 173-182.PubMed CentralView ArticlePubMedGoogle Scholar
- Vickers D, Zhang Q, Osgood N: Immunobiological outcomes of repeated chlamydial infection from two models of within-host population dynamics. PLoS One. 2009, 4 (9): e6886-PubMed CentralView ArticlePubMedGoogle Scholar
- Wilson D, Bowlin A, Bavoil P, Rank R: Ocular pathologic response elicited by Chlamydia organisms and the predictive value of quantitative modeling. J Infect Dis. 2009, 199 (12): 1780-1789.View ArticlePubMedGoogle Scholar
- Herzog S, Althaus C, Heijne J, Oakeshott P, Kerry S, Hay P, Low N: Timing of progression of Chlamydia trachomatis infection to pelvic inflammatory disease: a mathematical modelling study. BMC Infect Dis. 2012, 12: 187-PubMed CentralView ArticlePubMedGoogle Scholar
- World Health Organization: Global incidence and prevalence of selected curable sexually transmitted infections – 2008. Tech. rep. 2012,Google Scholar
- Sweet R, Gibbs R: Infectious Diseases of the Female Genital Tract. 2009, Philadelphia: Lippincott, Williams & WilkinsGoogle Scholar
- Beagley K, Timms P:
*Chlamydia trachomatis*infection incidence, health costs and prospects for vaccine development. J Reprod Immunol. 2000, 48: 47-68.View ArticlePubMedGoogle Scholar - Wilson D: Mathematical modelling of Chlamydia. ANZIAM J. 2004, 45 (0): C201-C214.Google Scholar
- Sharomi O, Gumel A: Mathematical study of in-host dynamics of Chlamydia trachomatis. IMA J Appl Math. 2012, 77 (2): 109-139.View ArticleGoogle Scholar
- Mallet D, Heymer K, Wilson D: A novel cellular automata-partial differential equation model for understanding chlamydial infection and ascension of the female genital tract. PAMM. 2007, 7: 2120001-2120002.View ArticleGoogle Scholar
- Mallet D, Bagher-Oskouei M, Farr A, Simpson D, Heymer K: A mathematical model of chlamydial infection incorporating spatial movement of chlamydial particles. Bull Math Biol. 2013, 75: 2257-2270.View ArticlePubMedGoogle Scholar
- Oskouei M, Mallet D, Amirshahi A, Pettet G: Mathematical modelling of the interaction of chlamydia trachomatis with the immune system. Proceedings of the World Congress on Engineering and Computer Science 2010 Vol 2. 2010, San Fransisco, USA: WCECS,Google Scholar
- Cooper J, Cervenansky F, De Fabritiis G, Fenner J, Friboulet D, Giorgino T, Manos S, Martelli Y, Villà-Freixa J, Zasada S, Lloyd S, McCormack K, Coveney PV: The virtual physiological human toolkit. Phil Trans R Soc A: Math Phys Eng Sci. 2010, 368: 3925-3936.View ArticleGoogle Scholar
- Pitt-Francis J, Bernabeu M, Cooper J, Garny A, Momtahan L, Osborne J, Pathmanathan P, Rodriguez B, Whiteley J, Gavaghan D: Chaste: using agile programming techniques to develop computational biology software. Phil Trans R Soc A: Math Phys Eng Sci. 2008, 366 (1878): 3111-3136.View ArticleGoogle Scholar
- Pitt-Francis J, Pathmanathan P, Bernabeu M, Bordas R, Cooper J, Fletcher A, Mirams G, Murray P, Osborne J, Walter A, Chapman S, Garny A, van Leeuwen I, Maini P, Rodríguez B, Waters S, Whiteley J, Byrne H, Gavaghan D: Chaste: A test-driven approach to software development for biological modelling. Comput Phys Comm. 2009, 180 (12): 2452-2471.View ArticleGoogle Scholar
- Mirams G, Arthurs C, Bernabeu M, Bordas R, Cooper J, Corrias A, Davit Y, Dunn SJ, Fletcher A, Harvey D, Marsh M, Osborne J, Pathmanathan P, Pitt-Francis J, Southern J, Zemzemi N, Gavaghan D: Chaste: an open source C++ library for computational physiology and biology. PLoS Comp Biol. 2013, 9 (3): e1002970-View ArticleGoogle Scholar
- Chaste downloads page. [http://www.cs.ox.ac.uk/chaste/download],
- Rank R, Batteiger B, Soderberg L: Susceptibility to reinfection after a primary chlamydial genital infection. Infect Immun. 1988, 56 (9): 2243-2249.PubMed CentralPubMedGoogle Scholar
- Rubin D: Bayesianly justifiable and relevant frequency calculations for the applied statistician. Ann Stat. 1984, 12: 1151-1172.View ArticleGoogle Scholar
- Toni T, Welch D, Strelkowa N, Ipsen A, Stumpf M: Approximate Bayesian computation scheme for parameter inference and model selection in dynamical systems. J R Soc Interface. 2009, 6 (31): 187-202.PubMed CentralView ArticlePubMedGoogle Scholar
- Csilléry K, Blum M, Gaggiotti O, François O: Approximate Bayesian Computation (ABC) in practice. Trends Ecol Evol. 2010, 25 (7): 410-418.View ArticlePubMedGoogle Scholar
- Brunham R, Rekart M: The arrested immunity hypothesis and the epidemiology of chlamydia control. Sex Transm Dis. 2008, 35: 53-54.View ArticlePubMedGoogle Scholar
- de Bono B, Hoehndorf R, Wimalaratne S, Gkoutos G, Grenon P: The RICORDO approach to semantic interoperability for biomedical data and models strategy, standards and solutions. BMC Res Notes. 2011, 4: 313-PubMed CentralView ArticlePubMedGoogle Scholar

## Copyright

This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly credited. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.

## Comments

View archived comments (1)