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

On November 5, 2024, I presented a webinar named Mission impossible 1 : Stop the crazy Train with AI and Edge before it is too late with three colleagues: Adrien, Mourad and Pauline.

This webinar is the pinacle of ten months of hard work. In this article, I will give you an overview of the demo and you will be able to watch the replay in case you missed the live event.

The “Mission impossible” demo

We designed this demo for the Platform Day 2024 French flagevent based on the latest opus of the movie Mission Impossible: Dead Reckoning. In this demo, Ethan Hunt needs help to stop the Lego City #60337 train before it’s too late! Nothing less than the fate of humanity is at stake!

The scenario requires Ethan Hunt to board the train to connect a Nvidia Jetson Orin Nano card to the train’s computer network and deploy an AI that will recognise the traffic signs and stop the train on time before it derails! A console will provide a remote view of the train’s video surveillance camera, with the results of the AI model’s inference overlaid.

To run this demo, we equipped the Lego train with a Nvidia Jetson Orin Nano card, a webcam and a portable battery. The Nvidia Jetson Orin card is a System On Chip (SoC), it includes all the hardware that Ethan Hunt needs for its mission: CPU, RAM, storage… Plus a GPU to speed up the calculations! The Jetson receives the video stream from the onboard camera and transmits orders to the Lego Hub via the Bluetooth Low Energy protocol. It is powered by a portable battery for the duration of the mission.

We are in an Edge Computing context. On the Jetson, we have installed Red Hat Device Edge. This is a variant of Red Hat Enterprise Linux adapted to the constraints of Edge Computing. We installed Microshift, Red Hat’s Kubernetes tailored for the Edge. And using Microshift, we deployed over-the-air microservices, an MQTT broker and the artificial intelligence model.

The Jetson is connected, for the duration of the mission, to an OpenShift cluster in the AWS cloud via a 5G connection. In the AWS cloud, there is a RHEL 9 VM that we can use to build the Red Hat Device Edge images for the Jetson SoC. In the OpenShift cluster, the video surveillance application that broadcasts the video stream from the train’s on-board camera. The video stream is broadcast from the Jetson via a Kafka broker! On top of this, there are MLops pipelines to train the AI model. And finally CI/CD pipelines to build the container images of our microservices for x86 and ARM architectures.

To enable Ethan Hunt to carry out its mission successfully, we had to guarantee end-to-end data transmission. To do this, we implemented five services that communicate via an asynchronous message transmission system (MQTT).

The first service captures ten images per second at regular intervals. Each image is resized to 600x400 pixels and encapsulated in an event with a unique identifier. This event is transmitted to the AI model, which enriches it with the result of the prediction. The latter is transmitted to a transformation service whose role is to extract the train’s action, transmit it to the train controller to slow down or stop the train and at the same time send the event to the streaming service (Kafka) deployed on a remote Openshift, which displays the images and the prediction in real time.

And finally, we had to build an artificial intelligence model. To do this, we followed best practices for managing the model’s lifecycle, known as MLOps:

Watch the replay!

If you have not been able to attend the live session, I invite you to watch the replay!

If you’re ready to dive deeper, have questions, or just want to connect, I would love to hear from you. Feel free to reach out directly on LinkedIn, X, or your favorite social platform to start a conversation. You can also engage with the Red Hat team behind this demo for more insights and guidance on how we’re innovating in open-source technology. Let’s connect and build together!