Performance Assessment of a Rehabilitation Transportation Reservation Matching Service with Market Design Mechanisms

Government agencies provide huge amount of subsidies to support the rehabilitation transportation service over the past decade in eastern Taiwan; however, low demand request fulfllment rate, limited medical and transportation resources, long travel distances, and an extremely high percentage of dead mileages are still the main challenges faced by rehabilitation transportation service providers. Tis study applies the market design theory to match the rehabilitation buses with the requests of patients, so as to improve resource utilization efciency in rural areas. Te developed market design mechanisms aim to allocate resources to those who need them most in a matching manner, by using the deferred acceptance algorithm and the top trading cycle approach. Te model is initialized with the requests of those who choose the rehabilitation bus based on their desired boarding time slots. On the other hand, the service providers of the rehabilitation bus would determine patients’ schedule based on their disability level, willingness to share the ride, number of fulflled appointments during this month, and the travel distance of this trip as the order of preference. Since the current vehicle dispatching rule is to reserve seats of a rehabilitation bus on the “frst-come-frst-served” basis, and it cannot fully satisfy patients need. In accordance with the historical data, 63 of 72 demand requests could successfully reserve the seats. In the “frst-come, frst-served” mode, 48 requests obtained the frst-ranking shift (i.e., their desired time slots), and the sum of their disability level score is 155. In the market design matching mode, 57 requests obtained the frst-ranking shift, and the sum of their disability level score is 170, which demonstrates that the proposed market design matching mechanism outperforms than the conventional rules.


Introduction
According to the defnition of the World Health Organization, Taiwan has become an aged society (i.e., a population over 65 years old exceeding 14%) by 2013, with 14.5% of the population over 65, and is expected to become a super-aged society (i.e., a population over 65 years old exceeding 20%) by 2026, with an expected 20.7% of the population over 65 [1].In accordance with the statistical results provided by the Ministry of Health and Welfare, Taiwan, R.O.C. [2], there were 1,195,448 people in Taiwan with certifcates of disabilities in the third quarter of 2022, comprising around 5.15% of the total population.It should be noted that the credentials of disabilities are divided into four levels: extremely severe, severe, moderate, and mild, which are 11.7%, 16.9%, 32.2%, and 39.2%, respectively, of the current overall disabled population in Taiwan.In 2021, both the elderly population ratio and the disability ratio of Hualien County (26.09% and 8.21%) were signifcantly higher than the national average (23.81% and 5.15%), as shown in Figures 1 and 2, respectively.Figure 1 shows the elderly population ratio in Taiwan from 1996 to 2021, while Figure 2 displays the elderly population ratio in Hualien County from 1996 to 2021.
Hualien County is located in eastern Taiwan, with a low residential density of around 70 people per square kilometer [3] and a wide service area.It is the largest county-level administrative region in Taiwan.According to the statistics from the Hualien County Government, in March 2022, the elderly population (over 65 years old) accounts for 18.5% of the total population.In addition, there are 26,489 people with disabilities, accounting for 8.2% of the total population.
Tere are three types of medical resources in Hualien County [4], namely: medical centers, regional hospitals, and district hospitals.Figure 3 illustrates the distribution of medical resources in Hualien County.Medical centers have the most professional staf and resources, while district hospitals provide the fundamental medical services.Despite the long travel distances from southern to northern Hualien, people prefer to visit large hospitals for treatment.It should be noted that most depots for dispatching service vehicles are also located in the northern region in Hualien.Demand

Literature Review
Tis study plans the rehabilitation bus reservation system from the market design perspective.Tis part of the literature review discusses the current situation of Taiwan rehabilitation buses and customized buses with similar operating models in foreign countries.In addition, algorithms of market design and preference settings are developed based on the needs of the patients to achieve the efective utilization rate of rehabilitation vehicles.Taiwan's rehabilitation bus feet was frst evaluated and promoted by the Eden Social Welfare Foundation, which was entrusted by the government to handle its business in 1990, to provide barrier-free transportation services for the physically and mentally disabled.Te rehabilitation bus service in Hualien County started in 2004 with the Mennonite Social Welfare Charity Foundation and operates 25 rehabilitation buses now.
Huang and Lin [12] mentioned that there were three difculties in developing Taiwan's rehabilitation buses: insufcient numbers of service vehicles, limited appointment times and myopic service targets of local governments, and a lack of fexibility due to the frst-come, frst-served reservation rules.Te study mentioned that the reservation software should be improved via education and training for rehabilitation bus drivers to assist persons with disabilities in boarding smoothly and provide direct assistance when needed.Furthermore, it suggests collaborating with private enterprises to integrate rehabilitation bus services and ofer diverse solutions.Wu and Chen [13] took Taiwan's Duofu Rehabilitation Bus as an example to explore the operation of rehabilitation buses with a multiincome model and provide more fexible and high-quality services for the disabled.Hanson et al. [14] used a community volunteer driver program and transportation planning tools to assist the elderly in solving their transportation needs.Wu et al. [7] established a customer-centered multireservation transportation platform with the Taiwan Eden Foundation.Trough the disclosure of information, users can obtain the required resources in real time, and practitioners can manage them more easily.Te above study points out the related difculties of rehabilitation buses, such as an insufcient number of vehicles, a defcient reservation platform, and related problems in operation and management.Some rehabilitation buses are customized, unlike traditional buses.Wang et al. [15] compared customized buses with conventional buses in terms of travel time, speed, number of stops, and diferences in arrival times.Te researchers believe that customized buses ofer several advantages, including shorter travel times, faster speeds, fewer stops, and minimal diferences between the actual arrival time and the scheduled arrival time.In addition, they can reach a balance between travel costs and service quality, as well as attract users to switch from private cars to using customized buses.Ma et al. [16] proposed a route planning model using origin-destination (OD) route matching and customized bus network design, considering the social benefts and travel costs.Tis research investigates on regional segmentation and route planning based on customer Journal of Advanced Transportation demands, to enhance customer satisfaction and loyalty, while also improving operational efciency and service quality.Furthermore, it identifes necessary routes to eliminate unnecessary operational costs.Taking Beijing as a case study, the number of routes, total route length, feet size, station coverage rate, average passenger load, and service rate all outperform the current situation.Al-Hawari et al. [17] analyzed itinerary information and customer feedback to improve service quality and passenger satisfaction while reducing operating costs.
With the enactment of the Americans with Disabilities Act (ADA), it is required that public transportation services including demand responsive transportation (DRT) system should adhere to ADA regulations.Amirgholy and Gonzales [18] developed a dynamic model for DRT dispatching and utilized dynamic pricing based on demand, as well as adjusted of-peak vehicle utilization to enhance the system efciency.Daganzo and Ouyang [19] introduced an analytical framework applicable to DRT, focusing on ridesharing mechanisms.If multiple passengers are geographically and temporally adjacent, the study suggested system-based ridesharing to increase vehicle utilization and reduce passengers' travel costs.Angelelli et al. [20] explored cooperation among companies providing DRT services.Tey established upper and lower limits for workload exchange among companies based on passenger volume and travel time, leading to operational cost savings.Chandakas [21] predicted demand fuctuation by using the ARIMA model and validated the results with data from Toulouse's DRTS in France.Te fndings highlighted the potential to enhance transport efciency and service quality and demonstrated that reservation rates and service types would signifcantly infuence demand fuctuations.In accordance with the fndings of the above studies, the operational effciency of DRT services involved planning for vehicle utilization, ridesharing adjustments, passenger volume, and travel time, while also need to fulfll customer demands.
Te Hualien County rehabilitation bus ofcially launched a reservation system in June 2022.It uses telephone and online reservations in parallel but still adopts the frstcome, frst-served method.Te problem is that patients with higher levels of disabilities, such as those who are bedridden or in wheelchairs, may not be able to make an appointment for a rehabilitation bus.Trough the market design method, the research considers the needs of patients and operating units, to enable patients with a higher level of disability to  receive services reasonably, and allow the organization undertaking the service to reduce operating costs.
From the examples of school admissions and kidney exchange, economists believe these difer from a currency trading market.Nevertheless, they can extend the experience from the currency market and propose a matching algorithm so that those who need it most can obtain resources and which also allows the efectiveness of resources to be maximized.Te three most commonly discussed algorithms in this feld are the Boston algorithm, the deferred acceptance algorithm, and the top trading cycle.Te Boston algorithm originated from the Boston school choice, it adopts a frst-come, frst-served method.If students put star schools as their frst choice, they will easily fail the rankings with high scores.Tey will tend to choose the second or third choice without directly following their true preferences, which are not satisfed with strategy-proofness principles.Here, strategy-proofness means that the pair will not hide users' true preferences.In other words, students or their parents can quickly obtain schools with better rankings by hiding their true preferences.Abdulkadiroglu et al. [22,23] solved the problem of school admissions with the delayed acceptance algorithm and the top trading cycle and later expanded it to many felds to solve problems practically.
Gale and Shapley [24] used the deferred acceptance algorithm to solve the problem of matching men and women, and proposed that one side of the bilateral matching, representing schools, could be increased from a single entity to multiple entities, as quotas that the school can ofer for matching, while the other side remains unchanged, representing students.Tis can be extended to the problem of university admissions.Roth [25] believed that the matching problem for men and women is a one-to-one match, while the matching problem for school admissions is a one-to-many match, and the results of these two matches are diferent.He believed that the matching pattern must have a stable outcome.In the case of the male-female matching problem, if the male initiates the confession, then there will be a male-optimal stable outcome, and the male prefers a male-optimal stable match.Te same holds true when the female initiates the confession.Terefore, both parties will express their true preferences to achieve the most stable outcome.However, the school admissions problem has a studentoptimal stable match rather than a college-optimal stable match.Students will express their true preferences as the dominant strategy, which is the main diference between the one-to-one and one-to-many matching patterns.Based on this characteristic, this study uses a one-to-many matching pattern for the desired matching between patients and seats on rehabilitation buses, as the seats are ofered in multiple quotas.Patients apply to the rehabilitation buses, resulting in the most optimal stable outcome for the passengers.
Sheply and Scarf [26] introduced the top trading cycle algorithm and proved this method could generate stable results.Roth et al. [27] applied the top trading cycle to kidney transplant matching.Kojima et al. [28] divided the matching mechanism design into two categories: one-sided and two-sided matchings.Two-sided matching is mainly based on the deferred acceptance algorithm, namely, the bilateral pairing matching problem.Let's assume that both sides have their own preferences, and one-sided matching also has two groups, but one side has no preference for the other side.A typical example of bilateral pairing is school admission and company job assignment.Taking school admission as an example, the school hopes to select outstanding students, and the students also wish to get accepted to schools with richer resources or higher rankings.Another famous case of one-sided matching is the example of kidney exchange.As long as the patient can exchange the kidney, he does not care who gets it; but only cares about the similarity of blood type and human leukocyte antigen or antibody.
Preferences are signifcant factors infuenced matching results, especially for those problems without currency involved.For example, the government aims that education can be popularized to all citizens; thus, tuition fees should be as low as possible, and some student loans may be provided.Te school targets to recruit suitable students to study and the students also favor particular schools.In this case, the price is not the priority, but the students' preference for the school and the school's attitude towards the students are key factors determining the matching results.
Consumers' preferences mentioned in individual economics are generally divided into three categories: strict preference, weak preference, and no diference.Huang [29] defned that strict preference means consumers indicating A is better than B, which is represented by symbols as A ≻ B; weak preference means that consumers think A may be better than B, or that A may be at least as good as B, which is expressed as A≿B; while consumers express that A is as good as B, which means that there is no diference between A and B, represented by symbols, that is, A ∼ B.
Druckman and Lupia [30] addressed the fact that preferences do not suddenly occur but arise from the interaction between individuals and environment.Dhar et al. [31] mentioned that consumers' similarities, diferences, and preferences for the same option would change based on diferent tasks and environments.Te comparison processes also afect the priority.Hanson [32] believed that preference is not static, and the type of preference may have four schemes: modifcation, restriction, addition, and subtraction.Öztürké et al. [33] proposed that the type of preference can be divided into the basic structure [P, I], extended structure [P, Q, I], and valence structure.In this context, P, I, and Q represent preference structure, indiference order, and situations where the two elements are the same or uncertain, respectively.Tese preferences can be further sorted using four distinct options: certain/uncertain and strong/weak.Bailey [34] pointed out that performance and preferences are not necessarily correlated.In addition, most previous studies assumed that preferences would not change over time.However, Kanade et al. [35] examined the impacts of dynamic preference lists afecting stable matching results.Aziz et al. [36] explored that stable matching would be infuenced due to the uncertainty of preferences with limited information.
Abdulkadiroglu and Andersson [37] mentioned that Pareto efciency, stability, and strategy-proofness could be used as indicators to measure the goodness of the matching algorithms.Pareto efciency refers to improving the pair's welfare without harming others' rights and interests.For Journal of Advanced Transportation example, if there is a matching that allows students to be paired with a more preferred school without compromising the pairing of other students, the pairing reaches Pareto efcient.Stability means that none of the players feel that the results after matching are worse than before, which is also known as being individually rational.It should be noted that stability represents that none of the other matching results are more attractive to pair members, also called pairwise stability.Te authors also mentioned that if any tiebreaker is needed in ranking students, the deferred acceptance algorithm has stability and strategy-proofness for students.
In recent years, matching design has been applied in various felds.Peng et al. [38] used the deferred acceptance algorithm to propose a ridesharing mechanism through the car-sharing platform to reduce travel costs.Elhenawy and Rakha [39] explored the confguration of shared bicycles and rental stations with a deferred acceptance algorithm and used a 2-opt local search algorithm for dynamic programming.Schummer and Abizada [40] adjusted for weather-induced airport congestion, aircraft arrival times, and cancellations with deferred acceptance algorithms; Pathak et al. [41] used the deferred acceptance algorithm to discuss medical matching between ventilators and patients and delved into the matching rules.Chu and Lan [42] discussed resource allocation between charities and care cases with a deferred acceptance algorithm.Xu et al. [43] discussed private parking space sharing using a modifed top trading cycle.Kong et al. [44] examined a top trading cycle as a parking space sharing on the applications of the IOTs.
Tis study aims to incorporate market design algorithms into the reservation system of rehabilitation buses based on the theoretical foundation of market design and relevant research on practical applications.Te preference for choosing a rehabilitation bus will be based on the patient's medical treatment schedule.Te rehabilitation bus will prioritize patients based on their disability level, willingness to ride with others, number of successful reservations, and mileage.Te algorithm's stability, strategy-proofness, and Pareto efciency are expected to satisfy the needs of both patients and rehabilitation bus contractors.

Modeling Framework and Methodologies
Tis study extends from our previous work [45], patients have time slot preferences, and rehabilitation buses have demand preferences for patients, which would be a typical two-sided matching problem.Te deferred acceptance algorithm and the top trading cycle are implemented to obtain the best allocation of resources.
Te deferred acceptance algorithm and the top trading cycle have two types: two-side matching and one-side matching.In two-sided matching, such as matching students with schools, students have a choice of schools, and schools also select suitable students; both parties have preferences.In one-side matching, such as respirator allocation, patients have no particular preference on which respirator they are to be assigned.At the same time, the hospital side hopes to distribute respirators to users in urgent need.Tis study uses bilateral pairing as a model.Rehabilitation patients prefer the boarding time, while the rehabilitation organizer hopes to prioritize critically ill patients.In addition, the transportation service providers expect the patients to share rides, so both parties' preferences can be accommodated.
Tis study aims to address the rehabilitation bus reservation system.In the past, phone reservation or the current online registration system has been adopted, where registering in advance secures a seat on the rehabilitation bus.Although the administering unit has conducted a home visit to confrm the patient's disability level prior to granting registration qualifcation, the reservation process does not consider parameters such as disability level or the number of reservations made within the same month, making it impossible to evaluate whether the patients with the greatest needs can be accommodated.Tis study incorporates two algorithms from market design, the deferred acceptance algorithm and top trading cycle, to take into account parameters such as disability level to prioritize the order of rehabilitation bus schedules for patients and provide seats to patients with higher priorities.
Te following are the relevant settings of this study.Assuming that μ represents the matching function between passengers and rehabilitation bus shifts: μ: D ⟶ S or each s ∈ S, then defne μ(s) � d ∈ D|μ(d) � s  , when |μ s | ≤ q s and all s ∈ S, then the matching function μ is feasible.Assume that q � (q s ) s∈S represents the total number of seats of all rehabilitation bus shifts; P � (P d ) d∈D represents the total preference of all patients; and ≳ � (≳ s ) s∈S represents the total preference of all rehabilitation buses for patients, and the mechanism φ is a matching problem defned by parameters such as D, S, q, P, ≳  .Our model is revised from the assignment game model of Shimada, Yamazaki, and Takano (2020), and the objective function is evaluated by the minimal system matching scores.
We introduce the binary decision variable x � (x ds ) (d,s)∈D×S such that Maximizing matching efciency involves efectively utilizing the available time slots, reducing the number of unassigned seats, and allocating them to patients with the highest needs, such as those with higher disability levels.It should be noted that there are no other matching outcomes more appealing than the results obtained in this study, without any blocking pairs.Te formulas are as follows: Subject to d∈D x ds ≤ q s (∀s ∈ S), (4) x is ≥ q s 1 − ω ds (∀d ∈ D, ∀s ∈ S), (5) Te constraints are described as follows.Equation (3) assumes that each patient should be assigned to at most one rehabilitation bus seat.Equation (4) ensures that the number of matches would be less or equal to the total capacity provided by the rehabilitation bus schedule.Equation (5) refers to Shimada et al. [46] proof of disruptions in the restricted model regarding the matching of resident physicians and hospitals.Where j ≻ d s , it means that, after the matching process, patient d prefers shift j more than the one assigned to them, shift s.Also, i ≻ s d implies that, after the matching process, the rehabilitation bus prefers patient i more than the one assigned to them, patient d.When ω ds � 0, it indicates no disruptions, and the matching is stable.If ω ds � 1, it means there are disruptions in the matching.
In this study, relevant parameter settings are modifed to meet the requirements of the current research.
Here, we assume that patients who want to take the rehabilitation bus and the rehabilitation bus itself are treated as the two sides of the matching.Tere are two sets; one is the set of patients D � d 1 , d 2 . . ., d |D|  , and the other set is the shift schedule S � s 1 , s 2 , . . ., s |S|   of the rehabilitation bus with q s representing the seat quota of each shift schedule s; for example, one rehabilitation bus can accommodate two seats for wheelchairs and there are two rehabilitation buses for one shift; that is, there are four places for this shift, and a patient can only be allocated one seat at most.Each patient d has a strict preference P d over S ∪ 0 { }, 0 means that the patient is not assigned to a seat; for example, sP d s ′ means that patient d prefers shift s to s ′ , and R d indicates the "at least as good" relation, since patient d prefers shift s to s ′ , but s and s ′ are at least as good: Each rehabilitation bus shift s has a strict preference ≻ s over the set of patient 2 D , d ≻ s d ′ means that the rehabus shift s prefers patient d more than d ′ , and ≿ s means "at least as good," with the relation between the two shown as follows: Kojima et al. [28] explained preferences by stating that each college's preference for selecting students is "responsive," meaning that each college has its own preferences and standards, so when selecting students, they prioritize based on the student's qualifcations.In this study, we also assume that if the following formula holds true, then the preference of the rehabilitation bus for patient selection, denoted by ≻ s , is also "responsive": (1) For any C ⊂ D with |C| < q s and any d ∈ C\D, Ten, the set of all strict responsive preferences can be expressed as follows: Abdulkadiroglu and Andersson [37] mentioned that using exogenous and quantifable criteria as a sorting basis is called nonstrategic, while the preference order is based on personal preference and cannot be verifed, which is called strategic.In this study, the preference for the rehabilitation bus schedule for patients is nonstrategic, while the preference for the rehabilitation bus schedule is strategic.
However, Abdulkadiroglu and Andersson [37] also addressed that a strict preference could easily verify whether it produces Pareto efciency, but confrming when the preference is indiferent is not easy.Terefore, in the process of matching, when a tie is encountered, it must be broken through a tiebreaker.However, if there are multiple tiebreakers, the agent's proposal may not be optimal and there Journal of Advanced Transportation will be inefciencies; thus, if there is a single tiebreaker, the following results hold.For students, the deferred acceptance algorithm is stable and strategy-proof.Moreover, the top trading cycle has Pareto efciency and strategy-proofness.
Abdulkadiroglu et al. [47] claimed that the tiebreaker is bijection t: N ⟶ N, and the tie associated between schools s ∈ S can be broken by ≽ s and ≻ t s .Te term "bijection" here refers to a function that maps each element of a set of natural numbers N to a unique element in another set of natural numbers N, and for each element in the set of natural numbers N, there exists a unique corresponding element in the set of natural numbers N, to ensure that each applicant can receive a unique position.≻ t s can be expressed as: i ≻ t s j if and only if i ≻ s j or when i and j at the same ranking and t(i) > t(j); if each school has diferent rules for the tiebreaker, use τ � (t s 1 , . . ., t s |s| ) as the sum of the tiebreakers.
Kojima et al. [28] believe that a stable match μ is Paretoefcient and envy-free, while Roth [48] believes that in some cases, the deferred acceptance algorithm cannot satisfy both stability and Pareto efciency.In addition, Roth [25] mentioned that if the students make the application, there will be optimal and stable results for the students.If the school proposes it, there will be no optimal and stable results for the school; that is, there is a one-way strategy-proofness.In this study, following the characteristic of deferred acceptance algorithm for one-to-many matching, students initiate the application to achieve the optimal stable outcome for themselves, while schools do not have the optimal stable outcome.It is assumed that patients applying to rehabilitation buses can obtain the optimal stable outcome.
Te following are the matching steps of the deferred acceptance algorithm and the top trading cycle: (1) Deferred acceptance algorithm matching steps Step 1: Each rehabilitation bus schedule has a passenger quota limit.Each passenger proposes their most favorite shift according to the order of preference, and each shift temporarily provides a passenger with a seat according to the order of preference of the passengers.If the quota of the shift is full, the application for the shift is rejected by other passengers.

In general, at
Step m: Passengers accepted in the previous step can propose the next favorite shift according to their preference.Each shift will be compared with the passengers temporarily accepted in the order of passenger preference and the passenger quota limit.Currently, each rehabilitation bus in Taiwan allows to take up to 2 passengers with their wheelchairs simultaneously.A passenger with higher priority will be accepted while other passengers who apply for this shift will be rejected.When there is no new application for passengers, the matching will be terminated, and the temporarily accepted passengers will be converted to formal acceptance for each shift.Te passengers will get the shift at that time.Tis step is referred to as Step m.
(2) Te top trading cycle matching steps Step 1: Place a counter on each shift to record the remaining places for each shift.Each passenger points to their favorite shift according to his/her preference, and each shift points to the passenger with the highest priority, forming at least one cycle.Te passenger in each cycle obtains a seat on the shift he/she points to and removes it.Ten, the shift's counter is reduced by one, and if the counter reaches zero, the shift is removed.In general, at Step n: Each remaining passenger points to their favorite among the remaining shifts, and each shift points to the passenger with the highest priority among the remaining passengers, forming at least one cycle.In each cycle, the passenger gets a seat on the shift he points to and is removed, and the shift counter is decreased by one.If the counter is reduced to zero, the shift is removed.When every passenger has been given a seat, or when all preferences of the passenger have been considered, the matching process is terminated.Tis step is referred to as Step n.
Here, we provide an example to illustrate the deferred acceptance algorithm and the top trading cycle procedure: Example 1. Tere are rehabilitation bus shifts s 1 and s 2 , and passengers t 1 , t 2 , t 3 , t 4 , t 5 .Each shift has two available seats.
Te following represents passengers' preferences for the rehabilitation bus shifts:

(10)
Below are the preferences of the rehabilitation bus shifts for the patients: Te steps of the deferred acceptance algorithm matching are as follows: Step 1: Patients t 1 , t 3 , and t 4 apply to shift s 1 .Te priority order of shift s 1 for these patients is Te steps of the top trading cycle matching are as follows: Step 1: Patients point to their most preferred shifts, and shifts point to their highest-priority patients.Specifcally, patients t 1 , t 3 , and t 4 point to shift s 1 .Te priority order of shift s 1 for these patients is

Application of Models and Computational Results
Te numerical analysis in this study is based on the rehabilitation bus dispatching data provided by the Hualien Mennonite Foundation from June to December in 2016.Tis data serves as a reference for model planning; however, patient-specifc information is not recorded in the dataset.Te disability level, ranking shift, ride sharing, and number of appointments of patients are simulated based on the interview information with our industrial partners.Tere are a total of 9,533 records, served by 25 rehabilitation buses.On average, a vehicle operates 5.2 round trips per day.Tis study uses patients and rehabilitation bus schedules as the two sides of the matching.To simplify the model, here we frst take the one-way journey with limited feet size from the patient's designated place to the medical institution as an example, and set the appointment time from 8:00 to 11:30 a.m. and 1:00 to 4:30 p.m. Te rehabilitation bus could be reserved every half hour, and a total of 16 time slots are available in this case.Two rehabilitation buses could be dispatched in each time slot, and one rehabilitation vehicle can take two wheelchairs and their accompanying family members.
Taking the Hualien Tzu Chi Medical Center as an example, the patient completes the appointment, and then the hospital reservation system would suggest a consultation time based on the corresponding date and consultation number.Te patient can request the rehabilitation bus pickup service according to the recommended consultation time.Tis study sets the service reservation request rule that patients can make an appointment for four vehicle shifts, which must be prioritized.Te appendix provides additional relevant information.
Te selection of patients by the rehabilitation bus service provider is based on the needs of patients and operational considerations.Te main diference between our proposed approach and the current reservation method is to consider mutual preference ranking among the rehabilitation bus service providers and the patients, as well as the reservation process.In terms of preference ranking, patients can prioritize their preferred vehicle time slots based on their medical appointments.On the other hand, for the rehabilitation bus service, it is considered a social welfare service while resources are limited, so they must be allocated to patients in greatest need.Patients who do not require bed rest or wheelchair assistance may have other transportation options, such as taxis or public buses.However, patients who are bedridden or heavily reliant on wheelchairs need special vehicles for transportation.In addition, according to the information on the Hualien County Government's social welfare web page, each service user can use the rehabilitation bus for a maximum of eight trips per week.To ensure fair distribution of resources, the number of fulflled rides is also taken into consideration.Furthermore, carpooling and the distance for pick-up are considered to evaluate the operational efciency of the rehabilitation bus operators.Carpooling can increase vehicle utilization, while the distance of travel can maximize the number of passengers carried.As for changes in the reservation process, during the matching process, the preferences of both the rehabilitation bus and each applicant need to be taken into account.Tus, a certain number of applicants are required for the matching process.Back to the current mechanism, reservations are opened seven days prior to the travel date and then would be arranged based on frst-come, frst-serve rules.In this study, the same period is considered for reservation.Once the matching is completed, patients are notifed if their reservation is successful.It should be noted that last-minute reservations are not considered in this study.
In addition, the level of disability of patients is used as their need, and the three items of shared rides, number of rides, and destination arrival distance are used as operational considerations.In Taiwan, disability qualifcations are divided into four levels: extremely severe, severe, moderate, and mild.However, patients who do not need wheelchairs have more vehicle choices, so this study did not use disability qualifcations as the evaluation standard.According to investigations, the qualifcations for boarding rehabilitation buses in counties and cities in Taiwan are determined by the responsible units of the county government.Still, most of them cannot clearly defne the degree of disability.However, Taipei City's "Taipei City Passenger Service Notice for Small Air-Conditioned Vehicles for the Disabled" uses specifc A, A1, A2, and B, four levels as the priority order for booking vehicles.Among them, "Special A" refers to those who are in a vegetative state with severe disabilities needed the assistance of crutches or wheelchairs; "A1" means people with severe visual impairment; "A2" means people with severe disabilities except for A and A1 and "B" means people with moderate and mild disabilities.Terefore, this research is graded according to the defnition of the Taipei City Government and represented by 1 to 4. 4 indicates A with the most severe disability, 3 represents A1, 2 represents A2, and 1 represents B, as shown in Table 2.
From the perspective of rehabilitation bus operations, sharing rides can reduce operating and vehicle maintenance costs.Tis study divides the willingness to share rides into fve levels.Te score of 5 means that they agree with carpooling, while a score of 1 means they disagree entirely, as the second reference value when the degree of disability is the same.In addition, the number of times taking the rehabilitation bus is mainly counted as one round trip per month, with a total of 8 times.In this study, the number of rides in the current month is used as the reference value when the degree of disability and willingness to ride is the same.Priority is given to those with fewer rides.Finally, the deadheading miles without transporting patients are also a waste of operating costs for rehabilitation bus contractors.
Tis study takes the North District of Hualien County as an example.A medical center and three regional hospitals in Hualien are all near Hualien City.It is about 40 kilometers from Heping Village, which is the most northerly part of the North District.As shown in Table 3, the degree of disability, willingness to ride and the number of rides are all the same, and the shorter mileage will be used as the tiebreaker.To avoid multiple tie-breakers, the stable results generated by the deferred acceptance algorithm may not be the agent's proposed optimal results, so each rehabilitation bus schedule has a strict preference for each patient according to the four priority orders.For example, patients A and B choose the same shift s, and the disability levels of the two patients are both 4 points.In contrast, patient A's willingness to share a ride is 5 points, while patient B's willingness to share a ride is 4 points; thus, the priority order of shift s for the two patients is A ≻ s B.
Regarding the reservation process of the rehabilitation bus, it is generally open at a fxed time.For example, in Hualien County, it is seven days before the boarding date.If there are counties and cities with precise classifcations, they are separated by opening hours.In Taipei City, patients with specifc A-level disabilities can make reservations at 9:00 am fve days before the ride, and A1-level patients can make reservations at 1:30 pm fve days before the ride.Reservations are made by telephone or online.Tis method will likely cause congestion during system opening hours, and those who make reservations frst will get seats frst.In this study, the level of disability has been considered during the matching process.Tere is no need to make an appointment by time slot.Patients only need to log on to the Internet during the opening hours to make an appointment.After the system is paired, the patient will be notifed of whether the appointment is successfully made?If the appointment is completed, the patient is informed of the appointment time.If the appointment is unsuccessful, the contact information of the rehabilitation taxi is provided, or the rehabilitation taxi can be included in the system for matching in the future.Figure 4 illustrates the appointment processes in this study.
Tis study aims to apply the top trading cycle and patient proposing deferred acceptance algorithms for matching, to analyze identical numerical cases and fnd the better ftness algorithm in real-world operations.After the two algorithms are matched, the same result is obtained in Table 4.With 72 patients and 64 seats on the rehabilitation bus, 63 patients were successfully matched, with one seat left over.In the case of the remaining vacancy in S12, the result shows that no one selected this shift due to lack of preference.In this study, among 63 patients, 57 patients obtained the frst priority time slot, 1 patient obtained the second priority time slot, 3 patients obtained the third priority time slot, and 2 patients obtained the fourth priority time slot.In addition, since the rehabilitation bus aims to prioritize patients with higher disability levels for its services, this study will sum up the disability level scores of the patients who receive services to represent the value of the rehabilitation bus's investment in providing services.Based on the simulation results, the total disability level score of the patients receiving services is 170 points.

10
Journal of Advanced Transportation The system notifies you of the appointment slot via SMS.
The system informs that the reservation is unsuccessful and provides other ride information.

Yes
No      Journal of Advanced Transportation Tis study employed some numerical studies based on the real dispatching data, to arrange appointments by patient IDs.Te base case follows a frst-come, frst-served rule, to prioritize patients with earlier reservations, as the existing operational mechanism in practice.In this section, d 01 denotes to the earliest appointment, whereas d 72 corresponds to the latest reservation.As shown in Table 5, a total of 64 out of 72 patients were able to secure a seat on the rehabilitation bus.Among them, 49 patients were given the frst priority time slot, 6 patients were given the second priority time slot, 5 patients were given the third priority time slot, and 4 patients were given the fourth priority time slot.Te total disability level score of the patients receiving services was 155 points.

Conclusion and Discussion
In order to improve the demand and supply matching problem of the rehabilitation transportation service in eastern Taiwan, this study examined the deferred acceptance algorithm and the top trading cycle method to match patients and service vehicles.In accordance with patients' priorities and desired time slots of rehabilitation transportation service, service providers could dispatch the vehicle to serve those requests based on the degree of disability of the patient, the willingness to share rides, the number of appointments, and the distance from the designated place of the patient to the medical institution.Tis study examined the data provided by the Hualien Mennonite Foundation from June to December 2016.Te simulation results showed that out of the 72 patients, 63 were successfully matched.Among them, 57 patients got their frstranking shift, 1 got the second-ranking shift, 3 got the thirdranking shift, and 2 got the fourth-ranking shift.Te total score of the disability level for these serviced patients was 170 points.Compared with the current "frst-come, frst-served" mode, using the same group of simulated data, 48 patients got the frst-ranking shift, 6 got the second-ranking shift, 4 got the third-ranking shift, and 5 got the fourth-ranking shift, with a total score of 155 points for their disability level.Results listed in Table 6 shows our proposed matching algorithms could signifcantly satisfy patients' desired time slots.
For the consistent results obtained by the two algorithms in this study, we conducted a verifcation by simulating with 10 people and two shifts.If the two shifts have consistent selection criteria for patients' preferences, such as frst comparing disability levels and then ridesharing willingness if tied, then the matching results of the two algorithms will be consistent.However, if the two shifts have diferent selection criteria for patients, such as one shift prioritizing disability levels and the other shift prioritizing ridesharing willingness, then the matching results of the two algorithms will be diferent.In the future, we can use this fnding to adjust the preference selection rules for some rehabilitation bus shifts and further explore the diferences between the two algorithms, such as more complex matchings with partitions of time slots, and to compare the timing of using the two algorithms or hybrid them.Several future research lines are listed as follows.Detailed parameter settings could be viewed in appendix Tables 7-10.
(1) Considering a round trip or a series of trip chain process with multiple demand requests (2) Considering the feasibility of combing passengers' locations during the phase of route planning, with time-space network viewpoints (3) Considering an efective zoning and clustering area, to reduce overall service distance (4) Considering a dynamic and stochastic matching mechanism during a changing environment

Figure 1 :Figure 2 :
Figure 1: Te proportion of the aged 65+ out of the total population of Taiwan.

Figure 3 :
Figure 3: Allocation of medical resources in Hualien County.
Tis study aims to fnd the maximum total utility of the matching and the minimum number of blocking pairs.(i) u ds represents the utility obtained by the patient and the rehabilitation bus shift, where u d (s) is the utility ds represents the presence of blocking pairs, where ω ds � 0 indicates the absence of blocking pairs, and ω ds � 1 indicates the presence of blocking pairs.A stable matching algorithm will not result in a blocking pair.Te binary decision variable is denoted as follows: ω � (ω ds ) (d.s)∈D×S .
if the patient d is assigned to rehabilitation bus sift s,
Terefore, t 1 and t 3 are provisionally accepted, and t 4 is rejected.Simultaneously, patients t 2 and t 5 apply to shift s 2 .Te priority order of shift s 2 for these patients is t 4 ≿ s 2 t 1 ≿ s 2 t 3 ≿ s 2 t 5 ≿ s 2 t 2 .As a result, t 2 and t 5 are provisionally accepted.Step 2: Patient t 4 applies to shift s 2 .In the previous step, shift s 2 provisionally accepted patients t 2 and t 5 .Te priority order of shift s 2 for these patients is 8 Journal of Advanced Transportation t 4 ≿ s 2 t 1 ≿ s 2 t 3 ≿ s 2 t 5 ≿ s 2 t 2 .Consequently, shift s 2 retains patient t 5 , rejects patient t 2 , and provisionally accepts patient t 4 .Patient t 2 , who was rejected in the earlier step, applies to shift s 1 .In the previous steps, shift s 1 provisionally accepted patients t 1 and t 3 .Te priority order of shift s 1 for these patients is t 1 ≿ s 1 t 2 ≿ s 1 t 3 ≿ s 1 t 4 ≿ s 1 t 5 .Hence, shift s 1 retains patient t 1 , rejects patient t 3 , and provisionally accepts patient t 2 .Step 3: Patient t 3 applies to shift s 2 .In the previous steps, shift s 2 provisionally accepted patients t 4 and t 5 .Te priority order of shift s 2 for these patients is t 4 ≿ s 2 t 1 ≿ s 2 t 3 ≿ s 2 t 5 ≿ s 2 t 2 .Terefore, shift s 2 retains patient t 4 , rejects patient t 5 , and provisionally accepts patient t 3 .Patient t 5 , who was rejected earlier, applies to shift s 1 .In the previous steps, shift s 1 provisionally accepted patients t 1 and t 2 .Te priority order of shift s 1 for these patients is t 1 ≿ s 1 t 2 ≿ s 1 t 3 ≿ s 1 t 4 ≿ s 1 t 5 .Consequently, shift s 1 temporarily retains patients t 1 and t 2 and rejects patient t 5 .Step 4: With all patients having submitted their applications and no new applications being received, shifts s 1 and s 2 convert provisionally accepted patients to formal acceptances.Tis means that patients t 1 and t 2 secure seats on shift s 1 , and patients t 3 and t 4 secure seats on shift s 2 .Te matching process concludes.
Shift s 1 points to patient t 1 , forming a cycle.Patients t 2 and t 5 point to shift s 2 .Te priority order of shift s 2 for these patients is t 4 ≿ s 2 t 1 ≿ s 2 t 3 ≿ s 2 t 5 ≿ s 2 t 2 .However, shift s 2 doesn't form a cycle.Consequently, patient t 1 secures a seat on shift s 1 and exits the matching process.Shift s 1 has one remaining seat, and shift s 2 has two remaining seats.Step 2: Patients t 4 point to shift s 1 .Te priority order of shift s 1 for these patients is t 1 ≿ s 1 t 2 ≿ s 1 t 3 ≿ s 1 t 4 ≿ s 1 t 5 .Since patient t 1 has already left the matching process, shift s 1 points to patient t 2 .Patients t 2 and t 5 point to shift s 2 .Te priority order of shift s 2 for these patients is t 4 ≿ s 2 t 1 ≿ s 2 t 3 ≿ s 2 t 5 ≿ s 2 t 2 , so shift s 2 points to patient t 4 .A cycle forms where shift s 2 points to patient t 4 , patient t 4 points to shift s 1 , shift s 1 points to patient t 2 , and patient t 2 points to shift s 2 .Terefore, patient t 2 secures a seat on shift s 2 , and patient t 4 secures a seat on shift s 1 , both leaving the matching process.Shift s 1 has no remaining seats, and shift s 2 has one remaining seat.Step 3: Patients t 3 and t 5 point to shift s 2 , and shift s 2 points to patient t 3 , forming a cycle.As a result, patient t 3 secures a seat on shift s 2 , and shift s 2 has no remaining seats.Te matching process concludes.Table1presents the results of the example using the deferred acceptance algorithm and the top trading cycle matching:

Table 1 :
Te results of the example using the deferred acceptance algorithm and the top trading cycle pairing are as follows.

Table 2 :
Classifcation of disability levels in service notices for passengers of small air-conditioned cars for people with disabilities in Taipei City.

Table 3 :
Priority order for matching patient and rehabilitation bus.

Table 4 :
Using the deferred acceptance algorithm and top trading cycle as stable matching mechanisms, the simulation results of assigning patients and rehabilitation buses get the same result.

Table 5 :
Overall simulate results of frst-come, frst-served for the rehabilitation bus seats.

Table 7 :
Te research model setting.

Table 9 :
Disability level and willingness to share rides.