Have you ever wondered what your dog is thinking? Well, we haven’t gotten that far just yet.
But with Machine Learning, we can now classify a dog’s emotions just from an expression!
Today, I’ll show you how to build an AI-powered image classifier using Teachable Machine and ml5.js to detect dogs’ emotions, just from their photos!
Before writing any code, we need an ML model! Teachable Machine makes this easy. Here’s what you do:
Now let’s integrate the trained model into our web app.
Now, let’s allow users to upload a dog picture and classify its emotion.
Finally, we need a simple HTML UI to upload and analyze images.
Ready to finally know what your best dog companion is feeling? Upload an image of the dog, and the AI will classify its emotion based on what it learned! You’ll get a prediction and a confidence score, as seen below.
Want to see the full project in action? Reach out, and I’ll send you all the details!
Andrew Zlobin is a full-stack developer who has been with First Line Software for over three years and is an active Tech Titan in the FLS Ambassadors club. Passionate about staying ahead of industry trends, his expertise ranges from frontend technologies like JavaScript and Angular to backend technologies like PHP and MySQL. Currently, he's exploring the integration of AI/ML into both frontend and backend development, and sharing his insights and practical tips with the community.