Data Analysis and Visualization of COVID-19 Epidemic Based On Python
Data Analysis and Visualization of COVID-19 Epidemic Based On Python
ISSN No:-2456-2165
Abstract:- The new coronavirus pneumonia (COVID-19) COVID-19 epidemic, and is proposed based on this
that broke out at the end of 2019 was designated by the background.
World Health Organization (WHO) as an "emergency
public health event of international concern." In the b) Meaning
process of epidemic prevention and control, big data and The new crown epidemic spread rapidly to more than 200
Internet technology have played an important role in the countries and regions around the world within a few months,
collection, analysis, and release of epidemic data. The and as of the beginning of June, there have been more than 6
purpose of the project is to implement a Python-based data million patients. China has achieved full control of the
analysis and visualization program for the COVID-19 epidemic in May, and a number of response measures are
epidemic. The thesis displays the epidemic situation and worthy of promotion. In the information age, with the help of
transmission characteristics of the existing data through a big data and artificial intelligence technology, it is possible to
visualization scheme, establishes a dynamic model of quickly establish an effective system and mechanism for
infectious diseases, evaluates the prevention and control responding to public health emergencies. Its intuitive and
measures of the epidemic situation, and makes effective data analysis methods and artificial intelligence
recommendations and early warnings. In addition, to a visualization methods have played a pivotal role.
certain extent, it can predict the trend of epidemic diseases
and provide reference for epidemic prevention and control The topic is based on prediction models such as SEIR,
decisions and public behavior. taking the data of COVID-19 epidemic in Hubei Province as
an example, preliminary analysis of the general law of
Keywords:- Novel coronavirus pneumonia; COVID-19; COVID-19 epidemic, and a prediction analysis. From the
Python; data analysis; data visualization. perspective of the prevention and control process of the new
crown epidemic, studying the occurrence, development, and
I. INTRODUCTION evolution of the epidemic from a macro perspective, and
predicting and analyzing it based on big data, are of great
A. Subject Background and Significance
significance to the strategic decision-making of large-scale
a) Background
prevention and control of infectious diseases and maintaining
Pneumonia caused by a new type of coronavirus was
social order and stability.
discovered in Wuhan, Hubei in December 2019, and it is
showing a trend of rapid spread. On February 7, 2020, the B. Current Research Status at Home and Abroad
National Health Commission (PRC) named it "New In the early stage of the outbreak, many scholars tried to
Coronavirus Pneumonia", or "New Coronary Pneumonia" for study and analyze the development trend of the new crown
short. On February 11, 2020, the International Commission for epidemic through the infectious disease dynamic model.
Classification of Viruses (ICTV) named the virus Severe
Acute Respiratory Syndrome Coronavirus 2 (SARS-CoV-2); In January of this year, many scholars predicted the
on the same day, the World Health Organization (WHO) The epidemic. Wu, a scholar from Hong Kong, China, used the
disease it caused was named Coronavirus Disease 2019 number of people infected before January 28 to calculate the
(COVID-19). In 2020, the new crown pneumonia epidemic trend of the epidemic in Wuhan. They predict that the number
has broken out one after another around the world, which has of infections on January 25 will exceed 6,000. Professor Shen
extremely serious impacts on the global economy and society, and others from Xi’an Jiaotong University estimated that the
and has caused great troubles to human health and life [1]. number of SARS-CoV-2 infections will not exceed SARS-
CoV-2 based on the existing epidemiological data and
In various aspects of epidemic prevention and control, infectious disease dynamic models, and with reference to
apart from the effective measure of isolation, scientific SARS and other coronaviruses. 20,000 people, but this is
popularization of daily epidemic prevention and control lower than the epidemic data released on February 7, which
knowledge, timely release of epidemic transmission and obviously underestimates the infectiousness of the new
infection data, etc., can enable the public to understand the coronavirus. Professor Xiao from Xi’an Jiaotong University
epidemic in a timely manner, take reasonable response established an infectious disease dynamics model based on
measures, and avoid panic. The occurrence of bad domestic and foreign research on the transmission mechanism
consequences caused by spread. The collection, sorting, of the new coronavirus, based on strict tracking and isolation
analysis, and visualization of data can be completed well with measures. The risk of transmission of the new coronavirus
the help of big data technology. This topic is based on the pneumonia was predicted and analyzed, and the mission will
Python-based data analysis and visualization program of the reach the peak of the epidemic in February. However, the
print(context)
return context
legend_opts=opts.LegendOpts(is_show=True),) areastyle_opts=opts.AreaStyleOpts(opacity=0.5,
.set_series_opts( .add_yaxis("Hubei", area_data('Hubei', value_),
is_smooth=True,
tooltip_opts=opts.TooltipOpts(
areastyle_opts=opts.AreaStyleOpts(opacity=0))
trigger="item", formatter="{a} <br/>{b}: {c} ({d}%)"
.add_yaxis("Wuhan", area_data('Wuhan', value_),
))
is_smooth=True,
b) National Epidemic Map
The national epidemic map can clearly reflect the areastyle_opts=opts.AreaStyleOpts(opacity=0))
distribution of the epidemic. The more cumulatively
confirmed cases, the heavier the regional color. .set_series_opts(label_opts=opts.LabelOpts(is_show=Fal
se))
The core code is as follows:
_map = ( .set_global_opts(
visualmap_opts=opts.VisualMapOpts(is_show=True, geo = (
max_=1000,
Geo(init_opts=opts.InitOpts(theme='dark'))
is_piecewise=False,
.add_schema(maptype="china", zoom=1)
range_color=['#FFFFE0', '#FFA07A', '#CD5C5C',
.add("Current confirmed number",
'#8B0000'])
[(key_, value_['currentConfirmedCount']) for key_,
)
value_, in format_data[day].items()
)
if key_ in pyecharts.datasets.COORDINATES.keys() and
c) Trend map of cumulative diagnoses nationwide
value_['is_city'] == 1],
The nationwide cumulative diagnosis trend map can
intuitively reflect the development trend of the epidemic, and
type_='heatmap',
IV. CONCLUSION
V. ACKNOWLEDGMENT