GithubHelp home page GithubHelp logo

final-capstone-project's Introduction

Introduction

Agriculture is an important sector in a our economy. Due to population growth, and effects of climate change there is need to adopt modern technologies to improve production, and sustain the current population. In this notebook, we apply computer vision for animal behavior monitoring and activity recoqnition. The project is divided into three stages which is object detection, classification and tracking. cow

Object detection

Training a model from scratch is computationally expensive, time consuming, and requires lots of iteration and several architecturial tweaks to give desirable results. Transfer learning is essential for our case, and requires only finetuning to detect and classify the objects we are intrested in.

The model weights of our project are trained on COCO dataset. COCO or common objects in context is a large-scale object detection, segmentation, and captioning dataset comprosing of 90 objects. Cows are part of this dataset, meaning the models are aware of our custom dataset. The advantage is we need little finetuning unlike building the neural network from scratch.

The models architecture comprises of convolution and dense layers optimized to give the best performance.Object detection networks are classified as multi-stage or single stage. Examples of single staged neural nets are the SSD, YOLO, etc. The multi staged approaches uses the region proposal networks in their architectures to extract feature maps from the backbone. Examples of multi stage networks are the RCNN and RFCN. architecure [Figure 1 adapted from https://medium.com/@hirotoschwert/digging-into-detectron-2-47b2e794fabd]

We use a two stage neural network for this project, FRCNN because parameters are shared between the two stages creating an efficient framework for detection. R-CNN models is a multi layered conv neural network and consists of the feature extractor, a region proposal algorithm to generate bounding boxes, a regression and classification layer. R-CNNs tradeoff their speed for accuracy. They are generally slow on CPUs compared to single stage detectors, albeit with high accuracy.

Tracking.

The initial concept was to keep track of animal behavior by the use of memory cells such as LSTM. However this is computationally expensive and opted for the use of Simple Online Realtime Tracking algorithm(SORT). SORT allows multiple object tracking(MOT) where each object is represented by a bounding box and attempts to associate the detections across frames in a video sequence. The algorithm utilizes Kalman filter for the prediction of the next object state. The caveat for using algorithm is occluded objects are not tracked, and will be assigned new tracking id on reentry. For our case in tracking the cattle, some of the cattle are retracked once they disappear in the field of view, or reappear.

Technologies

final-capstone-project's People

Contributors

denniesbor avatar

Stargazers

Sitwala avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.