Abstract

Passenger crowding in a city bus is uneven and the most crowded area always appears in the wheelbase of the carriage. The present study aimed to provide a sensitive indicator of the most crowded area to schedule bus headways online using a binocular camera sensor. The algorithm of standee density in the wheelbase area (SDWA) was given by a nonlinear regression model considering standees’ preferences for the standing area, and its goodness of fit and continuity were tested. Considering the characteristics of city bus operation, the proportion of the number of interstops determined from the SDWA was used as a judgment index for passenger crowding. Based on the SDWA algorithm and the judgment index, an online headway model of city buses was proposed, and the feasibility of such a model was verified through a case study in Xi’an city. The proposed model might be beneficial to bus scheduling, seating provision, and bus design.

1. Introduction

Standee density refers to the number of standing passengers in a unit effective area. It is an important indicator that reflects whether the bus selected matches the line and whether the headway is rational. The limit load of a city bus in Europe and the United States is 5–6 pax/m2 [1, 2], while the number of standees approved in China is 8 pax/m2 [3]. According to surveys, the standee density in a bus in Xi’an city during peak hours reaches 9–10 pax/m2 and often exceeds the threshold of 8 pax/m2; however, in actual operation, this reduces ride comfort and overloads buses.

The standee density at various positions within the carriage is actually uneven, and sparsely populated areas at the front and in a rear aisle might affect the true standee density characteristics and impair sensitivity to changes in the standee flow. Therefore, the number of standees cannot truly reflect the maximum passenger crowdedness. The position preference of passengers on each bus line can be determined. According to the passengers’ preference for selecting a standing position, this study proposed some important areas to synthesize a standee density algorithm that could sensitively express the most crowded areas in buses to schedule the headway of the bus in real time [4].

Currently, to meet passengers’ travel requirements, a drivers’ workload on a bus line is fixed for a period of time by public transport enterprises in China, notwithstanding the operational cost. Likewise, the total scheduling frequency is also assigned based on the fixed workload on the line, but the headway varies; the fixed workload refers to that the departure frequency of each bus is constant to ensure the demands of operation. Public transport enterprises in China are totally state-owned enterprises. Regardless, if they are in debt, local governments pay it by the end of the year, as long as they guarantee the necessary services. Consequently, in this case, different headways per day have a slight impact on the operational cost. In the bus scheduling station, the dispatchers are unable to obtain information on the real-time passenger flow. As a consequence, many problems arise, such as personal judgment subjectivity in attendance and the headway not being rational to the bus line [5, 6]. Therefore, overcrowding of passengers often occurs. The main problem, therefore, is the allocation of online headways in the trough hour, off-peak hour, and peak hour.

Similar studies considered the operational cost and passenger waiting time as a balance index for determining the offline bus headway. The main objective of the present study was to determine the online bus headway without the operational cost; correspondingly, the passenger waiting time would surely be a unique index. As the arrival time of each passenger at the bus stop is random and the passenger waiting time is hard to determine online, this study proposed introducing passenger crowding instead of the waiting time. For online scheduling, first, the online passenger flow data obtained by the collector equipped on the front and rear doors of the bus were used. Second, the number of standees was obtained in real time, which represented passenger discomfort during the ride. Therefore, the aforementioned problem led to another problem: determining the online headway according to the standee density.

Due to standee density at various positions being actually uneven, standee density in city buses cannot truly display the most crowded area. In the present study, the number of standees on the bus floor was allocated for each specified area to evaluate the most crowded area. A method for determining the bus headway was established based on the areas of higher standee density on the bus. This model was a pragmatic approach to improve the efficiency of bus transportation and increase the bus travel sharing rate of bus lines with large passenger groups in every city of China.

2. Literature Review

In recent years, considerable attention has been given to witnessing an increased interest in the model of scheduling frequency on public transport. Many bus scheduling models have been established based on offline passenger flow data, resulting in positive effects on the public transport quality of service. In terms of multidimensional analysis of passenger crowdedness, Tirachini optimized the scheduling frequency of subway vehicles considering passenger demand and the supply and operation of public transport [7]. From the standpoint of cost, passenger travel and operational costs were integrated into the newsboy model by Herbon and Hadas [8], who proposed the simulation results of the scheduling frequency of subway vehicles. The standee density is a multipurpose indicator used in pricing strategy, seat capacity, and scheduling arrangement [9]. A route planning and scheduling model has also been proposed based on passenger density and travel distance [10]. In particular, Jara-Díaz proposed an extension of Jansson’s model for a single period based on the effect of vehicle size on operational costs and that of crowdedness on the value of time [11].

Assuredly, the impact of standee density on the bus design and travel cost was evaluated from different perspectives. Tirachini developed a social welfare maximization model with externalities of crowdedness, exposing the interplay between congestion and crowdedness in the design of bus systems [12]. The concept of passenger crowdedness involved sitting passengers and standees. It was a coordinating algorithm for the number of passengers in the carriage. In addition, the crowdedness cost had an internal relationship with passenger crowdedness by estimating the willingness of passengers to choose a moderately relaxed trip at different standee densities [13]. However, with a larger scale passenger flow, the standee density was related to the serviceability of the subway. Therefore, a model for calculating the standee density was entrenched, and conclusive recommendations for its standard were proposed [14].

Furthermore, studies discussed the formation mechanism of standee density and key influencing factors in terms of bus door position and passenger preference in choosing a standing area. In addition, a crowd behavior control model was established, simulation studies were conducted at various crowd densities, and the results were used in the decision support tool of crowd control systems [15]. A follow-up survey proposed that door crowdedness was affected by multiple bus design parameters, including door placement, aisle length, presence of a front seating area, and service type [16].

However, the number of standees during morning and evening peak hours is significantly greater than that of sitting passengers in China, and standees have little chance of getting a seat on the buses. Passengers can get on and off a subway from the same door, although they are allowed only to get on from the front door and off from the rear door of almost all buses in China. Hence, the passing flow on board is difficult to determine, which is the root cause of unevenness in standee density [17, 18]. A train mock-up was especially constructed to examine the impact of door width, seat type, platform edge doors, and horizontal gap on the time taken by passengers to board and alight [19].

Batarce explained that the public transport selection preference showed the application requirements of crowdedness cost, and a random discrete selection probability model was established [20]. Moreover, a baseline-category logit model for selecting standing areas was created considering the travel distance of passengers and the standee density in subways; it was also closely related to the door position [21].

In summary, many studies have reported the characteristics of standee density and offline headway. However, few studies have been conducted on the unevenness of standee density to define the most crowded area, aiming to establish an online bus headway model. Most of the aforementioned studies proposed the calculation method of standee density, determined its threshold, and analyzed the travel mode selection and cost-benefit issue based on passenger crowdedness [22]. Thus, these studies considered the operational cost and passenger waiting time to modify the offline bus headway. The present study proposed a model to overcome these challenges to determine the online headway in trough, off-peak, and peak hours according to the standee density.

3. Data Collection

3.1. Online Data Collection

For better efficiency of getting off a bus, usually, the operation mode is paying the bus fare in cash or by a prepaid card without limit. Consequently, the data for the number of passengers getting off are lost. To overcome this problem, the passenger flow data collector was introduced. It automatically collected the number of standees getting on and off the bus at every bus stop to determine the online scheduling arrangement.

The data collector consisted of an analyzer and two binocular camera sensors (Figures 1(a) and 1(b)). It used the human head calibration algorithm. The cameras installed on the front and rear doors of the bus collected video images (Figures 1(c) and 1(d)). The number of passengers getting on and off the bus was processed and transmitted to the monitoring host through the CAN system and then to the information processing platform via 3G/4G wireless communication [23, 24].

The data collection system must be verified manually for the accuracy of passenger flow. After the system started to run, the data collector was arranged for 12 surveys on the bus, although 28 bus stops existed on the surveyed line (Table 1).

The accuracy of data collection slightly reduces when the passenger flow is dense, but the accuracy can still reach 98.8%. A bus line in Xi’an has 20 buses equipped with data collectors, and an increasing number of bus enterprises have adopted binocular camera sensors to monitor passenger traffic in China.

3.2. Manual Survey Data Collection

A manual survey was adopted due to the unevenness of standee density in each area and the inability of passenger flow data collectors to collect the number of standees in each area of a bus carriage. This featured high precision but involved a high labor cost [25]. According to the stipulation in Xi’an, each bus is operated by 2 drivers for 6 round trips per day, and each bus line is equipped with at least 20 buses. When the bus reaches the highest speed between two bus stops, the standee density is relatively stable. Every two investigators were appointed to investigate the number of standees in the designated areas of one bus [26]. After a survey, 79 round-trip passenger flow data points were obtained in this study. The standees moved to the rear door in basically four areas (Table 2).

Since Areas 2 and 3 were close to rear doors, the changes in the standee density in both areas were more sensitive than those in Areas 1 and 4. Although the cost of a manual survey was high, the number of standees in each area of the bus could be flexibly mastered [27]. Each area of the bus floor was measured during the manual survey process. Basically, the standing area within the wheelbase, Areas 2 and 3, was spacious.

4. Methodology

4.1. Headways Based on the Standee Density

The headway is closely related to the time of the first and last buses, the number of buses available, the scheduling task, and the trough, off-peak, and peak hours [28, 29]. Generally, the public transport company’s operation workload is fixed to ensure the operational needs of the bus line and the annual review of the vehicle production task [30]. For example, for public transport companies in Xi’an city, it is stipulated that the bus runs six round trips per day and three round trips per driver, and it is recorded as C. If a bus line has m buses and the ratio of the number of buses being repaired and rested per day to the total number of buses is d, then the scheduling frequency available to the dispatcher per day is times [31].

Suppose that the time difference between the first and last buses of the line is (min) and that the parking time of the first and last buses is . The first and last buses are scheduled outside of according to dispatchers, in which the scheduling frequency of the number of buses available for the dispatcher is . Therefore, the headway of the bus line during off-peak hours is

The result obtained in equation (1) is actually the average headway of a day, which is the headway of off-peak hours. However, the actual online scheduling arrangement cannot be implemented only by this value, and it also needs to be processed based on the standee density, which means that will vary with the standee density. If the standee density is high during peak hours, the appropriate reduction should be made to , shortening the headways. Conversely, should be appropriately increased to reduce the frequency of scheduling in trough hours.

The problem is that the standee density of each area shows unevenness, and a key indicator is needed to determine online headway according to the density of the most crowded areas. Actually, the areas on the bus floor designated for passenger seating and standing are limited. Standing in a spacious area is an instinct response of passengers. The wheelbase area is spacious enough and often more crowded than the other areas. The standing area is divided into four areas with different densities of standees [32]. According to the manual survey, Figure 2 shows the division of the standing area.

Defining the interstop as the bus line between every two stops, refers to the interstops, and refers to the designated areas. The premise of the standee density algorithm is the number of standees present in the interstop, which is described as follows:where is the number of standees; is the number of standees in area ; is the standee density in area ; and are the number of passengers getting on and getting off the bus, respectively; is the seating capacity of the bus, including one driver’s seat; is the total standing area supplied; and is the area supplied, which comes from field measurement.

4.2. A Suitable Standee Density for Scheduling

Standing areas are suitable as the key indicator for scheduling buses needs to be defined. According to the manual survey, changes in were asynchronous. Figure 3 reveals the propensity of passengers to choose each standing area with a gradual increase in .

did not exceed 45; the proportion of passengers choosing to stand in Areas 1 and 4 was basically maintained within 20%. and both had a tendency to slow down with the increase in . This result indicated that if less standing space was available, passengers would seek another area to stand. When did not exceed 18, Area 2 diverted the passenger flow of Area 3. When it was more than 45, the flow tended to divert to Areas 3 and 4. Therefore, Areas 2 and 3 were critical positions and both were in the wheelbase area. Therefore, could not give the true expression of the crowdedness degree of the truly crowded area of the carriage, as Areas 1 and 4 were disruptive factors. Therefore, factors unrelated to the standee density in the wheelbase area (SDWA) were excluded.

According to the manual survey, the discrete values of surveys and were positively correlated with , but the growth trends varied in different ranges. After nonlinear regression, the change rule of the discrete values of surveys and can be described as follows:

The Pearson correlation coefficient was introduced to test the goodness of fit of and with the discrete value of the corresponding area. The number of samples was , and the correlation between and was expressed by the product difference correlation coefficient as follows:

In the grade correlation coefficient level, the closer the absolute value of to 1.0, the greater the correlation [33]. When , , and , the goodness-of-fit values tested were 0.997, 0.905, and 0.951 in Area 2 and 0.996, 0.996, and 0.970 in Area 3, indicating that the correlation between and with the discrete values of the survey was extremely good, and the goodness-of-fit test results were significant.

and were not reciprocal independent indicators, and neither could fully reflect the true level of the SDWA. Although a weighted algorithm could be introduced to synthesize and , both of them were segmented functions of different distribution types. The difference between the SDWA values calculated with and conformed to the trend of the logarithmic curve when , and the SDWA algorithm was continuous at the turning points. As a result, based on the two indicators, the SDWA indicator was established as follows:where and are the weight coefficients of and accordingly, and ; is the allocation factor of . If , according to the definition of the continuity of the segmented function, considering and in the first derivative of equation (5), two weight coefficients were obtained, with , . However, calculated with the two weight coefficients was not continuous when . As the difference between and conformed to the logarithmic curve, when , . Moreover, when the first derivative of was continuous at , could be obtained. In summary, could be expressed as follows:

Figure 4 shows the plotted curve of to test and compare the numerical stability of and the sensitivity to changes in passenger flow.

When , let , and could be 39. Moreover, in the range of . In the range of , due to the influence of Areas 1 and 4 on passenger flow, the larger the value of is, the more crowded the areas. In the range of , the first derivative greater than 0 indicated that the index had great volatility. When , passengers were basically free to select positions and had a higher propensity for Areas 2 and 3. In summary, the judgment performance of as an indicator was better than that of .

4.3. Judgment Logic of the Status on the Bus Line

As the transit capacity and quality of service manual mentions, it is suitable for a new public transport system to define the peak hours by a passenger density of 2 pax/m2 in America. However, the code for the design of metros in China recommends that the passenger crowding density should be within 5 pax/m2, and the proportion of interstops (referring to the section between every two bus stops) with a passenger crowding density exceeding 5 pax/m2 should be controlled within 20% of the total based on ergonomics [3]. As a result, a statistical indicator was introduced.

The proportions of the number of interstops falling into , , and to the total number of interstops were taken as the statistical indicator to define the peak hour, off-peak hours, and tough hours online and avoid personal judgment subjectivity:where refers to, , and accordingly; is the number of interstops based on .

Based on the 79 round-trip passenger flow data points of the manual survey with large passenger traffic during off-peak hours in Xi’an, which were surveyed, the proportion of the number of stops classified was based on (Table 3).

When , the corresponding proportion of interstops fluctuated approximately 50%, indicating the index properties of the SDWA in the off-peak hours. was set as the state judgment threshold. The real-time judgment logic of the passenger flow data collection system was proposed (Table 4).

Importantly, the threshold is the reference value; it is necessary to determine the specific conditions of the bus lines. The aforementioned judgment result only applies to the bus executing its task during the operation period but does not indicate an increase or decrease in the extent of . Hence, it is also necessary to determine the online headways for the trough and peak hours.

4.4. Online Headways Based on the Standee Density

According to the judgment logic of and , the division of peak, off-peak, and trough hours was performed based on the key threshold of the proportion of interstops.

As , interstops of proportion in trough hours could be derived. However, the calculated , , and were not integers. Hence, using the rounding function to integrate the original noninteger headway, the headways during the trough and peak hours were obtained. To achieve better passenger flow dissipation effects during peak hours and higher transportation efficiency during off-peak and trough hours, the rounding function was appropriately decreased for and increased for and .

During the peak hours, the headway was shortened, resulting in , but could not be shortened without limit. Equation (1) shows that when all buses were put into operation , that is, no repaired or rested buses were present, the minimum value was taken. Hence, the online headway during peak hours was as follows:where is the minimum headway and and are the rounded decimal places of and , respectively, with values greater than zero.

The headway was prolonged during trough hours, resulting in , but to meet the passengers’ travel requirements and bus operation tasks, could not be extended without limit. Equation (1) shows that when only 70% of the buses were put into operation , that is, repaired and rested buses accounted for 30% of the number of buses in the line, the maximum value was taken. Hence, the online headway during the trough hours was as follows:where is the maximum headway and is the rounded decimal place of , with a value greater than zero.

5. Numerical Example and Sensitivity Analysis

5.1. Field Validation

A bus line with the largest passenger flow in Xi’an city was considered as an example. It was used to verify the feasibility of the headway model and measure the parameter range of the headway model [34]. The time of the first and last buses on the line was 6:00 a.m. and 12:00 p.m.; the number of buses available on the line was 20; and the number of bus interstops was 24 in total. The bus had 37 seats, and was 8.96 m2 [35, 36]. Moreover, 85% of the buses operated during off-peak hours. The passenger flow data were collected during the peak hours of a working day (Table 5). The calculation result of the SDWA was obtained from equation (6).

When increased from 0 to 36, the maximum deviation rate of relative to was 40.52%, which was due to the passengers diverting from Areas 1 and 4 to Areas 2 and 3. However, at this time, increased slowly and was not sensitive enough to the standee flow. When exceeded 36, the maximum deviation rate was −6.14% because Areas 1 and 4 diverted the passenger flow from Areas 2 and 3, alleviating the crowdedness of the SDWA. embodied the SDWA after the passenger flows of Areas 2 and 3 were diverted so that was slightly lower than . Therefore, it was more desirable to reflect the crowdedness of standees by using rather than .

The scheduling time length was 1080 min. As the number of buses during off-peak hours was 85% of the total number of buses, calculated using equation (1) was 10.8 min. Therefore, the headway in the off-peak hours was 11 min. According to the values (Table 5), , , and were calculated according to equation (5) to be 12.5%, 50.0%, and 37.5%, respectively. As was the preferred judgment index and exceeded 20.0%, it was determined to be the peak hours of passenger flow, and the judgment conclusion was consistent with the judgment logic. At this time, the bus line dispatched all the buses into operation, and the minimum headway of the evening peak hours was 9 min.

5.2. Value Analysis

Xi’an public transport enterprises have clear regulations on the daily running tasks of buses and the number of buses available for scheduling. Each bus runs six round trips per day, which is completed by two drivers. The number of buses available for scheduling should be maintained at more than 70% of the total buses. According to the aforementioned provisions, the minimum and maximum headways of buses can be calculated.

To avoid the phenomenon of dispatch overload on the bus line, that is, when , according to the data provided by the bus line, the lower limit of was calculated to be 9 min. Let . As the number of buses during off-peak hours was 85% of the total number of buses, it was obtained by equation (8).

When approached 25% from 20%, that is, approached the scheduling load in the peak hours, the headway was scheduled by .

When exceeded 25%, the headway was still scheduled at 9 min to reach the bus scheduling load, and all buses ran on the line.

To meet the basic passenger’s travel requirements and bus operation tasks, that is, when , according to the data provided by the bus line, the upper limit of was calculated to be 14 min. Let ; as the number of buses in the off-peak period was 85% of the total number of buses, it was obtained by equation (11).

When approached 30% from 42%, that is, approached the dispatching load in the peak hours, the headway was scheduled by .

When exceeded 42%, the headway was scheduled to be 14 min according to .

The aforementioned calculations assumed the number of buses available on the line to be 20. If the number of buses allocated to the line could be increased on this basis, the value taking a range of was eased.

By examining the real-time passenger flow data obtained from the collector, of each interstop was given in real time. Taking as a dependent variable, a more sensitive indicator, , was obtained. By the end of each bus in operation, the proportion of the number of interstops was calculated using the model. Then, the proportion of interstops was used to determine the headway of the bus being set out. The headway model was simple, and it was easy to realize the automatic arrangement of the headway. The model was based on the standee density algorithm, which was more suitable for bus lines with variations in passenger flow.

6. Conclusions

The present study proposed the SDWA for determining the online headway; additionally, the feasibility of the method was verified by numerical examples.

First, after discussing the unevenness of the standee density on the bus floor, the SDWA was capable of sensitively reflecting the variation in standee flow. Passengers were more likely to choose the wheelbase area for standing if no seat was available. If the number of standees did not exceed , the proportion of passengers who chose to stand in the wheelbase area surely exceeded 80%.

Second, the interstop proportion based on the SDWA exceeding 5 pax/m2 should be given priority. Taking the proportions of interstops as the evaluation criterion for determining the headway of the bus being set out was surely objective and feasible.

Finally, as the arrival time of each passenger at the bus stop was hard to determine, using the proportion of interstops of the former bus to determine the headway of the buses to schedule online enabled the elimination of accidental factors. This method might be of great benefit to the bus headway, passenger evacuation, seat layouts, and emergency security.

Further studies should concentrate on evaluating the matching degree of seat layout and standee density to determine the criteria for guiding bus selection for public transport enterprises.

Data Availability

The data used to support this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that they have no conflicts of interest to this work and do not have any commercial or associative interest that represents conflicts of interest in connection with the work submitted.

Acknowledgments

This study was supported by the Natural Science Basic Research Program of Shaanxi (2021JQ-292), Natural Science Foundation of Zhejiang Province (LQ19E080003), the National Natural Science Foundation of China (Grant 52002282), and the MOE (Ministry of Education in China) Project of Humanities and Social Sciences(21YJCZ790137). And the authors also thank the Transportation Science Institute of Chang’an University and the Key Laboratory for Automotive Transportation Safety Enhancement Technology of the Ministry of Communication PRC.