Simulaatiopohjainen tasoitettu Bayes-päättely
Heikurinen, Eetu (2026)
Kandidaatintyö
Heikurinen, Eetu
2026
School of Engineering Science, Laskennallinen tekniikka
Kaikki oikeudet pidätetään.
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi-fe20260818118161
https://urn.fi/URN:NBN:fi-fe20260818118161
Tiivistelmä
Tämän kandidaatintyön tavoitteena on tarkastella simulaatiopohjaista tasoitettua Bayes-päättelyä ja sen soveltuvuutta dynaamisten systeemien reaaliaikaiseen analysointiin. Työssä hyödynnetään BayesFlow-viitekehystä, joka perustuu käänteisten neuroverkkojen käyttöön globaalina estimaattorina. Perinteisistä tapauskohtaisista menetelmistä poiketen tasoitetussa Bayes-päättelyssä raskas laskentataakka siirretään offline-koulutusvaiheeseen, minkä jälkeen varsinainen päättely uudesta havaintoaineistosta on lähes välitöntä.
Käytännön sovelluksena työssä simuloidaan epidemiologista SIR-mallia ja estimoidaan sen parametrejä Suomen COVID-19-pandemian alkuvaiheen tartuntadatan perusteella. Neuroverkkoarkkitehtuuri koostuu aikasarjadatan informatiivisia piirteitä poimivasta tiivistysverkosta sekä posteriorijakaumaa approksimoivasta päättelyverkosta.
Tulokset osoittavat, että tasoitettu Bayes-päättely kykenee palauttamaan tartuttavuusasteen poikkeuksellisen tarkasti (r≈0,96), mutta toipumisasteen estimointi on haastavampaa mallin rakenteellisten identifioituvuusongelmien vuoksi. Simulaatiopohjainen kalibrointi ja analyysit vahvistavat, että neuroverkon tuottamat epävarmuusarviot ovat pääosin tilastollisesti luotettavia. Uudelleensimuloinnit osoittavat mallin kykenevän toistamaan reaalimaailman havainnot 95%-uskottavuusvälien sisälle molemmissa testatuissa epidemiatilanteissa. Työ osoittaa tasoitetun Bayes-päättelyn olevan tehokas työkalu tilanteissa, joissa tarvitaan välitöntä ja globaalisti kalibroitua Bayesilaista päättelyä. The objective of this Bachelor’s thesis is to investigate simulation-based amortized Bayesian inference (ABI) and its applicability to the real-time analysis of dynamic systems. The study utilizes the BayesFlow framework, which leverages invertible neural networks to function as global estimators. Unlike traditional case-based methods, ABI shifts the heavy computational workload to an offline training phase, allowing inference on new observed data to be performed near-instantaneously.
As a practical application, the epidemiological SIR model is simulated, and its parameters are estimated based on Finnish COVID-19 infection data from the early stages of the pandemic. The neural network architecture consists of a summary network for extracting informative features from time-series data and an inference network to approximate the posterior distribution.
The results demonstrate that amortized Bayesian inference can recover the transmission rate with exceptional accuracy (r≈0,96), whereas estimating the recovery rate proves more difficult due to inherent structural identifiability issues in the model. Simulation-based calibration and analysis confirm that the uncertainty estimates provided by the neural network are mostly statistically reliable. Posterior predictive checks demonstrate the model’s ability to reproduce real-world observations within 95% credibility intervals in both tested epidemiological scenarios. This work shows that ABI methods are a powerful tool in situations requiring immediate and globally calibrated Bayesian inference.
Käytännön sovelluksena työssä simuloidaan epidemiologista SIR-mallia ja estimoidaan sen parametrejä Suomen COVID-19-pandemian alkuvaiheen tartuntadatan perusteella. Neuroverkkoarkkitehtuuri koostuu aikasarjadatan informatiivisia piirteitä poimivasta tiivistysverkosta sekä posteriorijakaumaa approksimoivasta päättelyverkosta.
Tulokset osoittavat, että tasoitettu Bayes-päättely kykenee palauttamaan tartuttavuusasteen poikkeuksellisen tarkasti (r≈0,96), mutta toipumisasteen estimointi on haastavampaa mallin rakenteellisten identifioituvuusongelmien vuoksi. Simulaatiopohjainen kalibrointi ja analyysit vahvistavat, että neuroverkon tuottamat epävarmuusarviot ovat pääosin tilastollisesti luotettavia. Uudelleensimuloinnit osoittavat mallin kykenevän toistamaan reaalimaailman havainnot 95%-uskottavuusvälien sisälle molemmissa testatuissa epidemiatilanteissa. Työ osoittaa tasoitetun Bayes-päättelyn olevan tehokas työkalu tilanteissa, joissa tarvitaan välitöntä ja globaalisti kalibroitua Bayesilaista päättelyä.
As a practical application, the epidemiological SIR model is simulated, and its parameters are estimated based on Finnish COVID-19 infection data from the early stages of the pandemic. The neural network architecture consists of a summary network for extracting informative features from time-series data and an inference network to approximate the posterior distribution.
The results demonstrate that amortized Bayesian inference can recover the transmission rate with exceptional accuracy (r≈0,96), whereas estimating the recovery rate proves more difficult due to inherent structural identifiability issues in the model. Simulation-based calibration and analysis confirm that the uncertainty estimates provided by the neural network are mostly statistically reliable. Posterior predictive checks demonstrate the model’s ability to reproduce real-world observations within 95% credibility intervals in both tested epidemiological scenarios. This work shows that ABI methods are a powerful tool in situations requiring immediate and globally calibrated Bayesian inference.
