Self-calibration passenger flow simulation and space optimization method and equipment for public buildings
By combining the GRU neural network and simulated annealing algorithm, the self-calibrated passenger flow simulation method solves the problem of real-time and accuracy of passenger flow simulation prediction in public buildings, optimizes the spatial layout, and improves the service quality and operational efficiency of public buildings.
Patent Information
- Application Number
- CN202410840264.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-27
AI Technical Summary
Due to the lack of real-time and accuracy in passenger flow simulation predictions in public buildings, the space optimization method is not systematic enough, which increases management difficulty and safety risks.
A self-calibrating passenger flow simulation method that integrates GRU neural network and simulated annealing algorithm is adopted. Real-time monitoring data and historical environmental data are used to predict passenger flow density by training the GRU neural network model, and the simulated annealing algorithm is used to optimize pedestrian walking speed to achieve real-time and accurate Passenger flow density prediction and space layout optimization.
It achieves real-time and accurate prediction of passenger flow density in public buildings, optimizes spatial layout, improves service quality and operational efficiency of public buildings, and reduces passenger flow congestion and infection risks.
Smart Images

Figure CN118396192B
Abstract
Description
Technical Field
[0001] The invention relates to a method and equipment for self-calibration passenger flow simulation and space optimization of a public building. Background Art
[0002] The rationality of the spatial layout of public buildings has attracted more and more attention from public building managers. Unreasonable spatial layout and resource allocation have caused public buildings to constantly face problems such as crowded passages, circuitous circulation lines and interweaving passenger flows. These problems not only bring great inconvenience to building users and increase the difficulty of daily management of public buildings, but also may increase the safety risks brought about by the interweaving of passenger flows, seriously affecting the operational efficiency of public buildings.
[0003] In recent years, computer simulation technology has been developed and widely used, providing favorable conditions for predicting real passenger flow behavior in public buildings. However, since the basic data of the simulation is historical data, the passenger flow prediction results lack real-time performance, and there is a lack of reliable basis for measuring the prediction error. Compared with the complex real-time changing environment, its authenticity has yet to be explored; at the same time, the systematic method of applying passenger flow simulation results to space optimization has yet to be improved. Summary of the invention
[0004] The purpose of the present invention is to provide a method for self-calibration passenger flow simulation and space optimization of a public building.
[0005] In order to solve the above problems, the present invention provides a method for self-calibration passenger flow simulation and space optimization of a public building, comprising:
[0006] Step 0: Train the GRU neural network passenger flow prediction model;
[0007] Step 1: Set the initial feasible solution , set the initial temperature , termination temperature , the temperature drop coefficient is , the maximum number of iterations is , the cooling function is ;
[0008] Step 2: Set the current solution , current temperature ;
[0009] Generate initial feasible solution , the initial feasible solution and arrival rates in the second historical environmental data in public buildings , event probability P K and business processing time T K , input into the trained GRU neural network passenger flow prediction model, and obtain the simulated passenger flow density calculation corresponding to the business link area K ; Calculation based on simulated passenger flow density The actual passenger flow density corresponding to the known , calculate the average model error estimate ,make , , ;
[0010] Step 3: At the current temperature Next, yes conduct A neighborhood search is performed to generate a new neighborhood solution, namely the pedestrian walking speed. , the pedestrian walking speed and the arrival rate in the second historical environment data , event probability P K and business processing time T K , input into the trained GRU neural network passenger flow prediction model, and calculate the second simulation passenger flow density , and based on the second simulated passenger flow density The second actual passenger flow density corresponding to the known , calculate the average model error ;
[0011] Step 4: Calculate the quadratic difference , ,like , then accept the new solution and let , , ;
[0012] like >=0, calculate probability P using the Metropolis criterion, accept the new solution with probability P, and accept the new solution based on probability P. , , ;
[0013] If you do not accept the probability P, keep the original , and ;
[0014] Step 5: Update the temperature ,Will As the new current temperature , then return to Step 3 and loop until the condition is met When , the current optimal solution is the final solution;
[0015] Step 6: If the optimal solution Corresponding simulated passenger flow density If the value is greater than the preset threshold, the spatial layout of service facilities and service personnel in the public building is adjusted, and Step 3 to Step 5 are cycled again to calculate the adjusted optimal solution. The corresponding performance indicator is determined until the corresponding performance indicator is less than or equal to the preset threshold.
[0016] Furthermore, in the above method, the GRU neural network passenger flow prediction model includes: an input layer, a first hidden layer, a second hidden layer, a linear fully connected layer and an output layer, and training the GRU neural network passenger flow prediction model includes:
[0017] Step 0.1: The arrival rate in the first historical environment data of the public building , event probability P K , Business processing time T K , pedestrian walking speed As the input vector, it enters the input layer of the GRU neural network passenger flow prediction model, and the simulated passenger flow density corresponding to the business link area K As the output vector, it enters the output layer of the GRU neural network passenger flow prediction model, where j represents the entrance number in the building and K represents the serial number of the business link area;
[0018] Step 0.2: The first hidden layer of the GRU neural network passenger flow prediction model receives the input vector of the input layer, combines the output of each GRU neuron in the first hidden layer, obtains the input vector of the second hidden layer, and abstracts the arrival rate , event probability P K , Business processing time T K , pedestrian walking speed And the simulated passenger flow density corresponding to the business link area K the relationship between;
[0019] Step 0.3: The second hidden layer of the GRU neural network passenger flow prediction model receives the input vector of the second hidden layer, and obtains the output vector of the second hidden layer by combining the output of each GRU neuron in the second hidden layer;
[0020] Step 0.4: Input the output vector of the second hidden layer into the linear fully connected layer of the GRU neural network passenger flow prediction model, and finally train the passenger flow density predicted by the output network model and output it to the output layer.
[0021] Furthermore, in the above method, the average model error evaluation is calculated middle,
[0022] , N represents the total number of business link areas.
[0023] Furthermore, in the above method, the average model error is calculated ,include:
[0024] , N represents the total number of business link areas.
[0025] Furthermore, in the above method, calculating the probability P includes:
[0026] .
[0027] Furthermore, in the above method, the performance indicators include: simulated passenger flow density, queuing time in each business link area and infection risk.
[0028] Furthermore, in the above method, the queuing time in the business link area ,in, is the queuing time of building users in the model; n The number of building users that have completed the queue.
[0029] Furthermore, in the above method, the risk of infection , where N is the total number of simulated building users, and i represents the simulated building user serial number;
[0030] Probability of infection , where r represents the initial infection rate, which is proportional to the risk of infection times, T is the contact time.
[0031] According to another aspect of the present invention, there is further provided a computer-readable storage medium having computer-executable instructions stored thereon, wherein when the computer-executable instructions are executed by a processor, the processor is caused to: execute any of the methods described above.
[0032] According to another aspect of the present invention, there is also provided a computer device, comprising:
[0033] Processor; and
[0034] A memory arranged to store computer executable instructions, which when executed cause the processor to: perform any of the methods described above.
[0035] Compared with the prior art, the self-calibrated passenger flow simulation and space optimization method for public buildings integrating GRU neural network and simulated annealing of the present invention makes full use of real-time monitoring data of entrances and exits of public buildings, and predicts the passenger flow density of various areas of public buildings in real time and accurately in a self-calibrated simulation mode, optimizes the spatial layout of public buildings, and improves the service quality of public buildings.
[0036] The invention proposes a method for self-calibration passenger flow simulation and space optimization of public buildings by integrating GRU neural network and simulated annealing. The advantages of this method are:
[0037] Real-time performance: The method of the present invention is used to bind the real-time monitoring data stream and the real-time business data stream, so as to realize the real-time self-calibration of the corresponding simulation parameters including the arrival rate, event probability and business link duration, thereby ensuring the real-time performance of the passenger flow simulation;
[0038] Accuracy: Based on the GRU-simulated annealing algorithm, the present invention searches for pedestrian walking speed, compares the predicted passenger flow density with the actual one and calculates the error, and continuously self-calibrates the walking speed parameter until the error is minimized, thus ensuring the accuracy of the simulated passenger flow density;
[0039] Novelty: This invention is the first to propose optimization indicators of passenger flow density, queuing time and respiratory infection risk from the aspects of convenience, safety of building users and rationality of layout streamline, and comprehensively evaluates and determines the optimization plan of spatial layout. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 is a flow chart of a method for simulating a self-calibrated passenger flow in a public building according to an embodiment of the present invention;
[0041] Figure 2 is a schematic diagram of a change in passenger flow density error in a self-service area according to an embodiment of the present invention;
[0042] Figure 3 It is a schematic diagram of the change of passenger flow density error in the blood test area according to one embodiment of the present invention;
[0043] Figure 4 is a schematic diagram of the change of passenger flow density error in the registration area according to an embodiment of the present invention;
[0044] Figure 5 is a schematic diagram of the change in passenger flow density error in a medicine collection area according to an embodiment of the present invention;
[0045] Figure 6 is a heat map of outpatient customer flow distribution according to an embodiment of the present invention;
[0046] Figure 7a It is a real-life picture of the outpatient customer flow density according to an embodiment of the present invention;
[0047] Figure 7b is a schematic diagram of outpatient customer flow density comparison according to an embodiment of the present invention;
[0048] Figure 8 is a passenger flow density heat map of an optimization solution of an embodiment of the present invention;
[0049] Figure 9aIt is a comparison chart of the queuing time of the original solution and the optimized solution of the present invention;
[0050] Figure 9b A comparison diagram of passenger flow density between the existing solution of an embodiment of the present invention and the optimized solution of the present invention is shown in FIG.
[0051] Fig.9c It is a comparison chart of the initial infection rates of the existing solution of one embodiment of the present invention and the optimized solution of the present invention. DETAILED DESCRIPTION
[0052] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0053] In a typical configuration of the present application, the terminal, the device of the service network and the trusted party all include one or more processors (CPU), input / output interfaces, network interfaces and memories.
[0054] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0055] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory media such as modulated data signals and carrier waves.
[0056] The present invention provides a method for self-calibration passenger flow simulation and space optimization of a public building, comprising:
[0057] Step 0: Train the GRU neural network passenger flow prediction model.
[0058] Here, the complete structure of the self-calibrated public building passenger flow simulation algorithm of the present invention is composed of a GRU neural network prediction passenger flow density model and a simulated annealing method to optimize pedestrian walking speed and calibrate the passenger flow simulation model. Figure 1 The GRU-simulated annealing algorithm flowchart is shown.
[0059] The public building may be, for example, a hospital building, such as a hospital outpatient building;
[0060] Preferably, Figure 1 As shown in the figure, the GRU neural network passenger flow prediction model includes: input layer, first hidden layer, second hidden layer, linear fully connected layer and output layer, where:
[0061] Step 0.1: The arrival rate in the first historical environment data of the public building , event probability P K , Business processing time T K , pedestrian walking speed As the input vector, it enters the input layer of the GRU neural network passenger flow prediction model, and the simulated passenger flow density corresponding to the business link area K As the output vector, it enters the output layer of the GRU neural network passenger flow prediction model, where j represents the entrance number in the building and K represents the serial number of the business link area;
[0062] Here, the arrival rate in the first historical environment data is , event probability P K , pedestrian walking speed V and business processing time T K The four are used as input values of the GRU neural network passenger flow prediction model; the pedestrian walking speed V is the input value of the GRU neural network passenger flow prediction model, and is also the output value of the simulated annealing algorithm;
[0063] Specifically, a hospital outpatient complex was used as the implementation object. Based on the simulation model and algorithm calculation, the actual spatial layout and operation data of the outpatient hall under study were used as the input parameters of the simulation experiment. A single simulation experiment started collecting and calculating evaluation indicators after the model ran for two hours, and then continued to run for six hours. All simulation experiments were repeated 20 times.
[0064] Can receive the arrival rate of passenger flow counting devices arranged at each entrance of the building , as shown in Table 1.
[0065] Table 1 Arrival rate of entrance passenger flow monitoring data
[0066]
[0067] In addition, the statistical data of the business link can be received, as shown in Table 2.
[0068] Table 2 Business processing time for each business link and event probability
[0069]
[0070] Step 0.2: The first hidden layer of the GRU neural network passenger flow prediction model receives the input vector of the input layer, combines the output of each GRU neuron in the first hidden layer, obtains the input vector of the second hidden layer, and abstracts the arrival rate , event probability P K , Business processing time T K , pedestrian walking speed And the simulated passenger flow density corresponding to the business link area K the relationship between;
[0071] Step 0.3: The second hidden layer of the GRU neural network passenger flow prediction model receives the input vector of the second hidden layer, and obtains the output vector of the second hidden layer by combining the output of each GRU neuron in the second hidden layer;
[0072] Step 0.4: Input the output vector of the second hidden layer into the linear fully connected layer of the GRU neural network passenger flow prediction model, and finally train the passenger flow density predicted by the output network model and output it to the output layer.
[0073] Step 1: Set the initial feasible solution , set the initial temperature , termination temperature , the temperature drop coefficient is , the maximum number of iterations (number of neighborhood searches) is , the cooling function is ;
[0074] For example, the initial feasible solution may be 0.5-0.8 meters per second, setting the maximum number of iterations =100, let the initial temperature , termination temperature , cooling coefficient ;
[0075] Step 2: Set the current solution , current temperature ;
[0076] Generate initial feasible solution , the initial feasible solution and arrival rates in the second historical environmental data in public buildings , event probability P K and business processing time T K , input into the trained GRU neural network passenger flow prediction model, and obtain the simulated passenger flow density calculation corresponding to the business link area K ; Calculation based on simulated passenger flow density The actual passenger flow density corresponding to the known , calculate the average model error estimate ,make , , ;
[0077] in, , N represents the total number of business link areas.
[0078] The first historical environment data is the training data of the GRU neural network, and the second historical environment data is the actual calculation data of the algorithm;
[0079] Step 3: At the current temperature Next, yes conduct A neighborhood search is performed to generate a new neighborhood solution, namely the pedestrian walking speed. , the pedestrian walking speed and the arrival rate in the second historical environment data , event probability P K and business processing time T K , input into the trained GRU neural network passenger flow prediction model, and calculate the second simulation passenger flow density , and based on the second simulated passenger flow density And the corresponding second actual passenger flow density , calculate the average model error ;
[0080] in, , N represents the total number of business link areas.
[0081] Pedestrian walking speed V, as temperature and the number of iterations to search for different values;
[0082] Step 4: Calculate the quadratic difference , ,like , then accept the new solution and let , , ;
[0083] like >=0, calculate the probability P using the Metropolis criterion, and accept the new solution with probability P. The probability P is calculated as shown in formula (1). , , ;
[0084] If you do not accept the probability P, keep the original , and ;
[0085] (1)
[0086] Step 5: Update the temperature ,Will As the new current temperature , then return to Step 3 and loop until the condition is met The current optimal solution is (The solution closest to the actual solution) is the final solution;
[0087] Here, passenger flow simulation is completed based on four parameters: arrival rate, business processing time, event probability, and pedestrian walking speed. The first three parameters can be obtained through real-time monitoring and business record data, while pedestrian walking speed needs to be obtained through simulation calculation. Therefore, the accuracy of passenger flow simulation depends to a certain extent on the accuracy of pedestrian walking speed. The simulated annealing algorithm can find the accurate pedestrian walking speed in the direction of shortening the real passenger flow density and the simulated passenger flow density, thereby obtaining an accurate simulated passenger flow density. However, in the process of optimization iteration, each time the pedestrian walking speed solution is obtained, it is necessary to simulate and calculate in the simulation scene, which makes the calculation process complicated and time-consuming. Therefore, this paper adds a GRU neural network on the basis of the simulated annealing algorithm to pre-train the passenger flow density model. In each iterative optimization process, there is no need to repeat the simulation, and the passenger flow density can be quickly calculated, which improves the efficiency of the algorithm.
[0088] Here, at the current temperature Next, according to the arrival rate , event probability P K , Business processing time T K , pedestrian walking speed Perform the maximum number of iterations, 100 times, and then change the temperature until the temperature value drops to 1. At this time, the optimal solution is retained. , calculate the model error.
[0089] .
[0090] The best solution , calculate the simulated passenger flow density data of the business link area K in the simulation model , the data are shown in Table 3:
[0091] Table 3 Calculation results
[0092]
[0093] Through Python simulation calculation, compared with the traditional simulated annealing algorithm, the running time of the GRU-simulated annealing algorithm was shortened from 32.718s to 9.3118s, a reduction of about 71.54%, ultimately optimizing the passenger flow density.
[0094] During the optimization process, the passenger flow density error changes in the self-service area, blood test area, registration area, and medication area are as follows: Figure 2~Figure 5 As shown in Figure 2, passenger density error in each region over time (average model error) It is stable within the controllable range, and it can be seen that there is no sudden change in the passenger flow density error.
[0095] In order to verify the effectiveness of the simulation model, the simulation model was compared with the actual passenger flow density data of the actual hospital. The model and parameters of the basic experiment were used for the experiment. After the model stabilized, the passenger flow distribution was as follows Figure 6 Output shown.
[0096] In order to further verify the reliability of the model, the entrance of the outpatient department was selected as the verification area. The actual passenger flow density (with a maximum confidence interval of 95%) was calculated through the passenger flow monitoring camera and compared with the density collected after the model was stabilized to evaluate the performance of the model. Figure 7a and 7b The model performs well in simulating the main behaviors of customer flow in the outpatient area, and the simulated customer flow distribution is close to the actual distribution.
[0097] Step 6: If the optimal solution Corresponding simulated passenger flow density If the value is greater than the preset threshold, the spatial layout of service facilities and service personnel in the public building is adjusted, and Step 3 to Step 5 are cycled again to calculate the adjusted optimal solution. The corresponding performance indicator is determined until the corresponding performance indicator is less than or equal to the preset threshold.
[0098] Preferably, the spatial layout of the current service facilities and service personnel in the building is evaluated from the perspective of the convenience, safety and rationality of the layout flow of users in the building (such as patients visiting the hospital), combined with performance indicators including simulated passenger flow density, queuing time for each business and infection risk.
[0099] Specifically, the optimization indicators are as follows:
[0100] (1) Simulated passenger flow density
[0101] Simulated passenger flow density , is the average value of passenger flow density in the marked area during the simulation time. The larger the result, the more serious the flow bottleneck situation is.
[0102] (2)
[0103] Among them, M represents the simulated passenger flow density, K represents the business link area number, It is the number of building users in a certain business link area, indicating the area of the business link area.
[0104] (2) Waiting time
[0105] Waiting time , refers to the average time it takes for building users to join the queue, go through the registration / blood drawing / medication collection process, and finally leave the registration / blood drawing / medication collection area. The result largely expresses the convenience of building users.
[0106] (3)
[0107] in, is the queuing time of building users in the model; n The number of building users that have completed the queue.
[0108] (3) Risk of infection
[0109] According to the dynamics of the epidemic, the probability of infection Transformed into a function of contact time and initial infection rate.
[0110] (4)
[0111] in, represents the initial infection rate, which is proportional to the risk of infection times, is the contact time. When a building user enters the 1-meter radius of the current individual, the contact time begins to increase until the building user leaves. Exponential decay model This reflects the concept that the probability of infection increases with the extension of exposure time, and as the exposure time increases, the probability of infection reaches asymptotic saturation. The overall infection risk level is defined based on the infection probability as equation (5), where is the total number of simulated building users. i represents the sequence number of the simulated building user
[0112] (5)
[0113] Specifically, we can combine the basic experiments to get a heat map. The overall passenger flow density in the outpatient hall is low, but the density of the self-service facility area is extremely high, which is likely to cause passenger congestion. We can add two self-service facilities in the low-density rest area and open the east passage of the outpatient hall as an alternative exit to evacuate the passenger flow. According to the proposed spatial layout optimization plan, the simulation model was adjusted and simulated. The simulated passenger flow density heat map is shown in the figure below. Figure 8 shown.
[0114] The performance indicators of the optimization scheme can be calculated, such as Figure 9a , 9b and 9c:
[0115] In terms of simulated passenger flow density, the high-density area was optimized by 58.93%. The high-density area of the original plan was mainly concentrated on the self-service facilities at the entrance of the hall. Therefore, when self-service facilities were added to the low-density area, the overall passenger flow density would be greatly reduced.
[0116] In terms of queuing time, it was reduced by 24.14% compared with the original plan. In terms of infection risk, when the passenger flow density in an area is reduced, the overall duration of potential contact will be shortened, thereby reducing the risk of infection.
[0117] Preferably, the present invention optimizes the layout scheme mainly from aspects of the convenience and safety of building users and the rationality of layout streamlines.
[0118] According to another aspect of the present invention, there is further provided a computer-readable storage medium having computer-executable instructions stored thereon, wherein when the computer-executable instructions are executed by a processor, the processor is caused to: execute any of the methods described above.
[0119] According to another aspect of the present invention, there is also provided a computer device, comprising:
[0120] Processor; and
[0121] A memory arranged to store computer executable instructions, which when executed cause the processor to: perform any of the methods described above.
[0122] The public building self-calibration passenger flow simulation and space optimization method integrating GRU neural network and simulated annealing of the present invention makes full use of the real-time monitoring data of the entrances and exits of public buildings, and predicts the passenger flow density of each area of the public building in real time and accurately in a self-calibration simulation mode, optimizes the spatial layout of public buildings, and improves the service quality of public buildings.
[0123] The invention proposes a method for self-calibration passenger flow simulation and space optimization of public buildings by integrating GRU neural network and simulated annealing. The advantages of this method are:
[0124] Real-time performance: The method of the present invention is used to bind the real-time monitoring data stream and the real-time business data stream, so as to realize the real-time self-calibration of the corresponding simulation parameters including the arrival rate, event probability and business link duration, thereby ensuring the real-time performance of the passenger flow simulation;
[0125] Accuracy: Based on the GRU-simulated annealing algorithm, the present invention searches for pedestrian walking speed, compares the predicted passenger flow density with the actual one and calculates the error, and continuously self-calibrates the walking speed parameter until the error is minimized, thus ensuring the accuracy of the simulated passenger flow density;
[0126] Novelty: This invention, for the first time, proposes optimization indicators of passenger flow density, queuing time and infection risk from the aspects of convenience, safety of building users and rationality of layout streamline, and comprehensively evaluates and determines the optimization plan of spatial layout.
[0127] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0128] The detailed contents of the device embodiments of the present invention can be found in the corresponding parts of the method embodiments, which will not be described in detail here.
[0129] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
[0130] It should be noted that the present invention can be implemented in software and / or a combination of software and hardware, for example, it can be implemented using an application-specific integrated circuit (ASIC), a general-purpose computer or any other similar hardware device. In one embodiment, the software program of the present invention can be executed by a processor to implement the steps or functions described above. Similarly, the software program of the present invention (including related data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and the like. In addition, some steps or functions of the present invention can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform various steps or functions.
[0131] In addition, a part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. The program instruction for calling the method of the present invention may be stored in a fixed or removable recording medium, and / or transmitted through a data stream in a broadcast or other signal-bearing medium, and / or stored in a working memory of a computer device that runs according to the program instruction. Here, according to an embodiment of the present invention, a device is included, the device including a memory for storing computer program instructions and a processor for executing program instructions, wherein, when the computer program instruction is executed by the processor, the device is triggered to run the method and / or technical solution based on the aforementioned multiple embodiments of the present invention.
[0132] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
Claims
1. A self-calibrated passenger flow simulation and space optimization method for public buildings, It is characterized in that include: Step 0: Train the GRU neural network passenger flow prediction model; Step 1: Set the initial feasible solution , set the initial temperature , termination temperature , the temperature drop coefficient is , the maximum number of iterations is , the cooling function is ; Step 2: Set the current solution , current temperature ; Generate initial feasible solution , the initial feasible solution and arrival rates in the second historical environmental data in public buildings , event probability P K and business processing time T K , input into the trained GRU neural network passenger flow prediction model, and obtain the simulated passenger flow density calculation corresponding to the business link area K ; Calculation based on simulated passenger flow density The actual passenger flow density corresponding to the known , calculate the average model error estimate ,make , ; Step 3: At the current temperature Next, yes conduct A neighborhood search is performed to generate a new neighborhood solution, namely the pedestrian walking speed. , the pedestrian walking speed and the arrival rate in the second historical environment data , event probability P K and business processing time T K , input into the trained GRU neural network passenger flow prediction model, and calculate the second simulation passenger flow density , and based on the second simulated passenger flow density And the corresponding second actual passenger flow density , calculate the average model error ; Step 4: Calculate the quadratic difference , ,like , then accept the new solution and let , , ; like , calculate the probability P using the Metropolis criterion, accept the new solution with probability P, and if accepted based on probability P, , ; ; Step 5: Update the temperature ,Will As the new current temperature , then return to Step 3 and loop until the condition is met When , the current optimal solution is the final solution; Step 6: If the optimal solution Corresponding simulated passenger flow density If the value is greater than the preset threshold, the spatial layout of service facilities and service personnel in the public building is adjusted, and Step 3 to Step 5 are cycled again to calculate the adjusted optimal solution. The corresponding performance indicator, until the corresponding performance indicator is less than or equal to the preset threshold; The GRU neural network passenger flow prediction model includes: input layer, first hidden layer, second hidden layer, linear fully connected layer and output layer. Training the GRU neural network passenger flow prediction model includes: The arrival rate in the first historical environmental data of public buildings , event probability P K , Business processing time T K , pedestrian walking speed As the input vector, it enters the input layer of the GRU neural network passenger flow prediction model, and the simulated passenger flow density corresponding to the business link area K As the output vector, it enters the output layer of the GRU neural network passenger flow prediction model, where j represents the entrance number in the building and K represents the serial number of the business link area; The first hidden layer of the GRU neural network passenger flow prediction model receives the input vector of the input layer, and combines the output of each GRU neuron in the first hidden layer to obtain the input vector of the second hidden layer. , and the simulated passenger flow density corresponding to the business link area K the relationship between; The second hidden layer of the GRU neural network passenger flow prediction model receives the input vector of the second hidden layer, and obtains the output vector of the second hidden layer by combining the output of each GRU neuron in the second hidden layer; The output vector of the second hidden layer is input into the linear fully connected layer of the GRU neural network passenger flow prediction model, and finally the passenger flow density predicted by the output network model is trained and output to the output layer; Calculate the average model error estimate middle, , N represents the total number of business link areas; Calculate the average model error ,include: , N represents the total number of business link areas.
2. The method for self-calibration passenger flow simulation and space optimization of a public building as claimed in claim 1, It is characterized in that Calculate the probability P, including: 。 3. The method for self-calibration passenger flow simulation and space optimization of a public building as claimed in claim 1, It is characterized in that The performance indicators include: simulated passenger flow density, queuing time in each business link area and infection risk.
4. A computer-readable storage medium having computer-executable instructions stored thereon, in, When the computer executable instructions are executed by a processor, the processor is caused to: perform the method according to any one of claims 1 to 3.
5. A computing device, in, include: processor; as well as A memory arranged to store computer executable instructions which, when executed, cause the processor to: perform a method as claimed in any one of claims 1 to 3.
