Skip to content

๐ŸŒพA modern deep-learning workspace for rice variety recognition using two benchmark datasets Aruzz and BDRice.

License

Notifications You must be signed in to change notification settings

Shourav-Deb/Rice-Vision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation


Web Development Showcase Banner

RiceVision Lab is a curated workspace exploring automated rice variety classification using modern computer-vision techniques. This project was created by me and my team, which analyzes two well-known rice datasets and compares six powerful CNN architectures to understand how models behave on both single-grain and multi-grain images.


๐ŸŽฏ Project Goals

  • Explore how different CNN architectures perform on single-grain vs multi-grain images
  • Understand the impact of augmentation on model generalization
  • Visualize attention patterns using Grad-CAM
  • Provide a clean and reusable workflow for other ML learners

๐Ÿ“ Datasets Used

1. Aruzz Dataset (20 varieties - single grain images)

A large-scale rice dataset featuring high-quality single-grain images.
๐Ÿ‘‰ Mendeley - Aruzz

2. BD Rice Dataset (8 categories - multiple grains per image)

Images captured from mixed environments with visible clusters of rice grains.
๐Ÿ‘‰ Mendeley - BD Rice

Both datasets were used in original and augmented forms for performance comparison.

๐Ÿง  Models Used (6 CNN Architectures)

This project evaluates six modern and diverse architectures:

  • ResNeXt50
  • DenseNet201
  • GhostNet
  • EfficientNetV2-S
  • NASNet-A-Large
  • Xception

Each model was trained using a unified PyTorch pipeline with identical hyperparameters for a fair comparison.

๐Ÿ““ Repository Contents

This repository is intentionally kept clean and lightweight. To help learners focus on the core workflow understanding, only demonstration is included:

โœ” Website Showcase

  • Open the ๐ŸŒพRice Vision web application in your browser.

  • Select the Grain Type from the sidebar:

    • Single Grain (Aruzz) โ†’ for single rice grain images
    • Multi Grain (BDRice) โ†’ for multi-grain images
  • Choose a model architecture:

    • EfficientNet-V2-S
    • DenseNet-201
    • ResNeXt50-32ร—4d
  • Upload one or more rice images using the Upload image(s) option.

    • Supported formats: .jpg, .png, .jpeg
  • For each uploaded image, the application shows:

    • Image name and preview
    • Predicted rice variety
    • Confidence score
    • Top 3 predictions displayed as confidence bars
  • A low-confidence warning is displayed if the prediction confidence is below the threshold.

  • Enable Grad-CAM (optional) to visualize image regions influencing the prediction.

  • Multiple images are processed sequentially for batch evaluation.

โœ” Visualizations Included

The repository includes all essential visual outputs generated during the experiments, providing a clear understanding of model behavior:

  • Training & Validation Accuracy/Loss Curves
  • Confusion Matrices
  • ROC-AUC & Precisionโ€“Recall Curves
  • Grad-CAM Heatmaps (Aruzz & BDRice)
  • Both Dataset Sample Image's

These visuals highlight learning patterns, model stability, and the specific grain features each model focuses on - making the entire workflow transparent and easy to interpret.


โš ๏ธ Important Display Notice:

  • This app is styled for Dark mode. Light theme may hide some UI elements.
  • Change via [Right Side โ‹ฎ โ†’ Settings โ†’ App Theme โ†’ Dark].

๐Ÿ† Highlight Findings (From the Experiments)

  • EfficientNetV2-S achieved the highest performance across both datasets
  • Reached 99.95% accuracy after augmentation
  • DenseNet201 and NASNet-A-Large also performed extremely well
  • Grad-CAM confirmed meaningful feature focus (grain edges, texture patterns)
  • Augmentation significantly improved generalization, especially for BD Rice
Dataset โ†“ / Model โ†’ ResNeXt50 DenseNet201 EfficientNet-V2-S NASNet-Large GhostNet Xception
Aruzz Original ๐ŸŸก Good ๐ŸŸก Good ๐ŸŸข Best ๐ŸŸ  Average ๐Ÿ”ด Weak ๐ŸŸก Good
Aruzz Augmented ๐ŸŸข Best ๐ŸŸข Best ๐ŸŸข Best ๐ŸŸก Good ๐ŸŸ  Average ๐ŸŸข Best
BDRice Original ๐ŸŸก Good ๐ŸŸก Good ๐ŸŸข Best ๐ŸŸ  Average ๐Ÿ”ด Weak ๐ŸŸก Good
BDRice Augmented ๐ŸŸข Best ๐ŸŸข Best ๐ŸŸข Best ๐ŸŸก Good ๐ŸŸ  Average ๐ŸŸข Best

๐Ÿ“ฆ Other Resources

To ensure the repository remains lightweight and easy to demonstrate, training notebooks, trained model checkpoints (.pth), and the full PDF report are intentionally omitted.

๐Ÿ“ฌ You can request them at: contact me


About

๐ŸŒพA modern deep-learning workspace for rice variety recognition using two benchmark datasets Aruzz and BDRice.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published