Engineering decision
Local-first AI architecture
HealthCam keeps sensitive video capture and AI inference on the user’s machine, while the cloud handles authentication, dashboards, configuration, telemetry storage, and product experience.
Context
HealthCam processes sensitive webcam data and runs computer vision analyzers that may require significant compute. Sending raw video to the cloud would increase privacy risk, infrastructure cost, and latency.
Decision
I designed the platform so video capture and AI inference run locally on the user’s machine. The cloud is responsible for user accounts, dashboards, configuration, telemetry storage, and the overall product experience.
Why
- Privacy: raw webcam and video data does not need to leave the user’s machine.
- Scalability: inference compute is distributed across user devices instead of centralized on the server.
- Cost: the cloud does not need to continuously process expensive video workloads.
- Flexibility: different analyzers can run close to the hardware and use local resources.
Trade-offs
- The local agent must handle different operating systems, hardware, dependencies, and device permissions.
- Users need to install and run a local agent instead of using a fully cloud-based app.
- Not every analyzer works on every device. For example, CUDA-dependent modules cannot run on a Mac without NVIDIA GPU support.
Result
This architecture makes HealthCam more privacy-preserving and economically scalable, while turning the local agent into a core part of the product rather than a simple helper script.