WATCH: Artificial intelligence trained to sort Lego bricks

/ 08:11 PM June 27, 2017

Through machine learning and neural networks, artificial intelligence (AI) is becoming more and more capable of handling various tasks. Lego enthusiast Jaques Mattheij adds sorting Lego bricks to the growing list.

Mattheij had been entertaining the idea of selling off Lego bricks online to other Lego enthusiasts as a small business. The problem was he needed to sort out an estimated two metric tons of bricks sitting in his garage.


The starting point of the sorting machine. Image: Jacques Mattheij

He then decided to create an automated sorting machine powered by a neural network and wrote an article titled Neural Nets vs. Lego Bricks that will be published in the July 2017 issue of IEEE Spectrum magazine. He also earlier wrote details of his project on his personal website, jacquesmattheij.com.

After training his neural network, he found that in just a few days, it was able to learn quickly, and managed to sort 4,000 pieces with a 90 percent accuracy rate.


“Then I realized I didn’t need to make the training set all by myself. The machine takes and labels images,” said Mattheij. “All I need to do is spot the ones where the computer was wrong and relabel the image correctly. As the neural net learns, there are fewer mistakes, and the labeling workload decreases.”

His current machine uses a conveyor belt system that carries Lego bricks past a web camera. The neural network uses the camera to identify the bricks and promptly sort them in the right bin.

Mattheij is currently waiting for the neural network to learn to classify all the bricks by itself before starting his business of selling Lego bricks to other Lego enthusiasts. Alfred Bayle/JB


Facebook AI chatbots made up their own language by accident

Study uses wearable gadgets to detect when lovers’ quarrel will occur

TOPICS: AI, Artificial Intelligence, Lego, Lego selling, machine learning
Read Next
Don't miss out on the latest news and information.
View comments

Subscribe to INQUIRER PLUS to get access to The Philippine Daily Inquirer & other 70+ titles, share up to 5 gadgets, listen to the news, download as early as 4am & share articles on social media. Call 896 6000.

For feedback, complaints, or inquiries, contact us.

© Copyright 1997-2020 INQUIRER.net | All Rights Reserved

We use cookies to ensure you get the best experience on our website. By continuing, you are agreeing to our use of cookies. To find out more, please click this link.