A subway station personnel load prediction method and system

Through GA-BP neural network model and particle swarm algorithm optimization, the problem of complex changes in personnel load in subway stations is solved, high-precision load prediction is achieved, the energy consumption of the air conditioning system is reduced, and better energy management and operation decision support are provided.

CN117494870BActive Publication Date: 2024-09-17NANCHANG RAIL TRANSIT GRP LTD CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311273908.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-28
Publication Date
2024-09-17
Estimated Expiration
2043-09-28

AI Technical Summary

Technical Problem

The spatial and temporal changes in the personnel load in subway stations are complex and difficult to accurately predict with existing technology, resulting in high energy consumption for fresh air processing in the air conditioning system, affecting energy management and operational decisions.

Method used

The GA-BP neural network model combined with the particle swarm algorithm is used to predict the subway station personnel load by optimizing weights and thresholds, including daily, monthly, and annual load prediction. The temperature and humidity sensors and historical data are used to optimize the model to improve prediction accuracy.

Benefits of technology

It achieves high-precision prediction of personnel load in subway stations, reduces energy consumption of air conditioning systems, and provides more accurate energy usage indicators and operational decision support.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117494870B
    Figure CN117494870B
Patent Text Reader

Abstract

The present invention discloses a subway station personnel load prediction method and system, the method specifically includes: determining the input variables and output target vectors of a neural network model, wherein the output target vector is a subway station personnel load prediction; obtaining sample data corresponding to the input variables of the neural network model; optimizing the weights and thresholds of the neural network model using a particle swarm algorithm; assigning the optimized weights and thresholds to the neural network model, and inputting the sample data corresponding to the input variables into the neural network model to obtain the subway station personnel load prediction. The present invention performs iterative calculations on the basis of the global optimal position to update the weights and thresholds corresponding to the neural network model until the difference between the predicted personnel load value and the actual personnel load value is less than a preset error value, thereby further improving the prediction effect, facilitating accurate prediction of the subway station personnel load value, and thus better understanding the subway air conditioning load situation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of subway station personnel load prediction, and in particular to a subway station personnel load prediction method and system. Background Art

[0002] With the development of urban rail transit technology, subways have become one of the most important modes of public transportation in modern cities. The emergence of subways has eased the pressure on ground transportation and greatly facilitated people's travel. According to the "Urban Rail Transit 2019 Statistics and Analysis Report" released by the China Urban Rail Transit Association in 2022, there are 4,366.5 kilometers of underground lines in the operating lines of my country's urban rail transit system, accounting for 64.8%. As a mode of travel that is the focus of public transportation in large and medium-sized cities, the subway has become inseparable from people's daily travel.

[0003] Compared with the personnel load of ordinary buildings, the personnel load of underground stations is special. Since subway stations are underground, it is impossible to introduce fresh air through natural ventilation to improve the ambient air quality in subway stations. In addition, subway stations are crowded areas, so it is necessary to continuously introduce fresh air through air conditioning systems to meet the fresh air demand in subway stations. According to surveys, the energy consumption required to process fresh air in air conditioning projects accounts for 25% to 30% of the total energy consumption of air conditioning systems. Therefore, in order to reduce the energy consumption of subway station air conditioning systems to process fresh air, it is necessary to adjust according to the required fresh air volume indoors. When the subway station air conditioning system is running, the required fresh air volume in the subway station also changes hour by hour due to the hourly changes in the passenger flow of the subway station, so the fresh air load also changes hour by hour. Due to these characteristics and particularities of subway loads, it is particularly important to accurately calculate and predict the personnel load of subway stations. Summary of the invention

[0004] The purpose of the present invention is to improve and innovate the shortcomings and problems existing in the background technology, and to provide a subway station personnel load prediction method and system to predict the size of the subway station personnel load, better understand the subway load situation and provide energy consumption indicators for managers, which is helpful to make subway operation decisions.

[0005] According to a first aspect of the present invention, a method for predicting the passenger load of a subway station is provided, which specifically comprises:

[0006] Determine the input variables and output target vector of the GA-BP neural network model, where the output target vector is the subway station passenger load prediction;

[0007] Obtain sample data corresponding to the input variables of the GA-BP neural network model;

[0008] The particle swarm algorithm is used to optimize the weights and thresholds of the GA-BP neural network model;

[0009] The optimized weights and thresholds are assigned to the GA-BP neural network model, and the sample data corresponding to the input variables are input into the GA-BP neural network model to obtain the subway station personnel load prediction.

[0010] A further solution is that the input variables of the GA-BP neural network model include indoor temperature, outdoor temperature, indoor humidity, outdoor humidity and historical personnel load of the subway station; the historical personnel load of the subway station includes historical daily load, historical monthly load and historical annual load; the subway station personnel load prediction includes subway station personnel daily load prediction, subway station personnel monthly load prediction and subway station personnel annual load prediction.

[0011] A further solution is that the step of obtaining sample data corresponding to the input variables of the GA-BP neural network model specifically includes:

[0012] The indoor temperature, outdoor temperature, indoor humidity and outdoor humidity of the subway station are obtained through temperature and humidity sensors;

[0013] By formula Calculate the historical passenger load of the subway station;

[0014] in,

[0015]

[0016] N c is the number of people in the subway station hall, people; N p is the number of people on the subway station platform, people; A 1 、A 2 are the number of people entering and leaving the subway station, person / hour; a 1 、a 2 is the time that passengers stay in the station hall and on the platform respectively; b 1 、b 2 is the time passengers spend in the station hall and on the platform respectively; Q p is the historical personnel load of the subway station, kW; q p is the total heat dissipation of passengers, W / person.

[0017] A further solution is that the step of optimizing the weights and thresholds of the GA-BP neural network model using the particle swarm algorithm specifically includes:

[0018] Initialize particle solution set: Set particle solution set ,in and Respectively represent the weights and thresholds from the input layer to the hidden layer of the GA-BP neural network model, and Respectively represent the weights and thresholds from the hidden layer to the output layer of the GA-BP neural network model, Represents the number of hidden layers in the neural network; set the particle swarm size to s and the maximum number of evolutionary iterations to t max , each iteration for each particle x i Initialize the speed and position to obtain a set of weights and thresholds of the GA-BP neural network model corresponding to each particle solution set;

[0019] Calculate the initial fitness value: assign a set of weights and thresholds corresponding to the solution set of each particle to the GA-BP neural network model, and obtain the fitness value of each particle by calculating the inverse of the training error of the GA-BP neural network model. ;

[0020]

[0021] in, is the personnel load prediction value of the GA-BP neural network model corresponding to the jth sample data, is the actual personnel load value corresponding to the j-th sample data, is the total number of sample data of GA-BP neural network model;

[0022] Update particle velocity and position:

[0023] For each particle, its fitness value is compared with the best position p it has experienced in the previous t iterations. i The fitness value of (t) is compared, and the local optimal position of the particle is updated according to the following formula:

[0024]

[0025] in, is the fitness value corresponding to the t+1 generation of particles, is the fitness value corresponding to the best position experienced by the particle in the previous t iterations, among which the fitness value corresponding to the best position experienced by the particle in the previous t iterations is the smallest;

[0026] The global optimal position in the population is denoted as p g (t), p g (t)∈{p1(t),…,p s (t)}, and f(P g (t))=min{f(P1(t)),…,f(P s (t))}, then the global optimal position update formula is as follows:

[0027] ;

[0028] When f(p g (t))-f(p g (t+1))≤ε1, then output the current global optimal position p g (t), where ε1 is the maximum allowable error. If not, return to the initialization particle solution set.

[0029] A further solution is that the step outputs the current global optimal position p g (t) followed by:

[0030] Input a set of sample data corresponding to the input variables into the GA-BP neural network model to obtain the personnel load prediction value , ,… , represents the predicted value of personnel load corresponding to the Pth group of sample data;

[0031] The obtained personnel load forecast value , ,… The actual value of personnel load is , … Compare; determine whether it satisfies | - |<ε, ε is the preset error value; if so, the global optimal position p g The corresponding weights and thresholds of (t) meet the requirements, that is, they are the weights and thresholds corresponding to the GA-BP neural network model.

[0032] A further solution is that the step determines whether | - |<ε also includes:

[0033] If not, then at the global optimal position p g (t), iterative calculation is performed to update the weights and thresholds corresponding to the GA-BP neural network model;

[0034] in, ;

[0035] ;

[0036] ;

[0037] ;

[0038] ;

[0039] ;

[0040] in, , are the weights from the input layer to the hidden layer and the weights from the hidden layer to the output layer of the neural network obtained in the nth iteration, respectively. , are the thresholds from the input layer to the hidden layer and from the hidden layer to the output layer of the neural network obtained in the nth iteration, respectively. , are the weights from the input layer to the hidden layer and the weights from the hidden layer to the output layer of the neural network obtained in the n+1th iteration, respectively. , are the thresholds from the input layer to the hidden layer and from the hidden layer to the output layer of the neural network obtained in the n+1th iteration, respectively. The initial value of n is 0. , are the global optimal positions p g (t) The corresponding weights from the input layer to the hidden layer and from the hidden layer to the output layer of the neural network, , are the global optimal positions p g (t) corresponds to the threshold from the input layer to the hidden layer and the threshold from the hidden layer to the output layer of the neural network, where is the step size of the neural network model, where Indicates The error caused by the sample data is The value of is (1, 2, ..., P), is the total number of sample data of GA-BP neural network model, E 总 is the total error generated by all sample data, For the The personnel load prediction value of the GA-BP neural network model with weights and threshold values ​​obtained by inputting sample data into the nth iteration is For the The actual value of personnel load corresponding to the sample data.

[0041] According to a second aspect of the present invention, a subway station passenger load prediction system is provided, which specifically includes:

[0042] A determination module is used to determine the input variables and output target vector of the GA-BP neural network model, wherein the output target vector is the predicted value of the subway station personnel load;

[0043] An acquisition module is used to obtain sample data corresponding to the input variables of the GA-BP neural network model;

[0044] The optimization module is used to optimize the weights and thresholds of the GA-BP neural network model using the particle swarm algorithm;

[0045] The prediction module is used to assign the optimized weights and thresholds to the GA-BP neural network model, and input the sample data corresponding to the input variables into the GA-BP neural network model to obtain the predicted value of the subway station personnel load.

[0046] A further solution is that the optimization module specifically includes:

[0047] Initialize particle solution set: Set particle solution set ,in and Respectively represent the weights and thresholds from the input layer to the hidden layer of the GA-BP neural network model, and Respectively represent the weights and thresholds from the hidden layer to the output layer of the GA-BP neural network model, Represents the number of hidden layers in the neural network; set the particle swarm size to s and the maximum number of evolutionary iterations to t max , each iteration for each particle x i Initialize the speed and position to obtain a set of weights and thresholds of the GA-BP neural network model corresponding to each particle solution set;

[0048] Calculate the initial fitness value: assign a set of weights and thresholds corresponding to the solution set of each particle to the GA-BP neural network model, and obtain the fitness value of each particle by calculating the inverse of the training error of the GA-BP neural network model. ;

[0049]

[0050] in, is the personnel load prediction value of the GA-BP neural network model corresponding to the jth sample data, is the actual personnel load value corresponding to the j-th sample data, is the total number of sample data of GA-BP neural network model;

[0051] Update particle velocity and position:

[0052] For each particle, its fitness value is compared with the best position p it has experienced in the previous t iterations. i The fitness value of (t) is compared, and the local optimal position of the particle is updated according to the following formula:

[0053]

[0054] in, is the fitness value corresponding to the t+1 generation of particles, is the fitness value corresponding to the best position experienced by the particle in the previous t iterations, among which the fitness value corresponding to the best position experienced by the particle in the previous t iterations is the smallest;

[0055] The global optimal position in the population is denoted as p g (t), p g (t)∈{p1(t),…,p s (t)}, and f(P g (t))=min{f(P1(t)),…,f(P s (t))}, then the global optimal position update formula is as follows:

[0056] ;

[0057] When f(p g (t))-f(p g (t+1))≤ε1, then output the current global optimal position p g (t), where ε1 is the maximum allowable error. If not, return to the initialization particle solution set.

[0058] A further solution is that the optimization module further includes:

[0059] Confirmation unit, used to input a set of sample data corresponding to the input variables into the GA-BP neural network model to obtain the personnel load prediction value , ,… , represents the predicted value of personnel load corresponding to the Pth group of sample data;

[0060] The obtained personnel load forecast value , ,… The actual value of personnel load is , … Compare; determine whether it satisfies | - |<ε, ε is the preset error value; if so, the global optimal position p g The corresponding weights and thresholds of (t) meet the requirements, that is, they are the weights and thresholds corresponding to the GA-BP neural network model.

[0061] A further solution is that the confirmation unit further includes:

[0062] If not satisfied | - |<ε, then at the global optimal position p g(t), iterative calculation is performed to update the weights and thresholds corresponding to the GA-BP neural network model;

[0063] in, ;

[0064] ;

[0065] ;

[0066] ;

[0067] ;

[0068] ;

[0069] in, , are the weights from the input layer to the hidden layer and the weights from the hidden layer to the output layer of the neural network obtained in the nth iteration, respectively. , are the thresholds from the input layer to the hidden layer and from the hidden layer to the output layer of the neural network obtained in the nth iteration, respectively. , are the weights from the input layer to the hidden layer and the weights from the hidden layer to the output layer of the neural network obtained in the n+1th iteration, respectively. , are the thresholds from the input layer to the hidden layer and from the hidden layer to the output layer of the neural network obtained in the n+1th iteration, respectively. The initial value of n is 0. , are the global optimal positions p g (t) The corresponding weights from the input layer to the hidden layer and from the hidden layer to the output layer of the neural network, , are the global optimal positions p g (t) corresponds to the threshold from the input layer to the hidden layer and the threshold from the hidden layer to the output layer of the neural network, where is the step size of the neural network model, where Indicates The error caused by the sample data is The value of is (1, 2, ..., P), is the total number of sample data of GA-BP neural network model, E 总 is the total error generated by all sample data, For the The personnel load prediction value of the GA-BP neural network model with weights and threshold values ​​obtained by inputting sample data into the nth iteration is For the The actual value of personnel load corresponding to the sample data.

[0070] Compared with the prior art, the present invention has the following beneficial effects: the present invention provides a subway station personnel load prediction method, which provides a method for better understanding the characteristics of subway station air-conditioning load and analyzing subway station load characteristics; the present invention initializes a particle solution set, calculates the fitness value of the particle by the weight and threshold corresponding to the initialized particle solution set, compares the fitness value of the particle with the fitness value corresponding to the best position experienced in each iteration, thereby obtaining the local optimal position of the particle, further compares the local optimal position of each particle to obtain the global optimal position, assigns the weight and threshold corresponding to the global optimal position to the neural network model, thereby accurately predicting the subway station personnel load value; further, based on the global optimal position, iterative calculation is performed to update the weight and threshold corresponding to the GA-BP neural network model, until the difference between the predicted personnel load value and the actual personnel load value is less than the preset error value, thereby further improving the prediction effect, which is conducive to accurately predicting the subway station personnel load value, thereby better understanding the subway air-conditioning load situation. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only 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.

[0072] Figure 1 A schematic flow chart of a subway station passenger load prediction method provided by an embodiment of the present invention;

[0073] Figure 2 A schematic diagram of the structure of a subway station passenger load prediction system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0074] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0075] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be an intermediate element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be an intermediate element at the same time.

[0076] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0077] Example 1

[0078] See also Figure 1 The present invention provides a subway station personnel load prediction method, which specifically includes the following steps:

[0079] Step S1, determining the input variables and output target vector of the GA-BP neural network model, wherein the output target vector is the subway station personnel load prediction;

[0080] Step S2, obtaining sample data corresponding to the input variables of the GA-BP neural network model;

[0081] Step S3, using particle swarm algorithm to optimize the weights and thresholds of the GA-BP neural network model;

[0082] Step S4, inputting the sample data into the optimized GA-BP neural network model, and iteratively calculating the weights and thresholds according to whether the difference between the predicted value of the personnel load and the actual value of the personnel load meets the preset error value, until the difference between the predicted value of the personnel load and the actual value of the personnel load is less than the preset error value;

[0083] Step S5: assign the optimized weights and thresholds to the GA-BP neural network model, and input the sample data corresponding to the input variables into the GA-BP neural network model to obtain the subway station personnel load prediction.

[0084] Generally speaking, the factors that have the greatest impact on the subway station personnel load are temperature and humidity, so the indoor temperature, outdoor temperature, indoor humidity and outdoor humidity are used as input variables; in addition, the subway station historical personnel load is also used as an input variable, so the input variables of the GA-BP neural network model include indoor temperature, outdoor temperature, indoor humidity, outdoor humidity and subway station historical personnel load; the subway station historical personnel load includes historical daily load, historical monthly load and historical annual load; accordingly, the subway station personnel output target vector includes subway station personnel daily load prediction value, subway station personnel monthly load prediction value and subway station personnel annual load prediction value. When the input variables are indoor temperature, outdoor temperature, indoor humidity, outdoor humidity and historical daily load, the output target vector of the GA-BP neural network model is the subway station personnel daily load prediction value; when the input variables are indoor temperature, outdoor temperature, indoor humidity, outdoor humidity and historical monthly load, the output target vector of the GA-BP neural network model is the subway station personnel monthly load prediction value.

[0085] In order to obtain sample data corresponding to the input variables, the indoor temperature, outdoor temperature, indoor humidity and outdoor humidity of the subway station can be recorded through temperature and humidity sensors; through the formula Calculate the historical passenger load of the subway station;

[0086] in,

[0087] ;

[0088] N c is the number of people in the subway station hall, people; N p is the number of people on the subway station platform, people; A 1 、A 2 are the number of people entering and leaving the subway station, person / hour; a 1 、a 2 is the time that passengers stay in the station hall and on the platform respectively; b 1 、b 2 is the time passengers spend in the station hall and on the platform respectively; Q p is the historical personnel load of the subway station, kW; q pis the total heat dissipation of passengers, W / person. Among them, the number of people entering the gate with one-way tickets, the number of people entering the gate with stored-value tickets, and the number of people exiting the gate in a unit time period can be obtained through the interface of the automatic ticket vending and checking system, thereby obtaining the number of people entering and exiting the subway station. The personnel load of the subway station is calculated based on the labor intensity of "light labor", that is, the total heat dissipation is 182W / person at the indoor design temperature of the station hall of 30°C. The time that passengers stay in the station hall and platform after entering the station can be analyzed through big data analysis and the comprehensive monitoring system; in this embodiment, the time that passengers stay in the station hall and platform after entering the station is 2min; b 1 、b 2 are the time passengers stay in the station hall and platform when exiting the station, which is 1.5 min.

[0089] After obtaining the historical personnel load of the subway station within a unit time period, the historical personnel load values ​​of the subway station in each time period can be superimposed to calculate the historical daily load, historical monthly load and historical annual load of the subway station.

[0090] In this embodiment, the step S3 of optimizing the weights and thresholds of the GA-BP neural network model using the particle swarm algorithm specifically includes:

[0091] Step S31, initializing the particle solution set;

[0092] Specifically, set the particle solution set ,in and Respectively represent the weights and thresholds from the input layer to the hidden layer of the GA-BP neural network model, and Respectively represent the weights and thresholds from the hidden layer to the output layer of the GA-BP neural network model, Represents the number of hidden layers of the neural network;

[0093] Set the particle swarm size to s and the maximum number of evolutionary iterations to t max , each iteration for each particle x i Initialize the speed and position to obtain a set of weights and thresholds of the GA-BP neural network model corresponding to each particle solution set;

[0094] Step S32, calculating the initial fitness value;

[0095] Since the speed and position of each particle corresponds to a set of weights and thresholds, after the particle is initialized to obtain the speed and position of each particle, a set of weights and thresholds corresponding to the speed and position of each particle can be obtained. After obtaining a set of weights and thresholds, a set of weights and thresholds can be assigned to the GA-BP neural network model, and the fitness value of each particle can be obtained by further calculating the inverse of the training error of the GA-BP neural network model. ;

[0096]

[0097] in, is the personnel load prediction value of the GA-BP neural network model corresponding to the jth sample data, is the actual personnel load value corresponding to the j-th sample data, is the total number of sample data of GA-BP neural network model.

[0098] It should be noted that each sample data includes a set of indoor temperature, outdoor temperature, indoor humidity, outdoor humidity and actual load value, and the actual load value may be a historical daily load value, a historical monthly load value or a historical annual load value.

[0099] Step S33, updating particle speed and position;

[0100] For each particle, its fitness value is compared with the best position p it has experienced in the previous t iterations. i The fitness value of (t) is compared, and the local optimal position of the particle is updated according to the following formula:

[0101]

[0102] in, is the fitness value corresponding to the particle's t+1th iteration, It is the fitness value corresponding to the best position experienced by the particle in the previous t iterations, where the fitness value corresponding to the best position experienced by the particle in the previous t iterations is the smallest, thereby updating the local optimal position of each particle.

[0103] The global optimal position in the population is denoted as p g (t), p g (t)∈{p1(t),…,p s (t)}, and f(P g (t))=min{f(P1(t)),…,f(P s (t))}, then the global optimal position update formula is as follows:

[0104] ;

[0105] When f(p g (t))-f(p g (t+1))≤ε1, then output the current global optimal position p g (t), where ε1 is the maximum allowable error. If not, return to step S31 and continue to initialize the particle's velocity and position until the number of iterations reaches the maximum number of iterations t max .

[0106] In this embodiment, the step S4 inputs the sample data into the optimized GA-BP neural network model, and iteratively calculates the weights and thresholds according to whether the difference between the predicted value of the personnel load and the actual value of the personnel load meets the preset error value, until the difference between the predicted value of the personnel load and the actual value of the personnel load is less than the preset error value, specifically including:

[0107] Input a set of sample data corresponding to the input variables into the GA-BP neural network model to obtain the personnel load prediction value , ,… , represents the predicted value of personnel load corresponding to the Pth group of sample data;

[0108] The obtained personnel load forecast value , ,… The actual value of personnel load is , … Compare; determine whether it satisfies | - |<ε, ε is the preset error value; if so, the global optimal position p g (t) The corresponding weights and thresholds meet the requirements, that is, they are the optimal weights and thresholds corresponding to the GA-BP neural network model.

[0109] It should be noted that a set of sample data corresponding to the input variable is determined according to the output target vector. When the output target vector is the daily load forecast value, the actual load value in a sample data corresponding to the input variable is the historical daily load. Similarly, when the output target vector is the monthly load forecast value, the actual load value in a sample data corresponding to the input variable is the historical monthly load.

[0110] In addition, if you do not meet | - |<ε, then at the global optimal position p g (t), iterative calculation is performed to update the weights and thresholds corresponding to the GA-BP neural network model;

[0111] in, ;

[0112] ;

[0113] ;

[0114] ;

[0115] ;

[0116] ;

[0117] in, , are the weights from the input layer to the hidden layer and the weights from the hidden layer to the output layer of the neural network obtained in the nth iteration, respectively. , are the thresholds from the input layer to the hidden layer and from the hidden layer to the output layer of the neural network obtained in the nth iteration, respectively. , are the weights from the input layer to the hidden layer and the weights from the hidden layer to the output layer of the neural network obtained in the n+1th iteration, respectively. , are the thresholds from the input layer to the hidden layer and from the hidden layer to the output layer of the neural network obtained in the n+1th iteration, respectively. The initial value of n is 0. , are the global optimal positions p g (t) The corresponding weights from the input layer to the hidden layer and from the hidden layer to the output layer of the neural network, , are the global optimal positions p g (t) corresponds to the threshold from the input layer to the hidden layer and the threshold from the hidden layer to the output layer of the neural network, where is the step size of the neural network model, where Indicates The error caused by the sample data is The value of is 1, 2, ..., P, as mentioned above, is the total number of sample data of GA-BP neural network model, E 总 is the total error generated by all sample data, For the The personnel load prediction value of the GA-BP neural network model with weights and threshold values ​​obtained by inputting sample data into the nth iteration is For the The actual value of personnel load corresponding to the sample data.

[0118] Finally, the optimal weights and thresholds of the GA-BP neural network model are determined, and the globally optimal weights and thresholds are assigned to the neural network to obtain the optimal neural network model for personnel load prediction. If the personnel load value is to be predicted, the corresponding sample data can be directly input into the model, and the model can automatically output the predicted value of the subway station personnel load, thus realizing high-precision load prediction of the subway personnel load.

[0119] In summary, the present invention provides a method for predicting the personnel load of a subway station, and provides a method for better understanding the characteristics of the air-conditioning load of the subway station and analyzing the load characteristics of the subway station; the present invention initializes a particle solution set, calculates the fitness value of the particle by the weight and threshold corresponding to the initialized particle solution set, compares the fitness value of the particle with the fitness value corresponding to the best position experienced in each iteration, thereby obtaining the local optimal position of the particle, further compares the local optimal position of each particle to obtain the global optimal position, and assigns the weight and threshold corresponding to the global optimal position to the neural network model, thereby accurately predicting the personnel load value of the subway station; further, on the basis of the global optimal position, iterative calculation is performed to update the weight and threshold corresponding to the GA-BP neural network model, until the difference between the predicted personnel load value and the actual personnel load value is less than the preset error value, thereby further improving the prediction effect, which is conducive to accurately predicting the personnel load value of the subway station, thereby better understanding the situation of the subway air-conditioning load.

[0120] Example 2

[0121] See also Figure 2 The present invention provides a subway station personnel load prediction system, which specifically includes:

[0122] A determination module is used to determine the input variables and output target vector of the GA-BP neural network model, wherein the output target vector is the predicted value of the subway station personnel load;

[0123] An acquisition module is used to obtain sample data corresponding to the input variables of the GA-BP neural network model;

[0124] The optimization module is used to optimize the weights and thresholds of the GA-BP neural network model using the particle swarm algorithm;

[0125] The prediction module is used to assign the optimized weights and thresholds to the GA-BP neural network model, and input the sample data corresponding to the input variables into the GA-BP neural network model to obtain the predicted value of the subway station personnel load.

[0126] Optionally, the optimization module specifically includes:

[0127] Initialize particle solution set: Set particle solution set ,in and Respectively represent the weights and thresholds from the input layer to the hidden layer of the GA-BP neural network model, and Respectively represent the weights and thresholds from the hidden layer to the output layer of the GA-BP neural network model, Represents the number of hidden layers in the neural network; set the particle swarm size to s and the maximum number of evolutionary iterations to t max, each iteration for each particle x i Initialize the speed and position to obtain a set of weights and thresholds of the GA-BP neural network model corresponding to each particle solution set;

[0128] Calculate the initial fitness value: assign a set of weights and thresholds corresponding to the solution set of each particle to the GA-BP neural network model, and obtain the fitness value of each particle by calculating the inverse of the training error of the GA-BP neural network model. ;

[0129]

[0130] in, is the personnel load prediction value of the GA-BP neural network model corresponding to the jth sample data, is the actual personnel load value corresponding to the j-th sample data, is the total number of sample data of GA-BP neural network model;

[0131] Update particle velocity and position:

[0132] For each particle, its fitness value is compared with the best position p it has experienced in the previous t iterations. i The fitness value of (t) is compared, and the local optimal position of the particle is updated according to the following formula:

[0133]

[0134] in, is the fitness value corresponding to the t+1 generation of particles, is the fitness value corresponding to the best position experienced by the particle in the previous t iterations, among which the fitness value corresponding to the best position experienced by the particle in the previous t iterations is the smallest;

[0135] The global optimal position in the population is denoted as p g (t), p g (t)∈{p1(t),…,p s (t)}, and f(P g (t))=min{f(P1(t)),…,f(P s (t))}, then the global optimal position update formula is as follows:

[0136] ;

[0137] When f(p g (t))-f(p g (t+1))≤ε1, then output the current global optimal position p g (t), where ε1 is the maximum allowable error. If not, return to the initialization particle solution set.

[0138] Optionally, the optimization module further includes:

[0139] Confirmation unit, used to input a set of sample data corresponding to the input variables into the GA-BP neural network model to obtain the personnel load prediction value , ,… , represents the predicted value of personnel load corresponding to the Pth group of sample data;

[0140] The obtained personnel load forecast value , ,… The actual value of personnel load is , … Compare; determine whether it satisfies | - |<ε, ε is the preset error value; if so, the global optimal position p g The corresponding weights and thresholds of (t) meet the requirements, that is, they are the weights and thresholds corresponding to the GA-BP neural network model.

[0141] Optionally, the confirmation unit further includes:

[0142] If not satisfied | - |<ε, then at the global optimal position p g (t), iterative calculation is performed to update the weights and thresholds corresponding to the GA-BP neural network model;

[0143] in, ;

[0144] ;

[0145] ;

[0146] ;

[0147] ;

[0148] ;

[0149] in, , are the weights from the input layer to the hidden layer and the weights from the hidden layer to the output layer of the neural network obtained in the nth iteration, respectively. , are the thresholds from the input layer to the hidden layer and from the hidden layer to the output layer of the neural network obtained in the nth iteration, respectively. , are the weights from the input layer to the hidden layer and the weights from the hidden layer to the output layer of the neural network obtained in the n+1th iteration, respectively. , are the thresholds from the input layer to the hidden layer and from the hidden layer to the output layer of the neural network obtained in the n+1th iteration, respectively. The initial value of n is 0. , are the global optimal positions p g (t) The corresponding weights from the input layer to the hidden layer and from the hidden layer to the output layer of the neural network, , are the global optimal positions p g (t) corresponds to the threshold from the input layer to the hidden layer and the threshold from the hidden layer to the output layer of the neural network, where is the step size of the neural network model, where Indicates The error caused by the sample data is The value of is 1, 2, ..., P, is the total number of sample data of GA-BP neural network model, E 总 is the total error generated by all sample data, For the The personnel load prediction value of the GA-BP neural network model with weights and threshold values ​​obtained by inputting sample data into the nth iteration is For the The actual value of personnel load corresponding to the sample data.

[0150] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation to the invention.

[0151] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example.

[0152] Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Mentioning "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present embodiment application. The appearance of this phrase in various positions in the specification is not necessarily the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It can be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0153] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. A subway station personnel load prediction method, characterized in that: Specifically include: Determine the input variables and output target vector of the GA-BP neural network model, where the output target vector is the subway station passenger load prediction; Obtain sample data corresponding to the input variables of the GA-BP neural network model; The particle swarm algorithm is used to optimize the weights and thresholds of the GA-BP neural network model; The optimized weights and thresholds are assigned to the GA-BP neural network model, and the sample data corresponding to the input variables are input into the GA-BP neural network model to obtain the subway station personnel load prediction; The step of optimizing the weights and thresholds of the GA-BP neural network model using the particle swarm algorithm specifically includes: Initialize particle solution set: Set particle solution set ,in and Respectively represent the weights and thresholds from the input layer to the hidden layer of the GA-BP neural network model, and Respectively represent the weights and thresholds from the hidden layer to the output layer of the GA-BP neural network model, Represents the number of hidden layers in the neural network; set the particle swarm size to s and the maximum number of evolutionary iterations to t max , each iteration for each particle x i Initialize the speed and position to obtain a set of weights and thresholds of the GA-BP neural network model corresponding to each particle solution set; Calculate the initial fitness value: assign a set of weights and thresholds corresponding to the solution set of each particle to the GA-BP neural network model, and obtain the fitness value of each particle by calculating the inverse of the training error of the GA-BP neural network model. ; in, is the personnel load prediction value of the GA-BP neural network model corresponding to the jth sample data, is the actual personnel load value corresponding to the j-th sample data, is the total number of sample data of GA-BP neural network model; Update particle velocity and position: For each particle, its fitness value is compared with the best position p it has experienced in the previous t iterations. i The fitness value of (t) is compared, and the local optimal position of the particle is updated according to the following formula: in, is the fitness value corresponding to the t+1 generation of particles, is the fitness value corresponding to the best position experienced by the particle in the previous t iterations, among which the fitness value corresponding to the best position experienced by the particle in the previous t iterations is the smallest; The global optimal position in the population is denoted as p g (t), p g (t)∈{p1(t),…,p s (t)}, and f(P g (t))=min{f(P1(t)),…,f(P s (t))}, then the global optimal position update formula is as follows: ; When f(p g (t))-f(p g (t+1))≤ε1, then output the current global optimal position p g (t), where ε1 is the maximum allowable error. If not, return to the initialization particle solution set; Input a set of sample data corresponding to the input variables into the GA-BP neural network model to obtain the personnel load prediction value , ,… , represents the predicted value of personnel load corresponding to the Pth group of sample data; The obtained personnel load forecast value , ,… The actual value of personnel load is , … Compare; determine whether it satisfies | - |<ε, ε is the preset error value; if so, the global optimal position p g (t) The corresponding weights and thresholds meet the requirements, that is, the weights and thresholds corresponding to the GA-BP neural network model; The steps determine whether the | - |<ε also includes: If not, then at the global optimal position p g (t), iterative calculation is performed to update the weights and thresholds corresponding to the GA-BP neural network model; in, ; ; ; ; ; ; in, , are the weights from the input layer to the hidden layer and the weights from the hidden layer to the output layer of the neural network obtained in the nth iteration, respectively. , are the thresholds from the input layer to the hidden layer and from the hidden layer to the output layer of the neural network obtained in the nth iteration, respectively. , are the weights from the input layer to the hidden layer and the weights from the hidden layer to the output layer of the neural network obtained in the n+1th iteration, respectively. , are the thresholds from the input layer to the hidden layer and from the hidden layer to the output layer of the neural network obtained in the n+1th iteration, respectively. The initial value of n is 0. , are the global optimal positions p g (t) The corresponding weights from the input layer to the hidden layer and from the hidden layer to the output layer of the neural network, , are the global optimal positions p g (t) corresponds to the threshold from the input layer to the hidden layer and the threshold from the hidden layer to the output layer of the neural network, where is the step size of the neural network model, where Indicates The error caused by the sample data is The value of is 1, 2, ..., P, is the total number of sample data of GA-BP neural network model, is the total error generated by all sample data, For the The personnel load prediction value of the GA-BP neural network model with weights and threshold values ​​obtained by inputting sample data into the nth iteration is For the The actual value of personnel load corresponding to the sample data.

2. A subway station passenger load prediction method according to claim 1, characterized in that: The input variables of the GA-BP neural network model include indoor temperature, outdoor temperature, indoor humidity, outdoor humidity and historical personnel load of the subway station; the historical personnel load of the subway station includes historical daily load, historical monthly load and historical annual load; the subway station personnel load prediction includes subway station personnel daily load prediction, subway station personnel monthly load prediction and subway station personnel annual load prediction.

3. A subway station passenger load prediction method according to claim 2, characterized in that: The step of obtaining sample data corresponding to the input variables of the GA-BP neural network model specifically includes: The indoor temperature, outdoor temperature, indoor humidity and outdoor humidity of the subway station are obtained through temperature and humidity sensors; By formula Calculate the historical passenger load of the subway station; in, N c is the number of people in the subway station hall, people; N p is the number of people on the subway station platform, people; A 1 、A 2 are the number of people entering and leaving the subway station, person / hour; a 1 、a 2 is the time that passengers stay in the station hall and on the platform respectively; b 1 、b 2 is the time passengers spend in the station hall and on the platform respectively; Q p is the historical personnel load of the subway station, kW; q p is the total heat dissipation of passengers, W / person.

4. A subway station passenger load prediction system, characterized in that: Specifically include: A determination module is used to determine the input variables and output target vector of the GA-BP neural network model, wherein the output target vector is the predicted value of the subway station personnel load; An acquisition module is used to obtain sample data corresponding to the input variables of the GA-BP neural network model; The optimization module is used to optimize the weights and thresholds of the GA-BP neural network model using the particle swarm algorithm; The prediction module is used to assign the optimized weights and thresholds to the GA-BP neural network model, and input the sample data corresponding to the input variables into the GA-BP neural network model to obtain the predicted value of the subway station personnel load; The optimization module specifically includes: Initialize particle solution set: Set particle solution set ,in and Respectively represent the weights and thresholds from the input layer to the hidden layer of the GA-BP neural network model, and Respectively represent the weights and thresholds from the hidden layer to the output layer of the GA-BP neural network model, Represents the number of hidden layers in the neural network; set the particle swarm size to s and the maximum number of evolutionary iterations to t max , each iteration for each particle x i Initialize the speed and position to obtain a set of weights and thresholds of the GA-BP neural network model corresponding to each particle solution set; Calculate the initial fitness value: assign a set of weights and thresholds corresponding to the solution set of each particle to the GA-BP neural network model, and obtain the fitness value of each particle by calculating the inverse of the training error of the GA-BP neural network model. ; in, is the personnel load prediction value of the GA-BP neural network model corresponding to the jth sample data, is the actual personnel load value corresponding to the j-th sample data, is the total number of sample data of GA-BP neural network model; Update particle velocity and position: For each particle, its fitness value is compared with the best position p it has experienced in the previous t iterations. i The fitness value of (t) is compared, and the local optimal position of the particle is updated according to the following formula: in, is the fitness value corresponding to the t+1 generation of particles, is the fitness value corresponding to the best position experienced by the particle in the previous t iterations, among which the fitness value corresponding to the best position experienced by the particle in the previous t iterations is the smallest; The global optimal position in the population is denoted as p g (t), p g (t)∈{p1(t),…,p s (t)}, and f(P g (t))=min{f(P1(t)),…,f(P s (t))}, then the global optimal position update formula is as follows: ; When f(p g (t))-f(p g (t+1))≤ε1, then output the current global optimal position p g (t), where ε1 is the maximum allowable error. If not, return to the initialization particle solution set; and, a confirmation unit, for inputting a set of sample data corresponding to the input variables into the GA-BP neural network model to obtain a personnel load prediction value , ,… , represents the predicted value of personnel load corresponding to the Pth group of sample data; The obtained personnel load forecast value , ,… The actual value of personnel load is , … Compare; determine whether it satisfies | - |<ε, ε is the preset error value; if so, the global optimal position p g (t) The corresponding weights and thresholds meet the requirements, that is, the weights and thresholds corresponding to the GA-BP neural network model; The confirmation unit also includes: If not satisfied | - |<ε, then at the global optimal position p g (t), iterative calculation is performed to update the weights and thresholds corresponding to the GA-BP neural network model; in, ; ; ; ; ; ; in, , are the weights from the input layer to the hidden layer and the weights from the hidden layer to the output layer of the neural network obtained in the nth iteration, respectively. , are the thresholds from the input layer to the hidden layer and from the hidden layer to the output layer of the neural network obtained in the nth iteration, respectively. , are the weights from the input layer to the hidden layer and the weights from the hidden layer to the output layer of the neural network obtained in the n+1th iteration, respectively. , are the thresholds from the input layer to the hidden layer and from the hidden layer to the output layer of the neural network obtained in the n+1th iteration, respectively. The initial value of n is 0. , are the global optimal positions p g (t) The corresponding weights from the input layer to the hidden layer and from the hidden layer to the output layer of the neural network, , are the global optimal positions p g (t) corresponds to the threshold from the input layer to the hidden layer and the threshold from the hidden layer to the output layer of the neural network, where is the step size of the neural network model, where Indicates The error caused by the sample data is The value of is 1, 2, ..., P, is the total number of sample data of GA-BP neural network model, is the total error generated by all sample data, For the The personnel load prediction value of the GA-BP neural network model with weights and threshold values ​​obtained by inputting sample data into the nth iteration is For the The actual value of personnel load corresponding to the sample data.