An Offline-First Mobile Application for Field Inspection in Intermittent Networks
Keywords:
offline-first computing; intermittent connectivity; field inspection; conflict-free replicated data types; mobile data synchronization; data integrityAbstract
Field inspection in infrastructure, environmental monitoring, and regulatory compliance often occurs where connectivity is intermittent, expensive, or absent for hours or days. Existing mobile form systems support local entry, but they rarely combine deterministic conflict semantics with deadline-aware upload scheduling, evidentiary integrity, and explicit handling of safety-critical fields. This paper develops a design and analytical framework for an offline-first mobile inspection application. The central contribution is a replicated inspection object model in which local edits are recorded as immutable operations, materialized locally, and synchronized as a join-semilattice of conflict-free replicated states. A priority scheduler ranks pending records using inspection criticality, deadline urgency, safety relevance, bandwidth cost, and energy cost, while a deterministic reconciliation rule resolves concurrent field-level updates through logical timestamps and unique identifiers. The architecture separates client-local storage, a sync engine, server ingestion, validation, and an audit ledger. Analytical expressions describe state merge, operation representation, synchronization priority, conflict ordering, expected delay under opportunistic contact, energy bounds, and batch selection under constrained upload. The framework clarifies why offline-first inspection differs from generic mobile form capture: records carry evidentiary value, some fields are safety-critical, media is large, and conflicts can imply divergent observations rather than benign edits. The design therefore combines local durability, causally consistent logs, explicit conflict classes, and integrity protection. Discussion identifies boundary conditions around clock trust, malicious devices, large media, and schema evolution. The manuscript provides a technically specific basis for implementing and analyzing offline-first inspection systems without assuming continuous connectivity or centralized coordination.
References
1. Satyanarayanan, M. (2001). Pervasive computing: Vision and challenges. IEEE Personal Communications, 8(4), 10–17.
2. Kistler, J. J., & Satyanarayanan, M. (1992). Disconnected operation in the Coda file system. ACM Transactions on Computer Systems, 10(1), 3–25.
3. Demers, A., Petersen, K., Spreitzer, M., Terry, D., Theimer, M., & Welch, B. (1994). The Bayou architecture: Support for data sharing among mobile users. In Proceedings of the Workshop on Mobile Computing Systems and Applications (pp. 2–7). IEEE.
4. Terry, D. B., Theimer, M. M., Petersen, K., Demers, A. J., Spreitzer, M. J., & Hauser, C. H. (1995). Managing update conflicts in Bayou, a weakly connected replicated storage system. In Proceedings of the 15th ACM Symposium on Operating Systems Principles (pp. 172–182). ACM.
5. Shapiro, M., Preguiça, N., Baquero, C., & Zawirski, M. (2011). Conflict-free replicated data types. In Proceedings of the 13th International Symposium on Stabilization, Safety, and Security of Distributed Systems (pp. 386–400). Springer.
6. Kleppmann, M., & Beresford, A. R. (2017). A conflict-free replicated JSON datatype. IEEE Transactions on Parallel and Distributed Systems, 28(10), 2733–2746.
7. DeCandia, G., Hastorun, D., Jampani, M., Kakulapati, G., Lakshman, A., Pilchin, A., Sivasubramanian, S., Vosshall, P., & Vogels, W. (2007). Dynamo: Amazon's highly available key-value store. In Proceedings of the 21st ACM Symposium on Operating Systems Principles (pp. 205–220). ACM.
8. Vogels, W. (2009). Eventually consistent. Communications of the ACM, 52(1), 40–44.
9. Fielding, R. T. (2000). Architectural styles and the design of network-based software architectures (Doctoral dissertation, University of California, Irvine).
10. Bernstein, P. A., & Goodman, N. (1984). An algorithm for concurrency control and recovery in replicated distributed databases. ACM Transactions on Database Systems, 9(4), 596–615.
11. Hartung, C., Lerer, A., Anokwa, Y., Tseng, C., Brunette, W., & Borriello, G. (2010). Open Data Kit: Tools to build information services for developing regions. In Proceedings of the 4th ACM/IEEE International Conference on Information and Communication Technologies and Development (pp. 1–12). ACM.
12. Anokwa, Y., Hartung, C., Brunette, W., Borriello, G., & Lerer, A. (2009). Open source data collection in the developing world. Computer, 42(10), 97–99.
13. Flinn, J., & Satyanarayanan, M. (1999). Energy-aware adaptation for mobile applications. In Proceedings of the 17th ACM Symposium on Operating Systems Principles (pp. 48–63). ACM.
14. Balasubramanian, N., Balasubramanian, A., & Venkataramani, A. (2009). Energy consumption in mobile phones: A measurement study and implications for network applications. In Proceedings of the 9th ACM SIGCOMM Conference on Internet Measurement (pp. 280–293). ACM.
15. Fall, K. (2003). A delay-tolerant network architecture for challenged internets. In Proceedings of the 2003 Conference on Applications, Technologies, Architectures, and Protocols for Computer Communications (pp. 27–34). ACM.
16. Lamport, L. (1978). Time, clocks, and the ordering of events in a distributed system. Communications of the ACM, 21(7), 558–565.
17. Fidge, C. J. (1988). Timestamps in message-passing systems that preserve the partial ordering. In Proceedings of the 11th Australian Computer Science Conference (Vol. 10, No. 1, pp. 56–66).
18. Pitoura, E., & Samaras, G. (1998). Data management for mobile computing. Kluwer Academic Publishers.
19. Enck, W., Ongtang, M., & McDaniel, P. (2009). Understanding Android security. IEEE Security & Privacy, 7(1), 50–57.
20. Kreps, J., Narkhede, N., & Rao, J. (2011). Kafka: A distributed messaging system for log processing. In Proceedings of the NetDB Workshop (pp. 1–7).
Downloads
Published
Issue
Section
License
Copyright (c) 2022 Artificial Intelligence and Machine Learning Systems

This work is licensed under a Creative Commons Attribution 4.0 International License.