Mrittika AI

Machine-learning artifacts for crop and fertilizer recommendation in Bangladesh.

Repository contents

  • mrittika_crop_model.pkl - trained crop recommendation model.
  • mrittika_fertilizer_model.pkl - trained fertilizer recommendation model.
  • bangladesh_crop_recommendation.csv - crop recommendation dataset.
  • bangladesh_fertilizer_recommendation.csv - fertilizer recommendation dataset.
  • metrics.json and fertilizer_metrics.json - evaluation metrics.
  • *_confusion_matrix.png and *_feature_importance.png - evaluation visualizations.

Evaluation summary

Crop recommendation

  • Best model: ExtraTrees
  • Test accuracy: 0.8613
  • Test macro-F1: 0.8599
  • Test top-3 accuracy: 0.9759

Fertilizer recommendation

  • Classifier: XGBoost
  • Classification test accuracy: 0.9617
  • Classification test macro-F1: 0.9394
  • Regressor: LightGBM
  • Regression R2: 0.9740
  • Regression MAE: 29.221 kg/ha

Loading the models

The model files are Python pickle artifacts. Only load them from a trusted source and use compatible versions of the libraries used during training.

import pickle

with open("mrittika_crop_model.pkl", "rb") as file:
    crop_model = pickle.load(file)

with open("mrittika_fertilizer_model.pkl", "rb") as file:
    fertilizer_model = pickle.load(file)

The input feature schema and preprocessing details should be kept consistent with the training pipeline that produced each artifact.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support