Next Article in Journal
A Rapid Nanofocusing Method for a Deep-Sea Gene Sequencing Microscope Based on Critical Illumination
Previous Article in Journal
Supporting Differentiated Streaming Services in Heterogeneous Vehicle-to-Everything Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

The Parameter Calibration of Social Force Model for Pedestrian Flow Simulation Based on YOLOv5

School of Rail Transportation, Soochow University, Suzhou 215000, China
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(15), 5011; https://doi.org/10.3390/s24155011
Submission received: 5 June 2024 / Revised: 23 July 2024 / Accepted: 26 July 2024 / Published: 2 August 2024
(This article belongs to the Section Intelligent Sensors)

Abstract

:
With the increasing importance of subways in urban public transportation systems, pedestrian flow simulation for supporting station management and risk analysis becomes more necessary. There is a need to calibrate the simulation model parameters with real-world pedestrian flow data to achieve a simulation closer to the real situation. This study presents a calibration approach based on YOLOv5 for calibrating the simulation model parameters in the social force model inserted in Anylogic. This study compared the simulation results after model calibration with real data. The results show that (1) the parameters calibrated in this paper can reproduce the characteristics of pedestrian flow in the station; (2) the calibration model not only decreases global errors but also overcomes the common phenomenon of large differences between simulation and reality.

1. Introduction

Traffic volume has increased dramatically. The subway has an important role in modern transportation systems [1]. The subway has the characteristics of large transport capacity, fast speed, high punctuality rate, reliable security, and excellent comfort. It attracts a large volume of pedestrian flow. Pedestrian flow, especially in the morning and evening peak hours, increases the requirements for the operational capacity of urban rail transit. Therefore, grasping the rules of pedestrian flow helps cities to make better plans.
Many remarkable models that simulate the complex behavior of pedestrians have been proposed to analyze movement processes in different situations. Pedestrian dynamics provides a theoretical basis for analyzing passenger motion in different situations. Pedestrian dynamics modeling consists mainly of macroscopic and microscopic models. Kaldawi [2] investigated the mathematical theory of Hughes’ model. SPH [3], a meshless method, was proposed by Yuan et al. In this method, the population is represented by a set of particles that have material properties and move according to macroscopic laws. The macroscopic model [4] also includes the DTA model improved in recent years by Aghamohammadi and Laval. These models usually view crowd motion ideally as the flow of a liquid or gas, most commonly fluid or gas dynamics. However, for practical situations, this view of a uniform distribution of liquid or gas is erroneous. The reason for this is that pedestrians display interactive behaviors and behavioral habits that cannot be represented by macro models. The microscopic model can fully consider the heterogeneity of pedestrians and the interaction between pedestrians in order to overcome the shortcomings of the macroscopic model, which is more suitable for studying the behavior of passengers in the station.
Macroscopic models [5] are not suitable for predicting pedestrian movement in pedestrian areas or buildings, unlike microscopic models, which are more widely used and consider design details. Vermuyten et al. [6] provided a program for the calibration and implementation of the model. Babojelić and Novacko [7] emphasize that pedestrian behavior has a significant impact on traffic safety and traffic flow at both micro and macro levels. The magnetic force model [5] defines the pedestrian and destination as the cathode and anode of a magnetic field, respectively. In the model, the attraction and repulsion forces are calculated by Coulomb’s law. The queuing theory model [8] is more suitable for simulating the bottleneck effect and can intuitively visualize the simulation effect. But when the crowds are overcrowded, the simulation results are often less accurate. In the cellular automata model [7], pedestrians are recognized as individuals, and the moving areas are divided into cells, which results in the simulation accuracy being impacted by the cell scale.
The social force model has also received improvements [9,10,11]. Li et al. [12] proposed an improved social force model where pedestrians consider avoiding potential conflicts in advance during the walking process, making pedestrian trajectories smoother and more realistic. An et al. [13] also considered the different viewpoint sensitivities of pedestrians to other obstacles and humans based on the original model. They proved the efficiency of the model in the complex scenario of passengers alighting and boarding the metro. In order to solve the problem of the slow simulation speed of the social force model in complex scenarios, Yang et al. [14] modified the forces between the pedestrians and obstacles in the model. By finding the optimal number of obstacle iterations, this method increased the speed of the model simulation.
In recent years, most of the parameter calibration studies of the social force model have been aimed at better modeling pedestrian evacuation (Table 1). For example, Sticco et al. [15] and Kanté et al. [16] both calibrated the parameters of panicked pedestrians in emergency evacuations. This means that the results they calibrated can only be applied to limited data sets. And the algorithms they use are differential evolution and genetic algorithms, which result in slow convergence velocity and a long solution process. In the studies [17,18] on the calibration of pedestrian parameters in metro stations, the parameters were obtained by formula calculation. Most existing calibration models are conducted based on full-self-investigated data. They cannot capture pedestrian dynamics. These models focus on improving simulation accuracy on average pedestrian flow variables (e.g., speed, flow, and density) but ignore the spatial distribution diversity of pedestrian flow in stations. In this study, we employed YOLOv5 [19] to map the spatial distribution of pedestrian flow in subway stations. Then, we established an image matrix to describe the flow characteristics. This reflects the spatial distribution diversity of pedestrian flow. Also, this study built a calibration model solved by the improved Newton downhill method to reduce the calibration cost.
In this study, the parameter ranges were first derived from the available research. Next, this method required field research scenarios to obtain the pedestrian data and actual video. The actual video was imported into YOLOv5 for image recognition, and the final recognition results for each video were presented in the form of a density map. Then, pedestrian data were input, along with an initial set of parameters, into the simulation software Anylogic (Version 8.7.0), obtaining a density map. With the help of the OpenCV library, two density maps were transformed into two image matrices. We determined the convergence condition by calculating the size of the error value of the two matrices. The parameters were iterated continuously by the Newton downhill method until the convergence criterion was reached.
Finally, a set of model parameters more realistic with the actual conditions of pedestrians were obtained and verified for accuracy. This study has a specific guiding significance for the operation management of the subway station and enhances the sustainability of urban transportation.

2. Social Force Model

In 1951, Helbing constructed the social force pedestrian flow model (Figure 1) on the basis of fluid dynamics. Now, the model is widely accepted by research scholars. The model points out that in the process of going to the target, pedestrians are subjected to various forces, including their own driving force, the interaction force between pedestrians, the interaction force between pedestrians and surrounding obstacles, attractive force, etc. Through the analysis of forces in physics, the model can explain the behaviors of pedestrians of different choices in the process of movement. The specific formula is given as
f i t = f i o t + f i j t + f i w t
f i j t = f i j s o c t + f i j p h t
f i w t = f i w s o c t + f i w p h t
where f i t donates the sum of the forces acting on pedestrian i at moment t ; f i o t donates self-driven force on pedestrian i at moment t ;   f i j t donates force on pedestrian i at moment t from other pedestrians j in the vicinity; f i w t donates force on pedestrian i at moment t from obstacle b ; and f i j s o c t , f i j p h t , f i w s o c t , and f i w p h t reflect the psychosocial force and physical force of pedestrian i by other pedestrians j in the neighborhood or obstacle w , respectively, at moment t .
f i o t = m i v i o e i o t v i t τ i
  f i j t = A i e x p r i j d i j B i n i j + K θ r i j d i j n i j + K θ r i j d i j v j i t t i j
r i j = r i + r j
n i j = r i t r j t d i j t
f i w t = A w e x p r i d i w B w n i w + K θ r i d i w n i w + K θ r i d i w v w i t t i w
where v i o and τ i are the desired speed and relaxation time of pedestrian i respectively; A i and A w reflect the interaction intensity of other pedestrians and obstacles, respectively; B i and B w correspond to the interaction range of other pedestrians and obstacles; r i , r j denote the radii of pedestrian i and pedestrian j ; d i j is the center distance between two pedestrians i and j ; d i w is the distance between obstacle w and pedestrian i ; n i j is the direction of repulsive force of pedestrian j on pedestrian i ; n i w is the direction of continuity between obstacle w and pedestrian i ; K θ ( r i j d i j ) n i j and K θ ( r i j d i j ) v j i t t i j are the physical repulsive and friction forces between pedestrian i and j ; K θ ( r i w d i w ) n i w and K θ ( r i w d i w ) v w i t t i w are the physical forces to the pedestrian i , which are exerted by obstacle w when ( r i d i w ) is larger than zero. In this study, v i o , τ i , A i , and B i are selected as parameters in vector P and are calibrated through the proposed optimization model. Related studies on parameter calibration of the social force model [17,20] were compiled and summarized. Finally, a set of initial parameter value ranges are integrated in Table 2.

3. Calibration Model

The overall framework of the calibration model is depicted in Figure 2. Anylogic provides a feasible and effective tool for the simulation experiment of pedestrian movement at the subway station. The movement of pedestrians is based on the social force model. For the parameters to be calibrated in the vector P, Ko et al. [21] considered the parameters at which the probability function took its maximum value as the calibration parameters using maximum likelihood estimation. Sticco et al. [15] applied differential evolution for continuous iteration to obtain optimal values. However, the above methods are computationally intensive and the solution process is complicated. Therefore, a calibration method that is low in workload and simple is necessary.

3.1. Evaluation Map

In this study, all four parameters required to be calibrated reflect the spatial characteristics of pedestrian motion. Therefore, the parameters in the calibration model must accurately represent the spatial variability of pedestrians. Considering the aforementioned conditions and accessibility, we selected the pedestrian flow density map as the model parameter. The density map not only reflects the passenger’s travel state but can also be generated by YOLOv5. YOLOv5 [22] performs effectively across diverse scenarios and can adapt to complex environments. Consequently, generating density maps through YOLOv5 has great applicability. YOLOv5’s models take up less storage space, enabling fast operations and adaptability on resource-limited equipment. Gai et al. [23] and Li et al. [24] applied YOLOv5 to pedestrian target tracking, ultimately enhancing recognition accuracy. However, there is no quantitative standard for straightforwardly comparing the density maps. Therefore, this model introduces an image matrix for quantifying density maps.
For any image, it can be represented by a set of data in various color modes. Thus, an image can be represented by a matrix containing extensive data. Python’s OpenCV library [25] facilitates converting an image to a 3D matrix representation (Figure 3). By comparing corresponding data positions in matrices of two same-sized images, differences between them can be determined.

3.2. Calibration Model

Initially, this model defines the vector [ v i o , τ i , A i , B i ], denoted as P, comprising the four parameters for calibration. The primary objective of the model is to iteratively find the appropriate parameter vector P during continuous simulation, aiming to minimize the error between the density map derived from Anylogic simulation and the actual density map. In this paper, the set of data groups is denoted as K. Here, x i j , k and x i j , k r e a l represent the values at position i , j in the group k of simulated and real matrices, respectively, while F k signifies the error of group k .
min Z t = k K i = 1 m j = 1 n ( x i j , k x i j , k r e a l ) 2
s . t .   F k F k r e a l ε           k K
  F k = 1 m × n i = 1 m j = 1 n x i j , k x i j , k r e a l x i j , k r e a l         k K
    x i j , k = A n y l o g i c P , K         k K  
                                                                                                        P m i n P P m a x P R n
Equation (9) is the objective function of the model, which indicates that the sum of the squares of the errors of all the simulated data and the real data is minimized. Equation (10) ensures that the relative error of the density map within any group remains below ε. Equation (11) details the calculation method for F k . Equation (12) indicates that x i j , k is simulated by Anylogic, and Anylogic denotes the simulation function of the simulation software Anylogic, as well as the basic input parameters of Anylogic simulation, including the parameter vector P and the groups K. Equation (13) restricts the values of the parameters and controls them in a reasonable range of values. For models that require multiple iterations to be solved, most use genetic algorithms for solving. But in this paper, in order to simplify the difficulty of solving, this model resorts to the Newton downhill method [26] for the model solution, and the iterative formula is
α i + 1 = α i F i F 0 α i α 0 · · ω α       α P , i f   F i F 0 0
α i + 1 = α i + F i F 0 α i α 0 · · ω α         α P ,   i f   F i F 0 0
where α i + 1 is the parameter α after i iterations;   reflects the step size, and in this paper, we fix it to 1; ω i denotes the weight of the parameter α , and this method determines the weights based on the magnitude of changes in these parameters, as shown in Table 3 below; and F i denotes the error after i iterations. At the same time, each time it is tested if the newly generated solution satisfies the constraint Equation (13).
The solution method (Figure 4) is as follows:
Step 0: Anylogic simulation initialization, such as building the subway station model, setting the simulation time, etc. We list the iteration-stopping conditions: if the change in the objective function is less than 5% or if the maximum number of iterations is reached, the iteration is stopped.
Step 1: Input parameters into Anylogic.
Step 2: Anylogic starts the simulation, obtains a density map, and substitutes the simulated results into the objective function. Check if the convergence requirement is met; if yes, skip to step 4. If no, start step 3.
Step 3: Adjust the parameters through the Newton downhill method to produce a new parameter matrix; go back to step 1.
Step 4: Stop the iteration and end the simulation.

4. Case Study

In order to verify the model in this paper, the platform of Pinglonglu East Station in Suzhou City was selected for parameter calibration. Figure 5 displays the schematic diagram of the station. Additionally, this study investigated the parameters associated with facilities, equipment, and pedestrians in the station, as detailed in Table 4 and Table 5.
There are large public venues, including The First Affiliated Hospital of Soochow University, Wanda Plaza, Suzhou City Life Plaza, and Sunny Club near the station. This substantial pedestrian flow expands the sample size, thereby enhancing the precision of parameter calibration. The station measures 83.75 m in length and 9.75 m in width. There are only two escalators and two stairs on the platform, of which both escalators are upward. Passengers access the platform solely via two positions: Stair 1 and Stair 2. Moreover, 20 waiting areas are evenly dispersed in front of the platform screen door. Integrating the platform’s spatial layout, the experiment divides the scene into four regions labeled A-D, illustrated in Figure 6. The four regions are differentiated by the stairs and escalators numbered 1 or 2, along with their ascending or descending directions, detailed in Table 6. This partitioning ensures precise density measurements due to an enhanced recognition screen resolution and validates the applicability of calibration parameters across all zones.

4.1. Data Collection

The videos of pedestrians entering the platform from different escalators/stairs during the peak period (17:00–18:00) were collected through field investigation. A total of 12 groups of data were collected, and the collection time of each group was 5 min.

4.2. Data Processing

Pedestrian target detection was conducted using YOLOv5 on each set of captured videos. Each group of videos subsequently produced the actual passenger density map, as shown in Figure 7a. This gave the initial actual density map, excluding the identified content outside the target area and converting it to the same form as the density map obtained from the simulation, as illustrated in Figure 7b. The colors in the density map indicate the magnitude of the density, which decreases from red to yellow, green, and blue.

4.3. Simulation and Results

According to our survey, we found that area B has a higher traffic volume. Therefore, this model calibrated the parameters using area B as a baseline. The first time, the maximum and minimum values of the parameters described in the previous section were inputted in Anylogic’s social force model, and simulation was started with the simulation interface, as shown in Figure 8. After the simulation time, two density maps were obtained in Anylogic, and Figure 9 was one of them.
This model resized the density map obtained by YOLOv5 to match the dimensions of the two density maps obtained by Anylogic. Subsequently, their image matrices were acquired using OpenCV, and errors between the simulated density maps and the actual density map were calculated.
Using these two errors, this model can start iteratively calculating using the Newton downhill method. This model continuously calibrated and optimized the parameters until the error of the image matrix converged, and the iterative process is shown in Figure 10. In the curve, the vertical axis denotes the error corresponding to each iteration, calculated by Equation (11), while the horizontal axis represents the iteration count.
The analysis of the error convergence curve reveals that the error fell below 5% after eight iterations, meeting the stopping criterion for convergence. The calibrated parameters obtained are detailed in Table 7.
To assess the accuracy of the calibration parameters, the errors in other regions were quantified before and after calibration. A total of 36 data groups (3 areas, 12 groups of data per area) were analyzed, as depicted in Figure 11. In the initial case of simulation (prior to parameter calibration), the relative error to the measured value exceeded 50% in 17 data cases, including 4 cases with errors exceeding 100%. In particular, there were four pieces of data with more than 100 percent error. Following parameter calibration, 18 data points were within 10% of the measured values, with only 4 data points exceeding a 50% error, indicating that the parameters are closer to the actual situation after the parameter calibration.
In addition, the extreme situations were validated. By adjusting various passenger flow inputs, errors for both low- and high-demand scenarios were obtained, as seen in Figure 12 and Figure 13. The same conclusion was drawn as with the medium-demand case. Prior to parameter calibration, more than half of the data exhibited errors exceeding 50%, including cases with errors surpassing 100%. These results reaffirm the reliability and applicability of the model.
Simultaneously, errors were tallied in each area, as referenced in Figure 14, revealing a notable reduction in errors in areas A, C, and D following parameter calibration compared to before calibration. Furthermore, despite fewer passengers in area D relative to other areas, the error remains approximately 5% post-calibration. An analysis of all results demonstrated that the parametric model and methodology employed herein mitigate overall error while also ensuring individual areas closely align with actual conditions.

5. Conclusions

In this study, a model for calibrating the parameters of a social force model based on YOLOv5 is introduced. The model is solved using Newton’s downhill method, which reduces computational complexity. It features innovative design and offers higher practical applicability, aligning closely with real-world scenarios.
Furthermore, the approach is applied based on pedestrian density maps extracted from the videos in Suzhou Pinglonglu East Station. Validation of the model is conducted at the macroscopic level using the Anylogic multi-agent simulation platform. The results demonstrate that the parameters calibrated in this method can accurately replicate pedestrian flow characteristics in the metro station. Compared with the initial parameters obtained from related works, the results are more compatible with the real data collected in this study. The calibration model used in this study actually falls under the category of multi-constraint calibration. This framework allows for the inclusion of additional calibration indices, enhancing Anylogic’s ability to finely and accurately characterize actual pedestrian flow conditions. From a practical application perspective, the method proposed in this study offers high migratability and practicality. The model itself and its algorithm for solving the objective function are straightforward and not overly complex. Given its high expandability, this study sets the stage for discussing more efficient parameter-calibration methods.

Author Contributions

Conceptualization, T.L.; methodology, T.L.; software, T.L.; validation, T.L.; formal analysis, B.X.; investigation, T.L. and B.X.; resources, W.L.; data curation, T.L.; writing—original draft preparation, T.L., B.X., and S.Z.; writing—review and editing, Z.C., W.L., and F.X.; visualization, T.L.; supervision, W.L.; project administration, T.L.; funding acquisition, W.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Undergraduate Training Program for Innovation and Entrepreneurship, Soochow University, grant number 202310285154.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data that support the findings of this study are available from the funding upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Ma, Y.; Sallan, J.M.; Lordan, O. Rail Transit Networks and Network Motifs: A Review and Research Agenda. Sustainability 2024, 16, 3641. [Google Scholar] [CrossRef]
  2. Kaldawi, F.J. On Hughes’ Model for Pedestrian Traffic. Ph.D. Thesis, Lebanese American University, Beirut, Lebanon, 2020. [Google Scholar]
  3. Yuan, Y.; Goñi-Ros, B.; Bui, H.H.; Daamen, W.; Vu, H.L.; Hoogendoorn, S.P. Macroscopic pedestrian flow simulation using Smoothed Particle Hydrodynamics (SPH). Transp. Res. Part C Emerg. Technol. 2020, 111, 334–351. [Google Scholar] [CrossRef]
  4. Aghamohammadi, R.; Laval, J.A. Dynamic traffic assignment using the macroscopic fundamental diagram: A review of vehicular and pedestrian flow models. Transp. Res. Part B Methodol. 2020, 137, 99–118. [Google Scholar] [CrossRef]
  5. Teknomo, K.; Takeyama, Y.; Inamura, H. Review on microscopic pedestrian simulation model. arXiv 2016, arXiv:1609.01808. [Google Scholar]
  6. Vermuyten, H.; Beliën, J.; De Boeck, L.; Reniers, G.; Wauters, T. A review of optimisation models for pedestrian evacuation and design problems. Saf. Sci. 2016, 87, 167–178. [Google Scholar] [CrossRef]
  7. Babojelić, K.; Novacko, L. Modelling of driver and pedestrian behaviour—A historical review. Promet-Traffic Transp. 2020, 32, 727–745. [Google Scholar] [CrossRef]
  8. Tang, T.Q.; Zhang, B.T.; Zhang, J.; Wang, T. Statistical analysis and modeling of pedestrian flow in university canteen during peak period. Phys. A Stat. Mech. Its Appl. 2019, 521, 29–40. [Google Scholar] [CrossRef]
  9. Zheng, X.; Li, H.Y.; Meng, L.Y.; Xu, X.Y.; Chen, X. Improved social force model based on exit selection for microscopic pedestrian simulation in subway station. J. Cent. South Univ. 2015, 22, 4490–4497. [Google Scholar] [CrossRef]
  10. Yang, X.; Yang, X.; Li, Y.; Zhang, J.; Kang, Y. Obstacle avoidance in the improved social force model based on ant colony optimization during pedestrian evacuation. Phys. A Stat. Mech. Its Appl. 2021, 583, 126256. [Google Scholar] [CrossRef]
  11. Zhang, J.; Zhu, J.; Dang, P.; Wu, J.; Zhou, Y.; Li, W.; You, J. An improved social force model (ISFM)-based crowd evacuation simulation method in virtual reality with a subway fire as a case study. Int. J. Digit. Earth 2023, 16, 1186–1204. [Google Scholar] [CrossRef]
  12. Li, Q.; Liu, Y.; Kang, Z.; Li, K.; Chen, L. Improved social force model considering conflict avoidance. Chaos Interdiscip. J. Nonlinear Sci. 2020, 30, 013129. [Google Scholar] [CrossRef]
  13. An, W.; Chen, S.; Li, Y.; Peng, K.; Hu, L. An improved social force model considering view angle for microscopic pedestrian simulation. In Proceedings of the 2021 6th International Conference on Transportation Information and Safety (ICTIS), Wuhan, China, 22–24 October 2021; pp. 923–930. [Google Scholar]
  14. Yang, J.; Zang, X.; Chen, W.; Luo, Q.; Wang, R.; Liu, Y. Improved social force model based on pedestrian collision avoidance behavior in counterflow. Phys. A Stat. Mech. Its Appl. 2024, 642, 129762. [Google Scholar] [CrossRef]
  15. Sticco, I.M.; Frank, G.A.; Dorso, C.O. Social force model parameter testing and optimization using a high stress real-life situation. Phys. A Stat. Mech. Its Appl. 2021, 561, 125299. [Google Scholar] [CrossRef]
  16. Kanté, D.S.I.; Jebrane, A.; Hakim, A.; Boukamel, A. Characterization of superspreaders movement in a bidirectional corridor using a social force model. Front. Public Health 2023, 11, 1188732. [Google Scholar] [CrossRef] [PubMed]
  17. Tang, M.; Jia, H. An approach for calibration and validation of the social force pedestrian model. In Proceedings of the 2011 International Conference on Transportation, Mechanical, and Electrical Engineering (TMEE), Changchun, China, 16–18 December 2011; pp. 2026–2031. [Google Scholar]
  18. Rudloff, C.; Matyus, T.; Seer, S.; Bauer, D. Can walking behavior be predicted? Analysis of calibration and fit of pedestrian models. Transp. Res. Rec. 2011, 2264, 101–109. [Google Scholar] [CrossRef]
  19. Wang, Z.; Jin, L.; Wang, S.; Xu, H. Apple stem/calyx real-time recognition using YOLO-v5 algorithm for fruit automatic loading system. Postharvest Biol. Technol. 2022, 185, 111808. [Google Scholar] [CrossRef]
  20. Rafe, A.; Karimi, M. Calibrating social force model based on design (of) experiments method. In Proceedings of the 13th Tehran International Conference of Traffic and Transportation Engineering, Tehran, Iran, 25 February 2014. [Google Scholar]
  21. Ko, M.; Kim, T.; Sohn, K. Calibrating a social-force-based pedestrian walking model based on maximum likelihood estimation. Transportation 2013, 40, 91–107. [Google Scholar] [CrossRef]
  22. Chen, R.; Tian, X. Gesture detection and recognition based on object detection in complex background. Appl. Sci. 2023, 13, 4480. [Google Scholar] [CrossRef]
  23. Gai, Y.; He, W.; Zhou, Z. Pedestrian target tracking based on DeepSORT with YOLOv5. In Proceedings of the 2021 2nd International Conference on Computer Engineering and Intelligent Control (ICCEIC), Chongqing, China, 12–14 November 2021; pp. 1–5. [Google Scholar]
  24. Li, M.L.; Sun, G.B.; Yu, J.X. A pedestrian detection network model based on improved YOLOv5. Entropy 2023, 25, 381. [Google Scholar] [CrossRef] [PubMed]
  25. Celebi, T.; Shayea, I.; El-Saleh, A.A.; Ali, S.; Roslee, M. Histogram Equalization for Grayscale Images and Comparison with OpenCV Library. In Proceedings of the 2021 IEEE 15th Malaysia International Conference on Communication (MICC), Virtual, 1–2 December 2021; pp. 92–97. [Google Scholar]
  26. Lu, Y.; Zhu, L.; He, S.; Yang, H.; Luo, H.; Zhao, R. Newton Downhill Method Based Maximum Torque Per Voltage Control of IPMSM Considering Variation of Motor Parameters. In Proceedings of the 2022 IEEE International Power Electronics and Application Conference and Exposition (PEAC), Xiamen, China, 4–7 November 2022; pp. 606–611. [Google Scholar]
Figure 1. The diagram of the social force model.
Figure 1. The diagram of the social force model.
Sensors 24 05011 g001
Figure 2. The overall framework of the calibration model.
Figure 2. The overall framework of the calibration model.
Sensors 24 05011 g002
Figure 3. The diagram of the image matrix.
Figure 3. The diagram of the image matrix.
Sensors 24 05011 g003
Figure 4. Algorithm flow chart.
Figure 4. Algorithm flow chart.
Sensors 24 05011 g004
Figure 5. Layout of platform floor of Suzhou Pinglonglu East Station.
Figure 5. Layout of platform floor of Suzhou Pinglonglu East Station.
Sensors 24 05011 g005
Figure 6. Four areas of the platform floor.
Figure 6. Four areas of the platform floor.
Sensors 24 05011 g006
Figure 7. Initial actual density maps generated by YOLOv5: (a) Generated by YOLOv5; (b) Converted to 2D plane view.
Figure 7. Initial actual density maps generated by YOLOv5: (a) Generated by YOLOv5; (b) Converted to 2D plane view.
Sensors 24 05011 g007
Figure 8. Anylogic simulation interface.
Figure 8. Anylogic simulation interface.
Sensors 24 05011 g008
Figure 9. Pedestrian density map.
Figure 9. Pedestrian density map.
Sensors 24 05011 g009
Figure 10. Error convergence curve.
Figure 10. Error convergence curve.
Sensors 24 05011 g010
Figure 11. The error frequency distribution at simulation initiation and after parameter calibration in mid-demand.
Figure 11. The error frequency distribution at simulation initiation and after parameter calibration in mid-demand.
Sensors 24 05011 g011
Figure 12. The error frequency distribution at simulation initiation and after parameter calibration in low demand.
Figure 12. The error frequency distribution at simulation initiation and after parameter calibration in low demand.
Sensors 24 05011 g012
Figure 13. The error frequency distribution at simulation initiation and after parameter calibration in high demand.
Figure 13. The error frequency distribution at simulation initiation and after parameter calibration in high demand.
Sensors 24 05011 g013
Figure 14. Comparison of errors in each region at simulation initiation and after parameter calibration.
Figure 14. Comparison of errors in each region at simulation initiation and after parameter calibration.
Sensors 24 05011 g014
Table 1. Comparison of related studies.
Table 1. Comparison of related studies.
PublicationApplicable ScenariosSolution MethodPedestrian DynamicsPedestrian Spatial DistributionConvenience and Flexibility of Collecting Field Data
Sticco et al. [15]High stressDifferential Evolution Algorithm
Kanté et al. [16]Bidirectional corridor Yes
Tang and Jia
[17]
Specific traffic scenariosLeast square estimationYes
Rudloff et al. [18]Transportation hubsLeast square estimation
This paperFull scenarioNewton downhill methodYesYesYes
Table 2. Parameters of social force model integrated from different research results.
Table 2. Parameters of social force model integrated from different research results.
ParameterValueUnit
v i o 1.1–1.5m/s
τ i 0.4–0.6s
A i 9–12ms−2
B i 0–0.4m
Table 3. Weight of the parameters to be calibrated.
Table 3. Weight of the parameters to be calibrated.
ParameterWeight
v i o 0.10
τ i 0.05
A i 0.74
B i 0.11
Table 4. Parameter list of equipment in metro stations.
Table 4. Parameter list of equipment in metro stations.
ValueUnit
Screen doors20/
Platform length83.75m
Platform width9.75m
Escalator2/
Escalator width1m
Escalator speed0.65m/s
Stair2/
Stair width1.75m
Security checker3/
Turnstile22/
Screen doors20/
Table 5. Pedestrian parameters.
Table 5. Pedestrian parameters.
ParameterMaleFemaleAverage
Time to reach downstairs (s)14.7815.9115.20
Peak hourly traffic (persons) 1032
Time to pass through security check (s)3.473.883.675
Time to travel from escalator/stairway entrance to screen door (s)11.6313.7812.705
Time to travel from gate to escalator/stairs (s)6.646.686.66
Proportion of trains waiting in the upward direction (%) 82.26
Proportion of trains waiting in the downward direction (%) 17.74
Proportion of alightings in the upward direction (%) 27.91
Proportion of alightings in the downward direction (%) 72.09
Table 6. Escalator/stair and directions corresponding to each area.
Table 6. Escalator/stair and directions corresponding to each area.
AreaEscalator/StairDownward/Upward
AStair 1Upward
BEscalator 1Downward
CStair 2Upward
DEscalator 2Downward
Table 7. Calibrated parameters of social force model.
Table 7. Calibrated parameters of social force model.
ParameterValueUnit
v i o 1.37m/s
τ i 0.53s
A i 10.25ms−2
B i 0.28m
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Li, T.; Xu, B.; Lu, W.; Chen, Z.; Zhang, S.; Xia, F. The Parameter Calibration of Social Force Model for Pedestrian Flow Simulation Based on YOLOv5. Sensors 2024, 24, 5011. https://doi.org/10.3390/s24155011

AMA Style

Li T, Xu B, Lu W, Chen Z, Zhang S, Xia F. The Parameter Calibration of Social Force Model for Pedestrian Flow Simulation Based on YOLOv5. Sensors. 2024; 24(15):5011. https://doi.org/10.3390/s24155011

Chicago/Turabian Style

Li, Tianle, Bingbing Xu, Weike Lu, Zidan Chen, Sizheng Zhang, and Fanjun Xia. 2024. "The Parameter Calibration of Social Force Model for Pedestrian Flow Simulation Based on YOLOv5" Sensors 24, no. 15: 5011. https://doi.org/10.3390/s24155011

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop