WO2023070844A1 - Intelligent design method for personalized discount coupon, and electronic apparatus and storage medium - Google Patents

Intelligent design method for personalized discount coupon, and electronic apparatus and storage medium Download PDF

Info

Publication number
WO2023070844A1
WO2023070844A1 PCT/CN2021/136416 CN2021136416W WO2023070844A1 WO 2023070844 A1 WO2023070844 A1 WO 2023070844A1 CN 2021136416 W CN2021136416 W CN 2021136416W WO 2023070844 A1 WO2023070844 A1 WO 2023070844A1
Authority
WO
WIPO (PCT)
Prior art keywords
product
sales
discount
commodity
pedestrian
Prior art date
Application number
PCT/CN2021/136416
Other languages
French (fr)
Chinese (zh)
Inventor
苏新铎
王晓亮
陈�光
Original Assignee
广州广电运通金融电子股份有限公司
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 广州广电运通金融电子股份有限公司 filed Critical 广州广电运通金融电子股份有限公司
Publication of WO2023070844A1 publication Critical patent/WO2023070844A1/en

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/0207Discounts or incentives, e.g. coupons or rebates
    • 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

Definitions

  • the present application relates to the field of computer technology, in particular to an intelligent design method, electronic device and storage medium of a personalized discount coupon.
  • Issuing discount coupons is a common promotion behavior, and shopping malls use discount coupons to attract users to consume.
  • merchants rely heavily on personal experience for discount coupons, and cannot intelligently generate discount coupon amounts for specific or different products, resulting in increased marketing costs, but they cannot increase product sales and profits.
  • the embodiment of the present application provides an intelligent design method, electronic device, and storage medium for personalized discount coupons, so as to at least solve the problems of increased marketing costs, low sales volume and low profits in the related art by issuing discount coupons based on personal experience question.
  • the embodiment of the present application provides an intelligent design method for a personalized discount coupon, the method includes the following steps:
  • the product sales status feature is calculated, and the product sales status feature at least includes the number of times the product is viewed, the number of times the product is consulted, the number of times the product is taken, and the number of times the product is added to the shopping cart;
  • discount coupons are generated under the condition of maximizing profit.
  • the product sales status feature also includes the number of times the product has been browsed for more than a preset threshold but not taken, and the number of times the product has been taken but not added to the shopping cart.
  • the method further includes:
  • the method before identifying the identity of the pedestrian through the image classification model and judging whether the identity of the pedestrian is a service person or a customer, the method further includes:
  • the identity information of the pedestrian is not identified.
  • the method further includes:
  • the method further includes:
  • Products are screened according to the attention score and sales volume of the products.
  • the regression model is a linear regression model, a random forest model or a gradient boosting decision tree model.
  • the generating discount coupons under the condition of maximizing profits includes:
  • the embodiment of the present application provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to implement the above-mentioned first aspect when running the computer program.
  • an embodiment of the present application provides a storage medium, in which a computer program is stored, wherein the computer program is configured to implement the personalized discount coupon as described in the first aspect when running. Smart design approach.
  • the embodiment of the present application provides an intelligent design method for personalized discount coupons, which obtains video streams captured by cameras, performs target tracking tasks on pedestrians and commodities in the video streams, and obtains tracking results; Streaming data is processed to realize the analysis of customer (pedestrian) behavior, and according to the tracking results, the product sales status feature is calculated, and the regression model is trained using the product sales status feature to obtain a sales forecast model, without using the customer's personal information.
  • Fig. 1 is a schematic flow chart of a first intelligent design method of a personalized discount coupon according to an embodiment of the present application
  • Fig. 2 is a second schematic flow chart of an intelligent design method for a personalized discount coupon according to an embodiment of the present application
  • Fig. 3 is a third schematic flow chart of an intelligent design method for a personalized discount coupon according to an embodiment of the present application
  • FIG. 4 is a schematic flow diagram of obtaining the number of times a commodity has been viewed according to Embodiment 1 of the present application;
  • FIG. 5 is a schematic flow diagram of obtaining the number of consultations or consultation time of a product according to Embodiment 1 of the present application;
  • FIG. 6 is a schematic flow diagram of obtaining the number of times a product is taken and the number of times a product is added to a shopping cart according to an embodiment of the present application;
  • Fig. 7 is a fourth schematic flowchart of an intelligent design method for a personalized discount coupon according to an embodiment of the present application.
  • Fig. 8 is a schematic diagram of a product discount and sales song according to an embodiment of the present application.
  • FIG. 9 is a schematic flow chart of generating discount coupons under a profit maximization condition according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of an internal structure of an electronic device according to an embodiment of the present application.
  • the invention proposes an intelligent design method for personalized discount coupons.
  • Fig. 1 is a schematic flow chart of a first intelligent design method of a personalized discount coupon according to an embodiment of the present application.
  • the intelligent design method of a personalized discount coupon proposed by the present invention is applied In a large shopping mall/supermarket with a camera installed in the commodity area, the method includes the following steps:
  • Step S101 obtaining the video stream captured by the camera
  • Step S102 perform target tracking tasks on pedestrians and commodities in the video stream to obtain tracking results; for example, process the video stream data to realize the analysis of customer (pedestrian) behavior;
  • the target tracking task in this embodiment is a single-step multi-target tracking task, product detection and Re-ID (pedestrian re-identification) feature extraction can be realized simultaneously through a single model, in a single network (sales forecast model ) to complete product detection and identity embedding at the same time, so as to reduce the reasoning time by sharing most of the calculations, and achieve the purpose of performing reasoning and prediction at the video frame rate;
  • the target tracking task uses FairMOT (FairMOT, the full name is Fair Multi -Object Tracking) model to achieve, of course, in some other embodiments, other models can also be used to achieve, not specifically limited here;
  • FairMOT Fair Multi -Object Tracking
  • Step S103 calculate the product sales status feature according to the tracking results, the product sales status feature at least includes the number of times the product is viewed, the number of times the product is consulted, the number of times the product is picked up, and the number of times the product is added to the shopping cart; of course, in some other embodiments , the product sales status feature may also include the basic information feature of the product or other features, and no specific features are included here; for example, the basic information feature includes information such as product identification, product name, product unit price, and product discount;
  • the product sales status features include at least the number of times the product was viewed in the previous time span, the number of times the product was consulted in the previous time span, and the number of times the product was taken in the previous time span.
  • the price of the product is 100 yuan, and the discount amount is 80 yuan (20% off); in addition, the Those skilled in the art can also extract the characteristics of the sales status of the commodity through the existing video algorithm, which will not be repeated here.
  • step S104 the regression model is trained using the characteristics of commodity sales conditions to obtain a sales forecast model; in this way, the sales forecast is realized;
  • Step S105 use the sales forecast model to predict the sales volume of the product under a given discount; in this way, it is convenient to quickly predict the sales volume of a large number of different products, with high intelligence and strong practicability; wherein, according to user needs, the given discount can be Set according to user needs, and the given discount can be a given amount or a given discount (for example, 30% off, 20% off, 10% off, etc.), which is not specifically limited here;
  • Step S106 according to the predicted sales volume, a discount coupon is generated under the condition of maximizing profit. In this way, it can not only help merchants to reasonably control marketing costs, but also increase profits. It solves the problems of increasing marketing costs and low sales and profits caused by issuing discount coupons through personal experience. It should be noted that this application can generate different discount coupons for different commodities, and the discount coupons do not distinguish between customers;
  • the video stream captured by the camera is obtained, and the target tracking task is performed on pedestrians and commodities in the video stream to obtain the tracking result; thus, the video stream data is processed to realize the analysis of customer (pedestrian) behavior, According to the tracking results, the product sales status characteristics are calculated, and the regression model is trained using the product sales status features to obtain a sales forecast model.
  • the sales forecast model can accurately predict the sales of products under different discount amounts, and realize the detection of product sales in a single network (sales forecast model), so as to reduce the reasoning time by sharing most of the calculations, and realize the video
  • the frame rate performs reasoning and forecasting purposes, using the sales forecasting model to predict the sales of products under a given discount, so that it is convenient to quickly predict the sales of a large number of different products, with high intelligence and strong practicability.
  • the predicted sales to generate discount coupons under the condition of profit maximization. In this way, without infringing on user privacy, intelligently designing discount coupons can not only help merchants reasonably control marketing costs but also increase profits.
  • the method of discount coupons has caused the problems of increased marketing costs, low sales and low profits.
  • the preset threshold is set according to user needs.
  • the preset threshold can be 1 day, 2 days or more, not specifically limited here.
  • the product sales status is characterized by the number of times the product is browsed for more than a preset threshold but not taken, the number of times the product is taken but not added to the shopping cart and the number of times the product is viewed, the product The number of inquiries, the number of times the product is taken, and the number of times the product is added to the shopping cart are spliced, and during the splicing process, the system does not save or record the original data of the customer, and does not pay attention to individual data, so it does not infringe User Privacy.
  • Fig. 2 is a second schematic flow chart of an intelligent design method for a personalized discount coupon according to an embodiment of the present application.
  • the method further includes:
  • Step S201 identify the identity of the pedestrian through the image classification model, and determine whether the identity of the pedestrian is a service personnel or a customer; wherein, identifying the identity of the pedestrian can be realized by the uniform dress of the service personnel (for example, brightly colored tooling, uniform LOGO, etc.)
  • image classification model can adopt MoibleNets series model to realize, and wherein, MoibleNets series model includes MoibleNetV1, MoibleNetV2, MobileNetV3...etc., the MoibleNets series model that adopts in the present embodiment is lightweight model, not only parameter The amount is small and the amount of calculation is also small, so its running speed is fast, which is conducive to improving the training speed of the model;
  • Step S202 when the identity of a pedestrian is identified as a customer, generate a temporary ID of the customer, perform a pedestrian attribute recognition task (Pedestrian Attribute Recognition, PAR) on the customer, and add the extracted customer's age range feature and gender feature to the product sales Situation feature, when the customer leaves the shooting area, the temporary ID is deleted. Since the above steps do not save the user's original data and do not pay attention to individual data, it does not violate the user's privacy.
  • a pedestrian attribute recognition task pedestrian Attribute Recognition, PAR
  • the purpose of the human attribute recognition task is to mine the attribute information of pedestrians from the input image (for example, age interval features and gender features, etc.), and the high-level semantic information of pedestrians is obtained by recognition and mining;
  • the available training methods include: Based on the RAP algorithm of deep learning, by using manually designed low-level features, such as HOG (Histogram of Oriented Gradient, also known as directional gradient histogram feature), SIFT (Scale-invariant feature transform, also known as scale-invariant feature transformation) , combined with the classification algorithm SVM and the conditional random field (CRF), it is convenient to train the human attribute recognition task, wherein, the prior art of the RAP algorithm, HOG, SIFT, classification algorithm SVM and CRF is known to those skilled in the art , so I won’t go into details one by one.
  • HOG Histogram of Oriented Gradient, also known as directional gradient histogram feature
  • SIFT Scale-invariant feature transform, also known as scale-invariant feature
  • Fig. 3 is a schematic flow chart of the third intelligent design method of a personalized discount coupon according to the embodiment of the present application.
  • Fig. 3 in the process of practical application, since pedestrians can move freely within the viewing angle of the camera, their moving speed and posture changes will change at any time, so it is impossible to guarantee that each frame of the video is clear and usable.
  • the identity of pedestrians is identified through the image classification model, and the identity of pedestrians is judged as service personnel or customers.
  • the method also includes:
  • Step S301 using the target detection model to detect the rectangular area of the pedestrian position appearing in the video stream picture, and output the target detection result; wherein, the target detection model is an existing technology in the field, and will not be repeated here;
  • Step S302 cutting the pedestrian image according to the target detection result, and performing quality evaluation on the cut pedestrian image through the quality evaluation module; wherein, the quality evaluation module is an existing technology in the field, and will not be repeated here;
  • Step S303 if the image of the pedestrian does not conform to the preset quality evaluation standard of the quality evaluation module, the identity information identification of the pedestrian is not performed.
  • FIG. 4 is a schematic flow diagram of obtaining the number of times a product is viewed according to Embodiment 1 of the present application.
  • obtaining the number of times a product is viewed includes the following steps:
  • Step S401 when it is detected that the temporary ID of the customer is the same, calculate the stay time of the customer in the target product area;
  • Step S402 if the stay time is greater than the preset stay time, and the customer's activity range is smaller than the preset space range, then the pedestrian stays in the previous time span, and the customer's activity range is within the preset time span.
  • the circumscribed rectangle of the activity track within the dwell time is recorded as the number of visits; among them, the preset dwell time is set according to customer needs, and there is no specific limitation here;
  • Step S403 if the customer's activity range is larger than the preset spatial range, then the customer's activity range is the circumscribed rectangle of the customer's activity track within the stay time, which is recorded as the number of visits;
  • Fig. 5 is a schematic flow diagram of obtaining the number of times or the time of consultation of a product according to an embodiment of the present application.
  • obtaining the number of times of consultation or the time of consultation of a product includes the following steps:
  • Step S501 calculate the distance between the customer and the service personnel, when the detected distance is less than the preset distance, time the initial communication time T1, and when the detected distance is equal to the preset distance, time the end communication time T2;
  • the distance is set according to the needs of the user, and is not specifically limited here; in this embodiment, it is possible to distinguish whether it is a customer or a service person through step S201, and details will not be repeated here.
  • Step S502 calculate the time when the target product was consulted in the previous time span as the end communication time T2 minus the start communication time T1. For example, if the timing start communication time is T1: 10:00:00 in 2021, and the timing end communication time T2 is 2021 10:30:00 seconds, then the consultation time is 30 minutes.
  • Fig. 6 is a schematic flow chart of obtaining the number of times that the product is taken and the number of times that the product is added to the shopping cart according to an embodiment of the present application. Referring to Fig. Including the following steps:
  • Step S601 detecting the location of the shopping cart and the shelf.
  • the shelf location is relatively fixed and can be marked manually.
  • the number of shelves and the fine-grained labeling can be adjusted according to the scene.
  • Step S602 when it is detected that the distance between the pedestrian and the shelf position is less than the preset fixed threshold, start detecting the position of the human hand and track the position of the human hand in real time; where the preset fixed threshold is set according to the user's needs, and is not specifically limited here ;
  • Step S603 if it is detected that human hands enter the shelf area, record the number of times the item is picked up once;
  • Step S604 if it is detected that a human hand enters the shopping cart area, record the number of times items are put into the shopping cart once.
  • the method further includes:
  • the most similar product with product sales status characteristics is found through the inherent attributes of the new product.
  • the inherent attributes of new commodities are category, price and brand.
  • the new product is "Jiaduobao”, but Jiaduobao does not have the characteristics of product sales status.
  • Jiaduobao type, price, brand, etc.
  • the product sales status features in this embodiment are calculated according to the tracking results of the product in the previous time span, in some other embodiments, in order to improve the model effect, it is also possible to use multiple time spans. Sales status characteristics, for example, the time of the last three product sales.
  • Fig. 7 is a schematic diagram of the fourth flow chart of an intelligent design method for personalized discount coupons according to an embodiment of the present application. Referring to Fig. 7, in order to meet the needs of destocking or increasing sales in combination with business, in an embodiment, according to After the tracking result calculates the characteristics of the sales status of the commodity, the method further includes:
  • Step S701 calculating the product attention score according to the characteristics of the product sales status; wherein, the calculation formula of the product attention score is as follows:
  • Score Item represents the product attention score
  • Item represents discounted products
  • x i represents the i-th product sales status feature
  • n is the total number of product sales status features
  • step S702 products are screened according to the attention score and sales volume of the products.
  • the formula for filtering products is as follows:
  • Sale Item represents the sales volume of the product (Item)
  • Score Item represents the attention score of the product.
  • Fig. 8 is a schematic diagram of commodity discounts and sales curves according to Embodiment 1 of the present application. With reference to Fig. 8, it can be seen that the sales volume increases rapidly with the increase of the discount at the initial stage, but after the discount is reduced to a certain degree Change tends to stagnate, and sales cease to increase due to insufficient supply or saturation of purchasing power. In actual scenarios, the discount cannot reach 100%. Selecting items that are sensitive to changes in discounts can lead to more dramatic results. Note that the discount and sales curve at this time only shows a general trend, so it cannot be used to accurately predict sales, and is only used to analyze the sensitivity of products to discounts.
  • the regression model is a linear regression model, a random forest model, or a gradient boosting decision tree model.
  • the regression model can also choose other models with better regression effects according to user needs, which will not be done here Specific limits.
  • Fig. 9 is a schematic flow chart of generating a discount coupon under the condition of profit maximization in an embodiment of the present application.
  • generating a discount coupon under the condition of profit maximization includes:
  • Step S902 call a preset discount coupon template, the discount coupon template includes the page and appearance of the discount coupon; wherein, the page and appearance can be set according to user needs, and are not specifically limited here;
  • Step S903 write the attributes of the discount coupon, the discount date and the discount value calculated in step S901 into the corresponding position of the discount coupon template, generate a discount coupon, and issue the discount coupon to the customer through the membership system.
  • the discount coupon attribute, discount date and discount value can be set according to user needs, and no specific limitations are made here;
  • the membership system is an existing technology, and some basic information of customers is recorded in the membership system, and the use of membership system data means that the use of such information has been authorized by the user; as shown in the following table:
  • the unique identifier refers to the ID used to identify the user's identity in the membership system
  • the gender refers to the gender of the customer
  • the age refers to the age of the customer
  • the user's purchase status refers to the identification, type and quantity of the product actually purchased by the user. etc.
  • user transaction status refers to the user's payment method, payment amount, preferential method and discount amount, etc.
  • each of the above-mentioned modules may be a function module or a program module, and may be realized by software or by hardware.
  • the above modules may be located in the same processor; or the above modules may be located in different processors in any combination.
  • This embodiment also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
  • the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
  • the above-mentioned processor may be configured to execute the following steps through a computer program:
  • Step S101 obtaining the video stream captured by the camera
  • Step S102 performing target tracking tasks on pedestrians and commodities in the video stream to obtain tracking results
  • Step S103 calculating the product sales status features according to the tracking results, the product sales status features at least including the number of times the product is viewed, the number of times the product is consulted, the number of times the product is taken, and the number of times the product is added to the shopping cart;
  • Step S104 using the characteristics of the commodity sales status to train a regression model to obtain a sales forecast model
  • Step S105 using the sales forecast model to predict the sales volume of the commodity under a given discount
  • Step S106 according to the predicted sales volume, a discount coupon is generated under the condition of maximizing profit.
  • the embodiments of the present application may provide a storage medium for implementation.
  • a computer program is stored on the storage medium; when the computer program is executed by a processor, any intelligent design method for a personalized discount coupon in the above-mentioned embodiments is realized.
  • a computer device in one embodiment, is provided, and the computer device may be a terminal.
  • the computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus.
  • the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and computer programs.
  • the internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium.
  • the network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by a processor, an intelligent design method for personalized discount coupons is realized.
  • the display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen
  • the input device of the computer device may be a touch layer covered on the display screen, or a button, a trackball or a touch pad provided on the casing of the computer device , and can also be an external keyboard, touchpad, or mouse.
  • FIG. 10 is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application.
  • an electronic device is provided. shown.
  • the electronic device includes a processor connected through an internal bus, a network interface, an internal memory and a non-volatile memory, wherein the non-volatile memory stores an operating system, a computer program and a database.
  • the processor is used to provide computing and control capabilities
  • the network interface is used to communicate with external terminals through a network connection
  • the internal memory is used to provide an environment for the operation of the operating system and computer programs.
  • a personalized Smart design approach for discount coupons, database is used to store data.
  • FIG. 10 is only a block diagram of a part of the structure related to the solution of this application, and does not constitute a limitation on the electronic device on which the solution of this application is applied.
  • the specific electronic device can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.
  • Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM random access memory
  • RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Abstract

An intelligent design method for a personalized discount coupon, and an electronic apparatus and a storage medium. The method comprises: acquiring a video stream that is captured by a camera (S101); executing a target tracking task on a pedestrian and a commodity in the video stream, so as to obtain a tracking result (S102); calculating commodity sales condition features according to the tracking result, wherein the commodity sales condition features at least comprise the number of times the commodity has been viewed, the number of times the commodity has been inquired about, the number of times the commodity has been taken, and the number of times the commodity has been placed into a shopping cart (S103); training a regression model by using the commodity sales condition features, so as to obtain a sales prediction model (S104); predicting, by using the sales prediction model, the sales volume of the commodity under a given discount (S105); and on the basis of a predicted sales volume, generating a discount coupon under the condition of profit maximization (S106). The method can assist a merchant in rationally controlling marketing costs and can also increase profits, without violating the privacy of users, such that the problems of high marketing costs, a low sales volume and low profits caused by a previous method for issuing discount coupons according to personal experience are solved.

Description

个性化折扣券的智能设计方法、电子装置和存储介质Intelligent design method, electronic device and storage medium for personalized discount coupon 技术领域technical field
本申请涉及计算机技术领域,特别是涉及一种个性化折扣券的智能设计方法、电子装置和存储介质。The present application relates to the field of computer technology, in particular to an intelligent design method, electronic device and storage medium of a personalized discount coupon.
背景技术Background technique
发放折扣券是一种常见的促销行为,商场通过折扣券的方式吸引用户进行消费。目前,对于大型商场或者超市,商家对折扣券严重依赖个人经验,不能针对特定或者不同的商品智能生成折扣券金额,造成营销成本增大,但是却无法实现对商品销量及利润的提升。Issuing discount coupons is a common promotion behavior, and shopping malls use discount coupons to attract users to consume. At present, for large shopping malls or supermarkets, merchants rely heavily on personal experience for discount coupons, and cannot intelligently generate discount coupon amounts for specific or different products, resulting in increased marketing costs, but they cannot increase product sales and profits.
目前针对相关技术中通过个人经验发放折扣券的方式,造成营销成本增大、销量和利润低的问题,尚未提出有效的解决方案。At present, no effective solution has been proposed for the problems of increased marketing costs, low sales volume and low profits caused by the way of distributing discount coupons through personal experience in related technologies.
发明内容Contents of the invention
本申请实施例提供了一种个性化折扣券的智能设计方法、电子装置和存储介质,以至少解决相关技术中通过个人经验发放折扣券的方式,营销成本增大、销量和利润低的问题的问题。The embodiment of the present application provides an intelligent design method, electronic device, and storage medium for personalized discount coupons, so as to at least solve the problems of increased marketing costs, low sales volume and low profits in the related art by issuing discount coupons based on personal experience question.
第一方面,本申请实施例提供了一种个性化折扣券的智能设计方法,所述方法包括以下步骤:In the first aspect, the embodiment of the present application provides an intelligent design method for a personalized discount coupon, the method includes the following steps:
获取摄像头拍摄的视频流;Obtain the video stream captured by the camera;
对所述视频流中的行人和商品执行目标跟踪任务得到跟踪结果;Perform target tracking tasks on pedestrians and commodities in the video stream to obtain tracking results;
根据所述跟踪结果计算出商品销售状况特征,该商品销售状况特征至少包括商品被浏览次数、商品被咨询次数、商品被拿取次数和商品被加入购物车次数;According to the tracking results, the product sales status feature is calculated, and the product sales status feature at least includes the number of times the product is viewed, the number of times the product is consulted, the number of times the product is taken, and the number of times the product is added to the shopping cart;
利用所述商品销售状况特征训练回归模型,得到销售额预测模型;Utilize the characteristic training regression model of described commodity sales situation, obtain sales volume prediction model;
利用所述销售额预测模型预测商品在给定折扣下的销量;Using the sales forecast model to predict the sales volume of the commodity under a given discount;
根据预测的销量,在利润最大化条件下生成折扣券。According to the predicted sales volume, discount coupons are generated under the condition of maximizing profit.
在其中一些实施例中,所述商品销售状况特征还包括商品被浏览时长超过预设阈值但未被拿取的次数以及商品被拿取但未被加入购物车的次数。In some of these embodiments, the product sales status feature also includes the number of times the product has been browsed for more than a preset threshold but not taken, and the number of times the product has been taken but not added to the shopping cart.
在其中一些实施例中,在所述获取摄像头拍摄的视频流之后,所述方法还包括:In some of these embodiments, after the acquisition of the video stream captured by the camera, the method further includes:
通过图像分类模型识别行人身份,并判断所述行人身份是服务人员还是顾客;Identify the identity of the pedestrian through the image classification model, and judge whether the identity of the pedestrian is a service person or a customer;
在识别到行人身份为顾客时,生成该顾客的临时ID,并对所述顾客执行行人属性识别任务,并将提取的顾客的年龄区间特征和性别特征加入所述商品销售状况特征,当所述顾客离开拍摄区域,删除所述临时ID。When the identity of a pedestrian is identified as a customer, generate the temporary ID of the customer, and perform the pedestrian attribute identification task on the customer, and add the extracted customer's age interval feature and gender feature to the commodity sales status feature, when the When the customer leaves the shooting area, the temporary ID is deleted.
在其中一些实施例中,所述通过图像分类模型识别行人身份,并判断所述行人身份是服务人员还是顾客之前,所述方法还包括:In some of these embodiments, before identifying the identity of the pedestrian through the image classification model and judging whether the identity of the pedestrian is a service person or a customer, the method further includes:
通过目标检测模型检测所述视频流画面中出现的行人位置的矩形区域,并输出目标检测结果;Detecting the rectangular area of the pedestrian position appearing in the video stream picture through the target detection model, and outputting the target detection result;
根据所述目标检测结果切割行人图像,并通过质量评价模块对切割后的行人图像进行质量评价;cutting the pedestrian image according to the target detection result, and performing quality evaluation on the cut pedestrian image through the quality evaluation module;
若所述行人图像不符合所述质量评价模块的预设质量评价标准,则不对该行人进行身份信息识别。If the image of the pedestrian does not conform to the preset quality evaluation standard of the quality evaluation module, the identity information of the pedestrian is not identified.
在其中一些实施例中,在所述根据所述跟踪结果计算出商品销售状况特征之后,所述方法还包括:In some of these embodiments, after calculating the product sales status characteristics according to the tracking results, the method further includes:
对没有商品销售状况特征的新商品,通过所述新商品的固有属性寻找最相似的具有商品销售状况特征的商品。For a new product without the characteristics of the sales status of the product, the most similar product with the characteristics of the sales status of the product is found through the inherent attributes of the new product.
在其中一些实施例中,在所述根据所述跟踪结果计算出商品销售状况特征之后,所述方法还包括:In some of these embodiments, after calculating the product sales status characteristics according to the tracking results, the method further includes:
根据所述商品销售状况特征计算商品关注度分值;Calculating the commodity attention score according to the characteristics of the commodity sales status;
根据所述商品的关注度分值和销量筛选商品。Products are screened according to the attention score and sales volume of the products.
在其中一些实施例中,所述回归模型为线性回归模型、随机森林模型或梯度提升决策树模型。In some of these embodiments, the regression model is a linear regression model, a random forest model or a gradient boosting decision tree model.
在其中一些实施例中,所述在利润最大化条件下生成折扣券包括:In some of these embodiments, the generating discount coupons under the condition of maximizing profits includes:
计算利润最大时的折扣值;Calculation of the discount value at which the profit is maximized;
调取预设的折扣券模板,该折扣券模板包括折扣券的页面和外观;Call the preset discount coupon template, which includes the page and appearance of the discount coupon;
将折扣券属性、折扣日期和所述折扣值写入折扣券模板的相应位置,生成所述折扣券,并通过会员系统将所述折扣券发放给客户。Write the discount coupon attribute, discount date and the discount value into the corresponding position of the discount coupon template, generate the discount coupon, and issue the discount coupon to the customer through the membership system.
第二方面,本申请实施例提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序时实现如上述第一方面所述的个性化折扣券的智能设计方法。In the second aspect, the embodiment of the present application provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to implement the above-mentioned first aspect when running the computer program. The intelligent design method of the personalized discount coupon described above.
第三方面,本申请实施例提供了一种存储介质,所述存储介质中存储有计 算机程序,其中,所述计算机程序被设置为运行时实现如上述第一方面所述的个性化折扣券的智能设计方法。In a third aspect, an embodiment of the present application provides a storage medium, in which a computer program is stored, wherein the computer program is configured to implement the personalized discount coupon as described in the first aspect when running. Smart design approach.
相比于相关技术,本申请实施例提供的一种个性化折扣券的智能设计方法,获取摄像头拍摄的视频流,对视频流中的行人和商品执行目标跟踪任务得到跟踪结果;如此,对视频流数据进行处理,实现对客户(行人)行为的分析,并根据跟踪结果计算出商品销售状况特征,利用商品销售状况特征训练回归模型,得到销售额预测模型,不使用顾客的个人信息,在不侵犯顾客隐私的情况下,分析出商品销售状况,并通过销售额预测模型能够准确预测商品在不同折扣金额下的销量,而且,实现在单个网络(销售额预测模型)中完成商品销售情况的检测,以通过共享大部分计算来减少推理时间,实现以视频帧速率执行推理和预测的目的,利用销售额预测模型预测商品在给定折扣下的销量,如此,方便大量不同的商品快速的预测出销量,智能化程度高且实用性强,根据预测的销量,在利润最大化条件下生成折扣券,如此,在不侵犯用户隐私的情况下,智能设计折扣券,不仅可以帮助商家合理的控制营销成本也可以实现利润的提升,解决了之前通过个人经验发放折扣券的方式,造成营销成本增大、销量和利润低的问题。Compared with related technologies, the embodiment of the present application provides an intelligent design method for personalized discount coupons, which obtains video streams captured by cameras, performs target tracking tasks on pedestrians and commodities in the video streams, and obtains tracking results; Streaming data is processed to realize the analysis of customer (pedestrian) behavior, and according to the tracking results, the product sales status feature is calculated, and the regression model is trained using the product sales status feature to obtain a sales forecast model, without using the customer's personal information. In the case of violating customer privacy, analyze the sales status of the product, and accurately predict the sales of the product under different discount amounts through the sales forecast model, and realize the detection of the sales status of the product in a single network (sales forecast model) , to reduce the reasoning time by sharing most of the calculations, and achieve the purpose of performing reasoning and prediction at the video frame rate, using the sales prediction model to predict the sales of products under a given discount, so that it is convenient for a large number of different products to be quickly predicted Sales volume is highly intelligent and practical. According to the forecasted sales volume, discount coupons are generated under the condition of maximizing profits. In this way, intelligently designing discount coupons without infringing on user privacy can not only help merchants reasonably control marketing Costs can also increase profits, which solves the problems of increased marketing costs and low sales and profits caused by the previous way of issuing discount coupons through personal experience.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The schematic embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation to the application. In the attached picture:
图1是本申请实施例的一种个性化折扣券的智能设计方法的第一流程示意图;Fig. 1 is a schematic flow chart of a first intelligent design method of a personalized discount coupon according to an embodiment of the present application;
图2是本申请实施例的一种个性化折扣券的智能设计方法的第二流程示意图;Fig. 2 is a second schematic flow chart of an intelligent design method for a personalized discount coupon according to an embodiment of the present application;
图3是本申请实施例的一种个性化折扣券的智能设计方法的第三流程示意图;Fig. 3 is a third schematic flow chart of an intelligent design method for a personalized discount coupon according to an embodiment of the present application;
图4是根据本申请实施例一获取商品被浏览次数的流程示意图;FIG. 4 is a schematic flow diagram of obtaining the number of times a commodity has been viewed according to Embodiment 1 of the present application;
图5是根据本申请实施例一获取商品被咨询次数或被咨询时间的流程示意图;FIG. 5 is a schematic flow diagram of obtaining the number of consultations or consultation time of a product according to Embodiment 1 of the present application;
图6是根据本申请实施例一获取商品被拿取次数和商品被加入购物车次数的流程示意图;FIG. 6 is a schematic flow diagram of obtaining the number of times a product is taken and the number of times a product is added to a shopping cart according to an embodiment of the present application;
图7是本申请实施例的一种个性化折扣券的智能设计方法的第四流程示意图;Fig. 7 is a fourth schematic flowchart of an intelligent design method for a personalized discount coupon according to an embodiment of the present application;
图8是根据本申请实施例一商品折扣与销量曲的示意图;Fig. 8 is a schematic diagram of a product discount and sales song according to an embodiment of the present application;
图9是本申请实施例的一利润最大化条件下生成折扣券的流程示意图;FIG. 9 is a schematic flow chart of generating discount coupons under a profit maximization condition according to an embodiment of the present application;
图10是根据本申请实施例的电子装置的内部结构示意图。FIG. 10 is a schematic diagram of an internal structure of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行描述和说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。基于本申请提供的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。此外,还可以理解的是,虽然这种开发过程中所作出的努力可能是复杂并且冗长的,然而对于与本申请公开的内容相关的本领域的普通技术人员而言,在本申请揭露的技术内容的基础上进行的一些设计,制造或者生产等变更只是常规的技术手段,不应当理解为本申请公开的内容不充分。In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application. In addition, it can also be understood that although such development efforts may be complex and lengthy, for those of ordinary skill in the art relevant to the content disclosed in this application, the technology disclosed in this application Some design, manufacturing or production changes based on the content are just conventional technical means, and should not be understood as insufficient content disclosed in this application.
在本申请中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域普通技术人员显式地和隐式地理解的是,本申请所描述的实施例在不冲突的情况下,可以与其它实施例相结合。Reference in this application to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.
除非另作定义,本申请所涉及的技术术语或者科学术语应当为本申请所属技术领域内具有一般技能的人士所理解的通常意义。本申请所涉及的“一”、“一个”、“一种”、“该”等类似词语并不表示数量限制,可表示单数或复数。本申请所涉及的术语“包括”、“包含”、“具有”以及它们任何变形,意图在于覆盖不排他的包含;例如包含了一系列步骤或模块(单元)的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可以还包括没有列出的步骤或单元,或可以还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。本申请所涉及的“连接”、“相连”、“耦接”等类似的词语并非限定于物理的或者机械的连接,而是可以包括电气的连接,不管是直接的还是间接的。本申请所涉及的“多个”是指大于或者等于两个。“和/或”描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本申请所涉及的 术语“第一”、“第二”、“第三”等仅仅是区别类似的对象,不代表针对对象的特定排序。Unless otherwise defined, the technical terms or scientific terms involved in the application shall have the usual meanings understood by those with ordinary skill in the technical field to which the application belongs. Words such as "a", "an", "an" and "the" involved in this application do not indicate a limitation on quantity, and may indicate singular or plural numbers. The terms "comprising", "comprising", "having" and any variations thereof involved in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product or process that includes a series of steps or modules (units). The apparatus is not limited to the listed steps or units, but may further include steps or units not listed, or may further include other steps or units inherent to the process, method, product or apparatus. The words "connected", "connected", "coupled" and similar words mentioned in this application are not limited to physical or mechanical connection, but may include electrical connection, no matter it is direct or indirect. "Multiple" referred to in the present application means greater than or equal to two. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships. For example, "A and/or B" may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The terms "first", "second", and "third" involved in this application are only used to distinguish similar objects, and do not represent a specific ordering of objects.
本发明提出一种个性化折扣券的智能设计方法。The invention proposes an intelligent design method for personalized discount coupons.
图1是本申请实施例的一种个性化折扣券的智能设计方法的第一流程示意图,参照图1,在本发明一实施例中,本发明提出的个性化折扣券的智能设计方法,应用于商品区安装有摄像头的大型商场/超市,该方法包括以下步骤:Fig. 1 is a schematic flow chart of a first intelligent design method of a personalized discount coupon according to an embodiment of the present application. With reference to Fig. 1, in an embodiment of the present invention, the intelligent design method of a personalized discount coupon proposed by the present invention is applied In a large shopping mall/supermarket with a camera installed in the commodity area, the method includes the following steps:
步骤S101,获取摄像头拍摄的视频流;Step S101, obtaining the video stream captured by the camera;
步骤S102,对视频流中的行人和商品执行目标跟踪任务得到跟踪结果;比如,对视频流数据进行处理,实现对客户(行人)行为的分析;Step S102, perform target tracking tasks on pedestrians and commodities in the video stream to obtain tracking results; for example, process the video stream data to realize the analysis of customer (pedestrian) behavior;
需要说明的是,本实施例中的目标跟踪任务为单步法多目标跟踪任务,通过单一模型可以同时实现商品检测与Re-ID(行人重识别)特征提取,在单个网络(销售额预测模型)中同时完成商品检测和身份嵌入,以通过共享大部分计算来减少推理时间,实现以视频帧速率执行推理和预测的目的;本实施例中,目标跟踪任务采用FairMOT(FairMOT,全称为Fair Multi-Object Tracking)模型来实现,当然在一些其他实施例中,还可以采用其他模型来实现,此处不做具体限定;It should be noted that the target tracking task in this embodiment is a single-step multi-target tracking task, product detection and Re-ID (pedestrian re-identification) feature extraction can be realized simultaneously through a single model, in a single network (sales forecast model ) to complete product detection and identity embedding at the same time, so as to reduce the reasoning time by sharing most of the calculations, and achieve the purpose of performing reasoning and prediction at the video frame rate; in this embodiment, the target tracking task uses FairMOT (FairMOT, the full name is Fair Multi -Object Tracking) model to achieve, of course, in some other embodiments, other models can also be used to achieve, not specifically limited here;
步骤S103,根据跟踪结果计算出商品销售状况特征,该商品销售状况特征至少包括商品被浏览次数、商品被咨询次数、商品被拿取次数和商品被加入购物车次数;当然在一些其他实施例中,该商品销售状况特征还可以包括商品基础信息特征或者其他特征,此处不做具体特征;例如,基础信息特征包括商品标识、商品名称、商品单价和商品折扣等信息;Step S103, calculate the product sales status feature according to the tracking results, the product sales status feature at least includes the number of times the product is viewed, the number of times the product is consulted, the number of times the product is picked up, and the number of times the product is added to the shopping cart; of course, in some other embodiments , the product sales status feature may also include the basic information feature of the product or other features, and no specific features are included here; for example, the basic information feature includes information such as product identification, product name, product unit price, and product discount;
易于理解的是,商品销售状况特征越多,后续销售额预测模型的预测效果越好、预测的准确率越高;本实施例中的商品销售状况特征均为商品在上一个时间跨度内根据跟踪结果计算出商品销售状况特征,换句话说,该商品销售状况特征至少包括上一个时间跨度内的商品被浏览次数、上一个时间跨度内的商品被咨询次数、上一个时间跨度内的商品被拿取次数和上一个时间跨度内的商品被加入购物车次数,其中,上一个时间跨度内是指上一次商品价格、折扣持续不变的时间段,比如商品的上一次促销期的时间:即1月6号0点0分0秒至1月9号0点0分0秒,在此期间例如商品售价为200元,折扣金额为180元(9折);在比如商品的上一次促销期的时间:即1月15号0点0分0秒至1月20号0点0分0秒,在此期间例如商品售价为100元,折扣金额为80元(8折);另外,本领域技术人员也可以通过现有的视频算法提取得到商品销售状 况特征,此处不在一一赘述。It is easy to understand that the more characteristics of commodity sales status, the better the prediction effect of the subsequent sales forecast model and the higher the prediction accuracy; As a result, the product sales status features are calculated. In other words, the product sales status features include at least the number of times the product was viewed in the previous time span, the number of times the product was consulted in the previous time span, and the number of times the product was taken in the previous time span. The number of fetch times and the number of times the products in the previous time span were added to the shopping cart, where the last time span refers to the time period during which the price and discount of the last product continued to remain unchanged, such as the time of the last promotional period of the product: that is, 1 From 0:00:00 on January 6th to 0:00:00 on January 9th, during this period, for example, the price of the product is 200 yuan, and the discount amount is 180 yuan (10% off); Time: from 0:00:00 on January 15th to 0:00:00 on January 20th. During this period, for example, the price of the product is 100 yuan, and the discount amount is 80 yuan (20% off); in addition, the Those skilled in the art can also extract the characteristics of the sales status of the commodity through the existing video algorithm, which will not be repeated here.
步骤S104,利用商品销售状况特征训练回归模型,得到销售额预测模型;如此,实现对销售额的预测;In step S104, the regression model is trained using the characteristics of commodity sales conditions to obtain a sales forecast model; in this way, the sales forecast is realized;
步骤S105,利用销售额预测模型预测商品在给定折扣下的销量;如此,方便大量不同的商品快速的预测出销量,智能化程度高且实用性强;其中,根据用户需求,给定折扣可以根据用户需求设置,且给定折扣可以是给定的金额也可以是给定的折扣(例如,7折、8折、9折等等),此处不做具体限定;Step S105, use the sales forecast model to predict the sales volume of the product under a given discount; in this way, it is convenient to quickly predict the sales volume of a large number of different products, with high intelligence and strong practicability; wherein, according to user needs, the given discount can be Set according to user needs, and the given discount can be a given amount or a given discount (for example, 30% off, 20% off, 10% off, etc.), which is not specifically limited here;
步骤S106,根据预测的销量,在利润最大化条件下生成折扣券。如此不仅可以帮助商家合理的控制营销成本也可以实现利润的提升,解决了之前通过个人经验发放折扣券、造成营销成本增大、销量和利润低的问题。需要说明的是,本申请针对不同商品可以生成不同折扣券,且折扣券对客户不做区分;Step S106, according to the predicted sales volume, a discount coupon is generated under the condition of maximizing profit. In this way, it can not only help merchants to reasonably control marketing costs, but also increase profits. It solves the problems of increasing marketing costs and low sales and profits caused by issuing discount coupons through personal experience. It should be noted that this application can generate different discount coupons for different commodities, and the discount coupons do not distinguish between customers;
需要说明的是,本实施例中上述步骤S101至步骤S106都是在不侵犯用户隐私的情况下完成的,其中,不侵犯用户隐私指的是本方法中不使用客户的个人隐私数据。值得注意的是,在本申请实施例的场景下,对商场中的所有商品都可以采用上述步骤智能生成折扣券。It should be noted that the above steps S101 to S106 in this embodiment are all completed without infringing on user privacy, wherein not infringing on user privacy refers to not using personal private data of customers in this method. It is worth noting that, in the scenario of the embodiment of the present application, the above steps can be used to intelligently generate discount coupons for all commodities in the mall.
通过上述步骤S101至步骤S106,获取摄像头拍摄的视频流,对视频流中的行人和商品执行目标跟踪任务得到跟踪结果;如此,对视频流数据进行处理,实现对客户(行人)行为的分析,并根据跟踪结果计算出商品销售状况特征,利用商品销售状况特征训练回归模型,得到销售额预测模型,不使用顾客的个人信息,在不侵犯顾客隐私的情况下,分析出商品销售状况,并通过销售额预测模型能够准确预测商品在不同折扣金额下的销量,而且,实现在单个网络(销售额预测模型)中完成商品销售情况的检测,以通过共享大部分计算来减少推理时间,实现以视频帧速率执行推理和预测的目的,利用销售额预测模型预测商品在给定折扣下的销量,如此,方便大量不同的商品快速的预测出销量,智能化程度高且实用性强,根据预测的销量,在利润最大化条件下生成折扣券,如此,在不侵犯用户隐私的情况下,智能设计折扣券,不仅可以帮助商家合理的控制营销成本也可以实现利润的提升,解决了之前通过个人经验发放折扣券的方式,造成营销成本增大、销量和利润低的问题。Through the above steps S101 to S106, the video stream captured by the camera is obtained, and the target tracking task is performed on pedestrians and commodities in the video stream to obtain the tracking result; thus, the video stream data is processed to realize the analysis of customer (pedestrian) behavior, According to the tracking results, the product sales status characteristics are calculated, and the regression model is trained using the product sales status features to obtain a sales forecast model. Without using the customer's personal information, the product sales status is analyzed without infringing on the customer's privacy, and passed The sales forecast model can accurately predict the sales of products under different discount amounts, and realize the detection of product sales in a single network (sales forecast model), so as to reduce the reasoning time by sharing most of the calculations, and realize the video The frame rate performs reasoning and forecasting purposes, using the sales forecasting model to predict the sales of products under a given discount, so that it is convenient to quickly predict the sales of a large number of different products, with high intelligence and strong practicability. According to the predicted sales , to generate discount coupons under the condition of profit maximization. In this way, without infringing on user privacy, intelligently designing discount coupons can not only help merchants reasonably control marketing costs but also increase profits. The method of discount coupons has caused the problems of increased marketing costs, low sales and low profits.
由于购物过程中还存在大量潜在客户,许多潜在客户处于观望状态,一旦得到利好消息,很容易转化为新客户,在一实施例中,商品销售状况特征还包括商品被浏览时长超过预设阈值但未被拿取的次数以及商品被拿取但未被加入购物车的次数。如此,通过增加大量潜在客户对商品行为的特征,可以方便后 续更好的训练销售额预测模型,提高预测精度;其中,预设阈值根据用户需求设定,例如,预设阈值可以是1天、2天或者更多,此处不做具体限定。Because there are still a large number of potential customers in the shopping process, many potential customers are in a wait-and-see state. Once they get good news, they can easily be converted into new customers. The number of times it was not picked up and the number of times the item was picked up but not added to the shopping cart. In this way, by increasing the characteristics of a large number of potential customers' behaviors on commodities, it is convenient to better train the sales prediction model and improve the prediction accuracy; wherein, the preset threshold is set according to user needs. For example, the preset threshold can be 1 day, 2 days or more, not specifically limited here.
进一步地,在一些实施例中,商品销售状况特征为通过商品被浏览时长超过预设阈值但未被拿取的次数、商品被拿取但未被加入购物车的次数和商品被浏览次数、商品被咨询次数、商品被拿取次数和商品被加入购物车次数进行拼接后组成的,且在拼接的过程中,系统不保存、不记录客户的原始数据,同时也不关注个体数据,因此不侵犯用户隐私。Further, in some embodiments, the product sales status is characterized by the number of times the product is browsed for more than a preset threshold but not taken, the number of times the product is taken but not added to the shopping cart and the number of times the product is viewed, the product The number of inquiries, the number of times the product is taken, and the number of times the product is added to the shopping cart are spliced, and during the splicing process, the system does not save or record the original data of the customer, and does not pay attention to individual data, so it does not infringe User Privacy.
图2是本申请实施例的一种个性化折扣券的智能设计方法的第二流程示意图,参照图2,在一些实施例中,在获取摄像头拍摄的视频流之后,该方法还包括:Fig. 2 is a second schematic flow chart of an intelligent design method for a personalized discount coupon according to an embodiment of the present application. Referring to Fig. 2, in some embodiments, after obtaining the video stream captured by the camera, the method further includes:
步骤S201,通过图像分类模型识别行人身份,并判断行人身份是服务人员还是顾客;其中,识别行人身份可以通过服务人员的统一着装(例如,颜色艳丽的工装,统一LOGO等)实现服务人员和顾客的区分,另外,其中,图像分类模型可以采用MoibleNets系列模型来实现,其中,MoibleNets系列模型包括MoibleNetV1、MoibleNetV2、MobileNetV3……等,本实施例中采用的MoibleNets系列模型为轻量化的模型、不仅参数量少而且计算量也小,因此其运行速度快,有利于提高模型的训练速度;Step S201, identify the identity of the pedestrian through the image classification model, and determine whether the identity of the pedestrian is a service personnel or a customer; wherein, identifying the identity of the pedestrian can be realized by the uniform dress of the service personnel (for example, brightly colored tooling, uniform LOGO, etc.) In addition, among them, image classification model can adopt MoibleNets series model to realize, and wherein, MoibleNets series model includes MoibleNetV1, MoibleNetV2, MobileNetV3...etc., the MoibleNets series model that adopts in the present embodiment is lightweight model, not only parameter The amount is small and the amount of calculation is also small, so its running speed is fast, which is conducive to improving the training speed of the model;
步骤S202,在识别到行人身份为顾客时,生成该顾客的临时ID,并对顾客执行行人属性识别任务(Pedestrian Attribute Recognition,PAR),并将提取的顾客的年龄区间特征和性别特征加入商品销售状况特征,当顾客离开拍摄区域,删除临时ID。由于上述步骤不保存用户原始数据,不关注个体数据,因此不侵犯用户隐私。易于理解的是,人属性识别任务目的是从输入图像中挖掘行人的属性信息(例如,年龄区间特征和性别特征等),识别挖掘得到的是行人的高层语义信息;可用的训练方法包括:在深度学习的RAP算法的基础上,通过使用手工设计的低层特征,如HOG(Histogram of Oriented Gradient,又称方向梯度直方图特征)、SIFT(Scale-invariant feature transform,又称尺度不变特征变换),再结合分类算法SVM和条件随机场(CRF)可以方便的对人属性识别任务进行训练,其中,RAP算法、HOG、SIFT、分类算法SVM和CRF的现有技术为本领域技术人员所知道的,因此不在一一赘述。Step S202, when the identity of a pedestrian is identified as a customer, generate a temporary ID of the customer, perform a pedestrian attribute recognition task (Pedestrian Attribute Recognition, PAR) on the customer, and add the extracted customer's age range feature and gender feature to the product sales Situation feature, when the customer leaves the shooting area, the temporary ID is deleted. Since the above steps do not save the user's original data and do not pay attention to individual data, it does not violate the user's privacy. It is easy to understand that the purpose of the human attribute recognition task is to mine the attribute information of pedestrians from the input image (for example, age interval features and gender features, etc.), and the high-level semantic information of pedestrians is obtained by recognition and mining; the available training methods include: Based on the RAP algorithm of deep learning, by using manually designed low-level features, such as HOG (Histogram of Oriented Gradient, also known as directional gradient histogram feature), SIFT (Scale-invariant feature transform, also known as scale-invariant feature transformation) , combined with the classification algorithm SVM and the conditional random field (CRF), it is convenient to train the human attribute recognition task, wherein, the prior art of the RAP algorithm, HOG, SIFT, classification algorithm SVM and CRF is known to those skilled in the art , so I won’t go into details one by one.
图3是本申请实施例的一种个性化折扣券的智能设计方法的第三流程示意图,参照图3,在实际应用的过程中,由于行人在摄像头视角内是可以自由移动的,其移动速度和姿态变化等会随时发生变化,因此无法保障视频每一帧清晰 可用,为了提高特征的识别效果,在一些实施例中,通过图像分类模型识别行人身份,并判断行人身份是服务人员还是顾客之前,方法还包括:Fig. 3 is a schematic flow chart of the third intelligent design method of a personalized discount coupon according to the embodiment of the present application. Referring to Fig. 3, in the process of practical application, since pedestrians can move freely within the viewing angle of the camera, their moving speed and posture changes will change at any time, so it is impossible to guarantee that each frame of the video is clear and usable. In order to improve the recognition effect of features, in some embodiments, the identity of pedestrians is identified through the image classification model, and the identity of pedestrians is judged as service personnel or customers. , the method also includes:
步骤S301,通过目标检测模型检测视频流画面中出现的行人位置的矩形区域,并输出目标检测结果;其中,目标检测模型为本领域现有的技术,此处不在一一赘述;Step S301, using the target detection model to detect the rectangular area of the pedestrian position appearing in the video stream picture, and output the target detection result; wherein, the target detection model is an existing technology in the field, and will not be repeated here;
步骤S302,根据目标检测结果切割行人图像,并通过质量评价模块对切割后的行人图像进行质量评价;其中,质量评价模块为为本领域现有的技术,此处不在一一赘述;Step S302, cutting the pedestrian image according to the target detection result, and performing quality evaluation on the cut pedestrian image through the quality evaluation module; wherein, the quality evaluation module is an existing technology in the field, and will not be repeated here;
步骤S303,若行人图像不符合质量评价模块的预设质量评价标准,则不对该行人进行身份信息识别。Step S303, if the image of the pedestrian does not conform to the preset quality evaluation standard of the quality evaluation module, the identity information identification of the pedestrian is not performed.
图4是根据本申请实施例一获取商品被浏览次数的流程示意图,参照图4,在一些实施例中,获取商品被浏览次数包括如下步骤:FIG. 4 is a schematic flow diagram of obtaining the number of times a product is viewed according to Embodiment 1 of the present application. With reference to FIG. 4 , in some embodiments, obtaining the number of times a product is viewed includes the following steps:
步骤S401,在检测到客户的临时ID相同时,计算该客户在目标商品区域的停留时间;Step S401, when it is detected that the temporary ID of the customer is the same, calculate the stay time of the customer in the target product area;
步骤S402,若停留时间大于预设停留时间,且该客户的活动范围小于预设的空间范围时,则该行人在该上一个时间跨度内停留,且该客户的活动范围为该客户在预设停留时间内活动轨迹的外接矩形,记录为一次浏览次数;其中,预设停留时间根据客户需求设定,此处不做具体限定;Step S402, if the stay time is greater than the preset stay time, and the customer's activity range is smaller than the preset space range, then the pedestrian stays in the previous time span, and the customer's activity range is within the preset time span. The circumscribed rectangle of the activity track within the dwell time is recorded as the number of visits; among them, the preset dwell time is set according to customer needs, and there is no specific limitation here;
步骤S403,若该客户的活动范围大于预设的空间范围时,则该客户的活动范围为该客户在停留时间内的活动轨迹的外接矩形,记录为一次浏览次数;Step S403, if the customer's activity range is larger than the preset spatial range, then the customer's activity range is the circumscribed rectangle of the customer's activity track within the stay time, which is recorded as the number of visits;
图5是根据本申请实施例一获取商品被咨询次数或被咨询时间的流程示意图,参照图5,在一实施例中,获取商品被咨询次数或被咨询时间包括如下步骤:Fig. 5 is a schematic flow diagram of obtaining the number of times or the time of consultation of a product according to an embodiment of the present application. With reference to Fig. 5, in one embodiment, obtaining the number of times of consultation or the time of consultation of a product includes the following steps:
步骤S501,计算该客户与服务人员之间的距离,在检测到距离小于预设距离时,计时起始交流时间T1,在检测到距离等于预设距离时,计时结束交流时间T2;其中,预设距离根据用户需求设定,此处不做具体限定;本实施例可以通过步骤S201可以区分是客户还是服务人员,此处不在一一赘述。Step S501, calculate the distance between the customer and the service personnel, when the detected distance is less than the preset distance, time the initial communication time T1, and when the detected distance is equal to the preset distance, time the end communication time T2; The distance is set according to the needs of the user, and is not specifically limited here; in this embodiment, it is possible to distinguish whether it is a customer or a service person through step S201, and details will not be repeated here.
步骤S502,计算目标商品在上一个时间跨度内被咨询的时间为结束交流时间T2减起始交流时间T1。例如,计时起始交流时间为T1:2021年10点0分0秒,计时结束交流时间T2为2021年10点30分0秒,则咨询时间为30分。Step S502, calculate the time when the target product was consulted in the previous time span as the end communication time T2 minus the start communication time T1. For example, if the timing start communication time is T1: 10:00:00 in 2021, and the timing end communication time T2 is 2021 10:30:00 seconds, then the consultation time is 30 minutes.
图6是根据本申请实施例一获取商品被拿取次数和商品被加入购物车次数的流程示意图,参照图6,在一实施例中,获取商品被拿取次数和商品被加入购物车次数通包括如下步骤:Fig. 6 is a schematic flow chart of obtaining the number of times that the product is taken and the number of times that the product is added to the shopping cart according to an embodiment of the present application. Referring to Fig. Including the following steps:
步骤S601,检测购物车位置和货架位置;其中,货架位置较为固定,可以采用人工标注方式,另外,货架的多少、需要标注的细粒度可根据需要根据场景进行调整。Step S601, detecting the location of the shopping cart and the shelf. The shelf location is relatively fixed and can be marked manually. In addition, the number of shelves and the fine-grained labeling can be adjusted according to the scene.
步骤S602,当检测到行人与货架位置之间的距离小于预设固定阈值时,开始检测人手位置,并实时跟踪人手位置;其中,预设固定阈值根据用户需求设定,此处不做具体限定;Step S602, when it is detected that the distance between the pedestrian and the shelf position is less than the preset fixed threshold, start detecting the position of the human hand and track the position of the human hand in real time; where the preset fixed threshold is set according to the user's needs, and is not specifically limited here ;
步骤S603,若检测到人手进入货架区域,则记录一次物品拿起的次数;Step S603, if it is detected that human hands enter the shelf area, record the number of times the item is picked up once;
步骤S604,若检测到人手进入购物车区域,则记录一次物品放入购物车的次数。Step S604, if it is detected that a human hand enters the shopping cart area, record the number of times items are put into the shopping cart once.
为了解决新商品的冷启动问题,提高实用性,在一实施例中,在根据跟踪结果计算出商品销售状况特征之后,该方法还包括:In order to solve the cold start problem of new commodities and improve the practicality, in one embodiment, after calculating the characteristics of commodity sales status according to the tracking results, the method further includes:
对没有商品销售状况特征的新商品,通过新商品的固有属性寻找最相似的具有商品销售状况特征的商品。其中,新商品的固有属性是种类、价格和品牌等。例如,新商品是“加多宝”,但是加多宝没有商品销售状况特征,通过“加多宝”的固有属性(种类、价格和品牌等)寻找最相似的具有商品销售状况特征的商品,即“王老吉”;在执行步骤S104至步骤S106,生成新商品的折扣券。由于本实施例中的商品销售状况特征均为商品在上一个时间跨度内根据跟踪结果计算出商品销售状况特征,在一些其他实施例中,为了提高模型效果,还可以使用多个时间跨度的商品销售状况特征,例如,之前三次商品促销的时间。For a new product that has no characteristics of product sales status, the most similar product with product sales status characteristics is found through the inherent attributes of the new product. Among them, the inherent attributes of new commodities are category, price and brand. For example, the new product is "Jiaduobao", but Jiaduobao does not have the characteristics of product sales status. Through the inherent attributes of "Jiaduobao" (type, price, brand, etc.) to find the most similar product with the characteristics of product sales status, That is, "Wanglaoji"; from step S104 to step S106, a discount coupon for a new commodity is generated. Since the product sales status features in this embodiment are calculated according to the tracking results of the product in the previous time span, in some other embodiments, in order to improve the model effect, it is also possible to use multiple time spans. Sales status characteristics, for example, the time of the last three product sales.
图7是本申请实施例的一种个性化折扣券的智能设计方法的第四流程示意图,参照图7,为了满足结合业务想要去库存或者提升销量等需求,在一实施例中,在根据跟踪结果计算出商品销售状况特征之后,方法还包括:Fig. 7 is a schematic diagram of the fourth flow chart of an intelligent design method for personalized discount coupons according to an embodiment of the present application. Referring to Fig. 7, in order to meet the needs of destocking or increasing sales in combination with business, in an embodiment, according to After the tracking result calculates the characteristics of the sales status of the commodity, the method further includes:
步骤S701,根据商品销售状况特征计算商品关注度分值;其中,商品关注度分值的计算公式如下:Step S701, calculating the product attention score according to the characteristics of the product sales status; wherein, the calculation formula of the product attention score is as follows:
Figure PCTCN2021136416-appb-000001
Figure PCTCN2021136416-appb-000001
其中,Score Item代表商品关注度分值,Item代表折扣商品,
Figure PCTCN2021136416-appb-000002
代表针对不同特征的权重,可以根据实际情况人工设定,x i代表第i个商品销售状况特征,n是商品销售状况特征的总数;
Among them, Score Item represents the product attention score, Item represents discounted products,
Figure PCTCN2021136416-appb-000002
Represents the weight for different features, which can be manually set according to the actual situation, x i represents the i-th product sales status feature, and n is the total number of product sales status features;
步骤S702,根据商品的关注度分值和销量筛选商品。其中,筛选商品公式如下:In step S702, products are screened according to the attention score and sales volume of the products. Among them, the formula for filtering products is as follows:
Figure PCTCN2021136416-appb-000003
Figure PCTCN2021136416-appb-000003
其中,Sale Item代表该商品(Item)的销量,Score Item代表商品关注度分值。 Among them, Sale Item represents the sales volume of the product (Item), and Score Item represents the attention score of the product.
此外,考虑到购买情况、交易中的折扣情况会对商品的销量产生影响,在一些其他实施例中,本领域技术人员还可以通过一些软件程序或算法分析用户的购买情况、交易中的折扣情况,实现对用户的折扣敏感程度量化计算得到折扣与销量曲线。对于不同的商品折扣与销量曲线不同;图8是根据本申请实施例一商品折扣与销量曲的示意图,参照图8可知,初期随着折扣的增加销量迅速提高,但是当折扣降低到一定程度后变化趋于停滞,由于供应的不足或购买力的饱和,销量停止增加。实际场景中,折扣不可能达到100%。选择对折扣变化敏感的商品可以带来更显著的效果。注意,此时的折扣与销量曲线仅表示了大致趋势,因此无法用于精确预测销量,仅用于分析商品对折扣的敏感程度。In addition, considering that the purchase situation and the discount situation in the transaction will have an impact on the sales of the commodity, in some other embodiments, those skilled in the art can also analyze the user's purchase situation and the discount situation in the transaction through some software programs or algorithms. , realize the quantitative calculation of the user's discount sensitivity to obtain the discount and sales curve. Different commodity discounts and sales curves are different; Fig. 8 is a schematic diagram of commodity discounts and sales curves according to Embodiment 1 of the present application. With reference to Fig. 8, it can be seen that the sales volume increases rapidly with the increase of the discount at the initial stage, but after the discount is reduced to a certain degree Change tends to stagnate, and sales cease to increase due to insufficient supply or saturation of purchasing power. In actual scenarios, the discount cannot reach 100%. Selecting items that are sensitive to changes in discounts can lead to more dramatic results. Note that the discount and sales curve at this time only shows a general trend, so it cannot be used to accurately predict sales, and is only used to analyze the sensitivity of products to discounts.
在一些实施例中,回归模型为线性回归模型、随机森林模型或梯度提升决策树模型,当然在一些其他实施例中回归模型还可以根据用户需求选择其他回归效果更好的模型,此处不做具体限定。In some embodiments, the regression model is a linear regression model, a random forest model, or a gradient boosting decision tree model. Of course, in some other embodiments, the regression model can also choose other models with better regression effects according to user needs, which will not be done here Specific limits.
图9是本申请实施例的一利润最大化条件下生成折扣券的流程示意图,参照图9,在一些实施例中,在利润最大化条件下生成折扣券包括:Fig. 9 is a schematic flow chart of generating a discount coupon under the condition of profit maximization in an embodiment of the present application. Referring to Fig. 9, in some embodiments, generating a discount coupon under the condition of profit maximization includes:
步骤S901,计算利润最大时的折扣值;本领域技术人员通过总销售额的公式和总利润的公式可以计算出利润最大时的折扣值;其中,总销售额的公式为:总销售额=销量*售价=销量*(原价-折扣金额),另外,总利润的公式为:总利润=销量*单件利润=销量*(原价-折扣金额-成本),由于通过模型可以预测商品在不同折扣下的销量,而根据上述总销售额的公式或总利润的公式,可以计算出在计算值最大的情况下所对应的折扣值;Step S901, calculating the discount value when the profit is the largest; those skilled in the art can calculate the discount value when the profit is the largest through the formula of total sales and the formula of total profit; wherein, the formula of total sales is: total sales = sales volume *Price = sales volume * (original price - discount amount), and the formula for total profit is: total profit = sales volume * single piece profit = sales volume * (original price - discount amount - cost), because the model can predict the different discounts of products According to the above formula of total sales or total profit, the discount value corresponding to the maximum calculated value can be calculated;
步骤S902,调取预设的折扣券模板,该折扣券模板包括折扣券的页面和外观;其中,页面和外观可以根据用户需求设置,此处不做具体限定;Step S902, call a preset discount coupon template, the discount coupon template includes the page and appearance of the discount coupon; wherein, the page and appearance can be set according to user needs, and are not specifically limited here;
步骤S903,将折扣券属性、折扣日期和步骤S901计算的折扣值写入折扣券模板的相应位置,生成折扣券,并通过会员系统将折扣券发放给客户。其中, 折扣券属性、折扣日期和折扣值均可以根据用户需求设定,此处不做具体限定;Step S903, write the attributes of the discount coupon, the discount date and the discount value calculated in step S901 into the corresponding position of the discount coupon template, generate a discount coupon, and issue the discount coupon to the customer through the membership system. Among them, the discount coupon attribute, discount date and discount value can be set according to user needs, and no specific limitations are made here;
其中,会员系统为现有的技术,且会员系统中记录了一些客户的基本信息,可使用会员系统数据是指这些信息的使用已得到用户的授权;如下表格内容所示:Among them, the membership system is an existing technology, and some basic information of customers is recorded in the membership system, and the use of membership system data means that the use of such information has been authorized by the user; as shown in the following table:
名称name 来源source
客户唯一标识customer unique identifier 商品会员系统Commodity membership system
性别gender 商品会员系统Commodity membership system
年龄age 商品会员系统Commodity membership system
用户购买商品情况User purchases 历史交易数据Historical transaction data
用户交易情况user transactions 历史交易数据Historical transaction data
其中,唯一标识指的是会员制度中用于标识用户身份的ID,性别指的是客户性别,年龄指的是客户的年龄,用户购买商品情况指的是用户实际购买的商品标识、种类和数量等;用户交易情况指的是包括用户支付方式、支付金额、优惠方式和折扣金额等。Among them, the unique identifier refers to the ID used to identify the user's identity in the membership system, the gender refers to the gender of the customer, the age refers to the age of the customer, and the user's purchase status refers to the identification, type and quantity of the product actually purchased by the user. etc.; user transaction status refers to the user's payment method, payment amount, preferential method and discount amount, etc.
为了折扣券转化率最大,当然在一些其他实施例,结合专家经验和行业知识,本领域技术人员还可以通过一些软件算法、程序或模型通过对优惠券使用情况进行分析,得出优惠券使用率与使用时间、折扣券有效期、商品类型的关系,将优惠券有效期的设置方法写为规则(即,如果A商品在B情况下使用C折扣,则有效期为D)实现针对特定商品选择合适的折扣券时间属性,增加折扣券转化率,提高商品利润。In order to maximize the conversion rate of discount coupons, of course, in some other embodiments, combined with expert experience and industry knowledge, those skilled in the art can also use some software algorithms, programs or models to analyze the usage of coupons to obtain the usage rate of coupons. The relationship between the usage time, the validity period of the discount coupon, and the type of product, the setting method of the coupon validity period is written as a rule (that is, if A product uses C discount in B situation, then the validity period is D) to realize the selection of an appropriate discount for a specific product Coupon time attributes, increase the conversion rate of discount coupons, and increase product profits.
需要说明的是,上述各个模块可以是功能模块也可以是程序模块,既可以通过软件来实现,也可以通过硬件来实现。对于通过硬件来实现的模块而言,上述各个模块可以位于同一处理器中;或者上述各个模块还可以按照任意组合的形式分别位于不同的处理器中。It should be noted that each of the above-mentioned modules may be a function module or a program module, and may be realized by software or by hardware. For the modules implemented by hardware, the above modules may be located in the same processor; or the above modules may be located in different processors in any combination.
本实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。This embodiment also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。Optionally, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:
步骤S101,获取摄像头拍摄的视频流;Step S101, obtaining the video stream captured by the camera;
步骤S102,对所述视频流中的行人和商品执行目标跟踪任务得到跟踪结果;Step S102, performing target tracking tasks on pedestrians and commodities in the video stream to obtain tracking results;
步骤S103,根据所述跟踪结果计算出商品销售状况特征,该商品销售状况特征至少包括商品被浏览次数、商品被咨询次数、商品被拿取次数和商品被加入购物车次数;Step S103, calculating the product sales status features according to the tracking results, the product sales status features at least including the number of times the product is viewed, the number of times the product is consulted, the number of times the product is taken, and the number of times the product is added to the shopping cart;
步骤S104,利用所述商品销售状况特征训练回归模型,得到销售额预测模型;Step S104, using the characteristics of the commodity sales status to train a regression model to obtain a sales forecast model;
步骤S105,利用所述销售额预测模型预测商品在给定折扣下的销量;Step S105, using the sales forecast model to predict the sales volume of the commodity under a given discount;
步骤S106,根据预测的销量,在利润最大化条件下生成折扣券。Step S106, according to the predicted sales volume, a discount coupon is generated under the condition of maximizing profit.
另外,结合上述实施例中的个性化折扣券的智能设计方法,本申请实施例可提供一种存储介质来实现。该存储介质上存储有计算机程序;该计算机程序被处理器执行时实现上述实施例中的任意一种个性化折扣券的智能设计方法。In addition, in combination with the intelligent design method for personalized discount coupons in the foregoing embodiments, the embodiments of the present application may provide a storage medium for implementation. A computer program is stored on the storage medium; when the computer program is executed by a processor, any intelligent design method for a personalized discount coupon in the above-mentioned embodiments is realized.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种个性化折扣券的智能设计方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided, and the computer device may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Wherein, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by a processor, an intelligent design method for personalized discount coupons is realized. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a button, a trackball or a touch pad provided on the casing of the computer device , and can also be an external keyboard, touchpad, or mouse.
在一个实施例中,图10是根据本申请实施例的电子装置的内部结构示意图,如图10所示,提供了一种电子装置,该电子装置可以是服务器,其内部结构图可以如图10所示。该电子装置包括通过内部总线连接的处理器、网络接口、内存储器和非易失性存储器,其中,该非易失性存储器存储有操作系统、计算机程序和数据库。处理器用于提供计算和控制能力,网络接口用于与外部的终端通过网络连接通信,内存储器用于为操作系统和计算机程序的运行提供环境,计算机程序被处理器执行时以实现一种个性化折扣券的智能设计方法,数据库用于存储数据。In one embodiment, FIG. 10 is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application. As shown in FIG. 10 , an electronic device is provided. shown. The electronic device includes a processor connected through an internal bus, a network interface, an internal memory and a non-volatile memory, wherein the non-volatile memory stores an operating system, a computer program and a database. The processor is used to provide computing and control capabilities, the network interface is used to communicate with external terminals through a network connection, and the internal memory is used to provide an environment for the operation of the operating system and computer programs. When the computer program is executed by the processor, a personalized Smart design approach for discount coupons, database is used to store data.
本领域技术人员可以理解,图10中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的电子装置的限定, 具体的电子装置可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 10 is only a block diagram of a part of the structure related to the solution of this application, and does not constitute a limitation on the electronic device on which the solution of this application is applied. The specific electronic device can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,该计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium , when the computer program is executed, it may include the procedures of the embodiments of the above-mentioned methods. Wherein, any references to memory, storage, database or other media used in the various embodiments provided in the present application may include non-volatile and/or volatile memory. Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
本领域的技术人员应该明白,以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。Those skilled in the art should understand that the various technical features of the above-mentioned embodiments can be combined arbitrarily. There is no contradiction in the combination of technical features, and all should be considered as within the scope of the description.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several implementation modes of the present application, and the description thereof is relatively specific and detailed, but it should not be construed as limiting the scope of the patent for the invention. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.

Claims (10)

  1. 一种个性化折扣券的智能设计方法,其特征在于,所述方法包括以下步骤:An intelligent design method for personalized discount coupons, characterized in that the method comprises the following steps:
    获取摄像头拍摄的视频流;Obtain the video stream captured by the camera;
    对所述视频流中的行人和商品执行目标跟踪任务得到跟踪结果;Perform target tracking tasks on pedestrians and commodities in the video stream to obtain tracking results;
    根据所述跟踪结果计算出商品销售状况特征,该商品销售状况特征至少包括商品被浏览次数、商品被咨询次数、商品被拿取次数和商品被加入购物车次数;According to the tracking results, the product sales status feature is calculated, and the product sales status feature at least includes the number of times the product is viewed, the number of times the product is consulted, the number of times the product is taken, and the number of times the product is added to the shopping cart;
    利用所述商品销售状况特征训练回归模型,得到销售额预测模型;Utilize the characteristic training regression model of described commodity sales situation, obtain sales volume prediction model;
    利用所述销售额预测模型预测商品在给定折扣下的销量;Using the sales forecast model to predict the sales volume of the commodity under a given discount;
    根据预测的销量,在利润最大化条件下生成折扣券。According to the predicted sales volume, discount coupons are generated under the condition of maximizing profit.
  2. 根据权利要求1所述的方法,其特征在于,所述商品销售状况特征还包括商品被浏览时长超过预设阈值但未被拿取的次数以及商品被拿取但未被加入购物车的次数。The method according to claim 1, wherein the product sales status feature further includes the number of times the product has been browsed for more than a preset threshold but has not been taken, and the number of times the product has been taken but not added to the shopping cart.
  3. 根据权利要求1所述的方法,其特征在于,在所述获取摄像头拍摄的视频流之后,所述方法还包括:The method according to claim 1, characterized in that, after the acquisition of the video stream captured by the camera, the method further comprises:
    通过图像分类模型识别行人身份,并判断所述行人身份是服务人员还是顾客;Identify the identity of the pedestrian through the image classification model, and judge whether the identity of the pedestrian is a service person or a customer;
    在识别到行人身份为顾客时,生成该顾客的临时ID,并对所述顾客执行行人属性识别任务,并将提取的顾客的年龄区间特征和性别特征加入所述商品销售状况特征,当所述顾客离开拍摄区域,删除所述临时ID。When the identity of a pedestrian is identified as a customer, generate the temporary ID of the customer, and perform the pedestrian attribute identification task on the customer, and add the extracted customer's age interval feature and gender feature to the commodity sales status feature, when the When the customer leaves the shooting area, the temporary ID is deleted.
  4. 根据权利要求3所述的方法,其特征在于,所述通过图像分类模型识别行人身份,并判断所述行人身份是服务人员还是顾客之前,所述方法还包括:The method according to claim 3, wherein, before identifying the identity of the pedestrian through the image classification model and judging whether the identity of the pedestrian is a service personnel or a customer, the method further comprises:
    通过目标检测模型检测所述视频流画面中出现的行人位置的矩形区域,并输出目标检测结果;Detecting the rectangular area of the pedestrian position appearing in the video stream picture through the target detection model, and outputting the target detection result;
    根据所述目标检测结果切割行人图像,并通过质量评价模块对切割后的行人图像进行质量评价;cutting the pedestrian image according to the target detection result, and performing quality evaluation on the cut pedestrian image through the quality evaluation module;
    若所述行人图像不符合所述质量评价模块的预设质量评价标准,则不对该行人进行身份信息识别。If the image of the pedestrian does not conform to the preset quality evaluation standard of the quality evaluation module, the identity information of the pedestrian is not identified.
  5. 根据权利要求1所述的方法,其特征在于,在所述根据所述跟踪结果计算出商品销售状况特征之后,所述方法还包括:The method according to claim 1, characterized in that, after calculating the commodity sales status characteristics according to the tracking results, the method further comprises:
    对没有商品销售状况特征的新商品,通过所述新商品的固有属性寻找最相似的具有商品销售状况特征的商品。For a new product without the characteristics of the sales status of the product, the most similar product with the characteristics of the sales status of the product is found through the inherent attributes of the new product.
  6. 根据权利要求1所述的方法,其特征在于,在所述根据所述跟踪结果计算出商品销售状况特征之后,所述方法还包括:The method according to claim 1, characterized in that, after calculating the commodity sales status characteristics according to the tracking results, the method further comprises:
    根据所述商品销售状况特征计算商品关注度分值;Calculating the commodity attention score according to the characteristics of the commodity sales status;
    根据所述商品的关注度分值和销量筛选商品。Products are screened according to the attention score and sales volume of the products.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述回归模型为线性回归模型、随机森林模型或梯度提升决策树模型。The method according to any one of claims 1-6, wherein the regression model is a linear regression model, a random forest model or a gradient boosting decision tree model.
  8. 根据权利要求1所述的方法,其特征在于,所述在利润最大化条件下生成折扣券包括:The method according to claim 1, wherein said generating discount coupons under profit maximization conditions comprises:
    计算利润最大时的折扣值;Calculation of the discount value at which the profit is maximized;
    调取预设的折扣券模板,该折扣券模板包括折扣券的页面和外观;Call the preset discount coupon template, which includes the page and appearance of the discount coupon;
    将折扣券属性、折扣日期和所述折扣值写入折扣券模板的相应位置,生成所述折扣券,并通过会员系统将所述折扣券发放给客户。Write the discount coupon attribute, discount date and the discount value into the corresponding position of the discount coupon template, generate the discount coupon, and issue the discount coupon to the customer through the membership system.
  9. 一种电子装置,包括存储器和处理器,其特征在于,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行权利要求1至8中任一项所述的个性化折扣券的智能设计方法。An electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to perform the method described in any one of claims 1 to 8 A smart design approach to personalizing discount coupons.
  10. 一种存储介质,其特征在于,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行权利要求1至8中任一项所述的个性化折扣券的智能设计方法。A storage medium, characterized in that a computer program is stored in the storage medium, wherein the computer program is configured to execute the intelligent design of the personalized discount coupon described in any one of claims 1 to 8 when running method.
PCT/CN2021/136416 2021-10-25 2021-12-08 Intelligent design method for personalized discount coupon, and electronic apparatus and storage medium WO2023070844A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111238638.5A CN113919882A (en) 2021-10-25 2021-10-25 Intelligent design method of personalized discount coupon, electronic device and storage medium
CN202111238638.5 2021-10-25

Publications (1)

Publication Number Publication Date
WO2023070844A1 true WO2023070844A1 (en) 2023-05-04

Family

ID=79242609

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/136416 WO2023070844A1 (en) 2021-10-25 2021-12-08 Intelligent design method for personalized discount coupon, and electronic apparatus and storage medium

Country Status (2)

Country Link
CN (1) CN113919882A (en)
WO (1) WO2023070844A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116777571A (en) * 2023-08-22 2023-09-19 山东创恩信息科技股份有限公司 Merchant recommendation and purchase method and system based on big data and Internet platform

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116433273A (en) * 2022-12-16 2023-07-14 广州飞狮数字科技有限公司 Method and device for determining commodity sales discount

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105678591A (en) * 2016-02-29 2016-06-15 北京时代云英科技有限公司 Video-analysis-based commercial intelligent operation decision-making support system and method
CN108648338A (en) * 2018-04-12 2018-10-12 广州杰赛科技股份有限公司 The shopping saving system method, apparatus and vending machine of automatic vending machine
CN109509030A (en) * 2018-11-15 2019-03-22 北京旷视科技有限公司 Method for Sales Forecast method and its training method of model, device and electronic system
CN110287878A (en) * 2019-06-25 2019-09-27 秒针信息技术有限公司 The determination method and device of marketing strategy, storage medium, electronic device
CN112288464A (en) * 2020-10-16 2021-01-29 杭州贝嘟科技有限公司 Commodity recommendation method and device, computer equipment and storage medium
US20210182894A1 (en) * 2019-12-17 2021-06-17 Toshiba Tec Kabushiki Kaisha Sales promotion system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105678591A (en) * 2016-02-29 2016-06-15 北京时代云英科技有限公司 Video-analysis-based commercial intelligent operation decision-making support system and method
CN108648338A (en) * 2018-04-12 2018-10-12 广州杰赛科技股份有限公司 The shopping saving system method, apparatus and vending machine of automatic vending machine
CN109509030A (en) * 2018-11-15 2019-03-22 北京旷视科技有限公司 Method for Sales Forecast method and its training method of model, device and electronic system
CN110287878A (en) * 2019-06-25 2019-09-27 秒针信息技术有限公司 The determination method and device of marketing strategy, storage medium, electronic device
US20210182894A1 (en) * 2019-12-17 2021-06-17 Toshiba Tec Kabushiki Kaisha Sales promotion system
CN112288464A (en) * 2020-10-16 2021-01-29 杭州贝嘟科技有限公司 Commodity recommendation method and device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116777571A (en) * 2023-08-22 2023-09-19 山东创恩信息科技股份有限公司 Merchant recommendation and purchase method and system based on big data and Internet platform
CN116777571B (en) * 2023-08-22 2023-11-10 山东创恩信息科技股份有限公司 Merchant recommendation and purchase method and system based on big data and Internet platform

Also Published As

Publication number Publication date
CN113919882A (en) 2022-01-11

Similar Documents

Publication Publication Date Title
Boone et al. Forecasting sales in the supply chain: Consumer analytics in the big data era
Ngai et al. Machine learning in marketing: A literature review, conceptual framework, and research agenda
WO2019196579A1 (en) Method and apparatus for issuing smart voucher, and method and apparatus for verification and cancellation by using smart voucher
Chen et al. Modeling credit card share of wallet: Solving the incomplete information problem
WO2023070844A1 (en) Intelligent design method for personalized discount coupon, and electronic apparatus and storage medium
CN109582876B (en) Tourist industry user portrait construction method and device and computer equipment
WO2010053194A1 (en) Customer behavior recording device, customer behavior recording method, and recording medium
Chen et al. Real-time smartphone sensing and recommendations towards context-awareness shopping
CN110992097B (en) Processing method and device for price of revenue product, computer equipment and storage medium
KR20160065429A (en) Hybrid personalized product recommendation method
WO2022151923A1 (en) Method and apparatus for processing paperwork for goods, electronic device, medium, and program
KR20150138310A (en) Digital receipts economy
CN114202376A (en) Resource determination method, device, equipment and storage medium
Guo et al. Recommend products with consideration of multi-category inter-purchase time and price
CN111784405A (en) Off-line store intelligent shopping guide method based on face intelligent recognition KNN algorithm
US10672035B1 (en) Systems and methods for optimizing advertising spending using a user influenced advertisement policy
Wang et al. Webpage depth viewability prediction using deep sequential neural networks
Zheng et al. A scalable purchase intention prediction system using extreme gradient boosting machines with browsing content entropy
WO2022142899A1 (en) Store sales data analysis method, apparatus, electronic device, and storage medium
US20150371238A1 (en) Personal holiday imputation from payment card transactional data
Srivastava et al. Analyzing online consumer purchase psychology through hybrid machine learning
Lipianina-Honcharenko et al. Intelligent method for forming the consumer basket
KR102354982B1 (en) Method and apparatus for providing clothing platform service based on big data
Maji et al. Targeted marketing and market share analysis on pos payment data using dw and olap
TWI730387B (en) Integrated system of physical consumption environment and network consumption environment and control method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21962187

Country of ref document: EP

Kind code of ref document: A1