Skip to content
@Demo-AI-Edge-Crazy-Train

Demo "Stop the crazy train"

The Crazy Train demo (with Artifical Intelligence and Edge Computing)

Abstract

Message to Ethan Hunt: “The train is running mad at full speed and has no driver ! Your mission, should you choose to accept it, is to train and deploy an AI model at the edge that recognizes traffic signs in order to stop the train before it crashes. This message will self-destruct in five seconds. Four. three. Two. one. tam tam tada tum tum tada tum tum tada tum tum tada tiduduuuuummmm tiduduuuuuuuuummm”.

Full abstract here.

Demo

Watch the video

Software components

Component Description Git Repository Container Image
train-controller Receives commands through MQTT and acts on the Lego Hub accordingly. Demo-AI-Edge-Crazy-Train/train-controller quay.io/demo-ai-edge-crazy-train/train-controller
intelligent-train Receives images through MQTT, process them with an AI model and sends the results back to MQTT Demo-AI-Edge-Crazy-Train/intelligent-train quay.io/demo-ai-edge-crazy-train/intelligent-train
train-ceq-app Manages messages between the train-controller, intelligent-train, capture-app, MQTT and Kafka. Demo-AI-Edge-Crazy-Train/train-ceq-app quay.io/demo-ai-edge-crazy-train/train-ceq-app
train-monitoring-app Displays images streamed through Kafka. Demo-AI-Edge-Crazy-Train/train-monitoring-app quay.io/demo-ai-edge-crazy-train/train-monitoring-app
train-capture-image-app Captures and compresses images from the webcam. Sends them over MQTT. Demo-AI-Edge-Crazy-Train/train-capture-image-app quay.io/demo-ai-edge-crazy-train/train-capture-image-app

Bill of Materials

Component Reference Price
Lego Express Passenger Train #60337 159,99 €
NVIDIA JETSON ORIN NANO 8GB DEVELOPMENT KIT 945-13766-0005-000 469,06 €
USB Webcam with UVC support and fixed focus Logitech C505 HD 20,00 €
Traffic signs Siku 5597 11,04 €
LR03 / AAA battery pack Varta Long Life Power 8,66 €
USB-C Power Bank with PD support Shargeek 130 185,35 €
USB-C Portable Display Lenovo ThinkVision M14 229,01 €
USB-C to DisplayPort adapter Amazon Basics Bi-Directional USB-C to DisplayPort Cable 11,63 €
USB-C PD Trigger, 9-19V, 5.5/2.5 barrel jack DSD TECH MagicConn SH-CP15A USB Type C PD to DC Power Cable-15V 12,99 €
USB Keyboard Rii Mini Keyboard K01X1 19,99 €
NVMe M.2 2280 SSD Crucial P3 1To M.2 PCIe Gen3 65,99 €

Total budget to forecast: 1 193,71 €.

If you want to replace the green bricks by red ones and make the train a bit more professional, you can spend a additional 25,99 € on LEGO Pick a Brick. See the complimentary Bill of Materials #1 and Bill of Materials #2.

Administration

Base container images

Dependencies

Bluetooth

  • node-ble: NodeJS library to use the BlueZ DBUS API under Linux
  • noble: NodeJS library that provides a cross-platform abstraction to communicate over Bluetooth Low Energy (BLE)
  • node-poweredup: NodeJS library that communicates with Lego hubs over Bluetooth Low Energy (BLE)

OpenCV

Live Events

This demo has been showcased at the following events:

Watch the demo!

Red Hat Open Demo - Mission impossible #1 - Stop the crazy Train with AI and Edge before it is too late!

Popular repositories Loading

  1. node-ble node-ble Public

    Forked from chrvadala/node-ble

    Bluetooth Low Energy (BLE) library written with pure Node.js (no bindings) - baked by Bluez via DBus

    JavaScript 1

  2. rhde-nvidia-jetson-orin rhde-nvidia-jetson-orin Public

    Red Hat Device Edge image construction

    Shell 1 2

  3. train-controller train-controller Public

    JavaScript 1

  4. intelligent-train intelligent-train Public

    Python 1

  5. train-ceq-app train-ceq-app Public

    Camel route application to post process AI model result

    Java 1

  6. train-monitoring-app train-monitoring-app Public

    Java 1

Repositories

Showing 10 of 29 repositories
  • documentation Public

    Documentation about the demo

    Demo-AI-Edge-Crazy-Train/documentation’s past year of commit activity
    0 0 0 0 Updated Jan 29, 2025
  • ai-workshop Public

    Basis for the AI part of the workshop

    Demo-AI-Edge-Crazy-Train/ai-workshop’s past year of commit activity
    Shell 0 0 0 0 Updated Jan 29, 2025
  • node-ble Public Forked from chrvadala/node-ble

    Bluetooth Low Energy (BLE) library written with pure Node.js (no bindings) - baked by Bluez via DBus

    Demo-AI-Edge-Crazy-Train/node-ble’s past year of commit activity
    JavaScript 1 MIT 50 0 0 Updated Dec 16, 2024
  • open-tour-2024-lab-statement Public Forked from Demo-AI-Edge-Crazy-Train/rivieradev-lab-statement

    Lab statement for the Red Hat Open Tour 2024

    Demo-AI-Edge-Crazy-Train/open-tour-2024-lab-statement’s past year of commit activity
    HTML 0 1 0 0 Updated Nov 28, 2024
  • .github Public
    Demo-AI-Edge-Crazy-Train/.github’s past year of commit activity
    0 0 0 0 Updated Nov 26, 2024
  • opentour2024-app Public Forked from Demo-AI-Edge-Crazy-Train/rivieradev-app

    Monorepo for the Red Hat Open Tour 2024 lab

    Demo-AI-Edge-Crazy-Train/opentour2024-app’s past year of commit activity
    HTML 0 1 0 0 Updated Nov 25, 2024
  • workshop-model-training Public Forked from Demo-AI-Edge-Crazy-Train/activity-notebooks

    Notebooks and pipeline for fine tuning activity. Visitor labeled data are downloaded. A synthetic dataset is added. Finally fine tuned and exported.

    Demo-AI-Edge-Crazy-Train/workshop-model-training’s past year of commit activity
    Jupyter Notebook 0 1 0 0 Updated Nov 19, 2024
  • rivieradev-lab-statement Public

    Lab statement for the Riviera Dev 2024

    Demo-AI-Edge-Crazy-Train/rivieradev-lab-statement’s past year of commit activity
    HTML 0 1 0 0 Updated Nov 19, 2024
  • gitops Public

    All GitOps manifests

    Demo-AI-Edge-Crazy-Train/gitops’s past year of commit activity
    Mustache 0 1 0 0 Updated Nov 18, 2024
  • activity-label-and-train Public

    AI workshop deployment

    Demo-AI-Edge-Crazy-Train/activity-label-and-train’s past year of commit activity
    Shell 0 0 0 0 Updated Oct 2, 2024

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…