A full-stack AI-driven healthcare platform that allows users to enter symptoms in natural language and receive real-time disease predictions, nearby doctor suggestions, and multilingual health news.
The platform is designed to assist rural communities in finding relevant healthcare information quickly.
- Uses Natural Language Processing (NLP) to analyze user-entered symptoms.
- Built with Scikit-learn, CountVectorizer, and Multinomial Naive Bayes.
- Predicts potential diseases and identifies possible medical emergencies.
- Interactive maps built using Leaflet.js.
- Displays nearby doctors and healthcare facilities based on the user's location and condition.
- Displays latest healthcare news.
- Supports multiple languages (English & Hindi) for wider accessibility.
Frontend
- Next.js 15
- React 19
- TypeScript
- Tailwind CSS
- Shadcn UI
Backend
- Flask
- Python
Machine Learning
- Scikit-learn
- CountVectorizer
- Multinomial Naive Bayes
Make sure you have installed:
- Node.js
- Python 3
Clone the repository:
git clone https://github.com/yourusername/ai-seva.git
cd ai-seva/GramAarogya-masterInstall dependencies:
npm installRun the development server:
npm run devThe frontend will run at:
http://localhost:3000
Open a new terminal and navigate to the project directory:
cd ai-seva/GramAarogya-masterCreate and activate a virtual environment (recommended):
python -m venv venvActivate the environment
Windows:
venv\Scripts\activateMac/Linux:
source venv/bin/activateInstall Python dependencies:
pip install -r requirements.txtRun the backend server:
python backend.pyThe backend API will run at:
http://localhost:5000
The system uses a custom NLP pipeline to classify symptoms and predict diseases.
Contains the training logic using:
- CountVectorizer
- Multinomial Naive Bayes
- Trains the ML model on symptom datasets
- Exports the trained model as:
model.pkl
Evaluates model performance by generating:
- Accuracy score
- F1 score
- Confusion matrix
Contributions are welcome! Feel free to fork the repository and submit pull requests.