Skip to main content

Amazon worker’s A.I.-powered cat flap stops his pet from bringing in dead animals

Image used with permission by copyright holder

How do you stop your beloved pet cat catching and murdering innocent wildlife, then bringing it into your home in the middle of the night and waking you up? There’s plenty of advice out there, ranging from getting sweet little Figaro a collar with a bell, to disincentivizing the act by quickly disposing of dead critters without making a fuss. Of course, if you’re a technically minded Amazon employee, there’s another option too: You rig up your cat flap to an A.I.-enabled camera and Arduino-powered smart locking system. You know, the good, old fashioned way.

That’s exactly what Amazon product manager Ben Hamm did recently, after reaching the end of his tether with cute-yet-murderous cat Metric. To create the door locking mechanism, Hamm affixed an Arduino to an electromagnetic bolt that he attached to the cat door. He also set up a camera using Amazon’s AWS DeepLens, a programmable video camera which can run deep learning models locally and take action according to what it sees. He then set about coding his solution using programming language Python and Amazon SageMaker, a managed cloud service that enables developers to build, train, and deploy machine learning models.

Cats, Rats, A.I., Oh My! - Ben Hamm

“The most important part of training machine learning software is getting your hands on enough data,” Hamm told Digital Trends. “First I programmed my camera just to capture images every time it detected movement, and then I spent months labeling over 23,000 images. As the most important data — Metric bringing in prey — happened unpredictably, this took time. If my camera failed when Metric brought in a rat, I would get disappointed. You start to get very greedy for quality data! Once I had the data nice and labeled, I fed it into Amazon SageMaker to create image classification models.”

The finished system means that, when Hamm’s camera detects Metric trying to bring in prey, it sends a USB signal that locks the door. (Because DeepLens does its processing locally, this will work even if Hamm’s internet goes down.) The cat flap remains locked for a quarter hour, and Hamm is sent a text message. He also set it up so that it sends a “blood money” donation to the National Audubon Society, which protects birds.

As to whether he plans to commercialize the technology, Hamm remains unsure. “The finished product is currently installed over the window of my cottage,” he said. “I was not planning on commercializing it, but the outpouring of desperate cat owners has definitely been interesting!”

Luke Dormehl
I'm a UK-based tech writer covering Cool Tech at Digital Trends. I've also written for Fast Company, Wired, the Guardian…
4 simple pieces of tech that helped me run my first marathon
Garmin Forerunner 955 Solar displaying pace information.

The fitness world is littered with opportunities to buy tech aimed at enhancing your physical performance. No matter your sport of choice or personal goals, there's a deep rabbit hole you can go down. It'll cost plenty of money, but the gains can be marginal -- and can honestly just be a distraction from what you should actually be focused on. Running is certainly susceptible to this.

A few months ago, I ran my first-ever marathon. It was an incredible accomplishment I had no idea I'd ever be able to reach, and it's now going to be the first of many I run in my lifetime. And despite my deep-rooted history in tech, and the endless opportunities for being baited into gearing myself up with every last product to help me get through the marathon, I went with a rather simple approach.

Read more
This bracelet helps you fall asleep faster and sleep longer
woman-in-bed-wearing-twilight-apollo-on-ankle

This content was produced in partnership with Apollo Neuroscience.
Have you been struggling to get the recommended seven hours of sleep? It's always frustrating when you get in bed at a reasonable time, then toss and turn for a hours before you actually sleep. The quality of that sleep is important too. If you're waking up multiple times during the night, you're likely not getting the quality REM cycle sleep that truly rejuvenates your body. If traditional remedies like herbal teas and noise machines just aren't helping, maybe it's time to try a modern solution. Enter the Apollo wearable.

Now we understand being a little skeptical. How can a bracelet on your wrist or ankle affect your sleep patterns? Certainly the answer to a better night's sleep can't be so simple. We considered these same things when we first heard of it. We'll dive deeper into the science behind the Apollo wearable, but suffice it to say that many people have experienced deeper, uninterrupted sleep while wearing one.
A non-conventional approach to better sleep

Read more
The 11 best Father’s Day deals that you can get for Sunday
Data from a workout showing on the screen of the Apple Watch Series 8.

Father's Day is fast approaching and there's still time to buy your beloved Dad a sweet new device to show him how much you love him. That's why we've rounded up the ten best Father's Day tech deals going on right now. There's something for most budgets here, including if you're able to spend a lot on your loved one. Read on while we take you through the highlights and remember to order fast so you don't miss out on the big day.
Samsung Galaxy Tab A8 -- $200, was $230

While it's the Plus version of the Samsung Galaxy Tab A8 that features in our look at the best tablets, the standard variety is still worth checking out. Saving your Dad the need to dig out their laptop or squint at a small phone screen, the Samsung Galaxy Tab A8 offers a large 10.5-inch LCD display and all the useful features you would expect. 128GB of storage means plenty of room for all your Dad's favorite apps as well as games too. A long-lasting battery and fast charging save him the need for a power source too often too.

Read more