Medium Blog:
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 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 :
This dataset contains 5,100+ bee images annotated with location, date, time, subspecies, health condition, caste, and pollen
quick demo
- 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.
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 |
---|---|
- Building and hosting using FLASK.
honey_bees_classifier
├─ Dataset
├─ logger
├─ models
│ └─ eda
├─ static
│ ├─ css
│ ├─ images
│ └─ js
├─ subspecies_files
├─ templates
└─ uploads
-
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.
-
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.
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.