ISTAP AI traffic signal system cover

Building ISTAP: How We Won the GDG Cagayan de Oro Buildathon 2026

Our team won Grand Champion at the GDG Cagayan de Oro Buildathon 2026 with ISTAP, an AI traffic signal system for our city. I was the lead developer on a team of three. This is how it works, and what I learned building an AI system that has to be safe before it can be smart.

The problem: fixed timings, changing traffic

Anyone who drives in Cagayan de Oro knows the feeling: a long red light while the cross street sits empty, then a green that ends before your lane clears. Most signals run on fixed timings, but traffic changes by the hour. The question we asked was simple: can live camera feeds tell us better timings?

How ISTAP works

  1. See the queues. Gemini’s video understanding watches the live camera feed and counts how many vehicles are waiting in each lane.
  2. Propose timings. An optimizer turns those queue counts into recommended green times for each approach.
  3. Stay inside safe limits. Every recommendation is checked against hard safety rules, such as minimum and maximum green times, before anyone sees it.
  4. Keep a human in charge. A city engineer reviews the proposal, approves it, and tests it in a simulation before it would ever touch a real signal.

On top of that sits a command dashboard on Google Maps, and a traffic assistant that answers questions in Bisaya, Tagalog and English, because the people who use it speak all three.

The stack

  • Google Agent Development Kit (ADK) to structure the AI agents behind the system.
  • Gemini for video understanding and the multilingual assistant.
  • Google Maps Platform for the intersection dashboard.
  • Firebase as the app backend.

What I learned

AI should recommend, people should decide. Traffic signals are safety equipment. The most important design decision was not which model to use, but where the model stops. ISTAP never changes a signal on its own. That made the system easier to trust, and easier for judges and city staff to say yes to.

Put the guardrails in code, not in the prompt. A prompt can ask a model to be careful. Code can guarantee it. Our safety limits are plain rules that every recommendation has to pass, no matter what the model says.

Build for the real users. Supporting Bisaya and Tagalog alongside English was a small amount of work with a big effect. Local tools should speak the local language.

Demo the whole loop. In a buildathon, a working end-to-end flow (camera, count, proposal, approval, simulation) beats a perfect single feature. We kept every step simple enough to finish, then polished the parts the judges would see.

What’s next

ISTAP showed that live camera feeds can become a decision tool, with people still firmly in control. You can see the project at istap.site. If you are working on AI for public services, or want to build something similar, let’s talk.