AI-Powered-Healthcare-Intelligence-Network
<p align="center"> <a href="https://github.com/AbhaySingh71/AI-Powered-Healthcare-Intelligence-System"> <img src="https://img.shields.io/github/stars/AbhaySingh71/AI-Powered-Healthcare-Intelligence-System?style=social" alt="GitHub Stars"> </a> <a href="https://hub.docker.com/r/abhaysingh71/ai-powered-healthcare-system"> <img src="https://img.shields.io/docker/pulls/abhaysingh71/ai-powered-healthcare-system" alt="Docker Pulls"> </p> <h1 align="center">π©Ί AI-Powered Healthcare Intelligence Network</h1> <p align="center"> <strong>Revolutionizing Healthcare with AI-Driven Predictions, Recommendations, and Insights, Medibot(RAG)</strong> <br>  </p> --- <h2>π About This Project</h2> <p> The <strong>AI-Powered Healthcare Intelligence Network</strong> is a cutting-edge platform that leverages Machine Learning (ML) and Natural Language Processing (NLP) to provide accurate disease predictions, personalized medical recommendations, and AI-assisted drug suggestions. The system aims to enhance early diagnosis, reduce medical errors, and offer intelligent healthcare solutions. </p> https://github.com/user-attachments/assets/360876dc-551a-498b-ab75-472137fed751 <h2>π Features</h2> <h3>π‘ Disease Prediction & Medical Recommendation</h3> <p> This module uses <strong>Machine Learning</strong> to predict diseases based on symptoms and suggest the best medical recommendations. </p> <ul> <li>β Predicts diseases based on symptoms provided by the user.</li> <li>β Uses <strong>RandomForest Classifier</strong> for predictions.</li> <li>β Provides recommended treatments and precautions.</li> <li>β Provides medical descriptions, precautions, medication suggestions, and diet recommendations**.</li> </ul> |  |  | |---------------------------------|---------------------------------| <h3>π AI-Powered Drug Recommendation</h3> <p> Our AI system uses <strong>NLP & Cosine Similarity</strong> to recommend alternative medicines based on drug properties. </p> <ul> <li>β AI-powered alternative medicine finder.</li> <li>β Utilizes **NLP & cosine similarity** for **accurate drug matching**</li> <li>β Matches medicines with similar ingredients.</li> <li>β Ensures safer and more effective drug prescriptions.</li> </ul> |  |  | |---------------------------------|---------------------------------| <h3>πͺ Heart Disease Risk Assessment</h3> <p> This module uses <strong>LightGBM & AI classifiers</strong> to assess heart disease risks based on patient history. </p> <ul> <li>β Evaluates heart disease risk based on lifestyle and medical history.</li> <li>β Uses machine learning models (LightGBM, EasyEnsemble) for predicting heart disease risk. </li> <li>β Takes inputs like age, BMI, smoking habits, medical history, etc.</li> <li>β Provides a **personalized heart risk score with AI-driven recommendations**</li> </ul> |  |  | |---------------------------------|---------------------------------| <h3>π€ Medibot - AI Health Assistant</h3> <p> Our <strong>LLM-powered chatbot</strong> answers medical queries and provides instant healthcare insights using <strong>Hugging Face LLM (Mistral-7B-Instruct)</strong>. </p> <ul> <li>β AI-powered medical chatbot based on Mistral-7B-Instruct.</li> <li>β Retrieves medical information from a FAISS vector database.</li> <li>β Retrieves reliable medical information using RAG (Retrieval Augmented Generation.</li> <li>β Provides fast, relevant, and fact-based healthcare responses.</li> <li>β Provides <strong>reliable AI-driven</strong> answers to health-related questions.</li> </ul> |  |  | |---------------------------------|---------------------------------| --- <h2>π Folder Structure</h2> <pre> π¦ AI-Powered Healthcare Intelligence Network βββ π models/ # Trained ML models βββ π data/ # Medical datasets (CSV) βββ π vectorstore/db_faiss/ # FAISS vector database βββ π utils/ # Images, styles, and helper files βββ π pages/ # Individual module pages βββ π home.py # Main homepage (Streamlit UI) βββ π requirements.txt # Dependencies βββ π README.md # Project Documentation βββ π .gitignore # Ignored files βββ π styles.css # Custom CSS for UI </pre> --- <h2>βοΈ Installation & Setup</h2> <h3>1οΈβ£ Clone the Repository</h3> <pre> git clone https://github.com/AbhaySingh71/AI-Powered-Healthcare-Intelligence-System.git cd AI-Powered-Healthcare-Intelligence-System </pre> <h3>2οΈβ£ Set Up the Virtual Environment</h3> <pre> python -m venv venv source venv/bin/activate # On macOS/Linux venv\Scripts\activate # On Windows </pre> <h3>3οΈβ£ Install Dependencies</h3> <pre> pip install -r requirements.txt </pre> <h3>4οΈβ£ Set Up Environment Variables</h3> <p>Create a <code>.env</code> file and add:</p> <pre> HF_TOKEN=your_huggingface_api_token </pre> <p>Ensure it is added to GitHub Secrets when deploying.</p> <h3>5οΈβ£ Run the Application</h3> <pre> streamlit run home.py </pre> --- <h2>π Deployment on Streamlit Cloud</h2> <h3>1οΈβ£ Push code to GitHub</h3> <pre> git add . git commit -m "Initial commit" git push origin main </pre> <h3>2οΈβ£ Deploy on Streamlit</h3> <ul> <li>Go to <a href="https://share.streamlit.io/">Streamlit Cloud</a> β Deploy a new app.</li> <li>Set <code>HF_TOKEN</code> in Streamlit Secrets.</li> <li>Click <strong>Deploy!</strong> π</li> </ul> --- <h2>βοΈ Technologies Used</h2> <ul> <li><strong>Machine Learning:</strong> RandomForest, LightGBM, NLP, Cosine Similarity</li> <li><strong>AI & NLP:</strong> Hugging Face Transformers, LangChain, FAISS</li> <li><strong>Data Handling:</strong> Pandas, NumPy, Pickle</li> <li><strong>Web Framework:</strong> Streamlit</li> <li><strong>Visualization:</strong> Plotly, SHAP for feature importance</li> <li><strong>Cloud Deployment:</strong> AWS, GCP</li> </ul> --- <h2>π Why Use This App?</h2> <ul> <li>π₯ <strong>AI-Powered Healthcare Insights:</strong> Get data-driven medical predictions.</li> <li>βοΈ <strong>Enhances Patient Care:</strong> Supports doctors and patients in making informed decisions.</li> <li>π‘ <strong>Real-Time Recommendations:</strong> Provides immediate AI-assisted insights.</li> <li>β³ <strong>Saves Time:</strong> Automates diagnosis and medical recommendations.</li> <li>π¬ <strong>Empowers Medical Research:</strong> Helps in early disease detection and prevention.</li> </ul> --- <h2> Docker Deployment</h2> <p>This project is <strong>Docker-first</strong>. Docker ensures that the model can run in any environment without worrying about Python versions, dependencies, or system settings.</p> ```bash docker pull abhaysingh71/ai-powered-healthcare-system docker run -p 8501:8501 abhaysingh71/ai-powered-healthcare-system ``` <h3>β Why Docker?</h3> <ul> <li>Environment-independent deployments</li> <li>Fast setup and teardown</li> <li>Easy to host on cloud (AWS, GCP, Azure)</li> <li>Reproducibility for teams and CI/CD pipelines</li> </ul> <h2>π Docker hub</h2> <ul> <li><strong>DockerHub</strong>: <a href="https://hub.docker.com/r/abhaysingh71/ai-powered-healthcare-system">https://hub.docker.com/r/abhaysingh71/ai-powered-healthcare-system</a></li> </ul> <h2>π License</h2> <p> This project is licensed under the <strong>MIT License</strong>. Feel free to use, modify, and contribute! </p> --- <h2>π¬ Contact Us</h2> <p>Have questions or need support? Reach out to us at:</p> <ul> <li>π§ <a href="mailto:[email protected]">[email protected]</a></li> </ul> --- <h2>π Connect With Me</h2> <p align="center"> <a href="https://github.com/abhaysingh71711" target="_blank">π GitHub</a> | <a href="https://www.linkedin.com/in/abhay-singh-050a5b293/" target="_blank">π LinkedIn</a> | <a href="https://x.com/AbhaySingh71711" target="_blank"> π¦ Twitter</a> </p>