How amberkakkar01/health-care-chatbot works
Project type and purpose
• This is a Python-based healthcare FAQ chatbot, combining a rule-based “if/then” engine with an ML intent-classification model.
• Purpose: serve 24/7 automated answers to health-related FAQs via a simple GUI or console interface.
File structure
Top-level files and directories:
• Data_Analysis.ipynb – exploratory data analysis (EDA) on heart-disease.csv
• heart-disease.csv – raw dataset used for EDA/training
• intents.json – rule-based intents + responses
• classes.pkl & words.pkl – tokenization / label encoders for the model
• chatbotmodel.h5 & chatbot_model.model/… – persisted TensorFlow/Keras classification model
• training_py.py – script that reads intents.json, heart-disease.csv, builds vocabulary, trains the model, saves .h5/.pb
• chatbot_py.py – main chatbot server logic: loads model, classes, words, handles user input
• gui.py – optional front-end layer (Tkinter or PyQt) for desktop GUI
• MedBot_Working_Model.rar – packaged version of the trained model for distribution
• chat.txt – sample conversation logs
• LICENSE & README.md
README insights
• Emphasizes rule-based keyword flows + well-defined “if/then” logic
• No external cloud microservices—entirely local, Python-driven
Don’t overthink—be exhaustive
• Break the system into all discrete pieces:
• Jupyter Notebook (EDA)
• Training Script
• Model Files
• Tokenizers
• Intent Definitions
• Chatbot Runtime Engine
• UI Layer
• Logs