| π Get Started Setup in 5 minutes |
π Features What we offer |
π€ ML Models 95% accurate AI |
π€ Contribute Join the team |
- Modern Dashboard - Material Design 3 interface with quick access to all features
- User Profiles - Personalized farmer accounts with location-based services
- Multi-language - Hindi, English, Marathi, Gujarati & more
- Real-time Data - Integration with OpenWeatherMap API for 200+ Indian cities
- 7-Day Forecast - Hourly weather breakdowns with farming recommendations
- Offline Mode - Realistic simulation when internet unavailable
- Voice Recognition - Ask farming questions using voice
- Image Analysis - Upload crop photos for AI-powered diagnosis
- Text-to-Speech - Listen to responses in local languages
- Smart Chat - Interactive conversation for agricultural queries
- 95% Accurate - AI-based crop recommendations using soil & environmental data
- Soil Analysis - Advanced soil type detection with 92% accuracy
- Smart Suggestions - Region-specific recommendations with confidence scores
- Scheme Database - Access agricultural government programs
- Eligibility Check - Verify eligibility for different schemes
- Application Guide - Step-by-step help with applications
| Mobile | Machine Learning | Backend |
|---|---|---|
| Kotlin 1.9.10 | Random Forest (95% accuracy) | OpenWeatherMap API |
| Material Design 3 | Gradient Boosting (92% accuracy) | Firebase |
| Room Database | TensorFlow + scikit-learn | RESTful APIs |
| MVVM Architecture | OpenCV Image Processing | Cloud Storage |
# Clone repository
git clone https://github.com/AnuranjanJain/FasalSathi.git
cd FasalSathi
# For Android Development
./build.sh -i
# For ML Development
./setup_ml.shClick to expand detailed steps
Prerequisites: Android Studio, JDK 8+, Android SDK (API 21+)
-
Open in Android Studio
- File β Open β Select FasalSathi folder
- Wait for Gradle sync
-
Build & Run
./build.sh -i # Build and install ./gradlew assembleDebug # Build only
-
Run in Android Studio
- Press
Shift+F10or click RunβΆοΈ
- Press
Click to expand detailed steps
Prerequisites: Python 3.8+, pip
-
Automated Setup (Recommended)
./setup_ml.sh
-
Manual Setup
python3 -m venv venv source venv/bin/activate # Linux/Mac # venv\Scripts\activate # Windows pip install -r requirements.txt python ml_pipeline/train_models.py
| Model | Type | Accuracy | Speed | Size |
|---|---|---|---|---|
| πΎ Crop Recommendation | Random Forest | 95.2% | <100ms | 484 MB |
| ποΈ Soil Detection | Gradient Boosting | 92.1% | <50ms | 32 MB |
| πΈ Image Classifier | CNN (TensorFlow) | 89.5% | <200ms | 116 MB |
from ml_pipeline.fixed_predictor import FixedModelPredictor
predictor = FixedModelPredictor("ml_pipeline/models")
result = predictor.predict_crop({
'n': 90, 'p': 42, 'k': 43, 'ph': 6.5,
'temperature': 25, 'humidity': 70, 'rainfall': 800
})
print(f"πΎ Crop: {result['crop']}")
print(f"π Confidence: {result['confidence']:.1%}")FasalSathi/
βββ app/ # Android application (Kotlin)
β βββ src/main/ # Source code
β β βββ java/ # Kotlin files (UI, data, ML integration)
β β βββ res/ # Resources (layouts, strings, images)
β βββ src/test/ # Unit & integration tests
βββ ml_pipeline/ # Machine Learning (Python)
β βββ train_models.py # Model training
β βββ fixed_predictor.py # Production predictor
β βββ models/ # Trained models (516 MB)
βββ Datasets/ # Training datasets
βββ build.sh # Build automation script
βββ setup_ml.sh # ML setup script
βββ README.md # This file
./build.sh # Build debug APK
./build.sh -i # Build and install on device
./build.sh -r # Build release APK
./build.sh -c # Clean build
./gradlew test # Run tests# Unit tests
./gradlew test
# Integration tests (requires device)
./gradlew connectedAndroidTest
# Test coverage report
./gradlew jacocoTestReportWe welcome contributions! Here's how:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'feat: add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open a Pull Request
feat: new feature
fix: bug fix
docs: documentation
style: formatting
refactor: code restructuring
test: add tests
chore: maintenance
Gradle Sync Failed
./gradlew clean
./gradlew build --refresh-dependenciesDevice Not Detected
adb devices
adb kill-server
adb start-serverPython Import Errors
source venv/bin/activate
pip install --upgrade -r requirements.txtOut of Memory
Add to gradle.properties:
org.gradle.jvmargs=-Xmx4096m
org.gradle.daemon=true
org.gradle.parallel=true| Metric | Value |
|---|---|
| APK Size (Debug) | 15-20 MB |
| APK Size (Release) | 10-15 MB |
| Cold Start Time | < 2s |
| Memory Usage | 50-80 MB |
| ML Inference | < 100ms |
Current (v1.1) β
- Core features, ML models, Weather system, Multi-language
Next (v1.2) π§
- Offline mode, Enhanced disease detection, Market prices, Push notifications
Future (v2.0) π‘
- Community forum, SMS access, Satellite imagery, Government API integration
This project is licensed under the MIT License - see LICENSE for details.
- Smart India Hackathon 2025 - Project opportunity
- OpenWeatherMap - Weather data API
- scikit-learn - ML framework
- Android Community - Libraries and support