Code Monkey home page Code Monkey logo

medicaldiagnosisexpertsystem's Introduction

MedicalDiagnosisExpertSystem

**DISCLAIMER**
This project isn't meant to be used as a primary source of medical advice and it is recommended that the user consult a doctor before moving ahead with any decisions. The bot isn't a hundred percent accurate and can make mistakes, so any action taken by
the user without consulting a trained physician is at the users own discretion. The project developers and the project itself are not to be blamed for the decisions taken by the user based on the conversation with the chatbot.

Goal of project

To be able to build a simple expert system which provides medical diagnosis for common ailments. This expert system allows us to handle user input through a chatbot type interface. It takes the symptoms from the user interactively and uses that for predicting the diseases.

Overview

  • Intent Recognition

    • Using Rasa NLU, the “intent” of the user’s input is recognized. This is done using supervised learning system defined in the Rasa Pipeline
  • Model

    • The symptoms given as input are lemmatized so as to make it understandable to the mode and stored in a vector.
    • Using KNN, the model identifies nearby symptoms for the given set of symptoms.
  • Conversation Flow - Stories

    • Conversations are defined as different forms using Stories in Rasa. Using stories, the bot handles responses and checking for intent
  • Bot Memory/Slots

    • This is a mechanism in Rasa that allows the bot to store User responses in memory for use by other actions.
  • Rasa Actions

    • Based on user response and “slot” information collected from previously in the conversation, the bot can take actions such as responding, showing options,etc.

Setup

  • Install the requirements:
$ pip install -r requirements.txt
  • Install Rasa-X
$ pip install rasa-x --extra-index-url https://pypi.rasa.com/simple
  • Download spacy base
$ python -m spacy download en_core_web_md
$ python -m spacy link en_core_web_md en
  • Train the Rasa conversational model
$ rasa train

Run

  1. Run the action server (endpoint)
$ rasa run actions
  1. Start the Rasa X instance to chat with bot
$ rasa x

Output

  1. Initiation of conversation

alt text

  1. Stepping through the conversation

alt text

  1. Providing diagnosis for the symptoms

alt text

medicaldiagnosisexpertsystem's People

Contributors

followcode avatar

Stargazers

 avatar Pradyumna Rahul avatar HîTESH SîNHA avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.