AI Model Predicts 4 Diseases Threatening Wheat in Morocco
Researchers have developed an AI model that combines machine learning and climate data to forecast four wheat diseases in Morocco early, with accuracy of up to 94%.
Researchers have developed an artificial intelligence model able to predict four major diseases threatening wheat crops in Morocco in advance, by combining machine learning algorithms with current and future climate data. The study, published in the Journal of Agriculture and Food Research, opens the door to early warning systems that could help farmers protect their harvests as climate disruption intensifies in Morocco.
How does the model work?
The research team relied on the Random Forest algorithm in artificial intelligence, supported by five nature-inspired optimization algorithms, together with future climate scenarios from the sixth generation of global climate comparison models (CMIP6). The results show that temperature and rainfall are the two factors with the greatest influence in predicting the risk of these diseases spreading.
The four diseases and forecast accuracy
| Disease | Best-performing algorithm | Forecast accuracy (AUC) |
|---|---|---|
| Powdery mildew | RF-GWO | 0.946 |
| Rust | RF-DE | 0.897 |
| Fusarium wilt | RF-GA | 0.836 |
| Blight | RF-GA | 0.833 |
Why this matters for Moroccan farmers
Wheat is a strategic crop in Morocco: it is the staple food of millions of families, and its production depends on climate swings and repeated droughts. The researchers believe AI-based early warning systems could let farmers carry out preventive interventions targeted by place and time, instead of broad, indiscriminate spraying, cutting both the cost of pesticides and their environmental impact.
The team stressed that climate alone is not enough to predict disease spread accurately, as other factors come into play: seed variety, the presence of pathogens in the soil, farm management practices, planting date and local humidity levels.
A step toward digital farming
The research comes amid a growing global trend to integrate artificial intelligence into agriculture, from risk mapping to smart irrigation and satellite image analysis. For Morocco, which relies heavily on rain-fed farming tied to rainfall, this kind of tool could be an additional lever to strengthen food security and reduce the losses caused each year by fungal diseases of wheat. Rolling these models out widely will depend on the availability of accurate field data and on cooperation between researchers and local agricultural services.

