CN109102324B - Model training method, and red packet material laying prediction method and device based on model - Google Patents

Model training method, and red packet material laying prediction method and device based on model Download PDF

Info

Publication number
CN109102324B
CN109102324B CN201810764095.2A CN201810764095A CN109102324B CN 109102324 B CN109102324 B CN 109102324B CN 201810764095 A CN201810764095 A CN 201810764095A CN 109102324 B CN109102324 B CN 109102324B
Authority
CN
China
Prior art keywords
code scanning
red
red packet
value
payment data
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
CN201810764095.2A
Other languages
Chinese (zh)
Other versions
CN109102324A (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies 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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201810764095.2A priority Critical patent/CN109102324B/en
Publication of CN109102324A publication Critical patent/CN109102324A/en
Application granted granted Critical
Publication of CN109102324B publication Critical patent/CN109102324B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data
    • G06Q30/0202Market predictions or forecasting for commercial activities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/088Non-supervised learning, e.g. competitive learning
    • 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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0208Trade or exchange of goods or services in exchange for incentives or rewards
    • 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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0213Consumer transaction fees

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Game Theory and Decision Science (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Labeling Devices (AREA)
  • Treatment Of Fiber Materials (AREA)
  • Image Analysis (AREA)

Abstract

The model training method comprises the following steps: acquiring at least one code scanning tie red packet data and at least one code scanning payment data; respectively extracting the characteristics of each piece of acquired data according to the relevant information of a set merchant and aiming at any set merchant in at least one set merchant, and acquiring a training sample corresponding to the set merchant, wherein the training sample takes the extracted characteristic value as an input value; and training with the obtained training sample by using an unsupervised learning algorithm to obtain a prediction model, wherein the prediction model takes the characteristic value of code scanning red packet data and the characteristic value of code scanning payment data as input values, and takes the probability of laying red packet materials by a merchant as an output value.

Description

Model training method, and red packet material laying prediction method and device based on model
Technical Field
The embodiment of the specification relates to the technical field of data processing, in particular to a model training method, a red packet material laying prediction method based on a model and a device.
Background
With the development of internet technology and the popularization of intelligent terminals, competition among various payment application programs is becoming more intense, in order to compete for share of 'off-line payment', a marketing strategy of 'scanning code and getting red envelope' is provided by a marketing team of some payment application programs, specifically, propaganda materials (red envelope materials for short hereinafter) printed with red envelope two-dimensional codes are laid in a store of a cooperative merchant (such as a zip-top can, a brochure and the like), after a user arrives at the store, the red envelope two-dimensional codes can be scanned by an application program installed on a mobile phone to obtain a red envelope with a certain amount, and when the next off-line payment is carried out through the application program, the red envelope can be used for avoiding the certain amount, so that more and more users are attracted to use the application program to finish the off-line payment.
Due to the fact that regions are wide, cooperative merchants are numerous, a marketing team of payment application programs generally gives the task of laying red envelope materials to a special popularization person for charge, and in the related technology, in order to monitor the authenticity of the laying condition of the red envelope materials and improve the effectiveness of a marketing strategy of 'code scanning and red envelope picking', a manual store-to-store inspection mode or a mode of taking pictures and recording videos through the merchants or the popularization persons can be adopted. However, if the former method is adopted, a large amount of manpower and material cost is consumed; if the latter method is adopted, the accuracy of the supervision result cannot be guaranteed due to the fact that the number of the photos is limited and the authenticity of the photos is to be questioned.
Disclosure of Invention
In view of the above technical problems, embodiments of the present specification provide a model training method, a red packet material laying prediction method based on a model, and an apparatus, and the technical scheme is as follows:
according to a first aspect of embodiments herein, there is provided a model training method, the method comprising:
acquiring at least one code scanning tie red packet data and at least one code scanning payment data;
respectively extracting the characteristics of each piece of acquired data according to the relevant information of a set merchant and aiming at any set merchant in at least one set merchant, and acquiring a training sample corresponding to the set merchant, wherein the training sample takes the extracted characteristic value as an input value;
and training with the obtained training sample by using an unsupervised learning algorithm to obtain a prediction model, wherein the prediction model takes the characteristic value of code scanning red packet data and the characteristic value of code scanning payment data as input values, and takes the probability of laying red packet materials by a merchant as an output value.
According to a second aspect of embodiments herein, there is provided a model-based red envelope material laying prediction method, the method comprising:
acquiring at least one code scanning tie red packet data and at least one code scanning payment data;
respectively extracting the characteristics of the acquired code scanning red packet data and the code scanning payment data to obtain the characteristic value of the code scanning red packet data and the characteristic value of the code scanning payment data;
and inputting the obtained characteristic values into a prediction model to obtain corresponding output values, wherein the prediction model takes the characteristic values of code scanning red packet data and the characteristic values of code scanning payment data as input values, and takes the probability of laying red packet materials by a merchant as an output value.
According to a third aspect of embodiments herein, there is provided a model training apparatus, the apparatus comprising:
the first acquisition module is used for acquiring at least one code scanning tie-red packet data and at least one code scanning payment data;
the first extraction module is used for respectively extracting the characteristics of each piece of acquired data according to the relevant information of a set merchant in any set merchant of at least one set merchant, and acquiring a training sample corresponding to the set merchant, wherein the training sample takes the extracted characteristic value as an input value;
and the training module is used for training with the obtained training samples by using an unsupervised learning algorithm to obtain a prediction model, and the prediction model takes the characteristic value of code scanning red packet data and the characteristic value of code scanning payment data as input values and takes the probability of laying red packet materials by a set merchant as an output value.
According to a fourth aspect of embodiments herein, there is provided a model-based red envelope material laying prediction apparatus, the apparatus comprising:
the second acquisition module is used for acquiring at least one code scanning tie-red packet data and at least one code scanning payment data;
the second extraction module is used for respectively extracting the characteristics of the acquired code scanning red packet data and the code scanning payment data to obtain the characteristic value of the code scanning red packet data and the characteristic value of the code scanning payment data;
and the input module is used for inputting the obtained characteristic values into a prediction model to obtain corresponding output values, and the prediction model takes the characteristic values of code scanning red packet data and the characteristic values of code scanning payment data as input values and takes the probability of laying red packet materials by a merchant as an output value.
According to a fifth aspect of the embodiments of the present specification, there is provided a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the model training method provided by the embodiments of the present specification when executing the program.
According to a sixth aspect of the embodiments of the present specification, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the model-based red envelope laying prediction method provided by the embodiments of the present specification when executing the program.
According to the technical scheme provided by the embodiment of the specification, at least one piece of scanned red packet leading data and at least one piece of code scanning payment data are obtained, feature extraction is respectively carried out on each piece of obtained data according to relevant information of a set merchant aiming at any set merchant in at least one set merchant, a training sample corresponding to the set merchant is obtained, wherein the training sample takes the extracted feature value as an input value, an unsupervised learning algorithm is utilized to train with the obtained training sample to obtain a prediction model, the prediction model takes the feature value of the code scanning red packet leading data and the feature value of the code scanning payment data as input values, the probability that the merchant lays red packet materials is set as an output value, and then the laying condition of the red packet materials of the merchant can be predicted through the prediction model, so that the cost of manpower and material resources can be saved through the processing, meanwhile, a relatively accurate prediction result can be obtained by predicting based on accurate data, and the red packet material laying condition of each set merchant can be comprehensively predicted without being limited by regions and influenced by people.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of embodiments of the invention.
In addition, any one of the embodiments in the present specification is not required to achieve all of the effects described above.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present specification, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a flow chart of an embodiment of a model training method shown in an exemplary embodiment of the present description;
FIG. 2 is a flow diagram of an embodiment of a model-based red envelope material placement prediction method as shown in an exemplary embodiment of the present description;
FIG. 3 is a block diagram of an embodiment of a model training apparatus provided in an exemplary embodiment of the present disclosure;
fig. 4 is a block diagram of an embodiment of a model-based red envelope material laying prediction device according to an exemplary embodiment of the present disclosure;
fig. 5 is a more specific hardware structure diagram of a computing device according to an embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present specification, the technical solutions in the embodiments of the present specification will be described in detail below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of protection.
In order to solve the above problems, embodiments of the present specification provide a model training method and a red-envelope material laying prediction method based on a model, and the two methods are described in detail as follows.
First, the following embodiments are shown to explain the model training method provided in the embodiments of the present specification:
the first embodiment is as follows:
referring to fig. 1, a flow chart of an embodiment of a model training method shown as an exemplary embodiment of the present disclosure may include the following steps:
step 102: and acquiring at least one piece of code scanning tie-in red packet data and at least one piece of code scanning payment data.
In the embodiment of the specification, data related to the behavior that a user draws a red packet by scanning a two-dimensional code is called code scanning red packet drawing data, and data related to the behavior that the user pays by scanning the two-dimensional code is called code scanning payment data, so that one piece of code scanning red packet drawing data is generated when the behavior that the user draws the red packet by scanning the two-dimensional code occurs once, and one piece of code scanning payment data is generated when the behavior that the user pays by scanning the two-dimensional code occurs once.
In an embodiment, the code scanning red packet data at least includes: red envelope identification, red envelope getting position, red envelope getting time, red envelope amount and the like.
In one embodiment, the code scanning payment data can be divided into two types, wherein one type is code scanning payment data of unused red packets, which at least includes: collection information, payment location, payment time, payment amount, etc.; another type is using code-scanned payment data with red packets, which may include at least: collection information, payment location, payment time, payment amount, red envelope identification, and the like.
It should be noted that, in the embodiment of this specification, the red packet identifier is composed of two parts, which are a red packet code value and a red packet number, respectively, where the red packet code value may also be referred to as a code value of a two-dimensional code, that is, if different users or the same user is in different time, red packets received by scanning the same two-dimensional code have the same red packet code value, but have different red packet numbers, so as to identify different red packets by different red packet numbers; and the red packet received by the same user or different users by scanning different two-dimensional codes has different red packet code values.
In the present specification embodiment, a specified period, for example, 6 months, 21 days 0: code scanning and red packet data and code scanning payment data generated in the period of 00-6 months, 23 days and 0: 00.
Step 104: and respectively performing feature extraction on each piece of acquired data according to the relevant information of the set merchant aiming at any set merchant in at least one set merchant, and acquiring a training sample corresponding to the set merchant, wherein the training sample takes the extracted feature value as an input value.
In this embodiment of the present disclosure, for convenience of description, merchants who have a collaborative agreement with a marketing team of an application in advance are referred to as configured merchants, and these configured merchants may be distributed in different locations of a same city, or distributed in multiple cities, which is not limited in this embodiment of the present disclosure.
In this embodiment of the present specification, for each set merchant, according to the relevant information of the set merchant, feature extraction may be performed on each piece of data acquired in step 102, that is, each piece of code scanning payment data and each piece of code scanning red packet data, and the extracted feature value is used as an input value to obtain a training sample corresponding to the set merchant.
In this embodiment, two types of feature values may be set, where one type is a feature value related to a location, and the other type is a feature value related to a red envelope verification sale situation, and based on the two types of feature values, the relevant information of the configured merchant at least may include: setting the position information of the merchant and setting the collection information of the merchant.
(1) For the feature value related to the position, a process of extracting the feature value is described:
firstly, the position information of a set merchant can be matched with the red packet getting position in each piece of code scanning red packet data by using a GeoHash algorithm, the total number of red packets to be got in a specified range of the set merchant, such as a range of 1 kilometer, is determined, and as can be known from the description, one piece of code scanning red packet data is generated when each two-dimensional code scanning red packet getting action occurs, namely, one piece of code scanning red packet data is generated when each red packet getting event occurs, so that the total number of red packets to be got in the specified range of the set merchant is the number of red packet getting events occurring in the specified range of the set merchant, namely the number of red packet getting data of which the red packet getting position is in the specified range.
Similarly, the GeoHash algorithm can be used to match the position information of the set merchant with the payment position in each piece of code-scanning payment data, and determine the total number of transactions paid within the specified range, that is, the number of code-scanning payment data with the payment position within the specified range.
Subsequently, the ratio between the total number of the received red packages and the total number of the payment transactions can be further calculated, and the ratio is used as the red package receiving ratio in the specified range.
Secondly, the number of merchants of other set merchants in the designated range of the set merchant can be determined according to the position information of the set merchant and the position information of other set merchants, and those skilled in the art can understand that the number of the merchants can reflect the density of the merchants in the designated range of the set merchant, and further, the ratio between the total number of the received red parcels and the number of the merchants can be further calculated, and the ratio is used as the red parcel receiving density in the designated range.
In this embodiment, the total number of the received red parcels, the total number of the payment transactions, the red parcel receiving ratio, the number of the merchants, and the red parcel receiving density may be used as the extracted characteristic values.
In addition, in this embodiment of the present specification, feature values for a plurality of specified ranges may also be obtained, for example, a red envelope pickup ratio in a range of 10 meters, 30 meters, 100 meters, 300 meters, or 500 meters of a set merchant may also be obtained, which is not limited in this embodiment of the present specification.
(2) For the characteristic value related to the red packet verification cancellation condition, the process of extracting the characteristic value is described as follows:
in this embodiment of the present specification, for a set merchant, a red envelope consumed in the set merchant may be determined, specifically, the collection information of the set merchant may be matched with the collection information in each piece of code scanning payment data, code scanning payment data in which the collection information is consistent with the collection information of the set merchant is obtained, and for convenience of description, the obtained code scanning payment data is referred to as code scanning payment data corresponding to the set merchant; further, code scanning payment data using the red packet, namely code scanning payment data comprising a red packet identifier, is screened from the code scanning payment data corresponding to the set merchant, and for convenience in description, the screened code scanning payment data comprising the red packet identifier is determined as target code scanning payment data, so that payment transaction in the set merchant is determined, and the target code scanning payment data using the red packet is used; subsequently, the characteristic value related to the red envelope verification and cancellation condition may be extracted according to the target code scanning payment data, and the method may include: the transaction proportion of the red envelope, the dispersion of the distance of red envelope verification and reimbursement, the average time interval of red envelope verification and reimbursement, the contribution degree of the optimal red envelope value, the transaction proportion of the optimal red envelope value, and the like.
Wherein, i: the proportion of red envelope transactions can be extracted by the following process:
the ratio of the number of the target code scanning payment data to the code scanning payment data corresponding to the set merchant can be calculated, and the ratio can be the red packet transaction ratio of the set merchant.
ii: the red envelope verification distance dispersion and the red envelope verification average time interval can be extracted through the following processes:
for any piece of target code scanning payment data, matching the red packet identification in the target code scanning payment data with the red packet identification in each piece of code scanning red packet data, and taking the code scanning red packet data which has the same red packet identification with the target code scanning payment data as the corresponding code scanning red packet data.
Further, the red packet verification and cancellation time interval can be determined according to the payment time in the target code scanning payment data and the red packet receiving time in the code scanning red packet data corresponding to the payment time, and a person skilled in the art can understand that the red packet verification and cancellation time interval reflects the time interval from receiving to consuming of the red packet; correspondingly, the red packet checking and selling distance interval can be determined according to the payment position in the target code scanning payment data and the red packet getting position in the code scanning red packet data corresponding to the payment position, and a person skilled in the art can understand that the red packet checking and selling distance interval reflects the distance between the getting position and the consumption position of the red packet.
As can be seen from the above description, for each piece of target code scanning payment data, one red packet verification and cancellation time interval and one red packet verification and cancellation distance interval may be calculated, and then, in this specification embodiment, an average value of all red packet verification and cancellation time intervals may be calculated, and the average value is used as a red packet verification and cancellation average time interval; accordingly, the variance of the distance intervals of all the red envelope pins can be calculated, and the variance is taken as the dispersion of the distance intervals of the red envelope pins.
iii: the contribution degree of the optimal red envelope value and the transaction proportion of the optimal red envelope value can be extracted through the following processes:
as can be seen from the above description, the red packets received by scanning the same two-dimensional code have the same red packet code value, and then, the verification and cancellation condition of the red packets with the same red packet code value can reflect the laying condition of the two-dimensional code corresponding to the red packets, that is, the laying condition of the red packet material, for example, the better the verification and cancellation condition of the red packets with the same red packet code value is, the better the laying position of the two-dimensional code corresponding to the red packet is, and the better the user acceptance is.
Based on this, in the embodiment of the present specification, the target code scanning payment data may be grouped according to the value of the red envelope code in the red envelope identifier, where the value of the red envelope code in the target code scanning payment data of each group is the same, and the values of the red envelope codes in the target code scanning payment data of different groups are different, that is, the target code scanning payment data in the same group are all related to the same two-dimensional code, and one group corresponds to one value of the red envelope code.
Then, according to the sequence from high to low of the number of target code scanning payment data in each group, sorting the red packet values corresponding to each group, and determining a first-ranked red packet value and a second-ranked red packet value according to the sorting result.
Subsequently, the number of target code-scanning payment data having the first red envelope value may be determined, which is referred to as a first number for descriptive convenience, and the number of target code-scanning payment data having the second red envelope value may be determined, which is referred to as a second number for descriptive convenience, respectively.
And subsequently, taking the ratio of the first quantity to the quantity of the code scanning payment data corresponding to the set merchant as the transaction proportion of the optimal red envelope value, and taking the ratio of the first quantity to the second quantity as the contribution degree of the optimal red envelope value.
Based on the description in step 104, the characteristic values in the embodiment of the present specification may be as shown in table 1 below:
TABLE 1
Figure BDA0001728599070000091
Step 106: and training with the obtained training sample by using an unsupervised learning algorithm to obtain a prediction model, wherein the prediction model takes the characteristic value of code scanning red packet data and the characteristic value of code scanning payment data as input values, and takes the probability of laying red packet materials by a merchant as an output value.
As can be seen from the above description of the steps, in the embodiment of the present specification, the obtained training sample only has an input value and does not have a label value, and therefore, in the embodiment of the present specification, an unsupervised learning algorithm, for example, a PCA (Principal Component Analysis) algorithm, may be adopted to train the obtained training sample, so as to obtain a prediction model, where the prediction model takes a feature value of code scanning red packet data and a feature value of code scanning payment data as input values, and sets a probability that a merchant lays red packet materials as an output value.
Furthermore, as can be seen from the description in the step 104, for each set merchant, a sequence related to the value of the red envelope code may be obtained, and then, in this embodiment of the present specification, the two-dimensional code value of the red envelope material laid by the set merchant may also be predicted according to the sequence, for example, the optimal value of the red envelope code described in the step 104 is predicted to be the two-dimensional code value of the red envelope material laid by the set merchant, and thus, the output value of the prediction model may further include the two-dimensional code value of the red envelope material laid by the set merchant.
According to the technical scheme provided by the embodiment of the specification, at least one piece of scanned red packet leading data and at least one piece of code scanning payment data are obtained, feature extraction is respectively carried out on each piece of obtained data according to relevant information of a set merchant aiming at any set merchant in at least one set merchant, a training sample corresponding to the set merchant is obtained, wherein the training sample takes the extracted feature value as an input value, an unsupervised learning algorithm is utilized to train with the obtained training sample to obtain a prediction model, the prediction model takes the feature value of the code scanning red packet leading data and the feature value of the code scanning payment data as input values, the probability that the merchant lays red packet materials is set as an output value, and then the laying condition of the red packet materials of the merchant can be predicted through the prediction model, so that the cost of manpower and material resources can be saved through the processing, meanwhile, a relatively accurate prediction result can be obtained by predicting based on accurate data, and the red packet material laying condition of each set merchant can be comprehensively predicted without being limited by regions and influenced by people.
The description of the first embodiment is completed.
Next, the following embodiments are shown to explain the model-based red-envelope material laying prediction method provided in the embodiments of the present specification:
example two:
referring to fig. 2, a flow chart of an embodiment of a model-based red envelope material laying prediction method is shown for an exemplary embodiment of the present disclosure, which may include the following steps:
step 202: and acquiring at least one piece of code scanning tie-in red packet data and at least one piece of code scanning payment data.
Step 204: and respectively extracting the characteristics of the acquired code scanning red packet data and the code scanning payment data to obtain the characteristic value of the code scanning red packet data and the characteristic value of the code scanning payment data.
The detailed description of step 202 and step 204 can be referred to the related description of one of the above embodiments, and this detailed description will not be repeated in this specification.
Step 206: and inputting the obtained characteristic values into a prediction model to obtain corresponding output values, wherein the prediction model takes the characteristic values of code scanning red packet data and the characteristic values of code scanning payment data as input values, and takes the probability of laying red packet materials by a merchant as an output value.
So far, the description of the second embodiment is completed.
The technical scheme provided by the embodiment of the specification comprises the steps of obtaining at least one code scanning and red packet data and at least one code scanning and payment data, respectively extracting the characteristics of the code scanning red packet data and the code scanning payment data to obtain the characteristic value of the code scanning red packet data and the characteristic value of the code scanning payment data, inputting the obtained characteristic values into a prediction model to obtain corresponding output values, the forecasting model takes the characteristic value of code scanning red packet data and the characteristic value of code scanning payment data as input values, takes the probability of laying red packet materials by a set merchant as an output value, can predict the red packet material laying condition of a merchant through a prediction model, saves the cost of manpower and material resources, meanwhile, a relatively accurate prediction result can be obtained by predicting based on accurate data, and the red packet material laying condition of each set merchant can be comprehensively predicted without being limited by regions and influenced by people.
Corresponding to the above embodiment of the model training method, an embodiment of the present specification further provides a model training apparatus, as shown in fig. 3, the apparatus may include: a first acquisition module 310, a first extraction module 320, and a training module 330.
The first obtaining module 310 may be configured to obtain at least one code scanning tie-wrap data and at least one code scanning payment data;
the first extraction module 320 may be configured to, for any one set merchant of at least one set merchant, respectively perform feature extraction on each piece of acquired data according to relevant information of the set merchant, and obtain a training sample corresponding to the set merchant, where the training sample uses an extracted feature value as an input value;
the training module 330 may be configured to train the obtained training samples with an unsupervised learning algorithm to obtain a prediction model, where the prediction model takes a feature value of code-scanning red packet data and a feature value of code-scanning payment data as input values, and takes a probability that a merchant lays red packet materials as an output value.
In one embodiment, the information related to the set merchant at least includes: the position information of the set merchant and the collection information of the set merchant;
the code scanning collar red packet data at least comprises: the method comprises the steps of a red packet identification, a red packet getting position and a red packet getting time, wherein the red packet identification comprises a red packet code value and a red packet number, red packets got by the same two-dimensional code have the same red packet code value and different red packet numbers, and red packets got by different two-dimensional codes have different red packet code values;
the code scanning payment data at least comprises: collection information, payment position and payment time; or the like, or, alternatively,
collection information, payment position, payment time and red packet identification.
In an embodiment, the first extraction module 320 may include (not shown in fig. 3):
the first matching submodule is used for matching the position information of the set merchant with the red packet getting positions in each piece of code scanning red packet data and determining the total number of the red packets to be got in the specified range of the set merchant;
the second matching submodule is used for matching the position information of the set merchant with the payment position in each piece of code scanning payment data and determining the total number of the payment transactions in the specified range;
the first determining submodule is used for taking the ratio of the total number of the received red packets to the total number of the payment transactions as the red packet receiving proportion in the specified range;
the second determining submodule is used for determining the number of merchants within the specified range according to the position information of the set merchants and the position information of other set merchants, and taking the ratio of the total number of the received red parcels to the number of the merchants as the red parcel receiving density within the specified range;
and the first characteristic determining submodule is used for taking the total number of the received red packets, the total number of the payment transactions, the red packet receiving ratio, the number of the merchants and the red packet receiving density as the extracted characteristic values.
In an embodiment, the first extraction module 320 may include (not shown in fig. 3):
the third matching sub-module is used for matching the collection information of the set merchant with the collection information in each piece of code scanning payment data, and taking the code scanning payment data with the collection information consistent with the collection information of the set merchant as the code scanning payment data corresponding to the set merchant;
the third determining submodule is used for determining code scanning payment data comprising the red packet identifier as target code scanning payment data in the code scanning payment data corresponding to the set merchant;
the fourth determining submodule is used for determining the transaction ratio of the red envelope, the dispersion of the red envelope verification distance, the average time interval of the red envelope verification and cancellation, the contribution degree of the optimal red envelope code value and the transaction ratio of the optimal red envelope code value according to the target code scanning payment data;
and the second characteristic determining submodule is used for taking the red packet transaction ratio, the red packet verification distance dispersion, the red packet verification average time interval, the contribution degree of the optimal red packet code value and the transaction ratio of the optimal red packet code value as the extracted characteristic values.
In an embodiment, the fourth determining submodule may be specifically configured to:
and taking the ratio of the number of the target code scanning payment data to the number of the code scanning payment data corresponding to the set merchant as the ratio of the red envelope transaction of the set merchant.
In an embodiment, the fourth determination submodule may include (not shown in fig. 3):
the fourth matching sub-module is used for matching the red packet identification in the target code scanning payment data with the red packet identification in each piece of code scanning red packet data aiming at any one piece of target code scanning payment data, and taking the code scanning red packet data which has the same red packet identification as the target code scanning payment data as the code scanning red packet data corresponding to the target code scanning payment data;
a fifth determining submodule, configured to determine a red packet verification and cancellation time interval according to the payment time in the target code scanning payment data and the red packet obtaining time in the code scanning red packet data corresponding to the payment time;
a sixth determining submodule, configured to determine a red packet verification and cancellation distance interval according to the payment position in the target code scanning payment data and the red packet obtaining position in the code scanning red packet data corresponding to the payment position;
the first calculation submodule is used for calculating the average value of all the determined red packet verification and cancellation time intervals, and the average value is used as the red packet verification and cancellation average time interval;
and the second calculation submodule is used for calculating the variance of the distance intervals of all the red envelope verification pins and taking the variance as the dispersion of the distance of the red envelope verification pins.
In an embodiment, the fourth determination submodule may include (not shown in fig. 3):
the grouping submodule is used for grouping the target code scanning payment data according to the red packet code value in the red packet identification, wherein the red packet code value in the target code scanning payment data of each group is the same, and the red packet code values in the target code scanning payment data of different groups are different;
the sorting submodule is used for sorting the red packet code values corresponding to the groups according to the sequence from high to low of the quantity of the target code scanning payment data in each group, and determining a first red packet code value at the first position of the ranking and a second red packet code value at the second position of the ranking according to a sorting result;
the quantity determining submodule is used for respectively determining a first quantity of target code scanning payment data with the first red envelope code value and a second quantity of target code scanning payment data with the second red envelope code value;
and a seventh determining submodule, configured to use a ratio between the first quantity and the quantity of the code scanning payment data corresponding to the set merchant as a transaction proportion of an optimal red envelope value, and use the ratio between the first quantity and the second quantity as a contribution degree of the optimal red envelope value, where the optimal red envelope value is the first red envelope value.
In one embodiment, the unsupervised learning algorithm comprises:
principal Component Analysis (PCA) algorithm.
In one embodiment, the output values of the prediction model further include:
and setting the red envelope code value of the red envelope material laid by the merchant.
It should be understood that the first obtaining module 310, the first extracting module 320, and the training module 330 may be configured in the apparatus at the same time as shown in fig. 3, or may be configured in the apparatus separately, and therefore the structure shown in fig. 3 should not be construed as a limitation to the embodiments of the present specification.
In addition, the implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
Corresponding to the above embodiment of the method for predicting red envelope material laying based on the model, an embodiment of the present specification further provides a device for predicting red envelope material laying based on the model, and as shown in fig. 4, the device may include: a second obtaining module 410, a second extracting module 420, and an input module 430.
The second obtaining module 410 may be configured to obtain at least one code scanning tie-wrap data and at least one code scanning payment data;
the second extraction module 420 may be configured to perform feature extraction on the obtained code scanning red packet data and the obtained code scanning payment data, respectively, to obtain a feature value of the code scanning red packet data and a feature value of the code scanning payment data;
the input module 430 may be configured to input the obtained feature value into a prediction model to obtain a corresponding output value, where the prediction model takes the feature value of the code scanning red packet data and the feature value of the code scanning payment data as input values, and takes the probability that the merchant has laid red packet materials as an output value.
It should be understood that the second obtaining module 410, the second extracting module 420, and the input module 430 may be configured in the apparatus at the same time as shown in fig. 4, or may be configured in the apparatus separately, and therefore the structure shown in fig. 4 should not be construed as a limitation to the embodiments of the present specification.
In addition, the implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
Embodiments of the present specification further provide a computer device, which at least includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the aforementioned model training method when executing the program, and the method at least includes: acquiring at least one code scanning tie red packet data and at least one code scanning payment data; respectively extracting the characteristics of each piece of acquired data according to the relevant information of a set merchant and aiming at any set merchant in at least one set merchant, and acquiring a training sample corresponding to the set merchant, wherein the training sample takes the extracted characteristic value as an input value; and training with the obtained training sample by using an unsupervised learning algorithm to obtain a prediction model, wherein the prediction model takes the characteristic value of code scanning red packet data and the characteristic value of code scanning payment data as input values, and takes the probability of laying red packet materials by a merchant as an output value.
Embodiments of the present specification further provide another computer device, which at least includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the program to implement the aforementioned method for predicting red envelope material paving based on a model, and the method at least includes: acquiring at least one code scanning tie red packet data and at least one code scanning payment data; respectively extracting the characteristics of the acquired code scanning red packet data and the code scanning payment data to obtain the characteristic value of the code scanning red packet data and the characteristic value of the code scanning payment data; and inputting the obtained characteristic values into a prediction model to obtain corresponding output values, wherein the prediction model takes the characteristic values of code scanning red packet data and the characteristic values of code scanning payment data as input values, and takes the probability of laying red packet materials by a merchant as an output value.
Fig. 5 is a schematic diagram illustrating a more specific hardware structure of a computing device according to an embodiment of the present disclosure, where the computing device may include: a processor 510, a memory 520, an input/output interface 530, a communication interface 540, and a bus 550. Wherein processor 510, memory 520, input/output interface 530, and communication interface 540 are communicatively coupled to each other within the device via bus 550.
The processor 510 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present specification.
The Memory 520 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 520 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 520 and called by the processor 510 for execution.
The input/output interface 530 is used for connecting an input/output module to realize information input and output. The input/output/module may be configured as a component within the device (not shown in fig. 5) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 540 is used for connecting a communication module (not shown in fig. 5) to realize communication interaction between the device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 550 includes a pathway to transfer information between various components of the device, such as processor 510, memory 520, input/output interface 530, and communication interface 540.
It should be noted that although the above-mentioned device only shows the processor 510, the memory 520, the input/output interface 530, the communication interface 540 and the bus 550, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
Embodiments of the present specification further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the foregoing model training method, and the method at least includes: acquiring at least one code scanning tie red packet data and at least one code scanning payment data; respectively extracting the characteristics of each piece of acquired data according to the relevant information of a set merchant and aiming at any set merchant in at least one set merchant, and acquiring a training sample corresponding to the set merchant, wherein the training sample takes the extracted characteristic value as an input value; and training with the obtained training sample by using an unsupervised learning algorithm to obtain a prediction model, wherein the prediction model takes the characteristic value of code scanning red packet data and the characteristic value of code scanning payment data as input values, and takes the probability of laying red packet materials by a merchant as an output value.
Embodiments of the present specification also provide another computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the foregoing model-based red envelope material laying prediction method, where the method at least includes: acquiring at least one code scanning tie red packet data and at least one code scanning payment data; respectively extracting the characteristics of the acquired code scanning red packet data and the code scanning payment data to obtain the characteristic value of the code scanning red packet data and the characteristic value of the code scanning payment data; and inputting the obtained characteristic values into a prediction model to obtain corresponding output values, wherein the prediction model takes the characteristic values of code scanning red packet data and the characteristic values of code scanning payment data as input values, and takes the probability of laying red packet materials by a merchant as an output value.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
From the above description of the embodiments, it is clear to those skilled in the art that the embodiments of the present disclosure can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the embodiments of the present specification may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling 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 of the present specification.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, and the modules described as separate components may or may not be physically separate, and the functions of the modules may be implemented in one or more software and/or hardware when implementing the embodiments of the present disclosure. And part or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is only a specific embodiment of the embodiments of the present disclosure, and it should be noted that, for those skilled in the art, a plurality of modifications and decorations can be made without departing from the principle of the embodiments of the present disclosure, and these modifications and decorations should also be regarded as the protection scope of the embodiments of the present disclosure.

Claims (22)

1. A method of model training, the method comprising:
acquiring at least one code scanning tie red packet data and at least one code scanning payment data;
respectively extracting the characteristics of each piece of acquired data according to the relevant information of a set merchant and aiming at any set merchant in at least one set merchant, and acquiring a training sample corresponding to the set merchant, wherein the training sample takes the extracted characteristic value as an input value;
and training with the obtained training sample by using an unsupervised learning algorithm to obtain a prediction model, wherein the prediction model takes the characteristic value of code scanning red packet data and the characteristic value of code scanning payment data as input values, and takes the probability of laying red packet materials by a merchant as an output value.
2. The method of claim 1, wherein the setting of relevant information of the merchant comprises at least: the position information of the set merchant and the collection information of the set merchant;
the code scanning collar red packet data at least comprises: the method comprises the steps of a red packet identification, a red packet getting position and a red packet getting time, wherein the red packet identification comprises a red packet code value and a red packet number, red packets got by the same two-dimensional code have the same red packet code value and different red packet numbers, and red packets got by different two-dimensional codes have different red packet code values;
the code scanning payment data at least comprises: collection information, payment position and payment time; or the like, or, alternatively,
collection information, payment position, payment time and red packet identification.
3. The method according to claim 2, wherein the extracting features of each piece of data according to the relevant information of the set merchant comprises:
matching the position information of the set merchant with the red packet getting positions in each code scanning red packet data, and determining the total number of the red packets to be got in the specified range of the set merchant;
matching the position information of the set merchant with the payment position in each piece of code scanning payment data, and determining the total number of the payment transactions in the specified range;
taking the ratio of the total number of the received red packets to the total number of the payment transactions as the red packet receiving ratio in the specified range;
determining the number of merchants within the specified range according to the position information of the set merchants and the position information of other set merchants, and taking the ratio of the total number of the received red parcels to the number of the merchants as the red parcel receiving density within the specified range;
and taking the total number of the received red packages, the total number of the payment transactions, the red package receiving proportion, the number of the merchants and the red package receiving intensity as the extracted characteristic values.
4. The method according to claim 2, wherein the extracting features of each piece of data according to the relevant information of the set merchant comprises:
matching the collection information of the set merchant with the collection information in each piece of code scanning payment data, and taking the code scanning payment data with the collection information consistent with the collection information of the set merchant as the code scanning payment data corresponding to the set merchant;
in the code scanning payment data corresponding to the set merchant, determining the code scanning payment data comprising the red packet identifier as target code scanning payment data;
determining a red envelope transaction ratio, a red envelope verification distance dispersion, a red envelope verification average time interval, a contribution degree of an optimal red envelope code value and a transaction ratio of the optimal red envelope code value according to the target code scanning payment data;
and taking the red envelope transaction ratio, the red envelope verification distance dispersion, the red envelope verification average time interval, the contribution degree of the optimal red envelope value and the transaction ratio of the optimal red envelope value as the extracted characteristic values.
5. The method of claim 4, the determining a red envelope transaction proportion from the targeted code-scanned payment data, comprising:
and taking the ratio of the number of the target code scanning payment data to the number of the code scanning payment data corresponding to the set merchant as the ratio of the red envelope transaction of the set merchant.
6. The method of claim 4, the determining a red envelope verification distance dispersion, a red envelope verification average time interval from the target code-scanned payment data, comprising:
the following steps are executed aiming at any piece of target code scanning payment data:
matching the red packet identification in the target code scanning payment data with the red packet identification in each piece of code scanning red packet data, and taking the code scanning red packet data which has the same red packet identification as the target code scanning payment data as the code scanning red packet data corresponding to the target code scanning payment data;
determining a red packet verification and cancellation time interval according to the payment time in the target code scanning payment data and the red packet getting time in the code scanning red packet data corresponding to the payment time;
determining a red packet checking and selling distance interval according to the payment position in the target code scanning payment data and the red packet getting position in the code scanning red packet data corresponding to the payment position;
calculating the average value of all the determined red packet verification time intervals, and taking the average value as the red packet verification time interval;
and calculating the variance of the distance intervals of all the determined red envelope verification pins, and taking the variance as the dispersion of the distance intervals of the red envelope verification pins.
7. The method of claim 4, the determining a contribution of an optimal red envelope value, a transaction proportion of an optimal red envelope value from the targeted code-scan payment data, comprising:
grouping the target code scanning payment data according to the red packet code values in the red packet identification, wherein the red packet code values in the target code scanning payment data of each group are the same, and the red packet code values in the target code scanning payment data of different groups are different;
sorting the red packet values corresponding to the groups according to the sequence of the number of the target code scanning payment data in each group from high to low, and determining a first red packet value at the first ranking position and a second red packet value at the second ranking position according to the sorting result;
determining a first amount of target code-scanning payment data with the first red envelope value and a second amount of target code-scanning payment data with the second red envelope value respectively;
and taking the ratio of the first quantity to the quantity of the code scanning payment data corresponding to the set merchant as the transaction proportion of an optimal red envelope value, and taking the ratio of the first quantity to the second quantity as the contribution degree of the optimal red envelope value, wherein the optimal red envelope value is the first red envelope value.
8. The method of claim 1, the unsupervised learning algorithm comprising:
principal Component Analysis (PCA) algorithm.
9. The method of claim 1, the output values of the predictive model further comprising:
and setting the red envelope code value of the red envelope material laid by the merchant.
10. A model-based red envelope material placement prediction method, the method comprising:
acquiring at least one code scanning tie red packet data and at least one code scanning payment data;
respectively extracting the characteristics of the acquired code scanning red packet data and the code scanning payment data to obtain the characteristic value of the code scanning red packet data and the characteristic value of the code scanning payment data;
and inputting the obtained characteristic values into a prediction model to obtain corresponding output values, wherein the prediction model takes the characteristic values of code scanning red packet data and the characteristic values of code scanning payment data as input values, and takes the probability of laying red packet materials by a merchant as an output value.
11. A model training apparatus, the apparatus comprising:
the first acquisition module is used for acquiring at least one code scanning tie-red packet data and at least one code scanning payment data;
the first extraction module is used for respectively extracting the characteristics of each piece of acquired data according to the relevant information of a set merchant in any set merchant of at least one set merchant, and acquiring a training sample corresponding to the set merchant, wherein the training sample takes the extracted characteristic value as an input value;
and the training module is used for training with the obtained training samples by using an unsupervised learning algorithm to obtain a prediction model, and the prediction model takes the characteristic value of code scanning red packet data and the characteristic value of code scanning payment data as input values and takes the probability of laying red packet materials by a set merchant as an output value.
12. The apparatus of claim 11, the setting of relevant information of a merchant comprising at least: the position information of the set merchant and the collection information of the set merchant;
the code scanning collar red packet data at least comprises: the method comprises the steps of a red packet identification, a red packet getting position and a red packet getting time, wherein the red packet identification comprises a red packet code value and a red packet number, red packets got by the same two-dimensional code have the same red packet code value and different red packet numbers, and red packets got by different two-dimensional codes have different red packet code values;
the code scanning payment data at least comprises: collection information, payment position and payment time; or the like, or, alternatively,
collection information, payment position, payment time and red packet identification.
13. The apparatus of claim 12, the first extraction module comprising:
the first matching submodule is used for matching the position information of the set merchant with the red packet getting positions in each piece of code scanning red packet data and determining the total number of the red packets to be got in the specified range of the set merchant;
the second matching submodule is used for matching the position information of the set merchant with the payment position in each piece of code scanning payment data and determining the total number of the payment transactions in the specified range;
the first determining submodule is used for taking the ratio of the total number of the received red packets to the total number of the payment transactions as the red packet receiving proportion in the specified range;
the second determining submodule is used for determining the number of merchants within the specified range according to the position information of the set merchants and the position information of other set merchants, and taking the ratio of the total number of the received red parcels to the number of the merchants as the red parcel receiving density within the specified range;
and the first characteristic determining submodule is used for taking the total number of the received red packets, the total number of the payment transactions, the red packet receiving ratio, the number of the merchants and the red packet receiving density as the extracted characteristic values.
14. The apparatus of claim 12, the first extraction module comprising:
the third matching sub-module is used for matching the collection information of the set merchant with the collection information in each piece of code scanning payment data, and taking the code scanning payment data with the collection information consistent with the collection information of the set merchant as the code scanning payment data corresponding to the set merchant;
the third determining submodule is used for determining code scanning payment data comprising the red packet identifier as target code scanning payment data in the code scanning payment data corresponding to the set merchant;
the fourth determining submodule is used for determining the transaction ratio of the red envelope, the dispersion of the red envelope verification distance, the average time interval of the red envelope verification and cancellation, the contribution degree of the optimal red envelope code value and the transaction ratio of the optimal red envelope code value according to the target code scanning payment data;
and the second characteristic determining submodule is used for taking the red packet transaction ratio, the red packet verification distance dispersion, the red packet verification average time interval, the contribution degree of the optimal red packet code value and the transaction ratio of the optimal red packet code value as the extracted characteristic values.
15. The apparatus of claim 14, the fourth determination submodule specifically configured to:
and taking the ratio of the number of the target code scanning payment data to the number of the code scanning payment data corresponding to the set merchant as the ratio of the red envelope transaction of the set merchant.
16. The apparatus of claim 14, the fourth determination submodule comprising:
the fourth matching sub-module is used for matching the red packet identification in the target code scanning payment data with the red packet identification in each piece of code scanning red packet data aiming at any one piece of target code scanning payment data, and taking the code scanning red packet data which has the same red packet identification as the target code scanning payment data as the code scanning red packet data corresponding to the target code scanning payment data;
a fifth determining submodule, configured to determine a red packet verification and cancellation time interval according to the payment time in the target code scanning payment data and the red packet obtaining time in the code scanning red packet data corresponding to the payment time;
a sixth determining submodule, configured to determine a red packet verification and cancellation distance interval according to the payment position in the target code scanning payment data and the red packet obtaining position in the code scanning red packet data corresponding to the payment position;
the first calculation submodule is used for calculating the average value of all the determined red packet verification and cancellation time intervals, and the average value is used as the red packet verification and cancellation average time interval;
and the second calculation submodule is used for calculating the variance of the distance intervals of all the red envelope verification pins and taking the variance as the dispersion of the distance of the red envelope verification pins.
17. The apparatus of claim 14, the fourth determination submodule comprising:
the grouping submodule is used for grouping the target code scanning payment data according to the red packet code value in the red packet identification, wherein the red packet code value in the target code scanning payment data of each group is the same, and the red packet code values in the target code scanning payment data of different groups are different;
the sorting submodule is used for sorting the red packet code values corresponding to the groups according to the sequence from high to low of the quantity of the target code scanning payment data in each group, and determining a first red packet code value at the first position of the ranking and a second red packet code value at the second position of the ranking according to a sorting result;
the quantity determining submodule is used for respectively determining a first quantity of target code scanning payment data with the first red envelope code value and a second quantity of target code scanning payment data with the second red envelope code value;
and a seventh determining submodule, configured to use a ratio between the first quantity and the quantity of the code scanning payment data corresponding to the set merchant as a transaction proportion of an optimal red envelope value, and use the ratio between the first quantity and the second quantity as a contribution degree of the optimal red envelope value, where the optimal red envelope value is the first red envelope value.
18. The apparatus of claim 11, the unsupervised learning algorithm comprising:
principal Component Analysis (PCA) algorithm.
19. The apparatus of claim 11, the output values of the predictive model further comprising:
and setting the red envelope code value of the red envelope material laid by the merchant.
20. A model-based red envelope material placement prediction apparatus, the apparatus comprising:
the second acquisition module is used for acquiring at least one code scanning tie-red packet data and at least one code scanning payment data;
the second extraction module is used for respectively extracting the characteristics of the acquired code scanning red packet data and the code scanning payment data to obtain the characteristic value of the code scanning red packet data and the characteristic value of the code scanning payment data;
and the input module is used for inputting the obtained characteristic values into a prediction model to obtain corresponding output values, and the prediction model takes the characteristic values of code scanning red packet data and the characteristic values of code scanning payment data as input values and takes the probability of laying red packet materials by a merchant as an output value.
21. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 9 when executing the program.
22. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of claim 10 when executing the program.
CN201810764095.2A 2018-07-12 2018-07-12 Model training method, and red packet material laying prediction method and device based on model Active CN109102324B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810764095.2A CN109102324B (en) 2018-07-12 2018-07-12 Model training method, and red packet material laying prediction method and device based on model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810764095.2A CN109102324B (en) 2018-07-12 2018-07-12 Model training method, and red packet material laying prediction method and device based on model

Publications (2)

Publication Number Publication Date
CN109102324A CN109102324A (en) 2018-12-28
CN109102324B true CN109102324B (en) 2021-08-20

Family

ID=64846233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810764095.2A Active CN109102324B (en) 2018-07-12 2018-07-12 Model training method, and red packet material laying prediction method and device based on model

Country Status (1)

Country Link
CN (1) CN109102324B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11023879B2 (en) 2019-08-30 2021-06-01 Advanced New Technologies Co., Ltd. Recommending target transaction code setting region
CN110503412B (en) * 2019-08-30 2023-04-18 创新先进技术有限公司 Method and system for detecting offline red envelope code material conflict
CN110689370B (en) * 2019-09-05 2023-07-14 创新先进技术有限公司 Classification model training method, device and equipment
CN111008864B (en) * 2019-11-29 2023-12-26 支付宝实验室(新加坡)有限公司 Method and device for determining paving relationship between marketing codes and merchants, and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412229A (en) * 2015-07-28 2017-02-15 阿里巴巴集团控股有限公司 Interaction method and device for mobile terminal, and the mobile terminal
CN106846041A (en) * 2016-12-26 2017-06-13 携程计算机技术(上海)有限公司 The distribution method and system of reward voucher
CN107301562A (en) * 2017-05-16 2017-10-27 重庆邮电大学 A kind of O2O reward vouchers use big data Forecasting Methodology
CN107330741A (en) * 2017-07-07 2017-11-07 北京京东尚科信息技术有限公司 Graded electron-like certificate uses Forecasting Methodology, device and electronic equipment
CN107392581A (en) * 2017-08-18 2017-11-24 首媒科技(北京)有限公司 The method and device of password red packet issue based on community
CN107993085A (en) * 2017-10-19 2018-05-04 阿里巴巴集团控股有限公司 Model training method, the user's behavior prediction method and device based on model

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412229A (en) * 2015-07-28 2017-02-15 阿里巴巴集团控股有限公司 Interaction method and device for mobile terminal, and the mobile terminal
CN106846041A (en) * 2016-12-26 2017-06-13 携程计算机技术(上海)有限公司 The distribution method and system of reward voucher
CN107301562A (en) * 2017-05-16 2017-10-27 重庆邮电大学 A kind of O2O reward vouchers use big data Forecasting Methodology
CN107330741A (en) * 2017-07-07 2017-11-07 北京京东尚科信息技术有限公司 Graded electron-like certificate uses Forecasting Methodology, device and electronic equipment
CN107392581A (en) * 2017-08-18 2017-11-24 首媒科技(北京)有限公司 The method and device of password red packet issue based on community
CN107993085A (en) * 2017-10-19 2018-05-04 阿里巴巴集团控股有限公司 Model training method, the user's behavior prediction method and device based on model

Also Published As

Publication number Publication date
CN109102324A (en) 2018-12-28

Similar Documents

Publication Publication Date Title
CN109102324B (en) Model training method, and red packet material laying prediction method and device based on model
CN109101989B (en) Merchant classification model construction and merchant classification method, device and equipment
WO2019095782A1 (en) Data sample label processing method and apparatus
CN105229485B (en) Multifactor position verification method
CN109508681A (en) The method and apparatus for generating human body critical point detection model
CN107590654A (en) A kind of method of on-line payment, terminal and computer-readable medium
CN110008973B (en) Model training method, method and device for determining target user based on model
CN109417547A (en) The automation of image authentication
CN111028016A (en) Sales data prediction method and device and related equipment
CN110033120A (en) For providing the method and device that risk profile energizes service for trade company
CN112529575A (en) Risk early warning method, equipment, storage medium and device
CN110059212A (en) Image search method, device, equipment and computer readable storage medium
CN110347887B (en) Method and device for acquiring time sequence data of service scene
CN109583910B (en) Commodity authorization identification method, device and equipment
CN105631732A (en) Method and device for determining user authority
US20180082359A1 (en) System and method for populating a database with a set of information related to an item owned by a first owner that is transferred to a second owner
CN111062770A (en) Merchant identification method, equipment and computer readable medium
CN112184143B (en) Model training method, device and equipment in compliance audit rule
CN111275071B (en) Prediction model training method, prediction device and electronic equipment
CN110796178B (en) Decision model training method, sample feature selection method, device and electronic equipment
CN108985831B (en) Offline transaction distinguishing method and device and computer equipment
CN103677668B (en) A kind of method and device of movable storage device detection
CN110348983A (en) Transaction Information management method and device, electronic equipment and non-transient storage media
CN109544205A (en) Statistical method, server and the computer readable storage medium of advertisement exposure amount
US20200320491A1 (en) System and method for populating a database with a set of information related to an item owned by a first owner that is transferred to a second owner

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200930

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200930

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant