Research Article

Towards Public Opinion Digital Twin: A Conceptual Prototype

Table 2

Precise replication of physical objects.

Algorithm 1 precise replication of physical objects simulation model
Input: dynamic variables such as participants DYN_VAR, Static resources that affect variables STA_RES.
Output: affected results, such as the participant behaviors after an event AFF_RES.
1: //Step 1. Collecting data information
for each both offline events and online events, corresponding influencing factors do
2:  Prepare input variables;
3:  Start a crawler using input variables;
4:  Crawl data and save to temporary variables;
5:  Assignment of temporary variables to global variables DYN_VAR, STA_RES;
6: end for
7: //Step 2. Generating flow charts
for each different administrative actions do
8:  for each various participant movement paths do
9:   Design flowcharts to describe the relevant paths and the environment in which they occur;
10:  end for
11: end for
12: //Step 3. Get results
if successfully track variables then
13:  Input impact factor;
14:  Monitoring the evolving status;
15:  Estimating coping strategies;
16:  Store the affected entity objects AFF_RES;
17: end if