An intelligent shopping recommendation method based on big data
Through the big data intelligent shopping recommendation system, speech recognition and GPS modules are combined with the database to calculate product similarity and price, and plan shopping routes, which solves the product authenticity and safety hazards of online shopping, as well as the difficulty in selecting physical stores and inefficient route planning. problem, enabling a fast and easy shopping experience and efficient product selection.
Patent Information
- Application Number
- CN202011151029.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-24
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-10-24
AI Technical Summary
In e-commerce, online shopping has problems such as difficulty in verifying product authenticity and potential safety hazards. At the same time, when shopping in physical stores, users need to spend a lot of time selecting suitable products, and shopping path planning is inefficient.
Adopt an intelligent shopping recommendation method based on big data, combining microcontroller, speech recognition module, GPS module, database and WIFI module to recognize user needs through speech, calculate product similarity and price, plan optimal shopping routes, and reduce user time and energy waste .
Provide users with a fast and easy shopping experience, narrow the range of choices, improve shopping efficiency and transaction conversion rate, ensure that users can find suitable products faster, and maintain a pleasant mood when shopping.
Smart Images

Figure CN112200636B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data, and in particular to an intelligent shopping recommendation method based on big data. Background Art
[0002] With the continuous development of e-commerce, more and more people are accustomed to online shopping, and the number of visits to physical stores is decreasing. Although online shopping is relatively more convenient and users can buy goods without leaving home, it also involves certain risks: first, users cannot actually and intuitively see the goods when shopping online. For users who lack online shopping experience, it is easy to buy inferior goods. Secondly, online shopping will expose consumers' personal information to an open network environment for a long time, posing a security risk. Shopping in physical stores allows users to see the authenticity of the goods and have an intuitive feeling about the goods, making it easier for users to choose suitable goods.
[0003] However, shopping in physical stores also has certain disadvantages: first, shopping in physical stores in shopping malls has more choices. For users who have difficulty making choices, it takes a long time to buy the products they are satisfied with. Recommendations in a certain direction can help such users buy suitable products faster and easier. Second, when shopping in physical stores in large shopping malls, after determining what you need to buy, how to buy these products more easily and effortlessly becomes a problem that needs to be solved, which requires systematic planning of reasonable routes to help users shop.
[0004] Therefore, people need an intelligent shopping recommendation method based on big data to solve the above problems. Summary of the invention
[0005] The purpose of the present invention is to provide an intelligent shopping recommendation method based on big data to solve the problems raised in the above background technology.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: a smart shopping recommendation method based on big data, comprising: a single chip microcomputer, a voice recognition module, a GPS module, a database, a WIFI module and a display terminal, the output ends of the voice recognition module, the GPS module and the database are connected to the input end of the single chip microcomputer, the output end of the single chip microcomputer is connected to the input end of the WIFI module, the output end of the WIFI module is connected to the input end of the display terminal, the voice recognition module is used to identify keywords to confirm the identity of the user and the category of goods to be purchased, the GPS module is used to locate the location of the goods to be purchased, the database is used to store different information, including the location coordinate information of the required goods, the GPS module and the database are used to plan a shopping route for the user, the WIFI module is used to transmit the product information to the display terminal, the IO port of the single chip microcomputer is used to connect the modules to ensure the normal information transmission between the modules, the GPS module and the database are combined to plan an optimal shopping route for the user, reduce the time and physical strength wasted by the user when shopping, so that the user can maintain a more relaxed and pleasant mood when shopping.
[0007] Furthermore, the information stored in the database includes: keyword information of different users, prices of goods in different categories, location coordinate information of goods in different categories and records of purchases of goods by different users. The information stored in the database provides strong data support for subsequent confirmation of user identities, planning of optimal shopping routes and recommendation of goods based on a comprehensive consideration of similarity and price.
[0008] Furthermore, a smart shopping recommendation method based on big data includes the following steps:
[0009] S1: Voice recognition keywords determine the user's identity;
[0010] S2: Model the products by category;
[0011] S3: Voice recognition of the product category that the user wants to buy and retrieves all product information of this category from the database;
[0012] S4: Calculate similarity to find the n products that best meet the user's needs and sort the products;
[0013] S5: Products have the same similarity: sort the products by price;
[0014] S6: Products with different similarities: sort by similarity;
[0015] S7: Transmit the recommended n items of product information to the display terminal via the WIFI module for the user to choose and purchase.
[0016] The concept of angle cosine is used to measure the similarity between products. Products are sorted mainly according to the size of the similarity. The range of cosine similarity is [-1,1]. The larger the absolute value of the similarity, the more similar the features between the products. The specific information of the products is finally displayed to the user, arranged from large to small in similarity to the products required by the user and from low to high in price, so that users can more clearly understand and decide the products they want to buy.
[0017] Furthermore, in step S1: the user speaks keywords to the voice recognition module, the voice recognition module recognizes the keywords and transmits them to the database, the database stores keyword information of different users, and ultimately determines the identity of the user. Confirming the user's identity helps to retrieve the user's purchase record in the database, and also provides information basis for recommending products to the user.
[0018] Furthermore, in step S2: the products are modeled by category, and the vector set of products in the same category is { , ...}, set the coordinate set of each product vector to {(x1, y1), (x2, y2)...}, where x1 represents the feature value 1 of product 1, y1 represents the feature value 2 of product 1; x2 represents the feature value 1 of product 2, y2 represents the feature value 2 of product 2. For example, if a user needs to buy fruit, feature value 1 can be the vitamin content ratio of the product, feature value 2 can be the sugar content ratio of the product, or other features. The vector coordinates of the two feature values are used to calculate the similarity between products.
[0019] Furthermore, in step S3: the user speaks the command "the category of goods you want to buy" to the voice recognition module, and the voice recognition module recognizes the command and retrieves all the product information of the category from a database, wherein the database stores the prices and vector coordinates of the goods, and the vector coordinates represent the characteristics of the goods. The user does not need to manually input the category of goods he wants to buy, but only needs to issue a command, which will be recognized by the voice recognition module and transmitted to the display terminal by retrieving the information in the database, thereby providing convenience in operation.
[0020] Further, in step S4: using the formula
[0021]
[0022] Calculate the similarity between products, where The cosine value of the angle between vector A and vector B is represented. The concept of the cosine angle is used to measure the similarity between product 1 and product 2. The larger the absolute value of the similarity, the more similar the two products are. The similarity calculated by this method is more in line with reality. The concept of the cosine angle is generally oriented to the user's rating of content, and is used for the user to distinguish the similarity and difference of interests by rating the content. The present invention uses the cosine angle to measure the similarity and difference between the features of different products, thereby further measuring the similarity between products, broadening the application scope of cosine similarity, and at the same time correcting the problem of inconsistent measurement standards that may exist between products.
[0023] Furthermore, in steps S5 to S6: after determining the recommended products, the products need to be sorted. If the product similarities are equal, the products are sorted from low to high according to price; if the product similarities are unequal, the products are sorted from large to small according to the absolute value of the similarities.
[0024] Furthermore, in step S7: the recommended n items of product information are transmitted to the display terminal through the WIFI module for the user to choose to purchase. After receiving the information, the display terminal will display the pictures, prices and similarities of the ordered products.
[0025] Furthermore, after determining the goods to be purchased, it is necessary to plan the shopping route. The steps are as follows: first, the database retrieves the location information of the goods, models the entrance of the mall as the origin, marks the location coordinates of the purchased goods, and then sorts the goods by weight. Then, the optimal route is planned based on the weight of the goods and the length of the journey to purchase the goods. If the total distances of different routes are equal, the optimal path is selected based on the distance to the exit after purchasing all the goods. If the total distances are not equal, the optimal path is selected based on the length of the total distance. The entrance coordinates of the mall are set to (0, 0, 0), the exit coordinates of the mall are set to (a, b, 0), and the location coordinate set of the goods to be purchased is set to {(a1, b1, c1), (a2, b2, c2), (a3, b3, c3)... (a n , b n , c n )}, representing {product 1, product 2, ..., product n} respectively. If there are n items to be purchased, there are a total of Article: {Entrance Product 1 Product 2 ... Product Exit, Entrance Product 2 Product 1 ... Product Exit, ..., Entrance Product Product n-1 ... Product 1 export}, the The routes are planned in the form of permutations and combinations, representing {Route 1, Route 2, ..., Route }, set the total distance of route 1 to L, where:
[0026] ,
[0027] The total distance of subsequent routes is calculated according to the method of Route 1: the total distance is the sum of the superimposed distance between products, the distance from the entrance to the location of the first purchased product, and the distance from the location of the last purchased product to the exit.
[0028] If you need to buy two items, item 1 and item 2, there are two routes: Route 1: Entrance Product 1 Product 2 Exit; Route 2: Entrance Product 2 Product 1 Exit, the total distance of Route 1 is , the total distance of route 2 is , the distance to the exit after purchasing all the goods in route 1 is , the distance to the exit after purchasing all the goods in route 2 is ,exist
[0029]
[0030] In case, if , select route 1, otherwise select route 2; if
[0031] ,
[0032] Choose Route 1, otherwise choose Route 2. Plan a reasonable shopping route based on the weight of the goods and the total distance the user has to walk when shopping, which helps users buy the goods they want more quickly and easily, saving unnecessary time.
[0033] Compared with the prior art, the beneficial effects achieved by the present invention are:
[0034] 1. The intelligent shopping recommendation system of the present invention collects the identity and purchase records of users through a database, provides a certain basis for recommending users to purchase similar products, measures the similarity between products by calculating the similarity between the products to be purchased and similar products, and if the similarities are the same, sorts the recommended products from low to high according to the price; if the similarities are different, sorts the recommended products from large to small according to the similarities, and finally retrieves the ordered recommended product information (the price, similarity, evaluation and location of the product, etc.) through the database (the location of the product is located and marked with coordinates through a GPS module), transmits the recommended product information to the WIFI module through the IO port of the single-chip microcomputer, and then transmits it wirelessly from the WIFI module to the display terminal to display it in front of the user, so that the user can clearly see the product information, which narrows the range of product selection for users who have difficulty in choosing, and stimulates the purchasing desire of users who have difficulty in choosing. Such users can therefore buy the products they want to buy faster, and also improve the cross-selling volume and transaction conversion rate of the products;
[0035] 2. The present invention plans a suitable route for users when shopping in large shopping malls. After the user confirms the goods to be purchased, the database will retrieve the location coordinates of the goods to be purchased, mark the location coordinates of these goods by modeling the shopping mall, and then sort the goods in descending order according to weight. The optimal route is selected by calculating the sum of the straight-line distances from the entrance to the locations of these goods and the straight-line distances from the locations of the goods to the exit. If the sums of the straight-line distances of several routes are the same, the route with the shortest straight-line distance to the exit after buying all the goods is selected as the shopping route; if the sums of the straight-line distances of several routes are different, the route with the smallest sum of the straight-line distances is selected as the shopping route, so as to help users save effort and buy the goods they are satisfied with more quickly, and users can also maintain a more pleasant and relaxed mood when shopping. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0037] Figure 1 It is a system structure diagram of an intelligent shopping recommendation method based on big data of the present invention;
[0038] Figure 2 It is a step diagram of an intelligent shopping recommendation method based on big data of the present invention;
[0039] Figure 3 It is a shopping route planning flow chart of the present invention. DETAILED DESCRIPTION
[0040] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0041] See also Figure 1-3 The present invention provides a technical solution: a smart shopping recommendation method based on big data, comprising: a single-chip microcomputer, a voice recognition module, a GPS module, a database, a WIFI module and a display terminal, the output ends of the voice recognition module, the GPS module and the database are connected to the input end of the single-chip microcomputer, the output end of the single-chip microcomputer is connected to the input end of the WIFI module, the output end of the WIFI module is connected to the input end of the display terminal, the voice recognition module is used to identify keywords to confirm the identity of the user and the category of goods to be purchased, the GPS module is used to locate the location of the goods to be purchased, the database is used to store different information, including the location coordinate information of the required goods, the GPS module and the database are used to plan shopping routes for users, the WIFI module is used to transmit product information to the display terminal, the IO port of the single-chip microcomputer is used to connect various modules to ensure normal information transmission between modules, and the GPS module and the database are combined to plan an optimal shopping route for users, which is convenient for reducing the time and physical strength wasted by users when shopping, so that users can maintain a more relaxed and pleasant mood when shopping.
[0042] The information stored in the database includes: keyword information of different users, prices of goods in different categories, location coordinate information of goods in different categories and purchase records of different users. The information stored in the database is used to provide strong data support for subsequent confirmation of user identity, planning of optimal shopping routes and recommendation of goods based on a comprehensive consideration of similarity and price.
[0043] An intelligent shopping recommendation method based on big data comprises the following steps:
[0044] S1: Voice recognition keywords determine the user's identity;
[0045] S2: Model the products by category;
[0046] S3: Voice recognition of the product category that the user wants to buy and retrieves all product information of this category from the database;
[0047] S4: Calculate similarity to find the n products that best meet the user's needs and sort the products;
[0048] S5: Products have the same similarity: sort the products by price;
[0049] S6: Products with different similarities: sort by similarity;
[0050] S7: Transmit the recommended n items of product information to the display terminal via the WIFI module for the user to choose and purchase.
[0051] The concept of angle cosine is used to measure the similarity between products. Products are sorted mainly according to the size of the similarity. The range of cosine similarity is [-1,1]. The larger the absolute value of the similarity, the more similar the features between the products. The specific information of the products is finally displayed to the user, arranged from large to small in similarity to the products required by the user and from low to high in price, so that users can more clearly understand and decide the products they want to buy.
[0052] In step S1: the user speaks keywords to the voice recognition module, the voice recognition module recognizes the keywords and transmits them to the database. The database stores keyword information of different users, and ultimately determines the identity of the user. Confirming the user's identity facilitates the retrieval of the user's purchase records stored in the database, providing information basis for recommending products to the user.
[0053] In step S2: the products are modeled by category, and the vector set of products in the same category is { , ...}, set the coordinate set of each product vector to {(x1, y1), (x2, y2)...}, where x1 represents the feature value 1 of product 1, y1 represents the feature value 2 of product 1; x2 represents the feature value 1 of product 2, y2 represents the feature value 2 of product 2. For example, if a user wants to buy fruit, feature value 1 can be the vitamin content ratio of the product, feature value 2 can be the sugar content ratio of the product, or other features. The vector coordinates of the product are constructed by two feature values, and the similarity between products is calculated by the concept of cosine similarity, or the similarity can be calculated by adjusting the cosine similarity.
[0054] In step S3: the user says the command "the category of goods you want to buy" to the voice recognition module, and the voice recognition module recognizes the command and retrieves all the product information of the category from the database. The database stores the prices and vector coordinates of the goods, and the vector coordinates represent the characteristics of the goods. The user does not need to manually enter the category of goods he wants to buy. He only needs to issue a command, which will be recognized by the voice recognition module and transmitted to the display terminal by retrieving the information in the database, making it easy to operate.
[0055] In step S4: using the formula
[0056]
[0057] Calculate the similarity between products, where The cosine value of the angle between vector A and vector B is represented. The concept of the cosine angle is used to measure the similarity between product 1 and product 2. The larger the absolute value of the similarity, the more similar the two products are. The similarity calculated by this method is more in line with reality. The concept of the cosine angle is generally oriented to the user's rating of content, and is used for the user to distinguish the similarity and difference of interests by rating the content. The present invention uses the cosine angle to measure the similarity and difference between the features of the products, thereby further measuring the similarity between the products, which is convenient for broadening the application scope of the cosine similarity and correcting the problem of inconsistent measurement standards that may exist between products.
[0058] In steps S5 to S6: after determining the recommended products, the products need to be sorted. If the product similarities are equal, the products are sorted from low to high according to price; if the product similarities are unequal, the products are sorted from large to small according to the absolute value of the similarities.
[0059] In step S7: the recommended n items of product information are transmitted to the display terminal through the WIFI module for the user to choose to purchase. After receiving the information, the display terminal will display the pictures, prices and similarities of the ordered products.
[0060] After deciding on the goods to be purchased, it is necessary to plan the shopping route. The steps are as follows: first, retrieve the location information of the goods from the database, model the entrance of the mall as the origin, mark the location coordinates of the purchased goods, and then sort the goods by weight. Then plan the optimal route based on the weight of the goods and the length of the journey to purchase the goods. If the total distances of different routes are equal, select the optimal path based on the distance to the exit after purchasing all the goods. If the total distances are not equal, select the optimal path based on the length of the total distance. Set the entrance coordinates of the mall to (0, 0, 0), the exit coordinates of the mall to (a, b, 0), and set the location coordinates of the goods to be purchased to {(a1, b1, c1), (a2, b2, c2), (a3, b3, c3)... (a n , b n , c n )}, representing {product 1, product 2, ..., product n} respectively. If there are n items to be purchased, there are a total of Article: {Entrance Product 1 Product 2 ... Product Exit, Entrance Product 2 Product 1 ... Product Exit, ..., Entrance Product Product n-1... Product 1 export}, the The routes are planned in the form of permutations and combinations, representing {Route 1, Route 2, ..., Route }, set the total distance of route 1 to L, where:
[0061] ,
[0062] The total distance of subsequent routes is calculated according to the method of Route 1: the total distance is the sum of the superimposed distance between products, the distance from the entrance to the location of the first purchased product, and the distance from the location of the last purchased product to the exit. Good shopping route planning can help users buy the products they want more quickly and easily, and can save unnecessary time during shopping.
[0063] Example 1: Set the vector coordinates of the required product to (1, 2). The vector coordinates of product 1 are , the vector coordinates of product 2 , according to the formula The similarity between product 1 and the required product (i.e. the cosine value of the angle) is calculated as 0.984, the similarity between product 2 and the required product (i.e. the cosine value of the angle) is calculated as 0.978<0.984, so product 1 is more similar to the required product. Product 1 is recommended first, and product 2 is recommended second.
[0064] Example 2: Set that there are two items to be purchased, that is, n=2, namely item 1 and item 2. Set the entrance coordinates of the mall to (0, 0, 0), the exit coordinates of the mall to (a, b, 0) = (5, 0, 0), the location coordinates of item 1 to (a1, b1, c1) = (1, 1, 1), and the coordinates of item 2 to (a2, b2, c2) = (3, 4, 3). There are two routes: Route 1: Entrance Product 1 Product 2 Exit; Route 2: Entrance Product 2 Product 1 Export, according to the formula The total distance of route 1 is calculated as 11.24, according to the formula The total distance of route 2 is calculated as 14.20>11.24, so the total distance of Route 1 is less than the total distance of Route 2. The distance to buy product 1 first and then product 2 is the shortest, so choose Route 1.
[0065] Finally, it should be noted that the above description is only a preferred example of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An intelligent shopping recommendation method based on big data, comprising: A single-chip computer, a voice recognition module, a GPS module, a database, a WIFI module and a display terminal, wherein the output ends of the voice recognition module, the GPS module and the database are connected to the input end of the single-chip computer, the output end of the single-chip computer is connected to the input end of the WIFI module, the output end of the WIFI module is connected to the input end of the display terminal, the voice recognition module is used to identify keywords to confirm the identity of the user and the category of goods to be purchased, the GPS module is used to locate the location of the goods to be purchased, the database is used to store different information, including the location coordinate information of the required goods, the GPS module and the database are used to plan shopping routes for users, the WIFI module is used to transmit product information to the display terminal, and the IO port of the single-chip computer is used to connect various modules to ensure normal information transmission between modules; After deciding on the goods to be purchased, it is necessary to plan the shopping route. The steps are as follows: first, retrieve the location information of the goods from the database, model the entrance of the mall as the origin, mark the location coordinates of the purchased goods, and then sort the goods by weight. Then plan the optimal route based on the weight of the goods and the length of the journey to purchase the goods. If the total distances of different routes are equal, select the optimal path based on the distance to the exit after purchasing all the goods. If the total distances are not equal, select the optimal path based on the length of the total distance. Set the entrance coordinates of the mall to (0, 0, 0), the exit coordinates of the mall to (a, b, 0), and set the location coordinates of the goods to be purchased to {(a1, b1, c1), (a2, b2, c2), (a3, b3, c3)...(a n , b n , c n )}, representing {product 1, product 2, ..., product n} respectively. If there are n items to be purchased, there are a total of Article: {entry → commodity 1 → commodity 2 → ... → commodity n → export, entry → commodity 2 → commodity 1 → ... → commodity n → export, ..., entry → commodity n → commodity n-1 → ... → commodity 1 → export}, the The routes are planned in the form of permutations and combinations, representing Set the total distance of route 1 to L, where: The total distance of subsequent routes is calculated according to the method of Route 1: the total distance is the sum of the superimposed distance between products, the distance from the entrance to the location of the first purchased product, and the distance from the location of the last purchased product to the exit.
2. The intelligent shopping recommendation method based on big data according to claim 1, characterized in that: The information stored in the database includes: keyword information of different users, prices of commodities of different categories, location coordinate information of commodities of different categories and purchase records of commodities of different users.
3. The method for intelligent shopping recommendation based on big data according to claim 1, comprising the following steps: S1: Voice recognition keywords determine the user's identity; S2: Model the products by category; S3: Voice recognition of the product category that the user wants to buy and retrieving all product information of this category from the database; S4: Calculate similarity to find the n products that best meet the user's needs and sort the products; S5: Products have the same similarity: sort the products by price; S6: Products with different similarities: sort by similarity; S7: Transmit the recommended n items of product information to the display terminal via the WIFI module for the user to choose and purchase.
4. The method for intelligent shopping recommendation based on big data according to claim 3, characterized in that: In step S1: the user speaks a keyword to the voice recognition module, and the voice recognition module recognizes the keyword and transmits it to the database. The database stores keyword information of different users, and ultimately determines the identity of the user.
5. The intelligent shopping recommendation method based on big data according to claim 3, characterized in that: In step S2: the products are modeled by category, and the vector set of products in the same category is Set the coordinate set of each product vector to {(x1, y1), (x2, y2)...}, where x1 represents the feature value 1 of product 1, y1 represents the feature value 2 of product 1; x2 represents the feature value 1 of product 2, y2 represents the feature value 2 of product 2.
6. The intelligent shopping recommendation method based on big data according to claim 3, characterized in that: In step S3: the user speaks the command "category of goods you want to buy" to the voice recognition module, and the voice recognition module recognizes the command and retrieves all the goods information of this category from the database, which stores the prices and vector coordinates of the goods, and the vector coordinates represent the characteristics of the goods.
7. The intelligent shopping recommendation method based on big data according to claim 3 or 5, characterized in that: In step S4: using the formula Calculate the similarity between products, where It represents the cosine value of the angle between vector A and vector B. The concept of cosine of the angle is used to measure the similarity between product 1 and product 2. The larger the absolute value of the similarity, the more similar the two products are.
8. The method for intelligent shopping recommendation based on big data according to claim 3, characterized in that: In steps S5 to S6: after determining the recommended products, the products need to be sorted. If the product similarities are equal, the products are sorted from low to high according to price; if the product similarities are unequal, the products are sorted from large to small according to the absolute value of the similarities.
9. The intelligent shopping recommendation method based on big data according to claim 3, characterized in that: In step S7: the recommended n items of product information are transmitted to the display terminal through the WIFI module for the user to choose to purchase. After receiving the information, the display terminal will display the pictures, prices and similarities of the ordered products.
