<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://mattiamazzoli.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://mattiamazzoli.github.io/" rel="alternate" type="text/html" /><updated>2026-05-05T14:52:10+02:00</updated><id>https://mattiamazzoli.github.io/feed.xml</id><title type="html">Mattia Mazzoli</title><subtitle>My personal website.</subtitle><author><name>Mattia Mazzoli</name></author><entry><title type="html">Outreach</title><link href="https://mattiamazzoli.github.io/2024/04/30/Outreach.html" rel="alternate" type="text/html" title="Outreach" /><published>2024-04-30T00:00:00+02:00</published><updated>2024-04-30T00:00:00+02:00</updated><id>https://mattiamazzoli.github.io/2024/04/30/Outreach</id><content type="html" xml:base="https://mattiamazzoli.github.io/2024/04/30/Outreach.html"><![CDATA[<p><strong>Dissemination articles</strong></p>

<p><a href="https://theconversation.com/como-gravita-usted-al-trabajo-123427"><em>The Conversation</em></a></p>

<p><a href="https://www.investigacionyciencia.es/revistas/investigacion-y-ciencia/las-vas-imprevistas-del-aprendizaje-806/una-nueva-ciencia-de-la-movilidad-urbana-18936"><em>Investigación y Ciencia</em></a></p>

<p><a href="https://digital.csic.es/bitstream/10261/229492/1/movilidad.pdf"><em>Medicina Balear</em></a></p>

<p><strong>Interviews</strong></p>

<p><a href="https://www.europe1.fr/sante/aeroports-gares-une-modelisation-pour-detecter-les-zones-de-contamination-des-virus-4173331"><em>Europe 1</em></a></p>

<p><a href="https://presse.inserm.fr/une-modelisation-pour-limiter-la-transmission-des-maladies-infectieuses-dans-les-aeroports-et-les-gares/66702/"><em>Inserm Salle de Presse</em></a></p>

<p><a href="https://www.csic.es/es/actualidad-del-csic/disenan-un-metodo-para-prevenir-la-propagacion-de-enfermedades-infecciosas-en"><em>CSIC sala prensa</em></a></p>

<p><a href="https://www.francetvinfo.fr/replay-radio/le-billet-vert/sante-pour-eviter-de-tomber-malade-dans-un-aeroport-mieux-vaut-bouger_5698286.html"><em>France info</em></a></p>

<p><a href="https://www.radiofrance.fr/franceinfo/podcasts/le-billet-sciences/sante-pour-eviter-de-tomber-malade-dans-un-aeroport-mieux-vaut-bouger-3850650"><em>Radio France</em></a></p>

<p><a href="https://www.bfmtv.com/sante/maladies-infectieuses-une-etude-revele-les-lieux-les-plus-a-risque-de-contamination-a-l-aeroport_AN-202303220518.html"><em>BMFTV</em></a></p>

<p><a href="https://www.sciencesetavenir.fr/sante/proteger-2-d-un-aeroport-evite-40-des-clusters-de-covid-19-et-futurs-virus_170332"><em>Science et Avenir</em></a></p>

<p><strong>Media outreach</strong></p>

<p><a href="https://www.salute.eu/2025/04/18/news/virus_parainfluenzali_influenza_sintomi_virus_respiratorio_sinciziale_infezioni_epidemie_contagi-424134284/"><em>Salute.eu</em></a></p>

<p><a href="https://www.lastampa.it/torino/2025/04/15/news/vaccino_anti-influenzale_ricerca_isi_foundation-15103680/"><em>La Stampa</em></a></p>

<p><a href="https://www.repubblica.it/salute/2024/05/16/news/dengue_covid_influenza_monitoraggio_sintomi_virus-422977812/amp/"><em>La Repubblica</em></a></p>

<p><a href="https://www.lastampa.it/torino/2024/05/25/news/epidemie_torino_punto_riferimento_mondiale_fondazione_isi_alessandro_vespignani-14332940/"><em>La Stampa</em></a></p>

<p><a href="https://okdiario.com/salud/csic-disena-metodo-prevenir-propagacion-enfermedades-infecciosas-aeropuertos-10628994"><em>Okdiario</em></a></p>

<p><a href="https://www.infoprotection.fr/covid-19-un-etude-revele-les-lieux-les-plus-a-risque-dans-les-aeroports/"><em>Info protection</em></a></p>

<p><a href="https://www.topsante.com/medecine/maladies-infectieuses/zoonoses/covid-19-dans-les-aeroports-voici-les-endroits-a-eviter-pour-ne-pas-l-attraper-655274"><em>Top Santé</em></a></p>

<p><a href="https://www.saludadiario.es/salud-publica/disenan-un-metodo-para-prevenir-la-propagacion-de-enfermedades-infecciosas-en-aeropuertos/"><em>Salud a diario</em></a></p>

<p><a href="https://www.ouest-france.fr/sante/maladies/maladies-infectieuses-voici-les-zones-ou-le-risque-de-contamination-est-le-plus-grand-a-laeroport-27105b54-c988-11ed-b53c-9fe1bb91a4d3"><em>Ouest-France</em></a></p>

<p><a href="https://www.lavanguardia.com/local/baleares/20230323/8848392/investigadores-uib-disenan-modelo-matematico-prevenir-contagios-enfermedades-aeropuertos.html"><em>LaVanguardia</em></a></p>

<p><strong>Paper-wise mediatic outreach</strong></p>

<p>Dengue monitoring<br />
(https://www.isi.it/press-coverage/2024-05-monitoraggiodengue/)</p>

<p>Field Theory<br />
(https://ifisc.uib-csic.es/es/news/cities-gravitational-mobility-wells/)</p>

<p>Migration flows <br />
(https://ifisc.uib-csic.es/en/news/new-method-based-geolocated-data-twitter-detects-refugee-flows-worldwide)</p>

<p>Multi-seeding    <br />
(https://ifisc.uib-csic.es/en/news/mobile-data-study-containment-effectiveness-covid19-dispersion/)</p>]]></content><author><name>Mattia Mazzoli</name></author><summary type="html"><![CDATA[]]></summary></entry><entry><title type="html">Teaching</title><link href="https://mattiamazzoli.github.io/2024/03/18/Teaching.html" rel="alternate" type="text/html" title="Teaching" /><published>2024-03-18T00:00:00+01:00</published><updated>2024-03-18T00:00:00+01:00</updated><id>https://mattiamazzoli.github.io/2024/03/18/Teaching</id><content type="html" xml:base="https://mattiamazzoli.github.io/2024/03/18/Teaching.html"><![CDATA[<p><strong>Course on Digital Epidemiology</strong></p>

<p>Hands on session requirements</p>

<p><em>Step 1:</em> Install anaconda, please refer to the <a href="https://docs.anaconda.com/free/anaconda/install/index.html"><strong>instructions</strong></a><br />
<em>Step 2:</em> The tutorial relies on the python package scikit-mobility, please follow the package instructions carefully at this <a href="https://scikit-mobility.github.io/scikit-mobility/index.html"><strong>page</strong></a> <br />
<em>Step 3:</em> Download the jupyter notebook at this <a href="https://github.com/mattiamazzoli/Teaching/tree/main"><strong>link</strong></a></p>

<p>Slides del corso<br />
<a href="https://github.com/mattiamazzoli/Teaching/blob/main/slides/mobility_course_lezione1.pdf" download="">Lezione 1: dati e modelli di mobilità umana (7/04/2025)</a><br />
<a href="https://github.com/mattiamazzoli/Teaching/blob/main/mobility_models.ipynb" download="">Esercizi su gravity e radiation model (10/04/2025)</a></p>

<p><a href="https://github.com/mattiamazzoli/Teaching/blob/main/slides/mobility_course_lezione2.pdf" download="">Lezione 2: mobilità e impatto sulla diffusione delle epidemie (10/04/2025)</a> <br />
<a href="https://github.com/mattiamazzoli/Teaching/blob/main/mobility_models_worldPoP.ipynb" download="">Esercizi su gravity e radiation model con dati WorldPop (10/04/2025)</a></p>

<p><a href="https://github.com/mattiamazzoli/Teaching/blob/main/arrival_times.ipynb" download="">Lezione 3: Esercizi su arrival times e mobilità aerea(14/04/2025)</a></p>

<p><a href="https://github.com/mattiamazzoli/Teaching/blob/main/slides/mobility_course_lezione4.pdf" download="">Lezione 4: metapopulation models (24/04/2025)</a> <br />
<a href="https://github.com/mattiamazzoli/Teaching/blob/main/metapop_deterministic.ipynb" download="">Esercizi su metapopulation models deterministici (24/04/2025)</a><br />
<a href="https://github.com/mattiamazzoli/Teaching/blob/main/metapop_stochastic.ipynb" download="">Esercizi su metapopulation models stocastici (24/04/2025)</a></p>]]></content><author><name>Mattia Mazzoli</name></author><summary type="html"><![CDATA[]]></summary></entry><entry><title type="html">News</title><link href="https://mattiamazzoli.github.io/2023/02/24/News.html" rel="alternate" type="text/html" title="News" /><published>2023-02-24T00:00:00+01:00</published><updated>2023-02-24T00:00:00+01:00</updated><id>https://mattiamazzoli.github.io/2023/02/24/News</id><content type="html" xml:base="https://mattiamazzoli.github.io/2023/02/24/News.html"><![CDATA[<p><strong>Workshop on Spatial and Mobility data for modeling Outbreaks</strong></p>

<p>I had the pleasure of presenting my work in a public lecture and leading two tutorials sessions on the use of spatial and mobility data for epidemic modeling at the Mahidol University in Bangkok, Thailand with my colleagues at ISI Foundation.</p>

<p><a href="https://www.isi.it/events/2025-06-modeling-infectious-disease-outbreaks-using-genomic-data-workshop/">Here</a> is more info on the topics we covered during this fantastic experience.</p>

<p><img width="400" alt="AMF_2357" src="/assets/images/workshop.jpg" /></p>

<p><strong>Complexity 72h project</strong></p>

<p>I served as a tutor in the 2024 edition of Complexity72h, which took place from 24-28 June 2024 at Carlos III University of Madrid, Spain.
You can see the results of our project <a href="https://arxiv.org/abs/2407.01799">at this link</a>
Visit <a href="https://complexity72h.com">Complexity72h</a> to know more about the workshop!</p>

<p><img width="400" alt="AMF_2357" src="/assets/images/c72.jpg" />
<img width="400" alt="AMF_2357" src="https://complexity72h.com/wp-content/uploads/2023/12/C72h_logo-nero_vector-1024x185.png" /></p>

<p><strong>Most relevant PhD thesis Award</strong></p>

<p>On February 24, 2023, the Spanish National Council of Research (CSIC) awarded me the prize as one of the 20 most relevant PhD thesis from 2021</p>

<p><a href="https://www.csic.es/es/actualidad-del-csic/el-csic-entrega-los-premios-la-mejor-trayectoria-en-la-supervision-de-tesis">CSIC original release</a></p>

<p><img width="400" alt="AMF_2357" src="/assets/images/AMF_2357.jpg" /></p>]]></content><author><name>Mattia Mazzoli</name></author><summary type="html"><![CDATA[Workshop on Spatial and Mobility data for modeling Outbreaks]]></summary></entry><entry><title type="html">Background</title><link href="https://mattiamazzoli.github.io/2023/02/09/Background.html" rel="alternate" type="text/html" title="Background" /><published>2023-02-09T00:00:00+01:00</published><updated>2023-02-09T00:00:00+01:00</updated><id>https://mattiamazzoli.github.io/2023/02/09/Background</id><content type="html" xml:base="https://mattiamazzoli.github.io/2023/02/09/Background.html"><![CDATA[<p>I obtained my Master Degree in Physics of Complex Systems in 2017 at Università degli Studi di Torino, Italy.</p>

<p>In July 2021 I obtained my PhD title in Human Mobility and Physics of Complex Systems at IFISC (Instituto de Física Interdisciplinar y Sistemas Complejos), UIB-CSIC, Palma de Mallorca, Spain.</p>

<p>From 2021 and 2023 I have worked at EPIcx Lab (INSERM-Sorbonne Université), Paris, France, on spatial transmission models with different sources of mobility data.</p>]]></content><author><name>Mattia Mazzoli</name></author><summary type="html"><![CDATA[I obtained my Master Degree in Physics of Complex Systems in 2017 at Università degli Studi di Torino, Italy.]]></summary></entry><entry><title type="html">Workshops</title><link href="https://mattiamazzoli.github.io/2022/10/24/Workshops.html" rel="alternate" type="text/html" title="Workshops" /><published>2022-10-24T00:00:00+02:00</published><updated>2022-10-24T00:00:00+02:00</updated><id>https://mattiamazzoli.github.io/2022/10/24/Workshops</id><content type="html" xml:base="https://mattiamazzoli.github.io/2022/10/24/Workshops.html"><![CDATA[<p>Here is a list of organized workshops</p>

<p><a href="http://urbannet2020.ifisc.uib-csic.es">UrbanNet2020</a> at <em>NetSci2020</em> (Rome - Online)<br />
<a href="https://urbansys2021.ifisc.uib-csic.es">UrbanSys2021</a> at <em>CCS2021</em> (Lyon - France) <br />
<a href="https://urbansys2022.weebly.com">UrbanSys2022</a> at <em>CCS2022</em> (Palma - Spain) <br />
<a href="https://urbansys2023.weebly.com">UrbanSys2023</a> at <em>CCS2023</em> (Rio de Janeiro - Brazil) <br />
<a href="https://urban-sys-net.weebly.com/past-editions.html">UrbanSys2024</a> at <em>CCS2024</em> (Exeter - UK) <br />
<a href="https://urban-sys-net.weebly.com">UrbanSys2025</a> at <em>CCS2025</em> (Siena - Italy)</p>

<p><a href="https://epimob.weebly.com">EpiMob2022</a> at <em>NetSci2022</em> (Beijing - Online) <br />
<a href="https://epimob2023.weebly.com">EpiMob2023</a> at <em>NetSci2023</em> (Vienna - Austria) <br />
<a href="https://epimob.weebly.com/past-editions.html">EpiMob2024</a> at <em>NetSci2024</em> (Quebec City - Canada)<br />
<a href="https://epimob.weebly.com">EpiMob2025</a> at <em>NetSci2025</em> (Maastricht - the Netherlands)</p>

<p><a href="https://europeanmobilitysociety.github.io/symposium/">European Mobility Symposium</a> (ISI, Turin - Italy)</p>

<p><img width="400" alt="" /></p>]]></content><author><name>Mattia Mazzoli</name></author><summary type="html"><![CDATA[Here is a list of organized workshops]]></summary></entry><entry><title type="html">Publications</title><link href="https://mattiamazzoli.github.io/2022/04/03/Publications.html" rel="alternate" type="text/html" title="Publications" /><published>2022-04-03T00:00:00+02:00</published><updated>2022-04-03T00:00:00+02:00</updated><id>https://mattiamazzoli.github.io/2022/04/03/Publications</id><content type="html" xml:base="https://mattiamazzoli.github.io/2022/04/03/Publications.html"><![CDATA[<p>Here is a list of my scientific publications.</p>

<p><strong>2026</strong></p>

<ul>
  <li>
    <p><em><ins>Nontraditional Data in Pandemic Preparedness and Response: Identifying and Addressing First-and Last-Mile Challenges</ins></em><br />
<a href="https://www.jmir.org/2026/1/e85540/">JMIR</a></p>
  </li>
  <li>
    <p><em><ins>Role of behaviour change in controlling the 2022 Paris mpox outbreak</ins></em><br />
<a href="https://www.nature.com/articles/s44360-025-00022-9">Nature Health</a></p>
  </li>
</ul>

<p><strong>2025</strong></p>

<ul>
  <li>
    <p><em><ins>Exploring influenza vaccination determinants through digital participatory surveillance</ins></em><br />
<a href="https://link.springer.com/article/10.1186/s12889-025-22496-8">BMC Pubic Health</a></p>
  </li>
  <li>
    <p><em><ins>Exploring the spatial segmentation of housing markets from online listings</ins></em><br />
<a href="https://epjdatascience.springeropen.com/articles/10.1140/epjds/s13688-025-00551-z">EPJ Data Science</a></p>
  </li>
  <li>
    <p><em><ins>Resilience of mobility network to dynamic population response across COVID-19 interventions: Evidences from Chile</ins></em><br />
<a href="https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1012802">PLOS Computational Biology</a></p>
  </li>
</ul>

<p><strong>2024</strong></p>
<ul>
  <li>
    <p><em><ins>Routes of importation and spatial dynamics of SARS-CoV-2 variants during localised interventions in Chile</ins></em><br />
<a href="https://academic.oup.com/pnasnexus/advance-article/doi/10.1093/pnasnexus/pgae483/7846532">PNAS Nexus</a></p>
  </li>
  <li>
    <p><em><ins>A generalized vector-field framework for mobility</ins></em><br />
<a href="https://www.nature.com/articles/s42005-024-01672-z">Communications Physics</a></p>
  </li>
  <li>
    <p><em><ins>Dispersion patterns of SARS-CoV-2 variants Gamma, Lambda and Mu in Latin America and the Caribbean</ins></em><br />
<a href="https://www.nature.com/articles/s41467-024-46143-9">Nature Communications</a></p>
  </li>
</ul>

<p><strong>2023</strong></p>
<ul>
  <li><em><ins>Spatial immunization to abate disease spreading in transportation hubs</ins></em><br />
<a href="https://www.nature.com/articles/s41467-023-36985-0">Nature Communications</a></li>
</ul>

<p><strong>2022</strong></p>
<ul>
  <li><em><ins>Impact of urban structure on infectious disease spreading</ins></em><br />
<a href="https://www.nature.com/articles/s41598-022-06720-8">Scientific Reports</a></li>
</ul>

<p><strong>2021</strong></p>
<ul>
  <li>
    <p><em><ins>Interplay between mobility, multi-seeding and lockdowns shapes COVID-19 local impact</ins></em><br />
<a href="https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1009326">PLOS Computational Biology</a></p>
  </li>
  <li>
    <p><em><ins>Projecting the COVID-19 epidemic risk in France for the summer 2021</ins></em><br />
<a href="https://academic.oup.com/jtm/advance-article/doi/10.1093/jtm/taab129/6355057?login=true">Journal of Travel Medicine</a></p>
  </li>
  <li>
    <p><em><ins>Unequal housing affordability across European cities. The ESPON Housing Database, Insights on Affordability in Selected Cities in Europe</ins></em><br />
<a href="https://journals.openedition.org/cybergeo/36478">Cybergeo</a></p>
  </li>
</ul>

<p><strong>2020</strong></p>
<ul>
  <li>
    <p><em><ins>Movilidad durante la pandemia - Mobility during the pandemic</ins></em><br />
<a href="https://digital.csic.es/bitstream/10261/229492/1/movilidad.pdf">Academic journal of Health Sciences of the Royal Academy of Medicine of the Balearic Islands</a></p>
  </li>
  <li>
    <p><em><ins>Migrant mobility flows characterized with digital data</ins></em><br />
<a href="https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0230264">PLOS ONE</a></p>
  </li>
</ul>

<p><strong>2019</strong></p>
<ul>
  <li><em><ins>Field theory for recurrent mobility</ins></em><br />
<a href="https://www.nature.com/articles/s41467-019-11841-2">Nature Communications</a></li>
</ul>

<p><strong>2018</strong></p>
<ul>
  <li><em><ins>Agent Based Rumor Spreading in a scale-free network</ins></em><br />
<a href="https://arxiv.org/abs/1805.05999">Arxiv</a></li>
</ul>

<p><strong>2017</strong></p>
<ul>
  <li><em><ins>Equilibria, information and frustration in heterogeneous network games with conflicting preferences</ins></em><br />
<a href="http://iopscience.iop.org/article/10.1088/1742-5468/aa9347/meta">Journal of Statistical Mechanics: Theory and Experiment</a></li>
</ul>]]></content><author><name>Mattia Mazzoli</name></author><summary type="html"><![CDATA[Here is a list of my scientific publications.]]></summary></entry><entry><title type="html">Codes</title><link href="https://mattiamazzoli.github.io/2021/05/15/Codes.html" rel="alternate" type="text/html" title="Codes" /><published>2021-05-15T00:00:00+02:00</published><updated>2021-05-15T00:00:00+02:00</updated><id>https://mattiamazzoli.github.io/2021/05/15/Codes</id><content type="html" xml:base="https://mattiamazzoli.github.io/2021/05/15/Codes.html"><![CDATA[<p>“Field theory for recurrent mobility”, codes to compute the potential and the Gauss theorem are available at this <a href="https://github.com/mattiamazzoli/FieldTheory"><em>link</em></a></p>

<p>“Interplay between mobility, multi-seeding and lockdowns shapes COVID-19 local impact”, code to compute the epidemic epicenter of a region is available at this <a href="https://github.com/mattiamazzoli/EpiCenter"><em>link</em></a></p>

<p>“Migrant mobility flows characterized with digital data”, code to treat Twitter geolocated data to compute yearly migration flows is available at this <a href="https://github.com/mattiamazzoli/Migration"><em>link</em></a></p>]]></content><author><name>Mattia Mazzoli</name></author><summary type="html"><![CDATA[“Field theory for recurrent mobility”, codes to compute the potential and the Gauss theorem are available at this link]]></summary></entry><entry><title type="html">Field Theory</title><link href="https://mattiamazzoli.github.io/2019/09/11/Field-theory.html" rel="alternate" type="text/html" title="Field Theory" /><published>2019-09-11T00:00:00+02:00</published><updated>2019-09-11T00:00:00+02:00</updated><id>https://mattiamazzoli.github.io/2019/09/11/Field-theory</id><content type="html" xml:base="https://mattiamazzoli.github.io/2019/09/11/Field-theory.html"><![CDATA[<p>When I got into the PhD program at IFISC at the end of 2017 I was told I was going to work on Twitter data. 
I was fresh of graduation with a Master thesis on opinion dynamics of political fake news in the US, however, the Twitter data stuff was slightly different.
My initial financial support was a project on human mobility so we would need to do something on this topic.
My first supervisor Jose told me there was a Master student, Alex, who just defended his thesis on using gravity laws to explain commuting in big cities. The work was awesome, but we needed to go deeper to make it publishable. He asked me if I was interested, I read Alex’s thesis, I was in.
It was not what I was expect to work on, but I was sure I was going to learn a lot from this.
It goes without saying, the first approach what tough, days and evenings spent on the calculations to check if the theoretical framework was sound, but that was just the first step. 
The data analysis was exciting and I can still say it’s the part I like the most about my work, even more than writing the paper or making the plots.</p>

<p>However, this yelds lots of days working hard without finding a solution nor advancing. The biggest obstacle was the surface and volume integrals and the integration of the vector field in 2D on the grid. In programming exams at Physics Faculty they teach you a few examples on how to integrate a given curve with trapezes or approximated squares. You sum up the areas and that’s it. But here the problem was different: I had to compute the flux of the field through a circle (or square) of different sizes around a point. And most of all, discretize operators as the curl, the divergence and integrate a vector field on a grid. Who the hell did this before? “Come on, it’s 2017, a lot of people must have done this before”, I thought. I was wrong.
At the beginning of my PhD there was a PostDoc in the Lab, Riccardo, who told me that in his PhD he learned two things “keep it simple” and “if you have two ways to do something, try both”. I had none, or many, i didn’t know, but still I needed to keep it simple.
The scalar product among the vector field and the surface normal vector was the easy thing, the problem was the parametrization. If you want to get the surface integral of a field you need to parametrize your circle. Once you fix the radius R, the integration variable is the angle, but how many steps dθ should you take? 100? 200? 1000? In the analytical approach, like the flux of a field generated by a point charge, this issue gets fixed pretty easily when you realize you can just try to reproduce the results of a few known integrals. By doing this you check how many steps are enough to get a good accuracy.
In the empirical approach you only have vectors placed in a grid and a circle. What do you take as infinitesimal angle dθ? You cannot say “I take 200 steps” when you only have to integrate 50 vectors crossing the surface. The diameter of the cells could be the easiest choice, but it’s not always a good approximation, the dθ may vary depending on how the circle crosses the cell. So basically I decided to be more precise but not to die in the process: I drew the circles I needed, I counted the number of cells N crossed by the cirlce and that did the job. This gives an average dθ for each radius, N is the number of cells you have to go through to sum up the total flux for the given radius R.</p>

<p>The other side of the Gauss’ Theorem is the volume integral. On this side the parametrization was easy, you only have to sum up the areas of the cells enclosed by the volume. But what about the divergence? Discretize operators was basically the hardest part of the job. This was the same for the calculation of the curl and of course for the integration of the empirical and modeled vector fields. I began to search everywhere on the internet how to compute the divergence, the curl and the potential of a vector field in a 2D lattice. I have to say the results where not many. Among these, the understandable ones where few. But at some point I bumped into Hyman, J. M. &amp; Shashkov, M. Natural discretizations for the divergence, gradient, and curl on logically rectangular grids, Ref. 51 of the paper. This saved my life.
When I saw the Gauss Theorem emerging from Figure 2 I felt save. The curl come out right after this, as shown in Figure 3, this was a clear sign. Half of the job was done. But it was not the end.
The field was well behaved and irrotational, we were sure we could get a potential out of it. But who did this before? Lots of people, ok. So where is the algorithm to do this? I didn’t want to spend other three months trying to find a solution.
We had a theoretical framework, but we didn’t have an algorithm in order to get the potential out of our data. Also, the theoretical framework was meant for a continuous space, while we were dealing with a discretized one. It didn’t make much sense to compare two different things and we were trying to do exactly this. The model and the data had to be integrated using the same discrete method.
The method I was using was pretty stupid, but it worked. When you deal with a constant field and you want to get the potential, the integration reduces to multiplying the field vectorial components for the distance. The potential is invariant under summing constants, so you can choose a zero potential point wherever you want and start counting from there. I assumed the field was zero on the borders of the grid and constant inside each cell cause I didn’t have more detailed information on it, so who cares? I had two dimensions, so I had to do the same operation on both axes, possibly at the same time to avoid bad surprises. Parametrize the grid, start from a corner and keep summing up through all the grid. Still, it was not enough. The data is data and since it’s data, the empirical calculation of whatever cannot be perfect. There was noise. Without noise we could just build a system of Differential Equations and solve it. (I tried indeed and I broke the memory of the lab machine). Of course it could not work. Basically we were getting the potential, clearly peaked in the center of the cities, but there was a kind of tail. It was like a shadow produced by a light placed at the corner where I chose to start the recursive integration from. Behind the peak, in the shadow, we were not seeing the correct value of the potential. I showed it to my supervisors. The analogy was pretty accurate. So accurate that we decided to solve it in the same way: put lamps on the other three corners as well. I reparametrized the grid other three times, and I started the integration from the other three corners. So now we had the lights of a football field and if you average the results you get a consistent image of the empirical potential. That was it.</p>

<p>All this meant months of work without advance. This is the most stressful problem of my work, basically I spend the 80% of my work days without advancing and this brings me to wonder what am I doing with my life. I guess this is the same for all the PhD students and the majority of the researchers.
A part from this, my PhD program started filling up with other projects. Some of them have been uploaded to arXiv, others are still stuck in the darkness.
After two years from the first day of work, the paper came out and it made sense of all of those days I went home frustrated.</p>

<p><strong>2019</strong> - <a href="https://www.nature.com/articles/s41467-019-11841-2"><em>Field theory for recurrent mobility</em></a></p>

<p>I still hope nobody makes tricky technical questions when I give talks on this at conferences.</p>]]></content><author><name>Mattia Mazzoli</name></author><summary type="html"><![CDATA[When I got into the PhD program at IFISC at the end of 2017 I was told I was going to work on Twitter data. I was fresh of graduation with a Master thesis on opinion dynamics of political fake news in the US, however, the Twitter data stuff was slightly different. My initial financial support was a project on human mobility so we would need to do something on this topic. My first supervisor Jose told me there was a Master student, Alex, who just defended his thesis on using gravity laws to explain commuting in big cities. The work was awesome, but we needed to go deeper to make it publishable. He asked me if I was interested, I read Alex’s thesis, I was in. It was not what I was expect to work on, but I was sure I was going to learn a lot from this. It goes without saying, the first approach what tough, days and evenings spent on the calculations to check if the theoretical framework was sound, but that was just the first step. The data analysis was exciting and I can still say it’s the part I like the most about my work, even more than writing the paper or making the plots.]]></summary></entry></feed>