This disclosure relates generally to automatically determining user intent by sequence classification based on non-time-series-based machine learning.
Conventional intent determining techniques lack the ability to process time-related information in the historical data. Such information may be useful to predict what users have in mind when they reach out to a help center agent, in particular because recent incidents or events are generally more relevant to a user intent than older events. As such, conventional intent determining techniques cannot accurately predict user intent. However, existing time-series-based machine learning models, though being able to incorporate time-related information in the learning process, are generally slow and complicated. Therefore, systems and/or methods that can train a machine learning model with historical input data properly weighed according to their respective temporal information and determine user intent in real-time by the machine learning model, as trained, are desired.
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.
As defined herein, “real-time” can, in some embodiments, be defined with respect to operations carried out as soon as practically possible upon occurrence of a triggering event. A triggering event can include receipt of data necessary to execute a task or to otherwise process information. Because of delays inherent in transmission and/or in computing speeds, the term “real-time” encompasses operations that occur in “near” real-time or somewhat delayed from a triggering event. In a number of embodiments, “real-time” can mean real-time less a time delay for processing (e.g., determining) and/or transmitting data. The particular time delay can vary depending on the type and/or amount of the data, the processing speeds of the hardware, the transmission capability of the communication hardware, the transmission distance, etc. However, in many embodiments, the time delay can be less than approximately 0.1 second, 0.5 second, one second, two seconds, five seconds, or ten seconds.
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,
Generally, therefore, system 300 can be implemented with hardware and/or software, as described herein. In some embodiments, part or all of the hardware and/or software can be conventional, while in these or other embodiments, part or all of the hardware and/or software can be customized (e.g., optimized) for implementing part or all of the functionality of system 300 described herein.
In some embodiments, system 300 can include one or more systems (e.g., system 310 and/or frontend system 320) and one or more user devices (e.g., user device 330) for various users (e.g., user 331). In a few embodiments, system 310 can include frontend system 320. In the same or different embodiments, system 310 can include machine learning module 311 and encoding module 312. System 310 (and each of its modules), frontend system 320, and/or user device 330 can each be a computer system, such as computer system 100 (
In some embodiments, system 310 can be in data communication, through a network 340 (e.g., a computer network, a telephone network, and/or the Internet), with frontend system 320 and/or user device 330. In some embodiments, user device 330 can be used by users, such as user 331, respectively. In a number of embodiments, frontend system 320 can host one or more websites and/or mobile application servers. For example, frontend system 320 can host a website, or provide a server that interfaces with an application (e.g., a mobile application, a web browser, or a calendar application), on consumer devices, which allows consumers to browse or search frequently-asked-questions (FAQ), inquire about an order status, or chat with a help center agent, etc. In certain embodiments, frontend system 320 can generate an intent prediction request and transmit, via network 340 (e.g., a computer network, the telephone network, or the Internet), the intent prediction request to system 310.
In some embodiments, an internal network (e.g., network 340) that is not open to the public can be used for communications between system 310 with frontend system 320, and/or user device 330. In these or other embodiments, the operator and/or administrator of system 310 can manage system 310, the processor(s) of system 310, and/or the memory storage unit(s) of system 310 using the input device(s) and/or display device(s) of system 310.
In certain embodiments, the user devices (e.g., user device 330) can be desktop computers, laptop computers, mobile devices, and/or other endpoint devices used by one or more users (e.g., user 331). 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.
Exemplary mobile devices can include (i) an iPod®, iPhone®, iTouch®, iPad®, MacBook® or similar product by Apple Inc. of Cupertino, Calif., United States of America, (ii) a Blackberry® or similar product by Research in Motion (RIM) of Waterloo, Ontario, Canada, (iii) a Lumia® or similar product by the Nokia Corporation of Keilaniemi, Espoo, Finland, and/or (iv) a Galaxy™ or similar product by the Samsung Group of Samsung Town, Seoul, South Korea. Further, in the same or different embodiments, a mobile device can include an electronic device configured to implement one or more of (i) the iPhone® operating system by Apple Inc. of Cupertino, Calif., United States of America, (ii) the Blackberry® operating system by Research In Motion (RIM) of Waterloo, Ontario, Canada, (iii) the Android™ operating system developed by the Open Handset Alliance, or (iv) the Windows Mobile™ operating system by Microsoft Corp. of Redmond, Wash., United States of America.
In many embodiments, system 310 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 comprise 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, system 310 also can be configured to communicate with one or more databases (e.g., databases 350). Databases 350 can include an event database that includes event information associated with one or more events in a lookback period (e.g., 10 days, 30 days, 60 days, 90 days, etc.) associated with one or more items ordered by a user. The event information can come from various sources, such as online chats or phone calls with a help center or agents, etc. Examples of event information in the event database can include an event type for an event (e.g., “shipped,” “orderCreated,” “returnReceived,” “returnCancelled,” “shippedLate,” etc.), an amount for an order associated with the event, a number of items for the order, a timestamp or an age of the event, and so forth.
In some embodiments, for any particular database of the one or more databases (e.g., databases 350), that particular database can be stored on a single memory storage unit or the contents of that particular database can be spread across multiple ones of the memory storage units storing the one or more databases, depending on the size of the particular database and/or the storage capacity of the memory storage units. Further, 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, system 300, system 310, and/or the one or more databases can be implemented using any suitable manner of wired and/or wireless communication. Accordingly, system 300 and/or 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, system 310 can receive, via network 340, an intent prediction request from a frontend system (e.g., frontend system 320). System 310 further can obtain, from a database (e.g., databases 350), one or more events in a lookback period (e.g., 30 days, 2 months, 100 days, etc.) associated with one or more items ordered by a user (e.g., user 331) for the intent prediction request.
In a number of embodiments, system 310 (and/or encoding module 312) can determine a time-based feature encoding for the one or more events for the user (e.g., user 331). System 310 (and/or encoding module 312) can determine the time-based feature encoding for the one or more events for the user by determining a feature encoding for the one or more events. The feature encoding can include one or more multi-dimensional feature vectors for the one or more events. Each of the one or more multi-dimensional feature vectors can include one or more of: an embedding for a respective event of the one or more events; an item quantity of a respective order for the respective event; an amount of the respective order; and/or a time difference between the respective event and a current time (e.g., an age of the respective event), etc. The embedding for the respective event can be created by any suitable embedding techniques (e.g., word2vec).
In some embodiments, system 310 (and/or encoding module 312) can determine the time-based feature encoding for the one or more events for the user further by determining a positional encoding for the one or more events. The positional encoding can include one or more positional vectors associated with a temporal sequence of the one or more events. In several embodiments, the positional encoding can be sinusoidal. For example, the positional encoding can include:
In a number of embodiments, system 310 (and/or encoding module 312) can determine the time-based feature encoding for the one or more events for the user further by: determining the time-based feature encoding based at least in part on the feature encoding, the positional encoding, and/or a decay function. In some embodiments, the decay function can be configured to determine a respective weightage for each event of the one or more events in the time-based feature encoding. For example, the respective weightage for a first event of the one or more events, as determined by the decay function, can be greater than the respective weightage for a second event of the one or more events, as determined by the decay function, when the first event is closer in time to a current time than the second event. In certain embodiments, the decay function can be linear (as above), exponential, or any of suitable decaying speed, etc., depending on the domain (e.g., retail, wholesale, etc.), as long as the more recent events are giving greater weights. In some embodiments, the decay function can include:
In certain embodiments, the time-based feature encoding used by system 310 (and/or encoding module 312) can include one or more time-based feature vectors for the one or more events. For instance, each of the one or more time-based feature vectors can be determined based on:
(vfeature(i)+vposition(i))*fd(i), wherein:
In many embodiments, system 310 can determine, in real-time via a machine learning model (e.g., machine learning module 311), a user intent for the user (e.g., user 331) based on the time-based feature encoding. The machine learning model can be pre-trained, by system 310 or other suitable systems, based on historical time-based feature encodings for historical events for one or more users (including the user, e.g., user 331) and historical output intent data. The historical time-based feature encodings for historical events can be determined by system 310, encoding module 312, or other suitable modules. Examples of the historical output intent data can include the historical user intents identified by agents or other systems/models, etc. In many embodiments, the machine learning model for determining the user intent can include any suitable algorithms, such as a classification algorithm (e.g., random forest, XGBoost, etc.).
In a number of embodiments, system 310 can train the machine learning model (e.g., machine learning module 311) by estimating internal parameters and/or using labeled training data, otherwise known as a training dataset. In some embodiments, the training dataset for the machine learning model can be associated with all or a part of historical transaction data, historical interaction data, historical incident data, and/or historical chat data. For examples, system 310 can include a training data lookback period (e.g., 6 months, 1 year, 18 months, 3 years, etc.) for the historical transaction data, the historical interaction data, the historical incident data, and/or the historical chat data for training the machine learning model. For instance, the historical transaction data used in the training dataset for training the machine learning model (e.g., machine learning module 311) can be limited to data about historical transactions associated with users in a geographic area (e.g., a country, a continent, etc.).
In various embodiments, the machine learning model (e.g., machine learning module 311) can be pre-trained, and/or re-trained, based on a training dataset. In some embodiments, the machine learning model can also consider both historical and dynamic input from system 310. In this way, the machine learning model can be trained iteratively as data from system 310 is added to the training dataset. In many embodiments, the machine learning model can be iteratively trained in real-time as data is added to the training dataset.
Conventional time-series-based machine learning models are typically based on complicated neural networks or deep learning solutions (e.g., Long Short-Term Memory (LSTM) Networks, etc.). They generally are slow and cannot determine user intents in real-time. In many embodiments, intent determining techniques provided by system 300 and/or system 310 (and/or each of its modules) are advantageous because, even with the preparation of input data for a non-time-series-based machine learning model as described herein, determining user intents by the non-time-series-based machine learning model still would take less time than existing time-series-based machine learning models.
Turning ahead in the drawings,
In many embodiments, system 300 (
In many embodiments, method 400 can be performed by a computer server, such as system 300 (
In some embodiments, method 400 further can include obtaining, from a database (e.g., databases 350 (
In a number of embodiments, method 400 additionally can include determining a time-based feature encoding for the one or more events for the user (block 430). In several embodiments, determining the time-based feature encoding for the one or more events in block 430 can include determining a feature encoding for the one or more events (block 431). In some embodiments, determining the time-based feature encoding for the one or more events in block 430 further can include determining a positional encoding for the one or more events (block 432). In certain embodiments, determining the time-based feature encoding for the one or more events in block 430 additionally can include determining the time-based feature encoding based at least in part on the feature encoding, the positional encoding, and/or a decay function (block 433).
In many embodiments, method 400 further can include determining, in real-time via a machine learning model, a user intent for the user based on the time-based feature encoding (block 440).
Further, in some embodiments, the feature encoding in block 431 can include one or more multi-dimensional feature vectors for the one or more events. Each of the one or more multi-dimensional feature vectors can include: an embedding for a respective event of the one or more events, an item quantity of a respective order for the respective event, an amount of the respective order, and/or a time difference between the respective event and a current time, and so forth.
In a number of embodiments, the positional encoding in block 432 can be sinusoidal. In some embodiments, the decay function can be configured to determine a respective weightage for each event of the one or more events in the time-based feature encoding, and the respective weightage for a first event of the one or more events, as determined by the decay function, can be greater than the respective weightage for a second event of the one or more events, as determined by the decay function, when the first event is closer in time to a current time than the second event.
In several embodiments, the time-based feature encoding in block 430 can include one or more time-based feature vectors for the one or more events determined based at least in part on one or more feature vectors of the feature encoding and one or more one or more positional vectors of the positional encoding.
In some embodiments, the machine learning model used in block 440 can be pre-trained based on historical time-based feature encodings for historical events for one or more users and historical output intent data. The one or more users can include the user. In certain embodiments, the machine learning model can include a classification algorithm.
Various embodiments can include a system for automatically determining user intent by sequence classification based on non-time-series-based machine learning. The system can include one or more processors and one or more non-transitory computer-readable media storing computing instructions that, when executed on the one or more processors, cause the one or more processors to perform various acts.
In a number of embodiments, the acts can include receiving, via a computer network, an intent prediction request from a frontend system. The acts further can include obtaining, from a database, one or more events in a lookback period associated with one or more items ordered by a user for the intent prediction request. In some embodiments, the acts also can include determining a time-based feature encoding for the one or more events for the user by: (a) determining a feature encoding for the one or more events; (b) determining a positional encoding for the one or more events; and (c) determining the time-based feature encoding based at least in part on the feature encoding, the positional encoding, and a decay function. The positional encoding can include one or more positional vectors associated with a temporal sequence of the one or more events. In some embodiments, the acts further can include determining, in real-time via a machine learning model, a user intent for the user based on the time-based feature encoding.
Further, various 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 receiving, via a computer network, an intent prediction request from a frontend system. The method further can include obtaining, from a database, one or more events in a lookback period associated with one or more items ordered by a user for the intent prediction request. The method also can include determining a time-based feature encoding for the one or more events for the user by: (a) determining a feature encoding for the one or more events; (b) determining a positional encoding for the one or more events; and (c) determining the time-based feature encoding based at least in part on the feature encoding, the positional encoding, and a decay function. The positional encoding can include one or more positional vectors associated with a temporal sequence of the one or more events. The method further can include determining, in real-time via a machine learning model, a user intent for the user based on the time-based feature encoding.
The methods and system described herein can be at least partially embodied in the form of computer-implemented processes and apparatus for practicing those processes. The disclosed methods may also be at least partially embodied in the form of tangible, non-transitory machine-readable storage media encoded with computer program code. For example, the steps of the methods can be embodied in hardware, in executable instructions executed by a processor (e.g., software), or a combination of the two. The media may include, for example, RAMs, ROMs, CD-ROMs, DVD-ROMs, BD-ROMs, hard disk drives, flash memories, or any other non-transitory machine-readable storage medium. When the computer program code is loaded into and executed by a computer, the computer becomes an apparatus for practicing the method. The methods may also be at least partially embodied in the form of a computer into which computer program code is loaded or executed, such that, the computer becomes a special purpose computer for practicing the methods. When implemented on a general-purpose processor, the computer program code segments configure the processor to create specific logic circuits. The methods may alternatively be at least partially embodied in application specific integrated circuits for performing the methods.
The foregoing is provided for purposes of illustrating, explaining, and describing embodiments of these disclosures. Modifications and adaptations to these embodiments will be apparent to those skilled in the art and may be made without departing from the scope or spirit of these disclosures.
Although automatically determining user intent by sequence classification based on non-time-series-based machine learning 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.