Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleMetrics
Research Article · Open access · Published 7 May 2024

A CNN-KNN Based Recognition of Online Handwritten Symbols within Physics Expressions Using Contour-Based Bounding Box (CBBS) Segmentation Technique

Ujwala Kolte1, Sachin Naik1 & Vidya Kumbhar2

Journal of Computer Science, Volume 20, Issue 7, pp. 783–792 · doi.org/10.3844/jcssp.2024.783.792

6,278 accesses3,248 downloads2 citations (Crossref)Metrics
Cite Check for updates

Abstract

The task of recognizing symbols poses a significant challenge owing to the wide variability in human handwriting. Complexity in terms of the structural representation of symbols used in physics expressions is a major challenge in the recognition process The emergence of online handwriting, fueled by the widespread adoption of handheld digital devices, particularly in educational contexts, highlights the critical importance of precise symbol recognition, especially in the teaching and learning process. In contemporary literature, there is a notable emphasis on LaTex sequencing, symbol recognition and parsing. However, deep learning continues to yield promising results in this domain. The convenience of user input provides benefits to e-learning applications. In this study, we propose three approaches for the recognition of physics symbols within physics expressions (1) A proposed Java user interface for taking input from the user, as convenience of user input provides benefits to e-learning applications. (2) Contour-based bounding box segmentation algorithm, which deals with broken symbols within physics expressions. (3) For recognition, we propose a Convolution Neural Network-K-Nearest Neighbor (CNN-KNN) recognition model, as CNN plays an important role in extracting features, which are further provided as input to the K-NN classifier using the dropout method. Combining these three approaches into a symbol recognition model provides state-of-arts results. Handwritten physics symbols were collected from 20 different writers and each writer has written 5 types of physics expressions under different categories like electric flux, Maxwell’s equations, inductance and pointing vector and moment of Interia. There were 25 classes identified from the 780 samples collected from the users. The recognition rate is identified using (1) Using CNN model, which shows an accuracy of 91.48 and (2) Using the proposed hybrid CNN-KNN model the accuracy reported is 98.06.

References

  1. Artieres, T., Marukatat, S., & Gallinari, P. (2007). Online Handwritten Shape Recognition Using Segmental Hidden Markov Models. IEEE Transactions on Pattern Analysis and Machine Intelligence, 29(2), 205–217. https://doi.org/10.1109/tpami.2007.38CrossrefGoogle Scholar
  2. Baró, A., Riba, P., Calvo-Zaragoza, J., & Fornés, A. (2019). From Optical Music Recognition to Handwritten Music Recognition: A baseline. Pattern Recognition Letters, 123, 1–8. https://doi.org/10.1016/j.patrec.2019.02.029CrossrefGoogle Scholar
  3. Bresler, M., Prua, D., & Hlavác, V. (2013). Modeling Flowchart Structure Recognition as a Max-Sum Problem. 2013 12th International Conference on Document Analysis and Recognition, 1215–1219. https://doi.org/10.1109/icdar.2013.246CrossrefGoogle Scholar
  4. Coquenet, D., Chatelain, C., & Paquet, T. (2023). End-to-End Handwritten Paragraph Text Recognition Using a Vertical Attention Network. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(1), 508–524. https://doi.org/10.1109/tpami.2022.3144899CrossrefGoogle Scholar
  5. Huang, B., Du, C., Zhang, Y., & Kechadi, M. T. (2006). A Hybrid HMM-SVM Method for Online Handwriting Symbol Recognition. Sixth International Conference on Intelligent Systems Design and Applications, 887–891. https://doi.org/10.1109/isda.2006.61CrossrefGoogle Scholar
  6. Jeon, H.-K., & Yang, C.-S. (2021). Enhancement of Ship Type Classification from a Combination of CNN and KNN. Electronics, 10(10), 1169. https://doi.org/10.3390/electronics10101169CrossrefGoogle Scholar
  7. Keshari, B., & Watt, S. (2007). Hybrid Mathematical Symbol Recognition Using Support Vector Machines. Ninth International Conference on Document Analysis and Recognition (ICDAR 2007), 859–863. https://doi.org/10.1109/icdar.2007.4377037CrossrefGoogle Scholar
  8. Kherdekar, V. A., Naik, S. A., & Bafna, P. (2023). A Segmentation-based Token Identification for Recognition of Audio Mathematical Expression. International Journal of Advanced Computer Science and Applications, 14(7), 298–303. https://doi.org/10.14569/ijacsa.2023.0140733CrossrefGoogle Scholar
  9. Lai, S.-H., Lepetit, V., Nishino, K., & Sato, Y. (Eds.). (2017). Computer Vision – ACCV 2016 (Vol. 10112). Springer Cham. https://doi.org/10.1007/978-3-319-54184-6CrossrefGoogle Scholar
  10. Le, A. D., Nguyen, H. D., Indurkhya, B., & Nakagawa, M. (2019). Stroke Order Normalization for Improving Recognition of Online Handwritten Mathematical Expressions. International Journal on Document Analysis and Recognition (IJDAR), 22(1), 29–39. https://doi.org/10.1007/s10032-019-00315-2CrossrefGoogle Scholar

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

Kolte, U., Naik, S. & Kumbhar, V. (2024). A CNN-KNN Based Recognition of Online Handwritten Symbols within Physics Expressions Using Contour-Based Bounding Box (CBBS) Segmentation Technique. Journal of Computer Science, 20(7), 783–792. https://doi.org/10.3844/jcssp.2024.783.792

Licence
CC BY 4.0
Issue
Volume 20, Issue 7
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
A CNN-KNN Based Recognition of Online Handwritten Symbols within Physics Expressions Using Contour-Based Bounding Box (CBBS) Segmentation TechniqueJournal of Computer Science · Volume 20, Issue 7 · pp. 783–792 · CC BY 4.0Download