Man defends against package thieves using machine learning AI, flour, and very loud sirens

There's no feeling worse than watching your packages getting lifted with nothing you can do to stop the porch pirates. After recently having a package stolen, Youtuber Ryder Calm Down built himself his own anti-package pilfer alarm system using AI, flour, and a truck horn. It looks like something out of Evil Genius 2, minus the fatal spike trap. 

The setup is simple enough: a camera watches the front porch in real-time, using a custom model TensorFlow (a machine learning platform) to recognize when a package is there. Then it arms itself. If the package is removed by an unauthorized person, like a box bandit, an alarm starts blaring, the sprinkling system is activated, and a blast of flour is fired in the general direction of the culprit.

This month-long project involved teaching the AI to identify loads of differently sized packages so it wouldn't confuse any boxes with, say, a stray cat. Ryder also trained the AI to identify his face as a 'known person' and basically uses a whitelist to disarm the alert system. When an 'unknown person' removes the package, all hell breaks loose. 

Ryder is no stranger to creative Raspberry Pi projects which is a good reminder of all the cool things you can do with a Pi than just run emulators. He's previously made a dog detector that goes off whenever a dog walks in front of your house and a secret door that opens using a piano like in the Batman movies.

Your next upgrade

(Image credit: Future)

Best CPU for gaming: the top chips from Intel and AMD
Best graphics card: your perfect pixel-pusher awaits
Best SSD for gaming: get into the game ahead of the rest

Ryder says that the system is meant to deter any would-be terrace thief by making a whole lot of commotion. Yeah, there's nothing actually stopping a person from running off with your Amazon package once the alarms blare; the idea is the sirens should be enough to rattle them into leaving the score behind. Though I do get a sick satisfaction from watching videos of someone getting hit with a glitter bomb and fart spray when they open their ill-gotten goods at home, I guess this works too. 

You can find the code to build your own AI-powered package theft prevention device right here. Thanks, Tom's Hardware!

Jorge Jimenez
Hardware writer, Human Pop-Tart

Jorge is a hardware writer from the enchanted lands of New Jersey. When he's not filling the office with the smell of Pop-Tarts, he's reviewing all sorts of gaming hardware, from laptops with the latest mobile GPUs to gaming chairs with built-in back massagers. He's been covering games and tech for over ten years and has written for Dualshockers, WCCFtech, Tom's Guide, and a bunch of other places on the world wide web. 

Read more
Ryan Gosling in Blade Runner: 2049, his face cut up and with a bandage over his nose, bathed in purple light with the blackground a blurry blue
Coder creates an 'infinite maze' to snare AI bots in an act of 'sheer unadulterated rage at how things are going' on the content-scraped web
'No real human would go four links deep into a maze of AI-generated nonsense': Cloudflare's AI Labyrinth uses decoy pages to trap web-crawling bots and feed them slop 'as a defensive weapon'
One YouTuber has been poisoning AI tools that access her videos with .ass subtitle files and you can too
gotg llama
Blasting AI into the past: Modders get Llama AI working on an old Windows 98 PC
PC Gamer new products box illustration
PC Gamer's biggest hardware stories of 2024: Elon Musk, the rise and rise of AI, brilliant builds, the humbling of big tech giants, orb pondering aplenty, and much more
An artist’s illustration of NASA’s James Webb Space Telescope revealing, in the infrared, a population of small main-belt asteroids.
GPUs powering AI will probably be the end of us all but at least they're being used to find small city smashing asteroids before they do
Latest in Hardware
A Gigabyte RTX 5070 Ti Eagle OC Ice on a desk and installed in a gaming PC.
Gigabyte GeForce RTX 5070 Ti Eagle OC Ice SFF review
A late afternoon view shows two young women walking past a wall-sized anime mural along Chuo-dori (Central Avenue) in the Akihabara district (known as Electric Town for its maze of electronics stores, but currently considered an almost sacred destination by members of Japan's otaku culture, drawn to Akihabara's video game centers, maid cafes, anime shops, and manga comics), located in Chiyoda Ward in central Tokyo, Japan.
OpenAI's GPT-4o model gets image generation update for all of your anime-style selfie needs
A Nacon Rig Streamstar M2 microphone on white gravel, shot in 3/4 profile
Nacon Rig M2 Streamstar review
1X Technologies humanoid robot, the Neo Gamma, standing alongside Nvidia CEO Jensen Huang. Huang is wearing an ERL-made studded leather jacket.
Humanoid robot Neo Gamma gifts Nvidia CEO a studded leather jacket and may even be able to one day wash up a cup without dropping it
Razer Blade 16 (2025) gaming laptop
Nvidia RTX 5090 mobile tested: The needle hasn't moved on performance but this is the first time I'd consider ditching my desktop for a gaming laptop
A woman wearing a VR headset with dramatic, colourful lighting across the background
'World’s smallest LEDs' could lead to accurately lit screens with 127,000 pixels per inch and much more immersive VR
Latest in News
A screenshot from SaGa Frontier 2, showing one of the protagonists wandering through a quaint fantasy village
One of Square Enix' most underrated PlayStation-era JRPGs just shadow dropped on Steam
The titular character from Princess Mononoke is depicted riding the wolf goddess Moro and carrying a spear.
Studio Ghibli AI image trend floods social media, cheered on by OpenAI and denounced by critics as an insult to Hayao Miyazaki
Marvel Rivals tier list - Wolverine
Marvel Rivals director says a future patch will reduce the shooter's insatiable hunger for RAM: 'It's a very big problem'
Hogwarts Legacy potions professor holding a potion
An unannounced Hogwarts Legacy expansion and 'definitive edition' have reportedly been cancelled
Story of Seasons - A cahacter in a purple tuxedo stands outside in a town square talking to the player
Story of Seasons is doing another Harvest Moon remake and it might be the best the series has ever looked
Assassin's Creed Shadows change seasons - An upper-body shot of Yasuke looking cheerfully up into the distance.
Assassin's Creed Shadows puts up the 'second highest day-one sales revenue in Assassin's Creed franchise history'