AI-Powered LEGO Sorting System Achieves Super Real-Time Accuracy on Edge Hardware

Client: Canada First Bricks
Athena AI engineered a fully edge-native, AI-powered LEGO sorting system running on NVIDIA Jetson Orin, capable of detecting, classifying, and physically sorting 300+ part types with 96.3% accuracy at 3,600 parts per hour, all with sub-100ms latency and zero cloud dependency. The solution also incorporated self-supervised machine learning to eliminate manual annotation when adding new part variants.

The Challenge
Canada First Bricks faced a complex set of technical and operational challenges in automating LEGO sorting at scale. The system needed to distinguish between hundreds of visually similar LEGO parts in real time, where even subtle differences in shape, size, or color could result in incorrect classification. Existing solutions lacked the precision required to achieve both high accuracy and high-speed processing simultaneously.
At the same time, the system was required to operate entirely on edge hardware with no cloud dependency. All AI inference had to run locally on constrained embedded devices, eliminating the possibility of leveraging cloud-based processing and placing strict limits on computational resources.
Operational scalability presented another major challenge. Traditional supervised learning approaches required extensive manual labeling whenever new LEGO part variants were introduced, creating a continuous bottleneck in expanding the system’s capabilities. Additionally, the platform needed to integrate seamlessly with industrial PLC systems to enable real-time physical actuation, requiring highly reliable, low-latency communication between the AI layer and sorting hardware.
Our Approach
Athena AI engineered a fully edge-native, production-ready sorting system designed to combine high-precision computer vision with real-time industrial control. A two-stage vision pipeline was implemented, where an initial detection model isolates individual LEGO pieces from the conveyor feed, followed by a high-accuracy classification model that identifies each part’s type and color. This architecture enabled both speed and precision to operate simultaneously within the constraints of edge hardware.
To support real-time physical sorting, the system was integrated directly with industrial PLC infrastructure. Classification outputs are transmitted instantly to control mechanisms that direct each part into the correct bin, creating a fully automated detection-to-actuation loop that operates with extremely low latency and high reliability.
A self-supervised training pipeline was introduced to eliminate the need for manual annotation. The system automatically generates labeled training data from its own detection outputs, allowing it to adapt to new part types and variations without human intervention. This approach removes a major operational bottleneck and enables continuous scalability.
Results & Impact
The system transformed Canada First Bricks’ operations by fully automating the sorting process at industrial scale. Manual sorting was effectively eliminated, with the system capable of processing up to 3,600 parts per hour continuously with minimal human involvement.
The two-stage vision pipeline achieved 96.3% classification accuracy across more than 300 distinct LEGO part types, delivering a level of precision that far exceeds manual sorting capabilities. At the same time, the end-to-end detection and actuation pipeline operates with sub-100 millisecond latency, enabling real-time sorting performance under continuous load.
The introduction of self-supervised learning removed the need for manual labeling when adding new parts, allowing the system to scale seamlessly as inventory expands. Combined with its edge-only deployment, the platform delivers consistent, high-performance operation without ongoing cloud costs, making it both efficient and cost-effective for long-term industrial use.
Key Performance Metrics
Technologies Used
Ready to build your custom vision platform?
Let's discuss how we can apply similar solutions to your challenges.
.png%3F2026-04-10T15%253A24%253A23.357Z&w=3840&q=100)