GithubHelp home page GithubHelp logo

tamasino52 / dtw_based_mnist_classifier Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 13.28 MB

MNIST Classifier based on Dynamic time warping

Jupyter Notebook 100.00%
dtw dtw-algorithm classfication mnist-classification computer-vision

dtw_based_mnist_classifier's Introduction

DTW based MNIST Classifier

Environment

  • Windows 10
  • Python 3.6

Functional Description

  • As a pretreatment process for given image data first, otsu binary is applied, then contours are extracted through a closing morphological operation and the longest contour signal is separated by signals for the X- and Y-axes. Based on the similarity of each signal, the DTW distance of each axis's contour signal within the learning data is calculated, and a classifier is created to search for the least value data based on the square root of each axis and to select the label of the data as the predicted value of the test sample.

Contour Signal Plot

  • It is a plot that shows patterns of 20,000 learning data extracted through pre-processing process. In response to this test data, the most similar pattern is chosen as the predicted value.

Conclusion

Prediction Result

  • As a result of comparing 200 test data with 30000 learning data, 176 data projections were successful and the overall forecast rate was 88%.

Limits

  • This program is very slow because all learning data must be retrieved when predicting new data because it is predicted through CPU-based search using only vision techniques. Redesigned programs based on GPU could be a little faster, but this is not a fundamental solution. If you need to design a different model that takes performance into account in the future, you should preferably avoid a search-style model.

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.