Vitamin Deficiency
No description available
π οΈ Technologies Used
IoT
# Vitamin Deficiency Prediction Based on User Symptoms
# β
**Vitamin Deficiency Prediction Based on Symptoms**
A **machine-learning + rule-based** health-support system that identifies possible vitamin deficiencies based on symptoms that the user enters and provides:
β Predicted vitamin deficiency
β Food sources to correct the deficiency
β Daily lifestyle changes
β Supplement suggestions (non-medical, general)
β Preventive tips
> **Important:** This is not a medical diagnosis system; it gives educational predictions.
---
# π§ **How the System Works**
There are two ways to build it:
---
## **1οΈβ£ Rule-Based Prediction System (Simple & Highly Accurate for Symptoms)**
Each symptom is mapped to possible vitamin deficiencies.
### **Example Mapping**
| Symptom | Possible Deficiency |
| ------------------- | ------------------------- |
| Hair loss | Vitamin B7 (Biotin), D, E |
| Fatigue | B12, D, Iron |
| Cracked lips | B2, B6 |
| Vision problems | Vitamin A |
| Weak immunity | Vitamin C, D |
| Tingling hands/feet | B1, B6, B12 |
| Bone/joint pain | Vitamin D, Calcium |
| Dry skin | A, E |
| Mouth ulcers | B9, B12 |
The system checks all symptoms the user enters and predicts one or more deficiencies.
---
## **2οΈβ£ ML-Based Prediction (If You Want AI Model)**
### Dataset structure:
| symptom1 | symptom2 | symptom3 | β¦ | vitamin_deficiency |
| ----------- | ------------ | -------- | ------- | ------------------ |
| hair loss | fatigue | dry skin | β¦ | Vitamin D |
| mouth ulcer | cracked lips | β¦ | Vit B12 | |
Train using:
β Random Forest
β SVM
β Decision Trees
β Neural networks (simple MLP)
---
# π§° **Project Workflow**
1. **User enters symptoms**
Example: βfatigue, hair loss, tingling feetβ
2. **Symptom β Deficiency Prediction**
Using rule-based or ML model.
3. **Generate output:**
* vitamin deficiency
* recommended foods
* lifestyle changes
* supplement recommendations
* warning when to see a doctor
---
# π― **Final Output Example**
### **Input:**
*βHair fall, fatigue, tingling feetβ*
### **Prediction:**
β‘ **Likely Vitamin B12 Deficiency**
β‘ Possible: **Vitamin D**, **Biotin**
---
## π₯ Food Suggestions
### **For Vitamin B12**
* Eggs
* Milk, curd
* Fish (salmon, tuna)
* Lean chicken
* Fortified cereals
### **For Vitamin D**
* Sunlight (morning 20 mins)
* Mushrooms
* Fortified milk
* Egg yolk
### **For Biotin (B7)**
* Almonds
* Walnuts
* Sweet potatoes
* Whole grains
---
## π Home Remedies (Non-Medical)
* Include **curd + banana** for gut health
* **1 tsp flaxseed** daily for skin & hair
* **Moringa powder** (rich in B-complex)
---
## π Lifestyle Recommendations
* 20β30 min morning sunlight daily
* Reduce junk food & sugar
* Follow regular sleep schedule (7β8 hrs)
* Reduce stress with breathing exercises
* Drink 2.5β3 liters of water daily
---
## β βWhen to See a Doctorβ
* Long-term numbness/tingling
* Extreme fatigue
* Unexplained weight loss
* Severe hair loss
---
# π Project Modules (for your academic submission)
### **1. Symptom Input Module**
User enters symptoms via text or list checklist.
### **2. Preprocessing Module**
Tokenize β map symptoms β dataset encoding.
### **3. Prediction Engine**
* **Rule-based JSON** mapping
* OR **ML model.pkl** prediction
### **4. Recommendation Module**
* Food
* Lifestyle
* Remedies
https://github.com/shivasaisanga/vitamin-deficiency-prediction-and-food-recommendation.git
* Prevention tips
### **5. Report Generation**
Shows final predicted deficiency with suggestions.