A method, device and storage medium for predicting waiting time

By using the target network model and data standardization strategy to process characteristic data in queuing scenarios in the field of financial technology, the problem of inaccurate waiting time prediction in the existing technology has been solved, and accurate prediction of waiting time in financial technology queues has been achieved, improving the efficiency of Customer experience.

CN112633567BActive Publication Date: 2024-10-18WEBANK (CHINA)
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011485847.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-16
Publication Date
2024-10-18
Estimated Expiration
2040-12-16

AI Technical Summary

Technical Problem

Existing Technology In the field of financial technology, prediction methods based on the latest queue waiting time lead to inaccurate waiting time prediction results and poor customer online consultation experience.

Method used

By calling the target network model and data standardization strategy corresponding to the current queuing scenario from the distributed cache cluster, the characteristic data in the current queuing scenario is obtained and processed, and machine learning and reinforcement learning models are used to accurately predict the waiting time.

Benefits of technology

It achieves accurate prediction of the waiting time for online service queues and improves customers’ online consultation experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112633567B_ABST
    Figure CN112633567B_ABST
Patent Text Reader

Abstract

The present application provides a method, device and computer-readable storage medium for predicting waiting time, wherein the method comprises: if a customer is in a queue, calling a target network model and a data standardization strategy corresponding to the current queueing scenario from a distributed cache cluster; obtaining characteristic data of the customer's queueing process in the current queueing scenario; performing standardization processing on the characteristic data based on the data standardization strategy to obtain a characteristic value; inputting the characteristic value into the target network model to obtain a predicted value output by the target network model; processing the predicted value to obtain the predicted waiting time of the customer; and realizing accurate prediction of the waiting time required for the online service queueing service, thereby effectively improving the customer's online consultation experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of process control technology of financial technology (Fintech), and relate to but are not limited to a method, device and computer-readable storage medium for predicting waiting time. Background Art

[0002] With the development of computer technology, more and more technologies are being applied in the financial field. Traditional finance is gradually transforming into financial technology (Fintech). However, due to the security and real-time requirements of the financial industry, Fintech also places higher demands on technology.

[0003] In the field of financial technology, online customer service systems are already quite common. In related technologies, during the process of online consultation, customers often encounter the situation where there are too many people online, and they need to wait in line. At present, when predicting the waiting time in line, the device roughly estimates the waiting time required for the current customer based on the recent waiting time in line, resulting in inaccurate prediction results for the waiting time and poor customer online consultation experience. Summary of the invention

[0004] The embodiments of the present application provide a waiting time prediction method, device and computer-readable storage medium, which solve the problem in the related art that when predicting the waiting time in a queue, the device makes a rough estimate of the waiting time required for the current customer to queue based on the most recent waiting time in the queue, resulting in inaccurate prediction results of the waiting time and poor customer online consultation experience.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] The present application embodiment provides a method for predicting a waiting time, including:

[0007] If a customer enters the queue, the target network model and data normalization strategy corresponding to the current queue scenario are called from the distributed cache cluster;

[0008] Acquire characteristic data of the customer queuing process in the current queuing scenario;

[0009] Based on the data standardization strategy, the characteristic data is standardized to obtain a characteristic value;

[0010] Inputting the characteristic value into the target network model to obtain a predicted value output by the target network model;

[0011] The predicted value is processed to obtain the predicted waiting time of the customer.

[0012] The present application embodiment provides a waiting time prediction device, including:

[0013] The memory is used to store executable instructions; the processor is used to implement the above method when executing the executable instructions stored in the memory.

[0014] An embodiment of the present application provides a computer-readable storage medium storing executable instructions for causing a processor to execute and implement the above method.

[0015] The embodiments of the present application have the following beneficial effects:

[0016] When a customer enters the queue, the target network model and data standardization strategy corresponding to the current queue scenario are called from the distributed cache cluster; characteristic data of the customer's queue process in the current queue scenario is obtained; the characteristic data is standardized based on the data standardization strategy to obtain a characteristic value; the characteristic value is input into the target network model to obtain a predicted value output by the target network model; the predicted value is processed to obtain the customer's predicted waiting time; in this way, the problem in the related technology that when predicting the waiting time in the queue, the device roughly estimates the waiting time required for the current customer to queue based on the most recent waiting time in the queue, resulting in inaccurate prediction results of the waiting time and poor customer online consultation experience is solved; after the customer enters the queue, the appropriate target network model and data standardization strategy are selected in combination with the current queue scenario, and the real-time characteristic data in the current queue scenario is processed, so as to achieve accurate prediction of the waiting time required for the online service queue service, and effectively improve the customer's online consultation experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is an optional architecture diagram of a server provided in an embodiment of the present application;

[0018] Figure 2 This is an optional flowchart of a method for predicting waiting time provided in an embodiment of the present application;

[0019] Figure 3 This is an optional flowchart of a method for predicting waiting time provided in an embodiment of the present application;

[0020] Figure 4 It is a schematic diagram of the average and directional median average standardization with a median of 50 provided in an embodiment of the present application;

[0021] Figure 5 This is an optional flowchart of a method for predicting waiting time provided in an embodiment of the present application;

[0022] Figure 6 It is a schematic diagram of constructing a training set, a test set, and a validation set provided in an embodiment of the present application;

[0023] Figure 7This is an optional flowchart of a method for predicting waiting time provided in an embodiment of the present application;

[0024] Figure 8 This is an optional flowchart of a method for predicting waiting time provided in an embodiment of the present application;

[0025] Fig. 9 It is an optional flow chart of the waiting time prediction method provided in the embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0027] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meaning as those commonly understood by those skilled in the art of the technical field of the embodiments of the present application. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0028] 1) Standard score (Z-score): Also known as Z-score, it is a method of data standardization. After processing, the data conforms to the standard normal distribution. The Z-score uses the standard deviation as a ruler to measure the distance of a certain original score from the mean. The number of standard deviations in this distance is the same as the Z-score. This determines the position of this data in the overall data.

[0029] 2) Min-max normalization: Linearly transform the original data and map it to [0,1].

[0030] 3) Median average method: a [0, 1] normalization method that makes the median of the data close to the mean.

[0031] Here, a brief introduction is given to the waiting time prediction methods involved in the relevant technologies: There are roughly the following prediction methods in the prior art: prediction based on the recent waiting time in queues; prediction based on time series data regression analysis of waiting time in queues; prediction based on environmental characteristics during queuing (such as queue length, customer service busyness, etc.); It should be pointed out that in the regression prediction and supervised learning prediction models of multi-scenario business queue time, since one model is only applicable to one scenario, applying the model in one scenario to another scenario cannot achieve accurate prediction, and thus often cannot achieve good results in waiting time prediction; a single prediction model has a large generalization error, and it is impossible to balance prediction accuracy and generalization error when used in multiple businesses; It can be seen that the above prediction methods can only achieve a rough estimate of the waiting time, and lack a general model construction solution, resulting in inaccurate prediction results for the waiting time and poor customer online consultation experience.

[0032] The waiting time prediction method provided by the present application has at least the following beneficial effects: using real-time queuing data and selected features, constructing a machine learning method and reinforcement learning model that are adapted to a variety of queuing scenarios, and providing a waiting time prediction method for online service queuing incoming services; designing and using a data standardization method that supports the above model based on the environmental characteristics of customer incoming calls, and then selecting a suitable processing strategy based on the current scenario to convert the queuing data into trainable feature data, and using the feature data standardized by this method to have a better effect when processing queuing type (conforming to exponential distribution) data; designing and using a queuing time prediction result evaluation model, which has a better evaluation effect on the queuing waiting time results predicted by the above method in multiple business scenarios.

[0033] The following describes an exemplary application of the waiting time prediction device provided in the embodiment of the present application. The waiting time prediction device provided in the embodiment of the present application can be implemented as a server or a terminal. The following describes an exemplary application of the waiting time prediction device implemented as a server.

[0034] See also Figure 1 , Figure 1 is a schematic diagram of the structure of the server 100 provided in an embodiment of the present application, Figure 1 The server 100 shown includes: at least one processor 110, at least one network interface 120, a user interface 130 and a memory 150. The various components in the server 100 are coupled together via a bus system 140. It is understood that the bus system 140 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 140 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 140 is not described in detail. Figure 1 Various buses are labeled as bus system 140 .

[0035] The processor 110 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0036] The user interface 130 includes one or more output devices 131 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 130 also includes one or more input devices 132, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0037] The memory 150 may be removable, non-removable or a combination thereof. Exemplarily, hardware devices include solid-state memory, hard disk drive, optical disk drive, etc. The memory 150 may optionally include one or more storage devices physically away from the processor 110. The memory 150 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 150 described in the embodiments of the present application is intended to include any suitable type of memory. In some embodiments, the memory 150 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as exemplarily described below.

[0038] Operating system 151, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0039] A network communication module 152, for reaching other computing devices via one or more (wired or wireless) network interfaces 120, exemplary network interfaces 120 include: Bluetooth, Wireless Fidelity (WiFi), and Universal Serial Bus (USB);

[0040] The input processing module 153 is used to detect one or more user inputs or interactions from one of the one or more input devices 132 and translate the detected inputs or interactions.

[0041] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 1 A waiting time prediction device 154 stored in the memory 150 is shown. The waiting time prediction device 154 may be a waiting time prediction device in the server 100. It may be software in the form of a program or a plug-in, and includes the following software modules: a calling module 1541, an acquisition module 1542, and a processing module 1543. These modules are logical, and therefore may be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.

[0042] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the waiting time prediction method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), DSP, programmable logic device (Programmable Logical Device, PLD), complex programmable logic device (Complex Programmable Logic Dev ice, CPLD), field programmable gate array (Field-Programmable Gate Array, FPGA) or other electronic components.

[0043] The following will describe the waiting time prediction method provided in the embodiment of the present application in combination with the exemplary application and implementation of the server 100 provided in the embodiment of the present application.

[0044] See also Figure 2 , Figure 2 is an optional flow chart of a method for predicting the waiting time provided in an embodiment of the present application, which will be combined with Figure 2 The steps shown are explained;

[0045] Step S201: If a customer enters the queue, a target network model and a data standardization strategy corresponding to the current queue scenario are called from the distributed cache cluster.

[0046] In the embodiment of the present application, when the server determines that the customer is in line, the target network model and data standardization strategy corresponding to the current queuing scenario are called from the distributed cache cluster redis. The target network model and data standardization strategy are both used to process the characteristic data of the customer queuing process in the current queuing scenario.

[0047] Step S202, obtaining characteristic data of customers in the queuing process in the current queuing scenario.

[0048] In an embodiment of the present application, after a customer enters the queue, the server can first obtain the original data of the customer's queue process in the current queue scenario, and process the original data to obtain characteristic data of the customer's queue process in the current queue scenario.

[0049] Here, the server can process the raw data in two levels in sequence. The first level performs data filtering and cleaning on the raw data; the second level performs data organization and feature selection on the data processed by the first level.

[0050] In the first level of processing, after filtering out invalid data based on actual business scenarios, you can choose to clean the original data in the following ways to improve data quality. It can be understood that cleaning is a further filtering; the data in the following business scenarios are all data that need to be cleaned:

[0051] a) Whether to filter customers who call directly: Yes. Scenarios with a large number of waiting time = 0 will affect the prediction accuracy;

[0052] b) Whether to filter abnormal waiting time: Yes, ignore abnormal data;

[0053] c) Whether to filter out customers who have not connected: Yes, it is not easy to fit, and the generalization ability of the model should be strengthened;

[0054] d) Whether to filter sessions with abnormal service duration: Yes, it is difficult to fit, and the generalization ability of the model should be enhanced;

[0055] e) Whether to filter excessive waiting time: Yes, the distribution is positively skewed, which will lead to overestimation of the results calculated by the model;

[0056] f) Whether to filter out active session exits: Yes. The waiting time of customers who actively exit the queue is not a reference.

[0057] In the second-level processing, the data processed at the first level is processed by using the relevant theories and methods of feature engineering, through data cleaning, principal component analysis and other means, to sort out the data obtained by processing the initial data and perform feature selection to obtain the following feature selection results:

[0058] a) The recent average service time (time range), in seconds;

[0059] b) The recent average service time (number range), in seconds;

[0060] c) Current number of customer service representatives (number of idle customers), in units;

[0061] d) Current number of customer service staff (total), in units;

[0062] e) Current queue position, in units;

[0063] f) Total number of queues, in units;

[0064] g) Line entry time (time point), in milliseconds;

[0065] h) Product type, enumeration type;

[0066] Here, through the analysis and comparison of the customer service queue inventory data, it is determined that product-based modeling will be used in subsequent modeling. Therefore, the "product type" feature is cancelled. In terms of whether to consider time series analysis, the "recent average service time" is used instead of the regression of time series data.

[0067] It can be seen that the feature data of the customer queuing process in the current queuing scenario obtained by this application includes multiple different feature data.

[0068] Step S203: standardize the feature data based on the data standardization strategy to obtain feature values.

[0069] In an embodiment of the present application, after the server obtains the characteristic data of the customer queuing process in the current queuing scenario, it standardizes the characteristic data based on the data standardization strategy to obtain the characteristic value, that is, the characteristic data in the actual scenario is processed into content that can be processed by the target network model according to the data standardization strategy.

[0070] Here, the feature data of the customer queuing process in the current queuing scenario obtained by the present application includes multiple different feature data, and the multiple data standardization strategies corresponding to the multiple feature data are not completely the same.

[0071] Step S204, inputting the characteristic value into the target network model to obtain the predicted value output by the target network model.

[0072] In the embodiment of the present application, the server inputs the characteristic value into the target network model to obtain the predicted value output by the target network model.

[0073] Step S205: Process the predicted value to obtain the predicted waiting time of the customer.

[0074] In an embodiment of the present application, the server processes the predicted value to obtain the predicted waiting time of the customer, including: the server converts the predicted value based on the actual waiting time after the customer comes online to obtain the predicted waiting time of the customer.

[0075] The waiting time prediction method provided by the present application is as follows: when a customer enters the queue, a target network model and a data standardization strategy corresponding to the current queueing scenario are called from a distributed cache cluster; characteristic data of the customer's queueing process in the current queueing scenario is obtained; characteristic values ​​are standardized based on the data standardization strategy to obtain characteristic values; the characteristic values ​​are input into the target network model to obtain the predicted values ​​output by the target network model; the predicted values ​​are processed to obtain the predicted waiting time of the customer; in this way, the problem that when predicting the waiting time in the queue in the related technology, the device roughly estimates the waiting time required for the current customer to queue based on the most recent waiting time in the queue, resulting in inaccurate prediction results of the waiting time and poor customer online consultation experience is solved; after the customer enters the queue, a suitable target network model and data standardization strategy are selected in combination with the current queueing scenario, and the real-time characteristic data in the current queueing scenario is processed, and a technical concept for predicting the waiting time of the customer that is suitable for multiple scenarios is proposed, which realizes the accurate prediction of the waiting time required for the online service queue incoming business, and effectively improves the customer's online consultation experience.

[0076] See also Figure 3 , Figure 3 is an optional flow chart of a method for predicting the waiting time provided in an embodiment of the present application, which will be combined with Figure 3 The steps shown are explained;

[0077] Step S301: If a customer enters the queue, a target network model and a data standardization strategy corresponding to the current queue scenario are called from the distributed cache cluster.

[0078] Step S302, obtaining characteristic data of customers in the queuing process in the current queuing scenario.

[0079] Among them, the characteristic data includes the current number of customer service staff in the current queuing scenario, the current number of idle customer service staff, the total number of queues, the current queue position, the average service time, and the time when the customer enters the queue.

[0080] That is to say, in the embodiment of the present application, the real-time feature data in the current queuing scenario includes at least the above 6 types. These real-time data serve as the basis for predicting the waiting time, providing a strong guarantee for obtaining an accurate prediction time.

[0081] Furthermore, the above 6 types of real-time feature data are processed in a standardized manner to obtain the input content of the target model. In the embodiment of the present application, 4 processing methods involving 6 types of data are used as an example to illustrate that different feature data are matched with data standardization strategies to ensure that each type of data is optimally standardized.

[0082] Step S303, respectively obtain the first median corresponding to the number of customers currently being served, the second median corresponding to the number of customers currently being idle, the third median corresponding to the total number of queues, and the fourth median corresponding to the current queue position.

[0083] Step S304: Calculate the sum of the first median and the number of customers currently being served to obtain a first parameter, and generate a first eigenvalue based on the first parameter and the first median.

[0084] Here, the current number of customer service customers x1 and the first median M1 are substituted into formula (1) to obtain the first eigenvalue X1 corresponding to x1;

[0085] Where, formula (1) is

[0086] Step S305: Calculate the sum of the second median and the current customer service idle number to obtain a second parameter, and generate a second eigenvalue based on the second parameter and the second median.

[0087] Here, the current customer service idle number x2 and the second median M2 are substituted into formula (2) to obtain the second eigenvalue X2 corresponding to x2;

[0088] Where, formula (2) is

[0089] Step S306: Calculate the sum of the third median and the total number of queues to obtain a third parameter, and generate a third eigenvalue based on the third parameter and the third median.

[0090] Here, the total queue number x3 and the third median M3 are substituted into formula (3) to obtain the third eigenvalue X3 corresponding to x3;

[0091] Where, formula (3) is

[0092] Step S307, calculating the sum of the fourth median and the current queue position to obtain a fourth parameter, and generating a fourth eigenvalue based on the fourth parameter and the fourth median.

[0093] Here, the current queue position x4 and the fourth median M4 are substituted into formula (4) to obtain the fourth eigenvalue X4 corresponding to x4;

[0094] Where, formula (4) is

[0095] The median involved in this application, also known as the median, refers to the number in the middle of a set of data arranged in order, representing a value in a sample, population or probability distribution, which can divide the set of values ​​into two equal parts. For a finite set of numbers, all the observed values ​​can be sorted and the one in the middle can be found as the median. If there are an even number of observed values, the average of the two middle values ​​is usually taken as the median.

[0096] Here, the current number of customer service customers, the current number of customer service customers that are idle, and the total number of queues are processed using the above formulas (1)-(3), i.e., the reverse median average method. Alternatively, the log function conversion, atan function conversion, Decimal Scaling, etc. may be used for processing. In this embodiment, by standardizing the feature data, when processing queue type (conforming to exponential distribution) data, the standardized feature data selects a processing method corresponding to the type of feature data in the customer queuing process, thereby achieving more accurate processing.

[0097] Among them, M represents the median, and the independent variable X in the above formula can be the current queue position. After determining the median corresponding to the current queue position, based on the above median average method, the fourth eigenvalue corresponding to the current queue position can be obtained.

[0098] Here, the reasons for introducing the reverse median average method in steps S304 to 306 and the median average method in step S307 are introduced. In the actual research and development process, the inventors have the following considerations:

[0099] a) The feature values ​​of the four features "number of customer service", "queue position", "total number of queues", and "actual waiting time" are all discrete integers greater than or equal to 0;

[0100] b) The data deformation goal is to map the feature values ​​of the above features to the real number space of [0, 1);

[0101] c) Taking the feature vector of the actual waiting time as the reference vector, calculate the direction of the feature vectors such as the number of service customers, queue position, and total queue number; this can be understood as the correlation between the actual waiting time and the calculated number of service customers, queue position, and total queue number, for example, the actual waiting time is relatively long, and the number of service customers is relatively small; then, using the feature vector of the actual waiting time as the reference vector to calculate the direction of the feature vector of the number of service customers, it can be determined that the feature vector of the number of service customers is in the opposite direction to the reference vector, and the larger the reference vector, the smaller the feature vector of the number of service customers.

[0102] d) Based on common sense and data analysis, it can be concluded that when other features are the same, the correlation coefficient between "number of customer service" and "actual waiting time" is less than 0, and the correlation coefficient between "queue position" and "actual waiting time" is greater than 0;

[0103] e) The correlation between "total queue number" and "actual waiting time" is not obvious in general, but in some application scenarios, there is a negative correlation coefficient between the two. The reason is that the customer service scheduling in these scenarios is adjusted in real time based on the "total queue number". As the "total queue number" increases, the "number of customer service" will often increase, which in turn leads to a decrease in the "actual waiting time";

[0104] f) Based on the above data analysis, it is found that when other features are the same, the distribution of the β of the above eigenvalues ​​for the "actual waiting time" within the value range conforms to the exponential distribution, and an inflection point is obtained near the median of the eigenvalue. For example, Figure 4 A schematic diagram of the average and directional median normalization with a median of 50 is presented, i.e., the inflection point is obtained near the median of 50 eigenvalues.

[0105] Step S308: convert the average service time into a standard score to obtain a fifth characteristic value corresponding to the average service time.

[0106] In the embodiment of the present application, the average service duration includes the average service duration corresponding to the target time range and / or the average service duration corresponding to the target quantity range. The average service duration corresponding to the target time range may be the average service duration within a time range of a certain length of time from the current moment. The average service duration corresponding to the target quantity range may be the average service duration after selecting multiple other customers to come in from the current moment.

[0107] In the embodiment of the present application, in the process of processing the average service time to convert it into a standard score, the average service time corresponding to the target time range x i , the mean μ, substituting it into formula (5), we get the standard deviation σ,

[0108] Where, formula (5) is

[0109] Furthermore, the average service time x, mean μ and standard deviation σ in the current queuing scenario are substituted into formula (6) to obtain the fifth eigenvalue z corresponding to the average service time x,

[0110] Where, formula (6) is

[0111] Among them, the standard deviation σ is used as a ruler to measure the average service time x iThe distance from the average number μ is used to determine the position of the average service time in the current queuing scenario in the total service time corresponding to the target time range or target quantity range.

[0112] Step S309, mapping the incoming line time point to the target interval to obtain a sixth characteristic value corresponding to the incoming line time point.

[0113] In the embodiment of the present application, min-max normalization is adopted for the incoming line time point. The processing is performed to map to the target interval [0, 1] to obtain the sixth eigenvalue corresponding to the incoming time point. Here, the incoming time point is mapped to the target interval such as [0, 1] to convert the incoming time point into a dimensionless pure value, so that indicators of different units or magnitudes can be compared and weighted.

[0114] Step S310, inputting the characteristic value into the target network model to obtain the predicted value output by the target network model.

[0115] Step S311, reverse formatting the predicted value to obtain the predicted waiting time of the customer.

[0116] It should be noted that, for the description of the same steps and the same contents in this embodiment as those in other embodiments, reference can be made to the description in other embodiments and will not be repeated here.

[0117] See also Figure 5 , Figure 5 is an optional flow chart of a method for predicting the waiting time provided in an embodiment of the present application, which will be combined with Figure 5 The steps shown are explained;

[0118] Step S401: training an initial network model for each queuing scenario based on sample data for different queuing scenarios in the acquired training set.

[0119] Among them, different queuing scenarios include the current queuing scenario.

[0120] In the embodiment of the present application, before executing step S401 to train the initial network model in each queuing scenario according to the sample data in different queuing scenarios in the training set obtained, the initial network model can be established by the following configuration:

[0121] a) Model selection: Multilayer Perceptron (MLP);

[0122] b) Hyperparameter settings:

[0123] Maximum training error (maxError): Default is 0.1. One of the trigger conditions for training exit is SSE / 2<0.1;

[0124] Maximum test error (allowError): Default is 0.1, the maximum error allowed during testing;

[0125] The number of samples for calculating the average service time (avgServeSampleSize): 400 by default, empirical value;

[0126] The sample time range for calculating the recent average service time is 3600 seconds by default, which is an empirical value.

[0127] Training set time range: default is the last 60 days, experience value;

[0128] Training period: 24 hours by default, experience value;

[0129] Maximum number of neurons: 5 by default, empirical value;

[0130] Initial maximum learning rate (learnRate): default 0.1, empirical value;

[0131] c) Algorithm selection: Select the Momentum Back propagation algorithm, which can better handle local optimal solutions;

[0132] d) Transfer function: TANH. Under the monogenic binary pattern (MBP) learning algorithm, TANH replaces SIGMOID as the transfer function and has better results.

[0133] e) Training set size: not less than the number of samples for calculating the average service time (avgServeSampleSize) × 2;

[0134] f) Learning rate adjustment: For data sets of different sizes, choose different learning rates; set the learning adjustment rate (range 0-1) according to the scenario, and dynamically adjust the learning rate as the training progresses. The specific methods are as follows:

[0135] Initial learning rate learnRate = Math.max(0.1, 1000 / training set size)

[0136] After each round of learning, learnRate = previous round learning rate × learning adjustment rate (default 0.5);

[0137] g) Loss function: Sum of Squared Error (SSE), which is helpful for calculating the gradient of the error.

[0138] After the initial network model is obtained through the above configuration, the various data sets involved in model training are first determined, the data time range is determined, and the training set and test set are split. Randomly split the data from the data set into training set, test set, and cross-validation set: when the number of data sets is less than 10,000, build the training set, test set, and cross-validation set according to 80%, 10%, and 10% respectively; of course, other proportions can also be used, such as reference Figure 6 As shown in the figure, when the number of data sets is less than 10,000, the training set, test set, and cross-validation set are constructed according to 60%, 20%, and 20%, respectively; when the number of data sets is greater than or equal to 10,000, the training set, test set, and cross-validation set are constructed according to 98%, 1%, and 1%, respectively.

[0139] Taking the data set size of a product A as 200,000 as an example, the number of training sets, test sets and cross-validation sets are 160,000, 20,000 and 20,000 respectively; the training set is used in each round of training in multiple rounds, and the test set is used for verification after the training is completed to determine whether the preset prediction accuracy is met (the accuracy setting is detailed in the model optimization section below). After multiple rounds of training are completed, the cross-validation set is used to test all models that meet the accuracy, and the best model is selected and saved.

[0140] In a feasible scenario, the data can be split into training set, test set and validation set by the following steps. Here, an optimized splitting method of the training set and the test set is designed to replace the above random splitting method. The specific steps are as follows:

[0141] The first step is to sort the data set in chronological order from oldest to newest and number it starting from 0 (0, 1, 2...)

[0142] Step 2: Traverse the data set in positive order and select the mth (initial 0) data D

[0143] Step 3: If (the current test set data volume ≥ the maximum number of test sets &&

[0144] The current validation set data volume ≥ the maximum number of validation sets):

[0145] Data D is added to the training set

[0146] Step 4: Calculate the remainder r when m is divided by 3

[0147] Step 5: If r = 0: D is added to the training set

[0148] Step 6: If r=1: D is added to the test set

[0149] Step 7: If r = 2: D is added to the validation set

[0150] Step 8. m=m+1

[0151] Step 9. Repeat steps 2 to 8 until m ≥ dataset size.

[0152] Secondly, before training the model, you can also create a three-layer neural network with the number of input neurons being the number of features, the number of output neurons being 1, and the number of neurons in the middle layer being k (the initial value is 1).

[0153] It should be noted that in addition to selecting a three-layer neural network, you can also select an ordinary neural network (backpropagation, BP), or even design a convolution kernel to choose to use a more complex convolutional neural network (Convolutional Neural Networks, CNN) network, so as to provide a waiting time prediction method with a higher accuracy for the online service queue incoming service.

[0154] MlpNeuralNetwork nw=new MlpNeuralNetwork(4,k,1);

[0155] Furthermore, the learning parameters are initialized: maximum learning error (maxError), maximum test error (allowError), learning rate (learnRate) and maximum number of learning times (maxIterations);

[0156] Next, execute step S401 to train the model using the sample data in different queuing scenarios in the acquired training set. It should be noted that after learning is completed, it is necessary to test with the test set; check the test results, if passed the verification, save the model and record the test results.

[0157] In other embodiments of the present application, during the execution of step S401, the model may also be subjected to reinforcement learning to optimize the model;

[0158] a) Training is performed once in each training cycle. The data set used for training must contain the data generated in the most recent training cycle, and multiple rounds of learning are performed. The validity period of the model obtained by training is one training cycle;

[0159] b) In order to balance the learning quality and learning efficiency of the above model, the sample size of the optimized training set is not more than 30,000, and the older ones are discarded in chronological order;

[0160] c) After each learning is completed, the number of neurons in the middle layer k is increased by 1 and the next round of training is carried out. The adjustment range is 1 to 5;

[0161] d) Each round of learning goes through 1 to n different learning rates, and the learning rate of each learning is 1 / 2 of the previous one;

[0162] e) After each training session, the new network is compared with the historical optimal network through a cross-validation set, and the model with better results is selected as the new historical optimal model. The verification results are saved and recorded.

[0163] In some embodiments of the present application, when the number of sample data corresponding to the initial network model is a first number, the initial learning rate of the initial network model is a first learning rate; when the number of sample data corresponding to the initial network model is a second number, the initial learning rate of the initial network model is a second learning rate; wherein, the first number is smaller than the second number, and the first learning rate is greater than the second learning rate; it can be seen that the smaller the number of sample data corresponding to the initial network model, the greater the initial learning rate of the initial network model.

[0164] That is to say, the number of sample data is different, and the corresponding initial network model has different learning rates. Specifically, the smaller the number of sample data corresponding to the initial network model, the larger the initial learning rate of the initial network model; in this way, the stability of the model is improved by flexibly setting the initial learning rate, and the training rate is improved.

[0165] In some embodiments of the present application, the above-mentioned method of adjusting the learning rate to realize the reinforcement model is further introduced. After step S401 trains the initial network model in each queuing scenario according to the sample data in different queuing scenarios in the training set obtained, the following can also be performed: Figure 7 Steps shown:

[0166] Step S4011, obtaining the number of training times i in the training factor of the initial network model.

[0167] Among them, the value of i ranges from 1 to n positive integers, and n is the maximum number of training times;

[0168] Step S4012: if i is less than the target number n, obtain the current learning rate of the initial network model in the current i-th training process.

[0169] Step S4013, determining that during the i+1 training process, the target learning rate of the initial network model is half of the current learning rate.

[0170] During the training process, the learning rate is changed flexibly. When the distance to the optimal value is closer, the less movement towards the optimal value is needed, so the learning rate is reduced, which improves the stability of the model and achieves the purpose of reasonable high-speed training model.

[0171] For example, in the MBP algorithm, the gradient It will become larger and larger as the amount of training set data increases. Therefore, the smaller the number of sample data corresponding to the initial network model, the larger the initial learning rate of the initial network model.

[0172] In the embodiment of the present application, in the process of flexibly adjusting the learning rate, the learning rate λ may be multiplied by 1 / N (N is the amount of data in the training set), so that the formula for each step update becomes the following form:

[0173]

[0174] At the same time, in order to take into account the problem of λ being too large when N is small, the new learning rate is set as:

[0175] λ′=min(λ,λ×10000 / N)

[0176] Step S4014, performing the (i+1)th training of the initial network model in each queuing scenario according to the sample data and target learning rate in different queuing scenarios in the acquired training set.

[0177] Step S4015: if i+1 is greater than n, stop training.

[0178] Step S402, determining the prediction accuracy of the initial network model in each queuing scenario based on the test data in different queuing scenarios in the acquired test set.

[0179] The test data is at least partially different from the sample data.

[0180] Step S403: If the prediction accuracy falls within the target accuracy range, a target network model is determined from the initial network models in each queuing scenario.

[0181] In some embodiments of the present application, in step S403, the target network model is determined from the initial network model in each queuing scenario, which can be achieved by Figure 8 The steps shown achieve:

[0182] Step S4031, determining the verification results of the initial network model in each queuing scenario according to the obtained verification data in different queuing scenarios in the verification set.

[0183] Among them, the verification data is different from the test data, and the verification data is different from the sample data.

[0184] Step S4032, determining the initial network model whose verification result in each queuing scenario meets the verification condition as the target network model in each queuing scenario, and saving the target network model in each queuing scenario to the distributed cache cluster.

[0185] In the embodiment of the present application, the initial network model is verified using a verification set. It should be noted that the data in the verification set is different from the data in the test set and the training set. In this way, the initial network model can be accurately verified. If the verification is passed, it is saved in the distributed cache cluster for subsequent calls in combination with actual queuing scenarios.

[0186] Here, the verification result meeting the verification condition can be understood as the actual error being less than the error threshold.

[0187] In a feasible scenario, in order to make the verification result more consistent with the actual effect, the percentage calculation rule is used for the test set accuracy calculation: the allowable error percentage EP is set, assuming that the predicted value is FV, ​​then the allowable error value is:

[0188] allow Error≈EP×FV / [(1±EP)×FV]

[0189] allow Error≈EP / (1+EP)+EP / (1-EP) / 2

[0190] allow Error≈Ep / (1-EP) 2

[0191] Verify all samples in the test set. When the actual error error ≤ allowable error, the correct number is increased by 1.

[0192] The accuracy of the total sample of the test set = total correct number / total number of samples;

[0193] When the accuracy rate is ≥ the threshold (95% by default), the verification passes; otherwise, the verification fails.

[0194] In the embodiment of the present application, after training to obtain the target network model suitable for different queuing scenarios, the target network model is saved and distributed deployment is implemented. Among them, for model preservation, after the model training of each scenario is completed, the optimal model is updated and saved in real time in local memory by serialization, and is updated synchronously to redis; in addition, feature formatting parameter storage can also be implemented. While saving the optimal model, the data standardization parameters used to build the model are stored together, which is convenient for use in queuing time prediction; for distributed deployment, considering the distributed use scenario of business functions in the production environment, the optimal model and data standardization parameters are synchronously saved to each server where the business function is located using a distributed storage method.

[0195] Step S404: If the customer enters the queue, the target network model and data standardization strategy corresponding to the current queue scenario are called from the distributed cache cluster.

[0196] Step S405, obtaining characteristic data of customers in the queuing process in the current queuing scenario.

[0197] Step S406: standardize the feature data based on the data standardization strategy to obtain feature values.

[0198] Step S407, input the characteristic value into the target network model to obtain the predicted value output by the target network model.

[0199] Step S408: Process the predicted value to obtain the predicted waiting time of the customer.

[0200] In some embodiments of the present application, step S408 performs reverse formatting on the predicted value to obtain the predicted waiting time of the customer, which can be obtained by Fig. 9 The steps shown achieve:

[0201] Step S4081, obtaining the fifth median corresponding to the actual waiting time after the customer accesses the line.

[0202] Step S4082, obtain the difference between 1 and the predicted value.

[0203] Step S4083, obtaining the quotient of the fifth median divided by the difference.

[0204] Step S4084, determine the product of the predicted value and the quotient as the predicted waiting time.

[0205] Here, the predicted value is reverse formatted into the predicted waiting time. The actual waiting time during the training process is processed using the median average method to obtain the predicted value Estimated waiting time:

[0206] For example, the median actual waiting time of the training set used in model training for a product B is 100 seconds. During the prediction process, the model predicts that a record is X. n =0.75, reverse formatting to get That is, the predicted waiting time is 300 seconds.

[0207] It should be noted that, for the description of the same steps and the same contents in this embodiment as those in other embodiments, reference can be made to the description in other embodiments and will not be repeated here.

[0208] The following is a description of an exemplary structure of the waiting time prediction device 154 provided in the embodiment of the present application implemented as a software module. In some embodiments, for example Figure 1 As shown, the software module stored in the waiting time prediction device 154 of the memory 150 may be a waiting time prediction device in the server 100, including:

[0209] The calling module 1541 is used to call the target network model and data standardization strategy corresponding to the current queuing scenario from the distributed cache cluster if the customer enters the queue.

[0210] The acquisition module 1542 is used to acquire characteristic data of the customers in the queuing process in the current queuing scenario.

[0211] The processing module 1543 is used to perform standardization processing on the characteristic data based on the data standardization strategy to obtain the characteristic value; input the characteristic value into the target network model to obtain the predicted value output by the target network model; perform reverse formatting processing on the predicted value to obtain the predicted waiting time of the customer.

[0212] The present application provides a device for predicting waiting time.

[0213] In some embodiments of the present application, the characteristic data includes the number of current service customers in the current queuing scenario, the number of current customer service staff showing idleness, the total number of queues, the current queue position, the average service time, and the time point when the customer enters the queue.

[0214] In some embodiments of the present application, the processing module 1543 is also used to process the number of current service customers, the number of current customer service idleness, and the total number of queues based on the reverse median average method, to obtain a first eigenvalue corresponding to the number of current service customers, a second eigenvalue corresponding to the number of current customer service idleness, and a third eigenvalue corresponding to the total number of queues; to process the current queue position based on the median average method to obtain a fourth eigenvalue corresponding to the current queue position; to convert the average service time into a standard score to obtain a fifth eigenvalue corresponding to the average service time; and to map the incoming time point to the target interval to obtain a sixth eigenvalue corresponding to the incoming time point.

[0215] In some embodiments of the present application, the processing module 1543 is further used to train an initial network model for each queuing scenario based on sample data for different queuing scenarios in a training set obtained; wherein the different queuing scenarios include a current queuing scenario; and determine a prediction accuracy of the initial network model for each queuing scenario based on test data for different queuing scenarios in a test set obtained; wherein the test data is at least partially different from the sample data; and if the prediction accuracy falls within a target accuracy range, determine a target network model from the initial network models for each queuing scenario.

[0216] In some embodiments of the present application, the smaller the number of sample data corresponding to the initial network model, the greater the initial learning rate of the initial network model.

[0217] In some embodiments of the present application, the acquisition module 1542 is further used to obtain the number of training times i in the training factor of the initial network model; wherein the value range of i is a positive integer from 1 to n, and n is the maximum number of training times; if i is less than the target number n, the current learning rate of the initial network model in the current i-th training process is obtained;

[0218] Processing module 1543 is also used to determine that during the i+1 training process, the target learning rate of the initial network model is half of the current learning rate; according to the sample data and target learning rate in different queuing scenarios in the acquired training set, the i+1th training of the initial network model in each queuing scenario is performed; if i+1 is greater than n, the training is stopped.

[0219] In some embodiments of the present application, the processing module 1543 is also used to determine the verification results of the initial network model in each queuing scenario based on the verification data in different queuing scenarios in the obtained verification set; wherein the verification data is different from the test data, and the verification data is different from the sample data; determine that the initial network model whose verification results in each queuing scenario meet the verification conditions is the target network model in each queuing scenario, and save the target network model in each queuing scenario to the distributed cache cluster.

[0220] In some embodiments of the present application, the processing module 1543 is also used to process the actual waiting time of the customer after the call is connected based on the median average method to obtain the seventh eigenvalue; obtain the difference between 1 and the seventh eigenvalue; obtain the quotient of the median corresponding to the actual waiting time divided by the difference; and determine the product of the seventh eigenvalue and the quotient as the predicted waiting time.

[0221] It should be noted that the description of the device of the embodiment of the present application is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment, so it is not repeated. For technical details not disclosed in the embodiment of the device, please refer to the description of the method embodiment of the present application for understanding.

[0222] The embodiment of the present application provides a storage medium storing executable instructions, wherein the executable instructions are stored. When the executable instructions are executed by a processor, the processor will be caused to execute the method provided in the embodiment of the present application to implement the following steps:

[0223] If a customer enters the queue, the target network model and data normalization strategy corresponding to the current queue scenario are called from the distributed cache cluster;

[0224] Obtain characteristic data of customers in the queuing process in the current queuing scenario;

[0225] Based on the data standardization strategy, the feature data is standardized to obtain the feature value;

[0226] Input the characteristic value into the target network model to obtain the predicted value output by the target network model;

[0227] The predicted value is reverse formatted to obtain the customer's predicted waiting time.

[0228] In some embodiments of the present application, the characteristic data includes the number of current service customers in the current queuing scenario, the number of current customer service staff showing idleness, the total number of queues, the current queue position, the average service time, and the time point when the customer enters the queue.

[0229] In some embodiments of the present application, when the executable instruction is executed by the processor, the processor will be caused to execute the method provided in the embodiment of the present application, and the following steps may also be implemented:

[0230] Based on the reverse median average method, the number of current service customers, the number of current customer service idleness, and the total number of queues are processed respectively to obtain a first eigenvalue corresponding to the number of current service customers, a second eigenvalue corresponding to the number of current customer service idleness, and a third eigenvalue corresponding to the total number of queues;

[0231] Processing the current queue position based on the median average method to obtain a fourth eigenvalue corresponding to the current queue position;

[0232] The average service time is converted into a standard score to obtain the fifth eigenvalue corresponding to the average service time;

[0233] The incoming line time point is mapped to the target interval to obtain the sixth eigenvalue corresponding to the incoming line time point.

[0234] In some embodiments of the present application, when the executable instruction is executed by the processor, the processor will be caused to execute the method provided in the embodiment of the present application, and the following steps may also be implemented:

[0235] According to the sample data of different queuing scenarios in the acquired training set, the initial network model of each queuing scenario is trained; wherein the different queuing scenarios include the current queuing scenario;

[0236] Determine the prediction accuracy of the initial network model in each queuing scenario based on the test data in different queuing scenarios in the acquired test set; wherein the test data is at least partially different from the sample data;

[0237] If the prediction accuracy falls within the target accuracy range, the target network model is determined from the initial network models under each queuing scenario.

[0238] In some embodiments of the present application, the smaller the number of sample data corresponding to the initial network model, the greater the initial learning rate of the initial network model.

[0239] In some embodiments of the present application, when the executable instruction is executed by the processor, the processor will be caused to execute the method provided in the embodiment of the present application, and the following steps may also be implemented:

[0240] Get the number of training times i in the training factor of the initial network model; where i is a positive integer ranging from 1 to n, and n is the maximum number of training times;

[0241] If i is less than the target number n, obtain the current learning rate of the initial network model in the current i-th training process;

[0242] Determine that during the i+1 training process, the target learning rate of the initial network model is half of the current learning rate;

[0243] According to the sample data and target learning rate of different queuing scenarios in the obtained training set, the initial network model of each queuing scenario is trained for the i+1th time;

[0244] If i+1 is greater than n, stop training.

[0245] In some embodiments of the present application, when the executable instruction is executed by the processor, the processor will be caused to execute the method provided in the embodiment of the present application, and the following steps may also be implemented:

[0246] Determine the verification results of the initial network model in each queuing scenario according to the verification data in different queuing scenarios in the obtained verification set; wherein the verification data is different from the test data, and the verification data is different from the sample data;

[0247] An initial network model whose verification result in each queuing scenario meets the verification condition is determined as the target network model in each queuing scenario, and the target network model in each queuing scenario is saved in a distributed cache cluster.

[0248] In some embodiments of the present application, when the executable instruction is executed by the processor, the processor will be caused to execute the method provided in the embodiment of the present application, and the following steps may also be implemented:

[0249] Based on the median average method, the actual waiting time of the customer after the call is processed to obtain the seventh eigenvalue;

[0250] Get the difference between 1 and the seventh eigenvalue;

[0251] Get the quotient of the median of the actual waiting time divided by the difference;

[0252] The product of the seventh eigenvalue and the quotient is determined as the predicted waiting time.

[0253] The storage medium provided by the present application calls the target network model and data standardization strategy corresponding to the current queuing scenario from the distributed cache cluster when the customer enters the queue; obtains the characteristic data of the customer queuing process in the current queuing scenario; standardizes the characteristic data based on the data standardization strategy to obtain the characteristic value; inputs the characteristic value into the target network model to obtain the predicted value output by the target network model; reversely formats the predicted value to obtain the customer's predicted waiting time; in this way, the problem in the related technology that when predicting the waiting time in the queue, the device roughly estimates the waiting time required for the current customer to queue based on the most recent waiting time in the queue, resulting in inaccurate prediction results of the waiting time and poor customer online consultation experience is solved; after the customer enters the queue, the appropriate target network model and data standardization strategy are selected in combination with the current queuing scenario, and the real-time characteristic data in the current queuing scenario is processed, and a technical concept for predicting the customer's waiting time that is suitable for multiple scenarios is proposed, which realizes the accurate prediction of the waiting time required for the online service queue incoming business, and effectively improves the customer's online consultation experience.

[0254] In some embodiments, the storage medium can be a computer-readable storage medium, for example, a ferroelectric random access memory (FRAM), a ROM, a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disk, or a compact disk read-only memory (CD-ROM); it can also be various devices including one or any combination of the above memories.

[0255] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0256] As examples, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions). As examples, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and interconnected by a communication network.

[0257] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A method for predicting waiting time, characterized in that: include: If a customer enters the queue, the target network model and data normalization strategy corresponding to the current queue scenario are called from the distributed cache cluster; Acquire characteristic data of the customer queuing process in the current queuing scenario; Based on the data standardization strategy, the characteristic data is standardized to obtain a characteristic value; The characteristic data includes the number of current service customers, the number of current customer service idleness, the total number of queues, the current queue position, the average service time, and the time point when the customer enters the queue in the current queuing scenario; wherein, the characteristic value is obtained by standardizing the characteristic data based on the data standardization strategy, including: respectively obtaining the first median corresponding to the current number of service customers, the second median corresponding to the current number of customer service idleness, the third median corresponding to the total number of queues, and the fourth median corresponding to the current queue position; calculating the sum of the first median and the current number of service customers to obtain a first parameter, and generating a first parameter based on the first parameter and the first median. characteristic value; calculating the sum of the second median and the current customer service idle number to obtain a second parameter, and generating a second characteristic value based on the second parameter and the second median; calculating the sum of the third median and the total number of queues in the queue to obtain a third parameter, and generating a third characteristic value based on the third parameter and the third median; calculating the sum of the fourth median and the current queue position to obtain a fourth parameter, and generating a fourth characteristic value based on the fourth parameter and the fourth median; converting the average service time into a standard score to obtain a fifth characteristic value corresponding to the average service time; mapping the incoming time point to the target interval to obtain a sixth characteristic value corresponding to the incoming time point; Inputting the characteristic value into the target network model to obtain a predicted value output by the target network model; The predicted value is processed to obtain the predicted waiting time of the customer.

2. The method according to claim 1, characterized in that If the customer enters the queue, before calling the target network model and data standardization strategy corresponding to the current queue scenario from the distributed cache cluster, it includes: According to the sample data of different queuing scenarios in the acquired training set, the initial network model of each queuing scenario is trained; wherein the different queuing scenarios include the current queuing scenario; Determine the prediction accuracy of the initial network model in each of the queuing scenarios according to the test data in the different queuing scenarios in the acquired test set; wherein the test data is at least partially different from the sample data; If the prediction accuracy falls within the target accuracy range, the target network model is determined from the initial network models in each of the queuing scenarios.

3. The method according to claim 2, characterized in that When the number of sample data corresponding to the initial network model is a first number, the initial learning rate of the initial network model is a first learning rate; when the number of sample data corresponding to the initial network model is a second number, the initial learning rate of the initial network model is a second learning rate; wherein, the first number is smaller than the second number, and the first learning rate is greater than the second learning rate.

4. The method according to claim 2, characterized in that: After training the initial network model in each queuing scenario according to the sample data in different queuing scenarios in the acquired training set, the method includes: Obtain the number of training times i in the training factor of the initial network model; wherein the value of i ranges from a positive integer from 1 to n, and n is the maximum number of training times; If the i is less than the target number n, obtain the current learning rate of the initial network model in the current i-th training process; Determine during the i+1 training process that the target learning rate of the initial network model is half of the current learning rate; According to the sample data under different queuing scenarios in the acquired training set and the target learning rate, performing the (i+1)th training of the initial network model under each of the queuing scenarios; If i+1 is greater than the n, stop training.

5. The method according to claim 2, characterized in that The determining the target network model from the initial network models in each of the queuing scenarios includes: Determine the verification result of the initial network model in each of the queuing scenarios according to the verification data in the different queuing scenarios in the obtained verification set; wherein the verification data is different from the test data, and the verification data is different from the sample data; Determine the initial network model whose verification result in each of the queuing scenarios meets the verification condition as the target network model in each of the queuing scenarios; The target network model in each of the queuing scenarios is saved in a distributed cache cluster.

6. The method according to any one of claims 1 to 5, characterized in that The processing of the predicted value to obtain the predicted waiting time of the customer includes: Obtain the fifth median of the actual waiting time of the customer after logging in; Obtain the difference between 1 and the predicted value; Obtain a quotient of the fifth median divided by the difference; The product of the predicted value and the quotient is determined as the predicted waiting time.

7. A device for predicting waiting time, characterized in that: include: A memory for storing executable instructions; A processor, configured to implement the method according to any one of claims 1 to 6 when executing the executable instructions stored in the memory.

8. A computer-readable storage medium, characterized in that: Executable instructions are stored, which are used to cause a processor to execute and implement the method described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Queuing time estimation method, system and device

    CN111489026A