Mixed weighing AI loss prevention method based on stacking factor generalization multi-category identification

The AI ​​loss prevention method of multi-category recognition is generalized by stacking factors, and deep learning algorithms are used to identify product characteristics, which solves the problem of price errors caused by mixed weighing of similar products in the retail industry, improves weighing efficiency and accuracy, and reduces losses.

CN118628187APending Publication Date: 2024-09-10HANGZHOU LIUXIAOXIANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410600829.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

During the weighing process in the retail industry, similar goods are mixed and weighed, resulting in price errors and losses. The existing technology is inefficient and cannot effectively identify changes in small categories, resulting in poor segmentation and recognition results.

Method used

The mixed weighing AI loss prevention method based on generalization of multi-category recognition by stacking factors is adopted, and deep learning algorithms are used to identify product characteristics, calculate stacking factors and contribution factors, identify mixed weighing and provide alarms and prompts to assist cashiers in re-weighing.

Benefits of technology

Without affecting the weighing of large categories, it can identify mixed weighings of different prices, reduce losses, improve weighing efficiency, solve errors caused by changes in small categories, and improve the recognition effect of product stacking.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention relates to a mixed weighing AI loss prevention method based on stacking factor generalization multi-category identification, which belongs to the technical field of retail industry AI, and comprises the following operation steps: step 1, a customer business level needs to issue a commodity structure table, and the information of the commodity structure table comprises a commodity bar code skucode, a commodity first-level bar code spucode, a store number shopcode and a price unitrice; and 2, the server side pulls the commodity information and then issues the commodity information to the equipment side. And step 3, the device end completes entry construction of the commodity feature space according to the commodity information. And 4, the server side is responsible for completing the realization of the identification process and the realization of the form of the damage-prevention product. And 5, displaying the loss prevention logic by the client, and completing the output of a loss prevention report. The system can identify mixed weighs of different prices, gives an alarm and a prompt, and assists a cashier in weighing again. By identifying changes of the small categories, loss caused by cashier errors due to untimely changes is solved. The problem that the segmentation recognition effect is poor due to the fact that commodities are seriously stacked during category mixing and weighing is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of AI technology in the retail industry, and in particular to a mixed AI loss prevention method based on generalized multi-category identification of stacking factors. Background Art

[0002] In the field of retail weighing, such as snack weighing, there are many commodities that belong to a certain category A. Category A commodities contain multiple small categories with different appearances. The prices of Category A commodities are the same. Similarly, there are multiple categories B, and commodities in different categories require separate price calculation.

[0003] During the actual weighing and settlement process, cashiers / weighers may have difficulty remembering and may weigh different categories of goods together. For example, if category A and category B goods are mixed, high-priced goods may be sold at low prices, causing losses to the store. If low-priced goods are sold at high prices, serious customer complaints may result.

[0004] The weighers are required to weigh the items individually, and all Class A products are weighed individually. Disadvantages:

[0005] 1) Large categories of goods are weighed according to small categories, which leads to low weighing efficiency.

[0006] 2) During peak periods, we still use large-scale weighing and selling methods, and cannot guarantee the existence of mixed scales.

[0007] 3) There are frequent changes in small items in large categories of goods, such as a in category A is changed to a small item in category B. Due to the delay in notification of the change, a is still sold as a category A product. This kind of mixed weighing will also result in a lot of losses.

[0008] We call price range products when we define products of different shapes and colors as products of the same price. Examples of price range products are as follows: a type of beef jerky with three flavors can be in one price range; products from the same supplier, including bread, dried fruits, candy, etc., are uniformly defined as products close to discounts in one price range for the convenience of sales, and are priced uniformly, such as a variety of fruits and vegetables. Summary of the invention

[0009] The present invention mainly solves the deficiencies in the prior art and provides an AI loss prevention method for mixed weighing based on generalized multi-category identification of stacking factors. Under the premise of not affecting the weighing of large categories, it can identify mixed weighing of different prices, give alarms and prompts, and assist the cashier in re-weighing. By identifying changes in small categories, it solves the loss caused by cashier errors due to untimely changes. It solves the problem of poor segmentation and recognition effect caused by severe stacking of goods when mixed categories are weighed.

[0010] The above technical problems of the present invention are mainly solved by the following technical solutions:

[0011] A mixed AI loss prevention method based on stacking factor generalization multi-category recognition includes the following steps:

[0012] Step 1: The customer business level needs to issue a product structure table, which includes the product barcode skucode, product level 1 barcode spucode, store number shopcode and price unitprice.

[0013] Step 2: The server pulls the product information and sends it to the device.

[0014] Step 3: The device completes the entry construction of the product feature space based on the product information.

[0015] Step 4: The server is responsible for completing the identification process and the realization of the loss prevention product form.

[0016] Step 5: The client displays the loss prevention logic and completes the loss prevention report output.

[0017] As a preferred method, the product features are constructed in a space by first creating a feature space header. Then the customer on the device manually completes the search and photo-taking process. The device calls the AI ​​recognition algorithm to complete the feature extraction and enter the feature space. After the entry is completed, the feature file is returned to the server.

[0018] Preferably, the AI ​​recognition algorithm first takes a picture with a camera, then sends the picture to a deep learning network, and obtains the value of the last layer of featuremap as the feature of the picture.

[0019] As a preference, the server-side multiple categories are segmented, and 10,000 images of weighed products are selected as training sample images. Each training sample image is defined with the following two parameters: γ1 and γ2, where: γ1 is the stacking factor, with a value range of 0, 0.5 and 1, to obtain linear training samples; γ2 is the feature contribution factor, with a value range of 0, 0.5 and 1, to obtain linear training samples.

[0020] Preferably, for two parameters A and B, when the overlap rate between A and B is 0, the stacking factor γ1 is 0, and the contribution factors of the two are 1; when B is included in A, the overlap rate is 1, the stacking factor γ1 of A is 1, the stacking factor of B is 1, and the contribution factors are: B is 1, and A is 0; A and B partially overlap, the overlap rate is a, the stacking factors are a, and the contribution factors are 1 / (1-a).

[0021] The overlap rate refers to the degree of overlap between two products. The contribution factor refers to the degree of influence of the current product on the identification feature. The overlap rate corresponds to the stacking factor. The higher the overlap rate, the greater the stacking factor and the higher the contribution factor.

[0022] As a preference, the labels of the deep learning algorithm need to be discrete, so the labels of the training samples are defined as discrete values. By simplifying the definition of the labels, three categories are distinguished. After the network training is completed, the label scores will automatically form continuous values, so that the overlap rates and contribution factors at different stacking levels are processed as continuous values. When A and B partially overlap, a is uniformly set to 0.5.

[0023] As a preferred method, training samples are obtained and network training is performed according to the segmented network; the training strategy is to lower the learning rate of the upper half network to 0.00001 and the learning rate of the lower half to 0.001. The upper half network is trained in two stages with parameter suppression.

[0024] The purpose of training is to obtain network parameters. Because in actual use, the network needs to be used to predict the stacking factor and contribution factor. The training samples are the pictures and labels prepared by the server to complete the recognition process and the form of the anti-loss product. The segmented network structure is used for training to obtain the network model.

[0025] As a preferred embodiment, the mixed loss prevention logic output is that if all skucodes belong to the same spucode, there is no confusion; if γ1=TF.layers.feature(fc1) is calculated and γ1>0.5, a mixed alarm is triggered; if γ1<0.5 or γ1=0.5, no alarm is triggered.

[0026] As a preferred option, the anti-loss logic displayed on the client side will prompt that when there are goods of various prices on the scale, a pop-up window will be displayed to remind you that there is mixed weighing in the current weighing, please clean up the goods; a display box will be displayed, with different goods outlined in different colors; click to lock, and click to enter the unlock password.

[0027] The present invention can achieve the following effects:

[0028] The present invention provides a mixed weighing AI loss prevention method based on generalized multi-category identification of stacking factors. Compared with the prior art, it can identify mixed weighing of different prices without affecting the weighing of large categories, give alarms and prompts, and assist the cashier to re-weigh. By identifying changes in small categories, it can solve the loss caused by cashier errors due to untimely changes. It can also solve the problem of poor segmentation and recognition effect caused by severe stacking of goods during mixed weighing of categories. DETAILED DESCRIPTION

[0029] The technical solution of the invention is further specifically described below through embodiments.

[0030] Embodiment: A mixed AI loss prevention method based on stacking factor generalization multi-category identification includes the following steps:

[0031] Step 1: The customer business level needs to issue a product structure table, which includes the product barcode skucode, product level 1 barcode spucode, store number shopcode and price unitprice.

[0032] Step 2: The server pulls the product information and sends it to the device.

[0033] Step 3: The device completes the entry construction of the product feature space based on the product information.

[0034] The product features are used to build a space. First, the feature space header is created. Then, the customer on the device manually completes the search and photo-taking process. The device calls the AI ​​recognition algorithm. The AI ​​recognition algorithm first takes a picture with the camera, and then sends the picture to the deep learning network to obtain the value of the last layer of featuremap as the feature of the picture. The feature is extracted and entered into the feature space. After the entry is completed, the feature file is sent back to the server.

[0035] Step 4: The server is responsible for completing the identification process and the realization of the loss prevention product form.

[0036] The server-side multi-category is segmented, and 10,000 weighed product images are selected as training sample images. Each training sample image is defined with the following two parameters: γ1 and γ2, where γ1 is the stacking factor, with a value range of 0, 0.5 and 1, to obtain linear training samples; γ2 is the feature contribution factor, with a value range of 0, 0.5 and 1, to obtain linear training samples. Two parameters A and B, when the overlap rate between A and B is 0, the stacking factor γ1 is 0, and the contribution factor of both is 1; when B is included in A, the overlap rate is 1, the stacking factor γ1 of A is 1, the stacking factor of B is 1, and the contribution factor: B is 1, A is 0; A and B partially overlap, the overlap rate is a, the stacking factors are a, and the contribution factor is 1 / (1-a).

[0037] The labels of deep learning algorithms need to be discrete, so the labels of training samples are defined as discrete values. By simplifying the definition of labels, three categories are distinguished. After the network training is completed, the label scores will automatically form continuous values, so that the overlap rates and contribution factors under different stacking degrees are processed as continuous values. When A and B partially overlap, a is uniformly set to 0.5.

[0038] Obtain training samples and perform network training according to the segmented network; the training strategy is to lower the learning rate of the upper half network to 0.00001 and the learning rate of the lower half to 0.001. Perform parameter suppression two-stage training on the upper half network.

[0039] Step 5: The client displays the loss prevention logic and completes the loss prevention report output.

[0040] Mixed weighing and loss prevention logic output, if all skucodes belong to the same spucode, there is no mixed weighing; calculate γ1 = TF.layers.feature(fc1), γ1>0.5, then mixed weighing alarm; γ1<0.5 or γ1=0.5, then no alarm. Loss prevention logic displayed by the client When there are multiple prices of goods on the scale, a pop-up window will be displayed to remind you that there is mixed weighing in the current weighing, please clean up the goods; display box, outline different goods with different colors; click to lock, click to enter the unlock password.

[0041] In summary, this mixed weighing AI loss prevention method based on generalized multi-category identification of stacking factors can identify mixed weighing of different prices without affecting the weighing of large categories, give alarms and prompts, and assist cashiers in re-weighing. By identifying changes in small categories, it can solve the loss caused by cashier errors due to untimely changes. It can also solve the problem of poor segmentation and recognition caused by severe stacking of goods when weighing mixed categories.

[0042] The above description is only a specific embodiment of the present invention, but the structural features of the present invention are not limited thereto. Any changes or modifications made by any technician in the field of the present invention are included in the patent scope of the present invention.

Claims

1. A mixed AI loss prevention method based on stacking factor generalization multi-category identification, characterized by The steps are as follows: Step 1: The customer business level needs to issue a product structure table, which includes product barcode skucode, product level 1 barcode spucode, store number shopcode and price unitprice; Step 2: The server pulls the product information and sends it to the device; Step 3: The device completes the entry construction of the product feature space based on the product information; Step 4: The server is responsible for completing the identification process and the realization of the loss prevention product form; Step 5: The client displays the loss prevention logic and completes the loss prevention report output.

2. The mixed AI loss prevention method based on stacking factor generalization multi-category identification according to claim 1 is characterized by: The product features are used to build a space. First, a feature space header is created. Then, the customer on the device manually completes the search and photo-taking process. The device calls the AI ​​recognition algorithm to extract the features and enter them into the feature space. After the entry is completed, the feature file is sent back to the server.

3. The mixed AI loss prevention method based on stacking factor generalization multi-category identification according to claim 2 is characterized by: The AI ​​recognition algorithm first takes a picture with a camera, then sends the picture to a deep learning network, and obtains the value of the last layer of featuremap as the feature of the picture.

4. The mixed AI loss prevention method based on stacking factor generalization multi-category identification according to claim 1 is characterized by: The server-side multi-category is segmented, and 10,000 weighed product images are selected as training sample images. Each training sample image is defined with the following two parameters: γ1 and γ2, where γ1 is the stacking factor, with a value range of 0, 0.5 and 1, to obtain linear training samples; γ2 is the feature contribution factor, with a value range of 0, 0.5 and 1, to obtain linear training samples.

5. The mixed AI loss prevention method based on stacking factor generalized multi-category identification according to claim 4 is characterized by: For two parameters A and B, when the overlap rate between A and B is 0, the stacking factor γ1 is 0, and the contribution factors of both are 1; when B is included in A, the overlap rate is 1, the stacking factor γ1 of A is 1, the stacking factor of B is 1, and the contribution factors are: B is 1, and A is 0; A and B partially overlap, the overlap rate is a, the stacking factors are a, and the contribution factors are 1 / (1-a).

6. The mixed AI loss prevention method based on stacking factor generalized multi-category identification according to claim 5 is characterized by: The labels of deep learning algorithms need to be discrete, so the labels of training samples are defined as discrete values. By simplifying the definition of labels, three categories are distinguished. After the network training is completed, the label scores will automatically form continuous values, so that the overlap rates and contribution factors under different stacking degrees are processed as continuous values. When A and B partially overlap, a is uniformly set to 0.

5.

7. The mixed AI loss prevention method based on stacking factor generalization multi-category identification according to claim 4 is characterized by: Obtain training samples and perform network training according to the segmentation network; The training strategy is to lower the learning rate of the first half network to 0.00001 and the learning rate of the second half to 0.

001. The first half network is trained in two stages with parameter suppression.

8. The mixed AI loss prevention method based on stacking factor generalization multi-category identification according to claim 1 is characterized by: Mixed loss prevention logic output: if all skucodes belong to the same spucode, there is no confusion; if γ1=TF.layers.feature(fc1) is calculated and γ1>0.5, a mixed alarm is triggered; if γ1<0.5 or γ1=0.5, no alarm is triggered.

9. The mixed AI loss prevention method based on stacking factor generalized multi-category identification according to claim 8 is characterized by: The anti-loss logic displayed on the client: When there are commodities of various prices on the scale, a pop-up window will be displayed to remind you that there is mixed weighing and you are requested to clean up the commodities. The display box will outline different commodities in different colors. Click to lock and you need to enter the unlock password.