A Comparative Study of Indian Food Image Classification Using K-Nearest-Neighbour and Support-Vector-Machines


  • Pathanjali C
  • Vimuktha E Salis
  • Jalaja G
  • Latha A






Food Classification, KNN (k-nearest-neighbour), SVM (Support Vector Machine), Template Matching


Food being the vital part of everyone’s lives, food detection and recognition becomes an interesting and challenging problem in computer vision and image processing. In this paper we mainly propose an automatic food detection system that detects and recognises varieties of Indian food. This paper uses a combined colour and shape features. The K-Nearest-Neighbour (KNN) and Support-Vector -Machine (SVM) classification models are used to classify the features. A comparative study on the performance of both the classification models is performed. The experimental result shows the higher efficiency of SVM classifier over KNN classifier.



[1] Marc BolaËœnos and Petia, “Simultaneous Food Localization and Recognitionâ€,arXiv:1604.07953v2(cs.CV),2017.

[2] Kiyoharu Aizawa, Yuto Maruyama, He Li, and Chamin Morikawa, “Food balance estimation by using personal dietary tendencies in a multimedia food logâ€, Multimedia, IEEE Transactions on, 15(8):2176– 2185, 2013.

[3] R. Szeliski, “Computer Vision: Algorithms and Applicationsâ€, Springer, 2011.

[4] D.A. Forsyth and J. Ponce, Computer Vision, “A Modern Approachâ€, Prentice Hall, 2003.

[5] JINHO KIM, BYUNG-SOO KIM and SILVIO SAVARESE, “Comparing Image Classification Methods: K-Nearest-Neighbor and Support-Vector-Machinesâ€, Applied Mathematics in Electrical and Computer Engineering, ISBN: 978-1-61804-064-0, pp133-138.

[6] Marc BolaËœnos, Mariella Dimiccoli, and Petia Radeva, “Towards story telling from visual life logging: An overviewâ€, arXiv preprint arXiv:1507.06120, 2015.

[7] L. Fei-Fei, R. Fergus and P. Perona, “Learning generative visual models from few training examples: an incremental Bayesian approach tested on101 object categoriesâ€, IEEE Computer Vision Pattern Recognition 2004, Workshop on Generative-Model Based Vision, 2004.

[8] http://opencvpythontutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_template_matching/py_template_matching.html

[9] A.Vedaldi and B. Fulkerson, “VLFeat: An Open and Portable Library of Computer Vision Algorithmsâ€, http://www.vlfeat.org/, 2008.

[10] Chris Ding and Xiaofeng He, “K-means Clustering via Principal Component Analysisâ€, Proceeding of International Conference Machine Learning, pp. 225-232, July 2004.

[11] Rafael G. Gonzales and Richard E. Woods, “Digital Image Processingâ€, Addison Wesley, 1992.

[12] Bremner D, Demaine E, Erickson J, Iacono J, Langerman S, Morin P, Toussaint G, “Output sensitive algorithms for computing nearest neighbor decision boundariesâ€, Discrete and Computational Geometry, pp. 593–604, 2005.

[13] Cover, T., Hart, P. , “ Nearest-neighbor pattern classification,

Information Theoryâ€, IEEE Transactions on, pp. 21-27, Jan 1967.

[14] Anchal Tomar , Anshika Nagpal, “Comparing Accuracy of K-Nearest-Neighbor and Support-Vector-Machines for Age Estimationâ€.

[15] Marios M. Anthimopoulos Lauro Gianola, Luca Scarnato, Peter Diem,and Stavroula G. Mougiakakou, “A Food Recognition System for Diabetic Patients Based on an Optimized Bag-of-Features Modelâ€, IEEE JOURNAL OF BIOMEDICAL AND HEALTH INFORMATICS, VOL. 18, NO. 4, pp1261-1271, JULY 2014.

[16] Hokuto Kagaya , Kiyoharu Aizawa and Makoto Ogawa, “Food Detection and Recognition Using Convolutional Neural Networkâ€.

[17]Niki Martinel, Gian Luca Foresti, and Christian Michelon, “Wide-Slice Residual Networks for Food Recognitionâ€.

[18] Nayan Kumar Konaje, Food recognition and calorie extraction using Bag-of-SURF and Spatial Pyramid Matching Methods.

[19]Parisa Pouladzadeh1, Shervin Shirmohammadi, and Tariku Arici, “Intelligent SVM Based Food Intake Measurement Systemâ€.

[20] Yoshiyuki Kawano and Keiji Yanai, “Real-time Mobile Food Recognition Systemâ€.

[21] Niki Martinel, Claudio Piciarelli, Christian Micheloni and Gian Luca Foresti , “A Structured Committee for Food Recognitionâ€.

[22] Simon Mezgec, Barbara KorouÅ¡i´c Seljak, “NutriNet: A Deep Learning Food and Drink Image Recognition System for Dietary Assessmentâ€.

View Full Article:

How to Cite

C, P., E Salis, V., G, J., & A, L. (2018). A Comparative Study of Indian Food Image Classification Using K-Nearest-Neighbour and Support-Vector-Machines. International Journal of Engineering & Technology, 7(3.12), 521–525. https://doi.org/10.14419/ijet.v7i3.12.16171
Received 2018-07-24
Accepted 2018-07-24
Published 2018-07-20