/ Модель

Характеристики

Лицензия
MIT
Библиотека
xgboost
Опубликована
25 окт 2026

Maminda-KCS-Learning-Loop

Регрессия по таблицам3 профессии

Исследовательская система XGBoost прогнозирует урожайность трёх культур по спутниковым, почвенным и растительным показателям, поддерживая изучение кредитного риска мелких фермеров.

0скачиваний за 30 дней0лайковвеса обновлены25 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Maminda KCS Learning Loop — исследовательская система прогнозирования урожайности и оценки вероятности возврата кредита для мелких фермерских хозяйств в Машоналенд-Уэст, Зимбабве. В репозитории есть модели XGBoost для табличной регрессии урожайности кукурузы, картофеля и томатов; метаданные указывают формат ONNX и лицензию MIT. Для прогноза используются оценка здоровья листа, NDVI Sentinel-2, показания почвенных датчиков и число дней после посадки. Сопутствующая модель классификации оценивает вероятность полного возврата займа к сроку, а исследовательская шкала KCS преобразует эту вероятность в балл.

Проект включает цикл обучения на итогах сезона: собранных урожаях и фактах погашения займов. Текущий релиз опирается преимущественно на симуляции и ограниченные открытые данные по кукурузе; реальные результаты фермерских хозяйств региона в обучении отсутствуют. В описанном эксперименте обе стороны сравнения были симуляторами, поэтому результаты не подтверждают точность на реальных фермах. Модель предназначена для исследований и разработки, а не для принятия кредитных решений; кредитные вероятности симулированы, датчики не откалиброваны по лабораторным измерениям, а оценка здоровья относится к отдельному листу. Лицензия — MIT.

Сценарии применения

  • прогноз урожайности кукурузы по данным поля и сезона
  • оценка урожайности картофеля и томатов
  • исследование связи показаний почвенных датчиков с урожаем
  • эксперименты с переобучением моделей по результатам сезонов
  • исследовательская оценка вероятности погашения займа фермерами

Ограничения

Релиз обучен преимущественно на симуляциях и не проверен на реальных хозяйствах; кредитные вероятности полностью симулированы и модель не валидирована для кредитования. Почвенные датчики не откалиброваны по лабораторным измерениям, а показатель здоровья листа описывает отдельный лист, не всё поле.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Maminda KCS learning loop: yield forecast and research Kurima Credit Score

Final-year project, Chinhoyi University of Technology: Machine learning-based credit risk assessment model for smallholder farmers using embedded IoT, satellite imagery and computer vision (Mashonaland West, Zimbabwe).

Live demo: Maminda KCS Research Lab

What it does

  1. Inputs for each field and season:
    • a crop-health score from a close-up leaf photo, produced by the Mashonaland crop classifier
    • Sentinel-2 NDVI
    • seven soil-probe readings: moisture, temperature, N, P, K, pH and EC
    • days after planting
  2. Yield head: one XGBoost regressor per crop (maize, potato, tomato) forecasts yield in t/ha.
  3. Repayment head: an XGBoost classifier combines the same inputs with projected cash coverage (forecast yield × area × price, minus costs and household needs, plus other cash), the due date and repayment history. It outputs the probability of repaying in full by the due date.
  4. Score: the probability is mapped to a 300–850 research KCS. Probability 0.90 maps to 600, and each doubling of the repayment odds adds 50 points. This is a display convention, not a lender-approved policy.

The learning loop (how the model improves as farmers use it)

Photos, NDVI and soil readings are inputs. The model learns only from outcomes: the weighed harvest at season end, and whether each scored loan was repaid by its due date. learning_loop/ contains the code:

  • outcomes.py records harvests and repayments.
    • Each repayment is linked to the exact estimate that scored the loan.
    • Farmer-estimated harvests are stored but never used as labels.
    • Corrections are audited.
  • learning_loop.py retrains the models.
    • Synthetic data as a prior: the synthetic data counts as S real examples. With n real outcomes, the synthetic share of the training weight is S / (S + n).
    • Candidate challengers: recalibrate the current model, or retrain at several prior strengths (S = 0 means real data only).
    • Fair testing: every candidate is scored by grouped cross-validation over farmers, on outcomes the current release never saw.
    • Promotion: the best candidate replaces the champion only if it is better.
    • Versioning: every release is versioned and checksummed in releases/registry.json.

Current release

releases/v0-synthetic-prior is trained on:

  • simulated yields for all three crops
  • ten public US maize field-season means from the Genomes to Fields 2022 dataset (maize only)
  • simulated loan outcomes

It contains no real Mashonaland West outcomes yet. Its credit labels are entirely simulated.

Evidence that the loop works (results/)

Because no real outcomes exist yet, the loop was run against a deliberately different simulator ("field reality": lower smallholder yields, stronger nitrogen and drought limits, harder-hitting disease, side-selling repayment shocks). The test ran for 6 seasons with 140 field-seasons per season, across 3 runs, and was scored on 1,500 unseen farms per crop and 4,500 unseen loans.

Yield MAE (t/ha)Synthetic onlyLoop after 1 seasonReal-only after 1 seasonLoop after 6 seasonsReal-only after 6 seasons
Maize1.280.550.610.530.52
Potato4.274.114.873.953.92
Tomato7.046.437.465.996.12
Repayment modelSynthetic onlyLoop after 1 seasonReal-only after 1 seasonLoop after 6 seasonsReal-only after 6 seasons
Log loss0.5530.5490.6170.5430.552
ROC AUC0.7520.7600.6720.7610.748

Yield learning curve Repayment learning curve

These results show that the method corrects a mis-specified prior, and that the prior helps while real data is scarce. Both sides of the test are simulators. They say nothing about accuracy on real farms.

Use

from huggingface_hub import snapshot_download
import json, sys
root = snapshot_download('awesomeddiey/Maminda-KCS-Learning-Loop')
active = json.load(open(f'{root}/releases/registry.json'))['active']
sys.path.insert(0, f'{root}/releases/{active}')
from model_core import assess
result = assess({'crop': 'maize', 'features': {
    'sentinel_ndvi_score': 0.62, 'cv_health_score_0_100': 80, 'soil_moisture_vwc_pct': 24,
    'soil_temperature_c': 25, 'soil_n_mg_kg': 90, 'soil_p_mg_kg': 30, 'soil_k_mg_kg': 140,
    'soil_ph': 5.9, 'soil_ec_ms_cm': 0.6, 'days_after_planting': 70}},
    {'area_ha': 1.2, 'farmgate_price_per_tonne': 320, 'remaining_costs_excluding_loan_financed': 60,
     'other_cash_available_by_due': 40, 'household_cash_needed_by_due': 30, 'amount_due': 300,
     'days_until_due': 120, 'currency': 'USD', 'prior_loans_count': None,
     'prior_late_repayments': None, 'prior_defaults': None},
    enable_synthetic_credit=True, root=f'{root}/releases/{active}')
print(result['experimental_yield_t_ha'], result['research_credit_estimate']['kcs_score'])

Requirements: xgboost==3.4.1, numpy, pandas (plus scikit-learn to retrain).

Limits

  • Simulated relationships: the effects of NPK, pH, EC and the crop-health score on yield are learned from simulation. Potato and tomato yield heads are simulation-only.
  • Uncalibrated sensors: probe NPK, pH and EC methods are not calibrated against laboratory measurements. Equal units do not establish equivalence.
  • Synthetic credit labels: repayment probabilities in this release come from simulated loans. They are not established repayment probabilities for real farmers.
  • No lending use: no release is validated for lending. validated_kcs_score is always null.
  • Leaf-level CV score: the crop-health score describes one leaf photo. It does not measure the whole field.

Files

  • releases/: model releases and the registry. The Space serves the active release.
  • learning_loop/: outcome capture, retraining, and the season replay experiment.
  • prior/: the synthetic prior used for retraining (the G2F rows are not redistributed here).
  • results/: the season replay metrics, champion/challenger decisions and figures.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · xgboost

Нельзя запустить

Табличные модели пока не поддерживаются.

Ревизия весов
cce6e2a

0 моделей