Skip to content

thekripaverse/Wheat-Seed-Classification-Using-Support-Vector-Machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Wheat Seed Classification Using Support Vector Machine

Overview

This project implements a Support Vector Machine (SVM)–based classification model to identify different varieties of wheat seeds using their morphological characteristics. The workflow includes data cleaning, feature scaling, model training, and performance evaluation.

Objective

The main objectives of this project are:

  • To preprocess and clean real-world agricultural data
  • To build a multi-class classification model using SVM
  • To evaluate classification performance using standard metrics

Dataset Description

The dataset contains measurements of wheat seed kernels and their corresponding class labels.

Features

  • Area
  • Perimeter
  • Compactness
  • Length of kernel
  • Width of kernel
  • Asymmetry coefficient
  • Length of kernel groove

Target

  • Class (1, 2, 3): Represents three different wheat seed varieties

Technologies and Libraries

  • Python
  • Pandas
  • NumPy
  • Scikit-learn

Workflow

  1. Data Loading

    • Dataset loaded from CSV format.
  2. Data Inspection

    • Data types, missing values, and memory usage analyzed.
  3. Data Cleaning

    • Removal of unnamed and irrelevant columns.
  4. Feature Engineering

    • Separation of features and target variable.
    • Feature standardization using StandardScaler.
  5. Model Training

    • Data split into training and testing sets.
    • Support Vector Classifier (SVC) trained on the training data.
  6. Model Evaluation

    • Prediction on test data.
    • Accuracy-based performance evaluation.

Results

  • Classification Accuracy: 90.48%

Use Cases

  • Agricultural quality assessment
  • Automated crop variety identification
  • Precision agriculture applications
  • Machine learning classification benchmarking

Conclusion

The Support Vector Machine model demonstrated strong performance in classifying wheat seed varieties using morphological features. Proper feature scaling played a key role in achieving reliable classification accuracy.

Future Enhancements

  • Hyperparameter tuning using GridSearchCV
  • Kernel comparison (linear, RBF, polynomial)
  • Cross-validation for robustness
  • Confusion matrix and detailed classification report analysis

About

Multi-class classification of wheat seed varieties using Support Vector Machine with standardized morphological features.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors