Analogizing Time Complexity of KNN and CNN in Recognizing Handwritten Digits

被引:0
|
作者
Makkar, Tanya [1 ]
Kumar, Yogesh [2 ]
Dubey, Ashwani Kr [2 ]
Rocha, Alvaro [3 ]
Goyal, Ayush [4 ]
机构
[1] Amity Univ Uttar Pradesh, Amity Sch Engn & Technol, Dept Comp Sci, Noida, India
[2] Amity Univ Uttar Pradesh, Amity Sch Engn & Technol, Dept ECE, Noida, India
[3] Univ Coimbra, Dept Informat Engn, Coimbra, Portugal
[4] Texas A&M Univ, Elect & Commun Engn, Kingsville, TX USA
关键词
handwritten digit recognizer; MNIST digit dataset; K nearest neighbor (KNN); convolutional neural network (CNN); LeNet architecture;
D O I
暂无
中图分类号
TM [电工技术]; TN [电子技术、通信技术];
学科分类号
0808 ; 0809 ;
摘要
Handwritten identification of digit, analysis of pattern has been a major area of research in the field of character recognition. Several models are formed by changing various values of weights when applied through the neural network. The paper analyzes the study of time complexity in two different algorithms KNN and CNN. The K-Nearest Neighbor Algorithm is used as a classifier capable of computing the Euclidean distance between data set input images. The dataset is fetched for training through neural network contains various (28 x 28) pixel size images and therefore, our first layer of neural network contains 784 neurons as input. We will analyze these images by varying values so as to obtain output layer of our network 10 neurons, each neuron if fixed gives any output between 0 to 9. After reading in data appropriately from MNIST and testing it on Gaussian distribution, KNN classifier then presented the result with Python tool. So, to avoid such a long waiting another algorithm Convolutional Neural Networks has been used. CNN has been implemented on Keras including Tensorflow and produces accuracy. It is then shown that KNN and CNN perform competitively with their respective algorithm on this dataset, while CNN produces high accuracy than KNN and hence chosen as a better approach.
引用
收藏
页码:182 / 187
页数:6
相关论文
共 29 条
  • [1] A novel hybrid CNN-SVM classifier for recognizing handwritten digits
    Niu, Xiao-Xiao
    Suen, Ching Y.
    PATTERN RECOGNITION, 2012, 45 (04) : 1318 - 1325
  • [2] Recognizing handwritten digits using hierarchical products of experts
    Mayraz, G
    Hinton, GE
    IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 2002, 24 (02) : 189 - 197
  • [3] New efficient algorithm for recognizing handwritten Hindi digits
    El-Sonbaty, Y
    Ismail, MA
    Karoui, K
    DOCUMENT RECOGNITION AND RETRIEVAL IX, 2002, 4670 : 68 - 73
  • [4] AMachine Learning and Deep Learning Approach for Recognizing Handwritten Digits
    Sharma, Ayushi
    Bhardwaj, Harshit
    Bhardwaj, Arpit
    Sakalle, Aditi
    Acharya, Divya
    Ibrahim, Wubshet
    COMPUTATIONAL INTELLIGENCE AND NEUROSCIENCE, 2022, 2022
  • [5] Recognizing handwritten digits using a convolutional neural network and TensorFlow library
    Teodorescu, Paul
    ROMANIAN JOURNAL OF INFORMATION TECHNOLOGY AND AUTOMATIC CONTROL-REVISTA ROMANA DE INFORMATICA SI AUTOMATICA, 2019, 29 (04): : 47 - 62
  • [6] Class-Adaptive Zoning Methods for Recognizing Handwritten Digits and Characters
    Impedovo, D.
    Pirlo, G.
    2015 13TH IAPR INTERNATIONAL CONFERENCE ON DOCUMENT ANALYSIS AND RECOGNITION (ICDAR), 2015, : 36 - 40
  • [7] Historical digit recognition using CNN: a study with English handwritten digits
    Rakshit, Payel
    Mukherjee, Himadri
    Halder, Chayan
    Obaidullah, Sk Md
    Roy, Kaushik
    SADHANA-ACADEMY PROCEEDINGS IN ENGINEERING SCIENCES, 2024, 49 (01):
  • [8] Historical digit recognition using CNN: a study with English handwritten digits
    Payel Rakshit
    Himadri Mukherjee
    Chayan Halder
    Sk Md Obaidullah
    Kaushik Roy
    Sādhanā, 49
  • [9] CNN for Handwritten Arabic Digits Recognition Based on LeNet-5
    El-Sawy, Ahmed
    EL-Bakry, Hazem
    Loey, Mohamed
    PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON ADVANCED INTELLIGENT SYSTEMS AND INFORMATICS 2016, 2017, 533 : 566 - 575
  • [10] Multiple classifiers fusion and CNN feature extraction for handwritten digits recognition
    Zhao, Hui-huang
    Liu, Han
    GRANULAR COMPUTING, 2020, 5 (03) : 411 - 418