SlideShare a Scribd company logo
1 of 7
状態遷移型流行過程モデルによる
感染症の動向の把握
2020年5月9日
2020 Copyright Iris Lovinson1
感染症流行過程モデル
感染症流行過程をシミュレートするモデルとして
使われるSIRモデルでは下記のような問題が有
る
• 治癒者(I)が再度感受性保持者(S)とならない
• 比例定数で過程が記述されており実態と合わない
- 感染してから何日で治癒するかなど考慮できない
そこで日数で状態遷移するモデルで大まかな動
向を見ることにする
• 治癒した人が再度感受性保持者になる点など、様々
な状態と状態遷移を組み込みやすい
• 感染してから何日で遷移するかなど制御しやすい
• 各遷移単位に年齢属性を入れれば年齢も考慮可能
2020 Copyright Iris Lovinson2
状態遷移型流行過程モデル
感染者は下記のような状態遷移を行うとする
遷移確率は一旦大まかに決定した
未感染者
・市中軽症者
×2/10または未感
染者の少ない方が
市中軽症者へ遷移
(市中軽症者が10日
で2人に感染)
隔離軽症者
4日で3%が重傷者
へ遷移。残りの半分
が治癒免疫保持者
へ遷移、残りが治癒
免疫非保持者へ遷
移
市中軽傷者
3日で3%が隔離継
承者へ遷移
7日で0.1%が重傷
者へ遷移、残りの半
分が治癒免疫保持
者へ遷移、残りが治
癒免疫非保持者へ
遷移
(東京都で1%の10
万人が感染想定、
重傷者は80名隔離
継承者は2400名)
死亡者
遷移しない
治癒免疫保持者
・3ヵ月で未感染者
へ遷移
治癒免疫非保持者
・次の日に100%の
確率で未感染者へ
遷移
出生者
・常に90万/365人
・100%の確率で未
感染者に遷移
(今回は考慮なし)
重傷者
21日で50%が死亡
者へ遷移
25%が治癒免疫保
持者へ遷移
25%が治癒免疫非
保持者へ遷移
2020 Copyright Iris Lovinson3
シミュレーション結果
免疫保持者が増えた際に感染が抑えられる様
子や再感染の様子がシミュレーションできている
再感染
2020 Copyright Iris Lovinson4
まとめ
治癒した人が免疫を失い、再感染する様子をシ
ミュレーションすることができた
状態遷移に年齢やロックダウンといった条件を
考慮するなど、より精緻に状態や状態遷移を決
めることで、より精緻なシミュレーションが実現で
きる
上記より、状態遷移モデルは感染症流行過程の
シミュレーションとして優れたポテンシャルを持っ
ていると考える
2020 Copyright Iris Lovinson5
参考ソースコード
package com.samurai.StateTransferModelOfEpidemics;
import java.lang.Math;
public class StateTransferModelOfEpidemics {
/**
* @param args
*/
public static void main(String[] args) {
// 初期化:1億2千万人の未感染者を用意
int homoSapiensNumber=12000*10000;//1
億2千万人
HomoSapiens[] homoSapiens = new
HomoSapiens[homoSapiensNumber];
for(int i=0;i<homoSapiensNumber;i++){
homoSapiens[i]=new HomoSapiens(1,0,0);
}
// 初期感染
int initialInfectedNumber=100;
for(int i=0;i<initialInfectedNumber;i++){
homoSapiens[i].setInfectionState(2);
}
// 時間遷移と出力
int elapseTime=365*5;
System.out.println("日付t0:出生者t1:未感
染者t2:市中軽症者t3:隔離軽症者t4:重傷者t5:死亡者t6:治癒免疫保持者t7:治癒免疫非保持者");
System.out.println(
"0"+"t"+
homoSapiens[0].stateNumber[0]+"t"+
homoSapiens[0].stateNumber[1]+"t"+
homoSapiens[0].stateNumber[2]+"t"+
homoSapiens[0].stateNumber[3]+"t"+
homoSapiens[0].stateNumber[4]+"t"+
homoSapiens[0].stateNumber[5]+"t"+
homoSapiens[0].stateNumber[6]+"t"+
homoSapiens[0].stateNumber[7]
);
for(int t=0;t<elapseTime;t++){
for(int i=0;i<homoSapiensNumber;i++){
homoSapiens[i].transferInfectionState();
}
System.out.println(
t+1+"t"+
homoSapiens[0].stateNumber[0]+"t"+
homoSapiens[0].stateNumber[1]+"t"+
homoSapiens[0].stateNumber[2]+"t"+
homoSapiens[0].stateNumber[3]+"t"+
homoSapiens[0].stateNumber[4]+"t"+
homoSapiens[0].stateNumber[5]+"t"+
homoSapiens[0].stateNumber[6]+"t"+
homoSapiens[0].stateNumber[7]
);
}
}
}
/*
* infectionStateCDとinfectionStateの対応表メモ
* 0:出生者
* 1:未感染者
* 2:市中軽症者
* 3:隔離軽症者
* 4:重傷者
* 5:死亡者
* 6:治癒免疫保持者
* 7:治癒免疫非保持者
*/
class HomoSapiens{
public int infectionStateCD;
public int elapsedDays;
public static int stateNumber[]=new int[8];//各状態の全体の人数
HomoSapiens(int i,int j,int k){
infectionStateCD=i;
elapsedDays=0;
stateNumber[infectionStateCD]++;
}
void recetElapsedDays(){
elapsedDays=0;
}
int getElapsedDays(){
return elapsedDays;
}
void setElapsedDays(int i){
elapsedDays=i;
}
void addOneElapsedDays(int i){
elapsedDays++;
}
void recetInfectionState(){
stateNumber[infectionStateCD]--;
infectionStateCD=1;
stateNumber[infectionStateCD]++;
}
int getInfectionStateCD(){
return infectionStateCD;
}
void setInfectionState(int i){
stateNumber[infectionStateCD]--;
infectionStateCD=i;
stateNumber[infectionStateCD]++;
}
int getUnInfectedNumber(int i){
return stateNumber[i];
}
void setunInfecedNumber(int i,int j){
stateNumber[i]=j;
}
void transferInfectionState(){
double randomNumber=Math.random();
stateNumber[infectionStateCD]--;
int initialCD=infectionStateCD;
if (infectionStateCD==0)
infectionStateCD=1;
else
if(infectionStateCD==1&&randomNumber<stateNumber[2]*2.0/10.0/stateNumber[1])
infectionStateCD=2;
else
if(infectionStateCD==2&&elapsedDays==3&&randomNumber<0.03)
infectionStateCD=3;
else
if(infectionStateCD==2&&elapsedDays==7&&randomNumber<0.001)
infectionStateCD=4;
else
if(infectionStateCD==2&&elapsedDays==7&&randomNumber<0.5)
infectionStateCD=6;
else
if(infectionStateCD==2&&elapsedDays==7)
infectionStateCD=7;
else
if(infectionStateCD==3&&elapsedDays==4&&randomNumber<0.03)
infectionStateCD=4;
else
if(infectionStateCD==3&&elapsedDays==4&&randomNumber<0.5)
infectionStateCD=6;
else
if(infectionStateCD==3&&elapsedDays==4)
infectionStateCD=7;
else
if(infectionStateCD==4&&elapsedDays==21&&randomNumber<0.5)
infectionStateCD=5;
else
if(infectionStateCD==4&&elapsedDays==21&&randomNumber<0.75)
infectionStateCD=6;
else
if(infectionStateCD==4&&elapsedDays==21)
infectionStateCD=7;
else
if(infectionStateCD==6&&elapsedDays==90)
infectionStateCD=1;
else if(infectionStateCD==7)
infectionStateCD=1;
else{
}
stateNumber[infectionStateCD]++;
if(initialCD!=infectionStateCD){
elapsedDays=0;
}
elapsedDays++;
}
/*
* infectionStateCDとinfectionStateの対応表メモ
* 0:出生者
* 1:未感染者
* 2:市中軽症者
* 3:隔離軽症者
* 4:重傷者
* 5:死亡者
* 6:治癒免疫保持者
* 7:治癒免疫非保持者
*/
}
2020 Copyright Iris Lovinson6
状態遷移型流行過程モデルによる感染症の動向の把握

More Related Content

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

状態遷移型流行過程モデルによる感染症の動向の把握