The Medical AI Chatbot is a machine learning-based application designed to provide users with instant medical information and assistance. By leveraging advanced natural language processing (NLP) techniques and deep learning models, this chatbot can understand and respond to a wide range of medical-related queries with accuracy and relevance.
-
Natural Language Processing (NLP):
- Implemented using NLTK, the chatbot preprocesses and lemmatizes user input to accurately interpret and respond to queries.
- The text data is tokenized and structured, allowing the chatbot to process the information efficiently and understand the intent behind user queries.
-
Intent Classification:
- The chatbot utilizes a custom
intents.jsondataset, which categorizes medical conditions, symptoms, and related queries into specific intents such as "Diabetes" and "Flu." - Text data is converted into numerical vectors using Bag of Words (BoW) and TF-IDF techniques, facilitating precise intent classification by the deep learning model.
- The chatbot utilizes a custom
-
Deep Learning Model:
- Built with TensorFlow and Keras, the model is trained to classify user intents based on their queries.
- The model architecture includes dense layers with ReLU activation and a softmax layer for multi-class classification, ensuring accurate and contextually relevant responses.
-
Model Deployment:
- The trained model is saved and deployed using Keras, allowing for real-time predictions within the chatbot application.
- The chatbot interacts with users through a command-line interface (CLI), providing instant medical advice based on the predicted intent.
- Natural Language Processing: NLTK
- Machine Learning: TensorFlow, Keras
- Data Manipulation: NumPy, Pandas
- Data Storage: JSON
- Model Deployment: Python, Pickle
- Python 3.6 or higher
- Pip package manager
- Clone the repository:
git clone https://github.com/HetP1742431/Medical-AI-Chatbot.git cd Medical-AI-Chatbot - Install the required Python packages:
pip install -r requirements.txt
- Run the chatbot:
python chatbot.py
- The chatbot will prompt you to enter a medical-related query (e.g., "What should I do if I have a headache?").
- Based on the input, the chatbot will respond with relevant medical advice using the trained model to predict the intent and provide an appropriate response.
- Developed expertise in NLP techniques, particularly in text preprocessing, tokenization, and lemmatization.
- Gained experience in building and training deep learning models for intent classification using TensorFlow and Keras.
- Improved my understanding of deploying machine learning models into real-time applications and integrating them with user interfaces.
- Enhanced problem-solving skills through the challenges of debugging and optimizing NLP pipelines and machine learning models.
This project significantly contributed to my growth as a software engineer and machine learning practitioner, equipping me with the skills to develop and deploy intelligent systems that meet real-world needs.
- Live Demo Video: Demo video.