English 箭头
Podcast Cover

[Building a DIY Lego Sorting Robot with AI: An Interview with Francisco Garcia]-[Sort Circuit: How GPUs Helped One Man Conquer His Lego Pile - Ep. 77]

NVIDIA AI Podcast · B2 · 2019-01-23

Technology
Or study on the web version

📋 Summary

Automating the Chaos: Building a Lego Sorter with TensorFlow

In this episode of the NVIDIA AI Podcast, host Noah Kravitz interviews Francisco Garcia, a tech enthusiast who successfully designed and built a DIY Lego-sorting machine. Motivated by a need to organize his children’s massive collection of Lego bricks, Garcia turned to deep learning and open-source tools to solve a problem that many parents face: the overwhelming clutter of disassembled building sets.

The Inspiration: From Cucumbers to Lego Bricks

Garcia’s journey began after reading a Google Cloud blog post about a Japanese cucumber farmer who used deep learning to automate the sorting of cucumbers by quality and shape. This story struck a chord with Garcia, who saw a direct parallel between the industrial-scale automation of self-driving cars and the "do-it-yourself manner" of a small-scale, home-based sorting project. He realized that if deep learning could identify the curvature of a cucumber to determine its market value, it could certainly be applied to identifying the specific types of Lego bricks scattered across his dining room table.

The Technical Approach: Out-of-the-Box AI

Garcia, who works in the technology sector, wanted to test how effective standard, "out-of-the-box" AI tools could be without heavy customization. He utilized:

  • TensorFlow for Poets: He relied on this well-known base code for training and inference.
  • Inception v3: A neural network architecture used to classify the bricks.
  • Raspberry Pi: The core hardware platform that managed the machine’s logic.

His goal was to see how much he could achieve using off-the-shelf components. Remarkably, in his first run, he achieved an end-to-end accuracy of 90.8%, which he noted was impressive compared to the cucumber farmer’s 70% accuracy, despite the different complexities of their respective tasks.

Mechanical Challenges and Iteration

While the AI software was a significant component, Garcia spent approximately 80% of his time on the mechanical design. He had no prior experience in mechanical engineering or 3D printing but learned through trial and error. Key mechanical challenges included:

  • Conveyor System: He fabricated a tabletop conveyor system with a hopper to feed the bricks and a series of bins to collect them once classified.
  • Image Capture: To improve accuracy, he scaled from one camera to four to capture bricks from multiple angles, which helped differentiate between genuine Lego bricks and "generic" non-branded alternatives.
  • Hardware Limitations: He encountered hurdles with USB port capacity on the Raspberry Pi and lighting issues, which he solved by using specific background colors to ensure contrast for white bricks.

Lessons Learned and Future Outlook

After 200 hours of work over seven months, Garcia successfully completed the project and has since disassembled the machine, though he has made his dataset available on Kaggle to help others avoid the "mechanical headaches" he initially faced.

Reflecting on the state of the industry, Garcia draws an analogy between AI development today and web development in the 1990s. While building an AI model currently requires a high level of skill and manual effort, he believes that within ten years, these processes will become as simple as "three clicks" to create a webpage. Garcia is now moving on to new challenges, including exploring industrial robotics and finding ways to modernize older, legacy factory equipment using his newfound expertise in computer vision and deep learning.

🎯Key Sentences

1
it's been a blast.
2
That's it.
3
Now let's have some fun.
4
once in a while, some magic happens
5
there's got to be a better way moment.
Expand All

📝Key Phrases

1
hit the web
2
dash off an email
3
fever dream
4
nitty gritty
5
stumble upon
Expand All

📖 Transcript

Hello, and welcome to the NVIDIA AI Podcast.
I'm your host, Noah Kravitz. Before we get to today's episode, a quick thank you and a quick favor to ask.
It's been a little over a year since I took the host chair from the esteemed Michael Copeland, and it's been a blast.
So thank you to all of you, from me, from our producer, Brian, and from everyone else involved with the show. and at NVIDIA in general.
Thank you for listening. We'd love to get more of your feedback on the show.
So drop us an email. The address is AIpodcast at nvidia.com.

ListenLeap Brings You Into Real Context Learning

🎨 Interesting Content
🌍 Real Materials
📱 Listen Anytime
Or study on the web version