Abstract

Government agencies provide huge amount of subsidies to support the rehabilitation transportation service over the past decade in eastern Taiwan; however, low demand request fulfillment 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. This study applies the market design theory to match the rehabilitation buses with the requests of patients, so as to improve resource utilization efficiency in rural areas. The 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. The 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 fulfilled 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 “first-come-first-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 “first-come, first-served” mode, 48 requests obtained the first-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 first-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.

1. Introduction

According to the definition 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 certificates 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 significantly 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.

There 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 staff 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 requests from the southern and central areas going toward northern hospitals definitely suffer from the ineffective transportation service and increasing dead mileages.

The existing key performance indicators (KPIs) also significantly affect system operations. There are two main KPIs that monitor and control the social welfare transportation service: (1) the annual total number of service trips and (2) the effective service distance rate (i.e., the reduction of the dead mile rate). The effective service distance rate refers to the distance traveled by people with disabilities on the rehabilitation bus. It specifically calculates the round-trip distance between the disabled person’s house and the medical facility, excluding the round trip distance between the bus depot and the disabled person’s house when the people with disabilities is not on the rehabilitation bus. Both KPIs induce local service providers to favor accepting demand requests within short distances rather than those requiring promising requests with long travel distances. It should be noted that “the number of trips” is not differentiated between short and long travel distance trips, which may result in spatial inequity issues in rural areas.

The Hualien County Government entrusts the Mennonite Social Welfare Foundation to operate rehabilitation and long-term care buses [5]. The foundation owns 25 rehabilitation buses and 12 long-term care buses; in addition, six parent-care institutions have accepted the government entrusting them with the operation of long-term care buses. Taking the 2020 data provided by the Mennonite Foundation as an example, Hualien is divided into three districts: the northern district includes Hualien City, Ji’an Township, Xincheng Township, Xiulin Township, and Fengbin Township; the central district covers Shoufeng Township, Fenglin Township, Guangfu Township, and Wanrong Township; and the southern district includes Yuli Township, Ruisui Township, Zhuoxi Township, and Fuli Township. The numbers of patients carried by the Northern, Central, and Southern Districts accounted, respectively, for 73.6%, 10.6%, and 14.5% of the total number of patients, with an average of 2,498 trips per month based on five working days per week, averaging more than 120 trips a day. In April 2019, the news revealed that Hualien County’s rehabilitation buses were obsolete and the county faced a shortage of vehicles [6]. Thus, enhancing the vehicle utilization becomes a significant issue.

Most of previous studies focused on platform integration (e.g., [7, 8], route planning (e.g., [9, 10], and/or service quality (e.g., [7, 11], but rarely focused on the resource allocation by reservation systems. This study analyzes the relation between rehabilitation buses and patients from the market design perspective. In the past, market design was primarily used in university admissions, student selection, pairing residents with hospitals, and matching kidney transplants among nonrelatives. The seat allocation of the rehabilitation bus is also the distribution of intangible assets from the perspective of the patients who use the rehabilitation buses. This study aims at making preference and process improvements, in order to increase the utilization rate of rehabilitation buses and reduce their operating costs.

2. Literature Review

This study plans the rehabilitation bus reservation system from the market design perspective. This 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 effective utilization rate of rehabilitation vehicles.

Taiwan’s rehabilitation bus fleet was first 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. The 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 difficulties in developing Taiwan’s rehabilitation buses: insufficient numbers of service vehicles, limited appointment times and myopic service targets of local governments, and a lack of flexibility due to the first-come, first-served reservation rules. The 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 offer 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 flexible 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. Through the disclosure of information, users can obtain the required resources in real time, and practitioners can manage them more easily. The above study points out the related difficulties of rehabilitation buses, such as an insufficient number of vehicles, a deficient 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 differences in arrival times. The researchers believe that customized buses offer several advantages, including shorter travel times, faster speeds, fewer stops, and minimal differences 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 benefits and travel costs. This research investigates on regional segmentation and route planning based on customer demands, to enhance customer satisfaction and loyalty, while also improving operational efficiency and service quality. Furthermore, it identifies necessary routes to eliminate unnecessary operational costs. Taking Beijing as a case study, the number of routes, total route length, fleet 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 off-peak vehicle utilization to enhance the system efficiency. 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. They 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 fluctuation by using the ARIMA model and validated the results with data from Toulouse’s DRTS in France. The findings highlighted the potential to enhance transport efficiency and service quality and demonstrated that reservation rates and service types would significantly influence demand fluctuations. In accordance with the findings of the above studies, the operational efficiency of DRT services involved planning for vehicle utilization, ridesharing adjustments, passenger volume, and travel time, while also need to fulfill customer demands.

The Hualien County rehabilitation bus officially launched a reservation system in June 2022. It uses telephone and online reservations in parallel but still adopts the first-come, first-served method. The 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. Through 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 differ 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 effectiveness of resources to be maximized. The three most commonly discussed algorithms in this field are the Boston algorithm, the deferred acceptance algorithm, and the top trading cycle. The Boston algorithm originated from the Boston school choice, it adopts a first-come, first-served method. If students put star schools as their first choice, they will easily fail the rankings with high scores. They will tend to choose the second or third choice without directly following their true preferences, which are not satisfied 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. Abdulkadiroğlu 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 fields 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 offer for matching, while the other side remains unchanged, representing students. This 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 different. 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. The same holds true when the female initiates the confession. Therefore, both parties will express their true preferences to achieve the most stable outcome. However, the school admissions problem has a student-optimal stable match rather than a college-optimal stable match. Students will express their true preferences as the dominant strategy, which is the main difference 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 offered 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 significant factors influenced 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. The 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 difference. Huang [29] defined that strict preference means consumers indicating A is better than B, which is represented by symbols as ; 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 ; while consumers express that A is as good as B, which means that there is no difference between A and B, represented by symbols, that is, .

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, differences, and preferences for the same option would change based on different tasks and environments. The comparison processes also affect the priority. Hanson [32] believed that preference is not static, and the type of preference may have four schemes: modification, restriction, addition, and subtraction. Öztürké et al. [33] proposed that the type of preference can be divided into the basic structure , extended structure , and valence structure. In this context, P, I, and Q represent preference structure, indifference order, and situations where the two elements are the same or uncertain, respectively. These 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 affecting stable matching results. Aziz et al. [36] explored that stable matching would be influenced due to the uncertainty of preferences with limited information.

Abdulkadiroglu and Andersson [37] mentioned that Pareto efficiency, stability, and strategy-proofness could be used as indicators to measure the goodness of the matching algorithms. Pareto efficiency refers to improving the pair’s welfare without harming others’ rights and interests. For 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 efficient. 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. The 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 fields. 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 configuration 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 modified top trading cycle. Kong et al. [44] examined a top trading cycle as a parking space sharing on the applications of the IOTs.

This 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. The preference for choosing a rehabilitation bus will be based on the patient’s medical treatment schedule. The rehabilitation bus will prioritize patients based on their disability level, willingness to ride with others, number of successful reservations, and mileage. The algorithm’s stability, strategy-proofness, and Pareto efficiency are expected to satisfy the needs of both patients and rehabilitation bus contractors.

3. Modeling Framework and Methodologies

This 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. The deferred acceptance algorithm and the top trading cycle are implemented to obtain the best allocation of resources.

The 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. This 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.

This 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 confirm the patient’s disability level prior to granting registration qualification, 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. This 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.

The following are the relevant settings of this study.(i)A set of patients (ii)A set of rehabus shifts (iii)Each rehabus shift has a capacity of (iv)Each patient has a strict preference relation over , signifies an unmatch(v)Each rehabus shift has a strict preference over , signifies an unmatch

Assuming that represents the matching function between passengers and rehabilitation bus shifts: or each , then define , when and all , then the matching function is feasible. Assume that represents the total number of seats of all rehabilitation bus shifts; represents the total preference of all patients; and represents the total preference of all rehabilitation buses for patients, and the mechanism is a matching problem defined by parameters such as .

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 such thatfor all

This study aims to find the maximum total utility of the matching and the minimum number of blocking pairs.(i) represents the utility obtained by the patient and the rehabilitation bus shift, where is the utility obtained by patients, prioritizing shifts obtained with higher priority, and is the utility obtained by rehabilitation bus shifts, assigned to higher priority positions. The total utility is , given a matching .(ii) represents the presence of blocking pairs, where indicates the absence of blocking pairs, and indicates the presence of blocking pairs. A stable matching algorithm will not result in a blocking pair. The binary decision variable is denoted as follows: .

Maximizing matching efficiency involves effectively 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.

The formulas are as follows:

Subject to

The 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 , it means that, after the matching process, patient prefers shift more than the one assigned to them, shift . Also, implies that, after the matching process, the rehabilitation bus prefers patient more than the one assigned to them, patient . When , it indicates no disruptions, and the matching is stable. If , it means there are disruptions in the matching.

In this study, relevant parameter settings are modified 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. There are two sets; one is the set of patients , and the other set is the shift schedule of the rehabilitation bus with representing the seat quota of each shift schedule ; 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 has a strict preference over , 0 means that the patient is not assigned to a seat; for example, means that patient d prefers shift to , and indicates the “at least as good” relation, since patient prefers shift to , but and are at least as good:

Each rehabilitation bus shift s has a strict preference over the set of patient , means that the rehabus shift prefers patient more than , and 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 qualifications. 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 , is also “responsive”:(1)For any with and any , (2)For any with and any ,

Then, the set of all strict responsive preferences can be expressed as follows:

Abdulkadiroglu and Andersson [37] mentioned that using exogenous and quantifiable criteria as a sorting basis is called nonstrategic, while the preference order is based on personal preference and cannot be verified, 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 efficiency, but confirming when the preference is indifferent is not easy. Therefore, 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 will be inefficiencies; 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 efficiency and strategy-proofness.

Abdulkadiroğlu et al. [47] claimed that the tiebreaker is bijection , and the tie associated between schools can be broken by and . The 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 , and for each element in the set of natural numbers N, there exists a unique corresponding element in the set of natural numbers , to ensure that each applicant can receive a unique position. can be expressed as: if and only if or when and at the same ranking and ; if each school has different rules for the tiebreaker, use as the sum of the tiebreakers.

Kojima et al. [28] believe that a stable match μ is Pareto-efficient and envy-free, while Roth [48] believes that in some cases, the deferred acceptance algorithm cannot satisfy both stability and Pareto efficiency. 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.

The following are the matching steps of the deferred acceptance algorithm and the top trading cycle:(1)Deferred acceptance algorithm matching stepsStep 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, atStep 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. The passengers will get the shift at that time. This step is referred to as Step m.(2)The top trading cycle matching stepsStep 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. The passenger in each cycle obtains a seat on the shift he/she points to and removes it. Then, the shift’s counter is reduced by one, and if the counter reaches zero, the shift is removed.In general, atStep 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. This 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. There are rehabilitation bus shifts and , and passengers . Each shift has two available seats.
The following represents passengers’ preferences for the rehabilitation bus shifts:Below are the preferences of the rehabilitation bus shifts for the patients:The steps of the deferred acceptance algorithm matching are as follows:Step 1: Patients , , and apply to shift . The priority order of shift for these patients is . Therefore, and are provisionally accepted, and is rejected. Simultaneously, patients and apply to shift . The priority order of shift for these patients is . As a result, and are provisionally accepted.Step 2: Patient applies to shift . In the previous step, shift provisionally accepted patients and . The priority order of shift for these patients is . Consequently, shift retains patient , rejects patient , and provisionally accepts patient . Patient , who was rejected in the earlier step, applies to shift . In the previous steps, shift provisionally accepted patients and . The priority order of shift for these patients is . Hence, shift retains patient , rejects patient , and provisionally accepts patient .Step 3: Patient applies to shift . In the previous steps, shift provisionally accepted patients and . The priority order of shift for these patients is . Therefore, shift retains patient , rejects patient , and provisionally accepts patient . Patient , who was rejected earlier, applies to shift . In the previous steps, shift provisionally accepted patients and . The priority order of shift for these patients is . Consequently, shift temporarily retains patients and and rejects patient .Step 4: With all patients having submitted their applications and no new applications being received, shifts and convert provisionally accepted patients to formal acceptances. This means that patients and secure seats on shift , and patients and secure seats on shift . The matching process concludes.The 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. Specifically, patients , , and point to shift . The priority order of shift for these patients is . Shift points to patient , forming a cycle. Patients and point to shift . The priority order of shift for these patients is . However, shift doesn’t form a cycle. Consequently, patient secures a seat on shift and exits the matching process. Shift has one remaining seat, and shift has two remaining seats.Step 2: Patients point to shift . The priority order of shift for these patients is . Since patient has already left the matching process, shift points to patient . Patients and point to shift . The priority order of shift for these patients is , so shift points to patient . A cycle forms where shift points to patient , patient points to shift , shift points to patient , and patient points to shift . Therefore, patient secures a seat on shift , and patient secures a seat on shift , both leaving the matching process. Shift has no remaining seats, and shift has one remaining seat.Step 3: Patients and point to shift , and shift points to patient , forming a cycle. As a result, patient secures a seat on shift , and shift has no remaining seats. The matching process concludes.Table 1 presents the results of the example using the deferred acceptance algorithm and the top trading cycle matching:

4. Application of Models and Computational Results

The 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. This data serves as a reference for model planning; however, patient-specific information is not recorded in the dataset. The disability level, ranking shift, ride sharing, and number of appointments of patients are simulated based on the interview information with our industrial partners. There are a total of 9,533 records, served by 25 rehabilitation buses. On average, a vehicle operates 5.2 round trips per day. This study uses patients and rehabilitation bus schedules as the two sides of the matching. To simplify the model, here we first take the one-way journey with limited fleet 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. The 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. The patient can request the rehabilitation bus pick-up service according to the recommended consultation time. This study sets the service reservation request rule that patients can make an appointment for four vehicle shifts, which must be prioritized. The appendix provides additional relevant information.

The selection of patients by the rehabilitation bus service provider is based on the needs of patients and operational considerations. The main difference 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 fulfilled rides is also taken into consideration. Furthermore, carpooling and the distance for pick-up are considered to evaluate the operational efficiency 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. Thus, 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 first-come, first-serve rules. In this study, the same period is considered for reservation. Once the matching is completed, patients are notified 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 qualifications 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 qualifications as the evaluation standard. According to investigations, the qualifications 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 define the degree of disability. However, Taipei City’s “Taipei City Passenger Service Notice for Small Air-Conditioned Vehicles for the Disabled” uses specific 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. Therefore, this research is graded according to the definition 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. This study divides the willingness to share rides into five levels. The 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. This 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 , 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 for the two patients is .

Regarding the reservation process of the rehabilitation bus, it is generally open at a fixed time. For example, in Hualien County, it is seven days before the boarding date. If there are counties and cities with precise classifications, they are separated by opening hours. In Taipei City, patients with specific A-level disabilities can make reservations at 9:00 am five days before the ride, and A1-level patients can make reservations at 1:30 pm five days before the ride. Reservations are made by telephone or online. This method will likely cause congestion during system opening hours, and those who make reservations first will get seats first. In this study, the level of disability has been considered during the matching process. There 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 notified 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.

This study aims to apply the top trading cycle and patient proposing deferred acceptance algorithms for matching, to analyze identical numerical cases and find the better fitness 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 first 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.

This study employed some numerical studies based on the real dispatching data, to arrange appointments by patient IDs. The base case follows a first-come, first-served rule, to prioritize patients with earlier reservations, as the existing operational mechanism in practice. In this section, denotes to the earliest appointment, whereas 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 first 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. The total disability level score of the patients receiving services was 155 points.

5. 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.

This study examined the data provided by the Hualien Mennonite Foundation from June to December 2016. The simulation results showed that out of the 72 patients, 63 were successfully matched. Among them, 57 patients got their first-ranking shift, 1 got the second-ranking shift, 3 got the third-ranking shift, and 2 got the fourth-ranking shift. The total score of the disability level for these serviced patients was 170 points. Compared with the current “first-come, first-served” mode, using the same group of simulated data, 48 patients got the first-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 significantly satisfy patients’ desired time slots.

For the consistent results obtained by the two algorithms in this study, we conducted a verification by simulating with 10 people and two shifts. If the two shifts have consistent selection criteria for patients’ preferences, such as first 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 different 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 different. In the future, we can use this finding to adjust the preference selection rules for some rehabilitation bus shifts and further explore the differences 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 710. (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 effective zoning and clustering area, to reduce overall service distance(4)Considering a dynamic and stochastic matching mechanism during a changing environment

Data Availability

Data are attached in the appendix.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

The authors are grateful to the Eastern Center for Transportation Research and Development at the National Dong Hwa University and the Ministry of Science and Technology (111-2410-H-259-040) in Taiwan, R.O.C., both of which partly funded this study.