Using Cytoscape to build Watts-Strogatz contact networks for simulating SIRS model epidemics #3423
Ravenwulf
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I used Cytoscape to assemble Watts-Strogatz ring networks with variable small-world properties in order to simulate SIRS epidemic models and observe the relation between small-world properties and the emergence of synchronized oscillations in infections.
The contact network is assembled according to the Watts-Strogatz model, with
Nvertices arranged in a ring, connected to their "nearest" vertices for some number of stepskin each direction. This creates a contact network where nodes on one side of the ring have a lot of coincident edges, but nodes across from each other on the ring are very far apart. We can now control the small-world properties present in the network by independently reconnecting edges of the graph with probabilitycto a random node rather than the intended neighbor.As we raise the parameter
c, more and more nodes will have long distance connections across the ring, increasing the "small-worldness" of the network.Contact Networks Visualized
N= 10,000 nodesk= 15 nodes (resolves to 7 in each direction around the ring)Networks, from top to bottom, are built with
cprobabilities 0.001, 0.01, 0.05, and 0.2Now, after generating these networks, we can test their response to identical epidemics to observe the effect that these small-world properties have on the lifecycle of the disease.
I implemented an SIRS epidemic model with fixed infection and recovery periods (similar to and inspired by the method used in this Abramson-Kuperman paper)
To explain the SIRS epidemic model, it helps to explain the simpler SIR model first. In the SIR epidemic model, nodes have 3 potential states:
The SIRS model includes an additional recovery period making immunity temporary and allowing previously infected nodes to become infected again after some time. This addition is especially useful when using the epidemic to model actual diseases, since it mimics the sort of immunity->mutation->immunity cycle that real diseases go through.
SIRS Epidemic Visualized
The simulation I used had the following properties:
Analysis of Results
As can be seen in the above line graph, the same epidemic, when applied to our different contact networks results in wildly different infection patterns depending on our small-world parameter
c. In the contact networks with lower small-world properties (c= 0.001, 0.01), the disease stabilizes within a particular range but the infection rates seem to display little to no oscillations. As we increasecup to 0.05, we can start to see notable repeating peaks and valleys but still with a healthy bit of noise and amplitudes barely greater than the previous networks. However, once we get ourcvalue up to 0.2 we observe clear synchronistic behavior, with the infection stabilizing into nearly uniform oscillations with slightly varying amplitude.Here we can see that small-world network properties have a marked effect on the emergent lifecycle of our SIRS epidemic.
I decided to share this here because I was amazed by how easy it was to set up and use Cytoscape for this experiment and I wanted to show my appreciation for the tool you've made. I look forward to using it in future graph theory / data science applications.
Beta Was this translation helpful? Give feedback.
All reactions