<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">AM</journal-id><journal-title-group><journal-title>Applied Mathematics</journal-title></journal-title-group><issn pub-type="epub">2152-7385</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/am.2013.410A3011</article-id><article-id pub-id-type="publisher-id">AM-38414</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Epidemic Propagation: An Automaton Model as the Continuous SIR Model
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>uciano</surname><given-names>Misici</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Filippo</surname><given-names>Santarelli</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Mathematics Department, School of Science and Technology, University of Camerino, Camerino, Italy</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>luciano.misici@unicam.it(UM)</email>;<email>filippo.santarelli@studenti.unicam.it(FS)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>10</day><month>10</month><year>2013</year></pub-date><volume>04</volume><issue>10</issue><fpage>84</fpage><lpage>89</lpage><history><date date-type="received"><day>May</day>	<month>28,</month>	<year>2013</year></date><date date-type="rev-recd"><day>June</day>	<month>28,</month>	<year>2013</year>	</date><date date-type="accepted"><day>July</day>	<month>5,</month>	<year>2013</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
   The use of the SIR model to predict the time evolution of an epidemic is very frequent and has spatial information about its propagation which may be very useful to contrast its spread. In this paper we take a particular cellular automaton model that well reproduces the time evolution of the disease given by the SIR model; setting the automaton is generally an annoying problem because we need to run a lot of simulations, compare them to the solution of the SIR model and, finally, decide the parameters to use. In order to make this procedure easier, we will show a fast method that, in input, requires the parameters of the SIR continuous model that we want to reproduce, whereas, in output, it yields the parameters to use in the cellular automaton model. The problem of computing the most suitable parameters for the reticular model is reduced to the problem of finding the roots of a polynomial Equation. 
 
</p></abstract><kwd-group><kwd>Cellular Automaton; SIR Model; Epidemic Spread</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Epidemics have always been a trouble for mankind and still continue to be: the globalization, since people can go from a side to the other of the Earth in a very fast way, can easily turn an infectious disease into a pandemic, perhaps spreading all over the world. Hence should be clear how helpful would be predicting when and where an epidemic will start and how it will evolve. Mathematical models, both deterministic and stochastic ones, which describe the evolution of population, can surely support this aim. SIR models, introduced for the first time in 1927 by Kermack and Mc Kendrick [<xref ref-type="bibr" rid="scirp.38414-ref1">1</xref>], are one of the most famous and used examples; they are a kind of models based on the partition of the population in three, or more classes, evolving over time according to a nonlinear ODE. The model can be complicated at will, adding the spatial distribution of the individuals, inserting an age structure or some stochastic terms to simulate the epidemics unpredictability [2-5].</p><p>As written above, further information about the spatial distribution can be achieved by adding partial derivatives terms right in the continuous SIR model, but we will not do that in this paper. Conversely, to pursue the same goal we will use a cellular automaton (CA), setting its parameters so that the disease evolution over time is similar to the one of the SIR models. This approach is very often used, but there is no way to know the best parameters to put in the reticular model unless you do a lot of tries and compare the results of several computations (see for example [<xref ref-type="bibr" rid="scirp.38414-ref6">6</xref>]). This calibration procedure is obviously quite imprecise and may lead to a very large waste of time.</p><p>In this paper we will describe a method to compute the CA model parameters on the basis of the ones of the continuous SIR models. Some assumptions must be made to use our method, but according to us they are not so strong and, when verified, the CA model perfectly simulates the results of the SIR model.</p></sec><sec id="s2"><title>2. The SIR and SIRS Continuous Models and the Automaton Model</title><p>The models we are going to focus on are SIR and SIRS.</p><p>The first one takes its name from the division of the total population in three classes: susceptibles, those who can be infected during a contact with an ill individual, infectious, the ones who have contracted the disease but can recover, and recovered, individuals who cannot contract the disease again. The model consists of a system of non-linear ordinary differential Equations. Let<img src="11-7401610\553ebe42-2097-4b91-bbc0-84cd39530e9e.jpg" />, <img src="11-7401610\1d509832-abb9-4ee5-9c6b-2b9aee7580f4.jpg" />and <img src="11-7401610\8519ed5c-19c4-4adb-801f-d27c39d09562.jpg" /> be the total number of susceptible, infectious and recovered individuals, respectively, at time<img src="11-7401610\5fce9e09-53fe-47dc-af09-03370afe0a0b.jpg" />; suppose that the total number of individuals is constant over time and call it<img src="11-7401610\1fd12787-f80c-42ed-b799-d4534867cfc0.jpg" />, so that</p><p><img src="11-7401610\11c916e3-97c9-4140-b85b-aad74e577200.jpg" />.</p><p>The system of ODE that rules over our population is:</p><disp-formula id="scirp.38414-formula24372"><label>(1)</label><graphic position="anchor" xlink:href="11-7401610\cf9e31bd-8202-4c9c-9347-f4343009d3f2.jpg"  xlink:type="simple"/></disp-formula><p>with assigned initial conditions<img src="11-7401610\ea221cad-f199-4827-a4cd-85697bb8104a.jpg" />, <img src="11-7401610\b4598f3b-fec2-4cf1-8f1e-53438902a761.jpg" />and<img src="11-7401610\275640a4-b585-4852-a40f-835ad8782596.jpg" />; <img src="11-7401610\42a5e38b-cb08-4cf4-8843-9a4a2c832b84.jpg" />is the density dependent parameter related to the average per capita contacts number and <img src="11-7401610\3a06f5e8-4f0b-4e7b-b41c-c1d23271c4cd.jpg" /> is the per capita recovery rate, that is the rate at which infected individuals recover; we have to suppose that <img src="11-7401610\e90b2c19-7350-4c52-89f8-01b43d448793.jpg" /> is positive, otherwise it would mean that there is no cure for the disease.</p><p>SIRS model is ruled by the same system of non-linear ODE, except that a recovered individual can turn again into a susceptible one, situation that in some cases is related to the loss of immunity. We have to consider the new parameter<img src="11-7401610\1e8a6c7c-f3ba-4b0c-b225-c774b03a67db.jpg" />, that is the rate at which recovered individuals change their state; we suppose<img src="11-7401610\48b96180-02ef-48b0-896f-534cdb126e80.jpg" />, otherwise we would go back to the previous model. The system becomes:</p><disp-formula id="scirp.38414-formula24373"><label>(2)</label><graphic position="anchor" xlink:href="11-7401610\0543f797-4087-4d0d-89aa-75f95092e18e.jpg"  xlink:type="simple"/></disp-formula><p>with the same initial conditions<img src="11-7401610\810da2e4-ca0b-4d88-8c0e-f3ec83edb146.jpg" />, <img src="11-7401610\a42463ff-061d-4091-8fe2-45f3bbb1c9a4.jpg" /></p><p>and<img src="11-7401610\1931178c-f841-41ab-aac2-728823a6e440.jpg" />.</p><p>In both of the previously described model we can add the class of vaccinated, evolving over time according to the function<img src="11-7401610\486f7149-4968-4344-af3e-a5055c3df6c7.jpg" />. Suppose we can only vaccinate susceptible individuals and we do that at the constant rate <img src="11-7401610\eb7b918a-231b-489a-83bb-da7e64012b91.jpg" /> (if null we get the previous models), so that the systems (1) and become (with <img src="11-7401610\023513ef-f66d-4f96-9c28-2e80959e4df2.jpg" /> or <img src="11-7401610\b84a2a68-4a27-45c9-bb53-66c91acf23ad.jpg" /> respectively):</p><disp-formula id="scirp.38414-formula24374"><label>(3)</label><graphic position="anchor" xlink:href="11-7401610\b85fd2eb-141e-4e45-ba59-1ca0befe1942.jpg"  xlink:type="simple"/></disp-formula><p>with the initial conditions<img src="11-7401610\3dd827db-6433-4db7-b331-f4e577fe2ab6.jpg" />, <img src="11-7401610\df14667a-3bb4-4b97-baba-5d994dbf6ef5.jpg" />, <img src="11-7401610\301031e0-dfda-4006-85c6-6203a03c0c5b.jpg" />and<img src="11-7401610\f3437143-f731-42d3-8966-81f5231444ca.jpg" />. Generally <img src="11-7401610\95687016-4023-41bd-9888-d2cd2149a9fe.jpg" /> is quite big while <img src="11-7401610\5b5e488b-ce8c-46ed-a9ff-de9a35f81ef9.jpg" /> is very small, because vaccination is mostly meant to be done before the disease spread, rather than once the epidemic has begun.</p><p>In this paper we will also consider a bidimensional probabilistic finite state cellular automaton in which we suppose that the individuals are static while the disease spreads. The cellular automaton model that we use is taken from [<xref ref-type="bibr" rid="scirp.38414-ref6">6</xref>]. In particular, supposing<img src="11-7401610\7c747e21-8691-4529-a955-09b550abb7c1.jpg" />, we take an automaton made up of <img src="11-7401610\c872877d-c85d-4a38-803a-e67b3bfa8a54.jpg" /> cells and <img src="11-7401610\688f9205-d306-4016-baaf-62b183f5ef5b.jpg" /> total steps. At each step, we can represent it by a matrix <img src="11-7401610\d2d8afd3-6e52-44c7-8a17-8f02e3f3339b.jpg" /> made up of elements <img src="11-7401610\7166754e-ccbb-4d49-8ea5-82c6b7d6166d.jpg" /> with<img src="11-7401610\ee1bba3f-125b-4b6e-a411-a82c676b076f.jpg" />, <img src="11-7401610\a05fe606-241d-4394-b285-e410ea6725aa.jpg" />,<img src="11-7401610\e5ad038a-091a-4425-b27a-5c93a9157b95.jpg" />. At each step<img src="11-7401610\c4bacd68-f64e-4bdd-be02-e09a918bdad5.jpg" />, each cell can assume exactly one of the possible states, whose number corresponds to the number of classes in the chosen model: in the following of this article we will assume <img src="11-7401610\99a63f7a-bc01-486f-b0ea-708c85a08639.jpg" /> if there is a susceptible at the <img src="11-7401610\4c171b1c-4a2f-4b44-a000-ccbc4f31ada2.jpg" />-th row and the <img src="11-7401610\ecb84f5a-9dad-4bd7-845f-8efa575be555.jpg" />-th column, <img src="11-7401610\5bb1e6b1-0805-484d-99d1-5acfc0ec5e55.jpg" />for an infectious, <img src="11-7401610\92142a1e-7a59-4936-9556-4e0054c0cc23.jpg" />for a recovered and <img src="11-7401610\3e145980-90af-4710-bbda-eae439299591.jpg" /> for a vaccinated. If we are at the step<img src="11-7401610\e8edd3ac-84be-4f52-a9a2-eb3b11f29469.jpg" />, the state transition for the cell at position <img src="11-7401610\7998313d-45d2-4604-939a-7b16d5261406.jpg" /> is determined as following:</p><p>• Suppose<img src="11-7401610\eda56c21-96f1-4c08-a178-3504c4969b97.jpg" />. Let <img src="11-7401610\30ad7686-5ab1-427e-83cc-8e024233edad.jpg" /> be a matrix with elements <img src="11-7401610\97f38151-9a04-4fee-82e7-40721c109f9b.jpg" /> representing the number of infectious in the Moore neighbourhood of radius <img src="11-7401610\b54864b9-6efc-486a-943a-d767465b5ee4.jpg" /> of the current cell at the current step; we assume that the neighbourhood for each boundary cell is still the Moore one, except the cells that exceed the grid. Let <img src="11-7401610\b33088d0-c2ce-42b3-8ed2-d2b85f82adbf.jpg" /> be the probability matrix for susceptibles, where each element <img src="11-7401610\419811ff-768c-45a1-a9c2-a537ccc93e3f.jpg" /> is the probability of the susceptible cell <img src="11-7401610\3c3e66b8-f442-450d-ac69-d9e7d919bcf2.jpg" /> to become infectious in the <img src="11-7401610\e711399d-560e-4489-9f05-acae08206ed2.jpg" />-th step and it is given by</p><disp-formula id="scirp.38414-formula24375"><label>(4)</label><graphic position="anchor" xlink:href="11-7401610\828e4b9b-1f1b-447c-ae62-5880134a8c90.jpg"  xlink:type="simple"/></disp-formula><p>where <img src="11-7401610\90f6a949-a15a-4367-b99c-85179a5ae071.jpg" /> is the contagious probability at the current step. So generate a pseudo-random number<img src="11-7401610\e5446e57-8385-4444-8690-0684a3a818bc.jpg" />, if<img src="11-7401610\d176149a-d09a-494b-9a65-3b49ffcc45f3.jpg" />, then the current cell changes state and becomes infectious. In the Equation (4) <img src="11-7401610\86eb1d08-9e59-4829-a617-2bd7b060756a.jpg" />is generally supposed to be constant over time, but we will not consider this condition from now on; the reason is that, with a constant<img src="11-7401610\11fcb830-ec96-4e16-bccb-c45a481c48c5.jpg" />, we haven’t a good simulation of the continuous model, while this was our aim.</p><p>If our continuous model contains the class <img src="11-7401610\5d231041-8d3b-4866-8350-532252f13eec.jpg" /> of vaccinated, we have to put it in the automaton; we introduce the probability<img src="11-7401610\e249ac3c-fce7-4fea-9a8d-881d3696b3e3.jpg" />, constant over time, that a susceptible becomes a vaccinated. Assume that vaccine has no effect on the individuals that have already contracted the disease, so that, if the current cell has changed its state, it cannot become vaccinated. If we still have <img src="11-7401610\3a3d58b0-ebb2-431b-9ca6-f2c879337b4a.jpg" /> instead, generate a new pseudo-random number <img src="11-7401610\40fd0cb0-681c-445e-8215-4e64d198b601.jpg" /> and if <img src="11-7401610\227461c4-6788-4a79-95ab-7ea118e45fdb.jpg" /> then turn the current cell into a vaccinated.</p><p>• If<img src="11-7401610\7b36dc5e-3163-4e00-acf7-0fbe1b46f23d.jpg" />, let <img src="11-7401610\4f0f8bbd-2795-4d62-9766-e5cff1fea20e.jpg" /> be the probability that an infectious becomes recovered, then generate a new pseudo-random number <img src="11-7401610\15b53454-b7d1-461d-a95d-d11fb51cb3be.jpg" /> and check if<img src="11-7401610\41704d51-f6bd-441a-8f56-cfaf4a8ec5fa.jpg" />; in this case the current cell becomes recovered.</p><p>• If <img src="11-7401610\9c0e6382-3807-4ee5-98df-17a62c1f8447.jpg" /> the cell is a recovered, so let <img src="11-7401610\fae14c64-6b3c-41bb-90c2-00172b2d8654.jpg" /> be the probability that a recovered turns into a susceptible and generate a new pseudo-random number<img src="11-7401610\df3a495b-83e5-490a-9549-d4f7bced1d35.jpg" />. If <img src="11-7401610\b1ca2c0f-69da-4b2e-9a92-96c0cb4ff12b.jpg" /> then the cell becomes a susceptible.</p><p>• In the case <img src="11-7401610\f8683eda-7805-4637-a33f-cbb4b2492e5a.jpg" /> the current cell cannot change its state, supposing vaccination never loses its effects.</p></sec><sec id="s3"><title>3. As the Automaton Model Can Perfectly Simulate the Continuous SIR Model</title><p>Suppose we want to reproduce the behaviour of a SIR model with an automaton from the starting time <img src="11-7401610\ebc20d6a-c73d-4d63-8a9a-4aef9470488d.jpg" /> to the final time<img src="11-7401610\9cec0243-0a88-46b0-80d5-7ec4ae96d69e.jpg" />, so let <img src="11-7401610\7cebdc93-a0fe-42d9-9b18-7ed84ea27223.jpg" /> be the time interval that corresponds to one step of our reticular model and</p><p><img src="11-7401610\536727f1-fba7-454a-8e02-719aeb7d048c.jpg" /></p><p>the number of steps that we require (we assume that <img src="11-7401610\9dc5fa56-674d-4ba4-b510-4a8a795ed2be.jpg" /> is such that<img src="11-7401610\9e26bf9c-b062-468c-93a3-8bf19fecc0cf.jpg" />). We will see that we can arbitrarily set <img src="11-7401610\e720fed2-3e48-4c5f-bab5-93e5975d4fe8.jpg" /> to get the best results, since it depends neither on the numerical method we choose to solve the continuous SIR model, nor on the step chosen for it.</p><p>Now focus on a single step of the automaton and put <img src="11-7401610\36faba2d-835b-4458-9d00-bb64fc426058.jpg" /> with <img src="11-7401610\6ae94d5c-da6e-4529-9527-eda99919a630.jpg" /> and<img src="11-7401610\9f864252-2447-46f3-bd77-ebf1a8a83c84.jpg" />. Suppose we have to simulate from time <img src="11-7401610\9bf840df-2b5f-4a8d-be3c-9c625fb04adb.jpg" /> to time<img src="11-7401610\0853365b-4850-40ca-b3d6-d739e3a5a998.jpg" />. The structure of our automaton is such that a susceptible individual can only become infectious or vaccinated, while new susceptibles are generated only by the loss of immunity of recovered. So, if we want to calculate the probability that a susceptible becomes infectious, we have to focus on the decreasing of susceptibles due to the contact with infectious:</p><p><img src="11-7401610\265b62d4-2f82-4aa3-a67e-a1e2d44dbfbf.jpg" /></p><disp-formula id="scirp.38414-formula24376"><label>(5)</label><graphic position="anchor" xlink:href="11-7401610\53ea453f-0169-4bb9-9920-c7c9e3d7427a.jpg"  xlink:type="simple"/></disp-formula><p>Put <img src="11-7401610\664f2953-6104-4920-91d0-85a08037665c.jpg" /> The integral <img src="11-7401610\37343c78-e967-4752-adf8-2408d498a072.jpg" /></p><p>can be solved using a numerical method, for example we can approximate the function <img src="11-7401610\0f0866a5-65ab-420a-9995-b01496683ea2.jpg" /> using the interpolating polynomial of degree <img src="11-7401610\6a951068-5093-439c-a2f0-f29e43da6dff.jpg" /> on the node<img src="11-7401610\aa62b925-ab52-40fa-a02a-0c50fa82ff14.jpg" />, so:</p><p><img src="11-7401610\01f95d96-faf8-4dc6-9bdb-1d1c0cc862de.jpg" /></p><p>Denoting <img src="11-7401610\0bdaafa5-87f0-4866-bc2a-72b2f8acb73e.jpg" /> the first order divided difference, the integration error is estimated as follows:</p><p><img src="11-7401610\f40f46c3-a401-4189-9ca7-4b8d715293cd.jpg" /></p><p>with<img src="11-7401610\0d532fa8-56c9-4d97-907b-169a18dda95a.jpg" />. If we put <img src="11-7401610\db3e5973-d3d0-46e9-b51a-9a254d86996f.jpg" /> we obtain</p><disp-formula id="scirp.38414-formula24377"><label>(6)</label><graphic position="anchor" xlink:href="11-7401610\b8cdd253-db24-4de8-bbfe-5f59c943aed6.jpg"  xlink:type="simple"/></disp-formula><p>From Equation (5) we get</p><p><img src="11-7401610\49750672-d957-4229-a594-8a057d26656b.jpg" /></p><p>This is the fraction of susceptibles who are still healthy at <img src="11-7401610\459f6ef6-0aa3-413c-85c3-038456c27b2b.jpg" /> with respect to the initial value at<img src="11-7401610\ebab48ac-53de-4a46-bfc8-119c8450471e.jpg" />; <img src="11-7401610\34707555-127e-4e2f-babe-2ed06bab665d.jpg" />is the probability that a susceptible doesn't change its state, consequently <img src="11-7401610\4dc21093-39fc-4add-8469-97162b707d45.jpg" /> is the probability that a susceptible becomes infectious.</p><p>Consider now the automaton model; put</p><p><img src="11-7401610\0a93aadb-39b5-427e-ad86-1780b349e67a.jpg" />and <img src="11-7401610\80be1fcd-180d-4a1e-9323-803d511b0e11.jpg" /> its cardinality, namely the total number of susceptibles at time<img src="11-7401610\08deb4fb-406e-464f-8d9e-6c99cc079315.jpg" />. We are going to find the contagious probability<img src="11-7401610\d3150ee0-d93e-4fb2-84d4-4a9b1d07c592.jpg" />, equal among all the individuals but changing step by step, so recall the transition probability for a susceptible:</p><p><img src="11-7401610\217c5351-49f1-425b-954c-ee19ba8a8289.jpg" /></p><p>For each susceptible we shall consider a stochastic variable<img src="11-7401610\acee95be-f26b-4cfe-b3bf-00df99f2526e.jpg" />, with<img src="11-7401610\fb1ca4b7-19e1-4776-8727-9d7746cf34d3.jpg" />, which assumes the value <img src="11-7401610\e2a424df-0859-4e3b-9e2b-3dd4e9dbf012.jpg" /> with a probability<img src="11-7401610\fefa8910-0fbc-4230-ac4b-b6c1daa8110c.jpg" />. The variable</p><p><img src="11-7401610\0c0cc8be-264e-4bd1-aede-9dfc672363ca.jpg" /></p><p>returns the number of susceptibles that change their status going from <img src="11-7401610\b4c034c8-c284-4902-a952-1ac44bd10914.jpg" /> to<img src="11-7401610\9e5dbad8-8cb5-4b8a-8907-b7e3024be45a.jpg" />. If we put</p><p><img src="11-7401610\fb6d8085-22d0-44e8-8842-ff3d3c071c71.jpg" />that is the set of susceptibles that are able to turn into infected, and <img src="11-7401610\7db038d1-09c9-4196-9abb-78fc556ce8bd.jpg" /> its cardinality, we can calculate the expected value of <img src="11-7401610\b98abcb6-15ce-43a6-8c00-7be0dba2ab23.jpg" /> as shown below:</p><p><img src="11-7401610\1a818679-78fa-4499-a95d-491a979fcd79.jpg" /></p><p>We expect that <img src="11-7401610\fbeeb71e-de2f-4e8c-b987-66a3b6435f3c.jpg" /> individuals become infectious at this step. Since our aim is to reproduce the SIR model, we must make the automaton model not dependent on the spatial distribution of individuals at time<img src="11-7401610\ee00154c-fa9c-46f6-87b9-d472ca31d3b9.jpg" />, otherwise each computation would lead to different results. Hence we force <img src="11-7401610\2c843c29-a52d-4d4e-9d9e-85958be195b5.jpg" /> to be equal to the number of susceptibles that change class in the continuous model, namely<img src="11-7401610\47fe3a59-947d-400c-ae7c-aa87e680d62b.jpg" />, so that we get:</p><disp-formula id="scirp.38414-formula24378"><label>(7)</label><graphic position="anchor" xlink:href="11-7401610\3f55a9fb-ed31-47f1-af6d-6de47634f442.jpg"  xlink:type="simple"/></disp-formula><p>Equation (7) is just what we need: we only have to find its roots, if present, to get the most suitable value of <img src="11-7401610\f461f518-1b3d-46fb-b54c-01c0691a3eab.jpg" /> to reproduce the SIR model. In the following we will show that the function <img src="11-7401610\10b89dc3-69c6-410c-9f3a-76a552f9c461.jpg" /> defined as</p><p><img src="11-7401610\ec68c227-d810-4afd-b793-cb70dbe04007.jpg" /></p><p>under a particular condition admits exactly one zero in the interval<img src="11-7401610\0022ffb2-05ea-4961-8431-96adc3b38d88.jpg" />.</p><p>We can see that <img src="11-7401610\db85554e-0eb5-4dc7-9145-e3fcff8d1158.jpg" /> as combination of continuous functions and</p><p><img src="11-7401610\d0572971-3107-4dae-a2ff-818c3353acbb.jpg" /></p><p>therefore there exists at least one zero of <img src="11-7401610\09d476bd-66cc-413c-9573-91abee8a3809.jpg" /> in <img src="11-7401610\555aa6b7-d38c-4097-b60c-e0274cf5a1e7.jpg" /> if</p><disp-formula id="scirp.38414-formula24379"><label>(8)</label><graphic position="anchor" xlink:href="11-7401610\aebd1066-8803-4893-bb59-c485b7ee4381.jpg"  xlink:type="simple"/></disp-formula><p>Furthermore we have</p><p><img src="11-7401610\d58fe4e4-3d5e-4cbb-a836-291d062a2c48.jpg" /></p><p>that is negative in all the open interval<img src="11-7401610\ec5eb400-1ea0-4be8-bd4b-72c1c8f99750.jpg" />, hence the zero, if exists, is unique. So if<img src="11-7401610\9c24ebe4-4e53-499e-8196-eff3b46de4b8.jpg" />, Equation has exactly one root, that is the probability <img src="11-7401610\a67a7024-e782-42be-bff9-c9d6ebb20362.jpg" /> that we need.</p><p>Finally we have to calculate the remaining parameters in order to use the automaton model. As in Equation (5), focusing on the decreasing of infectious we get</p><p><img src="11-7401610\b8bd79e2-bf52-48db-b364-23d6e6d018e1.jpg" /></p><p>Now <img src="11-7401610\e5ed4fa9-623a-482b-ae77-7298d6c38387.jpg" /> is the probability that an infectious doesn’t change its state and consequently <img src="11-7401610\2cc8475b-1bed-4863-870b-6107b151e2cc.jpg" /> is the probability that he becomes recovered. Hence we have:</p><p><img src="11-7401610\9d51e79b-7d5f-49af-a1e2-c1855cdac1e1.jpg" /></p><p>Similarly we can compute the other parameters:</p><p><img src="11-7401610\cb282f9d-dd5d-410b-bc45-6e04eedf2ebd.jpg" /></p><p>We have found that the automaton could perfectly simulate a SIR model, if the condition (8) is satisfied: it states that the number of susceptibles able to be infected must be greater than (or equal to) the number of them who must change their state (according to the continuous model). If, at a certain step of the computation, we found that the relation (8) is no more verified, we can reasonably force <img src="11-7401610\9db4f86d-d5f1-4fe5-96c2-109b913d5f59.jpg" /> to the value<img src="11-7401610\de6a531f-3747-4551-94e9-3ddd1e1dfdde.jpg" />, so that all the susceptibles able to become ill do it and the results of the automaton are as close to the ones of the continuous model as possible. If the computation with the automaton is not satisfying yet we can reduce <img src="11-7401610\cdc93d38-3063-4192-ab7c-83befd9bec27.jpg" /> until the condition (8) is verified at any step: indeed the number <img src="11-7401610\7e1d4871-de86-4054-9b66-b89563206893.jpg" /> decreases since <img src="11-7401610\1cca3e5a-8276-4d53-99d8-88dcd9e52464.jpg" /> linearly depends on<img src="11-7401610\4b268113-c112-49fe-96a9-220a0d6854bb.jpg" />, whereas <img src="11-7401610\cd686b0c-e3c2-4516-9d77-edd67bc15f1e.jpg" /> remains the same, because it depends just on the spatial distribution of infected individuals. We can also notice that the integration error given by Equation (6) consequently reduces.</p></sec><sec id="s4"><title>4. Some Results</title><p>We will show in this section some results obtained with the automaton and compare them to the respective solution given by the continuous SIRS model.</p><p>For the simulation we took an automaton of <img src="11-7401610\34dcfe4a-00ea-4e09-bac5-07670694f007.jpg" /> cells disposed in a <img src="11-7401610\973a91c6-0423-43e1-a021-2a9d397e8f38.jpg" /> grid; we have found that using more individuals doesn’t lead to good images in the printed version of the spatial distribution, so we decided to limit <img src="11-7401610\f5a8a700-8560-4cd8-b94e-d6a8d95db8e8.jpg" /> and improve the quality of the figures. We set the initial conditions to<img src="11-7401610\33755fa5-ea3a-45a5-81ee-c19a59f49a51.jpg" />, <img src="11-7401610\d90a19d6-25bc-4fcb-ae09-af9685f6ad9f.jpg" />, <img src="11-7401610\a1210cf2-6dc2-426d-aac9-1175b62de216.jpg" />and the parameters of the SIRS model to<img src="11-7401610\0ae9a047-64fe-416d-8552-99d572d8e147.jpg" />, <img src="11-7401610\a63749c3-6de8-4ff3-89c7-1429d280599a.jpg" />, <img src="11-7401610\f941a64b-0f9c-4a52-8d44-eb50617dc9ab.jpg" />and<img src="11-7401610\f3b97dd1-85a3-4797-a334-1eafb2ff573e.jpg" />, with <img src="11-7401610\1ae2980e-a4e6-46e5-8ef5-10241928de88.jpg" /> and<img src="11-7401610\679ca8ea-c212-4549-b945-eed33afe4bfe.jpg" />. With the method proved above we computed the parameters for the automaton model, then we randomly generated the initial matrix <img src="11-7401610\5ff83cc0-5868-4ebc-9e4c-31d4f1e140e8.jpg" /> and ran a simulation using<img src="11-7401610\a306b4f1-7100-46bb-8b17-d0edc0d7a02c.jpg" />. The computation led to <xref ref-type="fig" rid="fig1">Figure 1</xref>. At time <img src="11-7401610\c89628e6-b82b-4fa2-96d3-ca69af5ccc59.jpg" /> (that is at the step<img src="11-7401610\7fafc201-1ccb-4cd2-9335-d78d1d10f211.jpg" />) the infection reached its peak and the spatial distribution of the individuals is shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>. Since we want to compare this simulation of the disease with a numerical solution of the SIRS model, we decided to use the Euler’s method with a step <img src="11-7401610\682b33b9-4fb8-4d26-9018-dc0555a58e4f.jpg" /> to solve the system (the solution is reported in <xref ref-type="fig" rid="fig3">Figure 3</xref>). We can notice that the two approaches give quite the same results; however our method yields the spatial distribution of the individuals and allows the use of a cellular automaton to simulate a disease spread: this means involving a discrete population and the unpredictability of an epidemic.</p><p>From Equation (6) we can notice that the approximation</p><p>error may increase if <img src="11-7401610\615f9786-84fc-42c9-b20b-7e2a5d067dda.jpg" /> increases in the interval<img src="11-7401610\ecccf60f-b06b-4e57-9ec5-3a00864041e4.jpg" />; hence we thought to test our algorithm also in this case. We have decided to change the following parameters:<img src="11-7401610\8d31ca7d-838e-4b77-9dd7-2f041ef16cde.jpg" />, <img src="11-7401610\ca5c1dc7-f4cc-461d-a2e9-b30552517345.jpg" />and<img src="11-7401610\559ea1db-5cc8-4f5c-9f77-c2e4c31972c4.jpg" />. <xref ref-type="fig" rid="fig4">Figure 4</xref> shows the solution given by our algorithm, while <xref ref-type="fig" rid="fig5">Figure 5</xref> shows Euler’s one. We can see that the two solutions</p><p>are quite the same, so our method works also in the worst situations.</p><p>We tested our algorithm also over an automaton with <img src="11-7401610\8ffc1c8b-d72b-4186-b9e7-bbdb201c73b5.jpg" /> and, after 140 steps, the simulation finished in 222.29 seconds, so it is very fast. It can be probably adapted to solve also other systems of ODEs, for which a spatial evolution of the involved functions is useful, although the simulations in these cases may be not satisfying; that because we have chosen a particular cellular automaton, with its own law of transition and type of neighbourhood, which well describe the spread of an epidemic, but probably are not good in another framework. Our future work will be trying to generalize this method to other systems of ODEs (including more complicated epidemic models that better reproduce the behaviour of a real disease) and to other types of cellular automata.</p></sec><sec id="s5"><title>REFERENCES</title></sec></body><back><ref-list><title>References</title><ref id="scirp.38414-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">W. O. Kermack and A. G. McKendrick, “A Contribution to the Mathematical Theory of Epidemics,” Proceedings of the Royal Society of London A, Vol. 115, No. 772, 1927, pp. 700-721. http://dx.doi.org/10.1098/rspa.1927.0118</mixed-citation></ref><ref id="scirp.38414-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">C. Castillo-Chavez, H. W. Hethcote, V. Andreasen, S. A. Levin and W. M. Liu, “Epidemiological Models with Age Structure, Proportionate Mixing, and Cross-Immunity,” Journal of Mathematical Biology, Vol. 27, No. 3, 1989, pp. 233-258. http://dx.doi.org/10.1007/BF00275810</mixed-citation></ref><ref id="scirp.38414-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">V. Capasso, “Mathematical Structures of Epidemic Systems,” Lecture Notes in Biomathematics, Vol. 97, 1993.http://dx.doi.org/10.1007/978-3-540-70514-7</mixed-citation></ref><ref id="scirp.38414-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">I. Nasell, “Stochastic Models of Some Endemic Infections,” Mathematical Biosciences, Vol. 179, No. 1, 2002, pp. 1-19. http://dx.doi.org/10.1016/S0025-5564(02)00098-6</mixed-citation></ref><ref id="scirp.38414-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">N. T. J. Bailey, “The Simulation of Stochastic Epidemics in Two Dimensions,” Proceedings of the Fifth Berkeley Symposium on Mathematical Statistics and Probability, University of California Press, Berkeley, Vol. 4, 1967, pp. 237-257.</mixed-citation></ref><ref id="scirp.38414-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">S. Chang, “Cellular Automata Model for Epidemics,” 2008. http://csc.ucdavis.edu/~chaos/courses/nlp/Projects2008/SharonChang/Report.pdf</mixed-citation></ref></ref-list></back></article>