Malmö University Publications
1314151617181916 of 988
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Letter Recognition for Handwriting on Embedded System Using a Machine Learning Model
Malmö University, Faculty of Technology and Society (TS).
2025 (English)Independent thesis Basic level (university diploma), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

This thesis investigates the development and deployment of a lightweight machine learning model for real-time handwritten letter recognition on a highly resource-constrained embedded system, the ESP32-CAM microcontroller. The project explores two convolutional neural network (CNN) architectures: a quantized version of the pre-trained MobileNetV2 and a custom-designed SimpleCNN. Both models were adapted for efficient inference within the ESP32-CAM’s strict memory and processing limits. 

The system uses the EMNIST Letters dataset, with preprocessing and data augmentation to enhance model generalization across varying handwriting styles. The MobileNetV2 model achieved an F1 score of 87.4% with an inference time of 294 ms, while the SimpleCNN model reached 92.8% accuracy in a simulated environment before hardware deployment. On the other hand, the deployed model only utilizes around 20% of the ESP32-CAM's available RAM... there is potential to use a model up to five times larger, which could improve recognition performance. 

While the system shows that accurate handwritten letter recognition is feasible on embedded platforms, its scope is limited to uppercase letters and balanced datasets due to platform and training constraints. The results underscore the potential for using embedded deep learning in portable, assistive, and educational devices, provided that limitations in model size, training time, and dataset complexity are carefully managed. 

Keywords: Handwriting recognition, embedded systems, ESP32-CAM, convolutional neural networks (CNN), MobileNetV2, EMNIST dataset, model quantization, real-time inference, machine learning. 

Place, publisher, year, edition, pages
2025. , p. 61
Keywords [en]
Handwriting recognition, Embedded systems, ESP32-CAM, Machine learning, Convolutional Neural Networks (CNN), MobileNetV2, SimpleCNN, Real-time inference, EMNIST dataset, Model quantization, On-device AI, Lightweight neural networks, TinyML, Edge computing, Letter recognition, Python machine learning, Arduino ML Project, AI on resource-constrained devices, Computer vision embedded systems
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:mau:diva-77787OAI: oai:DiVA.org:mau-77787DiVA, id: diva2:1973329
Educational program
TS Datateknik och mobil IT
Supervisors
Examiners
Available from: 2025-07-04 Created: 2025-06-19 Last updated: 2025-07-04Bibliographically approved

Open Access in DiVA

fulltext(12392 kB)2 downloads
File information
File name FULLTEXT02.pdfFile size 12392 kBChecksum SHA-512
c172716fdf037574274771a9f973ee63d4458ad5da55caf60a8fb3a9f8e5d454e5253fcbe74bc7299b3253d56ec254c6dfc36fe7764bcde0f6a3fb5f89f8f1fb
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Hajjo, MohammadTang, Ba Duc
By organisation
Faculty of Technology and Society (TS)
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 2 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 21 hits
1314151617181916 of 988
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf