Loading article...
Loading article...
Stream/Area:
-
Subject:
-
Paper ID:
IJSREM62762
Volume:
10 |
5 |
May 2026
Pages:
1-4
Publication Frequency:
Monthly (12 issues per year)
License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.
Department of Computer Science and Applications
KRT Arts, BH Commerce and AM Science College, Nashik
Department of Computer Science and Applications
KRT Arts, BH Commerce and AM Science College, Nashik
Handwritten mathematical symbol recognition is a challenging problem due to the high semantic importance of structural operators. While digit misclassification leads to minor numerical errors, incorrect classification of operators such as addition, multiplication, and division results in complete logical failure of expressions. Traditional convolutional neural networks (CNNs) rely on uniform loss functions that treat all errors equally, ignoring semantic importance. This paper proposes a cost-sensitive structural loss approach that assigns higher penalty weights (α) to operator classes. A lightweight CNN model was trained on a balanced subset of the HASYv2 dataset with varying weight coefficients (α = 2, 3, 5, 10). Experimental results show that moderate weighting significantly improves operator classification accuracy and reduces critical errors without degrading digit performance. However, excessive weighting introduces instability. These findings highlight the importance of incorporating semantic awareness into loss function design for reliable mathematical OCR systems.
KEYWORDS
This research demonstrates that standard uniform loss functions, such as Categorical Cross-Entropy, are insufficient for the high-stakes domain of Handwritten Mathematical Expression Recognition (HMER). While traditional Convolutional Neural Networks (CNNs) achieve high global accuracy, they remain unaware of the varying semantic costs associated with misclassifications. By introducing a Weighted Structural Loss framework, the network was successfully guided to prioritize the disambiguation of foundational mathematical operators over digits. Experimental results on a 15-class subset of the HASYv2 dataset confirm that: · Increasing the penalty weight to α = 3 effectively eliminates Semantic Disasters, · achieving 100% operator recognition accuracy. · The model maintains stable performance for digit classes, proving that semantic · prioritization does not inherently degrade general classification capabilities. · While rotation-based data augmentation introduced training instability, the weighted loss alone provided a robust and stable learning trajectory. In summary, this work demonstrates that incorporating semantic importance into loss function design significantly enhances the reliability of educational and automated evaluation tools, moving the field toward more context-aware artificial intelligence systems.
[1] Y. Lecun, L. Bottou, Y. Bengio, and P. Haffner, “Gradient-based learning applied to document recognition,” Proceedings of the IEEE, vol. 86, no. 11, pp. 2278–2324, 1998. [2] M. Thoma, “The hasyv2 dataset,” 2017. [3] X. Li and D. Zhu, “Crcen: A generalized cost-sensitive neural network approach for imbalanced classification,” 2020. [4] T.-Y. Lin, P. Goyal, R. Girshick, K. He, and P. Doll´ar, “Focal loss for dense object detection,” 2018. [5] Y. B. Kalpana and S. Benita P, “Handwritten mathematical expression recognition using deep learning techniques,” Journal of Neonatal Surgery, vol. 14, no. 32S, pp. 516–523, 2025.
Publication Date
5/7/2026
Peer Review Type
Double-Blind Peer Review
Review Rounds: 2
Documents
Article Views
1
Total views since publication
PDF Downloads
5
Total downloads since publication
Geographic Reach
5
Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.
Plagiarism Screening
This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.
Conflict of Interest
The authors declare no conflict of interest related to this research work.
Funding Information
No funding information available for this research.
Related research in the same subject area
Loading similar articles...