This disclosure relates generally relates to similar items using spectral filtering.
Webpages can provide users with more and more options to explore items that are similar to one another. Similar items can be ordered over a regularly ordered item for multiple reasons that can be personalized for each user engaged in online shopping.
To facilitate further description of the embodiments, the following drawings are provided in which:
For simplicity and clarity of illustration, the drawing figures illustrate the general manner of construction, and descriptions and details of well-known features and techniques may be omitted to avoid unnecessarily obscuring the present disclosure. Additionally, elements in the drawing figures are not necessarily drawn to scale. For example, the dimensions of some of the elements in the figures may be exaggerated relative to other elements to help improve understanding of embodiments of the present disclosure. The same reference numerals in different figures denote the same elements.
The terms “first,” “second,” “third,” “fourth,” and the like in the description and in the claims, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms “include,” and “have,” and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, device, or apparatus that comprises a list of elements is not necessarily limited to those elements, but may include other elements not expressly listed or inherent to such process, method, system, article, device, or apparatus.
The terms “left,” “right,” “front,” “back,” “top,” “bottom,” “over,” “under,” and the like in the description and in the claims, if any, are used for descriptive purposes and not necessarily for describing permanent relative positions. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the apparatus, methods, and/or articles of manufacture described herein are, for example, capable of operation in other orientations than those illustrated or otherwise described herein.
The terms “couple,” “coupled,” “couples,” “coupling,” and the like should be broadly understood and refer to connecting two or more elements mechanically and/or otherwise. Two or more electrical elements may be electrically coupled together, but not be mechanically or otherwise coupled together. Coupling may be for any length of time, e.g., permanent or semi-permanent or only for an instant. “Electrical coupling” and the like should be broadly understood and include electrical coupling of all types. The absence of the word “removably,” “removable,” and the like near the word “coupled,” and the like does not mean that the coupling, etc. in question is or is not removable.
As defined herein, two or more elements are “integral” if they are comprised of the same piece of material. As defined herein, two or more elements are “non-integral” if each is comprised of a different piece of material.
As defined herein, “approximately” can, in some embodiments, mean within plus or minus ten percent of the stated value. In other embodiments, “approximately” can mean within plus or minus five percent of the stated value. In further embodiments, “approximately” can mean within plus or minus three percent of the stated value. In yet other embodiments, “approximately” can mean within plus or minus one percent of the stated value.
Turning to the drawings,
Continuing with
As used herein, “processor” and/or “processing module” means any type of computational circuit, such as but not limited to a microprocessor, a microcontroller, a controller, a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, a graphics processor, a digital signal processor, or any other type of processor or processing circuit capable of performing the desired functions. In some examples, the one or more processors of the various embodiments disclosed herein can comprise CPU 210.
In the depicted embodiment of
In some embodiments, network adapter 220 can comprise and/or be implemented as a WNIC (wireless network interface controller) card (not shown) plugged or coupled to an expansion port (not shown) in computer system 100 (
Although many other components of computer system 100 (
When computer system 100 in
Although computer system 100 is illustrated as a desktop computer in
Turning ahead in the drawings,
In many embodiments, system 300 can include a spectral filtering system 310 and/or a web server 320. Spectral filtering system 310 and/or web server 320 can each be a computer system, such as computer system 100 (
In a number of embodiments, each of spectral filtering system 310 and/or web server 320 can be a special-purpose computer programed specifically to perform specific functions not associated with a general-purpose computer, as described in greater detail below.
In some embodiments, web server 320 can be in data communication through network 330 with one or more user computers, such as user computers 340 and/or 341. Network 330 can be a public network, a private network or a hybrid network. In some embodiments, user computers 340-341 can be used by users, such as users 350 and 351, which also can be referred to as customers, in which case, user computers 340 and 341 can be referred to as customer computers. In many embodiments, web server 320 can host one or more sites (e.g., websites) that allow users to browse and/or search for items (e.g., products), to add items to an electronic shopping cart, and/or to order (e.g., purchase) items, in addition to other suitable activities.
In some embodiments, an internal network that is not open to the public can be used for communications between spectral filtering system 310 and/or web server 320 within system 300. Accordingly, in some embodiments, spectral filtering system 310 (and/or the software used by such systems) can refer to a back end of system 300, which can be operated by an operator and/or administrator of system 300, and web server 320 (and/or the software used by such system) can refer to a front end of system 300, and can be accessed and/or used by one or more users, such as users 350-351, using user computers 340-341, respectively. In these or other embodiments, the operator and/or administrator of system 300 can manage system 300, the processor(s) of system 300, and/or the memory storage unit(s) of system 300 using the input device(s) and/or display device(s) of system 300.
In certain embodiments, user computers 340-341 can be desktop computers, laptop computers, a mobile device, and/or other endpoint devices used by one or more users 350 and 351, respectively. A mobile device can refer to a portable electronic device (e.g., an electronic device easily conveyable by hand by a person of average size) with the capability to present audio and/or visual data (e.g., text, images, videos, music, etc.). For example, a mobile device can include at least one of a digital media player, a cellular telephone (e.g., a smartphone), a personal digital assistant, a handheld digital computer device (e.g., a tablet personal computer device), a laptop computer device (e.g., a notebook computer device, a netbook computer device), a wearable user computer device, or another portable computer device with the capability to present audio and/or visual data (e.g., images, videos, music, etc.). Thus, in many examples, a mobile device can include a volume and/or weight sufficiently small as to permit the mobile device to be easily conveyable by hand. For examples, in some embodiments, a mobile device can occupy a volume of less than or equal to approximately 1790 cubic centimeters, 2434 cubic centimeters, 2876 cubic centimeters, 4056 cubic centimeters, and/or 5752 cubic centimeters. Further, in these embodiments, a mobile device can weigh less than or equal to 15.6 Newtons, 17.8 Newtons, 22.3 Newtons, 31.2 Newtons, and/or 44.5 Newtons.
In several embodiments, each of spectral filtering system 310 and web server 320 can include one or more input devices (e.g., one or more keyboards, one or more keypads, one or more pointing devices such as a computer mouse or computer mice, one or more touchscreen displays, a microphone, etc.), and/or can each include one or more display devices (e.g., one or more monitors, one or more touch screen displays, projectors, etc.). In these or other embodiments, one or more of the input device(s) can be similar or identical to keyboard 104 (
Meanwhile, in many embodiments, the components of system 300 (including spectral filtering system 310 and web server 320) also can be configured to communicate individually and/or collectively with and/or include one or more databases. The one or more databases can include a product database that contains information about products, items, or SKUs (stock keeping units), for example, among other data as described herein, such as described herein in further detail. The one or more databases can be stored on one or more memory storage units (e.g., non-transitory computer readable media), which can be similar or identical to the one or more memory storage units (e.g., non-transitory computer readable media) described above with respect to computer system 100 (
The one or more databases can each include a structured (e.g., indexed) collection of data and can be managed by any suitable database management systems configured to define, create, query, organize, update, and manage database(s). Exemplary database management systems can include MySQL (Structured Query Language) Database, PostgreSQL Database, Microsoft SQL Server Database, Oracle Database, SAP (Systems, Applications, & Products) Database, and IBM DB2 Database.
Meanwhile, communication between the components of system 300 (including spectral filtering system 310, web server 320, and any databases), and between network 330 and/or the one or more databases can be implemented using any suitable manner of wired and/or wireless communication. Accordingly, spectral filtering system 310 can include any software and/or hardware components configured to implement the wired and/or wireless communication. Further, the wired and/or wireless communication can be implemented using any one or any combination of wired and/or wireless communication network topologies (e.g., ring, line, tree, bus, mesh, star, daisy chain, hybrid, etc.) and/or protocols (e.g., personal area network (PAN) protocol(s), local area network (LAN) protocol(s), wide area network (WAN) protocol(s), cellular network protocol(s), powerline network protocol(s), etc.). Exemplary PAN protocol(s) can include Bluetooth, Zigbee, Wireless Universal Serial Bus (USB), Z-Wave, etc.; exemplary LAN and/or WAN protocol(s) can include Institute of Electrical and Electronic Engineers (IEEE) 802.3 (also known as Ethernet), IEEE 802.11 (also known as WiFi), etc.; and exemplary wireless cellular network protocol(s) can include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Evolution-Data Optimized (EV-DO), Enhanced Data Rates for GSM Evolution (EDGE), Universal Mobile Telecommunications System (UMTS), Digital Enhanced Cordless Telecommunications (DECT), Digital AMPS (IS-136/Time Division Multiple Access (TDMA)), Integrated Digital Enhanced Network (iDEN), Evolved High-Speed Packet Access (HSPA+), Long-Term Evolution (LTE), WiMAX, etc. The specific communication software and/or hardware implemented can depend on the network topologies and/or protocols implemented, and vice versa. In many embodiments, exemplary communication hardware can include wired communication hardware including, for example, one or more data buses, such as, for example, universal serial bus(es), one or more networking cables, such as, for example, coaxial cable(s), optical fiber cable(s), and/or twisted pair cable(s), any other suitable data cable, etc. Further exemplary communication hardware can include wireless communication hardware including, for example, one or more radio transceivers, one or more infrared transceivers, etc. Additional exemplary communication hardware can include one or more networking components (e.g., modulator-demodulator components, gateway components, etc.).
In many embodiments, spectral filtering system 310 can include a communication system 311, an embedding system 312, a graph system 313, a classification system 314, a machine-learning system 315, and/or a re-rank system 316. In many embodiments, the systems of spectral filtering system 310 can be modules of computing instructions (e.g., software modules) stored at non-transitory computer readable media that operate on one or more processors. In other embodiments, the systems of spectral filtering system 310 can be implemented in hardware. Each of the above-referenced systems of spectral filtering system 310 can be a computer system, such as computer system 100 (
Turning ahead in the drawings,
In several embodiments, block diagram 500 illustrates an example of a data pipeline of how to generate a personalized item recommendation that is similar to an item ordered by a user, by using item relational graphs with a spectral filtering layer. Block diagram 500 can include an end-to-end data pipeline based on outputs of three algorithms: algorithm 511 (e.g., a spectral filtering algorithm), algorithm 512 (e.g., a feed-forward neural network), and algorithm 513 (e.g., a recall-rerank inference algorithm). In some embodiments, a personalized top k list of similar items output from block diagram 500 and can be based on outputs of each level of these three algorithms, where each output of an earlier algorithm can be used as a portion of input for the next level of algorithm.
In several embodiments, algorithm 511 can be a spectral filtering algorithm that can filter out noise in the item relational graphs. In several embodiments, input for algorithm 511 can include historical data from one or more item relational graphs and encoded item data retrieved from a catalog, where such encoded item data can be similar or identical to data 504 (e.g., catalog data). In various embodiments, algorithm 511 can include input from graph 508 (e.g., an item relational graph built using recommended items) and graph 509 (e.g., an item relational graph built using items recommended as substitutes).
In a number of embodiments, input data for graph 508 and graph 509 can be retrieved from data 507. Data 507 can include a set of input data retrieved from two data sources. Data 507 can include raw data 502 (e.g., customer online data including recommended items displayed to a customer) and raw data 503 (e.g., customer records of items recommended as substitute items) as input data. Data 507 can be a data source used to build one or more item relational graphs associated with one or more types of user actions or interactions, or customer behaviors.
In some embodiments, raw data 502 can include records of items recommend to users (e.g., customers) tracked over a period of time including user actions (e.g., clicks on a website) such as whether the user ordered the item recommended or did not order the item recommended. In various embodiments, graph 508 (e.g., item relational graph) can be built using tracked metrics such as click data (e.g., acceptance, order) for an item B recommended for an item A. In some embodiments, graph 508 can be based on another suitable user action(s).
In some embodiments, raw data 503 can include records of items recommend to users as a substitute for an other item tracked over a period of time including user actions (e.g., clicks on a website) such as whether the user ordered the other item recommended or did not order the other item recommended. In various embodiments, graph 509 (e.g., an item relational graph) can be built using tracked metrics such as click data (e.g., acceptance, order) for an item A that went out of stock and an item B recommended as a substitute for item A. In a number of embodiments, exemplary item relational graphs, such as graphs 508 and 509 can be illustrated in
In several embodiments, algorithm 511 can transform signals (e.g., user actions) from complex item relational graphs into a time-frequency domain. In several embodiments, algorithm 511 can perform a filtering process to remove (e.g., de-noise) irrelevant, unusual, erroneous, etc. signals of data tracked on the item relational graph. In various embodiments, algorithm 511 can be performed by block 440 (
In several embodiments, algorithm 512 can be a feed-forward neural network that can be used to classify item pairs based on levels of similarity to one another. In some embodiments, in addition to input from a data 510, output of algorithm 511 can be used as a portion of input data for algorithm 512. For example, a feed-forward neural network for input item A and input item B, encoded as vecA and vecB, respectively, can classify whether this item pair has a positive label. In some embodiments, outputting a top k list of similar items based on a similarity score for each item pair can be displayed on a user interface of an electronic device (e.g., display 514), using the output from algorithm 512. In many embodiments, the top k list of similar items can be ordered as a hierarchy by the respective similarity scores of the items. In various embodiments, algorithm 512 can be performed by one or more of blocks 450, 455, and 460 (
In various embodiments, data 510 can be a repository of multiple sources of information related to items obtained from catalog data 501. Data 510 can specify whether to label an item pair with a positive label and/or as a positive sample using a machine-learning classification model. Sources of input into data 510 can include data 504 (e.g., item information encoded using contextual feature encoding) data 505 (e.g., product hierarchy information for a category using poincare encoding), data 506 (e.g., a Jaccard similarity score for item pairs) as well as output from graph 508 and/or graph 509.
In several embodiments, algorithm 513 can be a re-ranking algorithm (e.g., a recall-rerank inference algorithm) that changes the hierarchical order of the top k similar item pairs list that are to an anchor item ordered or added-to-cart based on personalization parameters of a user. In some embodiments, all of the ranked item pairs (item A, item B) can be assigned similarity scores as outputs of algorithm 512. In various embodiments, the quantity of all ranked item pairs can number in the millions for an anchor item. In some embodiments, a subset of the ranked item pairs (item A, item B) can be constructed as a recall set as the top level of the hierarchical top k items, which can include the optimal item-pair. In many embodiments, such a subset (recall set) can be constructed by using input from three areas: 1) data 504 (e.g., high contextual feature encoding for items), graph 509 and 2) high relative gain to determine a level of similarity between each pair of nodes connected by edge weights on graph 508. In several embodiments, each candidate pair for the top k item pairs can be ranked in a hierarchical structure with similarity scores from most similar to less similar, via algorithm 512. In many embodiments, algorithm 513 can add a personalization layer to the data pipeline that can change the order of a display 514 to a user based on user preference. In various embodiments, the output of algorithm 512 can include the top k items also used for the personalization layer added by algorithm 513. In various embodiments, algorithm 513 can be performed by block 465 (
Turning back in the drawings,
In these or other embodiments, one or more of the activities of method 400 can be implemented as one or more computing instructions configured to run at one or more processors and configured to be stored at one or more non-transitory computer-readable media. Such non-transitory computer-readable media can be part of a computer system such as spectral filtering system 310 (
Referring to
In some embodiments, method 400 also can include a block 410 of generating a first node for the first item on an item relational graph of the one or more item relational graphs.
In several embodiments, method 400 additionally can include a block 415 of generating a second node for a recommendation for the first item, wherein the second node is connected to the first node on the item relational graph of the one or more item relational graphs. In various embodiments, an edge connecting the first node and the second node can include a recommendation edge weight based on a number of times the recommendation for the first item is selected by the users over a period of time. In some embodiments, blocks 405, 410, and 415 are not used in method 400.
In a number of embodiments, method 400 further can include a block 420 of receiving, from users, a selection of a third item of the one or more items, wherein the third item is substituted for a second item of the one or more items.
In various embodiments, method 400 additionally can include a block 425 of generating a third node for the third item on an item relational graph of the one or more item relational graphs.
In some embodiments, method 400 further can include a block 430 of generate a fourth node for a substitution of the third item for the second item. In several embodiments, the fourth node can be connected to the third node on the item relational graph of the one or more item relational graphs. In various embodiments, an edge connecting the third node and the fourth node can include a substitution edge weight based on a number of times the substitution of the third item for the second item is selected by the users over a period of time. In some embodiments, blocks 420, 425, and 430 are not used in method 400. In other embodiments, blocks 420, 425, and 430 are used in method 400, but occur before blocks 405, 410, and 415. In further embodiments, blocks 420, 425, and 430 are used in method 400, but occur simultaneously with or in parallel with blocks 405, 410, and 415.
In a number of embodiments, method 400 also can include a block 435 of generating one or more item relational graphs for one or more items based on historical user purchases.
In various embodiments, method 400 additionally can include a block 440 of transforming, using spectral filtering, the one or more item relational graphs into one or more frequency signals.
In some embodiments, filtering can be a widely-employed technique in the domain signal processing technology field. For example, by designing (data adaptive) filters, the desired signals can be preserved, and the irrelevant, unusual, or erroneous signals discarded.
As another example, when predicting the future temperature, using historical records, the short-term fluctuations (which occurs in the span of several seconds or minutes) can often be random noises that can be independent of an overall temperature trend. The random noises can often have very similar patterns (such as following a Gaussian noise process by the law of nature), and the terminology to describe the short-term character of these random noises can be frequency. Since frequency of a pattern is the reciprocal of its recurring time span, being short term can mean the random noise patterns can include high frequency. Therefore, to reveal (expose) the long-term patterns of temperature, removing the high-frequency components as a procedure can denoise the original data.
As another example, the role of spectral filtering can be an analogy to the first example described above. The main difference can include that the signal and noise are defined on the (nodes) of a graph. However, the technical detail for filtering can require nontrivial modifications, since the Fourier transform, which is the tool that converts the time-series data from the temporal domain to the frequency domain, is not defined on the space of graphs. Nevertheless, Fourier transform also can correspond to the eigen-decomposition of the Laplacian operator that consists of the second-order derivatives. The Laplacian operator, which originally characterizes the heat diffusion (or how quickly the energy changes), can be well-defined on graphs. As a consequence, the Fourier transform through the lens of Laplacian operator can be equivalently defined. Since the eigen-decomposition can also be referred to as the spectral decomposition, carrying out the filtering on the “frequency” space obtained though the spectral decomposition is known as the spectral filtering.
As another example, the technical field based on using graph Fourier transform and spectral filtering can include an understanding of how to implement spectral filtering technology.
For example, introducing the concepts to describe a graph can be expressed as follows:
Specifically, let A be the adjacency matrix for the graph =(ν, ε, ), where ν is the set for nodes, ε is the set for edges and is the set for edge weights. Then Ai,j=(εi,j) that reflects the weight (connectivity) between node i and j. We use D to denote the diagonal degree matrix such that Di,i is the sum of weights Σj Ai,j for node i. The function N(i) gives the set of neighbor nodes of i.
On the real line, the Laplace operator is the second derivative:
For functions f defined on the nodes of the graph, the discretized version for the above definition is used, which simply reduces to the difference of f(i) and f evaluated at all the neighbors of node i:
Hence, applying the Laplacian operator to function ƒ is equivalent to multiplying [ƒ(1), . . . , ƒ(|ν|)] by the matrix: L=D−A. Sometimes, the normalized version of the Laplacian matrix also is used:
{tilde over (L)}=D
−1/2
LD
−1/2.
As mentioned in the previous section, the Fourier transform of a function ƒ is the expansion of ƒ in terms of the eigenfunctions of the Laplace operator. Recall that the Laplacian matrix admits the following decomposition:
{tilde over (L)}=UΛUT, U=[U1, . . . , U|V|] forms a set of orthogonal basis,
and Λ=diag(λ1, . . . , λ|ν|) consists of the eigenvalues (referred to as the spectrum of the graph).
Hence, the graph Fourier transform for function ƒ, which maps a node to some output space, is the expansion of ƒ in terms the eigenfunctions of the Laplacian matrix:
where {circumflex over (ƒ)}=[ƒ(1), . . . ƒ(|ν|)]. Using the shorthand, we have: {right arrow over ({tilde over (ƒ)})}=UT {right arrow over (ƒ)}.
Similarly, the inverse Fourier transform, which maps {right arrow over ({tilde over (ƒ)})}back to the original {right arrow over (ƒ)}, is given by: {right arrow over (ƒ)}=U{right arrow over ({tilde over (ƒ)})}.
Hence, the graph convolution of ƒ under g, which can be referred to as applying operations defined by g on the spectrum of the graph (think of it as the collection of frequencies in time series), can be formulated as:
When selecting g to serve as a filtering, e.g. preserve and remove certain elements in the spectrum of [λ1, . . . , λ|ν|], its Fourier transform ĝ can be directly parameterize such that:
For example, just as in the time-series analysis to remove high frequency components (e.g. frequency larger than θ), ĝθ(λ) an be set to ĝθ(λ)=1[λ<θ]λ, where 1 [⋅] is the indicator function.
In other words, if X is the node feature matrix (which equals to having ƒ as the feature map: ƒ(i)=Xi, then the spectral filtering of X under the filter gθ is expressed by:
g
θ
X=U diag(ĝθ(λ1), . . . ,ĝθ(λ|ν|)UTX.
The shorthand Gθ(Λ) can be used to denote diag(ĝθ(λ1), . . . , ĝθ(λ|ν|) such that gθX=UGθ(Λ)UTX.
Using graph convolutional network as spectral filtering can obtain a good filter Gθ in an data-adaptive fashion.
Instead of designing a filter Gθ in advance, learn a good Gθ for a specific task after the data is observed. Without any model assumption, Gθ can take any format, which can makes it difficult to tell how to parameterize it. On the other hand, Gθ can be expanded to a series to linear functions using the Chebyshev polynomial:
where {Tk} is the expansion polynomial series, where T0(Λ)=I and T1(Λ)=Λ.
Later, a specific type of parameterization can be used by truncating the above Chebyshev series at k=1 with θ0=2θ, θ1=−θ, θk=0 for k>1, so the spectral filtering under this specific Gθ becomes:
g
θ
X=θ(I+{tilde over (L)})X.
This is referred to as a single graph convolution layer. By stacking multiple graph convolution layers, and by using activation functions among each layer, the graph convolutional network can be constructed as:
. . . σ(θ2(I+{tilde over (L)})σ(θ1(I+{tilde over (L)})X) . . . ,
where θi is the unknown weight matrix for each layer.
Further, as an example, instead of studying graph convolution network as a machine learning model, as it is shown in the existing literature, its capability can be further explored as a spectral filtering mechanism to use the useful signal in the graph to enhance the quality of node features X.
Specifically, all the activation functions can be removed among the layers, so the graph convolution network becomes:
σ((I+{tilde over (L)})kXθ1 . . . θk),
where k is the number of layers. Let θ0=θ1 . . . θk represent the parameterization of the above model, so it becomes:
σ((I+{tilde over (L)})kXθ0)
Compared with the original goal of spectral filtering, as described using the format of (as shown above):
g
θ
X=U diag(ĝθ(λi), . . . ,ĝθ(λ|ν|)UTX,
(I+{tilde over (L)})k Xθ0 can play a the role in filtering. By simple algebra, expressed as:
(I+{tilde over (L)})kXθ0=Uθ0 diag((2−λ)k, . . . ,(2−λ|ν|)k)UTX,
where (I+{tilde over (L)})kXθ0, can filter the spectrum using the filter function θ0(2−λ)k.
Note that 2≥λ1, . . . , λ|ν|≥1 based on working with the normalized Laplacian matrix. As a consequence, the components that correspond to a large λ can be shrunken more heavily by an increased k, because 2−λ≤1, and the components that correspond a small can be more preserved. Hence, (I+{tilde over (L)})kXθ0 can include playing the role of a “low-pass filter”, which corresponds to letting pass the low-frequency signals in time-series analysis.
In the above derivations, θ0 can refer to a single parameter that plays the role of scaling. Multiple scaling factors can be employed. The components can be linearly combined with a different spectrum, by making θ0 into a parameter matrix Θ. A final formulation for the low-pass spectral filtering can be given by:
X(Θ)=σ((I+{tilde over (L)})kXΘ),
where X(Θ) can be the matrix of node features after the spectral filtering, with better signals that the original node features X.
In various examples, recommendations for similar items can include generating an item-to-item graph , which represents item-pair similarities. In some embodiments, item-to-item graphs can be constructed from historical user interaction data. In several embodiments, spectral filtering can be conducted on the item features X with a goal to find an optimal Θ.
In some embodiments, a set of (item1, item2, label) data can represent whether the two items are similar. The construction of , T and the labels are provided above regarding the item relational graph and data 507 (
where l(⋅,⋅) can be a loss function, such as the binary cross-entropy loss. In several embodiments, a stochastic gradient descent can be used to find the optimal Θ.
Returning to
Jumping ahead in the drawings,
R(i,j)=accept count(i,j)/rejection rate(i,j,)
Where R refers to a relative gain, i refers to an item, j refers to another item and i,j, refer to an item pair. In several embodiments, a rejection rate can include a number of times an item can be recommended over a period of time. In a number of embodiments, a higher relative gain for an item pair using the relative gain formula can be understood as when an item pair has a higher number of acceptances and/or a lower rejection rate (i.e., an increased level of relative gain showing the item pair is more similar than other item pairs).
As an example to illustrate an advantage of a low rejection rate to calculate a relative gain output for an item pair. For three item pairs, such as (item A, item B), (item A, item C) and (item A, item D), item B can be offered 100 times as a recommendation for item A, where users accepted item B as the recommendation 50 times out of 100 times that item B was offered. Additionally, item C can be offered 50 times as a recommendation for item A where users accepted item C 40 times out of 50 times that item C was offered. Next, item D can be offered 100 times as a recommendation for item A where users accepted item D 75 times out of 100 times that item D was offered. Therefore, as part of this example, relative gain can be represented by item pairs (e.g., item A, item B) with a higher similarity to each other due to a higher acceptance rate over a high number of orders. Specifically, with reference to
As another example, relative gain can be expressed as per the relative gain formula, for (item A, item B)=a total number of accepted orders/rejection rate=50/0.5=100. Additionally, as mathematically expressed (item A, item C)=40/0.2=200, and (item A, item D)=75/0.25=300.
Turning back to
In several embodiments, method 400 can include a block 450 of constructing, using a machine learning model, one or more item pair label classifications for one or more item pairs of the one or more items. In some embodiments, the machine learning model is a feed-forward neural network.
In various embodiments, block 450 can include training a data set based on input comprising historical item data over a period of time by encoding, using contextual feature encoding, the one or items. In some embodiments, contextual feature encoding can be performed for each product in a product catalog, such as itemA->enc (A).
In many embodiments, contextual feature encoding can include using Poincare encoding. In various embodiments, Poincare encoding can be performed on a product hierarchy.
In several embodiments, training the data set also can include measuring a similarity, using a Jaccard similarity coefficient, of respective titles for each item within the one or more item pairs. For example, measuring the similarity of each respective title for “Haggen-daz vanilla ice cream” and “Dairy Queen vanilla & strawberry ice cream” can be performed as follows:
Let senA, senB (sentence A, sentence B) refer to the description sentence for itemA and itemB. Where Jaccard(senA, senB)=#intersection(senA, senB)/#union(senA, senB), where the output can illustrate a gauge of similarity between the titles of each item in each item pair.
In various embodiments, training the data set can additionally include constructing a positive label or a negative label used for the machine learning classification task. In many embodiments, constructing a positive label sampling (e.g., item pair can be more similar) for an item pair can include inputs including a high contextual feature encoding similarity (e.g., inner product<enc(A), enc(B)>) as shown in an item relational graph for the item pair, a high relative gain on an item relational graph for items recommended and accepted, a high relative gain on an item relational graph for items recommended and accepted as substitutes, and/or a high Jaccard similarity score. In some embodiments, a positive label can be for item pairs similar to an anchor item from less than 20th percentile. In several embodiments, a hard negative label sampling can be from sample item pairs from greater than 20th percentile of the output of the positive label metrics. Similarly, in some embodiments, a simple negative label sampling can be from sample item pairs from the also greater than the 20th percentile for all the above metrics.
In some embodiments, method 400 also can include a block 455 of generating a respective similarity score for each of the one or more item pairs. In several embodiments, generating the respective similarity score can include outputting a probability that a recommendation or a substitute based on an item pair of the one or more item pairs will be selected by the users.
In various embodiments, method 400 further can include a block 460 of outputting a top k results for the one or more item pairs ranked by the respective similarity scores.
In many embodiments, method 400 also can include a block 465 of re-ranking, using a re-ranking algorithm, the top k results of the one or more item pairs based on a user preference for display on a user interface of an electronic device of a user. In some embodiments, an algorithm for re-ranking similar items can include a training data set. In various embodiments, block 465 can be performed as shows in Algorithm 1:
In several embodiments, block 465 also can be performed as shown in Algorithm 2:
In several embodiments, using the re-ranking algorithm can include receiving affinity preferences for the user based on one or more features of an anchor item of the one or more item pairs in the top k results, as ranked.
In some embodiments, using the re-ranking algorithm also can include constructing a respective affinity vector for each of the affinity preferences of the anchor item.
In many embodiments, using the re-ranking algorithm further can include scoring each item pair of the one or more item pairs, as ranked, based on the respective affinity vector of the anchor item.
In various embodiments, re-ranking the top k results can include re-ranking a subset of the top k results based on an affinity score for the user. In some embodiments, the user preference comprises the affinity score for the user.
Jumping ahead to the drawings,
In several embodiments, method 700 illustrates a data pipeline showing how a personalization layer added to an output of a top k results in a set of re-ranked top k results. In several embodiments, method 700 can a user 701, a cart 702, and data collected based on user actions for brand 703 (e.g., yogurt (brand)) and flavor 704 (e.g., yogurt (flavor). In some embodiments, preference 705 can represent a user preference from historical transactions for an item (e.g., yogurt).
In some embodiments, list 706 can include a non-personalized list of recommended items associated with an anchor item of the items using the respective ordered list of flavors for the user. In some embodiments, ranking similar items non-personalized can be expressed:
y=f(relevance score)
For example, if a user selects an anchor item of Yoplait strawberry yogurt, a non-personalized list of recommended items can include 4 yogurt brands and flavors in an order: Yoplait strawberry banana 707, Yoplait French vanilla 709, Great Value low-fat vanilla 708, and Yoplait blueberry 710. In various embodiments, algorithm 711 (e.g., a re-ranking algorithm) can personalize the existing ranking of similar items in the non-personalized list by including a preference layer of preference 705. In several embodiments, ranking similar items personalized to a user can be expressed as:
y=f(relevance score,flavor score)
y=
1×relevance score+2×flavor score
In many embodiments, applying a personalization layer of preference 705 to the non-personalized list of recommended items can use the same list of items recommended and changes the order based on the flavor preference of the user. For example, a list 712 (e.g., a personalized list) of recommended items can re-rank the brand and flavor preference of the user to the following re-ranked order: Yoplait French vanilla 709, Yoplait strawberry banana 713, Great Value low-fat vanilla 715, and Yoplait blueberry 716.
Returning to the drawings,
In many embodiments, spectral filtering system 310 can include a communication system 311. In a number of embodiments, communication system 311 can at least partially perform block 405 (
In several embodiments, spectral filtering system 310 also can include a scoring system 312. In various embodiments, scoring system 312 can at least partially perform block 455 (
In many embodiments, spectral filtering system 310 further can include a graph system 313. In several embodiments, graph system 313 can at least partially perform block 435 (
In some embodiments, spectral filtering system 310 additionally can include a generating system 314. In many embodiments, generating system 314 can at least partially perform block 410 (
In various embodiments, spectral filtering system 310 also can include a machine learning system 315. In some embodiments, machine learning system 315 can at least partially perform block 450 (
In several embodiments, spectral filtering system 310, additionally can include a ranking system 316. In various embodiments, ranking system 316 can at least partially perform block 460 (
In several embodiments, web server 320 can at least partially perform sending instructions to user computers (e.g., 350-351 (
In a number of embodiments, the techniques described herein can advantageously provide a consistent user experience by dynamically and automatically generating similar items using spectral filtering, such as spectral filtering system 310 (
In many embodiments, the techniques described herein can be used continuously at a scale that cannot be handled using manual techniques. For example, the number of daily and/or monthly visits to the webpage can exceed approximately ten million and/or other suitable numbers, the number of registered users to the content source can exceed approximately one million and/or other suitable numbers, and/or the number of products and/or items sold on the website can exceed approximately ten million (10,000,000) approximately each day.
In a number of embodiments, the techniques described herein can solve a technical problem that arises only within the realm of computer networks, as automatically generating similar items using spectral filtering does not exist outside the realm of computer networks. Moreover, the techniques described herein can solve a technical problem that cannot be solved outside the context of computer networks. Specifically, the techniques described herein cannot be used outside the context of computer networks, in view of a lack of data, and because a content catalog, such as an online catalog, that can power and/or feed an online website that is part of the techniques described herein would not exist.
In several embodiments, an advantage of using a scalable graph convolutional network as an end-to-end production system can include a system that can be scalable yet interpretable and controllable with the internal multiple-recall sets and ranking algorithms. In some embodiments, the system can accept all data for item attributes by embedding oriented design that combines the item attributes with user (e.g., customer) signal with little feature engineering efforts. In various embodiments, the ability to digest multiple input signals (graphs) can reduce bias and increase precision as all signals can be used from historical viewing (browsing) records and search records. In some embodiments, the ability to digest multiple input signals (graphs) also can include time sensitive and season sensitive user signals from different time periods that can provide useful information. In many embodiments, using a scalable design that can accelerate training by using parallel computing can be advantageous by providing enhanced coverage and precision.
Various embodiments can include a system including one or more processors and one or more non-transitory computer-readable media storing computing instructions configured to run on the one or more processors and perform certain acts. The acts can include generating one or more item relational graphs for one or more items based on historical user purchases. The acts also can include transforming, using spectral filtering, the one or more item relational graphs into one or more frequency signals to remove noise from the one or more frequency signals. The acts further can include constructing, using a machine learning model, one or more item pair label classifications for one or more item pairs of the one or more items. The acts additionally can include generating a respective similarity score for each of the one or more item pairs. The acts also can include outputting a top k results for the one or more item pairs ranked by the respective similarity scores. The acts further can include re-ranking, using a re-ranking algorithm, the top k results of the one or more item pairs based on a user preference for display on a user interface of an electronic device of a user.
A number of embodiments can include a method being implemented via execution of computing instructions configured to run at one or more processors and stored at one or more non-transitory computer-readable media. The method can include generating one or more item relational graphs for one or more items based on historical user purchases. The method also can include transforming, using spectral filtering, the one or more item relational graphs into one or more frequency signals to remove noise from the one or more frequency signals. The method further can include constructing, using a machine learning model, one or more item pair label classifications for one or more item pairs of the one or more items. The method additionally can include generating a respective similarity score for each of the one or more item pairs. The method also can include outputting a top k results for the one or more item pairs ranked by the respective similarity scores. The method further can include re-ranking, using a re-ranking algorithm, the top k results of the one or more item pairs based on a user preference for display on a user interface of an electronic device of a user.
Although automatically determining a rule change event that can affect certain attributes of a product for display as expressed in a content catalog using a reactive attribute management platform has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes may be made without departing from the spirit or scope of the disclosure. Accordingly, the disclosure of embodiments is intended to be illustrative of the scope of the disclosure and is not intended to be limiting. It is intended that the scope of the disclosure shall be limited only to the extent required by the appended claims. For example, to one of ordinary skill in the art, it will be readily apparent that any element of
Replacement of one or more claimed elements constitutes reconstruction and not repair. Additionally, benefits, other advantages, and solutions to problems have been described with regard to specific embodiments. The benefits, advantages, solutions to problems, and any element or elements that may cause any benefit, advantage, or solution to occur or become more pronounced, however, are not to be construed as critical, required, or essential features or elements of any or all of the claims, unless such benefits, advantages, solutions, or elements are stated in such claim.
Moreover, embodiments and limitations disclosed herein are not dedicated to the public under the doctrine of dedication if the embodiments and/or limitations: (1) are not expressly claimed in the claims; and (2) are or are potentially equivalents of express elements and/or limitations in the claims under the doctrine of equivalents