An AI-powered soil analysis and recommendation system built with Flutter.
SoilGPT is a mobile application designed to assist farmers, gardeners, and agricultural professionals in analyzing soil conditions using AI-powered insights. The app takes input from users about soil type, moisture, and location, and provides recommendations on crop selection, soil treatment, and sustainable farming practices.
- Uses machine learning models to analyze soil data.
- Provides insights on soil composition, fertility, and crop compatibility.
- Suggests suitable crops based on soil properties.
- Recommends fertilizers and soil treatment strategies.
- Fetches live weather updates to provide dynamic farming recommendations.
- Offers alerts for extreme weather conditions.
- Uses image recognition to identify soil type from uploaded photos.
- Provides automated analysis without manual input.
- Simple and intuitive UI for easy navigation.
- Supports multiple languages (upcoming feature).
| Technology | Purpose |
|---|---|
| Flutter | Cross-platform mobile development |
| Dart | Programming language for Flutter |
| Firebase | Backend services (authentication, database) |
| Google Maps API | Location-based soil insights |
| OpenWeather API | Real-time weather data |
| TensorFlow Lite | AI model for soil analysis (planned feature) |
- Install Flutter SDK
- Install Android Studio (for Android development)
- Install Xcode (for iOS development)
- Set up Firebase for authentication and database.
git clone https://github.com/yourusername/SoilGPT.git
cd SoilGPTflutter pub get- Create a Firebase project and add an Android/iOS app.
- Download the
google-services.json(Android) orGoogleService-Info.plist(iOS) and place it in the appropriate folder (android/app/orios/Runner/).
For Android:
flutter runFor iOS:
flutter run --no-codesignkeytool -genkey -v -keystore ~/my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-key-aliasInside android/, create keystore.properties:
storeFile=your_keystore_file_path
storePassword=your_keystore_password
keyAlias=your_key_alias
keyPassword=your_key_password
flutter build apk --releaseor for Android App Bundle:
flutter build appbundleSoilGPT/
βββ android/ # Android-specific code
βββ ios/ # iOS-specific code
βββ lib/ # Main Flutter application code
β βββ models/ # Data models
β βββ screens/ # UI screens
β βββ services/ # API & backend services
β βββ widgets/ # Reusable components
β βββ main.dart # Entry point of the app
βββ assets/ # Images, icons, and other assets
βββ pubspec.yaml # Dependencies and configuration
βββ README.md # Project documentation
- πΈ Image-based soil detection using AI
- π Region-based crop recommendation
- π² Offline support for remote farmers
- π Data visualization & soil health trends
We welcome contributions! π
- Fork the repository.
- Create a new branch:
git checkout -b feature-xyz - Commit your changes:
git commit -m "Add feature XYZ" - Push to the branch:
git push origin feature-xyz - Create a pull request.
This project is licensed under the MIT License.
For queries, suggestions, or collaborations:
π§ Aakash Gupta β gzatrop@gmail.com
π Project Repository β GitHub