Passenger flow volume prediction method, device, equipment and medium
By acquiring and analyzing base station signaling data and combining it with customer portraits to predict the passenger flow at the target business location, the problem of inaccurate passenger flow prediction in the existing technology is solved, and the refinement of operations and customer satisfaction are improved.
Patent Information
- Application Number
- CN202311660506.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2024-10-18
AI Technical Summary
The existing regional passenger flow analysis method is difficult to predict the passenger flow around the store and the passenger flow in the lobby in real time, resulting in a low accuracy of passenger flow prediction and failing to effectively consider the business characteristics of the target customer group.
By obtaining the signaling data of all base stations in the target area, determine the user information whose stay time is longer than the preset time, and match the user information based on the pre-acquired customer portrait to determine the entry probability of the target user, thereby predicting the passenger flow of the target business location. quantity.
It improves the accuracy of passenger flow forecasting, enables refined operations at target business locations, and improves customer satisfaction and resource utilization efficiency.
Smart Images

Figure CN118803000A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a passenger flow prediction method, device, equipment and medium. Background Art
[0002] With the high-quality development requirements of the digital economy, traditional communication operators are constantly optimizing marketing methods and technical means. Among them, physical business halls, as one of the main battlefields for business expansion, are actively exploring "online and offline" traffic-driving marketing methods. Monitoring and quickly predicting the flow of customers to the hall in the region can help companies achieve more refined operations, thereby improving customer satisfaction and reducing resource waste. However, the existing regional passenger flow analysis methods have the problem of difficulty in real-time prediction of passenger flow around stores and difficulty in effectively predicting passenger flow to the hall, resulting in a low accuracy rate in passenger flow prediction. Summary of the invention
[0003] The present application provides a passenger flow prediction method, device, equipment and medium, which can improve the accuracy of passenger flow prediction.
[0004] In a first aspect, an embodiment of the present application provides a passenger flow prediction method, the method comprising:
[0005] Obtain signaling data of all base stations within the target area, where the target area is determined based on the target business location;
[0006] Determining, based on the communication data of all base stations, first user information of a first user whose stay time in the target area is greater than a preset time;
[0007] Based on the pre-acquired customer profile of the target business location, the first user information is matched to determine a target user among the first users who meets the customer profile, where the customer profile is used to characterize the customer type;
[0008] Determining a target probability of the target user entering a target business location based on the second user information corresponding to the target user;
[0009] Based on the target probability of the target user entering the target business location, the customer flow of the target business location is predicted.
[0010] In a second aspect, the present application provides a passenger flow prediction device, the device comprising:
[0011] an acquisition module, for acquiring signaling data of all base stations in a target area, where the target area is determined based on a target business location;
[0012] A first determination module, configured to determine, based on communication data of all base stations, first user information of a first user whose stay time in the target area is greater than a preset time;
[0013] A matching module, configured to match the first user information based on the pre-acquired customer profile of the target business location, and determine a target user among the first users who meets the customer profile, where the customer profile is used to characterize the customer type;
[0014] A second determination module, configured to determine a target probability of the target user entering a target business location based on second user information corresponding to the target user;
[0015] The prediction module is used to predict the customer flow of the target business location based on the target probability of the target user entering the target business location.
[0016] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a memory storing computer program instructions;
[0017] When the processor executes the computer program instructions, it implements the passenger flow prediction method as in any one of the embodiments of the first aspect.
[0018] In a fourth aspect, an embodiment of the present application provides a computer storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, a passenger flow prediction method as in any one of the embodiments in the first aspect is implemented.
[0019] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes a passenger flow prediction method as in any one of the embodiments in the first aspect above.
[0020] In a passenger flow prediction method, device, equipment and medium provided by an embodiment of the present application, by acquiring the signaling data of all base stations in the area where the target area is located, the target area is determined based on the target business location; based on the communication data of all base stations, the first user information of the first user whose stay time in the target area is longer than the preset time is determined; based on the pre-acquired customer portrait of the target business location, the first user information is matched to determine the target user who meets the customer portrait among the first users, and the customer portrait is used to characterize the customer type; based on the second user information corresponding to the target user, the target probability of the target user entering the target business location is determined; based on the target probability of the target user entering the target business location, the passenger flow of the target business location is predicted. In the above manner, by acquiring the signaling data of all base stations in the area where the target area is located, a comprehensive monitoring of the passenger flow in the area can be established. After the target user is determined, the target probability of these target users entering the target business location is further determined based on the second user information corresponding to the target user. By combining the user characteristics of the target user and the acquired customer portrait of the target business location, the passenger flow of the target business location can be predicted more accurately. This refined prediction method greatly improves the accuracy of passenger flow prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0022] Figure 1 It is a flow chart of a passenger flow prediction method provided by an embodiment of the present application;
[0023] Figure 2 It is a structural diagram of a signaling data real-time analysis area client device provided by an embodiment of the present application;
[0024] Figure 3 is a schematic diagram of a user trajectory before time period compression provided by an embodiment of the present application;
[0025] Figure 4 is a schematic diagram of a user trajectory after time period compression provided by an embodiment of the present application;
[0026] Figure 5 is another flow chart of a passenger flow prediction method provided by an embodiment of the present application;
[0027] Figure 6 is another flow chart of a passenger flow prediction method provided by an embodiment of the present application;
[0028] Figure 7 It is a structural schematic diagram of a passenger flow prediction device provided in an embodiment of the present application;
[0029] Figure 8 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0031] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0032] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0033] With the high-quality development requirements of the digital economy, traditional communication operators are constantly optimizing marketing methods and technical means. Among them, physical business halls, as one of the main battlefields for business expansion, are actively exploring "online and offline" drainage marketing methods. The method is: first, the business hall informs users of the promotion time, target location, event content, etc. in advance through "online warm-up" (such as text messages, WeChat public accounts, telephone calls, etc.); then, attract users to "go to the hall offline" to redeem relevant promotional resources (such as free data cables, laundry detergent, etc.), arrange seats to receive them, and carry out resource verification; finally, the user completes the business processing, and the operation and analysis personnel do resource verification and business conversion rate tracking.
[0034] It can be seen that accurate estimation of the customer flow to the hall before the above activities is very important for allocating appropriate event resources. Otherwise, either the customer flow is too large, resulting in resource squeeze and low customer service satisfaction; or the customer flow is too small, resulting in a waste of promotional resources. Therefore, monitoring and quickly predicting the customer flow to the hall in the area can help companies achieve more refined operations, thereby improving customer satisfaction and reducing resource waste.
[0035] However, the existing method is to collect user terminal information such as user terminal numbers, information collection time, and base station cell identifiers in each base station cell within a preset geographical area. According to the number of user terminals in the target cell and the number of user terminals that may enter the target cell, the passenger flow of the target cell in the future preset time period is obtained. In the process of collecting and analyzing mobile phone location signaling in the existing technical solutions, only fixed areas can be used as analysis objects. If a new analysis area is added, it is necessary to re-collect and analyze massive data (usually, more than 50 billion original signaling per day), and the presented results are difficult to meet real-time requirements, resulting in insufficient timeliness in prediction.
[0036] In addition, the existing technology does not comprehensively consider the business characteristics of the target customer group, such as whether they are in arrears or active users, resulting in low prediction accuracy. Although the existing method can solve the storage of massive mobile phone location signaling information and the association of analysis areas, it only predicts the changes in customer flow in the area through location trajectory analysis. If it is necessary to estimate the flow of customers entering the store, after the user is circled in the location trajectory, the selected user information should be matched and fitted with the customer portrait and user model of the business hall in a timely manner to further improve the accuracy of the prediction.
[0037] In order to solve the problems existing in the prior art, the embodiments of the present application provide a passenger flow prediction method, device, equipment and medium.
[0038] The present application embodiment provides a passenger flow prediction method, device, equipment and medium. The passenger flow prediction method provided by the present application embodiment is first introduced below. Figure 1 As shown, the method specifically comprises the following steps:
[0039] S100, acquiring signaling data of all base stations in a target area, where the target area is determined based on a target business location.
[0040] Optionally, in the implementation of this application, the target business location refers to the specific commercial place of concern in this application, and in this application, the target business location refers to the physical business hall or store of the communication operator. Of course, in other embodiments, the target business location can also be a specific physical building, business center, shopping center, etc., where a communication operator provides services. In actual applications, the selection of the target business location can be based on various factors, including geographic location, customer traffic, sales demand, competitive environment, etc. By monitoring and analyzing these target business locations, we can better understand customer behavior and improve service quality, thereby achieving more refined operations and improving customer satisfaction.
[0041] Optionally, in a possible implementation of the present application, first, it is necessary to clearly define or determine the target area, which may specifically involve specific geographical coordinates, administrative regions or other regional division methods. Specifically, the target area can be determined based on the location information of the target business location, such as longitude and latitude. Once the target area is determined, the system can collect signaling data in the area through communication network equipment (such as base stations). These signaling data may include mobile control (Mobile Control, MC) port signaling, S1 Application Protocol-Mobility Management Entity (S1 Application Protocol-Mobility Management Entity, S1MME) port signaling, core network interface N1 / N2 (N1 / N2Interface, N1 / N2) port signaling, etc., which contain fields such as mobile phone number, base station location information, trigger time, etc. Then select the data related to the target area from the original signaling file on the network department host. Specifically, it may involve the screening of the original signaling file, and only select the interactive data of users on the base station equipment in the target area.
[0042] S200: Determine, based on communication data of all base stations, first user information of a first user whose stay time in a target area is greater than a preset time.
[0043] Optionally, in a feasible implementation of the present application, the communication data of all base stations in the area where the target area is located is obtained through a signaling acquisition unit, and these data include the user's mobile phone number, location information, trigger time, etc. Subsequently, the obtained signaling data is analyzed to determine the user's stay time in the target area. Specifically, the change of timestamp and location information can be used to determine the movement and stay of the user between base stations. According to a preset stay time threshold, users who have stayed in the target area for a period longer than the threshold are screened out. These users are the desired target users, i.e., the first user. Detailed information of the user is obtained, including mobile phone number, location information, trigger time, etc. This user is the first user.
[0044] Subsequently, the mobile phone number of the first user is obtained from the signaling data, which is the key information that uniquely identifies the user. The mobile phone number of the first user is used as the key identification information to query the database or user information storage system to obtain the user details related to the mobile phone number. The user information queried from the database is integrated into a user data set, including but not limited to user identification, age, gender, usage package, consumption habits, etc. The obtained user information is output for subsequent analysis, processing and display. The output data may be in a structured format, such as a table, or other data format, or text format.
[0045] S300, matching the first user information based on the pre-acquired customer portrait of the target business location, and determining a target user among the first users who meets the customer portrait, where the customer portrait is used to characterize the customer type.
[0046] Optionally, in the implementation of this application, customer portrait is a way to classify and describe users, which may specifically include users' personal information, behavioral characteristics, preferences, etc. The purpose of matching is to identify potential target user groups for subsequent analysis and prediction. The accuracy and efficiency of matching depends on the quality of establishing customer portraits and the design of matching algorithms. In practical applications, it is necessary to continuously optimize customer portraits and matching algorithms to improve accuracy.
[0047] Optionally, in a possible implementation of the present application, first, extract key fields, such as mobile phone numbers, from the first user information obtained in S200. Query the customer portrait information related to the target business location in a pre-established customer portrait database or data model. Then design a matching algorithm, which evaluates the similarity between the characteristics of the customer portrait and the first user information of the first user according to the characteristics of the customer portrait. The matching algorithm can use a rule engine, a machine learning model, etc., depending on the nature of the portrait and the application. For each feature (such as age, consumption habits, etc.), calculate the similarity score between the first user information of the first user and the corresponding feature in the customer portrait, which can be done using a distance metric, a similarity index, etc. The similarity scores of each feature are combined to obtain an overall matching degree, which can be a simple weighted sum or other complex integration methods. And set a matching degree threshold. If the overall matching degree exceeds the threshold, it is determined that the first user meets the target customer portrait. Then output the matching result, including detailed information (i.e., second user information) of the target user who meets the customer portrait, such as mobile phone number, age, consumption habits, etc.
[0048] S400: Determine a target probability of the target user entering a target business location based on second user information corresponding to the target user.
[0049] Optionally, in a feasible implementation of the present application, first, the second user information is preprocessed, which may specifically include data cleaning, format conversion, missing value processing, etc., to ensure the quality of the data. Then, features related to the target user's entry into the target business location are extracted from the second user information, such as the user's activity, permanent location, visit frequency, etc. Then, an appropriate prediction model is selected according to the nature of the data and task requirements, which may be a machine learning model (such as a classification model) or other prediction methods. And the selected model is trained using historical data. These historical data may include the second user information of the target user and a label of whether to enter the target business location. Then, the trained model is used to predict the probability of the target user entering the target business location. And the predicted target probability is output as the prediction result of the target user entering the target business location.
[0050] S500, predicting the customer flow of the target business location based on the target probability of the target user entering the target business location.
[0051] Optionally, in a possible implementation of the present application, a probability threshold is set based on historical data or business experience, and the probability threshold represents the limit of the probability of the target user entering the target business location. The calculated probability of the target user entering the target business location is compared with the set probability threshold. If the probability of the target user exceeds the set threshold, it is determined that the target user will enter the target business location; otherwise, it is determined that the target user will not enter the target business location. In this way, the number of target users entering the target business location can be obtained, thereby predicting the customer flow of the target business location.
[0052] Optionally, in another feasible implementation of the present application, firstly, historical passenger flow data can be used to analyze the passenger flow change trend of the target business location under different time periods, different dates and other conditions, which can help establish the relationship between probability and actual passenger flow. According to the analysis of historical data and the characteristics of the passenger flow of the target business location, an appropriate prediction model is selected, which can be a time series model, a regression model or other suitable model. The selected model is trained using historical data, and the parameters of the model can be adjusted to ensure that the model can capture the impact of different factors on passenger flow. The trained model is then used to convert the probability of the target user entering the target business location into a passenger flow prediction. The obtained passenger flow prediction result is output as a prediction of the passenger flow of the target business location.
[0053] In a passenger flow prediction method provided in an embodiment of the present application, by acquiring the signaling data of all base stations in the area where the target area is located, the target area is determined based on the target business location; based on the communication data of all base stations, the first user information of the first user whose stay time in the target area is longer than the preset time is determined; based on the pre-acquired customer portrait of the target business location, the first user information is matched to determine the target user who meets the customer portrait among the first users, and the customer portrait is used to characterize the customer type; based on the second user information corresponding to the target user, the target probability of the target user entering the target business location is determined; based on the target probability of the target user entering the target business location, the passenger flow of the target business location is predicted. In the above manner, by acquiring the signaling data of all base stations in the area where the target area is located, a comprehensive monitoring of the passenger flow in the area can be established. After the target user is determined, the target probability of these target users entering the target business location is further determined based on the second user information corresponding to the target user. By combining the user characteristics of the target user and the acquired customer portrait of the target business location, the passenger flow of the target business location can be predicted more accurately. This refined prediction method significantly improves the accuracy of passenger flow prediction.
[0054] In one embodiment, before the above step 100, the method may further specifically perform the following steps:
[0055] S101, collecting original signaling files generated by all base stations in the target area based on a preset transmission protocol at every first preset period, where the original signaling files include multiple fields, and different fields correspond to different interaction information, where the interaction information is generated by communication interaction between the user and the base station;
[0056] S102, when the original signaling file is in an unparsed state, downloading the original signaling file and a data file corresponding to the original signaling file;
[0057] S103, based on the original signaling file and the data file, reorganizing the format of the original signaling file and the data file to obtain a target file;
[0058] S104 stores the target file in the message middleware.
[0059] In one embodiment, the above step 100 may specifically perform the following steps:
[0060] S110, acquiring signaling data of all base stations in the target area from the message middleware, wherein the target file includes the signaling data.
[0061] Optionally, in the embodiments of the present application, Figure 2As shown, the present application also provides a signaling data real-time analysis area customer device, which includes a customer location signaling collection unit, a signaling processing and analysis unit, and a user selection area result display unit. The customer location signaling collection unit is introduced as follows:
[0062] The customer location signaling collection unit mainly collects the interaction data of users on all base station devices in the target area, such as the city where the target area is located, or the province where the target area is located. Among them, the data source is stored in the original signaling file on the network department host, which is divided into MC port signaling, S1MME port signaling, N1 / N2 port signaling and call list signaling, and there are many fields in the signaling file, about 100+. The fields used in this application are mainly mobile phone number, location area code (Lac), cell, trigger time, International Mobile Equipment Identity (IMEI), International Mobile Subscriber Identity (IMSI), etc.
[0063] Among them, the location area code is a code used to identify the location area in the Global System for Mobile Communications (GSM) network. In wireless communications, the mobile station determines its current location area through the LAC. Cell represents a cell in a mobile communication network. In the GSM network, a cell is a specific area covered by a base station and is used to provide mobile communication services. The International Mobile Equipment Identity is a string of numbers used to uniquely identify a mobile phone device on a GSM network. The International Mobile Subscriber Identity is a number that uniquely identifies a mobile user on a GSM network. The IMSI is stored in the Subscriber Identity Module (SIM) card and is used to identify users and perform authentication.
[0064] In these optional embodiments, by periodically collecting the original signaling files generated by all base stations in the target area, the original signaling files generated by all base stations in the target area are periodically collected, downloaded, formatted and stored. This process ensures the timeliness, integrity and structure of the data, and provides a high-quality foundation for subsequent data processing. By using the message middleware, the signaling data of the target area is obtained at a preset periodicity, providing a real-time and reliable data access channel. This helps to ensure that the business system can always use the latest communication interaction information, thereby improving the accuracy and real-time performance of passenger flow prediction.
[0065] In one embodiment, the above step 103 may specifically perform the following steps:
[0066] S1031, parsing the original signaling file and the data file to obtain multiple initial fields;
[0067] S1032, based on a preset selection rule, selecting a target field that meets the preset selection rule from the multiple initial fields;
[0068] S1033, cleaning and filtering the target field to obtain target data;
[0069] S1034, based on the format rules of the preset format, reorganize the target data into a target file in the preset format.
[0070] Optionally, in a specific implementation of the present application, the original signaling file is collected through the File Transfer Protocol (FTP), and the directory of the opposite host is polled every 3 seconds to check whether there is the latest verification file. If it exists, the verification file (i.e., the original signaling file) and the data file are directly downloaded to the local computer, and the name of the currently downloaded file is updated, and the cycle continues. After the download is successful, the file content is parsed and sorted according to the field position to obtain key information. The cleaned and filtered data is reassembled into a comma-separated value (comma-separated values, csv) format and output to kafka (Note: kafka is a message middleware commonly used for real-time message exchange) to form a real-time data warehouse original (Operational Data Store, ODS) layer data model.
[0071] In the collection process, the latest file names of different business types of data are passed in, and the signaling file (csv format) is obtained according to the file name and timestamp. After cleaning and processing, the ODS layer table rods_a_local_signal_info is generated. The detailed fields are as follows:
[0072] Field Tags type Field Chinese Description boss_tablename String Table owner and table name msisdn String User Number mcc String Mcc lac_cell String User triggered signaling base station sector time String Trigger time signal_type String Signaling Type isOn String Switch on / off mark imei String Imei imsi String Imsi
[0073] Among them, boss_tablename: This is the owner and table name of the table. In the database, it consists of the database user (owner) and the table name, which is used to indicate the location of the table in the database. msisdn is the user number, which can be a mobile phone number in mobile communications. Mobile Country Code (mcc) is a number used to uniquely identify a country. lac_cell is the base station sector for user-triggered signaling, which refers to the base station sector information of the user's location, including the location area code (LAC) and the cell code (Cell). time is the trigger time, indicating the time when the signaling is triggered. signal_type is the signaling type, indicating different types of communication signaling, such as power on, power off, and calls. isOn is the power on / off identifier, used to indicate whether the user is in the power on or power off state. imei is a 15-digit number used to uniquely identify a mobile device. imsi is a 15-digit number used to uniquely identify a mobile user.
[0074] In these optional embodiments, by parsing the original signaling file and the data file, information containing multiple initial fields can be obtained. Then, based on the preset selection rules, the target field that meets the rules is selected from these initial fields, which helps to filter out the required information and reduce the amount of data for subsequent processing. Cleaning and filtering the target field can remove unnecessary information and ensure the accuracy and consistency of the data. This helps to improve the efficiency of subsequent processing and ensure that the final target data is of good quality. Reorganizing the target data according to the format rules of the preset format helps to ensure the structural consistency of the data, making subsequent processing and analysis more convenient and efficient. In general, this step is beneficial to the preprocessing of the data, so that subsequent data analysis and application can be carried out on a high-quality basis, improving the availability and operability of the data.
[0075] In one embodiment, the above step 101 may specifically perform the following steps:
[0076] S1011, every first preset period, respectively obtain corresponding mutexes through multiple collection nodes, the collection nodes are used to collect original signaling files, and one collection node corresponds to one mutex;
[0077] S1012, for any first node among the multiple collection nodes, obtaining the permission status of a first mutex lock corresponding to the first node;
[0078] S1013, when the authority status is passed, collecting original signaling files generated by all base stations in the area where the target area is located through the first node;
[0079] S1014: When the authority status is not passed, stop the collection work of the first node.
[0080] Optionally, in a specific implementation of the present application, the logic of source signaling file (i.e., original signaling file) collection and parsing are all consumed in a load balancing manner, and multiple nodes compete for the remote dictionary server (RemoteDictionary Server, redis), where redis is a memory database based on key-value pairs, and the Redlock mutex in the cluster obtains execution permissions.
[0081] Specifically, load balancing is a strategy in a distributed system that ensures that each node (server, processing unit, etc.) can handle the workload evenly by reasonably distributing the task burden, thereby improving the performance and stability of the overall system. In this application, load balancing is used to coordinate the work of multiple nodes to collect and parse the source signaling file to avoid excessive load on a node while other nodes are idle. The Redlock mutex is a distributed lock algorithm used to implement a mutex in a distributed environment to ensure that multiple nodes do not perform a critical task at the same time to prevent data competition and conflict. In this application, multiple nodes obtain execution permissions by competing for the Redlock mutex in the Redis cluster to ensure that only one node executes the collection and parsing logic of the source signaling file at the same time. The purpose of this is to avoid or reduce the simultaneous performance of the same operation by multiple nodes, resulting in data inconsistency or conflict.
[0082] Optionally, in an embodiment of the present application, before executing the collection and parsing logic of the source signaling file, multiple nodes first try to obtain the Redlock mutex in the Redis cluster. Only nodes that successfully obtain the lock can perform subsequent operations, while other nodes need to wait or retry. Once a node completes the operation and releases the lock, other nodes can compete to obtain the lock. This mechanism ensures that only one node is executing the collection and parsing logic of the source signaling file at any time, thereby ensuring the consistency and correctness of the data.
[0083] In these optional embodiments, through the synergistic effect of load balancing and distributed locks, orderly and mutually exclusive access to source signaling files among multiple nodes is achieved, ensuring the efficiency of the system and the integrity of the data.
[0084] In one embodiment, the above step 200 may specifically perform the following steps:
[0085] S210, determining trajectory information of multiple users in the target area based on communication data of all base stations;
[0086] S220, based on a preset time period compression rule, time period compressing the trajectory information corresponding to each user to obtain target trajectories of multiple users in the area where the target area is located;
[0087] S230, for any second user among the multiple users, obtain, from the first trajectory corresponding to the second user, a first base station at which the second user is located at a first moment, and a second base station at which the second user is located at a second moment, where the second moment is a moment after a second preset period has passed from the first moment;
[0088] S240, based on the similarities and differences between the first base station and the second base station, and the target area, determining a residence result of the second user, where the residence result is used to indicate whether the residence time of the second user in the target area is greater than a preset time;
[0089] S250: When the residence result indicates that the residence time of the second user in the target area is greater than a preset time, obtain user information corresponding to the second user.
[0090] Optionally, in an embodiment of the present application, the communication data of all base stations are used to obtain the trajectory information of multiple users in the area where the target area is located, wherein the trajectory information may specifically include the location of the user at different base stations, the communication time, etc. Subsequently, for the trajectory information of each user, the trajectory information is compressed in time period according to a preset time period compression rule, specifically involving compressing the continuous trajectory data according to a set time period to reduce the amount of data. For any second user, the first base station at the first moment and the second base station at the first moment after the second preset period are obtained in the first trajectory corresponding to the user. Based on the similarities and differences between the first base station and the second base station, it is determined whether the user stays in the target area and whether the length of stay is greater than the preset length of stay. When the residence result indicates that the second user stays in the target area for a period greater than the preset length of stay, the user information corresponding to the second user is obtained. User information includes the identity, characteristics, behavior, etc. of the user.
[0091] In these optional embodiments, this series of steps analyzes user trajectories, compresses data, determines the user's stay in the target area, and finally obtains qualified user information, thereby achieving effective screening and information extraction of users in the target area.
[0092] In one embodiment, the above step 220 may specifically perform the following steps:
[0093] S221, creating multiple time windows, each of which has the same time interval, and one time window corresponds to one time range;
[0094] S222, for any third user among the multiple users, split the first trajectory information corresponding to the third user into multiple sub-information based on the time interval, where one sub-information includes trajectory information within a time interval;
[0095] S223, storing the plurality of sub-information in a plurality of time windows in sequence according to the time sequence, wherein one time window stores one sub-information;
[0096] S224, obtaining the trajectory position corresponding to the last moment in each time window;
[0097] S225, sorting the trajectory positions corresponding to the last moment in each time window in chronological order to obtain a sorting result;
[0098] S226: Determine the target trajectory of the third user in the area where the target area is located based on the sorting result.
[0099] Optionally, in a specific implementation of the present application, the signaling processing and analysis unit of the signaling data real-time analysis area client device is introduced as follows:
[0100] The signaling processing and analysis unit includes a trajectory compression submodule, which is used to compress and store large amounts of trajectory data, thereby supporting real-time statistics of passenger flow in any area. Since the original user trajectory is large and most of them are in the same location, it is necessary to compress and store the original user trajectory data. The compression method uses a time period compression method, with a compression time of 5 minutes. The tail trajectory (such as Figure 3 and Figure 4 As shown). In Flink processing logic, time window functions are used to process unbounded data streams. The unbounded data stream is cut into finite streams, and then the cut finite stream data is distributed to buckets of specified finite size for analysis and calculation, using rolling windows. The advantages of rolling windows are: 1. Taking the time window as an example (similar to the counting window), the data is divided according to fixed time intervals. 2. The time of the rolling window is relatively aligned, and the length of the window is fixed and there is no overlap. 3. Save 95% of storage space, and the real-time statistical efficiency is improved from minutes to seconds.
[0101] Optionally, in the embodiment of the present application, the tail end trajectory compression method is an efficient trajectory compression method based on the tail end position residence, and its novelty lies in that it uses less compression cost and is applied to the scene of predicting the passenger flow to the hall without losing accuracy. By storing the customer's real-time location information and compressing the original user trajectory data, the compression method adopts the time period compression method, and the compression duration is positioned at 5 minutes. The data stream is cut into finite streams, and then the cut tail end stream data is distributed to a specified finite size bucket for analysis and calculation.
[0102] Optionally, in an embodiment of the present application, a time window is a mechanism for dividing and processing data according to a time range. The data within the time window will be collected and processed, and then moved to the next time window. There are two key parameters for a time window: the length of the window (time span, time range) and the sliding interval of the window (the time span between two windows, i.e., the time interval). For example, a time window with a length of 5 minutes and sliding every 1 minute can be defined. In this way, data will be aggregated every 5 minutes.
[0103] A tumbling window is a special type of time window whose sliding interval is equal to the length of the window, that is, there is no overlap between each window. This means that the data belongs entirely to one window and not to multiple windows at the same time. The advantage of tumbling windows is that there is no overlap between windows, which is easier to understand and implement. The advantage of tumbling windows is that they are time-aligned, the window length is fixed, and there is no overlap between windows. This feature makes data processing more controllable and easier to understand. At the same time, fixed-length windows can better adapt to business needs, such as statistics by hour or day.
[0104] In these optional embodiments, by adopting the time period compression method, the original trajectory data is compressed and the tail trajectory is taken, thereby saving storage space for large-volume trajectory data. This helps to reduce storage costs, especially when the amount of data is large, it can significantly reduce storage requirements. Using the time window function, the unbounded data stream is cut into a finite stream, and then analyzed and calculated through a rolling window. This improves the real-time statistical efficiency from the minute level to the second level. Through finer-grained window segmentation, the system can process data more promptly and achieve more real-time passenger flow statistics.
[0105] Distributing the cut finite stream data into specified finite-sized buckets for analysis and calculation helps to better manage computing resources and improve processing efficiency. This approach makes it easier to scale computing horizontally to meet the growing demand for data processing. Overall, these optimization measures help improve the real-time, efficiency, and scalability of the system, making it more suitable for processing large-scale trajectory data and performing passenger flow statistics.
[0106] In one embodiment, the above step 240 may specifically perform the following steps:
[0107] S241, when the first base station and the second base station are the same, obtaining a first residence time of the second user in the first area, and the first base station belongs to the first area;
[0108] S242, when the first residence time is longer than a preset time, determining the first area as a residence area of the second user;
[0109] S243: When the residence area is the target area, output a first result, where the first result is used to indicate that the residence time of the second user in the target area is greater than a preset time.
[0110] In one embodiment, the above step 240 may further specifically perform the following steps:
[0111] S244, when the first base station and the second base station are different, if the standard area to which the second base station belongs is the first area, obtaining a second residence time length of the second user residing in the first area;
[0112] S245, when the second residence time is longer than the preset time, determining the first area as the residence area of the second user;
[0113] S246: When the resident area is not the target area, output a second result, where the second result is used to indicate that the residence time of the second user in the target area is not greater than a preset time.
[0114] Optionally, in a specific implementation of the present application, the signaling processing and analysis unit may further include a regional resident calculation submodule. The specific functions of the regional resident calculation submodule are introduced below:
[0115] like Figure 5 As shown, the regional residence calculation submodule i. First, it is necessary to confirm the size of the residence range in advance, and clarify the base station sequence within the range, and synchronize the determined range and base station sequence data in the redis cluster, with the base station as the key and the regional code as the value.
[0116] Subsequently, access the full amount of user signaling data to determine whether the latest base station location of each user is consistent with the last location of the number in the platform. If the location of the base station in the two signaling messages has not changed, determine whether the time interval between the two messages exceeds 10 minutes. If it exceeds, it is recorded as base station residence and continues to flow downward; if it does not exceed, update the user's active time at the base station (that is, restart the calculation of the start time of the residence time of the base station). In this way, the base station residence data is continuously output. Or if the location of the base station has not changed in the two signaling messages, the continuous time at the base station location is obtained. If the time exceeds 10 minutes, it is recorded as base station residence and continues to flow downward. It should be understood that the 10 minutes in this application is only illustrative, and the specific duration can be determined as needed.
[0117] Finally, after the base station residence data is generated, it will automatically enter the regional trajectory judgment logic according to the process design. First, according to the base station code, check whether the base station is bound to a predetermined range in the redis cluster. If there is a bound area, the area code is taken out, and then the user's last regional cache information is obtained according to the user number. The residence time between the two residence information is calculated. When the residence time meets the set threshold, the trajectory is output and the regional residence information of the number in the redis cluster is updated.
[0118] Optionally, in an embodiment of the present application, the method for calculating and filtering the regional customer residence time is a real-time aggregation algorithm for massive data; it performs diversion according to the customer number, records the customer's latest location and time each time, and calculates the user's residence time at a certain location in real time. If the customer's residence time meets the set threshold, this trajectory is output and the regional residence information of the number in the redis cluster is updated. By customizing and filtering the residence time, "passers-by" can be effectively filtered, so that the potential customer flow to the hall in the selected area can be counted.
[0119] In these optional embodiments, by confirming the pre-set resident range size and base station sequence, the system can accurately determine the base station residence. The regional information is synchronized to the Redis cluster so that the association between the base station and the region can be stored and quickly retrieved. After accessing the full amount of user signaling data, the system determines whether the latest base station location of each user is consistent with the previous location. If it has not changed, the user's active time under the base station is updated. This helps to understand the user's location information in real time, and then infer the user's active status.
[0120] After the base station residence data is generated, the system automatically enters the regional trajectory judgment logic. By querying whether the base station in the Redis cluster is bound to a predetermined range, the system can determine the area where the base station is located. Then, the residence time between the two residence information of the user is calculated. When the time length meets the set threshold, this trajectory is output and the regional residence information of the number in Redis is updated. Such an automated process helps to reduce the workload of manual intervention and improve processing efficiency. Outputting base station residence data and regional trajectory information helps to understand the user's stay in different areas in real time. This is of guiding significance for the operation and management of physical business halls, and corresponding decisions and adjustments can be made based on real-time data.
[0121] Setting a dwell time threshold helps filter out short-term stays, allowing the system to focus more on more significant user activities. This can improve the quality of dwell data and reduce unnecessary information interference. Overall, this process automatically determines the user's dwelling status at the base station and outputs meaningful regional trajectory information based on the set threshold, providing real-time and accurate data support for passenger flow analysis, which is beneficial to more refined operations and decision-making.
[0122] In one embodiment, the second user information includes multiple user characteristics of the second user; the above step 400 may specifically perform the following steps:
[0123] S410, based on a preset weight rule, creating a feature weight for each user feature, one user feature corresponds to one feature weight, and the preset weight rule is determined based on the customer profile;
[0124] S420, determining an intention value corresponding to the second user based on a feature weight corresponding to each user feature, where the intention value is used to represent the second user's intention to enter the target business location;
[0125] S430, mapping the intention value to the target probability based on a preset function.
[0126] Optionally, in a specific implementation of the present application, the signaling processing and analysis unit may further include a regional passenger flow statistics submodule and a regional customer number arrival hall prediction submodule. The specific functions of the regional passenger flow statistics submodule and the regional customer number arrival hall prediction submodule are introduced below:
[0127] The regional passenger flow statistics submodule converts the range circled by business personnel in the system into a list of target base stations, and associates the list of target base stations with the compressed full-volume trajectory data in the distributed database cluster. It can then select the number of customers under the target base station within a fixed time range, sum the number of customers, and calculate the customer list and number of customers within the circled range.
[0128] The regional customer arrival prediction submodule first uses data mining technology to output user portraits and static customer group models based on the business attributes of the business hall users. Then, the real-time statistical regional customer flow is matched with the customer group model of this type of user, and the intersection of the two is taken. Finally, the customer flow entering the mobile business hall is predicted based on the intersection of the people. The specific process is as follows:
[0129] i. Extract the following customer characteristics from the database:
[0130] Serial number Feature Name 1 age 2 Network access time 3 Call activity drops or increases sharply 4 Traffic activity drops or increases sharply 5 Phone balance 6 Is the traffic volume exceeded this month? 7 Number of calls to 10086 in the past week 8 Number of logins to Mobile Huishenghuo in the past week 9 Number of complaints in the past week 10 Number of visits to mobile business halls in the past week 11 Have you applied for broadband in the past month? 12 Whether to subscribe to value-added services in the past month 13 Have you changed your package in the past month? 14 Is the card in an abnormal state? 15 Have you changed the terminal in the past month? 16 Is there a college entrance examination graduate in your family?
[0131] Extract user tags based on user business attributes and generate different user groups and user models.
[0132] ii. Figure 6 As shown, the real-time passenger flow crowd and static users are modeled and matched.
[0133] iii. Predict the customer flow into the business hall.
[0134] According to the matched target customer group, the corresponding full weight is given, and the calculation formula is as follows:
[0135] Y(X)=W1*X1+W2*X2+W3*X3+…+W n *X n
[0136] Among them, Y(X) is the above intention value, W n is the feature weight of the nth feature, X n is the nth feature in the second user information.
[0137] Then through the sigmoid function The result is mapped to a value between 0 and 1, and the probability of each user entering the business hall is calculated. The specific probability calculation formula is as follows:
[0138]
[0139] Among them, P(X) is the above target probability.
[0140] Optionally, in the embodiment of the present application, the following introduces the area result display unit selected by the service personnel of the signaling data real-time analysis area client device:
[0141] The business personnel select the regional result display unit so that the business personnel can directly perform relevant operations on the computer according to the actual business scenario. First, determine the event store, then upload the store's latitude and longitude and circle the geographical range covering the target users. Then, the system will calculate and display the number of target customers within the circled range in real time, and estimate the number of customers entering the hall.
[0142] Optionally, in an embodiment of the present application, the regional passenger flow to the hall prediction method provides a fast-response, pre-analysis prediction algorithm based on the business portrait of potential customers coming to the hall. Based on historical data, extract the customer's age, network access time, sharp drop or sharp increase in call activity, sharp drop or sharp increase in traffic activity, call balance, number of calls to 10086 in the past week, number of complaints in the past week, number of visits to the mobile business hall in the past week, whether the package has been changed in the past month, whether the number card is in an abnormal state, whether the terminal has been changed in the past month, and other user portrait features from the database, give the features corresponding weights, and then calculate the probability of each user entering the business hall according to the formula.
[0143] Optionally, in the embodiment of the present application, it is explained from three aspects: a customer location signaling collection unit, a signaling processing and analysis unit, and a user selection area result display unit.
[0144] First, the customer location signaling collection unit collects massive amounts of location signaling data, which are stored in real time and recorded in segments every 10 minutes. They are the data source for the signaling processing and analysis unit.
[0145] Then, the signaling processing and analysis unit analyzes and processes the massive location signaling data. Specifically, it includes: trajectory compression submodule, regional residence calculation submodule, regional passenger flow statistics submodule, and regional passenger flow to hall prediction submodule. The trajectory compression submodule is mainly responsible for compressing the massive location signaling data more efficiently, and the storage capacity and signaling analysis efficiency of the compressed signaling are significantly improved. The regional residence calculation submodule is mainly responsible for real-time recording of user signaling in the area, determining the entry time, active time, and tracking of geographic location trajectory. Due to the particularity of the business, the processing cycle of this capability is at the minute level, and the number of processing per minute is between 50 million and 100 million. At the same time, the entire residence time record of the user adheres to the division unit of 10 minutes, so that the latest trajectory location of the user within the hour can be located. The residence calculation involves three judgments: the first judgment is whether it is in the same location, the second judgment is whether it is in the same area, and the third judgment is whether the residence time exceeds 10 minutes. The regional passenger flow statistics submodule mainly converts the area range circled in the system into a target base station list, and associates the target base station list with the compressed full amount of resident trajectory data. Then, the number of customers under the target base station list can be selected and the number of customers can be summed up to calculate the number of dynamic resident users within the circled range. The regional passenger flow to the hall prediction submodule first performs customer group profiling for daily hall-entering users, and outputs user model data and user activity data that match different types of activities. The process of this module is to first output the static customer group model and user portrait, and then cross-match with the dynamic resident users to take the intersection of the two. Finally, the model prediction is performed based on the activity data of the intersection user group and the static customer group, so as to estimate the various conversion rate data after arriving at the hall.
[0146] Finally, the analysis area selected by the business personnel, the number of customers in the area, and the expected number of customers visiting the hall are displayed, which serves as the basis for subsequent closed-loop analysis and optimization.
[0147] In these optional embodiments, the improved customer flow prediction method of the present application is not limited to fixed areas and fixed times, and has the ability of real-time statistics and analysis; it can also realize compressed storage of massive data, saving 95% of storage space, improving data positioning speed, and improving real-time statistical efficiency from minutes to seconds; after analyzing the customers selected in the area, it can also predict the probability of customers entering the business hall, helping business personnel to quickly adjust the area demarcation range to increase the number of customers entering the business hall and improve business conversion rate.
[0148] The organic combination of the above steps is designed to support real-time customer flow analysis in any area, and can predict the probability of customers entering the business hall based on their business attributes, thereby improving customer satisfaction, increasing the accuracy of resource allocation, and reducing resource waste.
[0149] Figure 7A schematic diagram of the structure of a passenger flow prediction device provided in another embodiment of the present application is shown. For the sake of ease of explanation, only the parts related to the embodiment of the present application are shown.
[0150] Reference Figure 7 , the passenger flow prediction device may include:
[0151] An acquisition module 701 is used to acquire signaling data of all base stations in a target area, where the target area is determined based on a target business location;
[0152] A first determination module 702 is used to determine first user information of a first user whose stay time in the target area is greater than a preset time based on the communication data of all base stations;
[0153] A matching module 703 is used to match the first user information based on the pre-acquired customer profile of the target business location, and determine a target user among the first users who meets the customer profile, where the customer profile is used to characterize the customer type;
[0154] A second determination module 704, configured to determine a target probability of the target user entering a target business location based on second user information corresponding to the target user;
[0155] The prediction module 705 is used to predict the customer flow of the target business location based on the target probability of the target user entering the target business location.
[0156] In one embodiment, the passenger flow prediction device may further include:
[0157] A collection module, used for collecting original signaling files generated by all base stations in the target area at every first preset period based on a preset transmission protocol, where the original signaling files include multiple fields, and different fields correspond to different interactive information, where the interactive information is generated by communication interaction between the user and the base station;
[0158] A download module, used to download the original signaling file and the data file corresponding to the original signaling file when the original signaling file is in an unparsed state;
[0159] A reorganization module is used to reorganize the format of the original signaling file and the data file based on the original signaling file and the data file to obtain a target file;
[0160] A storage module, used to store the target file in the message middleware;
[0161] In one embodiment, the acquisition module 701 may include:
[0162] The first acquisition submodule is used to acquire the signaling data of all base stations in the area where the target area is located from the message middleware, and the target file includes the signaling data.
[0163] In one embodiment, the recombination module may include:
[0164] A first parsing submodule, used for parsing the original signaling file and the data file to obtain a plurality of initial fields;
[0165] A second acquisition submodule is used to select a target field that meets the preset selection rule from multiple initial fields based on the preset selection rule;
[0166] The filtering submodule is used to clean and filter the target field to obtain the target data;
[0167] The reorganization submodule is used to reorganize the target data into a target file in a preset format based on the format rules of the preset format.
[0168] In one embodiment, the acquisition module may include:
[0169] A third acquisition submodule is used to acquire the corresponding mutex locks through multiple acquisition nodes respectively every first preset period, the acquisition nodes are used to acquire the original signaling files, and one acquisition node corresponds to one mutex lock;
[0170] A fourth acquisition submodule, used for acquiring, for any first node among the plurality of acquisition nodes, a permission status of a first mutex lock corresponding to the first node;
[0171] A first collection submodule is used to collect original signaling files generated by all base stations in the target area through the first node when the authority status is passed;
[0172] The stop submodule is used to stop the collection work of the first node when the permission status is not passed.
[0173] In one embodiment, the first determining module 702 may include:
[0174] A first determination submodule is used to determine the trajectory information of multiple users in the area where the target area is located based on the communication data of all base stations;
[0175] A compression submodule, for compressing the trajectory information corresponding to each user in a time period based on a preset time period compression rule, to obtain target trajectories of multiple users in the area where the target area is located;
[0176] a fifth acquisition submodule, configured to acquire, for any second user among the plurality of users, from the first trajectory corresponding to the second user, a first base station at which the second user is located at a first moment, and a second base station at which the second user is located at a second moment, where the second moment is a moment after a second preset period has passed from the first moment;
[0177] A second determination submodule is used to determine a residence result of the second user based on the similarities and differences between the first base station and the second base station, and the target area, where the residence result is used to indicate whether the residence time of the second user in the target area is greater than a preset time;
[0178] The sixth acquisition submodule is used to acquire user information corresponding to the second user when the residence result indicates that the residence time of the second user in the target area is greater than a preset time.
[0179] In one embodiment, the compression submodule may include:
[0180] A creation unit is used to create multiple time windows. The time interval of each time window is the same, and one time window corresponds to one time range.
[0181] a splitting unit, configured to split, for any third user among the multiple users, first track information corresponding to the third user into a plurality of sub-information based on a time interval, wherein one sub-information includes track information within a time interval;
[0182] A storage unit, used to store the plurality of sub-information in a plurality of time windows in sequence according to the time sequence, wherein one time window stores one sub-information;
[0183] A first acquisition unit is used to acquire the trajectory position corresponding to the last moment in each time window;
[0184] A sorting unit is used to sort the trajectory positions corresponding to the last moment in each time window in chronological order to obtain a sorting result;
[0185] The first determining unit is used to determine the target trajectory of the third user in the area where the target area is located based on the sorting result.
[0186] In one embodiment, the second determining submodule may include:
[0187] A second acquisition unit is used to acquire a first residence time length of a second user staying in a first area when the first base station and the second base station are the same, and the first base station belongs to the first area;
[0188] A second determining unit, configured to determine the first area as a residence area of the second user when the first residence time is longer than a preset time;
[0189] The first output unit is used to output a first result when the residence area is the target area, where the first result is used to indicate that the residence time of the second user in the target area is greater than a preset time.
[0190] In one embodiment, the second determining submodule may further include:
[0191] A third acquisition unit is used to, when the first base station and the second base station are different, if the standard area to which the second base station belongs is the first area, acquire a second residence time length of the second user staying in the first area;
[0192] A third determining unit, configured to determine the first area as a residence area of the second user when the second residence time is longer than a preset time;
[0193] The second output unit is used to output a second result when the residence area is not the target area, where the second result is used to indicate that the residence time of the second user in the target area is not greater than a preset time.
[0194] In one embodiment, the second user information includes multiple user characteristics of the second user; the second determination module 704 may include:
[0195] Create a submodule to create feature weights for each user feature based on preset weight rules. One user feature corresponds to one feature weight. The preset weight rules are determined based on the customer profile.
[0196] A third determination submodule, configured to determine an intention value corresponding to the second user based on a feature weight corresponding to each user feature, the intention value being used to represent the second user's intention to enter the target business location;
[0197] The mapping submodule is used to map the intention value to the target probability based on a preset function.
[0198] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application, and are devices corresponding to the above-mentioned battery thermal runaway warning method. All implementation methods in the above-mentioned method embodiment are applicable to the embodiments of the device. Its specific functions and technical effects can be found in the method embodiment part, which will not be repeated here.
[0199] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0200] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0201] The device may include a processor 801 and a memory 802 storing program instructions.
[0202] When the processor 801 executes the program, the steps in any of the above method embodiments are implemented.
[0203] Exemplarily, the program may be divided into one or more modules / units, one or more modules / units are stored in the memory 802 and executed by the processor 801 to complete the present application. One or more modules / units may be a series of program instruction segments capable of completing a specific function, and the instruction segments are used to describe the execution process of the program in the device.
[0204] Specifically, the processor 801 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0205] The memory 802 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 802 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 802 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 802 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 802 is a non-volatile solid-state memory.
[0206] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) readable storage media (e.g., memory devices) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0207] The processor 801 implements any one of the methods in the above embodiments by reading and executing program instructions stored in the memory 802 .
[0208] In one example, the electronic device may further include a communication interface 803 and a bus 810. The processor 801, the memory 802, and the communication interface 803 are connected via the bus 810 and communicate with each other.
[0209] The communication interface 803 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0210] Bus 810 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 810 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0211] In addition, in combination with the method in the above embodiment, the embodiment of the present application can provide a storage medium for implementation. The storage medium stores program instructions; when the program instructions are executed by a processor, any one of the methods in the above embodiment is implemented.
[0212] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0213] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0214] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0215] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0216] The functional modules shown in the above block diagram can be implemented as hardware, software, firmware or their combination. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), suitable firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. Programs or code segments can be stored in machine-readable media, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable media" can include any medium that can store or transmit information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. Code segments can be downloaded via computer grids such as the Internet, intranets, etc.
[0217] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0218] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0219] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A passenger flow prediction method, characterized in that: The method comprises: Acquiring signaling data of all base stations within a target area, wherein the target area is determined based on a target business location; Determining, based on the communication data of all the base stations, first user information of a first user whose stay time in the target area is greater than a preset time; Based on the pre-acquired customer profile of the target business location, matching the first user information to determine a target user among the first users who meets the customer profile, where the customer profile is used to characterize the customer type; Determining a target probability of the target user entering the target business location based on the second user information corresponding to the target user; The customer flow of the target business location is predicted based on the target probability of the target user entering the target business location.
2. The method according to claim 1, characterized in that: Before acquiring the signaling data of all base stations in the area where the target area is located, the method further includes: At every first preset period, based on a preset transmission protocol, original signaling files generated by all base stations in the area where the target area is located are collected, wherein the original signaling files include multiple fields, and different fields correspond to different interaction information, and the interaction information is generated by communication interaction between the user and the base station; When the original signaling file is in an unparsed state, downloading the original signaling file and a data file corresponding to the original signaling file; Based on the original signaling file and the data file, reorganizing the format of the original signaling file and the data file to obtain a target file; Storing the target file in the message middleware; The obtaining of signaling data of all base stations in the target area includes: The signaling data of all base stations in the area where the target area is located is obtained from the message middleware, and the target file includes the signaling data.
3. The method according to claim 2, characterized in that The step of reorganizing the format of the original signaling file and the data file based on the original signaling file and the data file to obtain a target file includes: Parsing the original signaling file and the data file to obtain a plurality of initial fields; Based on a preset selection rule, selecting a target field that meets the preset selection rule from the multiple initial fields; Cleaning and filtering the target field to obtain target data; Based on the format rules of the preset format, the target data is reorganized into the target file of the preset format.
4. The method according to claim 2, characterized in that: The collecting of original signaling files generated by all base stations in the area where the target area is located at every first preset period based on a preset transmission protocol includes: Every first preset period, a plurality of collection nodes are used to respectively acquire corresponding mutex locks, wherein the collection nodes are used to collect original signaling files, and one collection node corresponds to one mutex lock; For any first node among the multiple acquisition nodes, obtaining the permission status of a first mutex lock corresponding to the first node; When the permission status is passed, collecting original signaling files generated by all base stations in the area where the target area is located through the first node; When the permission status is not passed, the collection work of the first node is stopped.
5. The method according to claim 1, characterized in that The determining, based on the communication data of all the base stations, the first user information of the first user whose stay time in the target area is longer than the preset time includes: Determining trajectory information of multiple users in the area where the target area is located based on the communication data of all the base stations; Based on a preset time period compression rule, time period compression is performed on the trajectory information corresponding to each user to obtain target trajectories of the multiple users in the area where the target area is located; For any second user among the multiple users, obtaining, from the first trajectory corresponding to the second user, a first base station at which the second user is located at a first moment, and a second base station at which the second user is located at a second moment, where the second moment is a moment after a second preset period has passed from the first moment; Based on the similarities and differences between the first base station and the second base station, and the target area, determining a residence result of the second user, the residence result being used to indicate whether the residence time of the second user in the target area is greater than the preset time; When the residence result indicates that the residence time of the second user in the target area is greater than the preset time, user information corresponding to the second user is obtained.
6. The method according to claim 5, characterized in that The time period compression is performed on the trajectory information corresponding to each user based on a preset time period compression rule to obtain the target trajectories of the multiple users in the area where the target area is located, including: Create multiple time windows. The time interval of each time window is the same. One time window corresponds to one time range. For any third user among the multiple users, split the first track information corresponding to the third user into multiple sub-information based on the time interval, where one sub-information includes track information within one of the time intervals; The plurality of sub-information are sequentially stored in the plurality of time windows in chronological order, with one time window storing one sub-information; Get the trajectory position corresponding to the last moment in each time window; Sort the trajectory positions corresponding to the last moment in each time window in chronological order to obtain the sorting result; Based on the sorting result, a target trajectory of the third user in the area where the target area is located is determined.
7. The method according to claim 5, characterized in that The determining the residence result of the second user based on the similarities and differences relationship between the first base station and the second base station and the target area includes: When the first base station and the second base station are the same, obtaining a first residence time of the second user in a first area, and the first base station belongs to the first area; When the first residence time is longer than the preset time, determining the first area as the residence area of the second user; In a case where the residence area is the target area, a first result is output, where the first result is used to indicate that the residence time of the second user in the target area is greater than the preset time.
8. The method according to claim 7, characterized in that The determining the residence result of the second user based on the similarities and differences relationship between the first base station and the second base station and the target area further includes: In the case that the first base station and the second base station are different, if the standard area to which the second base station belongs is the first area, obtaining a second residence time length of the second user staying in the first area; When the second residence time is longer than the preset time, determining the first area as the residence area of the second user; In a case where the resident area is not the target area, a second result is output, where the second result is used to indicate that the stay time of the second user in the target area is not greater than the preset time.
9. The method according to claim 1, characterized in that: The second user information includes a plurality of user characteristics of the second user; The determining, based on the second user information corresponding to the target user, a target probability of the target user entering the target business location includes: Based on a preset weight rule, a feature weight is created for each user feature, one user feature corresponds to one feature weight, and the preset weight rule is determined based on the customer profile; determining, based on a feature weight corresponding to each of the user features, an intention value corresponding to the second user, the intention value being used to represent the second user's intention to enter the target business location; Based on a preset function, the intention value is mapped to the target probability.
10. A passenger flow prediction device, characterized in that: The device comprises: An acquisition module, used to acquire signaling data of all base stations in a target area, wherein the target area is determined based on a target business location; A first determining module, configured to determine, based on the communication data of all the base stations, first user information of a first user whose stay time in the target area is greater than a preset time; a matching module, configured to match the first user information based on the pre-acquired customer profile of the target business location, and determine a target user among the first users who meets the customer profile, wherein the customer profile is used to characterize the customer type; A second determination module, configured to determine a target probability of the target user entering the target business location based on second user information corresponding to the target user; The prediction module is used to predict the customer flow of the target business location based on the target probability of the target user entering the target business location.
11. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the passenger flow prediction method according to any one of claims 1 to 9 is implemented.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the passenger flow prediction method according to any one of claims 1 to 9 is implemented.
