A method, device, equipment and storage medium for optimizing subway car congestion

By collecting images in front of subway cars and screen doors and using deep learning models to identify passengers and generate waiting suggestions, it solves the problem of low manual scheduling efficiency in the existing technology and achieves optimization of car loads and improvement of transportation efficiency.

CN118411673BActive Publication Date: 2024-10-18GUANGZHOU BAOLUN ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410642892.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-10-18
Estimated Expiration
2044-05-23

AI Technical Summary

Technical Problem

Existing technology relies on manual dispatch to guide passenger diversion, resulting in subway carriages being unable to fully realize their maximum carrying capacity, resulting in low efficiency and difficulty in coping with large-scale passenger flow during peak periods.

Method used

Images are collected through target equipment installed in the carriage and in front of the screen door, and input into the congestion calculation model to generate passenger waiting suggestions, optimize passenger distribution, and use the composite feature extraction layer, spatiotemporal attention module and congestion calculation layer to identify and count passengers, and determine The carriage load value guides passengers to the carriage with lower load in real time.

Benefits of technology

It improves the overall transportation efficiency of the subway system, avoids the problems of overloading and vacancy of carriages, and improves passenger satisfaction and economic benefits of public transportation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118411673B_ABST
    Figure CN118411673B_ABST
Patent Text Reader

Abstract

The present invention provides a subway car congestion optimization method, device, equipment and storage medium. The subway car image and the image in front of the shielding door are obtained through the target device, and then the subway car image and the image in front of the shielding door are input into the congestion calculation model to obtain the car congestion and the door congestion respectively. The load of each car can be determined by the car congestion and the door congestion, so as to further generate passenger waiting suggestions. This method can optimize the distribution of passengers, so that the overall carrying capacity of the train can be more fully utilized, avoiding the waste of transportation capacity caused by overloading of some cars and vacancy of other cars, and improving the overall transportation efficiency of the subway system. It is not only conducive to improving passenger satisfaction, but also conducive to improving the economic benefits of the public transportation system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of station management, and in particular to a method, device, equipment and storage medium for optimizing the congestion of a subway carriage. Background Art

[0002] As an important part of modern urban transportation, subways bear a huge task of transporting people, especially during peak hours in the morning and evening. In order to ensure the orderly entry of passengers and the reasonable distribution of passengers in the carriages, subway stations have adopted a variety of diversion measures.

[0003] However, existing technologies mainly rely on manual dispatching, and staff guide passengers to divert by pulling water barriers and other means. Although this method can guide passengers to enter the station in an orderly manner to a certain extent, its effect is limited and it cannot effectively allow each subway car to fully realize the maximum carrying capacity. This leads to some cars being overcrowded, while other cars are relatively empty, failing to maximize the carrying efficiency. In addition, this method requires a lot of manpower to maintain order, and staff need to constantly guide and dispatch passengers, resulting in low efficiency. Manual operation has poor sustainability and is easily limited by the number and energy of staff, making it difficult to cope with large-scale passenger flow during peak hours.

[0004] In summary, the problems existing in the prior art need to be solved urgently. Summary of the invention

[0005] The present invention provides a method, device, equipment and storage medium for optimizing the congestion degree of a subway car, so as to solve the defects in the prior art.

[0006] The present invention provides a method for optimizing subway car congestion, comprising:

[0007] Acquire subway car images and images in front of the shielding door, wherein the subway car images are acquired by target devices installed in each car, and the images in front of the shielding door are acquired by target devices installed in front of each shielding door;

[0008] Inputting the subway carriage image into a congestion calculation model to obtain the congestion degree of the carriage;

[0009] Inputting the image in front of the shielding door into a crowding degree calculation model to obtain the crowding degree in front of the door;

[0010] Generating a passenger waiting suggestion according to the carriage congestion degree and the door congestion degree, wherein the passenger waiting suggestion is used to guide the passenger to wait in a target carriage;

[0011] The congestion calculation model is used to identify and count passengers in the image.

[0012] According to a subway car congestion optimization method provided by the present invention, the congestion calculation model includes: a composite feature extraction layer, a spatiotemporal attention module and a congestion calculation layer;

[0013] The composite feature extraction layer is used to extract visual features, wherein the visual features include low-level visual features, middle-level visual features and high-level visual features, and the low-level visual features, the middle-level visual features and the high-level visual features are integrated through a feature pyramid structure to obtain a composite feature map;

[0014] The spatiotemporal attention module is used to perform spatiotemporal attention weighting on the composite feature map;

[0015] The crowding calculation layer is used to output the crowding degree according to the composite feature map after the spatiotemporal attention weighting.

[0016] According to a subway car congestion optimization method provided by the present invention, the spatiotemporal attention module further includes: a spatial attention unit and a temporal attention unit;

[0017] The spatial attention unit is used to highlight the local area related to passenger detection and suppress the background noise and occlusion effects;

[0018] The temporal attention unit is used to adjust the attention distribution of the image.

[0019] According to a subway car crowding optimization method provided by the present invention, the step of generating a passenger waiting suggestion according to the car crowding and the door crowding specifically includes:

[0020] Determining the carriage load value of each carriage according to the carriage congestion, the door congestion and the stop time;

[0021] The carriage whose carriage load value is lower than the preset load value is taken as the first target carriage;

[0022] A first passenger waiting suggestion is generated according to the first target carriage.

[0023] According to a subway car crowding optimization method provided by the present invention, the step of generating a passenger waiting suggestion according to the car crowding and the door crowding specifically includes:

[0024] Determining the carriage load value of each carriage according to the carriage congestion, the door congestion and the stop time;

[0025] sorting the carriage load values ​​of each carriage to determine a second target carriage;

[0026] A second passenger waiting suggestion is generated based on the second target car.

[0027] According to a subway car crowding optimization method provided by the present invention, the step of generating a passenger waiting suggestion according to the car crowding and the door crowding specifically includes:

[0028] Obtaining user registration information, wherein the user registration information includes user age information and user identity information;

[0029] Determining whether the user is a special group user according to the user age information and the user identity information;

[0030] When the user is a user of the special group, the carriage load value of each carriage is determined according to the carriage congestion, the door congestion and the stop time;

[0031] sorting the carriage load values ​​of each carriage to determine a third target carriage;

[0032] A third passenger waiting suggestion is generated according to the third target car, and the third passenger waiting suggestion is sent to the mobile terminal of the user.

[0033] According to a subway car crowding optimization method provided by the present invention, the passenger waiting suggestion includes the crowding level of the target car and the crowding level of the non-target car, and the crowding level is obtained by mapping the car crowding and the door crowding.

[0034] The present invention also provides a subway car congestion optimization device, comprising:

[0035] An image acquisition module, used to acquire subway carriage images and images in front of the shielding doors, wherein the subway carriage images are acquired by target devices installed in each carriage, and the images in front of the shielding doors are acquired by target devices installed in front of each shielding door;

[0036] A carriage congestion module, used for inputting the subway carriage image into a congestion calculation model to obtain the carriage congestion;

[0037] A door front crowding module, used for inputting the image in front of the shielded door into a crowding calculation model to obtain the door front crowding;

[0038] A waiting suggestion module, used for generating passenger waiting suggestions according to the carriage congestion degree and the door congestion degree, wherein the passenger waiting suggestions are used for guiding passengers to wait in a target carriage;

[0039] The congestion calculation model is used to identify and count passengers in the image.

[0040] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for optimizing the congestion degree of a subway car as described above is implemented.

[0041] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for optimizing the congestion degree of a subway car as described in any one of the above is implemented.

[0042] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for optimizing the congestion degree of a subway car as described above is implemented.

[0043] The present invention provides a subway car congestion optimization method, device, equipment and storage medium. The subway car image and the image in front of the shielding door are obtained through the target device, and then the subway car image and the image in front of the shielding door are input into the congestion calculation model to obtain the car congestion and the door congestion respectively. The load of each car can be determined by the car congestion and the door congestion, so as to further generate passenger waiting suggestions. This method can optimize the distribution of passengers, so that the overall carrying capacity of the train can be more fully utilized, avoiding the waste of transportation capacity caused by overloading of some cars and vacancy of other cars, and improving the overall transportation efficiency of the subway system. It is not only conducive to improving passenger satisfaction, but also conducive to improving the economic benefits of the public transportation system. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 It is a schematic flow chart of the method for optimizing the crowdedness of subway carriages provided by the present invention;

[0046] Figure 2 It is a schematic diagram of the structure of the device for optimizing the crowdedness of a subway car provided by the present invention;

[0047] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] The subway is a key hub of modern urban transportation, especially during peak hours in the morning and evening, carrying the travel needs of a large number of passengers. In order to ensure that passengers enter the station in an orderly manner and are reasonably distributed, subway stations have adopted a variety of diversion measures. However, the existing technology mainly relies on manual dispatching, and staff guide passengers to divert by pulling water horses and other methods. Although this method can guide passengers to enter the station in an orderly manner to a certain extent, its effect is limited and it cannot effectively allow each subway car to fully realize the maximum carrying capacity. This leads to some cars being too crowded, while other cars are relatively empty, failing to maximize the carrying efficiency. In addition, traditional manual dispatching often relies on subjective judgment and experience, and it is difficult to grasp the congestion of cars and screen doors in real time and accurately. And this method requires a lot of manpower to maintain order, and staff need to constantly guide and dispatch passengers, resulting in low efficiency. Manual operation has poor sustainability and is easily limited by the number and energy of staff, making it difficult to cope with large-scale passenger flow during peak hours.

[0050] In order to solve the problems existing in the prior art, the present invention proposes a method for optimizing the crowdedness of a subway car to optimize the distribution of passengers. The method for optimizing the crowdedness of a subway car is described below. Figure 1 As shown, including but not limited to the following steps:

[0051] Step 110: Acquire subway car images and images in front of the shielding doors. The subway car images are acquired by target devices installed in each car, and the images in front of the shielding doors are acquired by target devices installed in front of each shielding door.

[0052] In step 110, in order to be able to judge the load of the carriage, it is necessary to first obtain the image inside the carriage and the image in front of the shielding door. Only by further processing these images can the purpose of the present invention be achieved. Specifically, target camera devices are installed at the four corners of each subway carriage. The four corners of the carriage are selected because these positions can cover the interior of the entire carriage to ensure that there are no blind spots. Then, target camera devices are installed on both sides of each shielding door. These cameras can fully capture the number of people waiting on the platform and their distribution. For the layout of the cameras, it is necessary to ensure that the viewing angle of each camera can cover the interior of the carriage and the platform area to the maximum extent. Reasonably select the height and angle of the camera to avoid blind spots. In the carriage, the camera should avoid direct visual contact with the passengers to reduce privacy issues and interference. In front of the shielding door, the camera should be installed at an appropriate height so that the passengers on the platform can be clearly photographed. The camera device should have high resolution and low light imaging capabilities to ensure that clear images can be captured under different light conditions.

[0053] Step 120: Input the subway car image into a crowding degree calculation model to obtain the crowding degree of the car; wherein the crowding degree calculation model is used to identify and count passengers in the image.

[0054] In step 120, the subway car image needs to be input into the crowding calculation model to obtain the crowding of the car. People will move around in the car, and the crowding will change when getting on and off the car. In order to calculate the crowding in the car, it is usually calculated after the screen door is closed, when the vehicle starts or is about to stop, and the crowd in the car is relatively stable at this time. Therefore, the calculation of the crowding in the car does not require real-time statistics. It only needs to take an image before the subway starts and when it is about to stop, and calculate the current crowding of the car to obtain more accurate data.

[0055] Among them, the congestion calculation model is used to identify and count the passengers in the image, and can be combined with the set carriage load threshold to divide the carriage congestion into different levels.

[0056] Step 130: Input the image in front of the shielded door into a crowding degree calculation model to obtain the crowding degree in front of the door.

[0057] In step 130, the image in front of the screen door needs to be input into the crowding calculation model to obtain the crowding degree in front of the door. Passengers waiting in front of the screen door will determine in real time whether to continue waiting in front of the screen door or transfer to other screen doors with fewer people based on the number of people currently queuing. Therefore, the crowding degree calculation in front of the screen door adopts a real-time calculation method to facilitate passengers to make instant decisions.

[0058] Step 140: Generate passenger waiting suggestions based on the carriage congestion degree and the door congestion degree, wherein the passenger waiting suggestions are used to guide passengers to go to the target carriage to wait for the train.

[0059] In step 140, the load value of each carriage will be obtained based on real-time data (carriage crowding and door crowding). At the same time, the running status of the train, including train position, speed and station stop time, will be monitored in real time, so as to make passenger allocation recommendations at the appropriate time. The passenger allocation recommendations will take into account complex scenarios such as load differences between carriages, sudden changes in passenger flow, and space utilization inside and outside the carriages, and the rationality and adaptability of the recommendation results will be ensured through optimization algorithms, so that passengers can be quickly and effectively allocated to carriages and platform screen doors with lower loads. After generating passenger waiting recommendations, the passenger allocation recommendations will be released in real time through station display screens, mobile phone applications, and voice broadcasts to guide passengers to designated carriages and platform screen doors.

[0060] As a further optional embodiment, the crowding calculation model includes: a composite feature extraction layer, a spatiotemporal attention module and a crowding calculation layer;

[0061] The composite feature extraction layer is used to extract visual features, wherein the visual features include low-level visual features, middle-level visual features and high-level visual features, and the low-level visual features, the middle-level visual features and the high-level visual features are integrated through a feature pyramid structure to obtain a composite feature map;

[0062] The spatiotemporal attention module is used to perform spatiotemporal attention weighting on the composite feature map;

[0063] The crowding calculation layer is used to output the crowding degree according to the composite feature map after the spatiotemporal attention weighting.

[0064] In this embodiment, the congestion calculation model is a deep learning model designed specifically for subway car congestion detection. Specifically, multiple pre-trained deep convolutional neural networks (such as ResNet) are used as basic feature extractors to extract low-level, middle-level and high-level visual features in the car and in front of the shielded door. Features at different levels are fused through a feature pyramid structure to construct a composite feature map with rich semantic information and spatial details. The spatiotemporal attention module includes a spatial attention submodule and a temporal attention submodule, which are used to weight the composite feature map with spatiotemporal attention. The spatial attention submodule highlights the local area related to passenger detection through adaptive learning weights, suppressing the background noise and occlusion effects. The temporal attention submodule uses historical frame information to dynamically adjust the attention distribution of the current frame to adapt to passenger flow and lighting changes, thereby improving the continuity and stability of congestion calculation. Then, the composite features weighted by spatiotemporal attention are input into a specially designed congestion calculation network. Preferably, the congestion calculation network includes multiple fully connected layers and activation functions (such as ReLU) for mapping features to congestion levels. According to the set carriage load threshold, the output continuous crowding value is mapped to a predefined crowding level (such as empty, less crowded, more comfortable, more crowded, close to load).

[0065] As a further optional embodiment, the spatiotemporal attention module further includes: a spatial attention unit and a temporal attention unit;

[0066] The spatial attention unit is used to highlight the local area related to passenger detection and suppress the background noise and occlusion effects;

[0067] The temporal attention unit is used to adjust the attention distribution of the image.

[0068] In this embodiment, the spatial attention unit can highlight the local area related to passenger detection and suppress the background noise and occlusion. By learning the weights of the local area, the model can better focus on the area where passengers may exist and reduce the interference of irrelevant information. The temporal attention unit adjusts the attention distribution of the image to adapt to the passenger flow inside and outside the car at different time points. And the attention of the current frame can be dynamically adjusted using historical frame information, which can better capture the trend and changes of passenger flow and improve the continuity and stability of congestion calculation.

[0069] As a further optional embodiment, the step of generating a passenger waiting suggestion according to the carriage congestion degree and the door congestion degree specifically includes:

[0070] Determining the carriage load value of each carriage according to the carriage congestion, the door congestion and the stop time;

[0071] The carriage whose carriage load value is lower than the preset load value is taken as the first target carriage;

[0072] A first passenger waiting suggestion is generated according to the first target carriage.

[0073] In this embodiment, it is necessary to determine the future changes in the carriage load value of each carriage based on the carriage crowding, the door crowding and the stop time. The carriage crowding can directly reflect the number of people in the carriage, and the door crowding can also directly reflect the number of people getting on the subway when it arrives at the station. However, these two data alone cannot determine the number of people getting off the carriage. Therefore, it is necessary to introduce the subway's stop time. During peak hours, such as 8 o'clock in the morning, the number of people getting on and off the station is relatively large, and the number of people getting on can be directly obtained through the door crowding, so the stop time only needs to reflect the time of getting off. Specifically, the number of people getting off in different carriages at different time periods can be counted, so that the number of people getting off in different carriages at different times can be obtained. Then the carriage load value is equal to the carriage crowding plus the door crowding minus the number of people getting off, where the number of people getting off is related to the stop time.

[0074] Based on the obtained carriage load value, it can be compared with the preset load value. When the carriage load value is lower than the preset load value, it can be considered that there are still many empty seats in the carriage. The preset load value can be set to 80% of the theoretical number of people in the carriage. The specific setting can be adjusted according to the actual situation and is not specifically limited here. The first target carriage refers to the carriage with a carriage load value lower than the preset load value.

[0075] As a further optional embodiment, the step of generating a passenger waiting suggestion according to the carriage congestion degree and the door congestion degree specifically includes:

[0076] Determining the carriage load value of each carriage according to the carriage congestion, the door congestion and the stop time;

[0077] sorting the carriage load values ​​of each carriage to determine a second target carriage;

[0078] A second passenger waiting suggestion is generated based on the second target car.

[0079] In this embodiment, the carriages need to be sorted in descending order according to the current carriage load value to form a carriage congestion ranking list. In the carriage congestion ranking list, the carriages with lower loads are screened out, and then passengers are preferentially recommended to go to the carriages with lower loads to reduce the load difference between the carriages and achieve overall load balancing. The second target carriage refers to a carriage whose load value is higher than the preset load value and whose load value is lower than that of other carriages.

[0080] As a further optional embodiment, the step of generating a passenger waiting suggestion according to the carriage congestion degree and the door congestion degree specifically includes:

[0081] Obtaining user registration information, wherein the user registration information includes user age information and user identity information;

[0082] Determining whether the user is a special group user according to the user age information and the user identity information;

[0083] When the user is a user of the special group, the carriage load value of each carriage is determined according to the carriage congestion, the door congestion and the stop time;

[0084] sorting the carriage load values ​​of each carriage to determine a third target carriage;

[0085] A third passenger waiting suggestion is generated according to the third target car, and the third passenger waiting suggestion is sent to the mobile terminal of the user.

[0086] In this embodiment, the user can be guided through the mobile phone app. When the user has downloaded the app, the corresponding user registration information can be obtained to determine whether the user is a special group (such as pregnant women, the elderly, the disabled, and those with children), so as to make targeted recommendations for waiting in the carriage. Specifically, the user age information and user identity information in the user registration information can be obtained. The user age information can be used to determine whether the user is an elderly person, and the user identity information can be used to determine whether the user is a pregnant woman, a disabled person, and a person with children. When the user is a special group, the user will be given priority recommendation for carriages with less load values ​​and "love seats". The third target carriage refers to a carriage with a "love seat" and a relatively low carriage load value.

[0087] As a further optional embodiment, the passenger waiting suggestion includes a crowding level of a target car and a crowding level of a non-target car, and the crowding level is obtained by mapping the car crowding level and the door crowding level.

[0088] According to the crowdedness of the carriage and the crowdedness in front of the door, the crowdedness level is mapped. The crowdedness level can be divided into several levels, such as "empty state", "few people flow", "better comfort", "relatively crowded", and "close to load" levels, so that passengers can more intuitively understand the crowdedness of the carriage. Optionally, this information is sent to the user's mobile terminal, so that passengers can easily view and make choices.

[0089] The following is a description of the subway car congestion optimization device provided by the present invention. Figure 2As shown, the subway car congestion optimization device described below and the subway car congestion optimization method described above can refer to each other.

[0090] A device for optimizing the crowdedness of a subway carriage, comprising:

[0091] An image acquisition module 210 is used to acquire subway carriage images and images in front of the shielding doors. The subway carriage images are acquired by target devices installed in each carriage, and the images in front of the shielding doors are acquired by target devices installed in front of each shielding door.

[0092] The carriage congestion module 220 is used to input the subway carriage image into a congestion calculation model to obtain the carriage congestion;

[0093] The door front crowding module 230 is used to input the shielded door front image into the crowding calculation model to obtain the door front crowding;

[0094] A waiting suggestion module 240, for generating a passenger waiting suggestion according to the carriage congestion degree and the door congestion degree, wherein the passenger waiting suggestion is used to guide the passenger to wait in a target carriage;

[0095] The congestion calculation model is used to identify and count passengers in the image.

[0096] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3 As shown, the electronic device may include: a processor 310, a communications interface 320, a memory 330 and a communications bus 340, wherein the processor 310, the communications interface 320 and the memory 330 communicate with each other via the communications bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the method for optimizing the crowdedness of a subway car, the method comprising:

[0097] Acquire subway car images and images in front of the shielding door, wherein the subway car images are acquired by target devices installed in each car, and the images in front of the shielding door are acquired by target devices installed in front of each shielding door;

[0098] Inputting the subway carriage image into a congestion calculation model to obtain the congestion degree of the carriage;

[0099] Inputting the image in front of the shielding door into a crowding degree calculation model to obtain the crowding degree in front of the door;

[0100] Generating a passenger waiting suggestion according to the carriage congestion degree and the door congestion degree, wherein the passenger waiting suggestion is used to guide the passenger to wait in a target carriage;

[0101] The congestion calculation model is used to identify and count passengers in the image.

[0102] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0103] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the subway car congestion optimization method provided by the above methods, the method comprising:

[0104] Acquire subway car images and images in front of the shielding door, wherein the subway car images are acquired by target devices installed in each car, and the images in front of the shielding door are acquired by target devices installed in front of each shielding door;

[0105] Inputting the subway carriage image into a congestion calculation model to obtain the congestion degree of the carriage;

[0106] Inputting the image in front of the shielding door into a crowding degree calculation model to obtain the crowding degree in front of the door;

[0107] Generating a passenger waiting suggestion according to the carriage congestion degree and the door congestion degree, wherein the passenger waiting suggestion is used to guide the passenger to wait in a target carriage;

[0108] The congestion calculation model is used to identify and count passengers in the image.

[0109] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the subway car congestion optimization method provided by the above methods, the method comprising:

[0110] Acquire subway car images and images in front of the shielding door, wherein the subway car images are acquired by target devices installed in each car, and the images in front of the shielding door are acquired by target devices installed in front of each shielding door;

[0111] Inputting the subway carriage image into a congestion calculation model to obtain the congestion degree of the carriage;

[0112] Inputting the image in front of the shielding door into a crowding degree calculation model to obtain the crowding degree in front of the door;

[0113] Generating a passenger waiting suggestion according to the carriage congestion degree and the door congestion degree, wherein the passenger waiting suggestion is used to guide the passenger to wait in a target carriage;

[0114] The congestion calculation model is used to identify and count passengers in the image.

[0115] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0116] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for optimizing subway car congestion, characterized in that: include: Acquire subway car images and images in front of the shielding door, wherein the subway car images are acquired by target devices installed in each car, and the images in front of the shielding door are acquired by target devices installed in front of each shielding door; Inputting the subway carriage image into a congestion calculation model to obtain the congestion degree of the carriage; Inputting the image in front of the shielding door into a crowding degree calculation model to obtain the crowding degree in front of the door; Generating a passenger waiting suggestion according to the carriage congestion degree and the door congestion degree, wherein the passenger waiting suggestion is used to guide the passenger to wait in a target carriage; Wherein, the congestion calculation model is used to identify and count passengers in the image; The crowding calculation model includes: a composite feature extraction layer, a spatiotemporal attention module and a crowding calculation layer; The composite feature extraction layer is used to extract visual features, wherein the visual features include low-level visual features, middle-level visual features and high-level visual features, and the low-level visual features, the middle-level visual features and the high-level visual features are integrated through a feature pyramid structure to obtain a composite feature map; The spatiotemporal attention module is used to perform spatiotemporal attention weighting on the composite feature map; The crowding calculation layer is used to output the crowding degree according to the composite feature map after the spatiotemporal attention weighting.

2. The method for optimizing subway car congestion according to claim 1, characterized in that: The spatiotemporal attention module also includes: a spatial attention unit and a temporal attention unit; The spatial attention unit is used to highlight the local area related to passenger detection and suppress the background noise and occlusion effects; The temporal attention unit is used to adjust the attention distribution of the image.

3. The method for optimizing subway car congestion according to claim 1, characterized in that: The step of generating a passenger waiting suggestion according to the carriage congestion degree and the door congestion degree specifically comprises: Determining the carriage load value of each carriage according to the carriage congestion, the door congestion and the stop time; The carriage whose carriage load value is lower than the preset load value is taken as the first target carriage; A first passenger waiting suggestion is generated according to the first target carriage.

4. The method for optimizing subway car congestion according to claim 1, characterized in that: The step of generating a passenger waiting suggestion according to the carriage congestion degree and the door congestion degree specifically comprises: Determining the carriage load value of each carriage according to the carriage congestion, the door congestion and the stop time; sorting the carriage load values ​​of each carriage to determine a second target carriage; A second passenger waiting suggestion is generated based on the second target car.

5. The method for optimizing subway car congestion according to claim 1, characterized in that: The step of generating a passenger waiting suggestion according to the carriage congestion degree and the door congestion degree specifically comprises: Obtaining user registration information, wherein the user registration information includes user age information and user identity information; Determining whether the user is a special group user according to the user age information and the user identity information; When the user is a user of the special group, the carriage load value of each carriage is determined according to the carriage congestion, the door congestion and the stop time; sorting the carriage load values ​​of each carriage to determine a third target carriage; A third passenger waiting suggestion is generated according to the third target car, and the third passenger waiting suggestion is sent to the mobile terminal of the user.

6. The method for optimizing subway car congestion according to claim 1, characterized in that: The passenger waiting suggestion includes a crowding degree level of a target carriage and a crowding degree level of a non-target carriage, and the crowding degree level is obtained by mapping the carriage crowding degree and the door crowding degree.

7. A subway car congestion optimization device, characterized in that: include: An image acquisition module, used to acquire subway carriage images and images in front of the shielding doors, wherein the subway carriage images are acquired by target devices installed in each carriage, and the images in front of the shielding doors are acquired by target devices installed in front of each shielding door; A carriage congestion module, used for inputting the subway carriage image into a congestion calculation model to obtain the carriage congestion; A door front crowding module, used for inputting the image in front of the shielded door into a crowding calculation model to obtain the door front crowding; A waiting suggestion module, used for generating passenger waiting suggestions according to the carriage congestion degree and the door congestion degree, wherein the passenger waiting suggestions are used for guiding passengers to wait in a target carriage; Wherein, the congestion calculation model is used to identify and count passengers in the image; The crowding calculation model includes: a composite feature extraction layer, a spatiotemporal attention module and a crowding calculation layer; The composite feature extraction layer is used to extract visual features, wherein the visual features include low-level visual features, middle-level visual features and high-level visual features, and the low-level visual features, the middle-level visual features and the high-level visual features are integrated through a feature pyramid structure to obtain a composite feature map; The spatiotemporal attention module is used to perform spatiotemporal attention weighting on the composite feature map; The crowding calculation layer is used to output the crowding degree according to the composite feature map after the spatiotemporal attention weighting.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for optimizing subway car congestion as described in any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for optimizing subway car congestion as claimed in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • A rail transit dynamic passenger flow guidance system

    CN109523063A

  • Rail transit passenger flow sensing and inducing method, device, equipment and system

    CN112347864A