← Latest papers
💻 computer science

Machine Learning-Based Waiting Time Prediction for Priority Queues with Preemptive and Non-Preemptive Service Rules

This paper demonstrates that machine learning models, particularly Recurrent Neural Networks, can accurately predict waiting times in complex, time-varying priority queueing systems using only queue length and customer priority, outperforming tree-based methods across non-preemptive and various preemptive service rules.

Original authors: Sahil Singh Bhandari, T.G. Deepak

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

Original authors: Sahil Singh Bhandari, T.G. Deepak

Original paper licensed under CC BY 4.0 (https://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 you are standing in a busy line at a theme park. Usually, the rule is "first come, first served." But in this paper, the authors look at a more complicated line where some people are VIPs (Priority 1) and some are regular guests (Priority 2). The VIPs get to cut in front, which changes how long everyone else has to wait.

The big question the authors asked is: Can we use a computer program (Machine Learning) to guess exactly how long a person will wait, even if the line is chaotic and the VIPs keep jumping in?

Here is a simple breakdown of what they did and what they found, using everyday analogies.

The Three Rules of the Line

The authors tested their computer programs under three different "rules of the road" for how the line works:

  1. The "No Interruption" Rule (Non-Preemptive): Imagine a barber cutting a customer's hair. Even if a VIP walks in, the barber finishes the current haircut before switching. The person in the chair stays put.
  2. The "Start Over" Rule (Preemptive-Repeat): Imagine a chef cooking a steak. If a VIP arrives, the chef stops cooking the regular customer's steak, throws it away, and starts a brand new one for the VIP. When the VIP is done, the regular customer has to start their steak from scratch.
  3. The "Resume" Rule (Preemptive-Resume): Imagine a video game character fighting a boss. If a VIP arrives, the fight pauses. The regular customer's "health bar" stays exactly where it was. When the VIP leaves, the fight picks up right where it stopped.

The Data: A 200-Day Simulation

Since they couldn't wait 200 days in a real line to test this, they built a digital simulation. They created a fake world where:

  • People arrive at random times (sometimes the line is empty, sometimes it's a mob).
  • There are two types of people: VIPs and Regulars.
  • They ran this simulation for 200 "days" to generate a massive amount of data on who waited how long.

The Contest: Five Computer Brains

They pitted five different types of "computer brains" (Machine Learning models) against each other to see which one could best predict the wait time.

  1. The "Tree" Brains (GBM & Random Forest): Think of these as a team of detectives asking a series of "Yes/No" questions. "Is the line long? Is the person a VIP?" They build a decision tree to guess the wait time. They also tested a version where they forced the detectives to split into two separate teams (one for VIPs, one for Regulars) to see if that helped.
  2. The "Time-Traveler" Brain (RNN): This is a Recurrent Neural Network. Think of this as a brain that remembers the story of the line. It doesn't just look at the current moment; it remembers the sequence of people who arrived before. It understands that "a VIP arriving right after a long line of Regulars" creates a specific ripple effect.

The Big Findings

1. The "Time-Traveler" Brain Won the Race
The RNN (the one that remembers the sequence of events) was the clear winner. It was the most accurate at predicting wait times, especially in the chaotic "Start Over" and "Resume" rules where interruptions happen.

  • Why? Because waiting in a priority line isn't just about what's happening right now; it's about what happened just before and what might happen next. The RNN is good at reading that story.

2. The "Tree" Brains Were Good, But Not Perfect
The decision-tree models (GBM and Random Forest) did a decent job, but they weren't as sharp as the RNN. They struggled a bit more when the line was interrupted frequently.

3. Splitting the Team Didn't Help Much
The authors tried forcing the tree models to have separate teams for VIPs and Regulars (the "Forced Priority-Split"). They thought this might help the models focus better.

  • The Result: It barely made a difference. The standard models were already smart enough to figure out the difference between VIPs and Regulars on their own. Splitting them up was like hiring two separate chefs when one good chef could handle both menus.

4. The "Magic Two" Inputs
This is the most surprising part. Usually, to predict a wait time perfectly, you need to know everything: the exact arrival rate, the service speed, the time of day, etc.

  • The Discovery: The authors found that the models could predict wait times very accurately using only two pieces of information:
    1. How many people are in line right now? (Queue Length)
    2. Is the person a VIP or Regular? (Priority)
  • Even without knowing the time of day or how fast people usually arrive, just knowing the current crowd size and the person's status was enough for the computer to make a great guess.

The Bottom Line

The paper shows that you don't need a super-complex system with a million data points to predict wait times in a priority line.

  • If you want the best accuracy, use a model that remembers the sequence of events (like the RNN).
  • If you want simplicity, you can get surprisingly good results just by counting the people in line and checking their priority badge.

This is great news for real-world systems (like hospitals or call centers) because they often don't have perfect data on arrival rates, but they do know how many people are waiting and who is important. They can use these simple inputs to give people accurate wait-time estimates.

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 →