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…
Apple just raised Mac prices, and Prime Day is your last chance to buy them at old prices
Five MacBook deals at pre-hike prices, while they last.
Computer, Electronics, Laptop

Apple stunned the industry when it launched the MacBook Neo in March 2026 for just $599 ($499 for students), especially as most PC makers were raising prices. Unfortunately, that era is already over. 

On June 25, Apple increased the prices of the MacBook Neo, M5 MacBook Air, and several MacBook Pro models by up to $300. If you've been planning to buy a MacBook, the ongoing Prime Day 2026 sale may be your last opportunity to buy one at the old-time pricing.

Read more
The Macflation crisis is here, and I just dodged it by a hair
Had I been 10 days late, I would have had to spend another $200 to get the same 13-inch M5 MacBook Air.
MacBook Air M5

When Apple finally caved to the memory crisis and increased prices across Mac and iPad on June 25, 2026, most people reacted with disbelief, frustration, or resigned acceptance. Mine was a quiet, slightly wicked smile, and in about two to three minutes, you'll understand exactly why.

My M1 MacBook Air (8GB, 256GB) has been showing its age since last year. It was starting to crack under pressure. Whenever I opened more than 10 or 15 Chrome tabs, it would protest quietly before crashing, forcing me to ration them. Video exports, even casual ones, started taking noticeably longer. I did everything I was supposed to do, but none of it made a meaningful difference.

Read more
Microsoft Copilot can now handle more of your finance work in Excel with reusable skills and data connectors
Live financial data now flows straight into your spreadsheet.
copilot-for-excel-finance

Microsoft just gave Copilot in Excel a serious upgrade for anyone who spends their day buried in spreadsheets. The update centers on three things finance teams actually care about: reusable workflows, live data straight from trusted sources, and a clear record of exactly what Copilot edited in your sheet.

https://twitter.com/satyanadella/status/2070180313654063255?s=46

Read more