How to build a symptom checker and medical diagnose chat bot

I want to build a chatbot which can diagnose an illness depending upon the symptoms which are given to it. I want to show you an example scenario of how it should work;

Application - A , User - U

A) Hello, What is your symptom?

U) Headache

A) How long do you have this symptom? ( System will list possible choices to the user)

U) 3 Months

A) Do you also have photo-affinity? ( System will provide simple "Yes-No-I don't" know choices)

U) Yes

.

.

A) According to your symptoms, you have "migraine".

There are several applications which work in that manner like "Ada Health", "YourMD" and so on.

I want you to show me a way, give me a kick starter where to start. Are there any resources helpful about this topic?

Can you describe briefly, how one would build such a system in terms of machine learning and data science?


After my questions, I want you to show you my way of thinking about how this system can be built. Please give your comments about it as well

Let's say we have a database and there are symptoms - disease wives. Here is the example;

  • Once the user enters a symptom to the system, my algorithm is going to find all of the matched diseases from the database, e.g., "headache" is the entered symptom by the user and the matched diseases with this initial symptom are "migraine", "flu", "cold", "tumor", etc...
  • After that, all of the symptoms which are connected with these new diseases are added to the question queue, e.g., for "flu" match, new questions about "flu" disease will be asked to the user like "Do you have also sneeze?"
  • While the user continues to answer questions, the positive symptoms which user has will be recorded. At the end of the question-answer phase, all of the symptoms which are recorded are going to be used in our machine learning model as the input features.

Does that way of thinking hit the right notes? Thanks in advance for all of the answers.

Topic chatbot decision-trees bigdata data-mining machine-learning

Category Data Science


We built the symptom checker with AI API endlessmedical.

We provide free to download for any use source code of entire symptom checker here:

https://endlessmedical.com/chatbot-like-symptom-checker-free-source-code-download/

Have fun!


Google Dialogflow is an end-to-end, build-once deploy-everywhere development suite for creating conversational interfaces for websites, mobile applications, popular messaging platforms, and IoT devices.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.