← Latest papers
⚡ electrical engineering

Active Inference for Adaptive Traffic Signal Control in Noisy Nonstationary IoT Environments

This paper proposes a traceable active inference controller for adaptive traffic signal management that outperforms both rule-based heuristics and deep reinforcement learning in noisy, nonstationary IoT environments by minimizing expected free energy to reduce idle times and CO2 emissions.

Original authors: Dénes Toth, George Ambroladze, Edwin Sundberg, Ali Beikmohammadi, Alfreds Lapkovskis

Published 2026-06-15
📖 5 min read🧠 Deep dive

Original authors: Dénes Toth, George Ambroladze, Edwin Sundberg, Ali Beikmohammadi, Alfreds Lapkovskis

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine a busy city intersection as a giant, chaotic kitchen where cars are the ingredients, traffic lights are the chefs, and the goal is to get everyone fed (moving) as quickly as possible without burning the food (causing pollution or accidents).

This paper introduces a new kind of "smart chef" for traffic lights called Active Inference (AIF). Here is how it works, how it was tested, and what it found, explained simply.

The Problem: The Kitchen is Foggy and Chaotic

In the real world, traffic sensors (like cameras or radar) aren't perfect. They get blocked by big trucks, confused by heavy rain, or just miss cars entirely. This is like a chef trying to cook while wearing foggy glasses and dealing with customers who keep changing their orders.

  • Old Rules: Traditional traffic lights follow a strict recipe (e.g., "Green for 30 seconds, then Red"). They can't adapt when the kitchen gets crazy.
  • The "Black Box" Learner: Newer AI systems (called Deep Reinforcement Learning or DQN) are like a sous-chef who has practiced cooking thousands of times. They are great at cooking if they have practiced in that exact same kitchen. But if the fog gets thicker or a customer suddenly orders something weird, they might get confused. Also, no one knows why they made a specific choice; they just do it.

The Solution: The "Curious Chef" (Active Inference)

The authors propose a new chef based on Active Inference. Instead of just memorizing a recipe or guessing based on past practice, this chef uses a special mental model to constantly ask two questions:

  1. "What do I want to see?" (Pragmatic Value): "I want to see the traffic lines getting shorter and the air getting cleaner."
  2. "What do I need to learn?" (Epistemic Value): "I'm not sure what's happening because of the fog. I should switch the light to get a better look at the other side of the street."

This chef tries to minimize a concept called "Expected Free Energy." Think of this as a "Confusion Score." The chef wants to make choices that lower their confusion and get them closer to their goal (smooth traffic).

The Best Part: Unlike the "Black Box" AI, this chef keeps a diary. You can look at the diary and see exactly why they switched the light: "I switched because I was worried I couldn't see the cars on the North side, so I turned the light to check."

The Experiment: The Simulation Kitchen

The researchers built a digital traffic simulation (a virtual kitchen) with a four-way intersection. They tested three chefs:

  1. The Rule-Follower: Sticks to a fixed schedule.
  2. The Trained AI (DQN): Learned by practicing for hours in the simulation.
  3. The Curious Chef (AIF): Uses the "Confusion Score" method described above.

They ran the simulation through four levels of difficulty:

  • Level 1: Clear weather, normal traffic.
  • Level 2: Sensors get blocked by big trucks (Occlusion).
  • Level 3: It starts raining heavily (Weather).
  • Level 4: A car crashes, blocking the road, while it's raining and sensors are blocked (The "Perfect Storm").

The Results: Who Cooked Best?

1. In Calm Conditions (Levels 1 & 3):
The Trained AI (DQN) was slightly faster at moving cars. It had practiced for this specific scenario and knew the recipe by heart. The Curious Chef (AIF) was almost as good, but not quite the fastest.

2. In the "Perfect Storm" (Level 4):
This is where the Curious Chef (AIF) won big.

  • Idle Time: The Curious Chef kept cars waiting for 56,977 seconds total. The Trained AI kept them waiting for 71,741 seconds. That's a huge difference.
  • Pollution: The Curious Chef produced less CO2 emissions.
  • Why? When the sensors got messy and a crash happened, the Trained AI got confused because it hadn't practiced exactly that combination of disasters. The Curious Chef, however, was designed to handle uncertainty. It realized, "I don't know what's happening, so I need to gather more info and adapt," which kept traffic moving better.

3. The Trade-offs:
The Curious Chef wasn't perfect.

  • Bus Priority: It was slightly worse at letting buses through quickly compared to the others. Because it focused on the total number of cars to reduce overall confusion, it sometimes ignored a single bus waiting in the opposite lane.
  • Switching Lights: It changed the lights more often. While this helped it gather information, it might feel a bit "jittery" compared to the steady Rule-Follower.

The Bottom Line

This paper shows that while "practiced" AI is great for predictable situations, a Curious Chef that actively tries to understand uncertainty is much better when things go wrong (like bad weather or accidents).

The biggest win for the Curious Chef is transparency. If a traffic manager asks, "Why did you turn the light red?" the Curious Chef can explain its reasoning step-by-step. The Trained AI just says, "Because my brain told me to," which is hard to trust when things go wrong.

In short: When the traffic world is calm, a trained expert wins. When the world gets messy and unpredictable, a curious, self-aware system wins.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →