One-Pixel Attack Fools Neural Networks

Deep Neural Networks can be pretty good at identifying images — almost as good as they are at attracting Silicon Valley venture capital. But they can also be fairly brittle, and a slew of research projects over the last few years have been working on making the networks’ image classification less likely to be deliberately fooled.

One particular line of attack involves adding particularly-crafted noise to an image that flips some bits in the deep dark heart of the network, and makes it see something else where no human would notice the difference. We got tipped with a YouTube video of a one-pixel attack, embedded below, where changing a single pixel in the image would fool the network. Take that robot overlords!

We can’t tell what these are either..

Or not so fast. Reading the fine-print in the cited paper paints a significantly less gloomy picture for Deep Neural Nets. First, the images in question were 32 pixels by 32 pixels to begin with, so each pixel matters, especially after it’s run through a convolution step with a few-pixel window. The networks they attacked weren’t the sharpest tools in the shed either, with somewhere around a 68% classification success rate. What this means is that the network was unsure to begin with for many of the test images — making it flip from its marginally best (correct) first choice to a second choice shouldn’t be all that hard.

This isn’t to say that this line of research, adversarial training of the networks, is bogus. The idea that making neural nets robust to small changes is important. You don’t want turtles to be misclassified as guns, for instance, or Hackaday’s own Steven Dufresne misclassified as a tobacconist. And you certainly don’t want speech recognition software to be fooled by carefully crafted background noise. But if a claim of “astonishing results” on YouTube seems too good to be true, well, maybe it is.

Thanks [kamathin] for the tip!

Continue reading “One-Pixel Attack Fools Neural Networks”

Shutter Bug Goes Extreme With Scratch-Built Film Camera

Should a camera build start with a sand mold and molten aluminum? That’s the route [CroppedCamera] took with this thoroughly impressive camera project.

When we think of cameras these days, chances are we picture the ones that live inside the phones in our pockets. They’re the go-to image capture devices for most of us, but even for the more photographically advanced among us, when a more capable camera is called for, it’s usually an off-the-shelf DSLR from Canon, Nikon, or the like. Where do hand-built cameras fall in today’s photography world? They’re a great way to add a film option to your camera collection.

[CroppedCamera] previously built a completely custom large-format view camera, but for this build he decided that something a bit more portable might do. The body of the camera is scratch-built from aluminum, acting as the lightproof box to hold the roll film and mount the leaf-shutter lens. There’s an impressive amount of metalwork here — sand casting, bending, TIG welding, and machining all came into play, and most of them new skills to [CroppedCamera]. We were especially impressed with the shrink-fit of the lens cone to the body. It’s unconventional looking for sure, but not without its charm, and it’s sure to make a statement dangling around his neck.

It’s tough to find non-digital DIY camera builds around here — best we could do were these laser-cut plywood modular cameras. Then again, you can’t beat this wearable camera for functional style.

Continue reading “Shutter Bug Goes Extreme With Scratch-Built Film Camera”

Hide Secret Messages In Plain Sight With Zero-Width Characters

Fingerprinting text is really very nifty; the ability to encode hidden data within a string of characters opens up a large number of opportunities. For example, someone within your team is leaking confidential information but you don’t know who. Simply send each team member some classified text with their name encoded in it. Wait for it to be leaked, then extract the name from the text — the classic canary trap.

Here’s a method that hides data in text using zero-width characters. Unlike various other ways of text fingerprinting, zero width characters are not removed if the formatting is stripped, making them nearly impossible to get rid of without re-typing the text or using a special tool. In fact you’ll have a hard time detecting them at all – even terminals and code editors won’t display them.

To make the process easy to perform, [Vedhavyas] created a command line utility to embed and extract a payload using any text. Each letter in the secret message is converted to binary, then encoded in zero-width characters. A zero-width-non-joiner character is used for 0, and a zero-width-space character for 1.

[Vedhavyas’] tool was inspired by a post by [Tom], who uses a javascript example (with online demo) to explain what’s going on. This lets you test out the claim that you can paste the text without losing the hidden data. Try pasting it into a text editor. We were able to copy it again from there and retrieve the data, but it didn’t survive being saved and cat’d to the command line.

Of course, to get your encoding game really tight, you should be looking at getting yourself an enigma wristwatch

Continue reading “Hide Secret Messages In Plain Sight With Zero-Width Characters”

Big Mouth Billy Bass Channels Miley Cyrus

Here’s a Big Mouth Billy Bass with extra lip thanks to Alexa. If you’re not already familiar, Big Mouth Billy Bass is the shockingly popular singing animatronic fish designed to look like a trophy fish mounted to hang on your wall. In its stock condition, Billy uses a motion sensor to break into song whenever someone walks by. It’s limited to a few songs, unless you like to hack things — in which case it’s a bunch of usable parts wrapped in a humorous fish! Hackaday’s own [Bob Baddeley] combined the fish with an Amazon Echo Dot, connecting the two with an ATtiny84, and having Billy speak for Alexa.

[Bob] had a few problems to solve, including making Billy’s mouth move when there was audio playing, detecting when the Echo was on, moving the motors and playing the audio. After a bit of research and a lot of tweaking, a Fast Fourier Transform algorithm designed for the ATtiny was used was used to get the mouth moving. The mouth didn’t move a lot because of the design of the fish, and [Bob] modified it a bit, but there was only so much he could do.

It’s all well and good for the fish to lie there and sing, but [Bob] wanted Billy to move when Alexa was listening, and in order the detect this, the best bet was to watch for the Dot’s light to turn on. He tried a couple of things but decided that the simplest method was probably the best and ended up just taping a photo-resistor over the LED. Now Billy turns to look at you when you ask Alexa a question.

With a few modifications to the Dot’s enclosure, everything now fits inside the original mounting plaque and, after some holes were drilled so the Dot could hear, working. Billy has gone from just a few songs to an enormous entire library of songs to sing!

We’ve seen Alexa combined with Big Mouth Billy Bass before, but just demos and never an excellent guide like [Bob’s].  The nice thing about this guide is that once you’ve hacked the hardware, it’s a breeze to add new functionality using Alexa skills.

Continue reading “Big Mouth Billy Bass Channels Miley Cyrus”

Neon lamp ion motor

Neon Lamps Light Up Dim Ion Motor

Small pinwheel type ion motors fall into the category of a fun science experiment or something neat to do with high voltage, but Hackaday’s own [Manuel Rodriguez-Achach] added a neat twist that incorporates neon lamps.

Normally you’d take a straight wire and make 90 degree bends at either end but pointing in opposite directions, balance it on a pole, and apply a high voltage with a moderate amount of current. The wire starts spinning around at the top of the pole, provided the ends of the wire are sharp enough or the wire has a small enough diameter. If your power supply has ample current available then in the dark you’ll even see a purplish glow, called a corona, at the tips of the wire.

[Manuel] made just such an ion motor but his power supply didn’t have the necessary current to produce a strong enough corona to be visible to his camera. So he very cleverly soldered neon lamps on the two ends of the wires. One leg of each lamp goes to the wire and the other end of the lamp acts as the sharp point left out in the air for emitting the ions.

The voltage needed across each lamp in order to ignite it is that between the high voltage power supply’s output and the potential of the surrounding air. That air may be initially at ground potential but he also bends the other output terminal of the power supply such that its tip is also up in the air. This way it sprays ions of the opposite polarity into the surrounding air.

Either way, the neon lamps light up and the wire spins around on the pole. Now, even without a visible corona, his ion motor makes an awesome display. Check it out in the video below.

For more about these ion motors, sometimes called electric whirls, check our article about all sorts of interesting non-electromagnetic motors.

Continue reading “Neon Lamps Light Up Dim Ion Motor”

Mc Lighting Takes The Pain Out Of Blinking

If you want to blink a ton of WS2812-alike LED pixels over WiFi, the hardware side of things is easy enough: an LED strip, and ESP8266 unit, and a beefy enough power supply to feed them. But the software side — that’s where it can be a bit of a pain.

Enter Mc Lighting. It makes the software side of things idiot-proof. Flash the firmware onto the ESP8266, and you’ve got your choice of REST, WebSockets, or MQTT to get the data in. This means that it’ll work with Homekit, NodeRed, or an ESP-hosted web interface that you can pull up from any smartphone.

The web interface is particularly swell, and has a bunch of animations built in. (Check out the video below.) This means that you can solder some wires, flash an ESP, and your least computer-savvy relatives can be controlling the system in no time. And speaking of videos, Mc Lighting’s author [Tobias] has compiled a playlist of projects that use the library, also just below. The docs on GitHub are great, and also check out the wiki.

So what are you waiting for? Do you or your loved ones need some blink in your life? And while you’re ordering LED strips, get two. You’re going to want to build TWANG! as well.

Continue reading “Mc Lighting Takes The Pain Out Of Blinking”