Skip to main content

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

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.”

Recommended Videos

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…
The best portable power stations
EcoFlow DELTA 2 on table at campsite for quick charging.

Affordable and efficient portable power is a necessity these days, keeping our electronic devices operational while on the go. But there are literally dozens of options to choose from, making it abundantly difficult to decide which mobile charging solution is best for you. We've sorted through countless portable power options and came up with six of the best portable power stations to keep your smartphones, tablets, laptops, and other gadgets functioning while living off the grid.
The best overall: Jackery Explorer 1000

Jackery has been a mainstay in the portable power market for several years, and today, the company continues to set the standard. With three AC outlets, two USB-A, and two USB-C plugs, you'll have plenty of options for keeping your gadgets charged.

Read more
CES 2023: HD Hyundai’s Avikus is an A.I. for autonomous boat and marine navigation
Demonstration of NeuBoat level 2 autonomous navigation system at the Fort Lauderdale International Boat Show

This content was produced in partnership with HD Hyundai.
Autonomous vehicle navigation technology is certainly nothing new and has been in the works for the better part of a decade at this point. But one of the most common forms we see and hear about is the type used to control steering in road-based vehicles. That's not the only place where technology can make a huge difference. Autonomous driving systems can offer incredible benefits to boats and marine vehicles, too, which is precisely why HD Hyundai has unveiled its Avikus AI technology -- for marine and watercraft vehicles.

More recently, HD Hyundai participated in the Fort Lauderdale International Boat Show, to demo its NeuBoat level 2 autonomous navigation system for recreational boats. The name mashes together the words "neuron" and "boat" and is quite fitting since the Avikus' A.I. navigation tech is a core component of the solution, it will handle self-recognition, real-time decisions, and controls when on the water. Of course, there are a lot of things happening behind the scenes with HD Hyundai's autonomous navigation solution, which we'll dive into below -- HD Hyundai will also be introducing more about the tech at CES 2023.

Read more
This AI cloned my voice using just three minutes of audio
acapela group voice cloning ad

There's a scene in Mission Impossible 3 that you might recall. In it, our hero Ethan Hunt (Tom Cruise) tackles the movie's villain, holds him at gunpoint, and forces him to read a bizarre series of sentences aloud.

"The pleasure of Busby's company is what I most enjoy," he reluctantly reads. "He put a tack on Miss Yancy's chair, and she called him a horrible boy. At the end of the month, he was flinging two kittens across the width of the room ..."

Read more