Barcode display methods, devices, electronic equipment and storage media

Automatically determine and display the barcode interface of the target application through the behavior prediction model, solving the cumbersome problem of users in the existing technology that manually start the application for scanning code operations, and achieving a more convenient scanning code experience.

CN114153358BActive Publication Date: 2024-12-13CHINA TELECOM DIGITAL INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111352931.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-16
Publication Date
2024-12-13
Estimated Expiration
2041-11-16

AI Technical Summary

Technical Problem

In the prior art, users need to manually start different applications on different occasions to scan code operations, which are cumbersome and inconvenient.

Method used

By obtaining the current time and the previous scan behavior, the behavior prediction model is used to predict the currently required scan behavior, and the barcode interface of the corresponding target application is automatically determined and displayed based on the behavior, simplifying user operations.

Benefits of technology

There is no need for users to manually open different applications, which simplifies the operation process of scanning codes and improves user experience and operation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114153358B_ABST
    Figure CN114153358B_ABST
Patent Text Reader

Abstract

The present invention provides a barcode display method, device, electronic device and storage medium, wherein the method comprises: when a barcode display request is obtained, obtaining the current time and the last scanning behavior; wherein the last scanning behavior is the scanning behavior performed at the last time before the current time; inputting the current time and the last scanning behavior into a behavior prediction model to obtain the current scanning behavior output by the behavior prediction model; wherein the current scanning behavior is the scanning behavior that needs to be performed at the current time; determining the corresponding target application based on the current scanning behavior; and displaying the barcode interface of the target application. The barcode display method, device, electronic device and storage medium provided by the present invention do not require the user to manually open the corresponding application in different occasions, thereby simplifying the user operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a barcode display method, device, electronic equipment and storage medium. Background Art

[0002] At present, the application of terminal devices such as mobile phones and bracelets is becoming more and more widespread. For example, users use their mobile phones to scan codes to make payments, take public transportation such as subways and buses, and scan codes to display user itineraries.

[0003] In the related art, in different occasions, users need to start different applications (Application, APP) to perform related code scanning operations, which is relatively cumbersome. Summary of the invention

[0004] In view of the problems existing in the prior art, embodiments of the present invention provide a barcode display method, device, electronic device and storage medium.

[0005] The present invention provides a barcode display method, comprising:

[0006] When a barcode display request is obtained, the current time and the last barcode scanning behavior are obtained; wherein the last barcode scanning behavior is a barcode scanning behavior performed at the last time before the current time;

[0007] Input the current time and the previous code scanning behavior into the behavior prediction model to obtain the current code scanning behavior output by the behavior prediction model; wherein the current code scanning behavior is the code scanning behavior that needs to be performed at the current time;

[0008] Determine a corresponding target application based on the current code scanning behavior;

[0009] The barcode interface of the target application is displayed.

[0010] According to a barcode display method provided by the present invention, the current time and the previous code scanning behavior are input into a behavior prediction model to obtain the current code scanning behavior output by the behavior prediction model, including:

[0011] Get the target user type;

[0012] Determine a target behavior prediction model corresponding to the target user type;

[0013] The current time and the previous code scanning behavior are input into the target behavior prediction model to obtain the current code scanning behavior output by the target behavior prediction model.

[0014] According to a barcode display method provided by the present invention, the barcode interface of the target application is displayed, comprising:

[0015] Obtaining the jump path of the barcode interface;

[0016] Acquire the barcode interface based on the jump path;

[0017] The barcode interface is displayed.

[0018] A barcode display method provided by the present invention also includes:

[0019] Obtain the actual code scanning behavior corresponding to the current time;

[0020] When the actual code scanning behavior is inconsistent with the current code scanning behavior, the model parameters of the behavior prediction model are optimized based on the actual code scanning behavior and the current code scanning behavior to obtain an optimized behavior prediction model.

[0021] According to a barcode display method provided by the present invention, before obtaining a barcode display request, the method further includes:

[0022] Acquire sample data; wherein the sample data includes a code scanning behavior sample within a preset time and a code scanning time sample corresponding to the code scanning behavior sample;

[0023] Marking the correspondence between the code scanning time sample, the code scanning behavior sample and the previous code scanning behavior sample;

[0024] The initial prediction model is trained based on the code scanning time sample and the previous code scanning behavior sample to obtain a current code scanning behavior sample output by the initial prediction model;

[0025] Based on the current code scanning behavior sample and the code scanning behavior sample, the model parameters of the initial prediction model are optimized until a convergence condition is reached to obtain the behavior prediction model.

[0026] According to a barcode display method provided by the present invention, the step of obtaining sample data comprises:

[0027] Acquire user information; wherein the user information includes user travel information, or the user travel information and user attribute information;

[0028] determining a user type based on the user information;

[0029] Acquire the sample data corresponding to the user type;

[0030] The optimizing the model parameters of the initial prediction model based on the current code scanning behavior sample and the code scanning behavior sample until a convergence condition is reached to obtain the behavior prediction model includes:

[0031] Based on the current code scanning behavior sample and the code scanning behavior sample, the model parameters of the initial prediction model are optimized until a convergence condition is reached, thereby obtaining a behavior prediction model corresponding to the user type.

[0032] The present invention also provides a barcode display device, comprising:

[0033] A first acquisition unit is used to acquire the current time and the last barcode scanning behavior when a barcode display request is acquired; wherein the last barcode scanning behavior is a barcode scanning behavior performed at a time before the current time;

[0034] A prediction unit, used to input the current time and the previous 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 a code scanning behavior that needs to be performed at the current time;

[0035] A first determining unit, configured to determine a corresponding target application based on the current code scanning behavior;

[0036] The display unit is used to display the barcode interface of the target application.

[0037] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned barcode display methods are implemented.

[0038] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned barcode display methods are implemented.

[0039] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any of the above-mentioned barcode display methods are implemented.

[0040] The present invention provides a barcode display method, device, electronic device and storage medium, which predicts the current scanning behavior corresponding to the current time through a behavior prediction model based on the current time and the previous scanning behavior, and displays the barcode interface of the corresponding target application based on the current scanning behavior, eliminating the need for users to manually open the corresponding application on different occasions, thereby simplifying user operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 This is one of the flow charts of the barcode display method provided by the present invention;

[0043] Figure 2 This is the second flow chart of the barcode display method provided by the present invention;

[0044] Figure 3 This is the third flow chart of the barcode display method provided by the present invention;

[0045] Figure 4 This is the fourth flow chart of the barcode display method provided by the present invention;

[0046] Figure 5 This is the fifth flow chart of the barcode display method provided by the present invention;

[0047] Figure 6 It is a structural schematic diagram of a barcode display device provided by the present invention;

[0048] Figure 7 It is a schematic diagram of the physical structure of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0050] Combine the following Figure 1-Figure 5 The barcode display method of the present invention is described.

[0051] Figure 1 It is one of the flow charts of the barcode display method provided by the present invention, such as Figure 1 As shown, the method includes:

[0052] Step 101: When a barcode display request is obtained, the current time and the last barcode scanning behavior are obtained.

[0053] The previous code scanning behavior is a code scanning behavior performed at a previous time before the current time.

[0054] It should be noted that, in actual application, a platform for implementing the barcode display method of the present invention can be provided. This platform can be embodied in different product forms according to the user's usage requirements. For example, the barcode display method of the present invention can be configured in the APP of the terminal device, or in the mini program to realize the barcode display function of the present invention.

[0055] For example, when a user has a barcode display requirement, the user can submit a barcode display request to a platform that is configured with a barcode display method. Taking an APP as an example, an operation control for barcode display can be configured on the APP interface. When the user clicks the operation control, the terminal device can obtain the barcode display request through the APP; or, a voice collection operation control can be configured on the APP interface. When the user clicks the voice collection operation control and inputs a voice such as "scan the code", the APP of the terminal device can determine that the user input is a barcode display request based on the voice content input by the user.

[0056] When a barcode display request is obtained, the current time is obtained, and the target list is searched for the previous scanning behavior corresponding to the previous time adjacent to the current time. The target list stores all previously executed scanning behaviors and the corresponding scanning times.

[0057] Step 102: input 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.

[0058] Among them, the current scanning behavior is the scanning behavior that needs to be performed at the current time; the behavior prediction model is trained based on the scanning time sample and the previous scanning behavior sample; the previous scanning behavior sample is the scanning behavior performed at the previous time sample before the scanning time sample.

[0059] It should be noted that before using the behavior prediction model, the behavior prediction model needs to be trained first, that is, the code scanning behavior samples and the corresponding code scanning time samples within the preset time before the current time are obtained; and an initial prediction model is constructed; the initial prediction model is trained and optimized based on the obtained code scanning behavior samples and the corresponding code scanning time samples within the preset time to obtain the final behavior prediction model. For the specific training process, please refer to the description of steps 501 to 504 below.

[0060] For example, when the current time and the last code scanning behavior are obtained, the current time and the last code scanning behavior are input into the behavior prediction model, and the behavior prediction model analyzes the current time and the last code scanning behavior to predict the current code scanning behavior corresponding to the current time. For example, the current time is 8:45, and the last code scanning behavior is to exit the subway station. The predicted current code scanning behavior may be the payment behavior when the user buys breakfast.

[0061] It should be noted that in actual use, if no scanning behavior has occurred before the current time within the preset time, that is, the current scanning behavior to be predicted is the first scanning behavior within the preset time, then the previous scanning behavior input into the behavior prediction model can be empty.

[0062] Step 103: Determine a corresponding target application based on the current code scanning behavior.

[0063] For example, when the predicted current code scanning behavior is obtained, a target application corresponding to the current code scanning behavior is searched in a pre-stored code scanning list.

[0064] When it is determined that there are multiple target applications corresponding to the current scanning behavior stored in the scanning list, it means that multiple target applications all meet the current scanning behavior. At this time, one target application is determined from the multiple target applications according to preset rules to execute the current scanning behavior.

[0065] Among them, the preset rule may be to randomly select a target application from multiple target applications; or the preset rule may be to determine the application most frequently used by the user as the final target application based on the user's historical usage records of multiple target applications; or the preset rule may be to determine the application with the largest current discount as the final target application based on the current discounts of multiple target applications. For example, if the current code scanning behavior is the user's payment behavior for buying breakfast, the corresponding target applications include the first APP, the second APP, and the third APP. The preset rule is to determine the application most frequently used by the user as the final target application based on the user's historical usage records of multiple target applications. Assuming that the second APP is determined to be the APP most frequently used by the user from the first APP, the second APP, and the third APP, the second APP is determined to be the final target application.

[0066] It should be noted that when it is determined that there are multiple target applications corresponding to the current scanning behavior stored in the scanning list, the terminal device can display a selection control, and the user inputs the application through the selection control, thereby determining the application input by the user as the final target application.

[0067] It should be noted that before using the barcode display method of the present invention, first, each application with a barcode display function can authorize the platform configured with the barcode display method to ensure that the platform can access each application with a barcode display function; secondly, the correspondence between the scanning behavior and the application with a barcode display function can be pre-constructed, and the resulting scanning list is shown in Table 1; for example, in Table 1, the scanning behavior includes payment behavior, commuting behavior, epidemic supervision behavior, etc.; among them, the application corresponding to the payment behavior can be the first APP, the second APP, and the third APP, etc.; the application corresponding to the commuting behavior can be the subway APP, the bus APP, and the shared bicycle APP, etc.; the application corresponding to the epidemic supervision behavior can be the epidemic prevention APP, etc.

[0068] Table 1

[0069] Scanning behavior app Payment behavior First APP, Second APP and Third APP Commuter behavior Subway APP, bus APP and shared bike APP Epidemic supervision behavior Epidemic prevention APP

[0070] The specific method of establishing a scan code list can be achieved in the following ways:

[0071] In the first method, a platform equipped with a barcode display method detects the applications with barcode display function installed on the terminal device, and establishes a mapping relationship between each detected application with barcode display function and the corresponding scanning behavior to obtain a scanning list; taking users in Beijing as an example, if the platform detects that the installed applications with barcode display function include the first APP, the second APP, the subway APP and the epidemic prevention APP, the established scanning list is shown in Table 2.

[0072] Table 2

[0073] Scanning behavior app Payment behavior First APP and Second APP Commuter behavior Subway APP Epidemic supervision behavior Epidemic prevention APP

[0074] The second method is to obtain a first input from the user, and in response to the first input, establish a mapping relationship between each application with a barcode display function indicated by the first input and a corresponding code scanning behavior to obtain a code scanning list.

[0075] For example, the user's first input can be understood as the user's initial configuration behavior for the platform. The user can input the application installed on the terminal device that needs to display the barcode, or the application that needs to be automatically started through the barcode display method of the present invention, so as to establish a mapping relationship between the application input by the user and the corresponding scanning behavior, and obtain a scanning list.

[0076] Step 104: Display the barcode interface of the target application.

[0077] For example, when the current scanning behavior determines the corresponding target application, the target application is started. If the barcode interface is the opening interface of the target application, the barcode interface is directly displayed; if the barcode interface is not the opening interface of the target application, the user can perform related operations to open the barcode interface of the target application.

[0078] A barcode display method provided by the present invention predicts the current scanning behavior corresponding to the current time through a behavior prediction model based on the current time and the previous scanning behavior, and displays the barcode interface of the corresponding target application based on the current scanning behavior. The user does not need to manually open the corresponding application on different occasions, thereby simplifying the user operation.

[0079] Optionally, Figure 2 FIG. 2 is a flow chart of the barcode display method provided by the present invention. Figure 2 As shown, Figure 1 Step 102 in the embodiment can be specifically implemented by the following steps:

[0080] Step 1021: Obtain the target user type.

[0081] For example, when a barcode display request is received, a user type input box can be displayed, and the user enters the user type in the user type input box, so that the terminal device obtains the target user type; for example, the target user type may be an office worker in the financial industry, and the specific target user type may be determined based on each user's own situation.

[0082] Step 1022: Determine a target behavior prediction model corresponding to the target user type.

[0083] For example, when the target user type is obtained, the target behavior prediction model corresponding to the target user type is searched in the pre-stored model list; wherein the model list stores the mapping relationship between the behavior prediction model and the user type. For example, if the target user type is an office worker in the financial industry, then the target behavior prediction model is a behavior prediction model corresponding to office workers in the financial industry.

[0084] Step 1023: input 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.

[0085] For example, when the current time, the previous scanning behavior and the target behavior prediction model are obtained, the current time and the previous scanning behavior are input into the target behavior prediction model, and the target behavior prediction model predicts the current scanning behavior based on the current time and the previous scanning behavior to obtain the current scanning behavior that is finally output by the target behavior prediction model.

[0086] The barcode display method provided by the present invention selects a target behavior prediction model corresponding to the user type to predict the current code scanning behavior, which can better meet user needs and improve the prediction accuracy of the behavior prediction model.

[0087] Optionally, Figure 3 FIG. 3 is a flow chart of the barcode display method provided by the present invention. Figure 3 As shown, Figure 1 Step 104 in the embodiment specifically comprises the following steps:

[0088] Step 1041: Obtain the jump path of the barcode interface.

[0089] For example, when determining the target application corresponding to the current scanning behavior, the jump path of the barcode interface corresponding to the target application is searched in a pre-stored path list; wherein the path list stores a mapping relationship between the application and the jump path of the barcode interface.

[0090] Step 1042: Acquire the barcode interface based on the jump path.

[0091] Step 1043: display the barcode interface.

[0092] For example, when the jump path of the barcode interface in the target application is determined, the barcode interface of the target application can be directly located according to the jump path, and then the barcode interface can be displayed.

[0093] It should be noted that the platform configured with the barcode display method can detect in real time each application with a barcode display function installed by the user to maintain synchronous updates between the platform and the application with a barcode display function. When it is determined that the jump path of the barcode interface of the application has changed, the jump path of the corresponding application is updated in the path list, that is, the new jump path of the barcode interface of the application is saved in correspondence with the application, so that if the jump path changes, it can also jump directly to the corresponding barcode interface, which is convenient for users to use and improves user experience.

[0094] It should be noted that when the jump path of an application with a barcode display function changes, it can actively report the new jump path to the platform configured with the barcode display method, so that the platform can save the new jump path of the application received in correspondence with the application.

[0095] The barcode display method provided by the present invention directly locates the barcode interface based on the jump path of the pre-stored barcode interface. In this way, even in different usage scenarios, the user does not need to manually start different applications, nor does the user need to click through the function menu step by step to find the barcode interface, which greatly simplifies the user operation; in addition, for applications that the user is not familiar with, the corresponding barcode interface can be directly located based on the jump path, which can bring great convenience to the user.

[0096] Further, Figure 4 FIG. 4 is a flow chart of the barcode display method provided by the present invention. Figure 4 As shown, after executing step 104, the method further includes the following steps:

[0097] Step 105: Obtain the actual code scanning behavior corresponding to the current time.

[0098] For example, after predicting the current scanning behavior based on the above-mentioned behavior prediction model, the user's actual usage needs can also be tracked and analyzed. That is, after determining the corresponding target application based on the current scanning behavior output by the behavior prediction model, an option to determine whether the prediction result is correct can be displayed. When it is detected that the user input is an option with a correct prediction result, there is no need to correct the behavior prediction model; when it is detected that the user input is an option with an incorrect prediction result, a real scanning behavior input box is displayed to facilitate the user to enter the real scanning behavior corresponding to the current time in the real scanning behavior input box, so that the terminal device obtains the real scanning behavior corresponding to the current time.

[0099] For example, after determining the corresponding target application based on the current scanning behavior output by the behavior prediction model, the user behavior can also be monitored. If no operation is received from the user within a preset time, it is determined that the currently opened target application meets the user's usage needs; if the user is monitored to open the barcode of other applications within the preset time, it is determined that the current prediction result is inaccurate.

[0100] Step 106: When the actual code scanning behavior is inconsistent with the current code scanning behavior, the model parameters of the behavior prediction model are optimized based on the actual code scanning behavior and the current code scanning behavior to obtain an optimized behavior prediction model.

[0101] For example, when the actual scanning behavior corresponding to the current time is obtained, the actual scanning behavior is compared with the predicted current scanning behavior. When it is determined that the actual scanning behavior is inconsistent with the predicted current scanning behavior, the target loss function is determined based on the similarity between the actual scanning behavior and the current scanning behavior, and the model parameters of the behavior prediction model are optimized based on the target loss function; as long as each predicted current scanning behavior is inconsistent with the actual scanning behavior, the optimization method is executed to finally obtain the optimized behavior prediction model, that is, the behavior prediction model for a certain user; subsequently, the current scanning behavior can be predicted based on the behavior prediction model corresponding to the user.

[0102] The barcode display method provided by the present invention corrects the behavior prediction model based on the actual code scanning behavior corresponding to the current time and the predicted current code scanning behavior, thereby realizing personalized customization of the behavior prediction model and improving the prediction accuracy of the behavior prediction model.

[0103] Further, Figure 5 FIG. 5 is a flow chart of the bar code display method of the present invention. Figure 5 As shown, in the execution Figure 1 Before step 101, the method further comprises the following steps:

[0104] Step 501: Obtain sample data.

[0105] The sample data includes a code scanning behavior sample within a preset time and a code scanning time sample corresponding to the code scanning behavior sample; the preset time may be one day or a set time period.

[0106] For example, taking the preset time of one day as an example, all scanning behaviors of different users in one day and the scanning time corresponding to each scanning behavior are obtained based on big data, all scanning behaviors are taken as scanning behavior samples, and the scanning time corresponding to all scanning behaviors are taken as scanning time samples, then the sample data includes multiple scanning behavior samples and corresponding multiple scanning time samples.

[0107] It is understandable that, usually, users have roughly the same daily schedule. For example, office workers have relatively fixed commuting time on weekdays, and what users do at different times is also relatively fixed. Therefore, the correlation between time and user scanning behavior can be analyzed through big data, and then when the user needs to perform a scanning action, the application corresponding to the scanning behavior associated with that time can be automatically started. For example, 7:30 to 8:30 in the morning is generally commuting time. If the user sends a scanning request during this time period, it can be determined that the user's scanning demand is to take public transportation to work, so the application related to transportation can be automatically started.

[0108] In addition, there will be certain correlations between different scanning behaviors of users. For example, after a user scans a code to enter a subway station, the subsequent scanning behavior may be scanning to exit the station; or, if there are consumer terminals such as vending machines in the subway station, the subsequent scanning behavior may also be scanning to pay. In other words, the correlation between behaviors can be analyzed through big data, and the user's current scanning behavior can be predicted based on the user's previous scanning behavior, and then the application corresponding to the current behavior can be automatically started when the user needs to perform a scanning action.

[0109] In view of the above description, the present application obtains sample data and trains an initial prediction model based on the sample data to obtain a behavior prediction model for predicting the current scanning behavior.

[0110] Step 502: Mark the corresponding relationship between the code scanning time sample, the code scanning behavior sample and the previous code scanning behavior sample.

[0111] For example, when the sample data is obtained, the sample data is marked, that is, the scanning behavior samples and the scanning time samples are sorted, and for each scanning time sample, the corresponding relationship between the scanning time sample, the scanning behavior corresponding to the adjacent scanning time sample before the scanning time sample (the previous scanning behavior sample), and the scanning behavior performed at the scanning time sample (scanning behavior sample) is marked.

[0112] Step 503: Train the initial prediction model based on the code scanning time sample and the previous code scanning behavior sample to obtain the current code scanning behavior sample output by the initial prediction model.

[0113] For example, after the sample data is marked, the marked scanning time samples and the corresponding previous scanning behavior samples are input into the constructed initial prediction model. The initial preset model predicts the possible behaviors based on the scanning time samples and the corresponding previous scanning behavior samples. Finally, the predicted multiple scanning behaviors and the occurrence probability of each scanning behavior are output, the occurrence probability of each scanning behavior is sorted, and the scanning behavior with the highest probability of occurrence is determined as the current scanning behavior sample.

[0114] Step 504: Optimize the model parameters of the initial prediction model based on the current code scanning behavior sample and the code scanning behavior sample until a convergence condition is reached to obtain the behavior prediction model.

[0115] For example, when the current scanning behavior sample is obtained, the current scanning behavior sample is compared with the scanning behavior sample corresponding to the previously marked scanning time sample. When it is determined that the current scanning behavior sample is consistent with the previously marked scanning behavior sample, it means that the prediction is correct.

[0116] When it is determined that the current scanning behavior sample is inconsistent with the previously marked scanning behavior sample, it means that the prediction is wrong. At this time, a loss function is constructed based on the similarity between the current scanning behavior sample and the scanning behavior sample. The loss function is used to evaluate the degree to which the predicted value of the initial prediction model is different from the true value. Therefore, the model parameters of the initial prediction model are optimized based on the constructed loss function, and training is continuously performed until the model reaches the convergence condition to obtain a behavior prediction model.

[0117] It should be noted that in actual use, the corresponding loss function can be selected according to the use requirements, and the present invention is not limited to this.

[0118] The barcode display method provided by the present invention trains the initial prediction model based on the labeled sample data, and optimizes the model parameters of the initial prediction model based on the loss function until the convergence condition is reached, thereby obtaining the final behavior prediction model and improving the performance of the behavior prediction model.

[0119] Optionally, Figure 5 Step 501 in the above method can be implemented in the following way:

[0120] Acquire user information; wherein the user information includes user travel information, or the user travel information and user attribute information; determine the user type based on the user information; and acquire the sample data corresponding to the user type.

[0121] The user attribute information includes at least one of the following: the user's industry, the user's region, and the user's type of work, etc.

[0122] For example, since different users have different daily schedules, in order to improve the accuracy of the behavior prediction model, different behavior prediction models can be constructed for different types of users. That is, when obtaining sample data, different sample data are obtained for different types of users.

[0123] The specific method for obtaining sample data is: first obtain the user's itinerary information, or the user's itinerary information and the user's attribute information. When only the user's itinerary information is obtained, the user type can be coarsely divided based on the user's itinerary information. For example, if the user's itinerary information includes going to work at 8 a.m. and returning home from the company at 5 p.m., then the user type of the user is determined to be an office worker; if the user's itinerary information is going to school at 7:30 a.m. and returning home from school at 4:30 p.m., then the user type of the user is determined to be a student; if the user's itinerary information is going to the vegetable market to buy vegetables at 8 a.m., exercising in the square at 9 a.m., and cooking at home at 10 a.m., then the user type of the user is determined to be an elderly person, etc.

[0124] In actual use, even if they are all office workers, users from different industries, different regions and different occupations will have different daily itineraries, so it is possible to obtain user itinerary information and user attribute information at the same time, and divide user types into fine-grained categories based on user itinerary information and user attribute information. For example, user types can be divided into office workers in the financial industry, office workers in Beijing, night shift workers, etc.

[0125] Optionally, when sample data corresponding to the user type is obtained, the model parameters of the initial prediction model are optimized based on the current code scanning behavior sample and the code scanning behavior sample until a convergence condition is reached to obtain the behavior prediction model, which specifically includes the following:

[0126] Based on the current code scanning behavior sample and the code scanning behavior sample, the model parameters of the initial prediction model are optimized until a convergence condition is reached, thereby obtaining a behavior prediction model corresponding to the user type.

[0127] For example, when determining the user type, sample data corresponding to the user type is obtained, and an initial prediction model is trained based on the sample data of the user type, and finally a behavior prediction model corresponding to the user type is obtained.

[0128] The barcode display method provided by the present invention trains the initial prediction model according to sample data of different user types, and finally obtains the behavior prediction model corresponding to each user type, thereby realizing the refinement of the model granularity; subsequently, the corresponding behavior prediction model is selected based on the user type to predict the scanning behavior, which can improve the accuracy of the prediction; at the same time, it also simplifies user operations and improves user experience.

[0129] The barcode display device provided by the present invention is described below. The barcode display device described below and the barcode display method described above can be referred to each other.

[0130] Figure 6 Schematic diagram of the structure of the bar code display device provided by the present invention. Figure 6 As shown, 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:

[0131] The first acquisition unit 601 is used to acquire the current time and the last scanning behavior when a barcode display request is acquired; wherein the last scanning behavior is a scanning behavior performed at the last time before the current time;

[0132] A prediction unit 602 is used to input the current time and the previous 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 a code scanning behavior that needs to be performed at the current time;

[0133] A first determining unit 603 is used to determine a corresponding target application based on the current code scanning behavior;

[0134] The display unit 604 is used to display the barcode interface of the target application.

[0135] A barcode display device provided by the present invention predicts the current scanning behavior corresponding to the current time through a behavior prediction model based on the current time and the previous scanning behavior, and displays the barcode interface of the corresponding target application based on the current scanning behavior. The user does not need to manually open the corresponding application on different occasions, thereby simplifying the user operation.

[0136] Based on any of the above embodiments, the prediction unit 602 is specifically configured to:

[0137] Get the target user type;

[0138] Determine a target behavior prediction model corresponding to the target user type;

[0139] The current time and the previous code scanning behavior are input into the target behavior prediction model to obtain the current code scanning behavior output by the target behavior prediction model.

[0140] Based on any of the above embodiments, the display unit 604 is specifically used for:

[0141] Obtaining the jump path of the barcode interface;

[0142] Acquire the barcode interface based on the jump path;

[0143] The barcode interface is displayed.

[0144] Based on any of the above embodiments, the barcode display device further includes a second acquisition unit and a first optimization unit; wherein:

[0145] A second acquisition unit is used to acquire the actual code scanning behavior corresponding to the current time;

[0146] The first optimization unit is used to optimize the model parameters of the behavior prediction model based on the actual code scanning behavior and the current code scanning behavior to obtain an optimized behavior prediction model when the actual code scanning behavior is inconsistent with the current code scanning behavior.

[0147] Based on any 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; wherein:

[0148] A third acquisition unit is used to acquire sample data; wherein the sample data includes a code scanning behavior sample within a preset time and a code scanning time sample corresponding to the code scanning behavior sample;

[0149] a marking unit, used to mark the corresponding relationship between the code scanning time sample, the code scanning behavior sample and the previous code scanning behavior sample;

[0150] A training unit, configured to train an initial prediction model based on the code scanning time sample and the previous code scanning behavior sample to obtain a current code scanning behavior sample output by the initial prediction model;

[0151] The second optimization unit is used to optimize the model parameters of the initial prediction model based on the current code scanning behavior sample and the code scanning behavior sample until a convergence condition is reached to obtain the behavior prediction model.

[0152] Based on any of the foregoing embodiments, the first acquiring unit 601 is specifically configured to:

[0153] Acquire user information; wherein the user information includes user travel information, or the user travel information and user attribute information;

[0154] Determining a user type based on the user travel information, or the user travel information and the user attribute information;

[0155] The sample data corresponding to the user type is obtained.

[0156] The second optimization unit is specifically used for:

[0157] Based on the current code scanning behavior sample and the code scanning behavior sample, the model parameters of the initial prediction model are optimized until a convergence condition is reached, thereby obtaining a behavior prediction model corresponding to the user type.

[0158] Figure 7 is a schematic diagram of the physical structure of the electronic device provided by the present invention, such as Figure 7As shown, the electronic device may include: a processor 710, a communication interface 720, a memory 730 and a communication bus 740, wherein the processor 710, the communication interface 720 and the memory 730 communicate 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, which includes: when a barcode display request is obtained, obtaining the current time and the last scanning behavior; wherein the last scanning behavior is the scanning behavior executed at the last time before the current time;

[0159] Input the current time and the previous code scanning behavior into the behavior prediction model to obtain the current code scanning behavior output by the behavior prediction model; wherein the current code scanning behavior is the code scanning behavior that needs to be performed at the current time;

[0160] Determine a corresponding target application based on the current code scanning behavior;

[0161] The barcode interface of the target application is displayed.

[0162] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0163] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can execute the barcode display method provided by the above methods, the method comprising: in the case of obtaining a barcode display request, obtaining the current time and the last scanning behavior; wherein the last scanning behavior is a scanning behavior performed at the last time before the current time;

[0164] Input the current time and the previous code scanning behavior into the behavior prediction model to obtain the current code scanning behavior output by the behavior prediction model; wherein the current code scanning behavior is the code scanning behavior that needs to be performed at the current time;

[0165] Determine a corresponding target application based on the current code scanning behavior;

[0166] The barcode interface of the target application is displayed.

[0167] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the barcode display method provided by the above methods, the method comprising: obtaining the current time and the last barcode scanning behavior when a barcode display request is obtained; wherein the last barcode scanning behavior is a barcode scanning behavior performed at the last time before the current time;

[0168] Input the current time and the previous code scanning behavior into the behavior prediction model to obtain the current code scanning behavior output by the behavior prediction model; wherein the current code scanning behavior is the code scanning behavior that needs to be performed at the current time;

[0169] Determine a corresponding target application based on the current code scanning behavior;

[0170] The barcode interface of the target application is displayed.

[0171] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0172] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0173] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A barcode display method, characterized in that: include: When a barcode display request is obtained, the current time and the last barcode scanning behavior are obtained; wherein the last barcode scanning behavior is a barcode scanning behavior performed at the last time before the current time; The current time and the previous scanning behavior are input into a behavior prediction model to obtain the current scanning behavior output by the behavior prediction model; wherein the current scanning behavior is the scanning behavior that needs to be performed at the current time; the scene corresponding to the current scanning behavior is different from the scene corresponding to the previous scanning behavior, and the behavior prediction model is trained based on the scanning time sample and the previous scanning behavior sample, and the previous scanning behavior sample is the scanning behavior performed at the previous time sample before the scanning time sample; Determine a corresponding target application based on the current code scanning behavior; The barcode interface of the target application is displayed.

2. The barcode display method according to claim 1, characterized in that: The step of 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 includes: Get the target user type; Determine a target behavior prediction model corresponding to the target user type; The current time and the previous code scanning behavior are input into the target behavior prediction model to obtain the current code scanning behavior output by the target behavior prediction model.

3. The barcode display method according to claim 1, characterized in that: The barcode interface for displaying the target application includes: Obtaining the jump path of the barcode interface; Acquire the barcode interface based on the jump path; The barcode interface is displayed.

4. The barcode display method according to claim 1, characterized in that: Also includes: Obtain the actual code scanning behavior corresponding to the current time; When the actual code scanning behavior is inconsistent with the current code scanning behavior, the model parameters of the behavior prediction model are optimized based on the actual code scanning behavior and the current code scanning behavior to obtain an optimized behavior prediction model.

5. The barcode display method according to any one of claims 1 to 4, characterized in that: Before obtaining the barcode display request, the method further includes: Acquire sample data; wherein the sample data includes a code scanning behavior sample within a preset time and a code scanning time sample corresponding to the code scanning behavior sample; Marking the correspondence between the code scanning time sample, the code scanning behavior sample and the previous code scanning behavior sample; The initial prediction model is trained based on the code scanning time sample and the previous code scanning behavior sample to obtain a current code scanning behavior sample output by the initial prediction model; Based on the current code scanning behavior sample and the code scanning behavior sample, the model parameters of the initial prediction model are optimized until a convergence condition is reached to obtain the behavior prediction model.

6. The barcode display method according to claim 5, characterized in that: The obtaining of sample data comprises: Acquire user information; wherein the user information includes user travel information, or the user travel information and user attribute information; determining a user type based on the user information; Acquire the sample data corresponding to the user type; The optimizing the model parameters of the initial prediction model based on the current code scanning behavior sample and the code scanning behavior sample until a convergence condition is reached to obtain the behavior prediction model includes: Based on the current code scanning behavior sample and the code scanning behavior sample, the model parameters of the initial prediction model are optimized until a convergence condition is reached, thereby obtaining a behavior prediction model corresponding to the user type.

7. A barcode display device, characterized in that: include: A first acquisition unit is used to acquire the current time and the last barcode scanning behavior when a barcode display request is acquired; wherein the last barcode scanning behavior is a barcode scanning behavior performed at a time before the current time; A prediction unit, used for inputting the current time and the previous scanning behavior into a behavior prediction model to obtain the current scanning behavior output by the behavior prediction model; wherein the current scanning behavior is the scanning behavior that needs to be performed at the current time; the scene corresponding to the current scanning behavior is different from the scene corresponding to the previous scanning behavior, and the behavior prediction model is trained based on the scanning time sample and the previous scanning behavior sample, and the previous scanning behavior sample is the scanning behavior performed at the previous time sample before the scanning time sample; A first determining unit, configured to determine a corresponding target application based on the current code scanning behavior; The display unit is used to display the barcode interface of the target application.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the barcode display method according to any one of claims 1 to 6 are implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the barcode display method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the barcode display method according to any one of claims 1 to 6 are implemented.