Skip to main content
  1. Home
  2. Emerging Tech
  3. Computing
  4. Smart Home
  5. News

DIY backyard security system turns on the sprinklers when it sees a trespassing cat

Add as a preferred source on Google

What’s the best way to stop cats from pooping in your garden? Depending on who you ask, answers might include ultrasonic cat repellents, chicken wire, or the use of certain plants to protect your lawn from feline defecation.

For Nvidia Systems Software Engineer Robert Bond, however, there was only ever one possible solution: training a deep learning neural network to turn on his garden sprinklers whenever it recognized a cat in his front yard.

Recommended Videos

“I mounted a camera on the garage that looks out over the garden,” Bond tells Digital Trends. “The camera is set to send images to an [Nvidia Jetson TX1] whenever something changes. The [TX1] then uses deep learning to decide whether the thing that moved is a cat or something else. If it’s a cat then it activates the sprinkler system.”

catsprinkler1
Image used with permission by copyright holder

Bond says that he started training his neural network with a data set of around 1.2 million pictures gathered from the internet. These included plenty of pictures of cats, but most of them turned out to be cutesy close-ups portraits, rather than the kind of pictures he was looking for. “It was almost worthless for what I needed to do, because I was hunting for pictures of cats slinking around in my bushes,” he explains.

Bond notes that at this point his neural network was only successfully classifying around 30 percent of the cats that came into his garden. He decided to modify the neural network’s training examples by adding pictures he had taken himself. Recognition scores immediately jumped to around 90 percent.

catsprinkler2
Image used with permission by copyright holder

The system hasn’t been perfect, however. For one thing, during the training process shadows were regularly classified as cats because they represented dark shapes moving across Bond’s lawn. Even Bond wasn’t immune from being classified as a feline. “I went to mow my lawn and the system somehow decided that the combination of me and my lawnmower counted as a cat,” he says. “I wound up getting pretty thoroughly sprayed.”

But for the most part the deep learning network has been a resounding success — and Robert Bond’s garden is now virtually cat free.

It’s simple when you know how, right?

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…
AI fitness coach senses the muscle mechanics as you exercise and prevents rookie injuries
Most fitness apps offer encouragement dressed up as coaching, but BioCoach offers anatomy-specific corrections, and I could see it becoming a smartphone app real soon.
Woman exercises with her Apple Watch and Dexcom G7.

During the pandemic, the US Consumer Product Safety Commission recorded a 48% spike in at-home exercise injuries. You might think that the culprit was bad equipment, but it was bad form. People had no coach around to correct it.  

Researchers at Drexel University and Michigan State University have built a prototype that addresses exactly that problem, in real time, using your phone camera, and there’s real potential for it to become a legitimate fitness app in future (via Tech Xplore).

Read more
Google’s new AI app wants to replace endless scrolling with stories about your own life
Dreambeans is Google's most direct argument yet that the problem with social media isn't the content, it’s the infinite feed.
Adult, Female, Person

Most apps are designed to keep you on them as long as possible, especially content consumption apps where you scroll a never-ending feed of content. 

Dreambeans, a new experimental app from Google Labs, does the opposite. It gives you a small collection of AI-illustrated stories each morning and sends you off to live your actual life.

Read more
Amazon app now takes you shopping straight from the iPhone’s lock screen
Amazon's lock screen widget is the company's most aggressive move yet to make shopping an ambient activity rather than a deliberate one.
Electronics, Mobile Phone, Phone

Opening the Amazon app, tapping the search bar, and finding a product by text or image search: this is how most of us have been using it. However, Amazon thinks that's too many steps. 

The company has rolled out six new visual search features, one of them being the Amazon Lens widget for iPhone. It puts a camera shortcut directly on your iPhone’s lock screen, so you can point it at anything around you and the app finds it before you’ve unlocked the phone. 

Read more