A Comparative Study of Machine Learning and Deep Learning Approaches for Handwritten Sanskrit Recognition

Main Article Content

Shraddha V. Shelke
Dinesh M. Chandwadkar
Sunita P. Ugale
Rupali V. Chothe

Abstract

Sanskrit holds immense historical, cultural, and scientific value, with many handwritten manuscripts preserving knowledge in philosophy and traditional medicine like Ayurveda. It is essential to digitize these materials to preserve this legacy and provide broader access. Handwritten Sanskrit recognition remains an underexplored yet essential area within Optical Character Recognition (OCR), largely due to the complexity of the script. Elements such as the Shirolekha (headline), compound characters, modifiers, and irregular character boundaries contribute to the difficulty of accurate recognition. This paper presents a comprehensive study of classical and contemporary techniques adopted for Sanskrit and Devanagari script recognition. The study explores machine learning methods such as Support Vector Machines (SVM), k-Nearest Neighbors (KNN), and Hidden Markov Models (HMM), alongside modern deep learning models including CNNs, LSTMs, Bidirectional LSTMs, and CapsNet. The analysis shows that while traditional methods work well with limited data, deep learning approaches achieve higher accuracy, like CNN-based architectures, which reach up to 99.65% but require substantially larger datasets and risk overfitting. A key finding is that most existing research focuses on isolated characters, leaving word-level recognition and complex conjuncts largely unaddressed. Persistent issues such as image noise, overlapping characters, and the lack of large-scale Sanskrit word datasets continue to hinder progress. This study highlights existing gaps and proposes future directions, emphasizing the need for hybrid deep learning models, linguistic context via NLP, and benchmark datasets for improved OCR systems.

Article Details

How to Cite
[1]
S. V. Shelke, D. M. Chandwadkar, S. P. Ugale, and R. V. Chothe, “A Comparative Study of Machine Learning and Deep Learning Approaches for Handwritten Sanskrit Recognition”, ECTI-CIT Transactions, vol. 20, no. 3, pp. 449–461, Jun. 2026.
Section
Research Article

References

R. Jayadevan, S. R. Kolhe, P. M. Patil and U. Pal, “Offline Recognition of Devanagari Script: A Survey,” in IEEE Transactions on Systems, Man, and Cybernetics, Part C (Applications and Reviews), vol. 41, no. 6, pp. 782-796, Nov. 2011.

S. P. Deore and A. Pravin, “Devanagari Handwritten Character Recognition using fine-tuned Deep Convolutional Neural Network on trivial dataset,” S¯adhan¯a, vol. 45, p. 243, 2020.

S. I. K. and B. Chatterjee, “Machine recognition of constrained hand printed Devanagari,” Pattern Recognition, vol. 9, no. 2, pp. 69–75, 1977.

M. Avadesh and N. Goyal, “Optical Character Recognition for Sanskrit Using Convolution Neural Networks,” 2018 13th IAPR International Workshop on Document Analysis Systems (DAS), Vienna, Austria, pp. 447-452, 2018.

R. Dineshkumar and J. Suganthi, “A Research Survey on Sanskrit Offline Handwritten Character Recognition,” International Journal of Scientific and Research Publications, vol. 3, no. 1, 2013.

A. Moudgil, S. Singh, V. Gautam, S. Rani and S. H. Shah, “Handwritten devanagari manuscript characters recognition using capsnet,” International Journal of Cognitive Computing in Engineering, vol. 4, pp. 47–54, 2023. 459

P. K. Singh, R. Sarkar, N. Das, S. Basu and M. Nasipuri, “Statistical comparison of classifiers for script identification from multi-script handwritten documents,” International Journal of Applied Pattern Recognition, vol. 1, no. 2, pp. 152–172, 2014.

S. S. Kumar and S. M. Kumar, “Opportunities and Challenges of Handwritten Sanskrit Character Recognition System,” International Journal on Future Revolution in Computer Science & Communication Engineering, vol. 3, no.7, pp. 18-22, 2017.

S. Singh and N. K. Garg, “Review of Optical Devanagari Character Recognition Techniques,” in Intelligent System Design , Springer, pp. 97106, 2020.

R. Jayadevan, S. R. Kolhe, P. M. Patil and U. Pal, “Database Development and Recognition of Handwritten Devanagari Legal Amount Words,” 2011 International Conference on Document Analysis and Recognition, Beijing, China, pp. 304-308, 2011.

S. Kumar, “A study for handwritten Devanagari word recognition,” 2016 International Conference on Communication and Signal Processing (ICCSP), Melmaruvathur, India, pp. 1009-1014, 2016.

B. B. Chaudhuri and U. Pal, “Skew angle detection of digitized Indian script documents,” in IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 19, no. 2, pp. 182-186, Feb. 1997.

A. Chaudhary and R. L. Choker, “Handwritten Hindi numeric character recognition and comparison of algorithms,” 2017 7th International Conference on Cloud Computing, Data Science & Engineering Confluence, Noida, India, pp. 13-16, 2017.

S. Arora, D. Bhatcharjee, M. Nasipuri and L. Malik, “A Two Stage Classification Approach for Handwritten Devnagari Characters,” International Conference on Computational Intelligence and Multimedia Applications (ICCIMA 2007), Sivakasi, India, pp. 399-403, 2007.

U. Garain and B. B. Chaudhuri, “Segmentation of touching characters in printed Devnagari and Bangla scripts using fuzzy multifactorial analysis,” Proceedings of Sixth International Conference on Document Analysis and Recognition, Seattle, WA, USA, pp. 805-809, 2001.

B. Shaw, S. K. Parui and M. Shridhar, “Offline Handwritten Devanagari Word Recognition: A Holistic Approach Based on Directional Chain Code Feature and HMM,” 2008 International Conference on Information Technology, Bhubaneswar, India, pp. 203-208, 2008.

S. B. Patil, G. R. Sinha and V. S. Patil, “Isolated Handwritten Devnagri Numeral Recognition Using HMM,” 2011 Second International Conference on Emerging Applications of Information Technology, Kolkata, India, pp. 185-189, 2011.

B. Shaw, S. K. Parui and M. Shridhar, “Offline handwritten Devanagari word recognition: A segmentation based approach,” 2008 19th International Conference on Pattern Recognition, Tampa, FL, USA, pp. 1-4, 2008.

N. Dwivedi, K. Srivastava and N. Arya, “Sanskrit word recognition using Prewitt’s operator and support vector classification,” 2013 IEEE International Conference ON Emerging Trends in Computing, Communication and Nanotechnology (ICECCN), Tirunelveli, India, pp. 265269, 2013.

S. S. Nair and P. R. J. Thangaiah, “A Novel Approach: CNN-RNN and Bi-GRU for Handwritten Character Recognition,” SSRG International Journal of Electronics and Communication Engineering, vol. 11, no. 1, Jan. 2024.

T. Karayil, A. Ul-Hasan and T. M. Breuel, “A segmentation-free approach for printed Devanagari script recognition,” in 2015 13th International Conference on Document Analysis and Recognition (ICDAR), pp. 946950, 2015.

P. Gupta, S. Deshmukh, S. Pandey, K. Tonge, V. Urkunde and S. Kide, “Convolutional Neural Network based Handwritten Devanagari Character Recognition,” 2020 International Conference on Smart Technologies in Computing, Electrical and Electronics (ICSTCEE), Bengaluru, India, pp. 322-326, 2020.

Y. Gurav, P. Bhagat, R. Jadhav and S. Sinha, “Devanagari Handwritten Character Recognition using Convolutional Neural Networks,” 2020 International Conference on Electrical, Communication, and Computer Engineering (ICECCE), Istanbul, Turkey, pp. 1-6, 2020.

S. K. Parui and B. Shaw, ”Offline handwritten devanagari word recognition: An HMM based approach,” in Proceedings of International Conference on Pattern Recognition and Machine Intelligence (PReMI), Springer, 2007.

S. V. Shelke, D. M. Chandwadkar, S. P. Ugale and R. V. Chothe, “Combining Multiple Feature Extraction and Classification Methods to Study Performance of Handwritten Sanskrit Character Recognition,” 2023 7th International Conference On Computing, Communication, Control And Automation (ICCUBEA), Pune, India, pp. 1-6, 2023

V. A. Raj, R. L. Jyothi and A. Anilkumar, “Grantha script recognition from ancient palm leaves using histogram of orientation shape context,” 2017 International Conference on Computing Methodologies and Communication (ICCMC), Erode, India, pp. 790-794, 2017.

S. Arora, D. Bhattacharjee, M. Nasipuri and D. K. Basu, “Recognition of Non-Compound Handwritten Devnagari Characters using a Combination of MLP and Minimum Edit,” International Journal of Computer Science and Security, vol. 4, no. 1, pp. 1–14, 2010.

S. V. Shelke, A. H. Dhangare and S. D. Patil, “Handwritten Character Recognition using Wavelet Transform for Feature Extraction,” International Journal of Multidisciplinary Educational Research, vol. 3, no. 7, pp. 118–121, 2014.

J. P. S. and N. G. Chitaliya, “Machine Learning and Deep Learning Approaches for Sanskrit Character Recognition,” Journal of Xi’an Shiyou University, vol. 15, no. 3, pp. 48–54, 2019.

S. Pal, M. Blumenstein and U. Pal, “Hindi OffLine Signature Verification,” 2012 International Conference on Frontiers in Handwriting Recognition, Bari, Italy, pp. 373-378, 2012.

K. V. Kale, P. D. Deshmukh, M. M. Kazi and Y. S. Rode, “Zernike Moment Feature Extraction for Handwritten Devanagari (Marathi) Compound Character Recognition,” International Journal of Advanced Research in Artificial Intelligence, vol. 3, no. 1, pp. 68–76, 2014.

S. Patil, G. R. Sinha and V. S. Patil, “Isolated handwritten Devnagri Numeral recognition using HMM,” in Proceedings of International Conference on Emerging Applications of Information Technology, pp. 185–189, 2011.

P. Yawalkar and M. U. Kharat, “Recognition of Hand Written Devnagri Characters Using Effective Thinning and Fuzzy Logic,” Journal of Advanced Research in Dynamical & Control Systems, vol. 10, no. 15, 2018.

S. Acharya, A. K. Pant and P. K. Gyawali, “Deep learning based large scale handwritten Devanagari character recognition,” 2015 9th International Conference on Software, Knowledge, Information Management and Applications (SKIMA), Kathmandu, Nepal, pp. 1-6, 2015.

A. K. Pant, S. P. Panday and S. R. Joshi, “Off-line Nepali handwritten character recognition using Multilayer Perceptron and Radial Basis Function neural networks,” 2012 Third Asian Himalayas International Conference on Internet, Kathmundu, Nepal, pp. 1-5, 2012.

V. M. Lomte and D. D. Doye, “Handwritten Vedic Sanskrit Text Recognition Using Deep Learning,” Journal of Algebraic Statistics, vol. 13, no. 3, pp. 2190–2198, 2022.

U. Pal, M. Mitra and B. B. Chaudhuri, “Multiskew detection of Indian script documents,” Proceedings of Sixth International Conference on Document Analysis and Recognition, Seattle, WA, USA, pp. 292-296, 2001.

S. V. Shelke and D. M. Chandwadkar, “Automatic System for Recognition of Handwritten Character using Multiscale Neural Network,” International Journal of Computer Applications, vol. 6, 2022.

S. Kubatur, M. Sid-Ahmed and M. Ahmadi, “A neural network approach to online Devanagari handwritten character recognition,” 2012 International Conference on High Performance Computing & Simulation (HPCS), Madrid, Spain, pp. 209-214, 2012.

S. V. Shelke and D. M. Chandwadkar, “Handwritten Devnagri Character Recognition,” GRD Journal for Engineering, vol. 1, no. 5, pp. 67–70, Apr. 2016.

K. U. Sharma and A. A. Ugwekar, “English transcription of sanskrit characters using predefined templates,” 2017 Second International Conference on Electrical, Computer and Communication Technologies (ICECCT), Coimbatore, India, pp. 1-4, 2017.

S. P. Patil and K. N. Jariwala, “Handwritten English, Marathi and Sanskrit Word Recognition Using Artificial Neural Network And Feature Extraction,” International Journal of Advances in Science, Engineering and Technology (IJASEAT), vol. 6, no. 2, pp. 4–7, 2018.

V. More, M. Kharat and S. Gumaste, “Segmentation Of Devanagari Handwritten Text Using Feature Extraction,” International Journal of Scientific & Technology Research, vol. 9, no. 3, pp. 6594–6605, 2020.

J. Sachdeva and S. Mittal, “Handwritten Offline Devanagari Compound Character Recognition Using CNN,” in Proceedings of Data Analytics and Management, Springer, pp. 211-220, 2021.

N. Azawi, “Handwritten digits recognition using transfer learning,” Computers and Electrical Engineering, vol. 106, p. 108604, Jan. 2023.

P. P. Nair, A. James, P. Simon and P. V. Bhagyasree, “Malayalam Handwritten Character Recognition using CNN Architecture,” Indonesian Journal of Electrical Engineering and Informatics, vol. 11, no. 3, pp. 764–777, Sep. 2023.

S. V. Shelke, “Discrete wavelet transform and convolutional neural network based handwritten Sanskrit character recognition,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 38, no. 2, pp. 1367–1375, 2025.

A. Pradhan, “India to digitize scripts,” Times of India, May 9, 2014. [Online]. Available: https://timesofindia.indiatimes. com/india/india-to-digitize-scripts/ articleshow/34844112.cms