AgriSentry Maize Disease Classifier
A CNN-based disease classification model for maize crops, part of the AgriSentry diagnostic system.
Model Details
Model Description
This is a TensorFlow CNN model trained to classify diseases in maize plants. It identifies three common maize diseases and healthy crop status.
- Model type: Convolutional Neural Network (CNN)
- Framework: TensorFlow/Keras
- Task: Image Classification
- Input: RGB images (224x224 pixels)
- Output: Disease classification with confidence scores
Supported Classes
- Healthy: No disease detected
- Common Rust: Common rust fungal infection
- Northern Corn Leaf Blight: NCLB fungal disease
- Gray Leaf Spot: Gray spot fungal disease
Model Features
- Input resolution: 224x224 RGB images
- Optimized for corn/maize field conditions
- Fast inference suitable for mobile/edge deployment
- Confidence scores for each prediction
Usage
Via Hugging Face Inference API
from huggingface_hub import InferenceClient
client = InferenceClient(model="your-username/agrisentry-maize-disease-classifier")
# Load image and send for inference
with open("maize_leaf.jpg", "rb") as f:
result = client.image_classification(f)
print(result)
Via Python (TensorFlow)
import tensorflow as tf
from PIL import Image
import numpy as np
model = tf.keras.models.load_model('maize_cnn.h5')
img = Image.open('maize_leaf.jpg').resize((224, 224))
img_array = np.array(img) / 255.0
prediction = model.predict(np.expand_dims(img_array, axis=0))
Training Data
- Collected from maize-growing regions
- Augmented with rotation, zoom, and brightness variations
- Balanced across disease classes
Performance
- Accuracy: ~96% on validation set
- Optimized for real-world field images
Limitations
- Best performance with well-lit, close-up leaf images
- May require model fine-tuning for new disease variants
- Designed specifically for maize crops
License
MIT License - See LICENSE file for details
Citation
If you use this model, please cite:
@model{agrisentry_maize_2026,
title={AgriSentry Maize Disease Classifier},
author={AgriSentry Team},
year={2026}
}
Disclaimer
This model is a diagnostic tool and should not replace professional agricultural consultation. Always verify results with domain experts.
- Downloads last month
- 12
Inference Providers
NEW
This model isn't deployed by any Inference Provider.
🙋
Ask for provider support