Professor Panda and Shark Princess: When a computer algorithm generates Halloween costumes
Need to throw together a last-minute Halloween costume? Maybe you should try asking an intelligent computer algorithm what to wear.
Janelle Shane, a computer engineer from Lafayette, Colo., has designed an artificial intelligence that generates Halloween costume ideas — and so far, it has come up with some real doozies.
"I would say my most recent favourite is the Dancing Boar of the River. I think Ms. Frizzle's Robot is right up there and so was Steam Punk Chicken," Shane told As It Happens host Carol Off.
"Somebody messaged me today saying that they had taught their class this morning dressed as Professor Panda."
Happy Halloween! It's not too late to be one of the costumes my neural network generated: <a href="https://t.co/m9HL6mpkwm">pic.twitter.com/m9HL6mpkwm</a>
—@JanelleCShane
The AI is what Shane calls a "neural network." You feed it a bunch of information and it uses machine learning to start forming its own ideas.
"Rather than in normal programming, when there's a person who sits down at the computer and writes down rules that the computer has to follow, with neural networks, they just look at your data and generate their own rules. They try and figure out for themselves what's going on," she said.
"When I wanted to train it to generate Halloween costumes, all I have to do is give it a decently large set of existing Halloween costumes and let it look at them."
- AS IT HAPPENS: Man kept father's memory alive using AI
- AS IT HAPPENS: Artist makes whatever her algorithm demands
She couldn't find a sufficiently large sample of costumes herself, so she put up a form online and asked people to submit ideas. She has now has more than 6,000 costumes in her database.
"There were a lot of witches. There were a lot of ghosts. But people also got creative. There were a few sexy potatoes, for example. There was a toaster oven," she said.
Of the first 4,500 costumes she used to train the AI, Shane said 300 of them contained the word "sexy."
"It was definitely a theme and, in fact, that's the first word the neural networked learned as it went through its training," she said.
At first, the overrepresentation of "sexy" led to some flops. One of its earliest costume ideas was "sexy sexy zombie sexy cat."
(i decided to draw the Halloween costumes that neural network by <a href="https://twitter.com/JanelleCShane?ref_src=twsrc%5Etfw">@JanelleCShane</a> generated) <a href="https://t.co/XSCJ9tw8js">pic.twitter.com/XSCJ9tw8js</a>
—@vonbees
But, over time, Jane said the AI learned and improved.
"It learned how to mix together words too," Jane said. "In fact, it learned to do that surprisingly well."
For example, Space Batman, Shower Witch, Punk Tree, Vampire Hog Bride and The Dragon of Liberty.
"I guess I hadn't expected it to actually produce any Halloween costumes that made sense," Jane said.
"I'm not sure that you can consider these as making sense, but at least you can sort of guess what they would be."
- AS IT HAPPENS: 5 stories perfect for Halloween
- AS IT HAPPENS: Meet the Dancing Pumpkin Man