Deviation of Pedestrian Path due to the Presence of Building Entrances

Commercial areas, especially urban ones with numerous buildings, are becoming increasingly prone to congestion because of their popularity. Visual inspections show that interactions between pedestrians and building entrances affect the distribution of pedestrian trajectories, which influences the utility of pedestrian spaces and the design of urban shopping areas. Herein, we analyse the dynamics of pedestrian deviations around building entrances. We used a video recorded using an unmanned aerial vehicle to determine pedestrian trajectories in a Chinese commercial walking space. First, the candidate variables affecting deviation behaviours were determined via correlation testing. Second, two regression models were developed by considering the deviation behaviours of pedestrians walking past a building entrance. -e models suggest that the starting position of a pedestrian’s deviation, the total pedestrian flow at the building entrance, the density in an area in the vicinity of the entrance, and the number of interacting pedestrians impact the total distance traversed during path deviation.


Introduction
Business districts have become spaces where people enjoy leisure time, pedestrians gather, and commercial activities are carried out. To improve the shopping experience, many central urban spaces have been converted for pedestrian-only use. In these spaces, commercial activities compete to attract consumers, which causes increasing numbers of pedestrians to gather in commercial areas, particularly during weekends and holidays [1,2]. However, these crowded walking environments diminish the shopping experience and can potentially trigger hazardous crowd incidents [3,4].
Pedestrian flow models are often used to analyse and predict the movement dynamics in pedestrian spaces. ese models are generally categorised as macroscopic models-such as the continuum models and network models-or microscopic models-such as the social force, velocity obstacle, and discrete choice models. In principle, it is expected that microscopic models exhibit better performance in terms of the accuracy of an agent's movement dynamics, whereas macroscopic models generally require less computational effort [5,6]. e social force model is well-studied and a recent microscopic extension that considers both physical factors and motivational factors is often used to analyse crowd behaviour [7]. According to the social force model principles, pedestrian movement is determined by the internal force required to walk at a desired speed, the movements of other pedestrians, and the boundaries of objects [8]. In general, the shortest path to an agent's destination, an agent's preferred walking speed, the movement behaviours of the surrounding pedestrians, and the presence of obstacles (e.g., dustbins, benches, and building facades) are considered when modelling commercial pedestrian areas.
In building areas, pedestrians interact with other pedestrians in open space and with pedestrians entering and exiting building entrances, where orthogonally intersecting flows are encountered. At such locations, passing pedestrian flows are potentially affected by the flow of pedestrians entering and exiting the building entrances and the building facades [9]. In most contemporary pedestrian models featuring commercial areas, the effect of (entrances in) building facades on movement behaviour is not considered. Because building entrances are important features of commercial districts and the entrances potentially influence expectations regarding capacity and the levels-of-service available in commercial pedestrian spaces, it is imperative to understand the impact of the dynamic connection between building entrances and pedestrian movement more clearly.
is study aims to determine the extent to which the trajectories of passing pedestrians are affected by the presence of an entrance in a building facade. e most important factors affecting the lateral and longitudinal deviation distance of pedestrians passing in front of building entrances are to be determined. e movement behaviours of pedestrians featuring in unmanned aerial vehicle (UAV) video recordings of a Chinese commercial area were analysed to determine the trajectories of pedestrians near entrances. Next, using a set of one-to-one correlation tests and a linear regression model, the most significant factors affecting the lateral and longitudinal deviations were determined.
is paper first provides a brief overview of the previous research focusing on pedestrian movement dynamics. Next, the research methodology is elaborated upon. Accordingly, a case study area is presented. e results of the one-to-one correlation tests and the linear regression modelling are subsequently described. Finally, several conclusions and a discussion of the implications of the result considering the design of commercial pedestrian areas are presented.

Background
is section briefly reviews factors in the pedestrian or walking environment that can affect pedestrian walking behaviour. e literature can be divided into works that feature the impact of personal characteristics, the interaction with other pedestrians, and the interaction with the built environment, which are factors that influence pedestrian walking dynamics.

Impact of Personal Characteristics.
Individual factors of pedestrians can impact the walking behaviour of pedestrians. Finnis and Walton [10] and Duives, Daamen, and Hoogendoorn [11] studied the connection between pedestrians' walking speed and several individual characteristics. ey found that gender, age, physique, goal orientation, presence of children, baggage, shoe-type, and looking around behaviour significantly correlated with walking speed. Other works established the impact of culture [12][13][14] and group composition [15][16][17][18].

Interactions with Other
Pedestrians. Various research groups have studied the interaction between pedestrians, especially in unidirectional single file, unidirectional bottleneck, and bidirectional movement scenarios. Seminal works by Hankin and Wright [19], Weidmann [20], Daamen and Hoogendoorn [21], and Seyfried et al. [22] provided first insights into the impact of pedestrian movement dynamics on the capacity of a space. In general, these studies illustrate that crowd density negatively impacts the walking speed of pedestrians. Zacharias [23] found that the presence of pedestrians can improve the appeal of a location, and Qu et al. [24] found that pedestrians will avoid overcrowded areas. More recently, Kretz et al. [25]; Wong et al. [26]; Duives, Daamen, and Hoogendoorn [6]; and Cao et al. [27] studied the pedestrian flow under more diverse conditions, such as bidirectional straight flows and those that intersect. It was found that more complex flow situations and the resultant collision avoidance behaviours reduce the maximum sustainable flow rate in the pedestrian infrastructure.
us, when modelling pedestrian movement dynamics, the crowd's density and the interactions between pedestrians should be included. In cluttered walking environments, pedestrians veer to avoid potential collisions [28], but the extent to which such deviations are affected by other pedestrians remains unclear.

Interaction with the Built Environment.
Pedestrians also react to the physical layout of a space. In commercial pedestrian areas, buildings and sidewalks are two of the dominant physical features that pedestrians interact with. ese interactions can be classified as accessibility and visibility [29].

Buildings.
Pedestrians' operational walking dynamics might alter near "obstacles." Walls, which pedestrians avoid to mitigate the risk of getting hurt, function as the physical boundaries of the walking environment [30]. Moussaïd et al. [31] experimentally studied the walking trajectories when passing a corridor and established that pedestrians prefer to maintain a distance of at least 30 cm from a wall. Furthermore, Ma et al. [32] showed that for Asian people, the shy-away distance is slightly larger and the repulsion force is less.
Buildings affect pedestrian movement dynamics in a variety of ways. First, pedestrians decide to move towards a certain destination. Oppewal and Timmermans [33] indicate that the appeal of the area, and thus, the choice to visit it, depends strongly on the maintenance of the whole and the appearance of shop fronts, as well as street activities, greenery, coffee shops, and the presence of crowds. Meziani and Hussien [34] illustrated that 12 factors increase the appeal of commercial activities, among these factors, toilets and prayer rooms, good ambience, parking, mall location, variety of brands, and family activities were considered to be the top indicators. Moreover, building facades block the sight of pedestrians, limiting their visual scope. Jansen, Toet, and Werkhoven [35] found that when the visual scope of pedestrians is limited, they deviate to avoid potential danger.

Sidewalk.
Distinct from buildings, sidewalks are exterior urban walking spaces that pedestrians directly interact with. Normally, a sidewalk in the built environment consists of several elements, which contribute to the area's complexity. Fajen and Warren [36] studied the intensities of attraction and repulsion in complex environments and established that the strength of the attraction/repulsion response to objects depends on the distance separating them from the pedestrian.
Zacharias [23] studied how pedestrians respond to the public walking environment and decide their walking routes. It was found that the visual impression of infrastructures is important for attracting pedestrians to visit. Chen [37] classified the environment of the pedestrian street into three categories-the fixed-feature elements (facades, furniture on the street, street lamps, etc.), the semifixed-feature elements (shop signs, plants, displays, outdoor cafes, food stands, etc.), and nonfixed-feature elements (pedestrians)-and found that street furniture, street performance, and shop signage can attract pedestrians and divert crowds. Simultaneously, however, these elements can also act as obstacles and repel pedestrians. Matthis and Fajen [38] and Severiukhina et al. [39] studied pedestrian behaviour that is influenced by obstacles in a complex walking environment and found that influenced by various obstacles, pedestrian walking speed will decrease when there are more potential collisions.

Pedestrian Behaviour around Building Entrances.
As the connections between buildings and sidewalks, spaces near entrances are more complex and variously affect pedestrians' behaviour. Previous studies attended mainly to the inflow and outflow to and from entrances and particularly studied the flow dynamics through the entrance [40]. e building entrance influences the entering and exiting of pedestrians but the shape of the connections between the exterior and interior spaces could also influence the movement dynamics of those that walk parallel to the building facade. It was found that factors such as aperture width, corridor length, and transparency of the doors could affect the behaviour of passing pedestrians [41]. Influenced by the attraction of commercial activities, pedestrians show waiting [42], wandering [37], entering, and exiting behaviour [43], which contributes to a chaotic walking environment and diverts the passage of pedestrians. Moreover, because building facades will limit the visual scope of passing pedestrians, the walking dynamics will be affected because visual information is lacking. Consequently, the presence of entrances should be acknowledged when modelling pedestrian walking dynamics near building facades. However, to the authors' knowledge, the impact of entrances in the immediate vicinity on pedestrian walking dynamics is undetermined.

Research Methodology
We modelled the impact of an entrance on pedestrian walking dynamics. First, the deviating movements of pedestrians were parametrised. Subsequently, the factors that potentially affect the deviations were determined. Finally, a procedure was established to identify the most significant factors that affected pedestrian deviation behaviours near entrances.

Parameterising Deviation Movement of Pedestrians.
is section describes a methodology to quantify the deviation behaviours of pedestrians. Between entering and leaving a region, a pedestrian's path includes five key points at which direction may be changed ( Figure 1). e first point, where a pedestrian enters the area is P o ; P s is the point where the deviation starts; P m is the point of maximum deviation from the original trajectory; P f is the point where the path is resumed; P e is the pedestrian's point of exiting the area ( Figure 1). is study focuses on the section between P s and P m , which determines the lateral (Δy) and longitudinal (Δx) distances traversed after deviating from the original trajectory near an entrance. e criteria for identifying P s and P m are introduced below.

Starting Point of Deviation (P s ).
Four criteria are considered for identifying the position (x o , y o ) of P s . e first criterion is the point's location, that is, the point P s should be located before the entrance and within 6-24 m before the maximum-deviation point on the x-axis to confirm that the entrance caused the deviation and that the correlation between these two points is within a reasonable range. e following two criteria filter out the adjustment of path and speed caused by collision avoidance behaviour [44]. e second criterion is the walking direction. To guarantee a stable deviation trend, the pedestrian should continue away from the entrance from the point P s for at least the next 5 s. e third criterion is angular speed, which should be > 0 for the next 1.5 s after the point P s . Moreover, during this period, the angular speed must be > 0.02 m/s 2 for at least 1 s to verify that the turning is sufficiently noticeable. Finally, there should be no other viable starting points farther away from the wall than the maximumdeviation point between P s and P m ; if such a starting point exists, the point farther away will become the maximumdeviation point.

Maximum Deviation Point (P m ).
Four criteria were adopted to identify P m . e first criterion was its position, which should be within 15 m from the entrance because it is difficult to confirm the reason for deviations that begin distantly from the entrance. Second, pedestrians should continue moving away from the wall in the 4 s before reaching point P m and should move closer to the wall in the 3 s after the crossing point P m . is criterion ensures that minor fluctuations are eliminated. e third criterion is the angular speed, which should be <0 for at least 1 s before and after point P m to ensure that the critical point is sufficiently important in the process. Similar to the case of point P s , no other viable maximum-deviation points should be located further away from the wall than the current P m .

Objectifying Potential Impact Factors.
Based on the literature review presented above, four types of variables are identified and used to predict the subject's lateral and longitudinal deviation distance: the deviation's starting position, the flow through the entrance, the pedestrian density in the immediate vicinity of the entrance, and type of pedestrian flow within a certain range from the subject.
To quantify the interaction with the built environment, the starting position of the deviation is defined to describe the position relative to the building facade and entrance when the deviation starts. e interactions with other pedestrians are classified as either influenced by the entrance or influenced by self-organisation behaviour. e cluttered environment caused by the appeal of commercial activity is quantified by flow through the entrance and pedestrian density in the direct vicinity of the entrance. e influence from self-organisation behaviour is quantified by pedestrians walking in different directions within the interaction range and in front of the specific pedestrian. e first type of variable has previously been defined above. e second to fourth variables are described in more detail in the following subsections.

Entrance Flow.
e pedestrian flow at the entrance is quantified as the average number of pedestrians who walk in or out of a shopping entrance during the period in which a pedestrian of focus (subject) approaches the entrance. In this study, several entrance flow variables were determined, each within a slightly different range of the entrance (Figure 2(a)). e starting point of this range is between −20 m and −10 m, and the interval for choosing variables is 2 m, meaning that the starting and finishing points are even-numbered. e total entrance flow (F) consists of two categories: pedestrians who pass through the entrance while maintaining their current direction are the inflow, and those continuously moving away in the opposite direction are the outflow. For a pedestrian to be considered in the inflow or outflow, the walking speed must be greater than 0.68 m/s [45]. at is, pedestrians who stop in front of the entrance are not considered. Based on the starting position (a) and the finishing position (b) of the range, the variables of the entrance pedestrian flow are the sum of the inflow and outflow (F b a ).

Entrance Density.
e entrance density is the average value of the density in a certain area in the vicinity of the entrance when the subject is between the starting (P s ) and endpoints (P m ) of the deviation (Figure 2(b)). A rectangular area with a lateral range of 9 m is adopted. e lateral range varies between −10 m and 10 m along the x-axis, and the step size between the entrance-density variables is 2 m. e variable of the entrance density is E b a , where a indicates the xcoordinate at the start of the longitudinal range and b the xcoordinate at the end of the longitudinal range.

Number of Interacting Pedestrians.
e number of interacting pedestrians is defined as the average value of the number of pedestrians that fulfill three criteria (Figure 2(c)). First, the position of the interacting pedestrians should be within the interaction range (4.5 m) from the subject [46]. In the following two criteria, if the angle points in an anticlockwise direction relative to the positive direction of the xaxis, the numerical value is positive. Otherwise, the angle is negative. Second, the angle between the positive direction of the x-axis and the relative location of the pedestrian interacting with the subject should be within a certain threshold. e region from −90°to 90°in the positive direction of the x-axis from the subject is divided into six parts (−90°to −60°, −60°to −30°, −30°to 0°, 0°to 30°, 30°to 60°, and 60°to 90°), and pedestrians within the specific region are selected. e lower and upper boundaries of the region are recorded as α and β, respectively (α < β). ird, the angle between the positive direction of the x-axis and the interacting pedestrian's direction of movement should be within a certain range. e −180°to 180°range of the interacting pedestrian's movement direction with the positive direction of the x-axis is divided into six sectors (−180°to −120°, −120°t o −60°, −60°to 0°, 0°to 60°, 60°to 120°, and 120°to 180°). en, pedestrians with the direction of movement within the specific sector are selected. e lower and upper limits of the sector are recorded as c and θ, respectively (c < θ). Using α, β, c, and θ, the numbers of interacting pedestrians can be designated using the following naming convention P c,θ α,β .

Modelling Pedestrian Deviation Behaviour.
A two-step process is adopted to determine the factors that affect the deviation behaviour. is process features a set of one-toone correlation tests and stepwise linear regression modelling. Both these steps are briefly elaborated upon in the following subsections.
3.3.1. One-to-One Correlation Test. Numerous potential variables have been defined. To preselect the variables that potentially have a strong correlation with the lateral or Figure 1: Key points of passing trajectories.
longitudinal deviation, the correlation between every variable and each of the two dependent variables is established using a paired t-test from the Statistical Package for the Social Sciences (SPSS). Here, the p value is the selection criterion. All variables that have a strong correlation with the dependent variable (p < 0.20) are selected for the second step of the modelling process.

Stepwise Regression.
In the second step, stepwise linear regression modelling is used. is procedure in SPSS automatically selects the best variables for the linear regression model. First, the most significant variable is entered. en, in every step, all new combinations of n + 1 variables are attempted, and the combination with the highest increase in explanatory power is retained. Second, the added explanatory power of all the current variables in the model is checked. A variable is erased when its added explanatory power is excessively low. is process is repeated until no more variables can be entered or erased without improving or compromising the explanatory power of the model. In this case, the explanatory power of a variable to be added is 0.009, and that of a variable not to be erased is 0.010.

Case Study: Chinese Commercial Area
As pedestrians in the target area of study exhibit a variety of behaviours, which creates a complex walking environment. Pedestrian behaviour is difficult to control in the complex scenarios used for experimentation [47], so the field observation data-collection method is used in this study. A case study was conducted in a Chinese commercial pedestrian area. e case study area is first presented then the dataprocessing and filtering procedures are discussed.

Description of the Scene.
A video was recorded on Saturday, September 1, 2018, a sunny day, which made shopping and visiting the square a pleasant experience. e video was recorded using a video camera attached to a DJI Mavic Pro (i.e., a light UAV weighing 743 g). e camera has a resolution of 2720 × 1536 pixels and a frame rate of 24 fps. During recording, the flying height was 90 m, which is sufficient to observe both ends of the passage and to observe the movement of pedestrians clearly. Because of the camera pan, the averaged measurement error in every 0.5 s diminishes to 0.4641 pixels (0.0182 m). e recording lasted for 10 min, from 1 : 45 p.m. to 1 : 55 p.m. e case study area was a busy commercial district near the flood-control victory monument on Harbin Central Street, China. e upper part of the area is a shopping mall with an entrance in the middle of the building facade and a restaurant entrance at either end of the facade. e lower part of the area consists of steps leading to underground passages ( Figure 3). e area between the building and the underground passages is 60 m long and 9 m wide. Within this space, there are six dominant starting points and destinations, which are at the left side, bottom, right side, and entrance of the shopping mall, and the two restaurant entrances. In this study, the movement behaviour in front of the shopping mall entrance was mainly investigated because very few pedestrians enter and exit the restaurants, and the location of two restaurant entrances (24.5 m from the centre of the commercial entrance) is beyond the region that deviation behaviour appears. e height of handrails is not enough to block the pedestrians' line of sight. us, the commercial entrance of the building is the only environmental factor that attracts pedestrians and blocks their line of sight.
Most people in the case study area were young or middle-aged and walked normally towards their destination. Most tended to alter direction near the entrance and move away from the wall. After passing the entrance region, they tended to change direction again and move back to their original trajectory. e video analysis software "Tracker," which is a program built on an open-source physics Java framework, was used to record the trajectories of all pedestrians within the case study area. e origin of the coordinate system, the positive direction of the x-axis, and the unit length can be fixed against the unchanged background in the video (the building facade in this study), which can further reduce the averaged measurement error. e movements of the upper body were a part of the captured trajectories. After a semiautomatic tracking procedure, the remaining tracking errors produced by the software were corrected manually upon visual inspection.

Data Processing and Filtering.
Every trajectory consists of a sequence of positions (x, y, t), which were extracted every two frames (12 fps). e centre of the building was adopted to transform the trajectory coordinates from pixel coordinates to real-world coordinates. To ensure that all pedestrians were on the positive side of the y-axis, the scene was inverted vertically. Moreover, to ensure that all pedestrians traversed in the positive direction along the x-axis (Figure 4(a)), the x-axis was switched for trajectories approaching from the right (Figure 4(b)).
In this study, we primarily focused on the movement dynamics of pedestrians passing in front of the entrance but not entering or standing still in the vicinity of the entrance.
us, from the total set of all trajectories (1565), a four-step filtration process was applied to select only pedestrians who passed the entrance ( Figure 5) to form the subject set used in the modelling process. e four steps are described below: (i) Pedestrians have to pass through the region in front of the entrance (−20 m < x < 20 m) (ii) Pedestrians should always be inside the analysis region (iii) Pedestrians should have a "normal" walking speed (0.68 m/s < x < 1.92 m/s) [45] (iv) Pedestrians should deviate from their path near the entrance Figure 5 shows the trajectories that were discarded from this set in each step of the filtration process. Of the 1565 trajectories, two pedestrians traversed the research area from right to left and returned from left to right and their movements were recorded as two trajectories. Using these filtration steps, 91 trajectories were considered in the analysis.

Trends in the Data.
e mean y-coordinate value for every 0.5 m along the x-axis of all the deviating pedestrians was calculated, and the trend of deviation can be visualised as a plot ( Figure 6). Pedestrians passing the entrance showed a lateral deviation of 2.148 m on average, with a standard deviation of 1.201 m. e mean value of longitudinal deviation was 13.257 m, with a standard deviation of 5.160 m.
Note that pedestrians had passed the central position of the entrance when they reached the maximum-deviation point, which could be caused by two reasons. First, the deviation trend would not stop immediately because of the inertia of pedestrian dynamics [48]. Second, when passing pedestrians reached the central position of the entrance, pedestrians on the side near the building still exhibited a variety of behaviours, which continued creating a cluttered environment that diverted pedestrian movement.   Journal of Advanced Transportation 7

e Correlation of the Deviation Process.
We showed that y o (with a mean value of 3.813 m and a standard deviation of 1.492 m) was correlated with Δy but not with Δx; thus, the distance to the wall when the deviation starts is related to the lateral deviation, as summarized in Table 1.
x o (with a mean value of −11.550 m and a standard deviation of 5.562 m) is related to Δx; however, its relationship with Δy is less apparent. In this sense, the longitudinal deviation is correlated with the distance to the entrance on the x-axis when the deviation begins. e correlation of Δy with Δx is strong.

e Correlation of Entrance
and F −4 −10 with Δx is less than 0.020. is shows that the entrance flow's scope of influence on longitudinal deviation can be greater than on lateral deviation. en, the longitudinal deviation depends on the mean pedestrian flow of a large time interval, but the extent of deviation still depends on the degree of activity when the passing pedestrian approaches the entrance area.

5.1.3.
e Correlation of Entrance Density. e entrance density is correlated with Δy and Δx, as shown in Figure 8. spectively. e density in the area upstream of the entrance's central point shows a stronger correlation with Δy, and the density of the area a little after shows a stronger correlation with Δx. Passing pedestrians will be influenced more by the pedestrian density upstream of the entrance and decide the extent of lateral deviation to be away from the specific complex walking environment. e pedestrian density behind the central point of the entrance will influence when the passing pedestrians will return to the desired path.

Correlation of the Number of Interacting Pedestrians.
For all the variables showing the number of interacting pedestrians, the mean value is 0.196, with a standard deviation of 0.314. It can be found that the number of interacting pedestrians is correlated with Δy and Δx, as shown in Figure 9.  were incorporated into the regression model for predicting lateral deviation, as shown in (1). e regression model shows that Δy is negatively correlated with y o (with a t value of −1.791 and a p value of 0.001), which indicates that if the starting position of the subject is closer to the wall, the lateral deviation distance is larger.
is implies that the visual scope of pedestrians walking nearer to the wall is blocked to a greater degree and a further lateral deviation is needed to avoid potential hazards. Δy has a positive correlation with F −4 −10 (with a t value of 4.500 and a p value of 0.000), which shows that if more people tend to enter or exit the building when the subject is within a distance of 4-10 m upstream of the entrance, the lateral deviation distance is larger. In addition, the correlation between Δy and P −150,−90 0,30 (with a t value of 3.441 and a p value of 0.001) is positive.
is confirms that if more people move towards the wall in the 0°to 30°vision field on the sidewalk furthest from the wall, the deviation is larger. e correlation with P −150,−90 0,30 can be caused by the collision avoidance strategy that passing pedestrians are more aware of collisions with those furthest from the wall towards the side nearest the wall and move to the side furthest from the wall to avoid potential collisions.
For pedestrians passing the entrance area, if the deviation starts at a location further upstream, the longitudinal deviation is larger. is possibly indicates that pedestrians estimate in advance the space and time at which they need to execute the deviation movement near the building entrance. In addition, when the lateral distance of deviation increases, the longitudinal distance required to complete the deviation also increases. Also, the entrance density between 2 m upstream of the entrance and 8 m downstream of the entrance when the passing pedestrian is being deviated has a negative correlation with the longitudinal deviation. is confirms that if more pedestrians are in the area a little downstream of the entrance, passing pedestrians will return to their desired path in advance without walking much further. Finally, Δx has a negative correlation with P −30,30 −90,−60 (with a t value of   Journal of Advanced Transportation

Conclusions
In this study of pedestrian movement dynamics in a commercial pedestrian area, we analysed the impacts near a building's entrance and the flow rate at the entrance on the deviation behaviour of pedestrians. Footage recorded using a UAV camera was analysed to derive a dataset featuring pedestrian trajectories near a building entrance. e deviation behaviour was quantified using a two-step analysis process consisting of one-to-one correlation tests and a stepwise linear regression modelling procedure. We showed that pedestrians passing a building entrance deviate from their intended path. In particular, the starting position of the deviation, flow rate at the entrance, density near the entrance, and walking pedestrians near the subject significantly affect the lateral and longitudinal deviation of the pedestrians that pass through the building's entrance area.
In particular, pedestrians walk near the wall show more deviation, on average, than pedestrians walking farther from the wall. Moreover, if the lateral deviation increases, the longitudinal deviation distance also increases. e starting position of the deviation affects the longitudinal deviation. Furthermore, the lateral deviation distances positively correlated with the flow rate at the entrance. Finally, the movement dynamics surrounding the subjects strongly affected the deviation behaviour. Depending on the locations and movement directions of the pedestrians interacting with the subjects, the deviation distance increases or decreases, which coincides with certain self-organisation behaviour. Passing pedestrians are influenced by collisions with pedestrians moving from paths far from the wall towards the side near the wall and show more lateral deviation, which can form a temporarily circulating flow. Because the side near the entrance is more cluttered and has a reduced visual scope, the pedestrians will choose the side farthest from the entrance. e decrease of lateral deviation influenced by pedestrians walking along the wall on the near side of the wall can be a result of lane formation. When the most chaotic area has been traversed, pedestrians moving in a similar direction as the others will be attracted, to form a lane. If the lane is nearer to the wall, they will complete the deviation process earlier.

Implications of This Study for Designing Pedestrian Urban Spaces
In this study, we established that the movement of pedestrians near building facades is affected by the presence of an entrance. In particular, the inflow and outflow of the building are found to "push" passing pedestrians away from the entrance. As such, near busy shopping mall entrances, the pedestrian density may be less evenly distributed than originally expected. is implies that, next to an "empty" zone directly in front of an entrance, a more densely populated zone further away from the entrance is created, which may cause a potential decrease in the level-of-service of commercial pedestrian spaces. More importantly, however, this effect may decrease the capacity of commercial spaces, posing a potential safety risk. To address these two issues, more space should be reserved for pedestrian movements near the entrances of attractive buildings (i.e., buildings with steady, high inflow, and outflow rates). In addition, a study conducted by Hou and Zheng [49] serves as an indication that building design can be used to improve the distribution of pedestrians in the vicinity of buildings and help balance pedestrian flows near a building. Our findings have strong implications for the long term, where building owners, building functions, or building designs are expected to change. During these processes, the locations of entrances and the attractions of the buildings might change.
ese also cause changes in the walking dynamics in the vicinity of such a site. us, the design of pedestrian spaces in commercial areas is not a static onetime action but an iterative process in which the suitability of  pedestrian spaces should be assessed whenever such changes occur at a site. Although this research mainly focused on the walking dynamics near the entrance of a commercial building, the general concept behind this change in movement dynamics is applicable to a wider field. In essence, the deviating movement of the pedestrian of focus is a risk-avoidance strategy triggered by a chaotic walking environment during the period when the pedestrian can see the entrance. Similar strategies are probably adopted in other scenarios to cope with the chaotic walking environment and lack of visibility in certain parts of pedestrian spaces. We believe that it is essential to study these anticipatory risk-avoidance strategies further, develop generic models that include these strategies, and implement these behavioural models in contemporary pedestrian simulations to reproduce pedestrian spaces more accurately in areas where the visibility and complexity of pedestrian flows are challenging.

Data Availability
e data used to support the findings of this study are available from the corresponding author upon request.

Disclosure
A previous version of this research was presented at the 2020 Transportation Research Board Annual Meeting.

Conflicts of Interest
e authors declare that they have no conflicts of interest.