CN114153358A - Bar code display method and device, electronic equipment and storage medium - Google Patents

Bar code display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114153358A
CN114153358A CN202111352931.4A CN202111352931A CN114153358A CN 114153358 A CN114153358 A CN 114153358A CN 202111352931 A CN202111352931 A CN 202111352931A CN 114153358 A CN114153358 A CN 114153358A
Authority
CN
China
Prior art keywords
behavior
code scanning
prediction model
current
scanning behavior
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111352931.4A
Other languages
Chinese (zh)
Inventor
李阳彤
肖庆
孙平
李政操
于晓东
张伟
张宇峰
李忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Digital Intelligence Technology Co Ltd
Original Assignee
China Telecom Group System Integration Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Group System Integration Co Ltd filed Critical China Telecom Group System Integration Co Ltd
Priority to CN202111352931.4A priority Critical patent/CN114153358A/en
Publication of CN114153358A publication Critical patent/CN114153358A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3274Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being displayed on the M-device
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07BTICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
    • G07B13/00Taximeters

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a bar code display method, a bar code display device, electronic equipment and a storage medium, wherein the method comprises the following steps: under the condition of acquiring a bar code display request, acquiring current time and a previous scanning code behavior; wherein the last code scanning behavior is a code scanning behavior executed at a last time before the current time; 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; determining a corresponding target application program based on the current code scanning behavior; and displaying the bar code interface of the target application program. According to the bar code display method, the bar code display device, the electronic equipment and the storage medium, a user does not need to manually start corresponding application programs in different occasions, and therefore user operation is simplified.

Description

Bar code display method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a barcode display method and apparatus, an electronic device, and a storage medium.
Background
At present, terminal devices such as mobile phones and bracelets are increasingly widely used, for example, a user collects and pays by scanning a code through a mobile phone, takes public transportation such as a subway and a bus by scanning the code through the mobile phone, and displays a user's travel by scanning the code through the mobile phone.
In the related art, in different occasions, a user needs to start different Application programs (APPs) to perform related code scanning operations, which is complicated to operate.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a barcode display method, a barcode display device, electronic equipment and a storage medium.
The invention provides a bar code display method, which comprises the following steps:
under the condition of acquiring a bar code display request, acquiring current time and a previous scanning code behavior; wherein the last scan behavior is a scan behavior performed at a last time prior to the current time;
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; wherein the current code scanning behavior is a code scanning behavior that needs to be executed at the current time;
determining a corresponding target application program based on the current code scanning behavior;
and displaying the bar code interface of the target application program.
According to the barcode display method provided by the invention, the 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 comprises the following steps:
acquiring a target user type;
determining a target behavior prediction model corresponding to the target user type;
and 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.
According to the barcode display method provided by the invention, the displaying of the barcode interface of the target application program comprises the following steps:
acquiring a skip path of the bar code interface;
acquiring the bar code interface based on the jump path;
and displaying the bar code interface.
The barcode display method provided by the invention further comprises the following steps:
acquiring a real code scanning behavior corresponding to the current time;
and 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.
According to the barcode display method provided by the invention, before the barcode display request is acquired, the method further comprises the following steps:
acquiring sample data; the sample data comprises code scanning behavior samples in preset time and code scanning time samples corresponding to the code scanning behavior samples;
marking the corresponding relation among the code scanning time sample, the code scanning behavior sample and the previous code scanning behavior sample;
training 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;
and 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.
According to the barcode display method provided by the invention, the acquiring of the sample data comprises the following steps:
acquiring user information; the user information comprises user travel information or the user travel information and user attribute information;
determining a user type based on the user information;
acquiring the sample data corresponding to the user type;
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, and obtaining the behavior prediction model comprises:
and 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, and obtaining a behavior prediction model corresponding to the user type.
The present invention also provides a barcode display device, comprising:
the first acquisition unit is used for acquiring the current time and the previous scanning behavior under the condition of acquiring the bar code display request; wherein the last scan behavior is a scan behavior performed at a last time prior to the current time;
the prediction unit is used for 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; wherein the current code scanning behavior is a code scanning behavior that needs to be executed at the current time;
a first determining unit, configured to determine a corresponding target application based on the current code scanning behavior;
and the display unit is used for displaying the bar code interface of the target application program.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of any one of the barcode display methods.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the barcode display method as described in any one of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of any of the barcode display methods described above.
According to the bar code display method, the bar code display device, the electronic equipment and the storage medium, the current code scanning behavior corresponding to the current time is predicted through the behavior prediction model based on the current time and the previous code scanning behavior, the bar code interface of the corresponding target application program is displayed based on the current code scanning behavior, and a user does not need to manually open the corresponding application program in different occasions, so that the user operation is simplified.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a barcode display method according to the present invention;
FIG. 2 is a second schematic flowchart of a barcode display method provided in the present invention;
FIG. 3 is a third schematic flow chart of a barcode display method according to the present invention;
FIG. 4 is a fourth schematic flowchart of a barcode display method provided in the present invention;
FIG. 5 is a fifth flowchart illustrating a barcode display method according to the present invention;
FIG. 6 is a schematic structural diagram of a barcode display device provided in the present invention;
fig. 7 is a schematic physical structure diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The barcode 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 barcode display method provided in the present invention, and as shown in fig. 1, the method includes:
step 101, acquiring current time and previous code scanning behavior under the condition of acquiring a barcode display request.
Wherein the last scan behavior is a scan behavior performed at a last time prior to 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 requirements of users, for example, the barcode display method of the present invention may be configured in an APP of a terminal device, or configured in an applet, so as to implement the barcode display function of the present invention.
For example, when a user has a barcode display requirement, the user may submit a barcode display request to a platform configured with a barcode display method, taking the platform as an APP as an example, an operation control for barcode display may be configured on an APP interface, and when the user clicks the operation control, the terminal device may obtain the barcode display request through the APP; or, an operation control for voice acquisition is configured on the APP interface, the user clicks the operation control for voice acquisition, and inputs voice such as "code scanning", and the APP of the terminal device can determine that the barcode display request is input by the user at this time based on the voice content input by the user.
When the bar code display request is obtained, the current time is obtained, and the previous scanning behavior corresponding to the previous time adjacent to the current time is searched in the target list. All code scanning behaviors executed before and corresponding code scanning time are stored in the target list.
And 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.
Wherein the current code scanning behavior is a code scanning behavior that needs to be executed at the current time; the behavior prediction model is obtained by training based on a code scanning time sample and a previous code scanning behavior sample; the last scan code behavior sample is a scan code behavior performed at a last time sample prior to the scan code time sample.
It should be noted that before the behavior prediction model is used, the behavior prediction model needs to be trained, that is, code scanning behavior samples and corresponding code scanning time samples in a preset time before the current time are obtained; constructing an initial prediction model; and training and optimizing the initial prediction model based on the code scanning behavior samples in the acquired preset time and the corresponding code scanning time samples to obtain a final behavior prediction model. The specific training process is described in steps 501 to 504 below.
In an example, when the current time and the previous code scanning behavior are acquired, the current time and the previous code scanning behavior are input into the behavior prediction model, and the behavior prediction model analyzes the current time and the previous code scanning behavior to predict and obtain the current code scanning behavior corresponding to the current time. For example, the current time is 8: 45 minutes, the last code scanning behavior is subway exit, and the predicted current code scanning behavior can be payment behavior when the user purchases breakfast.
It should be noted that, in actual use, if no code scanning behavior occurs before the current time within the preset time, that is, the current code scanning behavior to be predicted is the first code scanning behavior within the preset time, the last code scanning behavior of the input behavior prediction model may be null.
And 103, determining a corresponding target application program based on the current code scanning behavior.
Illustratively, when the predicted current code scanning behavior is acquired, the 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 behavior stored in the code scanning list are determined, the fact that the target application programs all meet the current code scanning behavior is indicated, and at the moment, one target application program is determined to execute the current code scanning behavior from the target application programs according to a preset rule.
The preset rule can be that one target application program is randomly selected from a plurality of target application programs; or, the preset rule may be that based on the historical usage records of the plurality of target applications by the user, the application with the highest usage frequency by the user is determined as the final target application; or, the preset rule may be that based on the current benefits of multiple target applications, the application with the greatest current benefit is determined as the final target application. For example, if the current code scanning behavior is a payment behavior of a user for buying breakfast, the corresponding target application includes a first APP, a second APP and a third APP, the preset rule is that based on historical usage records of the plurality of target applications by the user, the application with the highest usage frequency of the user is determined as the final target application, and the second APP is determined as the final target application on the assumption that the second APP is determined as the APP with the highest usage frequency of the user from the first APP, the second APP and the third APP.
It should be noted that, when it is determined that a plurality of target application programs corresponding to the current code scanning behavior are stored in the code scanning list, the terminal device may display a selection control, and the user inputs an application program through the selection control, so that the application program input by the user is determined as a final target application program.
Before the barcode display method of the present invention is used, first, each application program with a barcode display function may authorize a platform configured with the barcode display method, so as to ensure that the platform can access each application program with a barcode display function; secondly, a corresponding relation between the code scanning behavior and the application program with the bar code display function can be constructed in advance, and an obtained code scanning list is shown in table 1; for example, code scanning behavior in table 1 includes payment behavior, commute behavior, epidemic situation supervision behavior, and the like; the application program corresponding to the payment behavior can be a first APP, a second APP, a third APP and the like; the application programs corresponding to the commuting behaviors can be subway APP, bus APP, shared bicycle APP and the like; the application program corresponding to the epidemic situation supervision behavior can be epidemic prevention APP and the like.
TABLE 1
Code scanning behavior Application program
Payment act A first APP, a second APP and a third APP
Commuting behaviour Subway APP, bus APP and shared bicycle APP
Epidemic surveillance behavior Epidemic prevention APP
The specific method for establishing the code scanning list can be realized by the following modes:
in the first mode, a platform configured with a barcode display method detects application programs with a barcode display function installed on terminal equipment, and establishes a mapping relation between each detected application program with the barcode display function and a corresponding code scanning behavior to obtain a code scanning list; taking a user in the beijing area as an example, if the platform detects that the installed application programs with the barcode display function include a first APP, a second APP, a subway APP and an epidemic prevention APP, the established code scanning list is shown in table 2.
TABLE 2
Code scanning behavior Application program
Payment act A first APP and a second APP
Commuting behaviour Subway APP
Epidemic surveillance behavior Epidemic prevention APP
And in the second mode, acquiring a first input of a user, responding to the first input, and establishing a mapping relation between each application program with the bar code display function indicated by the first input and the corresponding code scanning behavior to obtain a code scanning list.
For example, 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 to be displayed with a barcode, or an application program needing to be automatically started 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.
And 104, displaying a bar code interface of the target application program.
Exemplarily, when the current code scanning behavior is determined to determine the corresponding target application program, the target application program is started, and if the barcode interface is an open interface of the target application program, the barcode interface is directly displayed; if the bar code interface is not the opening interface of the target application program, the user can execute relevant operations to open the bar code interface of the target application program.
According to the bar code display method provided by the invention, based on the current time and the previous code scanning behavior, the current 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 code scanning behavior, so that a user does not need to manually open the corresponding application program in different occasions, and the user operation is simplified.
Optionally, fig. 2 is a second schematic flow chart of the barcode display method provided by the present invention, and as shown in fig. 2, step 102 in fig. 1 may be specifically implemented by the following steps:
and step 1021, acquiring the type of the target user.
Exemplarily, when the barcode display request is obtained, a user type input box can be displayed, and a user type is input in the user type input box by a user, namely the user type is obtained by the terminal device to be a target user type; for example, the target user type may be a working group of the financial industry, and the specific target user type may be determined based on the own condition of each user.
And step 1022, determining a target behavior prediction model corresponding to the target user type.
Illustratively, when a target user type is obtained, a target behavior prediction model corresponding to the target user type is searched in a pre-stored model list; the model list stores the mapping relation between the behavior prediction model and the user type. For example, if the target user type is a working group of the financial industry, the target behavior prediction model is a behavior prediction model corresponding to the working group of the financial industry.
And 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.
Exemplarily, 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 finally output by the target behavior prediction model.
According to the bar code display method, 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 better, and the prediction accuracy of the behavior prediction model is improved.
Optionally, fig. 3 is a third schematic flow chart of the barcode display method provided by the present invention, as shown in fig. 3, step 104 in fig. 1 specifically includes the following steps:
and 1041, acquiring a jump path of the bar code interface.
Exemplarily, when a target application program corresponding to the current code scanning behavior is determined, a jump path of a barcode interface corresponding to the target application program is searched in a pre-stored path list; the path list stores the mapping relation between the application program and the jump path of the bar code interface.
And 1042, acquiring the bar code interface based on the jump path.
And 1043, displaying the bar code interface.
For example, when a jump path of a barcode interface in a target application program is determined, the barcode interface of the target application program can be directly located according to the jump path, and then the barcode interface is displayed.
It should be noted that the platform configured with the barcode display method can detect each application program with the barcode display function installed by the user in real time, so as to keep the platform and the application program with the barcode display function updated synchronously. Under the condition that the skip path of the bar code interface of the application program is determined to be changed, the corresponding skip path of the application program is updated in the path list, namely, the new skip path of the bar code interface of the application program is correspondingly stored with the application program, so that if the skip path is changed, the corresponding bar code interface can be directly skipped, the use by a user is facilitated, and the user experience is improved.
It should be noted that, when the jump path changes, the application program with the barcode display function may also actively report a new jump path to the platform configured with the barcode display method, so that the platform is convenient to store the received new jump path of the application program in correspondence with the application program.
According to the bar code display method provided by the invention, the bar code interface is directly positioned based on the pre-stored jump path of the bar code interface, so that even in different use scenes, a user is not required to manually start different application programs, and the user is not required to click a function menu step by step to search the bar code interface, thereby greatly simplifying the user operation; in addition, aiming at an application program which is unfamiliar to the user, the corresponding bar code interface is directly positioned based on the jump path, and great convenience can be brought to the user.
Further, fig. 4 is a fourth schematic flow chart of the barcode display method provided in the present invention, as shown in fig. 4, after step 104 is executed, the method further includes the following steps:
and 105, acquiring a real code scanning behavior corresponding to the current time.
For example, after the current code scanning behavior is predicted based on the behavior prediction model, the actual use requirement of the user may be tracked and analyzed, that is, after the corresponding target application program is determined based on the current code scanning behavior output by the behavior prediction model, an option of whether the prediction result is correct may be displayed, and when it is detected that the user inputs the option of which the prediction result is correct, the behavior prediction model does not need to be corrected; when the user input is detected to be an option with a wrong prediction result, displaying a real code scanning behavior input box, so that the user can conveniently input a real code scanning behavior corresponding to the current time in the real code scanning behavior input box, namely the real code scanning behavior corresponding to the current time acquired by the terminal device.
Exemplarily, after determining a corresponding target application program based on a current code scanning behavior output by the behavior prediction model, the user behavior may also be monitored, and if no operation of the user is received within a preset time, it is determined that the currently opened target application program meets the use requirement of the user; and if the condition that the user opens the bar codes of other application programs is monitored within the preset time, determining that the current prediction result is 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.
Exemplarily, when the real code scanning behavior corresponding to the current time is obtained, the real code scanning behavior is compared with the predicted current code scanning behavior, when the real code scanning behavior is determined to be inconsistent with the predicted current code scanning behavior, a target loss function is determined based on the similarity between the real code scanning behavior and the current code scanning behavior, and the model parameters of the behavior prediction model are optimized based on the target loss function; executing the optimization method as long as the current code scanning behavior obtained by each prediction is inconsistent with the real code scanning behavior, and finally obtaining an optimized behavior prediction model, namely obtaining a behavior prediction model for a certain user; the current code scanning behavior can be predicted based on the behavior prediction model corresponding to the user.
According to the bar code display method, 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, personalized customization of the behavior prediction model is achieved, and the prediction accuracy of the behavior prediction model is improved.
Further, fig. 5 is a fifth schematic flow chart of the barcode display method of the present invention, as shown in fig. 5, before executing step 101 in fig. 1, the method further includes the following steps:
step 501, sample data is obtained.
The sample data comprises code scanning behavior samples in preset time and code scanning time samples corresponding to the code scanning behavior samples; the preset time may be a day or a set certain period of time.
For example, taking the preset time as one day as an example, all code scanning behaviors of different users in one day and code scanning time corresponding to each code scanning behavior are obtained based on big data, all the code scanning behaviors are taken as code scanning behavior samples, the code scanning time corresponding to all the code scanning behaviors is taken as code scanning time samples, and the sample data includes a plurality of code scanning behavior samples and a plurality of corresponding code scanning time samples.
It can be understood that, in general, the daily trips of the user are approximately the same, taking office workers as an example, the commuting time of a working day is relatively fixed, and what the user does at different times is also relatively fixed, so that the relevance between the time and the code scanning behavior of the user can be analyzed through big data, and further, when the user needs to perform the code scanning action, the application program corresponding to the code scanning behavior related to the time is automatically started. For example, if a user makes a code scanning request during the period of seven to eight morning hours, it can be determined that the user's code scanning needs are on duty with a vehicle, and thus the application program related to the passage can be automatically started.
In addition, a certain relevance also exists among different code scanning behaviors of the user, for example, after the code scanning of the user enters a subway station, the code scanning behavior occurring subsequently may 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 subsequently may also be code scanning payment. That is to say, the relevance 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 obtains sample data, and trains the initial prediction model based on the sample data to obtain a behavior prediction model for predicting the current code scanning behavior.
Step 502, marking the corresponding relation among the code scanning time sample, the code scanning behavior sample and the previous code scanning behavior sample.
Illustratively, when sample data is acquired, the sample data is marked, that is, the code scanning behavior samples and the code scanning time samples are sorted, and for each code scanning time sample, the code scanning behavior (last code scanning behavior sample) corresponding to the adjacent code scanning time sample before the code scanning time sample, and the code scanning behavior (code scanning behavior sample) executed at the code scanning time sample are marked.
Step 503, training an initial prediction model based on the code scanning time sample and the previous code scanning behavior sample, and obtaining a current code scanning behavior sample output by the initial prediction model.
Exemplarily, after sample data is marked, the marked code scanning time samples and the corresponding previous code scanning behavior samples are input into a constructed initial prediction model, a behavior which is possibly generated is predicted by an initial preset model based on the code scanning time samples and the corresponding previous code scanning behavior samples, a plurality of predicted code scanning behaviors and an occurrence probability corresponding to each code scanning behavior are finally output, the occurrence probability corresponding to each code scanning behavior is sequenced, and the code scanning behavior with the highest occurrence probability is determined as the current code scanning behavior sample.
And 504, optimizing 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.
For example, 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.
And when the current code scanning behavior sample is determined to be inconsistent with the code scanning behavior sample marked before, the prediction error is indicated, at this time, a loss function is constructed based on the similarity between the current code scanning behavior sample and the code scanning behavior sample, and the loss function is used for evaluating the degree of the initial prediction model with different predicted values and true values, so model parameters of the initial prediction model are optimized based on the constructed loss function, and the training is continued 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 in the present invention.
According to the bar code display method, the initial prediction model is trained based on the marked sample data, model parameters of the initial prediction model are optimized based on the loss function until a convergence condition is achieved, a final behavior prediction model is obtained, and the performance of the behavior prediction model is improved.
Optionally, step 501 in fig. 5 may be specifically implemented by the following steps:
acquiring user information; the user information comprises user travel information or the user travel information and user attribute information; determining a user type based on the user information; and acquiring the sample data corresponding to the user type.
Wherein, the user attribute information at least comprises one of the following items: user industry, user area and user type, etc.
For example, since the daily trips of different users may be different, in order to improve the accuracy of the behavior prediction model, different behavior prediction models may be built for different types of users. That is, when sample data is acquired, different types of user acquire different sample data.
The method for acquiring the sample data specifically comprises the following steps: firstly, acquiring user travel information, or user travel information and user attribute information, and when only the user travel information is acquired, dividing the user type based on the coarse granularity of the user travel information, for example, if the user travel information includes that the user goes to work in the morning eight hours and goes home from the company in the afternoon five hours, determining that the user type of the user is a working family; if the user travel information indicates that the user goes to the school in the morning in seven o 'clock and goes home from the school in the afternoon in four o' clock, determining that the user type of the user is a student; and if the user travel information indicates eight morning spots to buy dishes in the dish market, nine spots exercise the body in the square and ten spots cook at home, determining that the user type of the user is the old, and the like.
In actual use, even if all users are office workers, users in different industries, different regions and different work types, the daily itineraries are different, so that the user itinerary information and the user attribute information can be simultaneously obtained, the user types are divided according to the user itinerary information and the user attribute information in a fine granularity mode, and the user types can be divided into financial industry office workers, Beijing region office workers, night office workers and the like.
Optionally, when sample data corresponding to the user type is obtained, optimizing a model parameter 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, specifically including the following steps:
and 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, and obtaining a behavior prediction model corresponding to the user type.
Illustratively, when the user type is determined, sample data corresponding to the user type is acquired, the 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.
According to the bar code display method, the initial prediction model is trained according to sample data of different user types, and finally the behavior prediction model corresponding to each user type can be obtained, so that the refinement of the model granularity is realized; the corresponding behavior prediction model is selected to predict the code scanning behavior based on the user type, so that the prediction accuracy can be improved; meanwhile, the user operation is simplified, and the user experience is improved.
The following describes the barcode display device provided by the present invention, and the barcode display device described below and the barcode display method described above may be referred to in correspondence with each other.
Fig. 6 is a schematic structural diagram of a barcode display apparatus provided in the present invention, and as shown in fig. 6, the barcode display apparatus includes a first obtaining unit 601, a prediction model 602, a first determining unit 603, and a display unit 604; wherein:
a first obtaining unit 601, configured to obtain a current time and a previous scanning behavior when a barcode display request is obtained; wherein the last scan behavior is a scan behavior performed at a last time prior to 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; wherein the current code scanning behavior is a code scanning behavior that needs to be executed at the current time;
a first determining unit 603, configured to determine a corresponding target application based on the current code scanning behavior;
the display unit 604 is configured to display a barcode interface of the target application.
According to the bar code display device, the current code scanning behavior corresponding to the current time is predicted through the behavior prediction model based on the current time and the previous code scanning behavior, the bar code interface of the corresponding target application program is displayed based on the current code scanning behavior, and a user does not need to manually open the corresponding application program in different occasions, so that the user operation is simplified.
Based on any of the above embodiments, the prediction unit 602 is specifically configured to:
acquiring a target user type;
determining a target behavior prediction model corresponding to the target user type;
and 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.
Based on any of the above embodiments, the display unit 604 is specifically configured to:
acquiring a skip 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 comprises a second obtaining unit and a first optimizing unit; wherein:
the second acquisition unit is used for acquiring a real code scanning behavior corresponding to the current time;
and the first optimization 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 is inconsistent with the current code scanning behavior to obtain the optimized behavior prediction model.
Based on any one of the above embodiments, the barcode display device further comprises a third acquisition unit, a marking unit, a training unit and a second optimization unit; wherein:
a third obtaining unit, configured to obtain sample data; the sample data comprises code scanning behavior samples in preset time and code scanning time samples corresponding to the code scanning behavior samples;
the marking unit is used for marking the corresponding relation among the code scanning time sample, the code scanning behavior sample and the previous code scanning behavior sample;
the training unit is used for training 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;
and the second optimization 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 a convergence condition is reached 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; 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 optimization unit is specifically configured to:
and 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, and obtaining a behavior prediction model corresponding to the user type.
Fig. 7 is a schematic physical structure diagram of an electronic device provided in the present invention, and 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, wherein the processor 710, the communication Interface 720, and the memory 730 communicate with each other via the communication bus 740. Processor 710 may invoke logic instructions in memory 730 to perform a barcode display method comprising: under the condition of acquiring a bar code display request, acquiring current time and a previous scanning code behavior; wherein the last scan behavior is a scan behavior performed at a last time prior to the current time;
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; wherein the current code scanning behavior is a code scanning behavior that needs to be executed at the current time;
determining a corresponding target application program based on the current code scanning behavior;
and displaying the bar code interface of the target application program.
In addition, the logic instructions in the memory 730 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program, the computer program being storable on a non-transitory computer-readable storage medium, the computer program being capable of executing, when executed by a processor, the barcode display method provided by the above methods, the method comprising: under the condition of acquiring a bar code display request, acquiring current time and a previous scanning code behavior; wherein the last scan behavior is a scan behavior performed at a last time prior to the current time;
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; wherein the current code scanning behavior is a code scanning behavior that needs to be executed at the current time;
determining a corresponding target application program based on the current code scanning behavior;
and displaying the bar code interface of the target application program.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements a barcode display method provided by performing the above methods, the method including: under the condition of acquiring a bar code display request, acquiring current time and a previous scanning code behavior; wherein the last scan behavior is a scan behavior performed at a last time prior to the current time;
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; wherein the current code scanning behavior is a code scanning behavior that needs to be executed at the current time;
determining a corresponding target application program based on the current code scanning behavior;
and displaying the bar code interface of the target application program.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A barcode display method is characterized by comprising the following steps:
under the condition of acquiring a bar code display request, acquiring current time and a previous scanning code behavior; wherein the last scan behavior is a scan behavior performed at a last time prior to the current time;
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; wherein the current code scanning behavior is a code scanning behavior that needs to be executed at the current time;
determining a corresponding target application program based on the current code scanning behavior;
and displaying the bar code interface of the target application program.
2. The barcode display method of claim 1, wherein the inputting the current time and the previous scanning behavior into a behavior prediction model to obtain a current scanning behavior output by the behavior prediction model comprises:
acquiring a target user type;
determining a target behavior prediction model corresponding to the target user type;
and 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.
3. The barcode display method of claim 1, wherein the displaying the barcode interface of the target application comprises:
acquiring a skip path of the bar code interface;
acquiring the bar code interface based on the jump path;
and displaying the bar code interface.
4. The barcode display method according to claim 1, further comprising:
acquiring a real code scanning behavior corresponding to the current time;
and 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.
5. The barcode display method according to any one of claims 1 to 4, wherein before the barcode display request is acquired, the method further comprises:
acquiring sample data; the sample data comprises code scanning behavior samples in preset time and code scanning time samples corresponding to the code scanning behavior samples;
marking the corresponding relation among the code scanning time sample, the code scanning behavior sample and the previous code scanning behavior sample;
training 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;
and 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.
6. The barcode display method according to claim 5, wherein the acquiring sample data comprises:
acquiring user information; the user information comprises user travel information or the user travel information and user attribute information;
determining a user type based on the user information;
acquiring the sample data corresponding to the user type;
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, and obtaining the behavior prediction model comprises:
and 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, and obtaining a behavior prediction model corresponding to the user type.
7. A barcode display device, comprising:
the first acquisition unit is used for acquiring the current time and the previous scanning behavior under the condition of acquiring the bar code display request; wherein the last scan behavior is a scan behavior performed at a last time prior to the current time;
the prediction unit is used for 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; wherein the current code scanning behavior is a code scanning behavior that needs to be executed at the current time;
a first determining unit, configured to determine a corresponding target application based on the current code scanning behavior;
and the display unit is used for displaying the bar code interface of the target application program.
8. An electronic device comprising a memory, a processor and a computer program stored on said memory and executable on said processor, wherein said processor when executing said program performs the steps of the barcode display method according to any one of claims 1 to 6.
9. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the barcode display method according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, wherein the computer program when executed by a processor implements the steps of the barcode display method according to any one of claims 1 to 6.
CN202111352931.4A 2021-11-16 2021-11-16 Bar code display method and device, electronic equipment and storage medium Pending CN114153358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111352931.4A CN114153358A (en) 2021-11-16 2021-11-16 Bar code display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111352931.4A CN114153358A (en) 2021-11-16 2021-11-16 Bar code display method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114153358A true CN114153358A (en) 2022-03-08

Family

ID=80456669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111352931.4A Pending CN114153358A (en) 2021-11-16 2021-11-16 Bar code display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114153358A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365543A (en) * 2013-07-08 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Terminal and two-dimensional code display method
WO2015106570A1 (en) * 2014-01-15 2015-07-23 Tencent Technology (Shenzhen) Company Limited Method, terminal, server, device, and system of verification control
CN107292420A (en) * 2017-05-24 2017-10-24 国网北京市电力公司 Data processing method and device
CN107783801A (en) * 2017-11-06 2018-03-09 广东欧珀移动通信有限公司 Application program forecast model is established, preloads method, apparatus, medium and terminal
CN108763453A (en) * 2018-05-28 2018-11-06 浙江口碑网络技术有限公司 The page data processing method and device of Behavior-based control prediction
CN108805559A (en) * 2018-07-25 2018-11-13 努比亚技术有限公司 Quick Response Code method for pushing, mobile terminal and computer readable storage medium
CN110782284A (en) * 2019-10-24 2020-02-11 腾讯科技(深圳)有限公司 Information pushing method and device and readable storage medium
CN111354091A (en) * 2020-02-28 2020-06-30 Oppo广东移动通信有限公司 Riding card swiping method and device, terminal equipment and storage medium
CN111695051A (en) * 2020-05-06 2020-09-22 支付宝(杭州)信息技术有限公司 Page access method and device based on code scanning, electronic equipment and storage medium
CN112732375A (en) * 2019-10-28 2021-04-30 北京达佳互联信息技术有限公司 Method and device for determining starting page, storage medium and server
CN113112264A (en) * 2021-04-19 2021-07-13 中国工商银行股份有限公司 Automatic display method, device, computer system and readable storage medium for riding codes

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365543A (en) * 2013-07-08 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Terminal and two-dimensional code display method
WO2015106570A1 (en) * 2014-01-15 2015-07-23 Tencent Technology (Shenzhen) Company Limited Method, terminal, server, device, and system of verification control
CN107292420A (en) * 2017-05-24 2017-10-24 国网北京市电力公司 Data processing method and device
CN107783801A (en) * 2017-11-06 2018-03-09 广东欧珀移动通信有限公司 Application program forecast model is established, preloads method, apparatus, medium and terminal
CN108763453A (en) * 2018-05-28 2018-11-06 浙江口碑网络技术有限公司 The page data processing method and device of Behavior-based control prediction
CN108805559A (en) * 2018-07-25 2018-11-13 努比亚技术有限公司 Quick Response Code method for pushing, mobile terminal and computer readable storage medium
CN110782284A (en) * 2019-10-24 2020-02-11 腾讯科技(深圳)有限公司 Information pushing method and device and readable storage medium
CN112732375A (en) * 2019-10-28 2021-04-30 北京达佳互联信息技术有限公司 Method and device for determining starting page, storage medium and server
CN111354091A (en) * 2020-02-28 2020-06-30 Oppo广东移动通信有限公司 Riding card swiping method and device, terminal equipment and storage medium
CN111695051A (en) * 2020-05-06 2020-09-22 支付宝(杭州)信息技术有限公司 Page access method and device based on code scanning, electronic equipment and storage medium
CN113112264A (en) * 2021-04-19 2021-07-13 中国工商银行股份有限公司 Automatic display method, device, computer system and readable storage medium for riding codes

Similar Documents

Publication Publication Date Title
CN109067990B (en) Application service execution method and device
CN108520444B (en) Insurance product recommendation method, equipment, device and computer readable storage medium
CN104951428B (en) User's intension recognizing method and device
CN109992601B (en) To-do information pushing method and device and computer equipment
KR101642216B1 (en) Method and apparatus for analyzing missing not at random data and recommendation system using the same
CN109063000A (en) Question sentence recommended method, customer service system and computer readable storage medium
CN111507672A (en) Mobile inventory method, device and system
CN113836360B (en) Data detection method and device
CN111857803A (en) Page updating method, device, server and storage medium
CN114722266A (en) Questionnaire pushing method and device, electronic equipment and readable storage medium
CN112905937A (en) Service content updating and generating method based on big data and cloud computing service system
CN112905451A (en) Automatic testing method and device for application program
WO2024051146A1 (en) Methods, systems, and computer-readable media for recommending downstream operator
CN114153358A (en) Bar code display method and device, electronic equipment and storage medium
CN109903006A (en) Reporting method, device, equipment and the computer readable storage medium of building
CN116415548A (en) Training method and device for label prediction model
CN115225921A (en) Live broadcast interaction control method, device, equipment and storage medium based on big data
CN114943273A (en) Data processing method, storage medium, and computer terminal
CN113486248A (en) Recommendation method and device for functional module in application program
CN110851717A (en) Method, device and medium for recommending mini bin
US20200342302A1 (en) Cognitive forecasting
CN112860980A (en) Content presentation and recommendation processing method and device, storage medium and electronic equipment
JP2003157345A (en) System and method for product development process evaluation
CN110333927B (en) Interface skipping method and device, server and storage medium
JP2019159666A (en) Real estate information providing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 1308, 13th floor, East Tower, 33 Fuxing Road, Haidian District, Beijing 100035

Applicant after: China Telecom Digital Intelligence Technology Co.,Ltd.

Address before: Room 1308, 13th floor, East Tower, 33 Fuxing Road, Haidian District, Beijing 100035

Applicant before: CHINA TELECOM GROUP SYSTEM INTEGRATION Co.,Ltd.