Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
CN114153358B - Barcode display method, device, electronic device and storage medium - Google Patents
[go: Go Back, main page]

CN114153358B - Barcode display method, device, electronic device and storage medium - Google Patents

Barcode display method, device, electronic device and storage medium Download PDF

Info

Publication number
CN114153358B
CN114153358B CN202111352931.4A CN202111352931A CN114153358B CN 114153358 B CN114153358 B CN 114153358B CN 202111352931 A CN202111352931 A CN 202111352931A CN 114153358 B CN114153358 B CN 114153358B
Authority
CN
China
Prior art keywords
code scanning
behavior
sample
prediction model
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.)
Active
Application number
CN202111352931.4A
Other languages
Chinese (zh)
Other versions
CN114153358A (en
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 Digital Intelligence Technology 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 Digital Intelligence Technology Co Ltd filed Critical China Telecom Digital Intelligence Technology Co Ltd
Priority to CN202111352931.4A priority Critical patent/CN114153358B/en
Publication of CN114153358A publication Critical patent/CN114153358A/en
Application granted granted Critical
Publication of CN114153358B publication Critical patent/CN114153358B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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)
  • Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • User Interface Of Digital Computer (AREA)

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.

Description

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

Claims (10)

1. A bar code display method, comprising:
Acquiring current time and a last code scanning behavior under the condition that a bar code display request is acquired, wherein the last code scanning behavior is a code scanning behavior executed at the last time before the current time;
The current time and the last code scanning behavior are input 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 which needs to be executed at the current time, a scene corresponding to the current code scanning behavior is different from a scene corresponding to the last code scanning behavior, the behavior prediction model is obtained by training based on a code scanning time sample and a last code scanning behavior sample, and the last code scanning behavior sample is a code scanning behavior executed at the last time sample before the code scanning time sample;
determining a corresponding target application program based on the current code scanning behavior;
And displaying a bar code interface of the target application program.
2. The bar code display method according to claim 1, wherein the step of inputting the current time and the previous scan behavior into a behavior prediction model to obtain the current scan behavior output by the behavior prediction model includes:
Obtaining a target user type;
determining a target behavior prediction model corresponding to the target user type;
and inputting the current time and the last code scanning behavior into the target behavior prediction model to obtain the current code scanning behavior output by the target behavior prediction model.
3. The barcode display method of claim 1, wherein the displaying the barcode interface of the target application comprises:
acquiring a jump path of the bar code interface;
acquiring the bar code interface based on the jump path;
And displaying the bar code interface.
4. The bar code display method of 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 not consistent 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 bar code display method of any one of claims 1-4, wherein prior to obtaining the bar code display request, the method further comprises:
Acquiring sample data, wherein the sample data comprises a code scanning behavior sample in preset time and a code scanning time sample corresponding to the code scanning behavior sample;
marking the corresponding relation among the code scanning time sample, the code scanning behavior sample and the last code scanning behavior sample;
Training an initial prediction model based on the code scanning time sample and the last code scanning behavior sample to obtain a current code scanning behavior sample output by the initial prediction model;
And optimizing model parameters of the initial prediction model based on the current code scanning behavior sample and the code scanning behavior sample until convergence conditions are reached, so as to obtain the behavior prediction model.
6. The bar code display method of claim 5, wherein the acquiring sample data comprises:
Acquiring user information, wherein the user information comprises user travel information or the user travel information and user attribute information;
determining a user type based on the user 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 reaching a convergence condition, wherein obtaining the behavior prediction model comprises the following steps:
And optimizing model parameters of the initial prediction model based on the current code scanning behavior sample and the code scanning behavior sample until convergence conditions are reached, so as to obtain a behavior prediction model corresponding to the user type.
7. A bar code display device, comprising:
the device comprises a first acquisition unit, a second acquisition unit and a display unit, wherein the first acquisition unit is used for acquiring the current time and the last code scanning behavior under the condition of acquiring a bar code display request, and the last code scanning behavior is the code scanning behavior executed at the last time before 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; the behavior prediction model is obtained based on training a code scanning time sample and a previous code scanning behavior sample, wherein the previous code scanning behavior sample is the code scanning behavior executed by a previous time sample before the code scanning time sample;
the first determining unit is used for determining a corresponding target application program 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 the memory and executable on the processor, wherein the processor performs the steps of the bar code display method of any one of claims 1 to 6 when the program is executed.
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 of any of claims 1 to 6.
10. A computer program product comprising a computer program which, when executed by a processor, implements the steps of the bar code display method of any one of claims 1 to 6.
CN202111352931.4A 2021-11-16 2021-11-16 Barcode display method, device, electronic device and storage medium Active CN114153358B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN114153358A CN114153358A (en) 2022-03-08
CN114153358B true CN114153358B (en) 2024-12-13

Family

ID=80456669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111352931.4A Active CN114153358B (en) 2021-11-16 2021-11-16 Barcode display method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN114153358B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107292420A (en) * 2017-05-24 2017-10-24 国网北京市电力公司 Data processing method and device
CN108763453A (en) * 2018-05-28 2018-11-06 浙江口碑网络技术有限公司 The page data processing method and device of Behavior-based control prediction
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广东移动通信有限公司 Card-swiping method, device, terminal device and storage medium
CN113112264A (en) * 2021-04-19 2021-07-13 中国工商银行股份有限公司 Automatic display method, device, computer system and readable storage medium for riding codes

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365543B (en) * 2013-07-08 2016-08-17 宇龙计算机通信科技(深圳)有限公司 Terminal and two-dimensional code display method
CN103729765B (en) * 2014-01-15 2016-02-17 腾讯科技(深圳)有限公司 A kind of authentication control method, terminal, server, terminal device and system
CN106339769B (en) * 2015-07-08 2020-01-03 北京大学 User travel prediction method facing mobile social network
CN107783801B (en) * 2017-11-06 2021-03-12 Oppo广东移动通信有限公司 Application program prediction model establishing and preloading method, device, medium and terminal
CN108805559B (en) * 2018-07-25 2023-12-15 努比亚技术有限公司 Two-dimensional code pushing method, mobile terminal and computer readable storage medium
CN112732375A (en) * 2019-10-28 2021-04-30 北京达佳互联信息技术有限公司 Method and device for determining starting page, storage medium and server
CN114840782A (en) * 2020-05-06 2022-08-02 支付宝(杭州)信息技术有限公司 Page access method and device based on code scanning, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107292420A (en) * 2017-05-24 2017-10-24 国网北京市电力公司 Data processing method and device
CN108763453A (en) * 2018-05-28 2018-11-06 浙江口碑网络技术有限公司 The page data processing method and device of Behavior-based control prediction
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广东移动通信有限公司 Card-swiping method, device, terminal device and storage medium
CN113112264A (en) * 2021-04-19 2021-07-13 中国工商银行股份有限公司 Automatic display method, device, computer system and readable storage medium for riding codes

Also Published As

Publication number Publication date
CN114153358A (en) 2022-03-08

Similar Documents

Publication Publication Date Title
CN108520444B (en) Insurance product recommendation method, equipment, device and computer readable storage medium
CN109992601B (en) To-do information pushing method and device and computer equipment
CN116910274B (en) Test question generation method and system based on knowledge graph and prediction model
CN109816483B (en) Information recommendation method and device and readable storage medium
CN111260102A (en) User satisfaction prediction method and device, electronic equipment and storage medium
CN110110038B (en) Telephone traffic prediction method, device, server and storage medium
CN109635086A (en) Knowledge recommendation method and device applied to knowledge platform
CN114186129B (en) Package recommendation method, package recommendation device, electronic equipment and computer readable medium
CN110597965B (en) Emotion polarity analysis method and device for article, electronic equipment and storage medium
US20170032253A1 (en) Information processing apparatus, control method, and program
CN111770353A (en) Live broadcast monitoring method and device, electronic equipment and storage medium
CN119719523A (en) Information pushing method and system based on big data matching and GPS positioning
KR102286661B1 (en) Chat based on-demand shopping curation apparatus
CN112860980A (en) Content presentation and recommendation processing method and device, storage medium and electronic equipment
CN116401400B (en) Model training methods and related equipment
CN117150153A (en) Stroke planning method and device, electronic equipment and storage medium
US10951761B1 (en) System and method for live and virtual support interaction
CN114943273B (en) Data processing method, storage medium and computer terminal
CN114153358B (en) Barcode display method, device, electronic device and storage medium
CN111831892A (en) Information recommendation method, information recommendation device, server and storage medium
CN112862527B (en) User type determining method, device, equipment and storage medium
CN115098660B (en) Question and answer method, device and equipment
CN109903006A (en) Reporting method, device, equipment and the computer readable storage medium of building
KR20190116044A (en) Method and computer readable recording medium for actively analyzing a online chatting session between users and providing analysis results visually to a user, by a conversation understanding ai system
CN119166258B (en) Function identification sorting method, device, equipment and medium based on business development tools

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant