An AI-powered disease prediction system that analyzes symptoms to provide potential diagnoses, treatment options, and medical recommendations.
- Symptom Analysis: Advanced parsing and processing of user-reported symptoms
- Predictive Diagnostics: AI-based prediction of potential diseases based on symptom patterns
- Treatment Recommendations: Suggested treatment options based on predicted conditions
- Specialist Referrals: Recommendations for appropriate medical specialists
- Risk Assessment: Evaluation of condition severity and risk levels
- Preventive Measures: Customized prevention tips for identified conditions
-
Clone the repository
git clone https://github.com/yourusername/Track_ur_Health.git cd Track_ur_Health -
Create a virtual environment (recommended)
python -m venv venv # On Windows venv\Scripts\activate # On macOS/Linux source venv/bin/activate
-
Install dependencies
pip install -r requirements.txt
python main.pyThe Gradio interface will be available at link generated
You'll see an interactive interface where you can:
- Enter symptoms separated by commas
- Adjust the number of results you want to see
- Get predictions along with medical recommendations
The repository includes a dataset.csv file ready to use. If you want to use your own dataset, ensure it has the following columns:
| Column Name | Description | Example |
|---|---|---|
| disease | Name of the medical condition | Influenza |
| symptoms | Comma-separated list of symptoms | fever, cough, sore throat, runny nose |
| cures | Comma-separated list of treatments | rest, fluids, antiviral medication |
| doctor | Medical specialists to consult | General Practitioner, Infectious Disease Specialist |
| risk level | Severity of the condition | moderate |
- Preprocessing: Advanced text cleaning, lemmatization, and medical term preservation
- Data Augmentation: Oversampling with variations to improve generalization
- Feature Engineering: TF-IDF vectorization with n-grams and symptom-disease co-occurrence weighting
- Model: Optimized Random Forest classifier with class balancing
- Performance: Evaluated using stratified cross-validation
- Automatic model caching for improved performance
- Advanced symptom parsing and normalization
- Disease grouping for improved prediction accuracy
- Risk level assessment
- Preventive measure generation
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Made with ❤️ for better healthcare



