Method and device for converting product into SPU

Through multiple matching methods, the product attribute feature set is matched, the background category attribute information is determined, and the product is automatically converted into SPU, which solves the problem of repeated attribute configuration and complicated process during product conversion to SPU, and improves conversion efficiency.

CN118535930APending Publication Date: 2024-08-23CHINA TELECOM CORP LTD

Patent Information

Application Number
CN202410684627.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the existing technology, during the process of product conversion to SPU, there are problems such as repeated attribute configuration and complicated configuration process, resulting in low conversion efficiency.

Method used

The multiple matching method is used to match the product attribute feature set, and the priority order is used to determine whether the matching constraints of the matching process are met, and the background category attribute information is determined, and based on this, the product is converted into an SPU to simplify the configuration process.

Benefits of technology

It simplifies the repeated configuration of fusion attributes, shortens the configuration process, improves conversion efficiency, and simplifies the originally complex manual configuration content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535930A
    Figure CN118535930A
Patent Text Reader

Abstract

The invention discloses a method and device for converting a product into an SPU. The method comprises the following steps: acquiring a first product attribute feature set of at least one first product attribute of a first product; for each first product attribute, a multi-matching method is adopted to perform matching processing on the first product attribute feature set, and first background category attribute information of the first product attribute is determined, according to the multi-matching method, whether the first product attribute feature set meets the matching constraint condition of the corresponding matching process or not is sequentially judged according to the priority order, if yes, the corresponding matching process is executed, and if not, the next-level matching process is executed; and converting the first product into an SPU based on the first product attribute feature set of each first product attribute and the first background category attribute information, and determining SPU information of the SPU. According to the method and the device, the technical problem of relatively low conversion efficiency caused by repeated attribute configuration and complex configuration process in the SPU conversion process of the product in the related technology is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of IT and software development, and more specifically, to a method and device for converting a product into an SPU. Background Art

[0002] With the widespread application of the Internet, operators currently have two systems: the Internet sales system and the traditional production and sales system, and the specifications of these two systems complement each other. Currently, these two systems are each configured with corresponding management processes, so the specification management and processes of the two systems are separated, but from the perspective of the entire process, there is an overlap in the specifications of these two systems, that is, the new sales system and the traditional sales system are activated through the same product. In response to this situation, the relevant technology is to first configure the SPU (Standard Product Unit) of the Internet sales system and the products of the traditional production and sales system in parallel, and then configure the mapping relationship between the SPU and the product, such as Figure 1 However, this method still has the following problems:

[0003] (1) When configuring product attributes on the SPU, a set of fusion attributes is configured again, resulting in repeated configuration processes;

[0004] (2) The mapping relationship between products and SPUs is complex and there is cross-mapping. Therefore, after the products and SPUs are configured, the mapping relationship between the configured products and the configured SPUs is complex and the configured mapping results may not fully meet the business requirements.

[0005] (3) Products and SPUs come from two different systems, so configuration personnel are required to be very familiar with both systems. This method is difficult to be widely applied to the current operation and management mechanism.

[0006] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0007] The embodiments of the present application provide a method and device for converting a product into an SPU, so as to at least solve the technical problem that in the process of converting a product into an SPU in the related art, the attribute configuration is repeated and the configuration process is complicated, resulting in low conversion efficiency.

[0008] According to one aspect of an embodiment of the present application, a method for converting a product into an SPU is provided, including: obtaining a first product attribute feature set of at least one first product attribute of a first product; for each first product attribute, using a multiple matching method to match the first product attribute feature set, and determining first background category attribute information of the first product attribute, wherein the multiple matching method is to determine in order of priority whether the first product attribute feature set satisfies the matching constraint conditions of the corresponding matching process, and if so, execute the corresponding matching process, otherwise execute the next level matching process; based on the first product attribute feature set and the first background category attribute information of each first product attribute, convert the first product into an SPU, and determine the SPU information of the SPU.

[0009] Optionally, the matching process at least includes: a first-level matching process, a second-level matching process, and a third-level matching process, the first background category attribute information at least includes: a first background category attribute, a first background category attribute category, and a first background category attribute value, and the first product attribute feature set includes at least: a product attribute feature value, wherein a multiple matching method is used to match the first product attribute feature set to determine the first background category attribute information of the first product attribute, including: judging whether the first product attribute feature set satisfies a first matching constraint condition of the first-level matching process, wherein the first matching constraint condition is used to characterize that the first background category attribute corresponding to the first background category attribute category in a preset database exists the first product attribute; when the first product attribute feature set satisfies the first matching constraint condition, determining the first background category attribute and the first background category attribute category of the first product attribute, and determining the first background category attribute value of the first product attribute based on the first background category attribute and the product attribute feature value; when the first product attribute feature set does not satisfy the first matching constraint condition, judging whether the first product attribute feature set satisfies a second matching constraint condition of the second-level matching process, wherein the second matching constraint condition is used to characterize that the first product attribute exists in the first background category attribute corresponding to the first background category attribute category in the preset database; The matching probability between a first background category attribute corresponding to a background category attribute category and a first product attribute is not less than a preset probability threshold; when the first product attribute feature set satisfies the second matching constraint condition, the first background category attribute and the first background category attribute category of the first product attribute are determined, and the first background category attribute value of the first product attribute is determined based on the first background category attribute and the product attribute feature value; when the first product attribute feature set does not meet the second matching constraint condition, the first product attribute feature set is analyzed using a pre-trained background category attribute classification model to determine the first background category attribute category of the first product attribute, and the first background category attribute of the first product attribute is determined based on the first background category attribute category, wherein the background category attribute classification model is obtained by iterative training based on multiple groups of sample data, and each group of training data includes: a second product attribute feature set of the second product attribute and a second background category attribute category corresponding to the second product attribute; the first background category attribute value corresponding to the first product attribute is determined based on the first background category attribute and the product attribute feature value; wherein at least one type of background category attribute category is stored in the database, and the background category attribute category includes at least one of the following: functional attributes, sales attributes, and ordering attributes.

[0010] Optionally, the second matching constraint condition includes: for each type of background category attribute category in the database, determining a first number of background category attributes belonging to the background category attribute category and a second number of first background category attributes that match the first product attribute, and determining a matching probability between the first product attribute and the background category attribute category based on the first number and the second number; determining the second matching constraint condition that the matching probability between the first background category attribute of the first background category attribute category in the database and the first product attribute is not less than a probability threshold.

[0011] Optionally, the training process of the background category attribute classification model includes: constructing an initial classification model; obtaining multiple groups of sample data and performing preprocessing operations on the multiple groups of sample data; iteratively training the initial classification model using the processed multiple groups of sample data to obtain the background category attribute classification model.

[0012] Optionally, the initial classification model is iteratively trained using the processed multiple groups of sample data to obtain a background category attribute classification model, including: for each group of sample data after processing, using the initial classification model to analyze the second product attribute feature set of the second product attribute to obtain a predicted background category attribute category corresponding to the second product attribute; determining the error between the second background category attribute category and the predicted background category attribute category in each group of sample data, and adjusting the model parameters of the initial classification model based on the error to obtain a background category attribute classification model.

[0013] Optionally, the second product attribute feature set of the second product attribute is analyzed using the initial classification model to obtain a predicted background category attribute category corresponding to the second product attribute, including: determining a feature weight value of each second product attribute feature in the second product attribute feature set, wherein the higher the degree of influence of the second product attribute feature on the second background category attribute category, the greater the corresponding feature weight value; based on the feature weight value of each second product attribute feature, calculating the distance value between the second product attribute and each product attribute in a preset product attribute set, and determining multiple target product attributes from the product attribute set whose distance values ​​are not greater than a preset distance threshold; determining the background category attribute category corresponding to each target product attribute, and determining a predicted background category attribute category based on the background category attribute categories of multiple target product attributes.

[0014] Optionally, the first product attribute feature set also includes: first product basic information, SPU information includes at least: SPU basic information, SPU attributes, SPU attribute values, wherein the first product is converted into SPU based on the first product attribute feature set and the first background category attribute information of each first product attribute, and the SPU information of the SPU is determined, including: converting the first product basic information into the SPU basic information of the SPU according to a preset conversion rule; determining the SPU attributes and SPU attribute values ​​of the SPU based on the first background category attributes and the first background category attribute values ​​of each first product attribute.

[0015] According to another aspect of an embodiment of the present application, a device for converting a product into an SPU is also provided, including: an acquisition module, used to obtain a first product attribute feature set of at least one first product attribute of a first product; a determination module, used to match the first product attribute feature set for each first product attribute using a multiple matching method, and determine the first background category attribute information of the first product attribute, wherein the multiple matching method is to determine in order of priority whether the first product attribute feature set satisfies the matching constraint conditions of the corresponding matching process, and if so, execute the corresponding matching process, otherwise execute the next level matching process; a conversion module, used to convert the first product into an SPU based on the first product attribute feature set and the first background category attribute information of each first product attribute, and determine the SPU information of the SPU.

[0016] According to another aspect of an embodiment of the present application, a non-volatile storage medium is also provided, which includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the above-mentioned product conversion SPU method by running the computer program.

[0017] According to another aspect of an embodiment of the present application, a computer program product is also provided. The computer program product includes a stored computer program, wherein when the computer program is executed by a processor, the above-mentioned product conversion SPU method is implemented.

[0018] In the embodiment of the present application, the product SPU conversion system uses a multiple matching method to match and analyze the first product attribute feature set of each first product attribute to determine the first background category attribute information of each first product attribute; the first product attribute feature set and the first background category attribute information of each first product attribute are used to convert the first product into an SPU, and the SPU information of the SPU is determined to achieve automatic conversion of the product into an SPU. In the entire conversion process, the repeated configuration of the fusion attributes is simplified, the configuration process is effectively shortened, and the originally complex manual configuration content is simplified, thereby solving the technical problem that the related technology repeats the attribute configuration and the configuration process is complex during the product conversion SPU process, resulting in low conversion efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0020] Figure 1 It is a schematic diagram of a process of an optional product conversion SPU of the related art;

[0021] Figure 2 It is a hardware structure block diagram of a computer terminal for implementing a method for product conversion SPU according to an optional embodiment of the present application;

[0022] Figure 3 is a flow chart of an optional method for converting a product SPU according to an embodiment of the present application;

[0023] Figure 4 It is a structural schematic diagram of an optional product conversion SPU device according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] In addition, the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set up between this system and the relevant user or organization. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.

[0027] In order to better understand the embodiments of the present application, the technical terms involved in the embodiments of the present application are explained as follows:

[0028] Product: A unit of physical or communication functions, information, or services that an enterprise can sell to customers using the enterprise's resources.

[0029] SPU (Standard Product Unit): It is the smallest unit of commodity information aggregation, a set of reusable and easily searchable standardized information, which describes the characteristics of a product. In layman's terms, commodities with the same attribute values ​​and characteristics can be called an SPU. It is often used for commodity classification and product display in online stores.

[0030] CSPU (Child Standard Product Unit) is a description of the common characteristic attributes of a certain standardized product unit and includes sales attributes. It is accurate to the specific sales specifications and prices based on SPU. For example: Model A mobile phone with 256G memory.

[0031] Backend categories, also known as industrial categories, are key components of the basic information of products and are closely related to the purchase, sales and inventory management of e-commerce systems.

[0032] Example 1

[0033] At present, the process of converting products to SPU is as follows: Figure 1 As shown, including:

[0034] Step 1: Fusion attribute configuration. That is, configure the common attributes of multiple products, such as brand, model, color, size, etc.

[0035] Step 2: Backend category configuration. That is, creating and managing the product classification structure;

[0036] Step 3: Backend category attribute configuration. That is, setting specific attributes for different backend categories to adapt to the characteristics of different products;

[0037] Step 4: SPU configuration. Enter the basic information and attribute information of each product to create a corresponding SPU for each product;

[0038] Step 5: CSPU configuration. This means further refinement for each product to create a CSPU.

[0039] Step 6: SPU product mapping relationship configuration. That is, create the relationship between SPU and product to ensure the consistency and accuracy of product information.

[0040] However, in the above conversion process, since the configuration process of the product and the configuration process of the SPU are separated from each other, the configuration personnel need to configure a set of fusion attributes when configuring the SPU, resulting in duplication of attribute configuration work and high requirements for the configuration personnel during the configuration process; in addition, due to the complex mapping relationship between the product and the SPU, the configuration mapping relationship between the product and the SPU after parallel configuration is complex, and the mapping result may not meet the preset business requirements. In order to solve this problem, the present application provides a relevant solution in the embodiment, which is described in detail below.

[0041] According to an embodiment of the present application, an embodiment of a method for converting a product SPU is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0042] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 2 The hardware structure block diagram of a computer terminal (or mobile device) for implementing the method of product conversion SPU is shown. Figure 2 As shown, the computer terminal 20 (or mobile device 20) may include one or more (202a, 202b, ..., 202n are used to illustrate) processors 202 (the processor 202 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 204 for storing data, and a transmission device 206 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 2 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 2 More or fewer components as shown, or with Figure 2Different configurations are shown.

[0043] It should be noted that the one or more processors 202 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 20 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0044] The memory 204 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the method for converting the product SPU in the embodiment of the present application. The processor 202 executes various functional applications and data processing by running the software programs and modules stored in the memory 204, that is, the method for converting the product SPU of the above-mentioned application is realized. The memory 204 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 204 may further include a memory remotely arranged relative to the processor 202, and these remote memories may be connected to the computer terminal 20 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0045] The transmission device 206 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 20. In one example, the transmission device 206 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 206 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0046] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 20 (or mobile device).

[0047] In the above operating environment, Figure 3 is a flow chart of an optional method for converting a product into an SPU according to an embodiment of the present application, such as Figure 3 As shown, the method at least includes steps S302-S306, wherein:

[0048] Step S302: obtaining a first product attribute feature set of at least one first product attribute of a first product.

[0049] In the technical solution provided in step S302, product attributes generally refer to specific features or qualities of a product, and therefore, the first product attributes include but are not limited to: basic product information (including product name, product description, management level, etc.), product category, product price, product image, product details, logistics information, inventory information, etc. The first product attribute feature set includes but is not limited to: product attribute type, product attribute value, product attribute value type, product attribute value quantity, whether to display, whether to read-only, whether to be required, applicable actions, etc. Among them, the above-mentioned product attribute types include but are not limited to: appearance attributes (including but not limited to color, shape, size, etc.), material attributes (including but not limited to metal, plastic, glass, etc.), quality attributes (including but not limited to durability, reliability, safety, etc.), functional attributes (including but not limited to performance, use, compatibility, etc.), price attributes (including but not limited to price range, discount, promotional activities), technical attributes (including but not limited to innovation, technical parameters, etc.), etc.; and product attribute value types include: text (Text), numeric (Numeric), optional value (Select), Boolean (Boolean), date (Data), image (Image), video (Video), rating (Rating), tag (Tag), specifications (Specifications), brand (Brand), etc.

[0050] Step S304: for each first product attribute, a multiple matching method is used to perform matching processing on the first product attribute feature set to determine the first background category attribute information of the first product attribute.

[0051] In the technical solution provided in step S304, the above-mentioned multiple matching method refers to determining in sequence according to a preset priority order whether the first product attribute feature set of the first product attribute satisfies the matching constraint condition of the matching process corresponding to the priority, and if so, executing the matching process, otherwise executing the matching process corresponding to the next priority. Therefore, the product SPU conversion system can match the first product attribute feature set of each first product attribute through the above-mentioned multiple matching method to obtain the first background category attribute information of each first product attribute.

[0052] Step S306: convert the first product into an SPU based on the first product attribute feature set of each first product attribute and the first background category attribute information, and determine the SPU information of the SPU.

[0053] In the technical solution provided in step S308, the product SPU conversion system converts the first product attribute feature set and the first background category attribute information of each first product attribute into the SPU information of the SPU to realize the conversion of the product into the SPU.

[0054] The above method of this embodiment is further introduced below.

[0055] As an optional implementation, in the technical solution provided in the above step S304, the matching process at least includes: a first-level matching process, a second-level matching process, and a third-level matching process, and the first-level matching process has a higher priority than the second-level matching process, and the second-level matching process has a higher priority than the third-level matching process. In addition, the above-mentioned first background category attribute information at least includes: first background category attributes, first background category attribute categories, first background category attribute values, and the first product attribute feature set at least includes: product attribute feature values.

[0056] Specifically, the technical solution provided in the above step S304 can be divided into the following three matching stages, including:

[0057] First-level matching process: determining whether the first product attribute feature set satisfies the first matching constraint of the first-level matching process, wherein the first matching constraint is used to indicate that the first product attribute exists in the first background category attribute corresponding to the first background category attribute category in the preset database;

[0058] In the case where the first product attribute feature set satisfies the first matching constraint condition, the first background category attribute and the first background category attribute category of the first product attribute are determined, and the first background category attribute value of the first product attribute is determined based on the first background category attribute and the product attribute feature value, and the first level matching process ends at this time;

[0059] When the first product attribute feature set does not satisfy the first matching constraint condition, the second level matching process is continued.

[0060] Therefore, the above-mentioned first-level matching process can be understood as matching the first product attribute of the first product with all the background category attributes stored in the database (such as the background category attributes include: application type, whether to send for installation and maintenance, actual installation and maintenance system, terminal model code, terminal serial code, terminal serial code, login account, business number, etc.) one by one through attribute coding. If the first product attribute already exists in the first background category attribute, the matching first background category attribute and its first background category attribute category are successfully returned, and then the first background category attribute value corresponding to the first product attribute is determined based on the first background category attribute and the product attribute characteristic value; otherwise, the second-level matching process continues.

[0061] Second-level matching process: determining whether the first product attribute feature set satisfies the second matching constraint of the second-level matching process, wherein the second matching constraint is used to indicate that the matching probability between the first background category attribute corresponding to the first background category attribute category in the database and the first product attribute is not less than a preset probability threshold;

[0062] In the case where the first product attribute feature set satisfies the second matching constraint condition, the first background category attribute and the first background category attribute category corresponding to the first product attribute are determined, and the first background category attribute value of the first product attribute is determined based on the first background category attribute and the product attribute feature value, and the second level matching process ends at this time;

[0063] When the first product attribute feature set does not satisfy the second matching constraint condition, a third level matching process is performed.

[0064] Therefore, the above-mentioned second-level matching process can be understood as: calculating the probability that the first product attribute belongs to the various background category attributes stored in the database. If the probability is higher than the preset probability threshold, the first background category attribute with the highest probability and its first background category attribute category are successfully returned, and then the first background category attribute value corresponding to the first product attribute is determined based on the first background category attribute and the product attribute characteristic value; otherwise, the third-level matching process continues.

[0065] The third-level matching process: First, use the pre-trained background category attribute classification model to analyze the first product attribute feature set, determine the first background category attribute category of the first product attribute, and determine the corresponding first background category attribute based on the first background category attribute category; determine the first background category attribute value of the first product attribute based on the first background category attribute and the product attribute feature value.

[0066] Among them, the above-mentioned background category attribute classification model is obtained by iterative training based on multiple groups of sample data, and each group of training data includes: a second product attribute feature set of the second product attribute and a second background category attribute category corresponding to the second product attribute.

[0067] Therefore, the third matching process stage can be understood as directly using the trained background category attribute classification model to analyze the first product attribute feature set of the first product attribute to obtain the first background category attribute category corresponding to the first product attribute.

[0068] It should be noted that the above database stores at least one type of background category attribute category and at least one background category attribute corresponding to each type of background category attribute category, and the background category attribute categories include but are not limited to: functional attributes, sales attributes, ordering attributes, etc.

[0069] Furthermore, the second matching condition corresponding to the second-level matching process can be defined by the following rules:

[0070] For each type of background category attribute category in the database, the following steps are performed: First, determine the first number of background category attributes belonging to the background category attribute category and the second number of the first background category attributes that match the first product attribute. Among them, the background category attributes that match the above-mentioned first product attributes can be understood as the first product attributes are matched one by one with the background category attributes in the database through attribute coding. If the first product attribute already exists in the background category attributes, it means that the match is successful; then, the matching probability of the first product attribute and the background category attribute category is determined based on the first number and the second number. Therefore, the formula for the above-mentioned matching probability can be written as: matching probability = first number / second number.

[0071] Therefore, the second matching constraint condition can be defined based on the matching probability: the matching probability between the first background category attribute corresponding to the first background category attribute category of the database and the first product attribute is not less than a preset probability threshold.

[0072] The definition of the second matching constraint condition can be understood as: taking the category of the background category attribute with the highest matching probability as the first background category attribute category corresponding to the first product attribute. The setting of the above probability threshold can be set according to the actual application scenario, and can be set to 0.8 in the embodiment of the present application.

[0073] In addition, the training process of the background category attribute classification model in the third-level matching process includes:

[0074] Step S1, construct an initial classification model, such as a logistic regression model, a decision tree model, a random forest model, a neural network model, etc. The selection of the model can be made according to the actual application scenario and the characteristics of the data set. The selection of the classification model in the embodiment of the present application is not specifically limited.

[0075] Step S2, obtaining multiple groups of sample data, and performing preprocessing operations on the multiple groups of sample data. Each group of sample data includes: a second product attribute feature set (i.e., input features) of the second product attribute, and a second background category attribute category (i.e., output label) corresponding to the second product attribute. The preprocessing operations include but are not limited to: outlier processing, missing value processing, normalization processing, etc.

[0076] Step S3, iteratively train the initial classification model using the processed multiple groups of sample data to obtain a background category attribute classification model.

[0077] Specifically, the above step S3 can be implemented in the following way:

[0078] Step S31: for each group of sample data after processing, the second product attribute feature set of the second product attribute is analyzed using the initial classification model to obtain the predicted background category attribute category corresponding to the second product attribute.

[0079] Specifically, the technical solution provided in the above step S31 can be refined into the following steps:

[0080] Step 1: Determine the feature weight value of each second product attribute feature in the second product attribute feature set, wherein the higher the influence of the second product attribute feature on the second background category attribute category, the greater the corresponding feature weight value.

[0081] Among them, the first step can be understood as presetting and adjusting the feature weight value for each selected second product attribute feature, such as product attribute, product attribute type, product attribute value, product attribute value type, product attribute value quantity, etc., according to the relationship between the second product attribute feature and the second background category attribute. Therefore, the size of the second product attribute feature is associated with its influence on the final second background category attribute category, that is, the higher the influence, the greater the corresponding feature weight value.

[0082] Step 2: Based on the feature weight values ​​of each second product attribute feature, calculate the distance value between the second product attribute and each product attribute in the preset product attribute set, and determine multiple target product attributes from the product attribute set whose distance values ​​are not greater than the preset distance threshold.

[0083] Among them, the distance value between the second product attribute and the preset product attribute set including multiple product attributes is calculated using the characteristic distance calculation formula (such as Chebyshev distance, Minkowski distance, Euclidean distance, Manhattan distance, etc.) and the characteristic weight of the product attribute feature. The distance value can reflect the similarity between the second product attribute and other product attributes. Among them, in the embodiment of the present application, specific restrictions are made on the setting of the distance threshold. Generally, the smaller the distance threshold is set, the higher the similarity between the selected target product attribute and the second product attribute. Therefore, the distance value is used to select the first n target product attributes with higher similarity.

[0084] Step 3: Determine the background category attribute category corresponding to each target product attribute, and determine the predicted background category attribute category based on the background category attribute categories of multiple target product attributes.

[0085] The fourth step can be understood as: counting the background category attribute categories of multiple target product attributes, and taking the target background category attribute with the highest frequency as the final predicted background category attribute category.

[0086] Step S32, determining the error between the second background category attribute category and the predicted background category attribute category in each group of sample data, and adjusting the model parameters of the initial classification model based on the error to obtain a background category attribute classification model.

[0087] Specifically, in the embodiment of the present application, a preset loss function (such as mean square error, cross entropy, etc.) is used to determine the error between the predicted background category attribute category obtained by predicting the second product attribute feature set of the second product attribute in each group of sample data and the second background category attribute category in the sample; the gradient of the loss function with respect to the model parameters (such as model weights, learning rate, bias, etc.) is calculated, wherein the gradient is a vector, and its classification represents the partial derivative of the loss function with respect to each parameter, so the direction of the gradient points to the direction in which the loss function increases fastest; the model parameters are updated along the negative direction of the gradient to reduce the value of the loss function, wherein the update step size is controlled by the learning rate; the above steps are repeated until the preset stop condition is reached (the preset number of iterations is reached, the loss function value is lower than the preset threshold, and the gradient change is less than the preset value), the model parameters will converge to a local minimum, and the loss function value corresponding to this minimum value is the optimal value of the model parameters of the initial classification model, and finally a trained background category attribute classification model is obtained.

[0088] As an optional implementation, in the technical solution provided in the above step S306, the first product attribute feature set also includes: the first product basic information, and the information of the converted SPU includes at least: SPU basic information, SPU attributes, and SPU attribute values. Therefore, the above step S306 can realize the conversion of products into SPUs through the following rules:

[0089] (1) According to the preset conversion rules, the first product basic information is automatically mapped to the SPU basic information of the SPU. The above SPU basic information includes but is not limited to: SPU name, SPU description, management and control classification, etc., and other SPU basic information of the SPU (such as business form, usage platform) can be generated using the preset rule configuration default value.

[0090] (2) Determine the SPU attribute and the SPU attribute value of the SPU according to the first background category attribute and the first background category attribute value of each first product attribute.

[0091] Furthermore, after the product is automatically converted to SPU through the above steps S302-S306, the SPU information (SPU basic information, SPU attributes, SPU attribute values, background category attributes, and background category attribute values) automatically generated by the product SPU conversion system can be checked again by relevant configuration personnel to determine whether the generated SPU information is correct and complete. If the generated SPU fails the check, manual fine-tuning can be performed, thereby greatly simplifying the conversion process of the product SPU.

[0092] Compared with the embodiment of the present application Figure 1 The existing conversion process shown has the following advantages:

[0093] First, when configuring SPU, you can continue to inherit the attributes defined by the product (such as background category attributes and background category attribute values), reducing the repeated configuration of a large number of fusion attributes, and also promoting the unified management of fusion attributes;

[0094] Second, the current manual configuration content, such as SPU basic information, background category attributes and attribute values, SPU attributes and attribute values, SPU product mapping relationships and other complex configurations are automatically completed by the system, which not only greatly simplifies the SPU configuration, but also effectively improves the accuracy and efficiency of the configuration.

[0095] Example 2

[0096] Based on Embodiment 1 of the present application, an embodiment of a device for converting a product into an SPU is also provided. When the device is running, the method for converting a product into an SPU in the above embodiment is executed. Figure 4 is a schematic diagram of the structure of an optional product conversion SPU device according to an embodiment of the present application, such as Figure 4 As shown, the device for converting the product SPU at least includes an acquisition module 41, a determination module 42 and a conversion module 43, wherein:

[0097] An acquisition module 41 is used to acquire a first product attribute feature set of at least one first product attribute of a first product;

[0098] The determination module 42 is used to match the first product attribute feature set with a multiple matching method for each first product attribute, and determine the first background category attribute information of the first product attribute, wherein the multiple matching method is to determine whether the first product attribute feature set satisfies the matching constraint condition of the corresponding matching process in order of priority, and if so, execute the corresponding matching process, otherwise, execute the next level matching process;

[0099] The conversion module 43 is used to convert the first product into an SPU based on the first product attribute feature set of each first product attribute and the first background category attribute information, and determine the SPU information of the SPU.

[0100] It should be noted that the various modules in the above-mentioned product conversion SPU device can be a program module (for example, a set of program instructions that implement a certain specific function) or a hardware module. For the latter, it can be expressed in the following forms, but is not limited to this: the expression form of each of the above-mentioned modules is a processor, or the functions of each of the above-mentioned modules are implemented by a processor.

[0101] Example 3

[0102] According to an embodiment of the present application, a non-volatile storage medium is further provided, in which a program is stored, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the method of product conversion SPU in Example 1.

[0103] Optionally, the device where the non-volatile storage medium is located implements the following steps by running the program:

[0104] Step S302, obtaining a first product attribute feature set of at least one first product attribute of a first product;

[0105] Step S304: for each first product attribute, a multiple matching method is used to match the first product attribute feature set to determine the first background category attribute information of the first product attribute, wherein the multiple matching method is to determine in order of priority whether the first product attribute feature set satisfies the matching constraint condition of the corresponding matching process, and if so, the corresponding matching process is executed, otherwise, the next level matching process is executed;

[0106] Step S306 converts the first product into an SPU based on the first product attribute feature set of each first product attribute and the first background category attribute information, and determines the SPU information of the SPU.

[0107] According to an embodiment of the present application, a computer program product is also provided. The computer program product includes a stored computer program, wherein when the computer program is executed by a processor, the method for converting the product SPU in Embodiment 1 is implemented.

[0108] Optionally, the computer program executes the following steps:

[0109] Step S302, obtaining a first product attribute feature set of at least one first product attribute of a first product;

[0110] Step S304: for each first product attribute, a multiple matching method is used to match the first product attribute feature set to determine the first background category attribute information of the first product attribute, wherein the multiple matching method is to determine in order of priority whether the first product attribute feature set satisfies the matching constraint condition of the corresponding matching process, and if so, the corresponding matching process is executed, otherwise, the next level matching process is executed;

[0111] Step S306 converts the first product into an SPU based on the first product attribute feature set of each first product attribute and the first background category attribute information, and determines the SPU information of the SPU.

[0112] According to an embodiment of the present application, a processor is also provided, which is used to run a program, wherein the method for converting a product SPU in Embodiment 1 is executed when the program is run.

[0113] Optionally, the following steps are performed when the program is running:

[0114] Step S302, obtaining a first product attribute feature set of at least one first product attribute of a first product;

[0115] Step S304: for each first product attribute, a multiple matching method is used to match the first product attribute feature set to determine the first background category attribute information of the first product attribute, wherein the multiple matching method is to determine in order of priority whether the first product attribute feature set satisfies the matching constraint condition of the corresponding matching process, and if so, the corresponding matching process is executed, otherwise, the next level matching process is executed;

[0116] Step S306 converts the first product into an SPU based on the first product attribute feature set of each first product attribute and the first background category attribute information, and determines the SPU information of the SPU.

[0117] According to an embodiment of the present application, an electronic device is also provided, wherein the electronic device includes one or more processors; a memory for storing one or more programs, and when the one or more programs are executed by one or more processors, the one or more processors are implemented to run the programs, wherein the program is configured to execute the method for product conversion SPU in the above-mentioned embodiment 1 when running.

[0118] Optionally, the processor is configured to implement the following steps by executing a computer program:

[0119] Step S302, obtaining a first product attribute feature set of at least one first product attribute of a first product;

[0120] Step S304: for each first product attribute, a multiple matching method is used to match the first product attribute feature set to determine the first background category attribute information of the first product attribute, wherein the multiple matching method is to determine in order of priority whether the first product attribute feature set satisfies the matching constraint condition of the corresponding matching process, and if so, the corresponding matching process is executed, otherwise, the next level matching process is executed;

[0121] Step S306 converts the first product into an SPU based on the first product attribute feature set of each first product attribute and the first background category attribute information, and determines the SPU information of the SPU.

[0122] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0123] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0124] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0125] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0126] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0127] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.

[0128] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for converting a product into an SPU, characterized in that: include: Obtain a first product attribute feature set of at least one first product attribute of a first product; For each of the first product attributes, a multiple matching method is used to match the first product attribute feature set to determine the first background category attribute information of the first product attribute, wherein the multiple matching method is to determine in order of priority whether the first product attribute feature set satisfies the matching constraint condition of the corresponding matching process, and if so, execute the corresponding matching process, otherwise, execute the next level matching process; The first product is converted into a standardized product unit SPU based on the first product attribute feature set of each of the first product attributes and the first background category attribute information, and SPU information of the SPU is determined.

2. The method according to claim 1, characterized in that: The matching process at least includes: a first-level matching process, a second-level matching process, and a third-level matching process; the first background category attribute information at least includes: a first background category attribute, a first background category attribute category, and a first background category attribute value; the first product attribute feature set at least includes: a product attribute feature value; wherein a multiple matching method is used to match the first product attribute feature set to determine the first background category attribute information of the first product attribute, including: Determine whether the first product attribute feature set satisfies a first matching constraint condition of the first-level matching process, wherein the first matching constraint condition is used to indicate that the first product attribute exists in a first background category attribute corresponding to a first background category attribute category in a preset database; In the case where the first product attribute feature set satisfies the first matching constraint condition, determining a first background category attribute and a first background category attribute category of the first product attribute, and determining the first background category attribute value of the first product attribute based on the first background category attribute and the product attribute feature value; In the case where the first product attribute feature set does not satisfy the first matching constraint condition, determining whether the first product attribute feature set satisfies a second matching constraint condition of the second-level matching process, wherein the second matching constraint condition is used to indicate that a matching probability between the first background category attribute corresponding to the first background category attribute category in the database and the first product attribute is not less than a preset probability threshold; In the case where the first product attribute feature set satisfies the second matching constraint condition, determining a first background category attribute and a first background category attribute category of the first product attribute, and determining the first background category attribute value of the first product attribute based on the first background category attribute and the product attribute feature value; In the case where the first product attribute feature set does not satisfy the second matching constraint condition, the first product attribute feature set is analyzed using a pre-trained background category attribute classification model to determine the first background category attribute category of the first product attribute, and the first background category attribute of the first product attribute is determined based on the first background category attribute category, wherein the background category attribute classification model is obtained by iterative training based on multiple groups of sample data, and each group of training data includes: a second product attribute feature set of a second product attribute and a second background category attribute category corresponding to the second product attribute; the first background category attribute value corresponding to the first product attribute is determined based on the first background category attribute and the product attribute feature value; Wherein, the database stores at least one type of background category attribute category, and the background category attribute category includes at least one of the following: functional attributes, sales attributes, and ordering attributes.

3. The method according to claim 2, characterized in that The second matching constraint condition includes: For each of the backend category attribute categories in the database, determining a first number of backend category attributes belonging to the backend category attribute category and a second number of first backend category attributes matching the first product attribute, and determining a matching probability of the first product attribute with the backend category attribute category based on the first number and the second number; Determine that the second matching constraint condition is that the matching probability between the first background category attribute of the first background category attribute category of the database and the first product attribute is not less than the probability threshold.

4. The method according to claim 2, characterized in that: The training process of the background category attribute classification model includes: Build an initial classification model; Acquire the multiple groups of sample data, and perform preprocessing operations on the multiple groups of sample data; The initial classification model is iteratively trained using the processed multiple groups of sample data to obtain the background category attribute classification model.

5. The method according to claim 4, characterized in that The initial classification model is iteratively trained using the processed multiple groups of sample data to obtain the background category attribute classification model, including: For each group of the processed sample data, using the initial classification model to analyze the second product attribute feature set of the second product attribute, to obtain a predicted background category attribute category corresponding to the second product attribute; The error between the second background category attribute category and the predicted background category attribute category in each group of sample data is determined, and the model parameters of the initial classification model are adjusted based on the error to obtain the background category attribute classification model.

6. The method according to claim 5, characterized in that The second product attribute feature set of the second product attribute is analyzed by using the initial classification model to obtain a predicted background category attribute category corresponding to the second product attribute, including: Determine a feature weight value of each second product attribute feature in the second product attribute feature set, wherein the higher the influence of the second product attribute feature on the second background category attribute type, the greater the corresponding feature weight value; Based on the feature weight values ​​of each of the second product attribute features, calculate the distance value between the second product attribute and each product attribute in a preset product attribute set, and determine a plurality of target product attributes from the product attribute set whose distance values ​​are not greater than a preset distance threshold; The background category attribute category corresponding to each of the target product attributes is determined, and the predicted background category attribute category is determined based on the background category attribute categories of the plurality of target product attributes.

7. The method according to claim 1, characterized in that The first product attribute feature set also includes: first product basic information, and the SPU information at least includes: SPU basic information, SPU attributes, and SPU attribute values, wherein the first product is converted into an SPU based on the first product attribute feature set of each first product attribute and the first background category attribute information, and the SPU information of the SPU is determined, including: Convert the first product basic information into SPU basic information of the SPU according to a preset conversion rule; The SPU attribute and the SPU attribute value of the SPU are determined according to the first background category attribute and the first background category attribute value of each of the first product attributes.

8. A device for converting a product into an SPU, characterized in that: include: An acquisition module, configured to acquire a first product attribute feature set of at least one first product attribute of a first product; a determination module, configured to, for each of the first product attributes, use a multiple matching method to match the first product attribute feature set to determine the first background category attribute information of the first product attribute, wherein the multiple matching method is to determine in order of priority whether the first product attribute feature set satisfies the matching constraint condition of the corresponding matching process, and if so, execute the corresponding matching process, otherwise, execute the next level matching process; A conversion module is used to convert the first product into an SPU based on the first product attribute feature set of each of the first product attributes and the first background category attribute information, and determine the SPU information of the SPU.

9. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, wherein the device where the non-volatile storage medium is located executes the method for converting a product SPU as described in any one of claims 1 to 7 by running the computer program.

10. A computer program product, characterized in that include: A computer program, wherein when the computer program is executed by a processor, the method for converting a product SPU as claimed in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Data processing method and device

    CN111199437A

  • Commodity information aggregation method and device and electronic equipment

    CN115170221A

  • Product information determination method and device, equipment and storage medium

    CN117609499A

Cited By

  • Product model attribute identification method and system, storage medium and electronic equipment

    CN119539901A

  • Product model attribute recognition method and system, storage medium and electronic device

    CN119539901B