Chatbor Report (Covid19)
Chatbor Report (Covid19)
The success and final outcome of this project required a lot of guidance and assistance from
many people and I am extremely privileged to have got this all along the completion of my
project. All that I have done is only due to such supervision and assistance and I would not
forget to thank them.
I respect and thank Mr. Ashish Daniel (Director) for providing me an opportunity to do the
project work in GEMS Polytechnic College, and giving us all support and guidance, which made
me complete the project duly. I am extremely thankful to him for providing such a nice support
and guidance, although he had busy schedule managing the corporate affairs.
I owe my deep gratitude to our project guide MR. Anand, who took keen interest on our
project work and guided us all along, till the completion of our project work by providing all the
necessary information for developing a good system.
I would not forget to remember Mr. Ram Gopal (PRINCIPAL) of GEMS Polytechnic College for
their encouragement and more over for their timely support and guidance till the completion of
our project work.
I heartily thank our internal project guide, Mr. Ranjit, HOD, (Computer Science) for his guidance
and suggestions during this project work.
I am thankful to and fortunate enough to get constant encouragement, support and guidance
from all Teaching staffs of Computer Science Department which helped us in successfully
completing our project work.
1|Pa g e
Table of Contents
2|Pa g e
Introduction
In our project we explore how a chatbot can give information to students about
Covid-19 information. In the first iteration of the project we created a chatbot for giving
student’s information about the basic Knowledge of Corona Virus.
One of our hypotheses was that information given by chatbots would be useful for student
who doesn’t know about Covid -19, giving them information about awareness of Covid -19
that we consider to be important when you’re a student.
In the second iteration we wanted to explore the use of chatbots through theory and used
this in combination with testing to learn more about how a chatbot for this context should
be. In the final iteration, iteration three, we improved and changed the chatbot based on the
results from the last iteration and made a plan for evaluate the chatbot. The plan was then
executed with four participants. In our conclusion we discuss the results from the evaluation
in the light of our research question.
We Designed a Web Application where our Chatbot can run. We have named this chatbot as
Mark the Covid -19 Chatbot. We used Purely Python and some concepts of Machine Learning
and Artificial Intelligence. We also collected some important Data From WHO and other heath
Organizations to create our own models.
3|Pa g e
Problem Statement.
Private and public entities around the world, particularly in the health care and governance
sectors, are developing and deploying a range of artificial intelligence (AI) systems in emergency
response to COVID-19. Some of these systems work to track and predict its spread; others
support medical response or help maintain social control. Indeed, AI systems can reduce strain
on overwhelmed health care systems; help save lives by quickly diagnosing patients, and
assessing health declines or progress; and limit the virus’s spread.
But there’s a problem: The algorithms driving these systems are human creations, and as such,
they are subject to biases that can deepen societal inequities and pose risks to businesses and
society more broadly. In this article, we look at data on the pandemic, share two recent
applications of AI, and suggest a number of ways nonprofit and business leaders can help ensure
that they develop, manage, and use transformative AI equitably and responsibly.
Using technical frameworks, such as machine learning, AI systems use algorithms to make
inferences from data about people. This includes demographic attributes, preferences, and likely
future behaviors. To effectively serve a range of populations, AI systems must learn to make
associations based on massive amounts of data that accurately reflect information across
identities.
However, the data they rely on is often rife with social and cultural biases. Data might not exist
for certain populations, may exist but be poor quality for certain groups, and/or reflect inequities
in society. As a result, algorithms can make inaccurate predictions and perpetuate social
stereotypes and biases.
Unfortunately, much of the data about COVID-19 that the US Center for Disease Control and
Prevention (CDC) and others are collecting and tracking is incomplete and biased. COVID-19
infection rates, for example, have been subject to a “vast undercount,” by a factor of 50 or more.
Medical data is reflecting only a subset of the population—in many cases, the affluent, white
communities who have ready access to limited tests and expensive medical procedures.
4|Pa g e
System Requirements and Specification
We need some System Requirements to Run this Project. There are two entities which we need
to take care of:
1) Software Requirements:
2) Hardware Requirements:
5|Pa g e
System Setup.
Step one in creating a chatbot in Python with the ChatterBot library is to set up the library
in your system. It’s best in the event you create and use a new Python digital setting for the set
up. To take action, you might have to write and execute this command in your Python terminal:
If you want to improve the command, you are able to do in order properly:
Now that your setup is prepared, we will transfer on to the subsequent step to create chatbot
utilizing python.
2. Import Courses
Importing lessons is the second step in the Python chatbot creation course of. All you want to do
is import two lessons – Chatbot from chatterbot and List Trainer from chatterbot.trainers. To do
that, you possibly can execute the next command:
The chatbot you’re creating shall be an occasion of the category “Chatbot.” You will have to
execute the next command now:
6|Pa g e
Right here, the argument (that corresponds to the parameter identify) represents the identify of
your Python chatbot. If you want to disable the bot’s potential to study after the coaching, you
possibly can embrace the “read-only=True” command. The command “logic_adapters” denotes
the listing of adapters used to prepare the chatbot.
Whereas the “chatterbot.logic.MathematicalEvaluation” helps the bot to remedy math issues, the
“chatterbot.logic.BestMatch” helps it to select the most effective match from the listing of
responses already offered.
Since you might have to present a listing of responses, you are able to do it by specifying the lists
of strings that may be later used to prepare your Python chatbot, and discover the most effective
match for every question. Right here’s an instance of responses you possibly can prepare your
chatbot to study:
7|Pa g e
You too can create and prepare the bot by writing an occasion of “ListTrainer” and supplying it
with a listing of strings like so:
To work together along with your Python chatbot, you should use the .get_response() perform.
That is the way it ought to look whereas speaking:
Nevertheless, it’s important to perceive that the chatbot won’t know the way to reply all of your
questions. Since its information and coaching remains to be very restricted, you might have to
give it time and supply extra coaching knowledge to prepare it additional.
8|Pa g e
5. Practice your Python Chatbot with a Corpus of Knowledge
On this final step of how to make a chatbot in Python, for coaching your python chatbot even
additional, you should use an current corpus of knowledge. Right here’s an instance of how to
prepare your Python chatbot with a corpus of knowledge offered by the bot itself:
9|Pa g e
Source Code of the Project
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Mark</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
<!-- partial:index.partial.html -->
<section class="msger">
<header class="msger-header">
<div class="msger-header-title">
<i class="fas fa-bug"></i>Mark(Covid-19 Chatbot)<i class="fas fa-bug"></i>
</div>
</header>
<main class="msger-chat">
<div class="msg left-msg">
<div class="msg-img" style="background-image:
url(https://image.flaticon.com/icons/svg/327/327779.svg)"></div>
<div class="msg-bubble">
<div class="msg-info">
<div class="msg-info-name">Mark</div>
</div>
<div class="msg-text">
Hi, I am Mark! Go ahead and ask something about Covid-19.
�
</div>
10 | P a g e
</div>
</div>
</main>
<form class="msger-inputarea">
<input type="text" class="msger-input" id="textInput" placeholder="Enter your
message...">
<button type="submit" class="msger-send-btn">Send</button>
</form>
</section>
<!-- partial -->
<script src='https://use.fontawesome.com/releases/v5.0.13/js/all.js'></script>
<script>
11 | P a g e
</div>
<div class="msg-text">${text}</div>
</div>
</div>
`;
msgerChat.insertAdjacentHTML("beforeend", msgHTML);
msgerChat.scrollTop += 500;
}
function botResponse(rawText) {
// Bot Response
$.get("/get", { msg: rawText }).done(function (data) {
console.log(rawText);
console.log(data);
const msgText = data;
appendMessage(BOT_NAME, BOT_IMG, "left", msgText);
});
// Utils
function get(selector, root = document) {
return root.querySelector(selector);
}
function formatDate(date) {
const h = "0" + date.getHours();
const m = "0" + date.getMinutes();
return `${h.slice(-2)}:${m.slice(-2)}`;
}
</script>
</body>
</html>
12 | P a g e
b. Back-end Development:
Chatbot.py:
trainer = ListTrainer(chatbot)
trainer.train(training_data)
13 | P a g e
)
CSS:
14 | P a g e
System Implementation and Testing
Implementation
Testing
15 | P a g e
Sample Screen
• Installing Libraries
16 | P a g e
• Running Flask and Chatbot
17 | P a g e
18 | P a g e
Conclusion
19 | P a g e