Hostname: page-component-77f85d65b8-6c7dr Total loading time: 0 Render date: 2026-03-28T21:43:30.978Z Has data issue: false hasContentIssue false

Solving Rehabilitation Scheduling Problems via a Two-Phase ASP Approach

Published online by Cambridge University Press:  17 April 2023

MATTEO CARDELLINI
Affiliation:
Polytecnic of Torino, Torino, Italy University of Genova, Genova, Italy (e-mail: matteo.cardellini@polito.it)
PAOLO DE NARDI
Affiliation:
ICS Maugeri, Italy (e-mail: paolo.denardi@icsmaugeri.it)
CARMINE DODARO
Affiliation:
DeMaCS, University of Calabria, Rende, Italy (e-mail: dodaro@mat.unical.it)
GIUSEPPE GALATÀ
Affiliation:
SurgiQ srl, Italy (e-mail: giuseppe.galata@surgiq.com)
ANNA GIARDINI
Affiliation:
ICS Maugeri, Italy (e-mail: anna.giardini@icsmaugeri.it)
MARCO MARATEA
Affiliation:
DIBRIS, University of Genova, Genova, Italy DeMaCS, University of Calabria, Rende, Italy (e-mail: marco@dibris.unige.it)
IVAN PORRO
Affiliation:
SurgiQ srl, Italy (e-mail: ivan.porro@surgiq.com)
Rights & Permissions [Opens in a new window]

Abstract

A core part of the rehabilitation scheduling process consists of planning rehabilitation physiotherapy sessions for patients, by assigning proper operators to them in a certain time slot of a given day, taking into account several legal, medical, and ethical requirements and optimizations, for example, patient’s preferences and operator’s work balancing. Being able to efficiently solve such problem is of upmost importance, in particular after the COVID-19 pandemic that significantly increased rehabilitation’s needs. In this paper, we present a two-phase solution to rehabilitation scheduling based on Answer Set Programming, which proved to be an effective tool for solving practical scheduling problems. We first present a general encoding and then add domain-specific optimizations. Results of experiments performed on both synthetic and real benchmarks, the latter provided by ICS Maugeri, show the effectiveness of our solution as well as the impact of our domain-specific optimizations.

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2023. Published by Cambridge University Press
Figure 0

Fig. 1. Result of the scheduling of the agenda in a real case scenario in the hospital of Genova Nervi. Light blue (yellow) squares represent time units in which the sessions will be performed in an individual (supervised) fashion. The ticks on the left keep track of the period (morning or afternoon) and time slot in which the session will start or end.

Figure 1

Fig. 2. ASP Encoding for the board problem.

Figure 2

Fig. 3. ASP Encoding for the agenda problem.

Figure 3

Table 1. Dimensions of the ICS Maugeri’s institutes.

Figure 4

Table 2. Results on ICS Maugeri institutes.

Figure 5

Fig. 4. Results of clingo using the BB optimization algorithm and the option –restart-on -model enabled (left) and the USC optimization algorithm (right) on synthetic benchmarks of the board.

Figure 6

Fig. 5. Results of clingo using the BB optimization algorithm and the option –restart-on- model enabled (left) and the USC optimization algorithm (right) on synthetic benchmarks of the agenda.

Figure 7

Fig. 6. Visual representation of the decision tree trained on the results found by clingo on real data utilizing the BB+RoM algorithm. The tree nodes represent features of the instance (density and average qualifications) and the leafs represent the result given by clingo (optimal found, satisfiable, unsatisfiable, unknown).

Figure 8

Table 3. Comparison between alternative logic-based formalisms for the board and agenda phase.

Figure 9

Fig. 7. Optimized encoding for pruning the session starts.

Figure 10

Fig. 8. Optimized encoding for pruning of session extension.

Figure 11

Table 4. Comparison, in terms of grounding, between the basic and the optimized encoding on real instances coming from the Maugeri’s hospitals.

Figure 12

Table 5. Results of the optimized agenda encoding on real instances.

Figure 13

Fig. 9. Results of the synthetic benchmarks of the agenda produced by clingo with the optimized encoding.

Figure 14

Table 6. Comparison between alternative logic-based formalisms for the optimized agenda phase.