Skip to main content

MNIST Dataset Classification Utilizing k-NN Classifier with Modified Sliding-Window Metric

  • Conference paper
  • First Online:

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 944))

Abstract

The MNIST dataset of the handwritten digits is known as one of the commonly used datasets for machine learning and computer vision research. We aim to study a widely applicable classification problem and apply a simple yet efficient K-nearest neighbor classifier with an enhanced heuristic. We evaluate the performance of the K-nearest neighbor classification algorithm on the MNIST dataset where the L2 Euclidean distance metric is compared to a modified distance metric which utilizes the sliding window technique in order to avoid performance degradation due to slight spatial misalignments. The accuracy metric and confusion matrices are used as the performance indicators to compare the performance of the baseline algorithm versus the enhanced sliding window method and results show significant improvement using this proposed method.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    https://github.com/BehradToghi/kNN_SWin.

References

  1. Peterson, L.E.: K-nearest neighbor. http://scholarpedia.org/article/K-nearest_neighbor

  2. LeCun, Y., Cortes, C., Burges, C.J.C.: The MNIST Database of handwritten digits. http://yann.lecun.com/exdb/mnist/

  3. LeCunn, Y., et al.: Gradient-based learning applied to document recognition. Proc. IEEE 86(11), 2278–2324 (1998). http://yann.lecun.com/exdb/publis/pdf/lecun-98.pdf

    Article  Google Scholar 

  4. Glumov, N.I., Kolomiyetz, E.I., Sergeyev, V.V.: Detection of objects on the image using a sliding window mode. J. Opt. Laser Technol. 27 (1995). https://www.sciencedirect.com/science/article/pii/003039929593752D

    Article  Google Scholar 

  5. Pedregosa, F., et al.: Scikit-learn: machine Learning in Python J. Mach. Learn. Res. (2011). http://www.jmlr.org/papers/v12/pedregosa11a.html

  6. LeCunn, Y., et. al.: Refined MNIST dataset of handwritten digits. http://yann.lecun.com/exdb/mnist/

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Divas Grover .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Grover, D., Toghi, B. (2020). MNIST Dataset Classification Utilizing k-NN Classifier with Modified Sliding-Window Metric. In: Arai, K., Kapoor, S. (eds) Advances in Computer Vision. CVC 2019. Advances in Intelligent Systems and Computing, vol 944. Springer, Cham. https://doi.org/10.1007/978-3-030-17798-0_47

Download citation

Publish with us

Policies and ethics