Passenger flow state identification method and device, electronic equipment and storage medium
By analyzing the number of vehicle trajectories and spatial interaction models between the commercial body area and the space area to be processed, comparing the actual and theoretical visitor flow, the problem of low accuracy in the judgment of passenger flow competition in the existing technology is solved, and the commercial integration is achieved Accurate identification of the passenger flow status of the body.
Patent Information
- Application Number
- CN202310516301.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-08
- Publication Date
- 2024-11-08
AI Technical Summary
In the prior art, it is relatively accurate to judge the passenger flow competition situation of multiple commercial complexes for the same spatial area, and the error is large due to relying on subjective experience.
The actual visitor flow is determined based on the number of vehicle trajectories between the commercial body area and the pending space area in the historical time period, and the theoretical visitor flow is estimated using the spatial interaction model to compare the actual and theoretical flows to determine the passenger flow competition status.
The accuracy of judging the passenger flow competition situation of commercial complexes is improved, and a passenger flow state recognition method and device is provided, which can intuitively and accurately obtain the passenger flow competition status of the commercial complex area for the same spatial area.
Smart Images

Figure CN118918524A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a passenger flow status identification method, device, electronic device and storage medium. Background Art
[0002] A commercial complex is a combination of three or more functions of urban living space, such as commerce, office, residence, hotel, exhibition, catering, conference, and entertainment, and establishes a dynamic relationship of mutual dependence and mutual benefit between the parts, thus forming a multifunctional, efficient, complex and unified complex. With the continuous development of the economy, more and more commercial complexes have been opened.
[0003] As the number of commercial complexes increases, different commercial complexes compete for the passenger flow in the same space area. However, currently, the competition between multiple commercial complexes for the passenger flow in the same space area is usually judged only by subjective experience, which is less accurate. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device and storage medium for identifying passenger flow status, which can improve the problem of low accuracy in judging the competition situation of multiple commercial complexes for passenger flow in the same spatial area in the prior art.
[0005] The present application provides a method for identifying passenger flow status, the method comprising:
[0006] Based on the number of vehicle trajectories between each of the commercial area and the space area to be processed in the historical time period, determine the actual visitor flow from the space area to be processed to each of the commercial area;
[0007] Based on the spatial interaction processing process, determining the theoretical visitor flow of the spatial area to be processed to each of the commercial area within the historical time period;
[0008] Based on the first actual visitor flow and the first theoretical visitor flow from the space area to be processed to the first commercial area, and the second actual visitor flow and the second theoretical visitor flow from the space area to be processed to the second commercial area, the passenger flow competition status between the first commercial area and the second commercial area in the space area to be processed is determined; wherein, the first commercial area and the second commercial area are any two commercial areas among the multiple commercial areas.
[0009] The present application also provides a passenger flow status recognition device, the device comprising:
[0010] An actual visit unit, used to determine the actual visitor flow from the to-be-processed spatial area to each of the commercial area based on the number of vehicle trajectories between each of the commercial area and the to-be-processed spatial area in a historical time period;
[0011] A theoretical visitor unit, used for determining the theoretical visitor flow of the spatial area to be processed to visit each of the commercial area within the historical time period based on the spatial interaction processing process;
[0012] A competition status determination unit is used to determine the passenger flow competition status of the first commercial area and the second commercial area in the space area to be processed based on a first actual visitor flow and a first theoretical visitor flow from the space area to be processed to the first commercial area, and a second actual visitor flow and a second theoretical visitor flow from the space area to be processed to the second commercial area; wherein the first commercial area and the second commercial area are any two commercial areas among the multiple commercial areas.
[0013] In one implementation, the actual visit unit includes:
[0014] The departure quantity subunit is used to obtain the number of return vehicle trajectories within the historical time period, with the starting point being the first commercial area and the end point being the space area to be processed;
[0015] The return quantity subunit is used to obtain the number of departure vehicle trajectories with the starting point being the to-be-processed space area and the end point being the first commercial area within the historical time period;
[0016] The summing subunit is used to calculate the sum of the number of return vehicle trajectories and the number of departure vehicle trajectories, wherein the sum is the actual visitor flow from the space area to be processed to the first commercial area.
[0017] In one embodiment, the spatial interaction processing occurs in a spatial interaction model; accordingly, the theoretical visit unit includes:
[0018] A formula construction subunit is used to construct a calculation formula for theoretical visitor flow from the to-be-processed space area to the first commercial area based on the spatial interaction model, wherein the calculation formula includes at least one unknown parameter;
[0019] a parameter estimation subunit, configured to estimate a parameter estimation value of the at least one unknown parameter;
[0020] A parameter replacement subunit, used to replace the corresponding unknown parameters in the calculation formula with the parameter estimation value;
[0021] The theoretical flow subunit is used to calculate the theoretical visitor flow from the space area to be processed to the first commercial area based on an operation formula with parameter estimation values.
[0022] In one embodiment, the spatial interaction model is a gravity model; accordingly, the formula construction subunit is specifically used to construct the operation formula based on the number of vehicle trajectories whose starting point is the spatial area to be processed, the number of vehicle trajectories whose end point is the first commercial body area, and the spatial distance between the spatial area to be processed and the first commercial body area; wherein the exponential value of the spatial distance is the unknown parameter.
[0023] In one embodiment, the parameter estimation subunit is specifically configured to:
[0024] Let the first actual visitor flow rate be equal to the first theoretical visitor flow rate, and construct an equation including the unknown parameters;
[0025] Performing a logarithmic operation on the equation to obtain a linear equation containing the unknown parameter;
[0026] Fitting values of the unknown parameters in the linear equation are obtained, wherein the fitting values are the estimated values of the parameters.
[0027] In one embodiment, the spatial interaction model is a destination competition model; the formula construction subunit is specifically used to construct the operation formula based on the number of vehicle trajectories whose starting point is the spatial area to be processed, the number of vehicle trajectories whose end point is the first commercial body area, the spatial distance between the spatial area to be processed and the first commercial body area, and the accessibility variable of the first commercial body area; wherein the first index value of the number of vehicle trajectories whose end point is the first commercial body area, the second index value of the spatial distance, and the third index value of the accessibility variable are all the unknown parameters.
[0028] In one embodiment, the parameter estimation subunit is specifically used to make the first actual visitor flow equal to the first theoretical visitor flow, construct an equation including the first index value, the second index value and the third index value; perform logarithm operation on the equation to obtain a nonlinear equation including the first index value, the second index value and the third index value; use a heuristic algorithm to perform parameter estimation on the first index value, the second index value and the third index value to obtain a first parameter estimation value, a second parameter estimation value and a third parameter estimation value.
[0029] In one embodiment, the device further comprises:
[0030] The variable calculation unit is used to calculate the accessibility variable of the first commercial area.
[0031] In one embodiment, the variable calculation unit is specifically used to calculate the accessibility variable based on the spatial distance between each of the to-be-processed spatial areas and the first commercial area, and the number of vehicle trajectories corresponding to each of the to-be-processed spatial areas as a starting point.
[0032] In one embodiment, the competition status determination unit is specifically used to determine the passenger flow competition status based on the relationship between the first actual visitor flow and the first theoretical visitor flow, the relationship between the second actual visitor flow and the second theoretical visitor flow, and the relationship between the first actual visitor flow and the second actual visitor flow.
[0033] In one embodiment, the competition status determination unit is specifically used to: if the first actual visitor flow is not less than the first theoretical visitor flow, and the second actual visitor flow is not less than the second theoretical visitor flow, it means that the area to which the first commercial body area and the second commercial body area belong is a strong area; if the first actual visitor flow is not less than the first theoretical visitor flow, and the second actual visitor flow is less than the second theoretical visitor flow, it means that the area to which the first commercial body area and the second commercial body area belong is a strong area of the first commercial body; if the first actual visitor flow is less than the first theoretical visitor flow, and the second actual visitor flow is not less than the second theoretical visitor flow, it means that the area to which the first commercial body area and the second commercial body area belong is a strong area of the second commercial body; if the first actual visitor flow is less than the first theoretical visitor flow, and the second actual visitor flow is less than the second theoretical visitor flow, it means that the area to which the first commercial body area and the second commercial body area belong is a disadvantaged area.
[0034] In the passenger flow state identification method provided in the embodiment of the present application, the actual visitor flow from the to-be-processed space area to each commercial area can be determined based on the number of vehicle trajectories between each commercial area and the to-be-processed space area in the historical time period. Then, based on the spatial interaction processing process, the theoretical visitor flow from the to-be-processed space area to each commercial area in the historical time period is determined. Subsequently, for any two commercial areas selected from the multiple commercial areas: the first commercial area and the second commercial area, the passenger flow competition state of the above two commercial areas for the to-be-processed space area can be determined based on the first actual visitor flow and the first theoretical visitor flow from the to-be-processed space area to the first commercial area, and the second actual visitor flow and the second theoretical visitor flow from the to-be-processed space area to the second commercial area.
[0035] In the embodiment of the present application, the actual visitor flow and theoretical visitor flow of the space area to be processed to each commercial area in the historical time period can be determined respectively, and then two commercial areas are arbitrarily selected from the multiple commercial areas: the first commercial area and the second commercial area, and based on the first actual visitor flow, the first theoretical visitor flow, the second actual visitor flow, and the second theoretical visitor flow, the passenger flow competition status of the above two commercial areas for the space area to be processed is determined. The embodiment of the present application can intuitively and accurately obtain the passenger flow competition status of the commercial area for the same space area based on the comparison of the actual visitor flow and the theoretical visitor flow, and the comparison of different actual visitor flows, thereby improving the problem of low accuracy in the prior art of relying on subjective experience to judge the passenger flow competition situation of multiple commercial complexes for the same space area. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0037] Figure 1a It is a schematic diagram of a use scenario of the passenger flow status identification method provided in an embodiment of the present application;
[0038] Figure 1b It is a flow chart of a passenger flow status identification method provided in an embodiment of the present application;
[0039] Figure 2 is a flow chart of a passenger flow status identification method provided by another embodiment of the present application;
[0040] Figure 3 This is a structural schematic diagram of a passenger flow status identification device provided in an embodiment of the present application;
[0041] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0043] Embodiments of the present application provide a passenger flow status identification method, device, electronic device, and storage medium.
[0044] The passenger flow state recognition device can be integrated into an electronic device, which can be a terminal, a server, or other devices. The terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, or a personal computer (PC), or a smart device with computing functions. The server can be a single server or a server cluster composed of multiple servers.
[0045] In some embodiments, the passenger flow status identification device may also be integrated into multiple electronic devices. For example, the passenger flow status identification device may be integrated into multiple servers, and the passenger flow status identification method of the present application may be implemented by multiple servers.
[0046] In some embodiments, the server may also be implemented in the form of a terminal.
[0047] For more information, please see Figure 1a The method provided in the embodiment of the present application includes: determining the actual visitor flow from the spatial area to be processed to each of the commercial area based on the number of vehicle trajectories between each of the multiple commercial area and the spatial area to be processed in a historical time period; determining the theoretical visitor flow from the spatial area to be processed to each of the commercial area in the historical time period based on the spatial interaction processing process; determining the passenger flow competition state between the first commercial area and the second commercial area in the spatial area to be processed based on the first actual visitor flow and the first theoretical visitor flow from the spatial area to be processed to the first commercial area, and the second actual visitor flow and the second theoretical visitor flow from the spatial area to be processed to the second commercial area; wherein the first commercial area and the second commercial area are any two commercial areas among the multiple commercial areas.
[0048] The above method can intuitively and accurately obtain the passenger flow competition status of the commercial areas for the same spatial area based on the comparison of the actual visitor flow of the two commercial areas with the theoretical visitor flow, and the comparison of the actual visitor flow of the two commercial areas.
[0049] It is understandable that in the embodiments of the present application, when user information such as vehicle trajectory and other related data are involved, when the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0050] It should be noted that the serial numbers of the following embodiments are not intended to limit the preferred order of the embodiments.
[0051] In this embodiment, a passenger flow status recognition method is provided. Figure 1b As shown, the passenger flow state recognition method is applied to an electronic device, and the specific process of the method may include the following steps 110 to 130:
[0052] 110. Based on the number of vehicle trajectories between each of the multiple commercial areas and the space area to be processed in a historical time period, determine the actual visitor flow from the space area to be processed to each of the commercial areas.
[0053] The historical time period is a pre-set time period earlier than the execution time of step 110. The specific time length of the time period can be several hours, such as two hours from 3 pm to 5 pm, or 7 days or 30 days. It should be understood that the specific time length value of the historical time period should not be understood as a limitation to the present application.
[0054] The commercial area is the spatial location area where the commercial complex is located. The above-mentioned spatial location area can be represented by the commercial body outline. For example, it is better to use (id 商 ,boundary 商 ) represents the commercial outline of the commercial area. 商 Indicates the unique identifier of the commercial area. 商 A coordinate string representing the outline of the commercial area. The coordinate string can be formed by a plurality of directional continuous or discontinuous coordinate points.
[0055] The space area to be processed is the space area where the consumer user stays before going to the commercial area or after visiting the commercial area. The space area to be processed can be a space entity such as a school, a hospital, a residence or a block. The space area to be processed can be represented by a space outline. For example, let (id 空 ,boundary 空 ) represents the spatial contour of the spatial area to be processed. 空 Indicates the unique identifier of the spatial area to be processed, boundary 空 The coordinate string representing the outline of the space region to be processed can also be formed by a plurality of directional continuous or discontinuous coordinate points.
[0056] A spatial index can be constructed for the above commercial body outline and space outline. Taking a commercial body area as an example, a minimum bounding rectangle can be created for the commercial body area, and the point coordinate values of the minimum bounding rectangle can be recorded, and the point coordinate values can be bound to the identity of the commercial body area. After that, the above commercial body area can be found by searching for the point coordinate values.
[0057] The vehicle trajectory is a trace that reflects the vehicle's driving route. The vehicle trajectory can be expressed as (id 车 ,trace 车 ) to represent. Among them, id 车 Indicates the unique identifier of the vehicle, trace 车 Represents the space-time point of the vehicle.
[0058] Optionally, trace 车 It can be represented by a triple of (x, y, time), where x is the longitude information of the vehicle, y is the latitude information of the vehicle, and time is the timestamp corresponding to the longitude and latitude information.
[0059] Optionally, in a specific implementation, step 110 may specifically include the following steps 111 to 113:
[0060] 111. Obtain the number of return vehicle trajectories within the historical time period, with the starting point being the first commercial area and the end point being the space area to be processed.
[0061] The first commercial entity area is any one of the multiple commercial entity areas.
[0062] If the starting point of the vehicle trajectory is located within the commercial body outline of the first commercial body area, it can be determined that the starting point of the vehicle trajectory is the first commercial body area; if the arrival point of the vehicle trajectory is located within the spatial outline of the space area to be processed, it can be determined that the end point of the vehicle trajectory is the space area to be processed. Specifically, it can be judged based on the positional relationship between the coordinate value of the starting point and the point coordinate value of the commercial body outline of the first commercial body area: whether the starting point is located within the commercial body outline of the first commercial body area. For example, if the distance between the coordinate value of the starting point and the point coordinate value of the commercial body outline is less than the preset distance value, it is determined that the starting point is located within the commercial body outline of the first commercial body area; otherwise, it is determined that the starting point is not located within the commercial body outline of the first commercial body area.
[0063] If the starting point of a vehicle trajectory is the first commercial area and the end point is the space area to be processed, the vehicle trajectory can be determined to be a return vehicle trajectory between the first commercial area and the space area to be processed. The number of all return vehicle trajectories between the first commercial area and the space area to be processed in the historical time period can be counted and recorded as the number of return vehicle trajectories.
[0064] 112. Obtain the number of departure vehicle trajectories within the historical time period, with the starting point being the to-be-processed spatial area and the end point being the first commercial area.
[0065] If the starting point of the vehicle trajectory is located within the spatial contour of the spatial area to be processed, it can be determined that the starting point of the vehicle trajectory is the spatial area to be processed; if the arrival point of the vehicle trajectory is located within the commercial body contour of the first commercial body area, it can be determined that the end point of the vehicle trajectory is the first commercial body area.
[0066] If the starting point of a vehicle trajectory is the space area to be processed and the end point is the first commercial area, the vehicle trajectory can be determined as a departure vehicle trajectory between the space area to be processed and the first commercial area. The number of all departure vehicle trajectories between the space area to be processed and the first commercial area in the historical time period can be counted and recorded as the number of departure vehicle trajectories.
[0067] 113. Calculate the sum of the number of the departure vehicle trajectories and the number of the return vehicle trajectories, wherein the sum is the actual visitor flow from the to-be-processed space area to the first commercial area.
[0068] The sum of the number of departure vehicle trajectories and the number of return vehicle trajectories is obtained, and the sum is recorded as the actual visitor flow from the to-be-processed spatial area to the first commercial area during the historical time period.
[0069] In the above implementation, by limiting the historical time length and counting the number of vehicle trajectories between the two places within the historical time length, the actual visitor flow from the spatial area to be processed to the first commercial area can be reflected, thereby improving the credibility of the data.
[0070] Optionally, in a specific implementation, the actual visitor flow of each of the multiple space areas to be processed visiting each of the multiple commercial areas can be recorded in the form of an actual visit matrix.
[0071] For example, let's assume that the number of space areas to be processed is N, and the number of commercial areas is M. Then each of the N space areas to be processed corresponds to the data of actual visitor traffic visiting the M commercial areas, thereby forming an actual visit matrix RealMatrix with N rows and M columns.
[0072] 120. Based on the spatial interaction processing process, determine the theoretical visitor flow of the to-be-processed spatial area to each of the commercial area within the historical time period.
[0073] Spatial interaction is the continuous exchange of matter, energy, personnel and information between spaces. The spatial interaction processing process can be specifically implemented through the Spatial Interaction Model (SIM). The Spatial Interaction Model is a model for analyzing and simulating various types of flow data.
[0074] Optionally, in one implementation, step 120 may specifically include the following steps 121 to 124:
[0075] 121. Based on the spatial interaction model, construct an operation formula for the theoretical visitor flow from the to-be-processed spatial area to the first commercial area, wherein the operation formula includes at least one unknown parameter.
[0076] The calculation formulas constructed by different spatial interaction models are different, and accordingly, the unknown parameters included in the calculation formulas are also different.
[0077] 122. Estimate a parameter estimate of the at least one unknown parameter.
[0078] 123. Use the estimated parameter value to replace the corresponding unknown parameter in the calculation formula.
[0079] 124. Calculate theoretical visitor flow from the to-be-processed space area to the first commercial area based on a calculation formula with parameter estimation values.
[0080] In the above implementation, for the operation formula with unknown parameters, the parameter estimation value corresponding to the unknown parameter can be estimated, and then the parameter estimation value is substituted into the operation formula to replace the original unknown parameter, so that the operation formula with all parameters known can be obtained, and then the operation formula is used to calculate the theoretical visitor flow from the space area to be processed to the first commercial area. The calculation accuracy of the theoretical visitor flow can be improved by constructing an operation formula with unknown parameters using the spatial interaction model, and then estimating the value of the unknown parameter and using the operation formula to calculate the theoretical visitor flow.
[0081] Optionally, in a specific implementation, the spatial interaction model is a gravity model (Gravity Model, GM for short); accordingly, step 121 may specifically include:
[0082] The calculation formula is constructed based on the number of vehicle trajectories whose starting point is the spatial area to be processed, the number of vehicle trajectories whose end point is the first commercial area, and the spatial distance between the spatial area to be processed and the first commercial area; wherein the exponential value of the spatial distance is the unknown parameter.
[0083] Optionally, the calculation formula constructed based on the gravity model can be:
[0084]
[0085] Wherein, TheoryMatrix[i][j] represents: the theoretical visitor flow from the ith spatial area to be processed to the jth commercial area during the historical time period. There are N spatial areas to be processed, and the ith spatial area to be processed is any one of the N spatial areas to be processed, which may be recorded as the above-mentioned spatial area to be processed; there are M commercial areas, and the jth commercial area is any one of the M commercial areas, which may be recorded as the above-mentioned first commercial area. Wherein, N and M are both positive integers, and the specific values of N and M should not be understood as limitations on the present application.
[0086] O i is the number of vehicle trajectories starting from the i-th spatial region to be processed. j is the number of vehicle trajectories whose end point is the j-th commercial area. is d ij λ to the power of d ij is the spatial distance from the i-th spatial area to be processed to the j-th commercial area; wherein, the spatial distance can be calculated using the straight-line distance from the geometric center of the i-th spatial area to be processed to the geometric center of the j-th commercial area; or the route distance between the i-th spatial area to be processed and the j-th commercial area can be obtained using an electronic map for calculation. It should be understood that the specific calculation method of the spatial distance should not be understood as a limitation of the present application. The exponential value λ of the spatial distance is an unknown parameter of the above calculation formula.
[0087] Step 122 may specifically include:
[0088] The first actual visitor flow is set equal to the first theoretical visitor flow, and an equation containing the unknown parameters is constructed; a logarithmic operation is performed on the equation to obtain a linear equation containing the unknown parameters; and a fitting value of the unknown parameter in the linear equation is fitted, wherein the fitting value is the parameter estimation value.
[0089] Assuming that the first actual visitor flow is equal to the first theoretical visitor flow, we can get:
[0090]
[0091] Among them, RealMatrix[i][j] represents: the actual visitor flow from the i-th processed space area to the j-th commercial area during the historical time period.
[0092] Taking logarithm operation on both sides of equation (2), we can get the following equation:
[0093]
[0094] For formula (3), lnRealMatrix[i][j], lnO i 、lnD j and lnd ij are all known quantities, and λ is an unknown quantity, so equation (3) can be transformed into the form of a linear equation:
[0095] lO i +lnD j -lnRealMatrix[i][j]=λlnd ij (4)
[0096] In formula (4), the dependent variable is lnO i +lnD j -lnRealMatrix[i][j], the independent variable is lnd ij .
[0097] The least square method can be used to fit the value of λ in equation (4). After obtaining the fitted value of λ, the fitted value can be substituted into equation (1) to realize the calculation of TheoryMatrix[i][j].
[0098] Optionally, in another specific implementation, the spatial interaction model is a Competing Destinations Model (CDM for short); accordingly, step 121 may specifically include:
[0099] The calculation formula is constructed based on the number of vehicle trajectories whose starting point is the spatial area to be processed, the number of vehicle trajectories whose end point is the first commercial body area, the spatial distance between the spatial area to be processed and the first commercial body area, and the accessibility variable of the first commercial body area; wherein the first exponential value of the number of vehicle trajectories whose end point is the first commercial body area, the second exponential value of the spatial distance, and the third exponential value of the accessibility variable are all the unknown parameters.
[0100] Optionally, the calculation formula constructed based on the destination competition model can be:
[0101]
[0102] Among them, TheoryMatrix[i][j], O i , D j d ij The meaning is the same as that in the above text and will not be elaborated here.
[0103] In formula (5), Z i The expression is:
[0104] A in formula (5) and formula (6) j is: the accessibility variable of the first commercial area. The calculation method of the accessibility variable will be described in detail below.
[0105] In formula (5), the unknown parameters include: a first exponential value α of the number of vehicle trajectories whose end point is the first commercial area, a second exponential value β of the spatial distance, and a third exponential value γ of the accessibility variable.
[0106] Optionally, before the above steps, the embodiment of the present application may further include the following steps: calculating the accessibility variable of the first commercial area.
[0107] The specific process of calculating the reachability variable includes:
[0108] The accessibility variable is calculated based on the spatial distance between each of the first number of spatial areas to be processed and the first commercial area, and the number of vehicle trajectories corresponding to each of the spatial areas to be processed as a starting point.
[0109] The reachability variable is calculated according to the following formula:
[0110]
[0111] Among them, the first number is N, is the sum of the number of vehicle trajectories corresponding to each of the first number of spatial regions to be processed as a starting point, It is the sum of the spatial distances between each of the first number of spatial areas to be processed and the first commercial area. λ is the scaling factor of the gravity model. Its calculation process is the same as the calculation process of the exponential value λ of the spatial distance described above, and will not be repeated here.
[0112] Step 122 may specifically include:
[0113] The first actual visitor flow is set equal to the first theoretical visitor flow, and an equation including the first index value, the second index value and the third index value is constructed; a logarithm operation is performed on the equation to obtain a nonlinear equation including the first index value, the second index value and the third index value; a heuristic algorithm is used to perform parameter estimation on the first index value, the second index value and the third index value to obtain a first parameter estimation value, a second parameter estimation value and a third parameter estimation value.
[0114] Assuming that the first actual visitor flow is equal to the first theoretical visitor flow, we can get:
[0115]
[0116] Taking logarithm operation on both sides of equation (8), we can get the following equation:
[0117] ln RealMatrix[i][j]=ln TheoryMatrix[i][j]=ln Z i +ln O i +aln D j +βln d ij +γln A j (9)
[0118] Substituting formula (6) into formula (9), we can get:
[0119]
[0120] Heuristic algorithms include gradient descent, Newton-Raphso, simulated annealing, particle swarm algorithm, etc. For ease of description, we take the gradient descent method as an example to estimate the first exponent value α, the second exponent value β, and the third exponent value γ. The specific process is as follows:
[0121] 1). Define the loss function.
[0122] The mean square error can be used as the loss function:
[0123]
[0124] 2). Calculate the gradient of the unknown parameters to the loss function.
[0125] 3). Initialization parameters: Set an initial value for each parameter, usually a small value can be randomly initialized, such as 0.1 for α, 0.2 for β, and 0.3 for γ.
[0126] 4) It is necessary to update the value of each parameter according to the rules of the gradient descent algorithm to minimize the loss function. The basic idea of the gradient descent algorithm is to start from the initial value of the parameter and gradually move towards the minimum value of the loss function until the minimum value is reached. Each time a parameter is updated, the change in the parameter needs to be calculated by multiplying the learning rate by the gradient value.
[0127] You can choose an appropriate learning rate, such as 0.01, and then update each parameter according to the following rules:
[0128]
[0129]
[0130]
[0131] The above step 4) is repeated until the value of the loss function converges or the preset number of iterations is reached.
[0132] By executing the above steps, the estimation of the three unknown parameters of equation (10): the first exponent value α, the second exponent value β, and the third exponent value γ can be achieved.
[0133] After the estimation is completed, the first parameter estimation value, the second parameter estimation value and the third parameter estimation value can be substituted into equation (8) to realize the calculation of TheoryMatrix[i][j].
[0134] In addition to the gravity model and the destination competition model mentioned above, the spatial interaction model may also be a Huff model. It should be understood that the specific model type of the spatial interaction model should not be considered as a limitation to the present application.
[0135] By executing the above calculation process multiple times, the data of theoretical visitor flow to M commercial areas corresponding to each of the N to-be-processed spatial areas can be obtained, thereby forming a theoretical visit matrix TheoryMatrix with N rows and M columns.
[0136] 130. Determine the passenger flow competition status between the first commercial area and the second commercial area in the space area to be processed based on the first actual visitor flow and the first theoretical visitor flow from the space area to be processed to the first commercial area, and the second actual visitor flow and the second theoretical visitor flow from the space area to be processed to the second commercial area; wherein the first commercial area and the second commercial area are any two commercial areas among the multiple commercial areas.
[0137] The second commercial area is any commercial area among the multiple commercial areas except the first commercial area. Optionally, in a specific implementation, the above steps may specifically include:
[0138] The passenger flow competition state is determined based on the relationship between the first actual visitor flow and the first theoretical visitor flow, the relationship between the second actual visitor flow and the second theoretical visitor flow, and the relationship between the first actual visitor flow and the second actual visitor flow.
[0139] Optionally, determining the passenger flow competition state based on the magnitude relationship between the first actual visitor flow and the first theoretical visitor flow and the magnitude relationship between the second actual visitor flow and the second theoretical visitor flow specifically includes:
[0140] If the first actual visitor flow is not less than the first theoretical visitor flow, and the second actual visitor flow is not less than the second theoretical visitor flow, it means that the area to which the first commercial area and the second commercial area belong is a strong area;
[0141] If the first actual visitor flow is not less than the first theoretical visitor flow, and the second actual visitor flow is less than the second theoretical visitor flow, it means that the area to which the first commercial entity area and the second commercial entity area belong is a strong area of the first commercial entity;
[0142] If the first actual visitor flow is less than the first theoretical visitor flow, and the second actual visitor flow is not less than the second theoretical visitor flow, it means that the area to which the first commercial entity area and the second commercial entity area belong is a strong area for the second commercial entity;
[0143] If the first actual visitor flow rate is less than the first theoretical visitor flow rate, and the second actual visitor flow rate is less than the second theoretical visitor flow rate, it means that the area to which the first commercial area and the second commercial area belong is a disadvantaged area.
[0144] Optionally, determining the passenger flow competition state based on a magnitude relationship between the first actual visitor flow and the second actual visitor flow includes:
[0145] If the first actual visitor flow rate is not less than the second actual visitor flow rate, it means that the first commercial area is in a competitively strong position; if the first actual visitor flow rate is less than the second actual visitor flow rate, it means that the first commercial area is in a competitively disadvantaged position.
[0146] Optionally, in a specific implementation, a corresponding mall promotion strategy may be formulated based on the passenger flow competition status in step 130, or a new mall site may be selected based on the passenger flow competition status.
[0147] In another specific implementation, the passenger flow competition status obtained in step 130 may also be displayed, as shown in step 140:
[0148] 140. Display the passenger flow competition status between the first commercial area and the second commercial area in the space area to be processed.
[0149] Let the first commercial area be the commercial area for which a strategy to improve the passenger flow is to be formulated, referred to as the main area; the second commercial area is the commercial area that is in competition with the first commercial area, referred to as the competitor. Specifically, if a consumer in the same area consumes in both a certain commercial area and a certain commercial area, it can be determined that the two commercial areas are in competition with each other.
[0150] The above passenger flow competition status can be presented in the following list:
[0151]
[0152]
[0153]
[0154] By displaying the passenger flow competition status between the home venue and competitors in the space to be processed, the staff who formulate strategies to improve the passenger flow status can intuitively understand the real situation faced by the home venue, thereby facilitating targeted strategy formulation and improving the work efficiency of the staff.
[0155] The above implementation method can obtain the customer flow competition situation between the home venue and the competitors for each space area to be processed, so that the operators of commercial facilities can formulate targeted marketing and customer acquisition strategies based on the above competition situation.
[0156] In the passenger flow state identification method provided in the embodiment of the present application, the actual visitor flow from the to-be-processed space area to each commercial area can be determined based on the number of vehicle trajectories between each commercial area and the to-be-processed space area in the historical time period. Then, based on the spatial interaction processing process, the theoretical visitor flow from the to-be-processed space area to each commercial area in the historical time period is determined. Subsequently, for any two commercial areas selected from the multiple commercial areas: the first commercial area and the second commercial area, the passenger flow competition state of the above two commercial areas for the to-be-processed space area can be determined based on the first actual visitor flow and the first theoretical visitor flow from the to-be-processed space area to the first commercial area, and the second actual visitor flow and the second theoretical visitor flow from the to-be-processed space area to the second commercial area. In the embodiment of the present application, the actual visitor flow and theoretical visitor flow of the space area to be processed to each commercial area in the historical time period can be determined respectively, and then two commercial areas are arbitrarily selected from the multiple commercial areas: the first commercial area and the second commercial area, and based on the first actual visitor flow, the first theoretical visitor flow, the second actual visitor flow, and the second theoretical visitor flow, the passenger flow competition state of the above two commercial areas for the space area to be processed is determined. The embodiment of the present application can intuitively and accurately obtain the passenger flow competition state of the commercial area for the same space area based on the comparison of the actual visitor flow and the theoretical visitor flow, and the comparison of different actual visitor flows.
[0157] The embodiments of the present application can improve the problem of low accuracy in judging the competition situation of passenger flow in the same spatial area among multiple commercial complexes in the prior art.
[0158] The method described in the above embodiment will be further described in detail below.
[0159] In this embodiment, the method of the embodiment of the present application will be described in detail by taking the first commercial area as the main venue and the second commercial area as the competitor as an example.
[0160] like Figure 2 As shown, a specific process of a passenger flow status recognition method is as follows:
[0161] 201. Obtain the number of return vehicle trajectories with the starting point being the main field and the end point being the space area to be processed within the historical time period.
[0162] 202. Obtain the number of departure vehicle trajectories with a starting point in the to-be-processed spatial area and a destination in the main field within a historical time period.
[0163] 203. Calculate the sum of the number of return vehicle trajectories and the number of departure vehicle trajectories, where the sum is the actual visitor flow from the to-be-processed spatial area to the main venue.
[0164] 204. Based on the spatial interaction model, construct a calculation formula for theoretical visitor flow from the spatial area to be processed to the main venue, wherein the calculation formula includes at least one unknown parameter.
[0165] 205. Estimate a parameter estimate of at least one unknown parameter.
[0166] In one specific embodiment, the spatial interaction model is a gravity model;
[0167] Step 204 includes: constructing a calculation formula based on the number of vehicle trajectories whose starting point is the spatial area to be processed, the number of vehicle trajectories whose end point is the main field, and the spatial distance between the spatial area to be processed and the main field; wherein the exponential value of the spatial distance is an unknown parameter.
[0168] Step 205 includes: setting the first actual visitor flow equal to the first theoretical visitor flow, constructing an equation containing unknown parameters; performing a logarithmic operation on the equation to obtain a linear equation containing unknown parameters; fitting the fitting values of the unknown parameters in the linear equation, wherein the fitting values are parameter estimation values.
[0169] In another specific embodiment, the spatial interaction model is a destination competition model;
[0170] Step 204 includes: constructing an operation formula based on the number of vehicle trajectories whose starting point is the spatial area to be processed, the number of vehicle trajectories whose end point is the home field, the spatial distance between the spatial area to be processed and the home field, and the accessibility variable of the home field; wherein the first index value of the number of vehicle trajectories whose end point is the home field, the second index value of the spatial distance, and the third index value of the accessibility variable are all unknown parameters.
[0171] The steps of calculating the accessibility variable are as follows: based on the spatial distance between each of the first number of spatial areas to be processed and the main field, and the number of vehicle trajectories corresponding to each of the spatial areas to be processed as the starting point, calculate the accessibility variable.
[0172] Step 205 includes: setting the first actual visitor flow equal to the first theoretical visitor flow, constructing an equation including a first exponential value, a second exponential value, and a third exponential value; performing a logarithmic operation on the equation to obtain a nonlinear equation including the first exponential value, the second exponential value, and the third exponential value; and performing parameter estimation on the first exponential value, the second exponential value, and the third exponential value using a heuristic algorithm to obtain a first parameter estimation value, a second parameter estimation value, and a third parameter estimation value.
[0173] 206. Use the estimated values of the parameters to replace the corresponding unknown parameters in the calculation formula.
[0174] 207. Calculate the theoretical visitor flow of the space area to be processed to the main venue based on the calculation formula with parameter estimation values.
[0175] 208. Determine the passenger flow competition state based on the relationship between the first actual visitor flow and the first theoretical visitor flow, the relationship between the second actual visitor flow and the second theoretical visitor flow, and the relationship between the first actual visitor flow and the second actual visitor flow.
[0176] Step 208 may specifically include: if the first actual visitor traffic is not less than the first theoretical visitor traffic, and the second actual visitor traffic is not less than the second theoretical visitor traffic, it means that the area to which the home court and the competitor belong is a strong area; if the first actual visitor traffic is not less than the first theoretical visitor traffic, and the second actual visitor traffic is less than the second theoretical visitor traffic, it means that the area to which the home court and the competitor belong is a strong area for the home court; if the first actual visitor traffic is less than the first theoretical visitor traffic, and the second actual visitor traffic is not less than the second theoretical visitor traffic, it means that the area to which the home court and the competitor belong is a strong area for the competitor; if the first actual visitor traffic is less than the first theoretical visitor traffic, and the second actual visitor traffic is less than the second theoretical visitor traffic, it means that the area to which the home court and the competitor belong is a weak area for the competitor.
[0177] 209. Display the passenger flow competition status between the home venue and competitors in the space to be processed.
[0178] The specific execution process of step 201 to step 209 has been described in detail above and will not be repeated here.
[0179] In the passenger flow state identification method provided in the embodiment of the present application, the actual visitor flow from the to-be-processed space area to each commercial area can be determined based on the number of vehicle trajectories between each commercial area and the to-be-processed space area in the historical time period. Then, based on the spatial interaction processing process, the theoretical visitor flow from the to-be-processed space area to each commercial area in the historical time period is determined. Subsequently, for any two commercial areas selected from the multiple commercial areas: the first commercial area and the second commercial area, the passenger flow competition state of the above two commercial areas for the to-be-processed space area can be determined based on the first actual visitor flow and the first theoretical visitor flow from the to-be-processed space area to the first commercial area, and the second actual visitor flow and the second theoretical visitor flow from the to-be-processed space area to the second commercial area. In the embodiment of the present application, the actual visitor flow and theoretical visitor flow of the space area to be processed to each commercial area in the historical time period can be determined respectively, and then two commercial areas are arbitrarily selected from the multiple commercial areas: the first commercial area and the second commercial area, and based on the first actual visitor flow, the first theoretical visitor flow, the second actual visitor flow, and the second theoretical visitor flow, the passenger flow competition state of the above two commercial areas for the space area to be processed is determined. The embodiment of the present application can intuitively and accurately obtain the passenger flow competition state of the commercial area for the same space area based on the comparison of the actual visitor flow and the theoretical visitor flow, and the comparison of different actual visitor flows.
[0180] The embodiments of the present application can improve the problem of low accuracy in judging the competition situation of passenger flow in the same spatial area among multiple commercial complexes in the prior art.
[0181] In order to better implement the above method, the embodiment of the present application also provides a passenger flow status recognition device, which can be integrated into an electronic device, and the electronic device can be a terminal, a server and other devices. Among them, the terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, or a personal computer (Personal Computer, PC) and other devices; the server can be a single server or a server cluster composed of multiple servers. For example, in this embodiment, the method of the embodiment of the present application will be described in detail by taking the passenger flow status recognition device specifically integrated in the terminal of the electronic device as an example.
[0182] For example, Figure 3As shown, the passenger flow state identification device may include:
[0183] The actual visit unit 301 is used to determine the actual visitor flow from the to-be-processed spatial area to each of the commercial area based on the number of vehicle trajectories between each of the multiple commercial areas and the to-be-processed spatial area in a historical time period;
[0184] The theoretical visitor unit 302 is used to determine the theoretical visitor flow of the to-be-processed spatial area visiting each of the commercial area within the historical time period based on the spatial interaction processing process;
[0185] The competition status determination unit 303 is used to determine the passenger flow competition status of the first commercial area and the second commercial area in the space area to be processed based on the first actual visitor flow and the first theoretical visitor flow from the space area to be processed to the first commercial area, and the second actual visitor flow and the second theoretical visitor flow from the space area to be processed to the second commercial area; wherein the first commercial area and the second commercial area are any two commercial areas among the multiple commercial areas.
[0186] In one implementation, the actual visit unit 301 includes:
[0187] The departure quantity subunit is used to obtain the number of return vehicle trajectories within the historical time period, with the starting point being the first commercial area and the end point being the space area to be processed;
[0188] The return quantity subunit is used to obtain the number of departure vehicle trajectories with the starting point being the to-be-processed space area and the end point being the first commercial area within the historical time period;
[0189] The summing subunit is used to calculate the sum of the number of return vehicle trajectories and the number of departure vehicle trajectories, wherein the sum is the actual visitor flow from the space area to be processed to the first commercial area.
[0190] In one embodiment, the spatial interaction processing occurs in the spatial interaction model; accordingly, the theoretical visit unit 302 includes:
[0191] A formula construction subunit is used to construct a calculation formula for theoretical visitor flow from the to-be-processed space area to the first commercial area based on the spatial interaction model, wherein the calculation formula includes at least one unknown parameter;
[0192] a parameter estimation subunit, configured to estimate a parameter estimation value of the at least one unknown parameter;
[0193] A parameter replacement subunit, used to replace the corresponding unknown parameters in the calculation formula with the parameter estimation value;
[0194] The theoretical flow subunit is used to calculate the theoretical visitor flow from the space area to be processed to the first commercial area based on an operation formula with parameter estimation values.
[0195] In one embodiment, the spatial interaction model is a gravity model; accordingly, the formula construction subunit is specifically used to construct the operation formula based on the number of vehicle trajectories whose starting point is the spatial area to be processed, the number of vehicle trajectories whose end point is the first commercial body area, and the spatial distance between the spatial area to be processed and the first commercial body area; wherein the exponential value of the spatial distance is the unknown parameter.
[0196] In one embodiment, the parameter estimation subunit is specifically configured to:
[0197] Let the first actual visitor flow rate be equal to the first theoretical visitor flow rate, and construct an equation including the unknown parameters;
[0198] Performing a logarithmic operation on the equation to obtain a linear equation containing the unknown parameter;
[0199] Fitting values of the unknown parameters in the linear equation are obtained, wherein the fitting values are the estimated values of the parameters.
[0200] In one embodiment, the spatial interaction model is a destination competition model; the formula construction subunit is specifically used to construct the operation formula based on the number of vehicle trajectories whose starting point is the spatial area to be processed, the number of vehicle trajectories whose end point is the first commercial body area, the spatial distance between the spatial area to be processed and the first commercial body area, and the accessibility variable of the first commercial body area; wherein the first index value of the number of vehicle trajectories whose end point is the first commercial body area, the second index value of the spatial distance, and the third index value of the accessibility variable are all the unknown parameters.
[0201] In one embodiment, the parameter estimation subunit is specifically used to make the first actual visitor flow equal to the first theoretical visitor flow, construct an equation including the first index value, the second index value and the third index value; perform logarithm operation on the equation to obtain a nonlinear equation including the first index value, the second index value and the third index value; use a heuristic algorithm to perform parameter estimation on the first index value, the second index value and the third index value to obtain a first parameter estimation value, a second parameter estimation value and a third parameter estimation value.
[0202] In one embodiment, the device further comprises:
[0203] The variable calculation unit is used to calculate the accessibility variable of the first commercial area.
[0204] In one embodiment, the variable calculation unit is specifically used to calculate the accessibility variable based on the spatial distance between each of the to-be-processed spatial areas and the first commercial area, and the number of vehicle trajectories corresponding to each of the to-be-processed spatial areas as a starting point.
[0205] In one embodiment, the competition status determination unit 303 is specifically used to determine the passenger flow competition status based on the relationship between the first actual visitor flow and the first theoretical visitor flow, the relationship between the second actual visitor flow and the second theoretical visitor flow, and the relationship between the first actual visitor flow and the second actual visitor flow.
[0206] In one embodiment, the competition status determination unit 303 is specifically used to determine that if the first actual visitor flow is not less than the first theoretical visitor flow, and the second actual visitor flow is not less than the second theoretical visitor flow, it means that the area to which the first commercial body area and the second commercial body area belong is a strong area; if the first actual visitor flow is not less than the first theoretical visitor flow, and the second actual visitor flow is less than the second theoretical visitor flow, it means that the area to which the first commercial body area and the second commercial body area belong is a strong area of the first commercial body; if the first actual visitor flow is less than the first theoretical visitor flow, and the second actual visitor flow is not less than the second theoretical visitor flow, it means that the area to which the first commercial body area and the second commercial body area belong is a strong area of the second commercial body; if the first actual visitor flow is less than the first theoretical visitor flow, and the second actual visitor flow is less than the second theoretical visitor flow, it means that the area to which the first commercial body area and the second commercial body area belong is a disadvantaged area.
[0207] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.
[0208] In the passenger flow state identification method provided in the embodiment of the present application, the actual visitor flow from the to-be-processed space area to each commercial area can be determined based on the number of vehicle trajectories between each commercial area and the to-be-processed space area in the historical time period. Then, based on the spatial interaction processing process, the theoretical visitor flow from the to-be-processed space area to each commercial area in the historical time period is determined. Subsequently, for any two commercial areas selected from the multiple commercial areas: the first commercial area and the second commercial area, the passenger flow competition state of the above two commercial areas for the to-be-processed space area can be determined based on the first actual visitor flow and the first theoretical visitor flow from the to-be-processed space area to the first commercial area, and the second actual visitor flow and the second theoretical visitor flow from the to-be-processed space area to the second commercial area. In the embodiment of the present application, the actual visitor flow and theoretical visitor flow of the space area to be processed to each commercial area in the historical time period can be determined respectively, and then two commercial areas are arbitrarily selected from the multiple commercial areas: the first commercial area and the second commercial area, and based on the first actual visitor flow, the first theoretical visitor flow, the second actual visitor flow, and the second theoretical visitor flow, the passenger flow competition state of the above two commercial areas for the space area to be processed is determined. The embodiment of the present application can intuitively and accurately obtain the passenger flow competition state of the commercial area for the same space area based on the comparison of the actual visitor flow and the theoretical visitor flow, and the comparison of different actual visitor flows.
[0209] The embodiments of the present application can improve the problem of low accuracy in judging the competition situation of passenger flow in the same spatial area among multiple commercial complexes in the prior art.
[0210] The embodiment of the present application also provides an electronic device, which can be a terminal, a server, etc. The terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, a personal computer, etc. The server can be a single server or a server cluster composed of multiple servers, etc.
[0211] In some embodiments, the passenger flow status identification device may also be integrated into multiple electronic devices. For example, the passenger flow status identification device may be integrated into multiple servers, and the passenger flow status identification method of the present application may be implemented by multiple servers.
[0212] In this embodiment, the electronic device of this embodiment is an electronic device as an example for detailed description, for example, Figure 4 As shown, it shows a schematic diagram of the structure of the electronic device involved in the embodiment of the present application, specifically:
[0213] The electronic device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, an input module 404, and a communication module 405. Those skilled in the art will appreciate that Figure 4 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0214] The processor 401 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402. In some embodiments, the processor 401 may include one or more processing cores; in some embodiments, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.
[0215] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0216] The electronic device also includes a power supply 403 for supplying power to various components. In some embodiments, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 403 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0217] The electronic device may further include an input module 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0218] The electronic device may further include a communication module 405. In some embodiments, the communication module 405 may include a wireless module. The electronic device may perform short-range wireless transmission through the wireless module of the communication module 405, thereby providing the user with wireless broadband Internet access. For example, the communication module 405 may be used to help the user send and receive emails, browse web pages, and access streaming media.
[0219] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402, thereby realizing various functions, as follows:
[0220] Based on the number of vehicle trajectories between each of the multiple commercial areas and the space area to be processed within the historical time period, the actual visitor flow from the space area to be processed to each of the commercial areas is determined; based on the spatial interaction processing process, the theoretical visitor flow from the space area to be processed to each of the commercial areas within the historical time period is determined; based on the first actual visitor flow and the first theoretical visitor flow from the space area to be processed to the first commercial area, and the second actual visitor flow and the second theoretical visitor flow from the space area to be processed to the second commercial area, the passenger flow competition status between the first commercial area and the second commercial area in the space area to be processed is determined; wherein, the first commercial area and the second commercial area are any two commercial areas among the multiple commercial areas.
[0221] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0222] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0223] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any passenger flow state identification method provided in the embodiment of the present application. For example, the instructions can execute the following steps:
[0224] Based on the number of vehicle trajectories between each of the multiple commercial areas and the space area to be processed within the historical time period, the actual visitor flow from the space area to be processed to each of the commercial areas is determined; based on the spatial interaction processing process, the theoretical visitor flow from the space area to be processed to each of the commercial areas within the historical time period is determined; based on the first actual visitor flow and the first theoretical visitor flow from the space area to be processed to the first commercial area, and the second actual visitor flow and the second theoretical visitor flow from the space area to be processed to the second commercial area, the passenger flow competition status between the first commercial area and the second commercial area in the space area to be processed is determined; wherein, the first commercial area and the second commercial area are any two commercial areas among the multiple commercial areas.
[0225] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0226] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the various optional implementations provided in the above embodiments.
[0227] Since the instructions stored in the storage medium can execute the steps in any passenger flow status identification method provided in the embodiments of the present application, the beneficial effects that can be achieved by any passenger flow status identification method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0228] The above is a detailed introduction to a passenger flow status identification method, device, electronic device and computer-readable storage medium provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A passenger flow status recognition method, characterized in that: The method comprises: Based on the number of vehicle trajectories between each of the commercial area and the space area to be processed in the historical time period, determine the actual visitor flow from the space area to be processed to each of the commercial area; Based on the spatial interaction processing process, determining the theoretical visitor flow of the spatial area to be processed to each of the commercial area within the historical time period; Based on the first actual visitor flow and the first theoretical visitor flow from the space area to be processed to the first commercial area, and the second actual visitor flow and the second theoretical visitor flow from the space area to be processed to the second commercial area, the passenger flow competition status between the first commercial area and the second commercial area in the space area to be processed is determined; wherein, the first commercial area and the second commercial area are any two commercial areas among the multiple commercial areas.
2. The method according to claim 1, characterized in that The method of determining the actual visitor flow from the to-be-processed spatial area to each of the commercial area based on the number of vehicle trajectories between each of the multiple commercial area and the to-be-processed spatial area in the historical time period comprises: Obtain the number of return vehicle trajectories within the historical time period, with the starting point being the first commercial area and the end point being the space area to be processed; Obtain the number of departure vehicle trajectories within the historical time period, with the starting point being the space area to be processed and the end point being the first commercial area; The sum of the number of return vehicle trajectories and the number of departure vehicle trajectories is calculated, wherein the sum is the actual visitor flow from the to-be-processed space area to the first commercial area.
3. The method according to claim 1, characterized in that The spatial interaction processing process occurs in a spatial interaction model; The process of determining the theoretical visitor flow from the to-be-processed spatial area to each of the commercial area within the historical time period based on the spatial interaction processing includes: Based on the spatial interaction model, constructing a calculation formula for the theoretical visitor flow from the to-be-processed spatial area to the first commercial area, wherein the calculation formula includes at least one unknown parameter; estimating a parameter estimate for the at least one unknown parameter; Replacing the corresponding unknown parameters in the calculation formula with the estimated parameter values; The theoretical visitor flow from the space area to be processed to the first commercial area is calculated based on an operation formula with parameter estimation values.
4. The method according to claim 3, characterized in that The spatial interaction model is a gravity model; The calculation formula for constructing the theoretical visitor flow from the to-be-processed space area to the first commercial area based on the spatial interaction model includes: The calculation formula is constructed based on the number of vehicle trajectories whose starting point is the spatial area to be processed, the number of vehicle trajectories whose end point is the first commercial area, and the spatial distance between the spatial area to be processed and the first commercial area; wherein the exponential value of the spatial distance is the unknown parameter.
5. The method according to claim 4, characterized in that The estimating a parameter estimation value of the at least one unknown parameter comprises: Let the first actual visitor flow rate be equal to the first theoretical visitor flow rate, and construct an equation including the unknown parameters; Performing a logarithmic operation on the equation to obtain a linear equation containing the unknown parameter; Fitting values of the unknown parameters in the linear equation are obtained, wherein the fitting values are the estimated values of the parameters.
6. The method according to claim 3, characterized in that The spatial interaction model is a destination competition model; The calculation formula for constructing the theoretical visitor flow from the to-be-processed space area to the first commercial area based on the spatial interaction model includes: The calculation formula is constructed based on the number of vehicle trajectories whose starting point is the spatial area to be processed, the number of vehicle trajectories whose end point is the first commercial body area, the spatial distance between the spatial area to be processed and the first commercial body area, and the accessibility variable of the first commercial body area; wherein the first exponential value of the number of vehicle trajectories whose end point is the first commercial body area, the second exponential value of the spatial distance, and the third exponential value of the accessibility variable are all the unknown parameters.
7. The method according to claim 6, characterized in that The estimating a parameter estimation value of the at least one unknown parameter comprises: Let the first actual visitor flow be equal to the first theoretical visitor flow, and construct an equation including the first index value, the second index value and the third index value; Performing a logarithmic operation on the equation to obtain a nonlinear equation including the first exponent value, the second exponent value, and the third exponent value; A heuristic algorithm is used to perform parameter estimation on the first index value, the second index value, and the third index value to obtain a first parameter estimation value, a second parameter estimation value, and a third parameter estimation value.
8. The method according to claim 6, characterized in that Before constructing the calculation formula based on the number of vehicle trajectories starting from the space area to be processed, the number of vehicle trajectories ending at the first commercial body area, the spatial distance between the space area to be processed and the first commercial body area, and the accessibility variable of the first commercial body area, the method further includes: Calculate the accessibility variable of the first commercial area.
9. The method according to claim 8, characterized in that The to-be-processed spatial areas have a first number, and the calculating of the accessibility variables of the first commercial area includes: The accessibility variable is calculated based on the spatial distance between each of the first number of spatial areas to be processed and the first commercial area, and the number of vehicle trajectories corresponding to each of the spatial areas to be processed as a starting point.
10. The method according to claim 1, characterized in that The determining of the passenger flow competition state between the first commercial area and the second commercial area in the space area to be processed based on the first actual visitor flow and the first theoretical visitor flow from the space area to be processed to the first commercial area, and the second actual visitor flow and the second theoretical visitor flow from the space area to be processed to the second commercial area, comprises: The passenger flow competition state is determined based on the relationship between the first actual visitor flow and the first theoretical visitor flow, the relationship between the second actual visitor flow and the second theoretical visitor flow, and the relationship between the first actual visitor flow and the second actual visitor flow.
11. The method according to claim 10, characterized in that The determining the passenger flow competition state based on the size relationship between the first actual visitor flow and the first theoretical visitor flow, the size relationship between the second actual visitor flow and the second theoretical visitor flow, and the size relationship between the first actual visitor flow and the second actual visitor flow includes: If the first actual visitor flow is not less than the first theoretical visitor flow, and the second actual visitor flow is not less than the second theoretical visitor flow, it means that the area to which the first commercial area and the second commercial area belong is a strong area; If the first actual visitor flow is not less than the first theoretical visitor flow, and the second actual visitor flow is less than the second theoretical visitor flow, it means that the area to which the first commercial entity area and the second commercial entity area belong is a strong area of the first commercial entity; If the first actual visitor flow is less than the first theoretical visitor flow, and the second actual visitor flow is not less than the second theoretical visitor flow, it means that the area to which the first commercial entity area and the second commercial entity area belong is a strong area for the second commercial entity; If the first actual visitor flow rate is less than the first theoretical visitor flow rate, and the second actual visitor flow rate is less than the second theoretical visitor flow rate, it means that the area to which the first commercial area and the second commercial area belong is a disadvantaged area.
12. A passenger flow status recognition device, characterized in that: The device comprises: An actual visit unit, used to determine the actual visitor flow from the to-be-processed spatial area to each of the commercial area based on the number of vehicle trajectories between each of the commercial area and the to-be-processed spatial area in a historical time period; A theoretical visitor unit, used for determining the theoretical visitor flow of the spatial area to be processed to visit each of the commercial area within the historical time period based on the spatial interaction processing process; A competition status determination unit is used to determine the passenger flow competition status of the first commercial area and the second commercial area in the space area to be processed based on a first actual visitor flow and a first theoretical visitor flow from the space area to be processed to the first commercial area, and a second actual visitor flow and a second theoretical visitor flow from the space area to be processed to the second commercial area; wherein the first commercial area and the second commercial area are any two commercial areas among the multiple commercial areas.
13. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the steps in the passenger flow status identification method according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the passenger flow status identification method according to any one of claims 1 to 11.
