Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The bar code display method of the present invention is described below with reference to fig. 1 to 5.
Fig. 1 is a schematic flow chart of a bar code display method according to the present invention, as shown in fig. 1, the method includes:
Step 101, under the condition that a bar code display request is obtained, the current time and the previous bar code scanning behavior are obtained.
The last code scanning behavior is executed at the last time before the current time.
It should be noted that, in practical application, a platform for implementing the barcode display method of the present invention may be provided, and the platform may be embodied in different product forms according to the use requirement of the user, for example, the barcode display method of the present invention may be configured in APP of the terminal device or in an applet, so as to implement the barcode display function of the present invention.
When the user has a bar code display requirement, the user can submit a bar code display request to a platform configured with a bar code display method, taking the platform as an APP as an example, an operation control for bar code display can be configured on an APP interface, the user can acquire the bar code display request through the APP by clicking the operation control, or an operation control for voice acquisition is configured on the APP interface, the user clicks the operation control for voice acquisition, voice such as 'scan code' is input, and the APP of the terminal equipment can determine that the bar code display request is input by the user at the moment based on voice content input by the user.
When the bar code display request is acquired, acquiring the current time, and searching the last code scanning behavior corresponding to the last time adjacent to the current time in the target list. All code scanning behaviors executed before and corresponding code scanning time are stored in the target list.
Step 102, inputting the current time and the previous code scanning behavior into a behavior prediction model to obtain the current code scanning behavior output by the behavior prediction model.
The current code scanning behavior is the code scanning behavior which needs to be executed at the current time, the behavior prediction model is trained based on a code scanning time sample and a last code scanning behavior sample, and the last code scanning behavior sample is the code scanning behavior executed by a last time sample before the code scanning time sample.
Before using the behavior prediction model, training the behavior prediction model, namely acquiring a code scanning behavior sample and a corresponding code scanning time sample in a preset time before the current time, constructing an initial prediction model, and training and optimizing the initial prediction model based on the acquired code scanning behavior sample and the corresponding code scanning time sample in the preset time to obtain a final behavior prediction model. The specific training process is described in the following steps 501 to 504.
When the current time and the last code scanning behavior are obtained, the current time and the last code scanning behavior are input into a behavior prediction model, the behavior prediction model analyzes the current time and the last code scanning behavior, and the current code scanning behavior corresponding to the current time is predicted. For example, the current time is 8 points 45 minutes, the last code scanning action is subway exit, and the predicted current code scanning action can be payment action when the user purchases breakfast.
It should be noted that, in actual use, if no code scanning behavior occurs before the current time in the preset time, that is, the current code scanning behavior to be predicted is the first code scanning behavior in the preset time, the last code scanning behavior of the input behavior prediction model may be null.
And step 103, determining a corresponding target application program based on the current code scanning behavior.
Illustratively, when the predicted current code scanning behavior is obtained, a target application program corresponding to the current code scanning behavior is searched in a pre-stored code scanning list.
When a plurality of target application programs corresponding to the current code scanning behaviors stored in the code scanning list are determined, the target application programs are indicated to meet the current code scanning behaviors, and at the moment, the current code scanning behaviors of one target application program are determined from the target application programs according to preset rules.
The preset rule may be that one target application program is randomly selected from a plurality of target application programs, or the preset rule may be that an application program with highest user use frequency is determined to be a final target application program based on historical use records of the plurality of target application programs by a user, or the preset rule may be that an application program with highest current preference strength is determined to be a final target application program based on current preference of the plurality of target application programs. For example, if the current code scanning behavior is a payment behavior of buying breakfast by the user, the corresponding target application program includes a first APP, a second APP and a third APP, the preset rule is to determine the application program with the highest user use frequency as the final target application program based on the history of use records of the user on the plurality of target application programs, and if the second APP is determined to be the APP with the highest user use frequency from the first APP, the second APP and the third APP, the second APP is determined to be the final target application program.
When it is determined that the number of target applications corresponding to the current code scanning behavior stored in the code scanning list is multiple, the terminal device may display a selection control, and the user inputs the application through the selection control, so that the application input by the user is determined to be the final target application.
Before the barcode display method is used, each application program with the barcode display function can authorize a platform configured with the barcode display method to ensure that the platform can access each application program with the barcode display function, a corresponding relation between a barcode scanning action and the application program with the barcode display function can be built in advance, an obtained barcode scanning list is shown in table 1, for example, the barcode scanning action comprises a payment action, a commuting action, an epidemic situation supervision action and the like in table 1, wherein the application program corresponding to the payment action can be a first APP, a second APP, a third APP and the like, the application program corresponding to the commuting action can be a subway APP, an APP, a shared bicycle APP and the like, and the application program corresponding to the epidemic situation supervision action can be an epidemic prevention APP and the like.
TABLE 1
| Code scanning behavior |
Application program |
| Payment behavior |
First APP, second APP and third APP |
| Commuting behavior |
Subway APP, public transport APP and shared bicycle APP |
| Epidemic situation supervision behavior |
Epidemic prevention APP |
The specific method for establishing the code scanning list can be realized in the following ways:
In the first mode, a platform provided with a bar code display method detects application programs with bar code display functions installed on terminal equipment, and establishes a mapping relation between each detected application program with bar code display functions and corresponding bar code scanning behaviors to obtain a bar code scanning list, and if the platform detects that the installed application programs with bar code display functions comprise a first APP, a second APP, a subway APP and an epidemic prevention APP, the established bar code scanning list is shown in table 2 by taking users in Beijing areas as an example.
TABLE 2
| Code scanning behavior |
Application program |
| Payment behavior |
First APP and second APP |
| Commuting behavior |
Subway APP |
| Epidemic situation supervision behavior |
Epidemic prevention APP |
In the second mode, a first input of a user is obtained, and a mapping relation between each application program with a bar code display function indicated by the first input and corresponding code scanning behaviors is established in response to the first input to obtain a code scanning list.
The first input of the user may be understood as an initial configuration behavior of the user on the platform, and the user may input an application program installed on the terminal device and needing barcode display, or an application program needing automatic starting by the barcode display method of the present invention, so as to establish a mapping relationship between the application program input by the user and a corresponding barcode scanning behavior, and obtain a barcode scanning list.
Step 104, displaying a bar code interface of the target application program.
The method includes the steps that when a corresponding target application program is determined according to the current code scanning behavior, the target application program is started, if the bar code interface is an opening interface of the target application program, the bar code interface is directly displayed, and if the bar code interface is not the opening interface of the target application program, a user can execute related operations to open the bar code interface of the target application program.
According to the bar code display method, based on the current time and the previous bar code scanning behavior, the current bar code scanning behavior corresponding to the current time is predicted through the behavior prediction model, and the bar code interface of the corresponding target application program is displayed based on the current bar code scanning behavior, so that a user does not need to manually start the corresponding application program in different occasions, and the user operation is simplified.
Optionally, fig. 2 is a second flow chart of the bar code display method provided by the present invention, as shown in fig. 2, step 102 in fig. 1 may be specifically implemented by the following steps:
step 1021, obtain the target user type.
When the bar code display request is acquired, a user type input box can be displayed, and the user inputs the user type in the user type input box, namely the target user type is acquired for the terminal equipment, for example, the target user type can be a office worker in the financial industry, and the specific target user type can be determined based on the self condition of each user.
Step 1022, determining a target behavior prediction model corresponding to the target user type.
When the target user type is acquired, a target behavior prediction model corresponding to the target user type is searched in a pre-stored model list, wherein the model list stores a mapping relation between the behavior prediction model and the user type. For example, the target user type is a executive of the financial industry, and the target behavior prediction model is a behavior prediction model corresponding to the executive of the financial industry.
Step 1023, inputting the current time and the previous code scanning behavior into the target behavior prediction model to obtain the current code scanning behavior output by the target behavior prediction model.
When the current time, the last code scanning behavior and the target behavior prediction model are obtained, the current time and the last code scanning behavior are input into the target behavior prediction model, the target behavior prediction model predicts the current code scanning behavior based on the current time and the last code scanning behavior, and the current code scanning behavior finally output by the target behavior prediction model is obtained.
According to the bar code display method provided by the invention, the target behavior prediction model corresponding to the user type is selected to predict the current code scanning behavior, so that the user requirements can be met, and the prediction accuracy of the behavior prediction model is improved.
Optionally, fig. 3 is a third flow chart of the bar code display method provided by the present invention, as shown in fig. 3, step 104 in fig. 1 specifically includes the following steps:
step 1041, obtaining a jump path of the bar code interface.
When determining a target application program corresponding to the current code scanning behavior, searching a jump path of a bar code interface corresponding to the target application program in a pre-stored path list, wherein the path list stores the mapping relation between the application program and the jump path of the bar code interface.
Step 1042, obtaining the bar code interface based on the jump path.
Step 1043, displaying the bar code interface.
For example, when determining the jump path of the barcode interface in the target application program, the jump path may be directly located to the barcode interface of the target application program, so as to display the barcode interface.
It should be noted that, the platform configured with the barcode display method may detect, in real time, each application program with the barcode display function installed by the user, so as to maintain synchronous update between the platform and the application program with the barcode display function. Under the condition that the jump path of the bar code interface of the application program is determined to be changed, the corresponding jump path of the application program is updated in the path list, namely, the new jump path of the bar code interface of the application program is correspondingly stored with the application program, so that if the jump path is changed, the user can jump to the corresponding bar code interface directly, the use is facilitated, and the user experience is improved.
When the skip path is changed, the application program with the bar code display function can actively report a new skip path to the platform configured with the bar code display method, so that the platform can store the received new skip path of the application program corresponding to the application program.
The bar code display method provided by the invention is based on the jump path of the pre-stored bar code interface to be directly positioned on the bar code interface, so that a user is not required to manually start different application programs and to click a function menu step by step to search the bar code interface, the user operation is greatly simplified, and in addition, the user is not familiar with the application programs, the corresponding bar code interface is directly positioned on the jump path, and great convenience is brought to the user.
Further, fig. 4 is a flowchart of the bar code display method provided by the present invention, as shown in fig. 4, after executing step 104, the method further includes the following steps:
and 105, acquiring the real code scanning behavior corresponding to the current time.
The method comprises the steps that after a current code scanning behavior is predicted based on the behavior prediction model, actual use requirements of a user can be tracked and analyzed, namely, after a corresponding target application program is determined based on the current code scanning behavior output by the behavior prediction model, an option of whether a prediction result is correct or not can be displayed, and when an option of the correct prediction result is detected when the user input is detected, the behavior prediction model is not required to be corrected; when the option which is input by the user and is the error of the prediction result is detected, a real code scanning behavior input box is displayed, so that the user can conveniently input the real code scanning behavior corresponding to the current time in the real code scanning behavior input box, namely, the terminal equipment obtains the real code scanning behavior corresponding to the current time.
The method includes the steps that after a corresponding target application program is determined based on the current code scanning behavior output by the behavior prediction model, user behavior can be monitored, if no operation of a user is received within preset time, the currently opened target application program is determined to meet the use requirement of the user, and if the bar codes of other application programs are monitored within the preset time, the current prediction result is determined to be inaccurate.
And 106, under the condition that the real code scanning behavior is inconsistent with the current code scanning behavior, optimizing model parameters of the behavior prediction model based on the real code scanning behavior and the current code scanning behavior to obtain an optimized behavior prediction model.
The method comprises the steps of comparing real code scanning behaviors with predicted current code scanning behaviors when real code scanning behaviors corresponding to current time are obtained, determining a target loss function based on similarity between the real code scanning behaviors and the current code scanning behaviors when the real code scanning behaviors are not consistent with the predicted current code scanning behaviors, optimizing model parameters of a behavior prediction model based on the target loss function, executing the optimization method whenever each predicted current code scanning behaviors are not consistent with the real code scanning behaviors, and finally obtaining an optimized behavior prediction model, namely a behavior prediction model for a certain user, and predicting the current code scanning behaviors based on the behavior prediction model corresponding to the user.
According to the bar code display method provided by the invention, the behavior prediction model is corrected based on the real code scanning behavior corresponding to the current time and the predicted current code scanning behavior, so that the personalized customization of the behavior prediction model is realized, and the prediction accuracy of the behavior prediction model is improved.
Further, fig. 5 is a fifth flow chart of the bar code display method according to the present invention, as shown in fig. 5, before executing step 101 in fig. 1, the method further includes the following steps:
Step 501, acquiring sample data.
The sample data comprise code scanning behavior samples in preset time and code scanning time samples corresponding to the code scanning behavior samples, wherein the preset time can be one day or a set time period.
Taking a day as an example, taking the preset time as the preset time, acquiring all code scanning behaviors of different users in a day and code scanning time corresponding to each code scanning behavior based on big data, taking all code scanning behaviors as code scanning behavior samples, taking the code scanning time corresponding to all code scanning behaviors as code scanning time samples, and then, the sample data comprises a plurality of code scanning behavior samples and a plurality of corresponding code scanning time samples.
It will be appreciated that, in general, the daily travel of the user is approximately the same, and the office staff is exemplified by the office staff, the commute time of the workday is relatively fixed, and what the user does at different times is relatively fixed, so that the correlation between the big data analysis time and the user code scanning behavior can be used, and then when the user needs to execute the code scanning action, the application program corresponding to the code scanning behavior correlated to the time can be automatically started. For example, seven and a half in the morning are typically commute times, and if a user makes a code scanning request during this time period, it may be determined that the user's code scanning needs are on duty in the ride vehicle, so that a traffic-related application may be automatically launched.
In addition, a certain correlation exists between different code scanning behaviors of the user, for example, after the code scanning of the user enters a subway station, the code scanning behavior which occurs later can be code scanning outbound, or if a consumption terminal such as a vending machine is arranged in the subway station, the code scanning behavior which occurs later can be code scanning payment. That is, the correlation between behaviors can be analyzed through big data, the current code scanning behavior of the user can be predicted according to the previous code scanning behavior of the user, and then when the user needs to execute the code scanning action, the application program corresponding to the current behavior is automatically started.
In view of the above description, the present application acquires sample data, and trains an initial prediction model based on the sample data to obtain a behavior prediction model for predicting current code scanning behavior.
Step 502, marking the corresponding relation among the code scanning time sample, the code scanning behavior sample and the last code scanning behavior sample.
For example, when sample data is obtained, sample data is marked, that is, a code scanning behavior sample and a code scanning time sample are sorted, and for each code scanning time sample, a correspondence relationship between the code scanning behavior (last code scanning behavior sample) corresponding to the code scanning time sample, an adjacent code scanning time sample before the code scanning time sample, and a code scanning behavior (code scanning behavior sample) executed at the code scanning time sample is marked.
And step 503, training an initial prediction model based on the code scanning time sample and the last code scanning behavior sample to obtain a current code scanning behavior sample output by the initial prediction model.
After sample data are marked, a marked code scanning time sample and a corresponding last code scanning behavior sample are input into a built initial prediction model, the initial preset model predicts possible behaviors based on the code scanning time sample and the corresponding last code scanning behavior sample, finally a plurality of predicted code scanning behaviors and occurrence probabilities corresponding to each code scanning behavior are output, the occurrence probabilities corresponding to each code scanning behavior are ordered, and the code scanning behavior with the highest occurrence probability is determined to be the current code scanning behavior sample.
And step 504, optimizing model parameters of the initial prediction model based on the current code scanning behavior sample and the code scanning behavior sample until convergence conditions are reached, so as to obtain the behavior prediction model.
When the current code scanning behavior sample is obtained, the current code scanning behavior sample is compared with the code scanning behavior sample corresponding to the code scanning time sample marked before, and when the current code scanning behavior sample is determined to be consistent with the code scanning behavior sample marked before, the prediction is correct.
When the current code scanning behavior sample is inconsistent with the previously marked code scanning behavior sample, a prediction error is described, and at the moment, a loss function is constructed based on the similarity of the current code scanning behavior sample and the code scanning behavior sample and used for evaluating the degree that the predicted value of the initial prediction model is different from the true value, so that model parameters of the initial prediction model are optimized based on the constructed loss function, and training is carried out continuously until the model reaches a convergence condition, so that the behavior prediction model is obtained.
It should be noted that, in actual use, the corresponding loss function may be selected according to the use requirement, which is not limited by the present invention.
According to the bar code display method provided by the invention, the initial prediction model is trained based on the marked sample data, and the model parameters of the initial prediction model are optimized based on the loss function until convergence conditions are reached, so that the final behavior prediction model is obtained, and the performance of the behavior prediction model is improved.
Alternatively, step 501 in fig. 5 may be implemented specifically by:
the method comprises the steps of obtaining user information, wherein the user information comprises user travel information or user travel information and user attribute information, determining a user type based on the user information, and obtaining sample data corresponding to the user type.
The user attribute information at least comprises one of user industry, user area, work kind of user, etc.
For example, since daily trips may vary from user to user, different behavior prediction models may be built for different types of users in order to improve accuracy of the behavior prediction models. I.e. different sample data are acquired for different types of users when acquiring the sample data.
The method for acquiring the sample data comprises the steps of firstly acquiring user travel information, or user travel information and user attribute information, and dividing user types based on coarse granularity of the user travel information when only the user travel information is acquired, wherein the user travel information comprises that eight points in the morning go to work from a company and five points in the afternoon return to home from the company, determining the user type of the user as a office worker, determining the user type of the user as a student if the user travel information is that seven points in the morning go to school and four points in the afternoon return to home from school, and determining the user type of the user as an elderly person if the user travel information is that eight points in the morning go to vegetable market to buy vegetables, the body is exercised by nine points in a square, and the user type of the user is determined to be cooked by ten points at home.
In actual use, even though users in different industries, different areas and different work types are served, daily itineraries are different, so that user itinerary information and user attribute information can be simultaneously acquired, user types are divided based on fine granularity of the user itinerary information and the user attribute information, and for example, the user types can be divided into a serving member in financial industry, a serving member in Beijing area, a serving member at night, and the like.
Optionally, when sample data corresponding to a user type is obtained, model parameters of the initial prediction model are optimized based on the current code scanning behavior sample and the code scanning behavior sample until convergence conditions are reached, so as to obtain the behavior prediction model, which specifically includes the following steps:
And optimizing model parameters of the initial prediction model based on the current code scanning behavior sample and the code scanning behavior sample until convergence conditions are reached, so as to obtain a behavior prediction model corresponding to the user type.
When determining the user type, sample data corresponding to the user type is obtained, and the initial prediction model is trained based on the sample data of the user type, so that a behavior prediction model corresponding to the user type is finally obtained.
According to the bar code display method, the initial prediction model is trained aiming at sample data of different user types, the behavior prediction model corresponding to each user type can be finally obtained, the refinement of the model granularity is realized, the prediction of the code scanning behavior is performed by selecting the corresponding behavior prediction model based on the user type, the prediction accuracy can be improved, meanwhile, the user operation is simplified, and the user experience is improved.
The bar code display device provided by the invention is described below, and the bar code display device described below and the bar code display method described above can be referred to correspondingly.
Fig. 6 is a schematic structural diagram of a barcode display device provided by the present invention, as shown in fig. 6, the barcode display device includes a first acquisition unit 601, a prediction model 602, a first determination unit 603, and a display unit 604, wherein:
a first obtaining unit 601, configured to obtain a current time and a previous code scanning behavior when a barcode display request is obtained, where the previous code scanning behavior is a code scanning behavior performed at a previous time before the current time;
the prediction unit 602 is configured to input the current time and the previous code scanning behavior into a behavior prediction model, so as to obtain a current code scanning behavior output by the behavior prediction model, where the current code scanning behavior is a code scanning behavior to be executed at the current time;
A first determining unit 603, configured to determine a corresponding target application program based on the current code scanning behavior;
and the display unit 604 is used for displaying a bar code interface of the target application program.
According to the bar code display device provided by the invention, based on the current time and the previous bar code scanning behavior, the current bar code scanning behavior corresponding to the current time is predicted through the behavior prediction model, and the bar code interface of the corresponding target application program is displayed based on the current bar code scanning behavior, so that a user does not need to manually start the corresponding application program in different occasions, and the user operation is simplified.
Based on any of the above embodiments, the prediction unit 602 is specifically configured to:
Obtaining a target user type;
determining a target behavior prediction model corresponding to the target user type;
and inputting the current time and the last code scanning behavior into the target behavior prediction model to obtain the current code scanning behavior output by the target behavior prediction model.
Based on any of the above embodiments, the display unit 604 is specifically configured to:
acquiring a jump path of the bar code interface;
acquiring the bar code interface based on the jump path;
And displaying the bar code interface.
Based on any one of the above embodiments, the barcode display device further includes a second acquisition unit and a first optimization unit, wherein:
the second acquisition unit is used for acquiring the real code scanning behavior corresponding to the current time;
the first optimizing unit is used for optimizing the model parameters of the behavior prediction model based on the real code scanning behavior and the current code scanning behavior under the condition that the real code scanning behavior and the current code scanning behavior are not consistent, and obtaining an optimized behavior prediction model.
Based on any one of the above embodiments, the barcode display device further includes a third acquisition unit, a marking unit, a training unit, and a second optimization unit, where:
The system comprises a third acquisition unit, a first acquisition unit and a second acquisition unit, wherein the third acquisition unit is used for acquiring sample data, and the sample data comprises a code scanning behavior sample in preset time and a code scanning time sample corresponding to the code scanning behavior sample;
the marking unit is used for marking the corresponding relation among the code scanning time sample, the code scanning behavior sample and the last code scanning behavior sample;
The training unit is used for training the initial prediction model based on the code scanning time sample and the last code scanning behavior sample to obtain a current code scanning behavior sample output by the initial prediction model;
And the second optimizing unit is used for optimizing the model parameters of the initial prediction model based on the current code scanning behavior sample and the code scanning behavior sample until convergence conditions are reached, so as to obtain the behavior prediction model.
Based on any of the above embodiments, the first obtaining unit 601 is specifically configured to:
Acquiring user information, wherein the user information comprises user travel information or the user travel information and user attribute information;
Determining a user type based on the user travel information or the user travel information and the user attribute information;
And acquiring the sample data corresponding to the user type.
The second optimizing unit is specifically configured to:
And optimizing model parameters of the initial prediction model based on the current code scanning behavior sample and the code scanning behavior sample until convergence conditions are reached, so as to obtain a behavior prediction model corresponding to the user type.
Fig. 7 is a schematic physical structure of an electronic device according to the present invention, as shown in fig. 7, the electronic device may include a processor (processor) 710, a communication interface (Communications Interface) 720, a memory (memory) 730, and a communication bus 740, where the processor 710, the communication interface 720, and the memory 730 complete communication with each other through the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to execute the barcode display method, where the method includes acquiring a current time and a last barcode scanning action when a barcode display request is acquired, where the last barcode scanning action is a last barcode scanning action executed at a time before the current time;
Inputting the current time and the last code scanning behavior into a behavior prediction model to obtain a current code scanning behavior output by the behavior prediction model, wherein the current code scanning behavior is the code scanning behavior required to be executed at the current time;
determining a corresponding target application program based on the current code scanning behavior;
And displaying a bar code interface of the target application program.
Further, the logic instructions in the memory 730 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer is capable of executing the barcode display methods provided by the above methods, where the method includes acquiring a current time and a last barcode scanning action if a barcode display request is acquired;
Inputting the current time and the last code scanning behavior into a behavior prediction model to obtain a current code scanning behavior output by the behavior prediction model, wherein the current code scanning behavior is the code scanning behavior required to be executed at the current time;
determining a corresponding target application program based on the current code scanning behavior;
And displaying a bar code interface of the target application program.
In yet another aspect, the present invention further provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the barcode display method provided by the above methods, the method comprising, in the event that a barcode display request is obtained, obtaining a current time and a last barcode scanning action;
Inputting the current time and the last code scanning behavior into a behavior prediction model to obtain a current code scanning behavior output by the behavior prediction model, wherein the current code scanning behavior is the code scanning behavior required to be executed at the current time;
determining a corresponding target application program based on the current code scanning behavior;
And displaying a bar code interface of the target application program.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
It should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention, and not for limiting the same, and although the present invention has been described in detail with reference to the above-mentioned embodiments, it should be understood by those skilled in the art that the technical solution described in the above-mentioned embodiments may be modified or some technical features may be equivalently replaced, and these modifications or substitutions do not make the essence of the corresponding technical solution deviate from the spirit and scope of the technical solution of the embodiments of the present invention.