On-Device Machine Learning for Real-Time Photo Beautification in Android
DOI:
https://doi.org/10.32996/jcsts.2025.7.91Keywords:
Real-time photo beautification, on-device machine learning, ONNX optimization, mobile neural networks, privacy-preserving image processingAbstract
On-device machine learning for photo beautification represents a paradigm shift in mobile photography applications, enabling real-time image enhancement without cloud dependencies. The implementation leverages ONNX Runtime Mobile and Android's Neural Networks API to deliver immediate, high-quality beautification effects directly on smartphones. Through sophisticated optimization techniques including quantization, operator fusion, and architectural modifications, the system overcomes traditional mobile hardware constraints while preserving visual quality. The modular pipeline architecture—comprising model conversion, runtime inference, and application integration components—ensures smooth operation across diverse Android devices from mid-range to flagship models. Extensive performance evaluations demonstrate significant advantages in processing speed, memory efficiency, power consumption, and thermal management compared to cloud-based alternatives. The solution addresses growing consumer demands for instantaneous, private image enhancement while eliminating network-dependent variability. User testing confirms substantial improvements in perceived image quality with imperceptible interface latency during continuous operation. This implementation establishes a foundation for privacy-first computational photography that effectively utilizes modern mobile hardware capabilities without compromising performance or battery life.