Automated Expiration Date Extraction from Official Documents: A Real-Time OCR-Based Mobile System
Abstract
Forgetting the expiration dates on official documents can lead to serious problems. These problems can be both legal and financial, and they can also affect daily life. The reminder apps currently in use aim to solve this problem. Margin of error and security vulnerabilities in the management of document validity processes constitute significant risk factors. However, these apps require users to enter information manually. This dependency introduces substantial operational friction, increasing the susceptibility to data entry errors and driving high application abandonment rates. To resolve these issues, the Flutter-based DocGuard mobile application, integrating on-device OCR with a layout-aware heuristic algorithm, was developed to automate and secure data entry, and its performance was evaluated. The developed DocGuard application presents a validated, novel approach that aims to eliminate these risks and prioritizes client-side data privacy. The study’s contribution to the literature consists of three main parts. First, a Layout-Aware Sequence Heuristic (LASH) scoring algorithm capable of reliable date detection across standard structured and semi-structured official documents was designed using the Google ML Kit OCR infrastructure. Second, a privacy architecture prioritizing local processing was established, ensuring closed-loop, strict data confidentiality through standard PBKDF2-HMAC-SHA256 key derivation and AES-256 Client-Side Encryption (CSE) methods optimized for mobile edge devices. The system’s performance was tested using a 5-fold cross-validation method on a balanced dataset consisting of 500 real and open-source documents. The proposed LASH algorithm outperforms standard OCR methods, achieving an exact match accuracy of 94.0% (± 1.2%) for structured documents and 82.0% (± 2.1%) for unstructured documents. Additionally, a statistically significant (p < 0.001) reduction of 70–75% in manual processing time was recorded for users. Although there are some structural limitations in analyzing complex structures and handwriting that require human verification, the findings demonstrate that DocGuard offers a scalable, privacy-preserving digital document lifecycle infrastructure applicable across a wide range of areas, from corporate compliance processes to fintech KYC verifications.
Keywords
- Client-Side Encryption
- Document Lifecycle Management
- Mobile Edge Computing
- OCR Heuristics
- Image Process
Supporting Institution
Ethical Statement
References
- Chen, J., & Ran, X. (2019). Deep learning with edge computing: A review. Proceedings of the IEEE, 107(8), 1655-1674. https://doi.org/10.1109/JPROC.2019.2921977
- Chen, Y., Yang, Y., Zeng, Z., Bu, H., Yun, C., Wei, B., Liu, K., Liang, C., Lin, D., & Xu, M. (2024). Fine-Grained Layout-Aware Information Extraction for Imaged Documents. In: Proceedings of the 2024 6th International Academic Exchange Conference on Science and Technology Innovation (IAECST) (pp. 504-509), 06-08 December 2024, Guangzhou, China. https://doi.org/10.1109/IAECST64597.2024.11118108
- Chouke, A., Jain, V. K., Parmar, J., Shukla, S.S.P., & Verma, A. K. (2025). Identity Verification: A Decentralized KYC Approach Using Blockchain. In: S. Joshi, A. K. Bairwa, M. Radenkovic, & A. Pljonkin (Eds.), Proceedings of the Second International Conference on Cyber Warfare, Security and Space Computing. SpacSec 2024. Communications in Computer and Information Science (Vol. 2195, pp. 252–264). 22–23 February 2024, Jaipur, India. https://doi.org/10.1007/978-3-031-73494-6_19
- Dissanayaka, D. M. R. O., Salgado, M. B. D., Udayar, R. S., & Muhammadh, Z. H. (2024). Review paper on the End-to-End encryption technique used in Social media applications. In: V. Sokolov, V. Ustimenko, T. Radivilova, & M. Nazarkevych (Eds.), Proceedings of the Cybersecurity Providing in Information and Telecommunication Systems II (CPITS-II 2024), 26 October 2024, Kyiv, Ukraine. CEUR Workshop Proceedings (Vol. 3826, pp. 1-6).
- Dospinescu, O., Grigorcea, G.-L., & Lefter, B.-I. (2025). A Mobile Approach to Food Expiration Date Determination Using OCR and On-Cloud Image Classification. Applied System Innovation, 8(6), 176. https://doi.org/10.3390/asi8060176
- Emel, M. H., Terzioğlu, M., & Özkan, R. (2024). Efficient and Accurate Date Extraction from Invoices: A Comprehensive Three-Step Methodology Integrating Custom Object Detection, OCR, and Refined Regular Expressions. Advances in Artificial Intelligence Research, 4(1), 10-17. https://doi.org/10.54569/aair.1401234
- Google. (2024). Firebase authentication overview. Firebase Documentation. Accessed May 10, 2026, from https://firebase.google.com/docs/auth
- Google. (2025a). Google ML Kit Vision API: Text recognition. Google Developers. Accessed May 10, 2026, from https://developers.google.com/ml-kit/vision/text-recognition
Details
Primary Language
English
Subjects
Image Processing, Edge Computing
Journal Section
Research Article
Early Pub Date
September 25, 2026
Publication Date
September 30, 2026
Submission Date
June 5, 2026
Acceptance Date
August 19, 2026
Published in Issue
Year 2026 Volume: 13 Number: 3