VedanshSood/Plant-Recommendation-System
0
๐ฟ AI-Driven Plant Recommendation System
The AI-Driven Plant Recommendation System uses air quality metrics to recommend plants that can improve indoor air quality. Built using FastAPI and Random Forest Machine Learning, this project combines AI and sustainability to create a greener future.
๐ Features
- Personalized Plant Recommendations: Based on pollutants like PM2.5, PM10, NO, NO2, O3, and SO2.
- API Endpoint: Seamlessly integrates with other systems.
- Scalable and Robust: Handles real-time prediction requests with optimized performance.
๐ง Technologies Used
- Python: Core programming language for development.
- FastAPI: For building the API.
- scikit-learn: To train the Random Forest model.
- pandas: For data manipulation.
- Postman: For API testing.
๐ ๏ธ Setup Instructions
Prerequisites
- Python 3.8 or above installed
- Required Python libraries:
pip install -r requirements.txt
Installation Steps
- Clone the repository:
git clone https://github.com/your-username/plant-recommendation-system.git
cd plant-recommendation-system- Install dependencies:
pip install -r requirements.txt- Train the model (if needed):
python model1.ipynb- Start the FastAPI server:
uvicorn main:app --reload- Test the API: Use Postman or any API testing tool. Endpoint:
POST http://127.0.0.1:8000/predict
๐ก API Usage
Endpoint
POST /predict
Request Body
{
"PM2.5": 159,
"PM10": 84,
"NO": 6.2,
"NO2": 11.2,
"O3": 55.6,
"SO2": 17.3
}Response
{
"recommended_plants": [
["Areca Palm", "Peace Lily", "Spider Plant"]
]
}๐ Project Structure
โโโ main.py # FastAPI application
โโโ data.py # Input data validation using Pydantic
โโโ model1.ipynb # Model training script
โโโ requirements.txt # Project dependencies
โโโ README.md # Project documentation๐ Acknowledgments
- Thanks to the contributors of scikit-learn and FastAPI for their awesome tools.
- Special mention to all who supported this project!
