GithubHelp home page GithubHelp logo

michaelgsuttles / dog_breed_identification Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 255.59 MB

Using a convolutional neural network to identify a dog breed from a picture.

Jupyter Notebook 99.77% Shell 0.01% Python 0.23%

dog_breed_identification's Introduction

Dog Breed Identification - Michael Suttles

Introduction

  • Animal shelters around the country could benefit from a system that easily identifies a dog by its breed—especially in cases where the dog is a mixed breed.
  • I used a ResNet-50 convolutional neural network for image classification of dog breed. (See future work section.)
  • I used TensorFlow in Python to implement the CNN, and Shapley Additive Explanations (SHAP) to interpret the model.

Data Sources

  • I scraped Google Images for the dataset of 35 breed images
    • about 400 images per breed
  • I added the Stanford dog breed dataset images
    • 100-200 images per breed, but some breeds not included

Optimizing the algorithm

  • Tweak different parameters, including:
    • How large the image is that the CNN is finding features from? 244x244 pixels, 350x350, etc.
    • What do you do to the image? Crop, zoom, skew...
    • The structure of the “fully connected layers” at the end
    • How many times (“epochs”) it should run
  • Improved accuracy from 70% to 80% for 35 breeds

Results

  • 3 breed model: 95.7% accuracy
  • 35 breed model: 80% accuracy

How the neural net “sees” the image

alt text alt text

Future work

  • Implement a Densely Connected Convolutional Network instead of a ResNet-50, which has been shown to have a higher degree of accuracy.
  • Further refine model to account for errors (for example, along border of image).
  • Look into an ensemble model, which can result in higher accuracy.

For further information

dog_breed_identification's People

Contributors

michaelgsuttles avatar

Watchers

 avatar  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.