How 941-abhi/crop_yield_prediction_system works
AgriXAI is a crop-yield advisory application. Its primary workflow is farmer sign-in, entry of crop and farm conditions, model-based yield prediction, and presentation of yield status, explanatory factors, and recommendations; authenticated users can also view profile statistics. The web application and its prediction logic are concentrated in app.py. The repository also contains a standalone desktop predictor and a model-training script. The graph follows documented capabilities and the supplied excerpts; several implementation details, including exact model-loading and explanation calls in app.py, were not shown.
Main entry points: app.py Flask application · train_model_no_crop_year.py Model training · crop_app.py Desktop predictor · yield_model.pkl Yield model
Components 16
Web experience
- Flask application
app.py - Welcome page
templates/welcome.html
Identity and profile
- Login page
templates/login.html - Signup page
templates/signup.html - Profile page
templates/profile.html - Firebase Auth
Yield advisory
- Prediction form
templates/predict.html - Prediction logic
app.py - Results page
templates/result.html - Desktop predictor
crop_app.py
Model lifecycle
- Yield model
model/yield_model.pkl - Category encoders
model/encoders.pkl - Yield reference values
model/target_values.pkl - Model training
train_model_no_crop_year.py - Crop yield data
crop_yield1.csv
Other components
- Farmer
Connections 20
- Farmer → Flask application: uses
README.md - Flask application → Welcome page: shows
README.md - Flask application → Login page: shows
README.md - Flask application → Signup page: shows
README.md - Flask application → Profile page: shows
README.md - Flask application → Prediction form: shows
README.md - Flask application → Prediction logic: handles
README.md - Prediction logic → Results page: shows
README.md - Flask application → Firebase Auth: authenticates with
README.md - Prediction logic → Yield model: predicts with
README.md - Prediction logic → Category encoders: encodes with
README.md - Prediction logic → Yield reference values: compares against
README.md - Model training → Crop yield data: trains from
train_model_no_crop_year.py - Model training → Yield model: saves
train_model_no_crop_year.py - Model training → Category encoders: saves
train_model_no_crop_year.py - Model training → Yield reference values: saves
train_model_no_crop_year.py - Farmer → Desktop predictor: uses
crop_app.py - Desktop predictor → Yield model: loads
crop_app.py - Desktop predictor → Category encoders: loads
crop_app.py - Desktop predictor → Yield reference values: loads
crop_app.py