You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Lightweight Attention-Enhanced CNN-SVM Hybrid Approach for Maize Leaf Disease Classification
A hybrid deep learning framework integrating MobileNetV2, Convolutional Block Attention Module (CBAM), and Support Vector Machine for robust maize leaf disease classification.
This repository presents a lightweight yet high-performance hybrid classification framework for automated maize leaf disease detection. The proposed architecture leverages a MobileNetV2 backbone enhanced with Convolutional Block Attention Module (CBAM) for discriminative feature extraction, followed by a Support Vector Machine (SVM) classifier operating on the learned feature representations. The system is designed to operate efficiently on resource-constrained environments while achieving state-of-the-art classification accuracy across multiple disease categories.
Key Features
Feature
Description
Lightweight Backbone
MobileNetV2 with ImageNet pre-trained weights for efficient feature extraction
Attention Mechanism
CBAM (Channel + Spatial Attention) for enhanced focus on disease-specific regions
The 128-dimensional feature vectors are extracted from the penultimate dense layer of the trained CNN. These embeddings serve as input to an SVM classifier with the following characteristics:
Feature Dimension: 128
Feature Shape (Train): (7,079, 128)
Feature Shape (Test): (891, 128)
Installation
Prerequisites
Python >= 3.8
TensorFlow >= 2.8
Keras >= 2.8
scikit-learn
NumPy, Pandas, Matplotlib, Seaborn
Setup
# Clone the repository
git clone https://github.com/Soyebsoyeb/Maize_Disease_Classification.git
cd Maize_Disease_Classification
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate# Install dependencies
pip install -r requirements.txt
Lightweight hybrid deep learning framework combining MobileNetV2, CBAM attention, and SVM for accurate maize leaf disease classification. Achieves ~99.4% accuracy on agricultural image datasets.