For products like pet feeders and pet water dispensers, building accurate pet profiles is not only critical for correctly identifying and recording abnormal pet behavior, but also the core foundation for achieving personalized, intelligent, and health-conscious feeding. However, at present, due to the lack of an effective image quality filtering mechanism, user-uploaded images commonly suffer from quality issues. If the system fails to effectively intercept them, low-quality pet profiles will bring a catastrophic user experience to the subsequent use of pet devices.
Types of Low-Quality Images Uploaded by Users

To help developers overcome challenges such as difficult biometric data collection, low recognition accuracy, multi-pet interference, and privacy security risks — at low barrier and low cost — Tuya provides an efficient pet image quality detection solution based on its powerful On-App AI architecture. By deeply integrating AI technology, the system can simultaneously complete pet image recognition and anomaly filtering within 1 second, achieving fast and precise image quality assessment. Moreover, this solution directly intercepts low-quality images uploaded by users without requiring cloud-side detection and feedback, greatly reducing network transmission time, improving response speed, and delivering a smoother user experience.
Tuya’s supported image analysis dimensions and high-quality image evaluation criteria:
Image Analysis Dimensions and Evaluation Criteria

Tuya’s image quality detection process goes through the following main steps:
Facial Landmark Detection Diagram

Image Detection Pipeline Diagram

By enriching pet biometric profiles, Tuya combines with smart pet hardware to deliver an intelligent, all-in-one pet service:
This solution is built on the On-App AI architecture. App-side model deployment uses TensorFlow Lite, offering unique advantages of efficient inference, low latency, low power consumption, and local operation — effectively improving user experience and response speed.
On-App AI Overall Architecture

Lightweight and Dynamic Runtime Flow Diagram

1.1 Lightweight Detection Models
Tuya uses lightweight object detection models, pet face region models, and pet facial keypoint models specifically optimized for mobile — enabling precise detection of specified subjects (such as pets and people) and pet facial landmarks in images.
1.2 Dynamic Model Management
Uses an on-demand loading dynamic model management mechanism that supports online model download, update, and deployment — always ensuring the optimal model version is in use, while reducing initial installation package size and improving runtime efficiency.
2.1 Real-time Interactive Processing
After a user selects an image from their album, detection and processing begin immediately on the device. Across low-, mid-, and high-end devices processing images at various resolutions, the processing speed completes within 1 second — including anomalous image interception and anomaly notification.
Performance benchmark data across different phone models and image resolutions:
Device Performance Benchmark Data

2.2 Efficient Image Quality Filtering
On-Device Secure Computing Architecture

3.1 Reduced Processing Cost
Compared to cloud-based solutions, mobile-side AI processing significantly reduces computing resource demands and bandwidth consumption, providing a more secure and efficient computing environment for applications.
3.2 Privacy Protection
The system detects and filters human faces or figures appearing in images — especially in cases where people and pets appear together. Tuya applies image filtering to ensure user privacy and security.
Full development tutorial available at:
https://developer.tuya.com/cn/miniapp/solution-ai/ability/picture-solution/petImageQualityAssessment/ability-set/cloud
For any issues during development, please post your questions on the Tuya Developer Forum:
https://www.tuyaos.com/viewforum.php?f=3
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback