agrokai.mp4
Table of Contents
AgroKAI is a smart farming app designed to simplify agricultural management for farmers, with functionalities that provide insights on soil fertility, predict plant diseases, and help optimize irrigation. Built on Flutter and Firebase, AgroKAI utilizes machine learning and sensor data integration to enhance decision-making in farming.
The app is divided into three main parts:
- 🌾Plant Disease Detection - Uses a TensorFlow Lite (TFLite) image classification model to detect potential plant diseases from images, offering organic solution suggestions.
- 🌏 Soil Fertility Monitoring - Tracks changes in soil fertility, nitrogen (N), phosphorus (P), and potassium (K) levels, predicting future fertility trends through a random forest regression model.
- 💧 Irrigation Management - Calculates crop water requirements using real-time environmental data (rainfall, humidity, temperature, wind speed) and sets up the motor timer, integrating motor control and usage logs.
Data is stored and accessed in Firebase Firestore through three primary collections: soil data, irrigation data, and motor logs.
This project leverages the following frameworks and libraries:
- - The primary framework for building the cross-platform app.
- - Used for real-time database, Firestore storage, and authentication.
- - For the on-device plant disease detection model.
- - To host the soil fertility and irrigation prediction models.
To set up a local copy of AgroKAI and start developing or testing the app, follow these steps.
Ensure that you have Flutter installed and configured in your development environment. You can follow the official Flutter installation guide for setup instructions.
Follow these instructions to install and configure AgroKAI:
-
Clone the Repository
git clone https://github.com/your_username/AgroKAI.git
-
Install Flutter Packages
Navigate to the project directory and install all necessary packages:flutter pub get
-
Set Up Firebase
- Go to Firebase Console and create a new project.
- Enable Firestore, Authentication, and any other services you plan to use.
-Download the
google-services.json
file and add it to theandroid/app
directory of your project.
-
Configure the Image Classification Model and REST API
- AgroKAI uses a TensorFlow Lite model for plant disease detection. Ensure that
disease_model.tflite
is placed in the correct assets directory. - REST APIs are required for soil fertility and plant disease predictions. Set up the APIs as per your requirements and update the API endpoints in the app configuration files.
- AgroKAI uses a TensorFlow Lite model for plant disease detection. Ensure that
-
Change Git Remote URL (Optional) To avoid accidental pushes to the main project repository, change the git remote URL:
git remote set-url origin https://github.com/aashika-j18/AgroKAI.git git remote -v # confirm the changes
This project is licensed under the MIT License - see the LICENSE file for details.