Update README.md
Browse files
README.md
CHANGED
|
@@ -1,199 +1,172 @@
|
|
|
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
-
#
|
| 7 |
-
|
| 8 |
-
<!-- Provide a quick summary of what the model is/does. -->
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
## Model Details
|
| 13 |
-
|
| 14 |
-
### Model Description
|
| 15 |
-
|
| 16 |
-
<!-- Provide a longer summary of what this model is. -->
|
| 17 |
-
|
| 18 |
-
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 19 |
-
|
| 20 |
-
- **Developed by:** [More Information Needed]
|
| 21 |
-
- **Funded by [optional]:** [More Information Needed]
|
| 22 |
-
- **Shared by [optional]:** [More Information Needed]
|
| 23 |
-
- **Model type:** [More Information Needed]
|
| 24 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 25 |
-
- **License:** [More Information Needed]
|
| 26 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 27 |
-
|
| 28 |
-
### Model Sources [optional]
|
| 29 |
-
|
| 30 |
-
<!-- Provide the basic links for the model. -->
|
| 31 |
-
|
| 32 |
-
- **Repository:** [More Information Needed]
|
| 33 |
-
- **Paper [optional]:** [More Information Needed]
|
| 34 |
-
- **Demo [optional]:** [More Information Needed]
|
| 35 |
-
|
| 36 |
-
## Uses
|
| 37 |
-
|
| 38 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 39 |
-
|
| 40 |
-
### Direct Use
|
| 41 |
-
|
| 42 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 43 |
-
|
| 44 |
-
[More Information Needed]
|
| 45 |
-
|
| 46 |
-
### Downstream Use [optional]
|
| 47 |
-
|
| 48 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 49 |
-
|
| 50 |
-
[More Information Needed]
|
| 51 |
-
|
| 52 |
-
### Out-of-Scope Use
|
| 53 |
-
|
| 54 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 55 |
-
|
| 56 |
-
[More Information Needed]
|
| 57 |
-
|
| 58 |
-
## Bias, Risks, and Limitations
|
| 59 |
-
|
| 60 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 61 |
-
|
| 62 |
-
[More Information Needed]
|
| 63 |
|
| 64 |
-
|
| 65 |
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 69 |
-
|
| 70 |
-
## How to Get Started with the Model
|
| 71 |
-
|
| 72 |
-
Use the code below to get started with the model.
|
| 73 |
-
|
| 74 |
-
[More Information Needed]
|
| 75 |
-
|
| 76 |
-
## Training Details
|
| 77 |
-
|
| 78 |
-
### Training Data
|
| 79 |
-
|
| 80 |
-
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 81 |
-
|
| 82 |
-
[More Information Needed]
|
| 83 |
-
|
| 84 |
-
### Training Procedure
|
| 85 |
-
|
| 86 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 87 |
-
|
| 88 |
-
#### Preprocessing [optional]
|
| 89 |
-
|
| 90 |
-
[More Information Needed]
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
#### Training Hyperparameters
|
| 94 |
|
| 95 |
-
|
| 96 |
|
| 97 |
-
|
| 98 |
|
| 99 |
-
|
| 100 |
|
| 101 |
-
|
| 102 |
|
| 103 |
-
##
|
| 104 |
|
| 105 |
-
|
| 106 |
|
| 107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
|
| 109 |
-
|
|
|
|
|
|
|
|
|
|
| 110 |
|
| 111 |
-
|
| 112 |
|
| 113 |
-
|
| 114 |
|
| 115 |
-
###
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
|
| 117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
|
| 119 |
-
|
| 120 |
|
| 121 |
-
##
|
| 122 |
|
| 123 |
-
|
| 124 |
|
| 125 |
-
|
|
|
|
|
|
|
| 126 |
|
| 127 |
-
|
|
|
|
|
|
|
|
|
|
| 128 |
|
| 129 |
-
|
| 130 |
|
| 131 |
-
|
| 132 |
|
|
|
|
| 133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
|
| 135 |
-
|
| 136 |
|
| 137 |
-
|
| 138 |
|
| 139 |
-
|
| 140 |
|
| 141 |
-
|
|
|
|
|
|
|
| 142 |
|
| 143 |
-
|
| 144 |
|
| 145 |
-
|
| 146 |
|
| 147 |
-
|
| 148 |
-
- **Hours used:** [More Information Needed]
|
| 149 |
-
- **Cloud Provider:** [More Information Needed]
|
| 150 |
-
- **Compute Region:** [More Information Needed]
|
| 151 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 152 |
|
| 153 |
-
|
| 154 |
|
| 155 |
-
|
| 156 |
|
| 157 |
-
|
| 158 |
|
| 159 |
-
###
|
| 160 |
|
| 161 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
|
| 163 |
-
|
| 164 |
|
| 165 |
-
|
| 166 |
|
| 167 |
-
###
|
| 168 |
|
| 169 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 170 |
|
| 171 |
-
|
|
|
|
|
|
|
|
|
|
| 172 |
|
| 173 |
-
|
| 174 |
|
| 175 |
-
|
| 176 |
|
| 177 |
-
|
| 178 |
|
| 179 |
-
**
|
|
|
|
|
|
|
| 180 |
|
| 181 |
-
|
| 182 |
|
| 183 |
-
|
| 184 |
|
| 185 |
-
|
| 186 |
|
| 187 |
-
|
|
|
|
|
|
|
|
|
|
| 188 |
|
| 189 |
-
|
| 190 |
|
| 191 |
-
|
| 192 |
|
| 193 |
-
##
|
| 194 |
|
| 195 |
-
|
|
|
|
|
|
|
| 196 |
|
| 197 |
-
## Model Card Contact
|
| 198 |
|
| 199 |
-
[More Information Needed]
|
|
|
|
| 1 |
+
|
| 2 |
---
|
| 3 |
+
language:
|
| 4 |
+
- fr
|
| 5 |
+
- en
|
| 6 |
+
license: apache-2.0
|
| 7 |
+
tags:
|
| 8 |
+
- agronomy
|
| 9 |
+
- viticulture
|
| 10 |
+
- plant-disease
|
| 11 |
+
- oidium
|
| 12 |
+
- mistral
|
| 13 |
+
- sft
|
| 14 |
+
- lora
|
| 15 |
+
- decision-support
|
| 16 |
+
pipeline_tag: text-generation
|
| 17 |
+
model_name: Oidium_Mistral7B_SFT
|
| 18 |
---
|
| 19 |
|
| 20 |
+
# Modèle de prévision du risque d’Oïdium – Vigne (Mistral 7B SFT)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
+
➡️ **[English version](#english-version)**
|
| 23 |
|
| 24 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
+
## 🎯 Objectif du modèle
|
| 27 |
|
| 28 |
+
Ce modèle est un **Mistral 7B spécialisé (SFT)** dans l’évaluation du **risque d’oïdium de la vigne** et la génération de **recommandations agronomiques opérationnelles**, à partir d’un nombre limité mais pertinent de variables météorologiques et biologiques.
|
| 29 |
|
| 30 |
+
Il a été conçu pour dépasser une simple reconnaissance de patterns, et apprendre une **logique décisionnelle conditionnelle**, proche du raisonnement d’un expert terrain.
|
| 31 |
|
| 32 |
+
---
|
| 33 |
|
| 34 |
+
## 🌱 Variables prises en compte
|
| 35 |
|
| 36 |
+
Le modèle raisonne à partir des entrées suivantes :
|
| 37 |
|
| 38 |
+
- Stade phénologique
|
| 39 |
+
- Température moyenne (24 h)
|
| 40 |
+
- Humidité relative (proxy de durée ≥ seuil sur 24 h)
|
| 41 |
+
- Pluie sur 24 h (booléen)
|
| 42 |
+
- Inoculum (proxy normalisé 0–1)
|
| 43 |
+
- ETP (mm/j, proxy d’assèchement)
|
| 44 |
|
| 45 |
+
Une attention particulière est portée aux **cas frontières**, par exemple :
|
| 46 |
+
- humidité élevée mais forte ETP,
|
| 47 |
+
- pluie récente suivie d’un assèchement rapide,
|
| 48 |
+
- conditions proches des seuils critiques.
|
| 49 |
|
| 50 |
+
---
|
| 51 |
|
| 52 |
+
## 📊 Qualité du dataset et entraînement
|
| 53 |
|
| 54 |
+
### Dataset
|
| 55 |
+
- **Entraînement** : 1500 lignes
|
| 56 |
+
- **Évaluation** : 100 lignes
|
| 57 |
+
- Répartition des classes : **30 % faible / 40 % moyen / 30 % élevé**
|
| 58 |
+
- Aucun doublon (train / eval / croisé)
|
| 59 |
+
- 112 cas frontières explicitement intégrés
|
| 60 |
|
| 61 |
+
### Entraînement
|
| 62 |
+
- SFT réalisé sous Google Colab (GPU L4)
|
| 63 |
+
- Durée : ~15 minutes
|
| 64 |
+
- 3 epochs
|
| 65 |
+
- Convergence stable (pas d’overfitting)
|
| 66 |
|
| 67 |
+
---
|
| 68 |
|
| 69 |
+
## 🧪 Résultats – Évaluation agronomique qualitative
|
| 70 |
|
| 71 |
+
Sur une série de tests d’inférence ciblés (cas simples + cas frontières) :
|
| 72 |
|
| 73 |
+
- **≈ 85–90 % des décisions sont pleinement valides agronomiquement**
|
| 74 |
+
- Les rares écarts observés correspondent à des **choix prudents** (sur-classement moyen → élevé)
|
| 75 |
+
- Aucun cas incohérent ou biologiquement aberrant n’a été observé
|
| 76 |
|
| 77 |
+
Ces résultats indiquent que le modèle :
|
| 78 |
+
- comprend les interactions pluie / humidité / ETP,
|
| 79 |
+
- adapte ses recommandations au stade phénologique,
|
| 80 |
+
- respecte strictement le format de sortie attendu.
|
| 81 |
|
| 82 |
+
Le modèle est donc **opérationnel en l’état**, sans nécessité de micro-ajustement supplémentaire.
|
| 83 |
|
| 84 |
+
---
|
| 85 |
|
| 86 |
+
## 🔧 Cas d’usage
|
| 87 |
|
| 88 |
+
- Aide à la décision agronomique
|
| 89 |
+
- Surveillance du risque phytosanitaire
|
| 90 |
+
- Intégration dans des workflows automatisés (ex. n8n)
|
| 91 |
+
- Démonstrateur IA agronomique open-source
|
| 92 |
|
| 93 |
+
⚠️ Ce modèle ne remplace pas une expertise humaine locale et doit être utilisé comme **outil d’aide à la décision**.
|
| 94 |
|
| 95 |
+
---
|
| 96 |
|
| 97 |
+
## 📌 Statut
|
| 98 |
|
| 99 |
+
- Modèle validé qualitativement
|
| 100 |
+
- Déployé sur Hugging Face
|
| 101 |
+
- Prêt pour intégration API / workflow
|
| 102 |
|
| 103 |
+
---
|
| 104 |
|
| 105 |
+
## English version
|
| 106 |
|
| 107 |
+
### 🎯 Model purpose
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
|
| 109 |
+
This model is a **specialized Mistral 7B (SFT)** designed to assess **powdery mildew (Oidium) risk in vineyards** and generate **actionable agronomic recommendations** based on a limited yet informative set of meteorological and biological variables.
|
| 110 |
|
| 111 |
+
It is designed to learn **conditional decision logic**, not only pattern recognition.
|
| 112 |
|
| 113 |
+
---
|
| 114 |
|
| 115 |
+
### 🌱 Input variables
|
| 116 |
|
| 117 |
+
- Phenological stage
|
| 118 |
+
- Mean temperature (24 h)
|
| 119 |
+
- Relative humidity (proxy for ≥ threshold duration)
|
| 120 |
+
- Rainfall (24 h, boolean)
|
| 121 |
+
- Inoculum pressure (normalized proxy 0–1)
|
| 122 |
+
- Reference evapotranspiration (ETP, mm/day)
|
| 123 |
|
| 124 |
+
The model explicitly handles **borderline and contradictory scenarios**, such as high humidity combined with strong drying conditions.
|
| 125 |
|
| 126 |
+
---
|
| 127 |
|
| 128 |
+
### 📊 Dataset and training quality
|
| 129 |
|
| 130 |
+
- **Training set**: 1500 samples
|
| 131 |
+
- **Evaluation set**: 100 samples
|
| 132 |
+
- Class distribution: **30 % low / 40 % medium / 30 % high risk**
|
| 133 |
+
- No duplicates (train / eval / cross)
|
| 134 |
+
- 112 explicit borderline cases
|
| 135 |
|
| 136 |
+
Training details:
|
| 137 |
+
- Supervised Fine-Tuning (SFT)
|
| 138 |
+
- GPU: L4 (Google Colab)
|
| 139 |
+
- 3 epochs, stable convergence
|
| 140 |
|
| 141 |
+
---
|
| 142 |
|
| 143 |
+
### 🧪 Agronomic validity assessment
|
| 144 |
|
| 145 |
+
Based on targeted inference tests:
|
| 146 |
|
| 147 |
+
- **~85–90 % of decisions are agronomically valid**
|
| 148 |
+
- Remaining cases reflect **conservative but defensible choices**
|
| 149 |
+
- No biologically incoherent outputs observed
|
| 150 |
|
| 151 |
+
The model demonstrates reliable reasoning over humidity, rainfall, ETP, and phenological sensitivity.
|
| 152 |
|
| 153 |
+
---
|
| 154 |
|
| 155 |
+
### 🔧 Use cases
|
| 156 |
|
| 157 |
+
- Agronomic decision support
|
| 158 |
+
- Vineyard disease risk monitoring
|
| 159 |
+
- Automated pipelines (e.g. n8n)
|
| 160 |
+
- Open-source agronomic AI demonstration
|
| 161 |
|
| 162 |
+
⚠️ This model is an **assistive tool** and does not replace local expert judgment.
|
| 163 |
|
| 164 |
+
---
|
| 165 |
|
| 166 |
+
### 📌 Status
|
| 167 |
|
| 168 |
+
- Qualitatively validated
|
| 169 |
+
- Deployed on Hugging Face
|
| 170 |
+
- Ready for API and workflow integration
|
| 171 |
|
|
|
|
| 172 |
|
|
|