Inspiration

In Malaysia, people still fall or walk onto LRT and KTM tracks, and some of these cases end in death. When we read the news reports, we saw the same pattern every time. Stations already have CCTV, but one operator cannot watch every screen all shift, so the footage is usually only checked after the accident. We wanted the cameras that are already there to warn staff before a train arrives.

Problem Statement

Track intrusions are spotted too late. Operators can't watch every camera closely, incidents are handled by hand, and records end up spread across footage, notes and chats.

Solution Overview

RedOnTrack uses Edge AI on existing station CCTV to spot anyone entering the track zone and alert staff in under 2 seconds, before a train arrives. A web dashboard gives staff live alerts, incident records and analysis in one place.

Key Features

  • Zone detection: YOLO11 detects every person and checks where they stand.
    • Red zone (track): intrusion alert
    • Yellow zone (warning strip): warning
    • Platform: safe
  • No false alarms when a train is in: zones switch off while a train is at the platform, so people boarding don't trigger alerts.
  • Live dashboard: four camera views. The camera that spots someone in the red zone turns red, and the alert is logged.
  • Zone editor: drag the red and yellow zone corners to fit any station camera, then export them for the model.
  • Incident log: remarks, archive, footage from every camera angle and a one-click report.
  • Incident analysis: likely cause, risk level, preventive steps and a summary. It uses Gemini, with an offline backup if Gemini isn't available.
  • Role-based access: admin, operator and viewer accounts, each with different pages and actions.

Target Users

Station managers, security operators and control-room staff at rail stations that already have CCTV, and the passengers they keep safe.

Social Impact

Every track intrusion caught early is a life that may be saved. RedOnTrack works with the CCTV stations already have, so it adds protection without new cameras, and it gives staff a clear record of every incident so stations can see where problems repeat and fix them.

How we built it

  • AI model: YOLO11n (Ultralytics), fine-tuned for 50 epochs at 640 px on two classes, person and train. For each person, we take the point at the bottom centre of their box (where their feet are) and check if it falls inside the red or yellow zone.
  • Dashboard: React 19, TypeScript (strict), Vite and Tailwind CSS. The camera views play real recorded runs of our model, and the dashboard raises its alerts at the same moments as the model.
  • Incident analysis: Gemini API through a server proxy, so the key never reaches the browser.
  • Testing and deployment: 53 unit tests (Vitest). The site deploys to GitHub Pages through GitHub Actions.
  • AI assistance: Claude helped with coding and documentation.

Challenges we ran into

  • False alarms when a train arrives. Passengers boarding were counted as being in the red zone. We fixed this by also training on a train class and switching the zones off while a train is present.
  • Every station is different. Fixed zone positions didn't fit every camera angle, so we built the zone editor.
  • Keeping the demo honest. We wanted the dashboard to show what our model actually does, not made-up animations. We used the model's own result videos and matched the alert timing to its output.

What we learned

  • How to fine-tune YOLO and turn its detections into simple safety rules with zones.
  • How to design a dashboard around what station staff actually need: fast alerts, clear incident records and different access for each role.
  • How to keep API keys safe in a public web app, and why the app needs a fallback when the AI service fails.

What's next

  • Test the model on more stations, at night and in the rain.
  • Run it on low-cost edge devices at the station.
  • Connect it to the on-site alarm and to real-time notifications for station staff.

Team

  • Arleen April Chong (CEO): product idea, web dashboard, pitch and documentation
  • Muhammad Ibrahim Al-Imran Bin Mohd Isa (CTO): YOLO11 model training and zone detection logic

Built With

Share this project:

Updates

Submission history