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

Lego collector uses artificial intelligence to sort pounds of bricks at a time

Add as a preferred source on Google

Anyone who grew up with Lego will remember buying and building individual sets, only to see their collection morph into an unruly, unsorted mass over time. Sorting through a vast array of bricks to find a particular piece has long been the bane of many a Lego enthusiast but now one canny constructor has developed a system that uses artificial intelligence to sort through large quantities automatically.

Jacques Mattheij observed that there was plenty of money to be made selling Lego on the second-hand market and plenty of eBay listings for bricks in bulk. With that in mind, he began prototyping a rather amazing machine that could classify Lego by shape and color.

Recommended Videos

Committing himself to the project, he bought enough Lego to fill his garage and set about putting together the hardware and software that would work together to sort through it.

The problem with bulk Lego lots is that they tend to contain lots of bricks that need to be weeded out before they can be sold, as noted in Mattheij’s blog post detailing his project. Any fake parts obviously need to go, as do any discolored, damaged, or otherwise dirty bricks.

In its current incarnation, the system loads bricks from a hopper onto a conveyor belt that runs them past a camera that is hooked up to a PC. Setting up the camera to recognize particular pieces presented all kinds of challenges. According to Mattheij’s count, there are 38,000 different shapes of Lego brick, which can be one of more than 100 stringently defined colors.

Mattheij tried various different methods, but eventually settled upon training a neural network to differentiate between different pieces. The finished system is apparently able to classify a brick in just 30ms, running on an Nvidia GeForce GTX 1080 Ti GPU.

While Mattheij concedes that his project is far from the finished product and could benefit from various revisions, its current iteration is good enough to accept kilos of Lego at a time and sort it with some accuracy. It would take a serious Lego collection to warrant an investment in this kind of hardware but there are certainly devotees out there would love to have access to Mattheij’s creation.

Brad Jones
Brad is an English-born writer currently splitting his time between Edinburgh and Pennsylvania. You can find him on Twitter…
Adobe’s new AI assistant could save you hours in Photoshop and Premiere
Premiere Pro users may never have to rename 500 video clips again
Adobe

Adobe is making one of its biggest bets yet on AI-powered creativity. The company has announced a major expansion of its creative agent across Firefly and Creative Cloud, introducing AI assistants capable of handling complex, multi-step workflows across applications, including Photoshop, Premiere Pro, Illustrator, InDesign, and Frame.io.

The move positions Adobe's AI agent as a central layer connecting every stage of the creative process, from brainstorming and content generation to editing and final production. Rather than simply generating images or text, Adobe's vision is to create an assistant that can understand a creator's goal and execute a series of actions across multiple tools.

Read more
Trump says Intel will make chips for Apple in a major win for U.S. manufacturing
Intel Foundry may have landed its most important customer yet
Logo

Intel’s efforts to rebuild its chipmaking business may have landed its biggest customer yet. U.S. President Donald Trump announced on Thursday that Apple has agreed to work with Intel to design and manufacture chips in the United States, a deal that could significantly strengthen Intel’s foundry ambitions.

The announcement does not come out of the blue. Earlier reports indicated that Apple and Intel had been discussing a manufacturing partnership for more than a year and had already begun working together on select chip production projects.

Read more
A harmless-looking ChatGPT prompt opened the door to gruesome AI images
The findings show how image safety systems can fail without explicit graphic instructions.
ChatGPT

A harmless-looking ChatGPT prompt pushed the latest public version of ChatGPT into generating sexualized and violent images, AI security researchers told the BBC. The finding puts new pressure on OpenAI’s image safety systems, since the request wasn’t described as plainly graphic.

Mindgard, a British AI security startup, said it reached the results by altering a widely shared instruction that had been used for comedy. OpenAI added safeguards after the BBC contacted it, but the researchers said small wording changes still produced concerning images.

Read more