← Latest papers
💻 computer science

Walk-In Multi-Stage Patient Flow Scheduling: An ASP Model with DES-Based Evaluation

This paper presents a reactive, multi-stage patient flow scheduling model for walk-in hospitals using Answer Set Programming (ASP) to optimize examination pathways and minimize travel and waiting times, demonstrating through Discrete-Event Simulation (DES) that it significantly outperforms greedy baselines in reducing patient stay durations, particularly under heavy load conditions.

Original authors: Ngoc-Mai Pham, Trang-Linh Nguyen, Thi-Hai-Yen Vuong, Ha-Thanh Nguyen, Van-Giang Trinh

Published 2026-07-24
📖 4 min read☕ Coffee break read

Original authors: Ngoc-Mai Pham, Trang-Linh Nguyen, Thi-Hai-Yen Vuong, Ha-Thanh Nguyen, Van-Giang Trinh

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 you are walking into a massive, bustling theme park where the rides are medical tests and the park is a hospital. In a perfect world, you'd buy a ticket, get a map, and glide from one ride to the next without ever waiting in line. But in the real world, especially in busy hospitals, things are chaotic. Patients arrive without appointments, they need to do several different "rides" (like blood tests, X-rays, and scans) in a specific order, and the lines are long. The big question for scientists is: How do you organize this chaos? Should you just let people grab the first open spot they see (a "greedy" approach), or should you use a super-smart computer to plan the perfect route for everyone, considering how long lines are and how far people have to walk? This is the heart of "scheduling," a field that tries to make complex systems run smoothly. It's like being the ultimate traffic controller for a city where the cars are people, the roads are hallways, and the intersections are examination rooms. If you get it wrong, people wait too long; if you get it right, the whole system flows like water.

In this paper, the authors tackle a specific kind of chaos: the "walk-in" patient. These are people who show up at the hospital without a pre-booked time and need a series of tests done during a single visit. The researchers built a new way to schedule these patients using a clever type of logic puzzle solver called Answer Set Programming (ASP). Think of ASP as a super-organized librarian who can instantly look at every possible way to arrange a patient's day, check the rules (like "you must do the blood test before the scan"), and pick the absolute best path. But here's the twist: the hospital isn't a static puzzle; it's a living, breathing place where lines change and people arrive randomly. So, the authors didn't just solve the puzzle; they built a "time machine" called Discrete-Event Simulation (DES). This time machine lets them replay the day thousands of times with random delays to see if their smart schedule actually holds up when things get messy.

The team compared their smart ASP planner against two simpler methods used in real life. The first was a "greedy" approach, where a patient is sent to the first available room, ignoring what might happen next. The second was a slightly smarter version that tried to guess future lines but still made decisions one step at a time. The results, tested on huge made-up datasets representing hospitals with 100 to 650 patients, suggest that the ASP approach is a game-changer, especially when the hospital is packed. In simulations with heavy crowds, the ASP method reduced the total time patients spent in the hospital and significantly increased the number of people who didn't have to wait at all. For example, in a busy scenario with 400 patients, the ASP method helped 6.5% of patients avoid waiting entirely, compared to only 5% for the greedy method. Even more impressively, the smart planner kept the average "stay time" lower than the other methods, proving that thinking ahead about the whole journey is better than just reacting to the current moment.

However, the authors are careful to note that this isn't a magic wand that fixes everything instantly. The improvements were most noticeable when the hospital was under heavy pressure; when there were plenty of open rooms and few patients, all methods worked about the same. Also, while the ASP method was great at cutting down waiting time, it didn't drastically reduce the time spent walking between rooms, because the hospital layout is fixed and there aren't many shortcuts to find. The study also points out that their data was simulated based on typical hospital patterns, not real-world logs, because real data is often hidden for privacy reasons. They also assumed that once a patient is in a room, they are served in the exact order they arrived, ignoring emergencies or sick patients who might need to jump the line.

Ultimately, the paper suggests that by combining a powerful logic solver with a realistic simulation, we can create a "reactive" system that adapts to new patients the moment they walk through the door. It's like having a GPS that doesn't just tell you the fastest route to your destination, but recalculates the entire trip every time a new car enters the highway, ensuring you don't get stuck in a jam. While the authors admit there's still work to do—like testing this on real hospital data and handling emergencies—their work shows that with the right tools, we can make the hospital experience less stressful and more efficient for everyone.

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 →