Welcome to the HealthCare ChatBot v2 repository! This project is an intelligent healthcare assistant capable of predicting diseases based on user symptoms and providing relevant descriptions, precautions, and advice. The chatbot uses machine learning algorithms for disease prediction and integrates a user-friendly graphical user interface (GUI) for interaction.
- Symptom-based Disease Prediction: Users can input symptoms, and the chatbot predicts the most likely disease.
- Disease Description: Provides a brief explanation of the predicted disease.
- Precautionary Measures: Suggests precautions to manage or prevent the condition.
- Speech Feedback: Integrates
pyttsx3
to provide spoken feedback to the user. - Interactive GUI: Uses
Tkinter
for a simple and intuitive interface.
- Programming Language: Python
- Libraries:
pandas
for data manipulationnumpy
for numerical computationsscikit-learn
for machine learningpyttsx3
for text-to-speech synthesistkinter
for GUI
Ensure you have Python 3.7 or above installed on your system. Install the required libraries by running:
pip install pandas numpy scikit-learn pyttsx3
Health-Care-chatbot-v2/
|
├── Data/
│ ├── Training.csv # Training dataset
│ ├── Testing.csv # Testing dataset
│
├── MasterData/
│ ├── symptom_Description.csv # Disease descriptions
│ ├── symptom_severity.csv # Symptom severity scores
│ ├── symptom_precaution.csv # Precautionary measures for diseases
│
├── main.py # Main script for the chatbot
├── README.md # Project documentation
Follow these steps to set up and run the project:
-
Clone the Repository:
git clone https://github.com/adarshpheonix2810/Health-Care-chatbot-v2.git cd Health-Care-chatbot-v2
-
Install Dependencies:
pip install pandas numpy scikit-learn pyttsx3
-
Prepare Data:
- Ensure the following files are placed in the respective directories:
Data/Training.csv
(training data for the model)Data/Testing.csv
(testing data for validation)MasterData/symptom_Description.csv
(disease descriptions)MasterData/symptom_severity.csv
(severity of symptoms)MasterData/symptom_precaution.csv
(precautionary measures)
- Ensure the following files are placed in the respective directories:
-
Run the Application:
python healthcare_chatbot_gui.py
-
Interact with the ChatBot:
- Enter symptoms in the GUI as comma-separated values (e.g., "fever, headache, nausea").
- View the predicted disease, its description, and precautionary measures.
- Listen to the chatbot’s spoken feedback.
- Enter symptoms like
fever, headache, nausea
in the input box. - Click the "Predict Disease" button.
- The chatbot predicts the disease (e.g., "Dengue") and provides the following:
- Disease description
- Precautionary measures
- The chatbot also reads the results aloud using text-to-speech.
- Uses a
DecisionTreeClassifier
to train the model onTraining.csv
. - Encodes disease labels using
LabelEncoder
for numerical processing.
- The chatbot GUI is implemented using
Tkinter
. - Users interact via input boxes and buttons to receive predictions and advice.
pyttsx3
provides spoken feedback for the disease prediction and related information.
Contributions are welcome! Feel free to submit issues or pull requests to enhance the functionality or fix bugs.
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch
- Make changes and commit them:
git commit -m "Add new feature"
- Push to the branch:
git push origin feature-branch
- Open a pull request.
- Integration of more advanced machine learning models for improved accuracy.
- Deployment as a web application.
- Addition of support for voice-based symptom input.
- Enhanced visualization of predictions and data insights.
This project is licensed under the MIT License. See the LICENSE file for more details.
For any queries or feedback, feel free to reach out:
- GitHub: adarshpheonix2810
- Email: [adarshsingh786000@gmail.com]
Thank you for exploring HealthCare ChatBot v2! Your health is our priority.