Skip to content

Uttam580/Honey_Bees_Classifier

Repository files navigation

GitHub repo size GitHub language count GitHub top language GitHub last commit

Medium Blog:

Honey Bees Classifier

Objective:

In this project, the objective is to predict strength and health of honey bees. frequent check-ups on the hive are time-consuming and disruptive to the bees' workflow and hive in general. By understanding the bees we can understand hive itself.

* How can we improve our understanding of a hive through images of bees?

* How can we expedite the hive checkup process?

* How can bee image data help us recognize problems earlier?

* How can bee image data help us save our bees?

Dataset :

Dataset with adnotated images of bees from various locations of US, captured over several months during 2018, at different hours, from various bees subspecies, and with different health problems. Data has downloded form kaggle .Use Below link to download the dataset.

Dataset Link :

Honey Bees Data

This dataset contains 5,100+ bee images annotated with location, date, time, subspecies, health condition, caste, and pollen

quick demo

demo_gif

Technical Aspect

  1. Training a deep learning model using tensorflow. I trained model on local system using NVIDIA GEFORCE GTX 1650 for for two models (subSpecies Classifier and health_classifier). I have to train 5k images for both the models. Both models trained for 30 epochs and on 32 batch size.
To check if training is acelearted by gpu or not
import tensorflow as tf 

from tensorflow.python.client import device_lib

print(tf.test.is_built_with_cuda())

print(device_lib.list_local_devices())

Below is the neural network architect of trained model.

Subspecies model Health model
Subspecies model Health model
  1. Building and hosting using FLASK.

Directory Tree

honey_bees_classifier
├─ Dataset
├─ logger
├─ models
│  └─ eda
├─ static
│  ├─ css
│  ├─ images
│  └─ js
├─ subspecies_files
├─ templates
└─ uploads

Contents

  • Dataset : Contains raw data for training (images , csv )

  • logger : contains log file while training the model so that we can check the model perfomance after training.

  • models : contains model training script and trained model file

  • static : static part of UI

  • templates: frontend templates of UI

  • uploads : when images is uploaded it will save in uploads and will use for prediction.

  • standalone.py : simple standalone py script for prediction.

Installation

  • Clone this repository and unzip it.

  • create new env with python 3 and activate it .

  • Install the required packages using pip install -r requirements.txt

  • Execute the command: python app.py

  • Open http://127.0.0.1:5000/ in your browser.

Bug / Feature Request

If you find a bug (unable to initialize cudnn / or gave undesired results), kindly open an issue here by including your search query and the expected result.

Technologies Used

License

License: MIT

About

predict subspecies and health of honey bees

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published