Coder Social home page Coder Social logo

rajratnpranesh / clean_path_aqi Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 18.01 MB

Project ‘Clean Path’ which uses IoT and Artificial Intelligence to create a map which optimizer pollution level and traffic on the based and on the basis of that provide the most optimum path balancing both environmental and traffic factor while suggesting a route. Working prototype gave accuracy of 84.24%.

Python 73.21% Tcl 23.97% PowerShell 1.47% Batchfile 1.35%

clean_path_aqi's Introduction

Automated-Medical-Assistance:

This repo contains the code for our paper: Automated Medical Assistance: Attention Based Consultation System (https://openreview.net/forum?id=jYV4ZXy0L5 "PDF")

Authors

With so many possibilities of disease and disorders, there had been a surge in demand for medical assistance. Although there are a number of well-practiced physicians and doctors, the inability to reach has always been a concern to many diseased ones. To fill this gap, we propose a model based on deep learning methods, a conversational dialogue system that is able to provide better medication during the need of such and is able to answer any queries related to one’s health. We use the medical assistance dataset scraped from websites containing professional assistance via a conversation system. We also tend to use the trending transformers trained on large datasets, for text generation like BERT, GPT2, and BART. We also performed a comparative study of models and based on the analysis, the results shows that BART model generates a doctor-like response and contains clinically informative data. The overall generated results were very promising and show that pre-trained transformers are reliable for developing automated medical assistance system and doctorlike-treatments.

This repository contains python scripts used for the analysis on a research for EMNLP workshop(ClinicalEMNLP). The research provides a technique to adapt the methods of deep-learning with transfer-learning for a dialogue system which uses transformers like BERT, GPT ,and BART to generate informative dialogues, easy to understand and familiar to human-like conversations. It has been trained on datasets containing interactions between patients and doctors.

Methods

We have used three main transformers-BERT, GPT, and BART; for the analysis. Architecture and training used with BERT and GPT are same where we have used huggingface-transformers packages, to built the script, whereas we have constructed a wrapper class for BART to get access to the encoder and decoder of the BART, and also a linear layer for linear transformation from the decoder layer. For more information go through my paper.

Testing

You can test the scripts from this repo on this data. To test the repo, follow the steps:

  • Run this command in the command-line/command-prompt,pip install -r requirements.txtThis will download the required packages neccesary to run the program
  • Next go to the Model's(BERT,GPT,BART) directory you want to test.
  • First run the preprocess.py, this will generate a json file containing interactions between patient and doctors, and sliced data into training, validation and testing dataset.
  • Second, run the train.py, this will update the weights of the model for the required dataset.
  • To calculate the perplexity score on each data(train, validation, test) run calculate_perplexity.py. This will calculate the perplexity score for each data based on your updated model's parameters.
  • To generate response and calculate BLEU, NIST, DIST, METEOR, Entropy ,and Average length generated run generate_text.py.

References

clean_path_aqi's People

Contributors

rajratnpranesh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.