๐Ÿค–Stalecollected in 34m

PrintGuard 2.0: Cross-Platform Few-Shot FDM Failure Detection

PostLinkedIn
๐Ÿค–Read original on Reddit r/MachineLearning

๐Ÿ’กLearn how to build a 5MB edge AI model that runs identically on CPython and the browser using Pyodide and LiteRT.

โšก 30-Second TL;DR

What Changed

Unified codebase running on both CPython (hub) and Pyodide (browser) using a shared Platform contract.

Why It Matters

This architecture demonstrates a highly portable pattern for deploying edge AI models across web and desktop environments using a single codebase. It provides a blueprint for developers looking to minimize infrastructure drift between local and browser-based inference.

What To Do Next

Review the 'Platform' contract pattern in the PrintGuard 2.0 repository to see how to unify your edge AI logic across Python and WebAssembly environments.

Who should care:Developers & AI Engineers

๐Ÿง  Deep Insight

Web-grounded analysis with 5 cited sources.

๐Ÿ”‘ Enhanced Key Takeaways

  • โ€ขPrintGuard 2.0 introduces flexible deployment options, allowing the full engine to run either directly in a web browser using Pyodide and LiteRT.js with WebAssembly (WASM) for inference, or as a Dockerized 'Hub mode' server for continuous, always-on monitoring.
  • โ€ขThe system is entirely open-source under the GPL-2.0 license, free to use, and designed with a strong emphasis on user privacy, ensuring all model inference occurs on-device without requiring subscriptions, telemetry, or cloud accounts.
  • โ€ขPrintGuard 2.0 offers enhanced integration with popular 3D printer control platforms, including OctoPrint and Klipper/Moonraker, enabling automatic print pausing or cancellation upon detecting failures. It also supports diverse notification channels like ntfy, Telegram, and Discord, which can include snapshots of the detected defect.
  • โ€ขThe initial version of PrintGuard (1.0), released in July 2025, demonstrated significant performance advantages, reportedly running 40 times faster than Obico's 'The Spaghetti Detective' on a Raspberry Pi 4 Model B (2GB RAM) while achieving twice the accuracy in precision and recall.
๐Ÿ“Š Competitor Analysisโ–ธ Show
Feature/ProductPrintGuard 2.0Obico (formerly The Spaghetti Detective)OctoEverywhere GadgetPrintWatchBambu Lab Built-in (X1C)PiNozCam
Detection MethodAI camera vision (ShuffleNetV2, prototypical net)AI camera visionAI camera visionAI camera visionLidar + camera (X1C), AI camera (other models)AI camera vision
DeploymentLocal (browser/Pyodide) or Edge (Docker/CPython)Cloud-based (with local server option)Cloud-basedCloud-based (OctoPrint plugin)Integrated hardwareEdge (Raspberry Pi CPU)
PrivacyOn-device inference, no cloud, no telemetryCloud processing (local server option available)Cloud processingCloud processingIntegrated, data handling variesOn-device inference, no registration
Open SourceYes (GPL-2.0)Yes (Obico is open-source)NoNoNoYes
Hardware Req.Low (<1GB RAM, Raspberry Pi compatible)Resource-intensive for local serverN/A (cloud-based)N/A (cloud-based)IntegratedRaspberry Pi CPU
CompatibilityOctoPrint, Klipper/MoonrakerOctoPrint, Klipper, Bambu LabOctoPrint, Klipper, Elegoo CC2OctoPrintBambu Lab printers onlyOctoPrint
PricingFreeFree tier + $4/month Pro$2.50-$5/monthFree tier + paidIncluded with printerFree
Key DifferentiatorCross-platform, lightweight, privacy-focused, few-shot learningWidely used, comprehensive, open-source cloud/localRemote access platform with AI, integrates with ElegooReal-time defect + anomaly detection, remote mgmtLidar for first-layer scan, integrated ecosystemFree, AI on Pi ARM CPU, Telegram notifications
Benchmarks40x faster, 2x more accurate than TSD (v1.0)-----

๐Ÿ› ๏ธ Technical Deep Dive

  • Model Architecture: Utilizes a ShuffleNetV2 backbone for efficient feature extraction, combined with a prototypical network for few-shot learning capabilities.
  • Model Format & Size: The model is exported as a 5MB TFLite file, optimized for small footprint and efficient inference.
  • Cross-Platform Execution: The unified codebase runs identically on CPython (for hub deployments) and within a browser environment using Pyodide, with inference executed in WebAssembly (WASM) via LiteRT.js.
  • Inference Scheduling: Features dynamic inference scheduling that employs max-min fairness, continuously adjusting the total processing rate based on a smoothed estimate of observed inference latency.
  • Resource Efficiency: Designed for edge deployment, requiring less than 1GB of RAM to operate.
  • Performance: Achieves an average of 15 frames per second (FPS) on a 2GB Raspberry Pi 4b.
  • Printer Integration: Supports integration with OctoPrint and Klipper/Moonraker for automated print control actions.
  • Notification System: Offers various notification channels including ntfy, Telegram, and Discord, capable of sending snapshots of detected defects.
  • Smart Monitoring: Implements 'print-aware gating,' where inference stands by when printers are idle and only activates during active printing, conserving resources.
  • Reliability Features: Includes a fail-safe watchdog system that alerts users if a camera feed drops, freezes, or a linked printer service becomes unresponsive, and also announces failed pause commands.

๐Ÿ”ฎ Future ImplicationsAI analysis grounded in cited sources

Increased adoption of edge-based AI for 3D printing monitoring.
PrintGuard 2.0's lightweight, open-source, and privacy-focused approach, combined with strong performance on affordable hardware like Raspberry Pi, makes advanced failure detection accessible to a wider range of users, reducing reliance on cloud services.
Enhanced privacy standards for 3D printer monitoring solutions.
By performing all inference on-device and offering no-telemetry, PrintGuard 2.0 sets a precedent that could push other solutions to offer more local processing options and transparent data handling.
Acceleration of open-source development in 3D printing AI.
PrintGuard's open-source nature and strong performance benchmarks against established commercial solutions could inspire more community-driven projects and foster innovation in the field.

โณ Timeline

2020-06
The Spaghetti Detective (later Obico) gains traction as an OctoPrint plugin for AI-based failure detection.
2020-11
OctoEverywhere launches, including its free AI-powered failure detection feature, Gadget.
2022-01
PrintWatch, an AI-based failure detection plugin for OctoPrint, becomes available.
2023-01
PiNozCam, an OctoPrint plugin for AI failure detection running on Raspberry Pi CPUs, is released.
2025-07
Oliver Bravery releases PrintGuard (version 1.0), an open-source, edge-deployable 3D printing failure detector, claiming superior performance over existing solutions.
2026-06
PrintGuard 2.0 is released, a complete rewrite featuring cross-platform compatibility (CPython and Pyodide) and a 5MB TFLite model.

๐Ÿ“Ž Sources (5)

Factual claims are grounded in the sources below. Forward-looking analysis is AI-generated interpretation.

  1. reddit.com
  2. hackster.io
  3. reddit.com
  4. reddit.com
  5. reddit.com
๐Ÿ“ฐ

Weekly AI Recap

Read this week's curated digest of top AI events โ†’

๐Ÿ‘‰Related Updates

AI-curated news aggregator. All content rights belong to original publishers.
Original source: Reddit r/MachineLearning โ†—