Machine learning assisted automatic taxonomy for web data
A machine learning-assisted taxonomy system automates the creation of web data taxonomies using a deep neural network, addressing scalability and reproducibility issues, and enhances data interpretation for downstream applications.
Patent Information
- Application Number
- JP2023573458
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2022-06-27
- Publication Date
- 2024-08-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The process of creating taxonomies for web data is labor-intensive and prone to human error due to scalability and reproducibility issues, hindering automation.
A machine learning-assisted approach that generates a taxonomy by training a model on annotated features from URLs and metadata, using a deep neural network to predict classes and store predicted classes with activity records, with optional user verification and lookup tables for efficient classification.
Automates the taxonomy creation process, reducing human error and time, while enabling efficient classification and interpretation of web data for downstream functions.
Smart Images

Figure 2024530998000001_ABST
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to U.S. Provisional Patent Application No. 63 / 195,566, filed June 1, 2021, and is incorporated by reference herein as if set forth in its entirety. In addition, this application is related to U.S. Patent No. 9,202,227, issued on December 1, 2015, U.S. Patent No. 10,475,056, issued on November 12, 2019, U.S. Patent No. 10,536,427, issued on January 14, 2020, U.S. Patent No. 10,873,560, issued on December 22, 2020, U.S. Patent Application No. 17 / 362,605, filed on June 29, 2021, U.S. Patent Application No. 17 / 362,646, filed on June 29, 2021, and U.S. Patent Application No. 17 / 362,843, filed on June 29, 2021, all of which are incorporated by reference herein as if set forth in their entireties. [Background technology]
[0002] TECHNICAL FIELD Embodiments described herein are directed generally to artificial intelligence (AI), and more specifically to machine learning assisted automated taxonomy for web data.
[0003] 2. Description of Related Art Different systems, such as Marketing Automation Platforms (MAPs), Customer Relationship Management (CRM) systems, and websites, organize records differently. Therefore, a platform that receives data from these different systems as data sources must utilize a taxonomy to aggregate records from these data sources. A taxonomy maps data from different data sources into a common, consistent labeling system to ensure compatibility with downstream functions. Without a taxonomy, downstream functions cannot understand the data.
[0004] Traditionally, creating a taxonomy requires a labor-intensive collaborative process between a data aggregator and each of the data sources. The data aggregator must understand the structure of the data in order to build a taxonomy that maps the data to standardized fields for use with downstream functions. Due to various obstacles to automation, such as scalability and repeatability, this process must traditionally be performed manually. Such a process not only requires a significant amount of time and effort, but can also introduce a significant amount of human error.
[0005] What is needed, therefore, is a solution to the obstacles that prevent automation of the process for building taxonomies, particularly in the context of web data. Summary of the Invention
[0006] Thus, a system, method, and non-transitory computer-readable medium for machine learning assisted automated taxonomy of web data is disclosed.
[0007] In one embodiment, a method includes: using at least one hardware processor, during a training mode, training a model to predict a class from a plurality of classes in a taxonomy of web-based activities based on a training dataset including a plurality of annotated features, each of the plurality of annotated features including one or more features derived from a uniform resource locator (URL) of an online resource and metadata associated with the online resource, and a ground truth class assigned to the one or more features; during an operational mode, acquiring web data including one or more activity records, each of the one or more activity records including a URL of an online resource accessed by a visitor and metadata associated with the online resource; for each of the one or more activity records, extracting a set of one or more features from the UR and the metadata in the activity record; applying the trained model to the one or more sets of features to predict a class associated with the set of one or more features from the plurality of classes in the taxonomy; and storing the predicted class in the activity record in association with the URL.
[0008] Extracting the one or more sets of features from the URLs and metadata may include deriving one or more keywords from the URLs and metadata and transforming the one or more keywords into vectors according to a vectorization function. The vectors may have a fixed number of dimensions and may represent an embedding of the one or more keywords into a vector space having the fixed number of dimensions. The vectorization function may be a language transformer. The vectors may include real values for each of the fixed number of dimensions. Extracting the one or more sets of features from the URLs may include parsing the URL into a plurality of components and deriving one or more keywords in the one or more sets of features based on at least one pattern in the plurality of components. Extracting the one or more sets of features from the URLs may further include preprocessing the plurality of components to normalize text in the plurality of components after parsing the URL and before deriving the one or more keywords. Deriving the one or more keywords in the one or more sets of features may include adding subdomains in the plurality of components to the one or more sets of features only when one or more other components of the plurality of components are empty. Deriving one or more keywords for inclusion in the one or more sets of features may include adding a keyword indicative of a search to the one or more sets of features if the search pattern is present in multiple components. Deriving one or more keywords for inclusion in the one or more sets of features may include adding a keyword indicative of a business name to the one or more sets of features if the home page pattern is present in multiple components.
[0009] Extracting the set of one or more features from the metadata may include extracting character strings from one or more fields in the metadata without including duplicate character strings in the set of one or more features. The model may include a deep neural network. Training the model may include adding one or more layers to an existing neural network trained for natural language processing, while neuron weights in the one or more layers of the existing neural network are frozen. The trained model outputs both a predicted class and a probability value for the predicted class, and the method further includes, using the at least one hardware processor, during the operational mode, for each of the one or more activity records, assigning a mapped status to a URL in the activity record if the probability value for the predicted class meets a threshold, and assigning an unmapped status to a URL in the activity record if the probability value for the predicted class does not meet the threshold. The method may further include generating, using at least one hardware processor, a graphical user interface including one or more inputs for specifying, for each URL assigned an unmapped status, one of a plurality of classes in the taxonomy associated with the URL, and in response to receiving a designation of one of the plurality of classes in the taxonomy associated with one of the URLs assigned an unmapped status, storing the specified class in association with the one URL and switching the unmapped status to a mapped status.
[0010] The method may further include generating, using the at least one hardware processor, a graphical user interface including one or more inputs for changing any one or more of the stored predicted classes associated with URLs in the activity record to an override class, and at least one input for storing any override classes and any non-overridden predicted classes in association with their respective URLs in the data warehouse. The method may further include generating, using the at least one hardware processor, a lookup table from the data warehouse, the lookup table indexing classes in the data warehouse by URLs associated with those classes in the data warehouse. Using the at least one hardware processor, for each of the one or more activity records, performing a lookup in the lookup table using the URLs in the activity record before extracting the set of one or more features, if the lookup returns a class, storing the class in association with the URL in the activity record without extracting the set of one or more features and without applying the trained model, and if the lookup does not return a class, extracting the set of one or more features and applying the trained model.
[0011] Any of the above methods may be embodied individually or in any combination in executable software modules of a processor-based system, such as a server, and / or in executable instructions stored on a non-transitory computer-readable medium.
[0012] The details of the present invention, both as to its structure and operation, may be gleaned in part from study of the accompanying drawings, in which like parts are labeled with like reference numerals and in which: [Brief description of the drawings]
[0013] [Figure 1]1 illustrates an exemplary infrastructure in which one or more of the processes described herein may be implemented, according to one embodiment. [Diagram 2] 1 illustrates an exemplary processing system in which one or more of the processes described herein may be performed, according to one embodiment. [Diagram 3] 1 illustrates a process for automating a taxonomy for web data, according to one embodiment. [Figure 4] 1 illustrates components of an example Uniform Resource Locator (URL), according to one embodiment. [Diagram 5] 1 illustrates an exemplary process for training a model, according to one embodiment. [Figure 6A] 1 illustrates an exemplary screen of a graphical user interface, according to one embodiment. [Figure 6B] 1 illustrates an exemplary screen of a graphical user interface, according to one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] In one embodiment, a system, method, and non-transitory computer-readable medium for machine learning-assisted automatic taxonomy of web data are disclosed. After reading this specification, it will be clear to a person skilled in the art how to implement the present invention in various alternative embodiments and alternative applications. However, although various embodiments of the present invention are described herein, it is understood that these embodiments are presented only as examples and illustrations, not as limitations. Therefore, this detailed description of various embodiments should not be interpreted as limiting the scope or breadth of the present invention, which is described in the appended claims.
[0015] 1. System Overview 1.1. Infrastructure FIG. 1 illustrates an exemplary infrastructure in which one or more of the disclosed processes may be implemented, according to one embodiment. The infrastructure may include a platform 110 (e.g., one or more servers) that hosts and / or executes one or more of the various functions, processes, methods, and / or software modules described herein. The platform 110 may comprise dedicated hardware servers, or alternatively, cloud servers that utilize shared resources of one or more hardware servers. In either case, these servers may be co-located and / or geographically distributed. The platform 110 may also include or be communicatively connected to a server application 112 and / or one or more databases 114. Additionally, the platform 110 may be communicatively connected to one or more user systems 130 via one or more networks 120. The platform 110 may also be communicatively connected to one or more external systems 140 (e.g., other platforms, websites, etc.) via one or more networks 120.
[0016] The network(s) 120 may include the Internet, and the platform 110 may communicate with the user system(s) 130 over the Internet using standard transmission protocols such as Hypertext Transfer Protocol (HTTP), HTTP Secure (HTTPS), File Transfer Protocol (FTP), FTP Secure (FTPS), Secure Shell FTP (SFTP), as well as proprietary protocols. Although the platform 110 is shown as being connected to various systems over a single set of the network(s) 120, it should be understood that the platform 110 may be connected to various systems over a different set of one or more networks. For example, the platform 110 may be connected to a subset of the user systems 130 and / or external systems 140 over the Internet, but may be connected to one or more other user systems 130 and / or external systems 140 over an intranet. Furthermore, although only a small number of the user systems 130 and external systems 140, one server application 112, and one set of the database(s) 114 are shown, it should be understood that the infrastructure may include any number of user systems, external systems, server applications, and databases.
[0017] The user system(s) 130 may include any type or types of computing devices capable of wired and / or wireless communication, including, but not limited to, desktop computers, laptop computers, tablet computers, smart phones or other mobile phones, servers, game consoles, televisions, set-top boxes, electronic kiosks, point-of-sale terminals, etc. It is generally contemplated that the user system(s) 130 include desktop computers, workstations, and / or mobile devices that a user typically utilizes in the course of performing normal duties for an employer. Each user may utilize his or her personal user system 130 to create and / or access a user account on the platform 110 that enables the user to authenticate and access functionality of the platform 110 (e.g., as implemented in the server application 112) with appropriate roles or permissions during a secure session.
[0018] Platform 110 may include a web server that hosts one or more websites and / or web services. In embodiments in which a website is provided, the website may include a graphical user interface including, for example, one or more screens (e.g., web pages) generated in Hypertext Markup Language (HTML) or other language. Platform 110 transmits or provides one or more screens of the graphical user interface in response to a request from user system(s) 130. In some embodiments, these screens may be provided in the form of a wizard, where two or more screens may be provided in a sequential manner, where one or more of the successive screens may depend on the interaction of a user or user system 130 with one or more preceding screens. Both requests to and responses from platform 110, including screens of the graphical user interface, may be communicated over network(s) 120, which may include the Internet, using standard communication protocols (e.g., HTTP, HTTPS, etc.). These screens (e.g., web pages) may include a combination of content and elements, such as text, images, video, animations, references (e.g., hyperlinks), frames, inputs (e.g., text boxes, text areas, checkboxes, radio buttons, drop-down menus, buttons, forms, etc.), scripts (e.g., JavaScript), and include elements that include or are derived from data stored in one or more databases (e.g., database(s) 114) that are locally and / or remotely accessible to platform 110. Platform 110 may also respond to other requests from user system(s) 130.
[0019] Platform 110 may further include, be communicatively coupled to, or otherwise have access to, one or more database(s) 114. For example, platform 110 may include one or more database servers managing one or more databases 114. User systems 130 or server applications 112 executing on platform 110 may submit data (e.g., user data, form data, etc.) stored in database(s) 114 and / or request access to data stored in database(s) 114. Any suitable database may be utilized, including, but not limited to, MySQL™, Oracle™, IBM™, Microsoft SQL™, Access™, PostgreSQL™, etc., including cloud-based and dedicated databases. Data may be submitted to platform 110, for example, via FTP, using the well-known POST request supported by HTTP. This data and other requests may be processed by server-side web technologies, for example, servlets or other software modules executed by platform 110 (e.g., included in server application 112).
[0020] In embodiments in which web services are provided, platform 110 may receive requests from external system(s) 140 and provide responses in Extensible Markup Language (XML), JavaScript Object Notation (JSON), and / or any other suitable or desired format. In such embodiments, platform 110 may provide an application programming interface (API) that defines how user system(s) 130 and / or external system(s) 140 may interact with the web services. Thus, user system(s) 130 and / or external system(s) 140 (which may themselves be servers) can define their own user interfaces and rely on web services to implement or otherwise provide back-end processes, methods, functions, storage, etc. described herein. For example, in one such embodiment, a client application 132 executing on one or more user system(s) 130, potentially using a local database 134, can interact with a server application 112 executing on the platform 110 to perform one or more, or one or more portions of the various functions, processes, methods, and / or software modules described herein. In one embodiment, the client application 132 can utilize a local database 134 for storing data locally on the user system 130. The client application 132 may be "thin," in which case processing is primarily performed on the server side by the server application 112 on the platform 110. A basic example of a thin client application 132 is a browser application that simply requests, receives, and renders web pages on the user system(s) 130, while the server application 112 on the platform 110 is responsible for generating the web pages and managing database functions. Alternatively, the client application may be "thick," in which case processing is primarily performed on the client side by the user system(s) 130.It should be understood that client application 132 may perform an amount of processing relative to server application 112 on platform 110, at any point along this range between "thin" and "thick," depending on the design goals of a particular implementation. In any case, the software described herein may include one or more executable software modules that include instructions to implement one or more of the processes, methods, or functions described herein, whether resident entirely on either platform 110 (e.g., where server application 112 performs all processing) or user system(s) 130 (e.g., where client application 132 performs all processing), or distributed between platform 110 and user system(s) 130 (e.g., where both server application 112 and client application 132 perform processing).
[0021] 1.2. Exemplary Processing Device 2 is a block diagram illustrating an exemplary wired or wireless system 200 that may be used in connection with various embodiments described herein. For example, system 200 may be used as or in conjunction with one or more of the functions, processes, or methods (e.g., for storing and / or executing software) described herein and may represent components of platform 110, user system(s) 130, external system(s) 140, and / or other processing devices described herein. System 200 may be a server or any conventional personal computer, or any other processor-enabled device capable of wired or wireless data communication. Other computer systems and / or architectures may also be used, as would be apparent to one skilled in the art.
[0022] System 200 preferably includes one or more processors 210. Processor(s) 210 may comprise a central processing unit (CPU). Additional processors may be provided, such as a graphics processing unit (GPU), auxiliary processors for managing input / output, auxiliary processors for performing floating point mathematical operations, dedicated microprocessors (e.g., digital signal processors) having an architecture suitable for fast execution of signal processing algorithms, secondary processors (e.g., back-end processors) subordinate to a main processing system, additional microprocessors or controllers for dual or multi-processor systems, and / or co-processors. Such auxiliary processors may be separate processors or may be integrated with processor 210. Examples of processors that may be used with system 200 include, but are not limited to, any of the processors available from Intel Corporation of Santa Clara, California (e.g., Pentium™, Core i7™, Xeon™, etc.), any of the processors available from Advanced Micro Devices, Incorporated (AMD) of Santa Clara, California, any of the processors available from Apple Inc. of Cupertino (e.g., A-series, M-series, etc.), any of the processors available from Samsung Electronics Co., Ltd. of Seoul, Korea (e.g., Exynos™), etc.
[0023] The processor 210 is preferably connected to a communication bus 205. The communication bus 205 may include a data channel for facilitating information transfer between storage devices and other peripheral components of the system 200. Additionally, the communication bus 205 may provide a set of signals used for communication with the processor 210, including a data bus, an address bus, and / or a control bus (not shown). The communication bus 205 may comprise any standard or non-standard bus architecture, such as, for example, a bus architecture conforming to Industry Standard Architecture (ISA), Extended Industry Standard Architecture (EISA), Micro Channel Architecture (MCA), Peripheral Component Interconnect (PCI) local bus, standards promulgated by the Institute of Electrical and Electronics Engineers (IEEE) including IEEE 488 General Purpose Interface Bus (GPIB), IEEE 696 / S-100, and the like.
[0024] The system 200 preferably includes a main memory 215 and may also include a secondary memory 220. The main memory 215 provides storage of instructions and data for programs executed on the processor 210, such as one or more of the functions and / or modules discussed herein. It should be understood that the programs stored in the memory and executed by the processor 210 may be written and / or compiled according to any suitable language, including, but not limited to, C / C++, Java, JavaScript, Perl, Visual Basic, .NET, etc. The main memory 215 is typically a semiconductor-based memory, such as dynamic random access memory (DRAM) and / or static random access memory (SRAM). Other semiconductor-based memory types include, for example, synchronous dynamic random access memory (SDRAM), Rambus dynamic random access memory (RDRAM), ferroelectric random access memory (FRAM), etc., and include read-only memory (ROM).
[0025] Secondary memory 220 may optionally include internal medium 225 and / or removable medium 230. Removable medium 230 may be read and / or written in any known manner. Removable storage medium 230 may be, for example, a magnetic tape drive, a compact disk (CD) drive, a digital versatile disk (DVD) drive, other optical drive, a flash memory drive, or the like. Secondary memory 220 is a non-transitory computer-readable medium on which computer-executable code (e.g., the disclosed software modules) and / or other data is stored. Computer software or data stored in secondary memory 220 is read into main memory 215 for execution by processor 210. In alternative embodiments, secondary memory 220 may include other similar means for allowing computer programs or other data or instructions to be loaded into system 200. Such means may include, for example, a communications interface 240, allowing software and data to be transferred to system 200 from external storage medium 245. Examples of external storage medium 245 include an external hard disk drive, an external optical drive, an external magneto-optical drive, etc. Other examples of secondary memory 220 include semiconductor-based memory such as programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable read-only memory (EEPROM), and flash memory (a block-oriented memory similar to EEPROM).
[0026] As mentioned above, system 200 may include a communications interface 240. Communications interface 240 allows software and data to be transferred between system 200 and an external device (e.g., a printer), a network, or other information source. For example, computer software or executable code may be transferred to system 200 from a network server (e.g., platform 110) via communications interface 240. Examples of communications interface 240 include an internal network adapter, a network interface card (NIC), a Personal Computer Memory Card International Association (PCMCIA) network card, a card bus network adapter, a wireless network adapter, a universal serial bus (USB) network adapter, a modem, a wireless data card, a communications port, an infrared interface, an IEEE 1394 Firewire, and any other device capable of interfacing system 200 with a network (e.g., network(s) 120) or another computing device. Communications interface 240 preferably implements industry accepted protocol standards such as, for example, the Ethernet IEEE 802 standard, Fibre Channel, Digital Subscriber Line (DSL), Asynchronous Digital Subscriber Line (ADSL), Frame Relay, Asynchronous Transfer Mode (ATM), Integrated Services Digital Network (ISDN), Personal Computer Service (PCS), Transmission Control Protocol / Internet Protocol (TCP / IP), Serial Line Internet Protocol / Point-to-Point Protocol (SLIP / PPP), and others, but may also implement customized or non-standard interface protocols.
[0027] The software and data transferred through communications interface 240 is generally in the form of electrical communications signals 255. These signals 255 may be provided to communications interface 240 via communications channel 250. In one embodiment, communications channel 250 may be a wired or wireless network (e.g., network(s) 120), or any of a variety of other communications links. Communications channel 250 carries signals 255 and may be implemented using a variety of wired or wireless communications means, including wire or cable, fiber optics, a conventional telephone line, a cellular phone link, a wireless data communications link, a radio frequency ("RF") link, or an infrared link, to name a few.
[0028] Computer programs (e.g., computer executable code implementing the disclosed software) are stored in main memory 215 and / or secondary memory 220. Computer programs may also be received via communications interface 240 and stored in main memory 215 and / or secondary memory 220. Such computer programs, when executed, enable system 200 to perform various functions of the disclosed embodiments as described elsewhere herein.
[0029] As used herein, the term "computer-readable medium" is used to refer to any non-transitory computer-readable storage medium used to provide computer-executable code and / or other data to or within system 200. Examples of such media include main memory 215, secondary memory 220 (including internal memory 225, removable media 230, and external storage media 245), and any peripheral devices communicatively coupled to communication interface 240 (including a network information server or other network device). These non-transitory computer-readable media are means for providing executable code, programming instructions, software, and / or other data to system 200.
[0030] In one embodiment implemented using software, the software may be stored on a computer readable medium and loaded into the system 200 via the removable medium 230, the I / O interface 235, or the communication interface 240. In one such embodiment, the software is loaded into the system 200 in the form of electrical communication signals 255. The software, when executed by the processor 210, preferably causes the processor 210 to perform one or more of the processes and functions described elsewhere herein.
[0031] In one embodiment, I / O interface 235 provides an interface between one or more components of system 200 and one or more input and / or output devices. Exemplary input devices include, but are not limited to, sensors, keyboards, touch screens or other touch-sensitive devices, cameras, biometric sensing devices, computer mice, trackballs, pen-based pointing devices, and the like. Examples of output devices include, but are not limited to, other processing devices, printers, cathode ray tubes (CRTs), plasma displays, light emitting diode (LED) displays, liquid crystal displays (LCDs), printers, vacuum fluorescent displays (VFDs), surface conduction electron emission displays (SEDs), field emission displays (FEDs), and the like. In some cases, input and output devices may be combined, such as in the case of a touch panel display (e.g., in a smartphone, tablet, or other mobile device).
[0032] The system 200 may also include optional wireless communication components that facilitate wireless communication over a voice network and / or a data network (e.g., in the case of user system 130). The wireless communication components include an antenna system 270, a radio system 265, and a baseband system 260. In the system 200, radio frequency (RF) signals are transmitted and received wirelessly by the antenna system 270 under the control of the radio system 265.
[0033] In one embodiment, antenna system 270 may include one or more antennas and one or more multiplexers (not shown) that perform a switching function to provide transmit and receive signal paths for antenna system 270. In the receive path, a received RF signal may be coupled from the multiplexer to a low noise amplifier (not shown), which amplifies the received RF signal and transmits the amplified signal to radio system 265.
[0034] In alternative embodiments, the radio system 265 may include one or more radios configured to communicate over various frequencies. In one embodiment, the radio system 265 may combine a demodulator (not shown) and a modulator (not shown) into one integrated circuit (IC). The demodulator and modulator may also be separate components. In the input path, the demodulator removes the RF carrier signal leaving a baseband received audio signal, which is transmitted from the radio system 265 to the baseband system 260.
[0035] If the received signal contains audio information (e.g., for a user system with a smartphone), the baseband system 260 decodes the signal and converts it to an analog signal. The signal is then amplified and transmitted to a speaker. The baseband system 260 also receives analog audio signals from a microphone. These analog audio signals are converted to digital signals and encoded by the baseband system 260. The baseband system 260 also encodes the digital signals for transmission and generates a baseband transmit audio signal that is routed to a modulator portion of the radio system 265. The modulator mixes the baseband transmit audio signal with an RF carrier signal and generates an RF transmit signal that may be routed to the antenna system 270 and passed through a power amplifier (not shown). The power amplifier amplifies the RF transmit signal and routes it to the antenna system 270, where the signal is switched to an antenna port for transmission.
[0036] The baseband system 260 is also communicatively coupled to the processor(s) 210. The processor(s) 210 can access the data storage areas 215 and 220. The processor(s) 210 are preferably configured to execute instructions (i.e., computer programs, such as the disclosed software), which may be stored in the main memory 215 or the secondary memory 220. Computer programs may also be received from the baseband processor 260 and stored in the main memory 210 or the secondary memory 220, or executed upon receipt. Such computer programs, when executed, may enable the system 200 to perform various functions of the disclosed embodiments.
[0037] 2. Process Overview An embodiment of a process for machine learning assisted automatic taxonomy for web data will now be described in detail. It should be understood that the described process can be embodied in one or more software modules executed by one or more hardware processors (e.g., processor 210), for example, as a software application (e.g., server application 112, client application 132, and / or a distributed application including both server application 112 and client application 132), and can be executed entirely by processor(s) of platform 110, entirely by processor(s) of user system(s) 130, or distributed across platform 110 and user system(s) 130, such that some parts or modules of the software application are executed by platform 110 and other parts or modules of the software application are executed by user system(s) 130. The described process can be implemented as instructions expressed in source code, object code, and / or machine code. These instructions may be executed directly by hardware processor(s) 210, or alternatively, may be executed by object code operating between a virtual machine and hardware processor 210. In addition, the disclosed software may be built on or interfaced with one or more existing systems.
[0038] Alternatively, the described processes may be implemented as hardware components (e.g., general purpose processors, integrated circuits (ICs), application specific integrated circuits (ASICs), digital signal processors (DSPs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic, etc.), a combination of hardware components, or a combination of hardware and software components. To clearly illustrate the interchangeability of hardware and software, various exemplary components, blocks, modules, circuits, and steps are described herein generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the particular application and design constraints imposed by the overall system. Those skilled in the art may implement the described functionality in various ways for each particular application, and such implementation decisions should not be interpreted as causing a departure from the scope of the invention. In addition, the grouping of functions within a component, block, module, circuit, or step is for ease of description. Certain functions or steps may be moved from one component, block, module, circuit, or step to another component, block, module, circuit, or step without departing from the invention.
[0039] Further, although the processes described herein are shown with a particular arrangement and order of sub-processes, each process may be implemented with fewer, more, or different sub-processes, and with a different arrangement and / or order of the sub-processes. In addition, it should be understood that any sub-process that is not dependent on the completion of another sub-process may be performed before, after, or in parallel with other independent sub-processes, even if the sub-processes are described or illustrated in a particular order.
[0040] 3 illustrates a process 300 for automating taxonomy of web data, including both predictive model training and operational modes, according to one embodiment. In one embodiment, process 300 is implemented by server application 112 on platform 110. However, in alternative embodiments, process 300 may be implemented by client application 132 on user system 130, or as a distributed software application with some sub-processes implemented by server application 112 and other sub-processes implemented by client application 132. In either case, process 300 may be performed in real time as web data is received, after a certain amount of web data has been received, in response to a user action, or the like, repetitively or periodically (e.g., daily).
[0041] In sub-process 305, web data including one or more activity records is received or otherwise obtained. The web data may be obtained from one or more external systems 140. For example, the web data may be received from a marketing automation platform (MAP), a customer relationship management (CRM) system, an external website, etc. In particular, the external system 140 may track engagement with online resources such as web pages and store these engagements as activity records. In one embodiment, a beacon may be stored and executed on a website hosted by the external system 140 to track the activity and IP addresses of visitors to the website and store the tracked data as activity records. The external system 140 may then communicate these activity records to the platform 110 over the network(s) 120. For example, the external system 140 may "push" activity records to the platform 110 via the platform 110's API. Alternatively, the platform 110 may "pull" activity records from the external system 140 via the external system's 140's API. As another alternative, the activity records may be manually uploaded to the platform 110 by a user via a user account registered with the platform 110. In either case, the activity records may represent online activities such as visits to web pages of the website (e.g., a home page, a company page, a product page, a discussion forum, a search page, a career page, etc.), clicking on a hyperlink (e.g., in an email message of a marketing campaign), submitting an online form on the website (e.g., a search query, a contact form, a request for a price quote for a product, a job submission, a trade show registration, a product test, etc.), downloading an electronic document from the website (e.g., a white paper, etc.), playing media on the website (e.g., a video, a web image, a demonstration, etc.), subscribing or unsubscribing from a news or other media feed, etc.
[0042] Each activity record may include a Uniform Resource Locator (URL) that represents the online resource accessed as the activity. FIG. 4 illustrates components of an exemplary URL, according to one embodiment. In particular, the exemplary URL includes, from left to right, a protocol (e.g., HTTP, HTTPS, FTP, etc.), a subdomain, a domain, a port, a path, a query, one or more parameters, and / or one or more fragments. It should be understood that not all URLs include all of these components. Rather, a given URL may include one or more components. However, generally, all URLs include at least a protocol and a domain name, depending on the quality of the data. Any of the other components, including the subdomain, port, path, query, parameter(s), and fragment, may or may not be present in a given URL, depending on the online resource identified by the URL.
[0043] Each activity record may also include metadata associated with the URLs in that activity record. In an embodiment where the activity record is communicated from an external system 140, the metadata may be included in the native activity record from the external system 140. Alternatively, the metadata may be added (e.g., by a server application 112 on the platform 110) based on the URLs in the activity record after receiving the activity record from the external system 140. For example, the metadata for each URL may be scraped by a web crawler that accesses each URL. In particular, when the URL is a web page, natural language processing may be used to analyze the visible embedded text of the web page to derive the metadata. This analysis may include extracting fields (e.g., title, description, keywords, meta tags, etc.) from the web page (e.g., including content and non-content embedded in the source code), counting frequency statistics of words in the text, calculating word density based on sentences, calculating sentence density based on paragraphs, etc. This analysis may also utilize computer vision to identify paragraphs and continuous text contours. Metadata may then be added to the activity record to enrich the activity record with more information about the URL.
[0044] Regardless of how it is obtained, the metadata may include multiple fields including, but not limited to, a title of the online resource at each URL, a description of the online resource at each URL, keyword(s) associated with the online resource at each URL, event attributes (e.g., HTML event attributes) associated with accessing the online resource at each URL, and / or meta tag(s) associated with the online resource at each URL. Using the example of a web page as the online resource at each URL, the title is a character string that is typically displayed as a heading on a browser tab when the web page is viewed in a browser. The description is a character string that is typically embedded in the source code (e.g., HTML) of the web page, may or may not be visible when the web page is viewed in a browser, and is often used for search engine discovery and optimization. Keywords and meta tags are similar to descriptions, but are typically embedded in the source code of the web page as words or phrases rather than prose, and are typically not visible when the web page is viewed in a browser. Keywords and meta tags are used for search engine discovery and optimization. The event attributes represent events that occurred while the web page was viewed in a browser. These events generally represent viewer interactions with the web page (e.g., HTML event attributes such as onmouseover, onclick, onsubmit, onfocus, etc.).
[0045] Regardless of how the web data is structured or otherwise obtained, the web data may include multiple activity records, each including a URL and metadata associated with the online resource at that URL. In embodiments in which the web data is processed periodically (e.g., daily) or in response to user actions, the web data may be stored in the data warehouse (e.g., in database 114 on platform 110) until it is time to process it. Thus, the web data may be collected and processed in batches. The collection and processing may be performed independently on web data collected for each individual user account using platform 110, or collectively on aggregated web data collected for multiple user accounts using platform 110. When the web data is processed, it may be retrieved from the data warehouse and processed by sub-processes 310 and 320. As shown, sub-processes 310 and 320 are independent of one another and therefore may be performed in parallel or serially.
[0046] As described above, the web data may include multiple activity records, each of which includes a URL of an accessed online resource and metadata about the access of and / or interaction with that online resource. Sub-process 310 operates on the URLs in each of the activity records in the web data. Specifically, sub-process 310 may parse each URL to separate the URL into separate and distinct components (e.g., protocol, sub-domain, domain, port, path, query, parameters, and / or fragment) and provide each of these URL components to sub-process 315 for further processing. Not all of the URL components are provided to sub-process 315 for further processing. For example, in one embodiment, only the sub-domain, path, query, parameter(s), and fragment(s) are provided to sub-process 315 for further processing. Other URL components may be excluded from this further processing.
[0047] In sub-process 315, the URL components are pre-processed. This pre-processing may include cleaning or normalizing the text of the URL components, including removing syntactic impurities within the text of each URL component. For example, pre-processing may include, but is not limited to, one or more (potentially including all) of the following steps for each of the URL components: Expanding English contractions in URL components. For example, the contraction "hasn't" can be expanded to "has not", the contraction "I'd" can be expanded to "I would", and so on. Expand words in camel case in URL components. For example, the term "loginPage" can be expanded to "login Page", the term "helloWorld" can be expanded to "hello World", and so on. · Expand acronyms. Remove unnecessary characters from URL components. For example, characters such as " / ", "*", "&", "%", "$", and "#" may be removed. Remove commonly used or "stop" words from URL components. For example, you can remove words like "the," "for," "an," "and," etc. Remove business identified specific words and / or general stop words from URL components. For example, terms such as "bmw", "cad", "ptc" can be removed as business identified specific words. Terms such as "html", "www", "aspx" can be removed as general stop words. Remove pure numbers from URL components. Remove cookie strings, hash strings, or similar data from URL components. For example, strings of any characters such as "dd3i4837Hg7268t%$$#6234" may be removed. · Remove words that contain less than 3 letters. Remove extra spaces and tabs. -Apply lowercase to all characters.
[0048] The result of the preprocessing steps in sub-process 315 is normalized URL components for all URLs in all activity records. The sequence in which the preprocessing steps are performed can directly affect the performance of the model, so the preprocessing steps should be performed in the same sequence for URL components in all activity records. It should also be understood that because there is a significant amount of variation in URL text patterns, not all of the preprocessing steps are applied to all URL components.
[0049] For each URL in each activity record, after all URL components have been normalized for that URL by subprocess 315, subprocess 320 extracts URL features from the normalized URL components for that URL. It should be appreciated that the features may represent significant pattern(s) and / or structure(s). The extracted features may be collectively represented as a feature string that includes one or more keywords. Special case examples of features that may be extracted include, but are not limited to, one or more of the following, potentially including all of the following: Conditional use of subdomains: In one embodiment, subdomains are extracted as features (eg, added to the feature string) only if other URL components are empty. Addition of the "search" keyword when URL components (e.g., query and parameters) contain a search pattern. In one embodiment, if a URL component contains a search pattern, the keyword "search" is extracted as a feature (e.g., added to the feature string). For example, for the URL "www.google.com / search?q=ABM", the extracted features may include "'ABM' is being searched". For the URL "www.ptc.com / en / searchresults?q=autocad", the extracted features may include "'autocad' is being searched". (This protocol has been removed in both these examples and all other examples of URLs in this description to comply with the United States Manual of Patent Examining Procedure regarding embedded hyperlinks.) In both examples, the keyword "search" is added to the feature string. Addition of "company name" keyword when URL is a home page pattern. In one embodiment, when the path is empty, the keyword "company name" is extracted as a feature (e.g., added to the feature string). Essentially, when a URL component contains an empty path, sub-process 315 infers that the URL represents a company's home page, and therefore that the domain of the URL represents the name of that company. For example, for the URL "6sense.com / ", the keyword "company name" is added to the feature string to reflect that "6sense.com" is the company's home page and that the domain contains the company's name, "6sense". The addition of other keywords based on one or more other heuristic patterns in one or more URL components. The recognition of patterns and the association of patterns with keywords that exhibit those patterns can be determined empirically over time.
[0050] For each activity record, sub-process 320 concatenates all of the URL features extracted from the URLs in that activity record, for example, into a feature string or other representation. The feature string may include a string of one or more words that represent the URL. It should be appreciated that sub-process 320 generates a set of features for each activity record such that multiple feature sets are generated, each of the multiple feature sets corresponding to a single activity record in the web data. Table 1 below shows some example feature strings that may be output by sub-process 320 for some example URLs in an example activity record. (Again, the protocol has been removed from the URLs.) [Table 1]
[0051] As described above, the web data may include multiple activity records, each of which includes a URL for an accessed online resource and metadata associated with that online resource. Whereas sub-process 310 operates on URLs, sub-process 325 operates on metadata within each of the activity records in the web data. In particular, sub-process 325 pre-processes the metadata. This pre-processing may be the same as or similar to the pre-processing described with respect to sub-process 315. For example, the pre-processing steps applied to URLs in sub-process 315 may be equally applied to metadata in sub-process 325 (e.g., the same steps in the same sequence). The only difference is that sub-process 315 applies pre-processing to text within URL components, whereas sub-process 325 applies pre-processing to text within metadata fields. Thus, the description of sub-process 315 applies equally to sub-process 325, and thus the pre-processing is not redundantly described with respect to sub-process 325.
[0052] For the metadata in each activity record, after all metadata fields have been normalized by sub-process 325, sub-process 330 extracts metadata features from the normalized metadata fields. The extracted features may be collectively represented as a feature string that includes one or more keywords. Feature extraction may include, but is not limited to, one or more (potentially including all) of the following: · Exclude duplicate character strings. In one embodiment, duplicate character strings (e.g., phrases, sentences, etc.) in the metadata are excluded from the metadata features such that only a single instance of each character string is extracted as a metadata feature. For example, a description field in the metadata may contain redundant sentences. Furthermore, a title field or a portion of a title field may be contained within the description field and therefore redundant with respect to the description field. In other words, redundancy may occur across two or more metadata fields. In this case, only a single instance of a character string is extracted for all of the metadata fields. Filter out unsupported languages. In some cases, a metadata field may contain a mix of languages. In one embodiment, words in unsupported languages (e.g., all non-English words in implementations where English is the only supported language) are not extracted as features. It should be understood that one or any multiple languages, including vernacular languages, may be incorporated into the activity record and supported in the extracted features.
[0053] Similar to sub-process 320, for each activity record, sub-process 330 concatenates all of the metadata features extracted from the metadata in that activity record, for example, into a feature string or other representation. The feature string may include a string of one or more words extracted from the metadata. It should be understood that sub-process 330 generates a set of features for each activity record such that multiple feature sets are generated, each of the multiple feature sets corresponding to a single activity record in the web data. Table 2 below shows some example feature strings that may be output by sub-process 330 for some example metadata fields associated with URLs (cross-referenced by "number" values) from Table 1 in an activity record. [Table 2]
[0054] In sub-process 335, for each activity record in the web data, the features extracted from the URLs in that activity record and the features extracted from the metadata in that activity record are concatenated into a final set of features for that activity record. The final set of features for each activity record may include a final feature string that includes both the feature string output by sub-process 320 for that activity record and the feature string output by sub-process 330 for that activity record. Table 3 below shows some example feature strings that may be output by sub-process 335 for some example activity records that include the URL and metadata fields of Tables 1 and 2, respectively (cross-referenced by "number" values). [Table 3]
[0055] The output of sub-process 335 is a set of features for each activity record in the web data. Each set of features may be represented as a feature string, as described above. Alternatively, each set of features may be represented in another manner, such as, for example, a feature vector. Regardless of the particular feature representation used, the features are used to train a model or obtain predictions from a model. If the model is in a training mode (i.e., "Train" in model mode 340), the features are used to train the model starting with sub-process 350. If instead the model is in an operational mode (i.e., "Operate" in model mode 340), the model is applied to the features to generate predictions starting with sub-process 375. It should be appreciated that the training mode should be run at least once to train the model with features for a significant number of activity records prior to deploying the model to an operational mode.
[0056] In one embodiment, the model predicts the class of activity in the taxonomy to which each activity record in the web data belongs based on the features of its activity record. In other words, features, including both URL features and metadata features extracted from the activity record, are input to the model, and the model outputs a predicted classification of the activity record into one of a number of classes representing the taxonomy. In a particular implementation, the taxonomy includes the following classes: "Product Research", "Blog", "Company Research", "Campaign", "Search", "Case Study", "Solution", "White Paper", "Contact", "Demo", "Training", "Product Testing", "Video", "Webinar", "Support", "Home Page", "Career", "Conference / Trade Show", "Pricing", "Community", "Unsubscribe", "Product Research", "Product Landing Page", and "Other". However, it should be understood that this is merely one non-limiting example and other combinations of classes may be implemented according to a desired taxonomy. The classes represent possible activity types, categories, events, etc., represented by the activity records, and collectively represent a taxonomy of web-based activities.
[0057] It should be understood that the output of the model may include a single class (e.g., the class with the highest probability value) or may include a classification vector that includes probability values for each of multiple classes. In an embodiment in which the model outputs a single class, if a single class cannot be determined (e.g., none of the classes are associated with a probability value above a predetermined threshold, two classes have very close probability values, etc.), the model may classify the activity record from the multiple classes into a default or "other" class or may output a null value.
[0058] In sub-process 350, a training dataset is constructed from the features output by sub-process 335 for supervised learning of the model. In particular, the set of features extracted from each activity record in the web data can be annotated or labeled with one of multiple classes in a desired taxonomy to produce an annotated training dataset. In other words, the training dataset includes a set of features each annotated with a ground truth class from multiple classes. In a particular implementation, the training dataset included approximately 5,000 data points (i.e., annotated features) for each of the multiple classes. The web data from which the training dataset was derived was collected from 40 separate user accounts.
[0059] The features of each activity record may be manually annotated by a human who reviews the features of each activity record. In some cases, the ground truth classification may be unambiguous (e.g., the class name is present in the URL or metadata). However, even in these cases, ambiguity may need to be addressed. For example, the URL "6sense.com / webinars / video_talks.mp4" may be classified as either "video" or "webinar" because both class names are present in the URL. In this particular case, the more accurate classification is "webinar."
[0060] Sub-process 355 trains a model using the training data set constructed in sub-process 350. The model may include a machine learning algorithm. For example, in one embodiment, the model includes a neural network having an input layer that accepts as input a set of features of the activity records, one or more hidden layers that transform the input, and an output layer that outputs a probability value for each of the predicted one or more classes of classes. The neural network may be a deep neural network that includes multiple hidden layers. In a particular implementation, the neural network may be a recurrent neural network (RNN) with a long short-term memory (LSTM). The LSTM uses feedback connections to process sequences of data, such as sentences. The neural network may include a regularized linear activation unit (ReLU) as an activation function for one or more of the hidden layers, potentially including all of them, and a softmax function as the final activation function for final classification. A 20% dropout may be used for each layer during training to reduce overfitting and improve generalization error.
[0061] 5 illustrates an example of sub-process 355 in process 300, according to one embodiment. In sub-process 510, a matrix of annotated features in the training dataset is created. This matrix can be defined in terms of mathematical variables X and Y, where X is the independent variable and Y is the dependent variable, where X represents the final feature set (e.g., illustrated in Table 3 as a feature string) and Y represents the ground truth class annotations for the final feature set. Each class annotation can be represented as an integer that uniquely identifies a class within multiple possible classes (e.g., "product research" represented as "0", "blogs" represented as "1", "company research" represented as "2", etc.).
[0062] In sub-process 520, the matrix created in sub-process 510 is vectorized. Vectorization is performed to allow computers and models to more easily process text at a low level. In one embodiment of the vectorization in sub-process 520, each feature string in the matrix is turned into a fixed dimensional vector according to a vector space model to create a text embedding. In particular, if a feature string X i is an N-dimensional vector V i A vectorized function F that outputs V (i.e., F V (X i )=V i ). For example, Fv(“Today is a good day!”)=[V i 1 ,V i 2 ,V i 3 ,…,V i N ]=[0.435,-1.923,-0.553,…,0.123]
[0063] The output of sub-process 520 is an N-dimensional vector V for each annotated set of features in the training dataset. i N is the vectorized function F V It should be understood that n is the number of dimensions in the particular vector space used for i Each of the vector feature strings V is decomposed into a vectorized matrix V i The feature string X from which i The ground truth class Y corresponding to i is annotated with
[0064] Vectorization function F V The choice of F depends on the nature and complexity of the problem. In one embodiment, a language converter such as the Universal Sentence Encoder by Google LLC of Mountain View, Calif., uses a vectorized function F VA language converter is a deep learning model that accepts a natural language sentence as input and outputs an N-dimensional real-valued vector that represents the position of the sentence in an N-dimensional vector space. In particular, each output vector encodes the meaning of the input sentence such that sentences whose vectors are close to each other in the N-dimensional vector space are more similar in meaning than sentences whose vectors are far from each other in the N-dimensional vector space. For the Universal Sentence Encoder, N=512, and each output vector consists of 512 real values. This is just one non-limiting example, and the vectorization function F V It should be understood that other models may be used for
[0065] In sub-process 530, the vectorized matrix is split into three parts, including a training matrix, a validation matrix, and a test matrix. Each of these three matrices is represented by an annotated vector (V i , Y i It should be appreciated that the annotated vectors output by sub-process 520 may include separate and distinct portions of the training matrix, collectively comprising the entire set of annotated vectors output by sub-process 520. The ratio of the sizes of the three matrices may depend on the problem and the data. In a particular implementation, the ratio was 7:1:2, with 70% distinct sets of annotated vectors included in the training matrix, 10% distinct sets of annotated vectors included in the validation matrix, and 20% distinct sets of annotated vectors included in the test matrix.
[0066] Ideally, the training matrix should contain an equal distribution of annotated vectors for all of the classes. If the model is trained on an unequal distribution of annotated vectors, the model may learn to be biased towards the class with a higher distribution. However, depending on how the split is performed in sub-process 530, the training matrix may not contain an equal distribution of annotated vectors or "data points" for all of the classes. In an embodiment in which the data points are evenly distributed in the vectorized matrix, prior to the split in sub-process 530, the vectorized matrix may be split into a training matrix, a validation matrix, and a test matrix such that the data points are at least evenly distributed in the training matrix. In this case, sub-process 540 may be omitted.
[0067] Otherwise, in sub-process 540, a class imbalance weight may be calculated for each class in the plurality of classes. For example, the class imbalance weight w for a given class j may be calculated as j is n max / n j can be calculated as, where n max is the number of data points in the training matrix for the class with the largest number of data points, and n j is the number of data points in the training matrix for a given class j. In this case, the ideal weights w j is 1.0. In other words, if all classes have class imbalance weights w = 1.0, then the training dataset is completely homogeneous. If the training dataset is not completely homogeneous, then the weights w j The model is balanced using the weights, so that the model is not biased towards classes with more data points in the training dataset. In other words, the model is trained equally for each of the multiple classes. Table 4 below shows exemplary class imbalance weights for an exemplary subset of classes according to a particular implementation. [Table 4]
[0068] In sub-process 550, a model is trained on the training matrix. In one embodiment, the weights of a neural network, such as a deep neural network, are trained using the annotated vectors in the training matrix to minimize a loss function. In particular, the deep neural network is trained to classify features of the web data, including both URL features and metadata features, into one of multiple classes of a taxonomy. The trained deep neural network thus represents a deep learning-based classifier. Since there are multiple classes predicted by the model, the parameters of the model may be initialized in a multi-class configuration. A multi-class configuration refers to the problem of classifying instances into one of three or more classes.
[0069] In one embodiment, transfer learning is used to facilitate training in sub-process 550. In transfer learning, an existing model is used as a starting point or source for training a new model. The existing model may have been previously trained to solve a different or similar problem. In this case, the existing model may have been pre-trained for natural language processing. In particular, the neuron weights of a neural network trained for natural language processing may be used as a starting point for training a deep learning-based classifier.
[0070] In one embodiment, a language converter is used as a source for transfer learning. In particular, neuron weights for a base architecture of a trained neural network for an existing language converter, such as Bidirectional Encoder Representations from Converters (BERT), can be frozen. BERT is described in "Attention Is All You Need" by Vaswani et al., 31st Conference on Neural Information Processing Systems (NIPS 2017), arXiv:1706.03762v5, which is incorporated by reference herein as if set forth in its entirety. One or more, typically several, subsequent layers are then added to this base architecture to build a deep neural network that can classify language into multiple specific classes. This process is referred to as "fine-tuning". One advantage of fine-tuning a language converter to build a model is that the layers of the language converter hold information about natural language understanding and sentence interpretation, abstracting the process of breaking sentences into phrases, words, or characters. Thus, this base architecture can interpret inputs. In addition, because language understanding is already addressed by the basic architecture of existing models, transfer learning allows models to be trained with a smaller number of data points: only a sufficient number of data points are needed to train the final layers of the neural network to classify the understood language into specific classes developed for a specific application.
[0071] The goal of training is to minimize the error between the ground truth class (e.g., annotation) and the predicted class (i.e., output by the model). If the predicted class matches the ground truth class, the error is minimized for that prediction. The total error of the model may be determined according to a loss function, so that the goal of training is to minimize the loss function. The loss function may be minimized when the error metric calculated by the loss function falls below a predefined threshold representing the required or desired accuracy of the model, or when the difference or rate of decrease of the error metric from the previous epoch falls below a predefined threshold representing that the loss function cannot be further minimized. In one embodiment, a cross-entropy loss function may be used as the loss function with the Adam optimizer. Training may be performed using, for example, Pytorch or Tensorflow.
[0072] Following an iteration or "epoch" of training in sub-process 550, the trained model is validated on a validation matrix in sub-process 560. In other words, the trained model is applied to the feature vectors in the validation matrix as input to produce a predicted class for each of the feature vectors as output. In sub-process 570, a loss function is calculated to represent the error between the predicted classes of the feature vectors in the validation matrix and their corresponding ground truth classes, represented by the annotations of the feature vectors in the validation matrix. If the loss function is minimized (i.e., "yes" in sub-process 570), sub-process 355 ends. Otherwise, if the loss function is not minimized (i.e., "no" in sub-process 570), another epoch of training is performed in sub-process 550. In other words, the model is retrained on the training matrix in sub-process 550 (e.g., by updating the neuron weights of the neural network) and then revalidated in sub-process 560. Sub-processes 550 and 560 may iterate over multiple epochs until the loss function is minimized (e.g., further iterations cannot reduce the error metric any more, such that a "yes" decision is reached in sub-process 570). In a particular implementation, this training process was performed on a GPU and took as long as three hours to minimize the loss function.
[0073] Returning to FIG. 3, in subprocess 360, the trained and validated model may be evaluated. In particular, the model may be evaluated on the test matrix produced by the partitioning in subprocess 530. It should be understood that the test matrix has not yet been processed by the model because it was not used during training in subprocess 355. The goal of subprocess 360 is to determine whether the model is suitable for operation. Subprocess 360 may be performed manually by a data scientist.
[0074] The evaluation may utilize a metric of the model's accuracy to determine whether the model passes the evaluation in sub-process 360. For example, if the metric meets (e.g., exceeds) a predetermined threshold, the model may be determined to pass the evaluation (i.e., "yes" in sub-process 365). Alternatively, if the metric does not meet the predetermined threshold, the model may be determined to not pass the evaluation (i.e., "no" in sub-process 365).
[0075] In a particular implementation, the multi-class F1 score was used as a metric of the accuracy of the model. The F1 score is a function of precision (also known as positive predictive value) and recall (also known as sensitivity). Precision is the number of true positive results divided by the number of all positive results for a particular class, and recall is the number of true positive results divided by the number of all data points that should have been identified as positive for a particular class. The multi-class F1 score is calculated by combining the F1 scores for each of the classes according to a combination strategy (e.g., micro-average, macro-average, weighted average, etc.). Table 5 below shows an exemplary evaluation using the multi-class F1 score for an exemplary set of classes according to a particular implementation. As shown, the model of this particular implementation has a multi-class F1 score of 0.76, which may be considered sufficient to pass the evaluation (e.g., based on a threshold of 0.75). [Table 5]
[0076] If the model does not pass the evaluation (i.e., "no" in sub-process 365), process 300 can return to sub-process 350 to build a new training data set. In some cases, building a new training data set from features in the same web data may not be sufficient. In this case, sub-process 300 can return to sub-process 305 to obtain new web data.
[0077] If the model passes the evaluation (i.e., "yes" in sub-process 365), the model and its associated parameters (e.g., neuron weights) may be stored in sub-process 370. In particular, the model and its associated parameters may be stored on platform 110, which may include a cloud server, for deployment in an operational mode. The model may also be stored on a shared path in-memory (e.g., database 114) for utilization during the operational mode.
[0078] Before being saved, the model may be streamlined or optimized for performance. For example, in certain implementations, the model is passed through the Open Neural Network Exchange (ONNX) Runtime, which transforms the native model into another format and improves prediction speed (e.g., prediction time is reduced by up to 10x, on average by 3.1x). Advantageously, this allowed the model to be run on a standard CPU during the operation phase, such that a GPU is not required and the model is more portable. Notably, this conversion process only affects how the model is represented. It does not affect the accuracy of the model and may be omitted in other implementations.
[0079] In a model mode of operation, a model and its associated parameters are loaded in sub-process 375. For example, the model may be loaded from memory (e.g., database 114) on platform 110, which may include a cloud server, and configured (if necessary) according to its associated parameters. A reference (e.g., path) to the configured model may then be provided to a subsequent sub-process for application of the loaded model.
[0080] In sub-process 380, the loaded model is applied to the set of features, including concatenated URLs and metadata features, output by sub-process 335 for each activity record in the web data. It should be understood that in the operational mode, these features are not annotated. Before inputting to the model, each set of features may be vectorized in the same manner as sub-process 520. In particular, the feature string X i is an N-dimensional feature vector V that can contain N real values. i A vectorized function F that outputs V (i.e., F V (X i )=V i ). In other words, the format of the input to the model during training should be identical to the format of the input to the model during operation.
[0081] In one embodiment, the model is probabilistic rather than heuristic. Thus, for each feature vector, the model can output both the predicted class of the feature vector and a probability value for the predicted class. The probability value represents the confidence that the predicted class is correct. In one embodiment, the model outputs a probability vector that includes a probability value for each of a number of classes. In this case, the size of the probability vector is the same as the number of classes in the taxonomy, and the probability values in a given probability vector can sum to 1.0. In an alternative embodiment, the model can simply output the class with the highest probability value as the predicted class, along with its highest probability value.
[0082] In sub-process 385, the predictions output by the model in sub-process 380 may be post-processed. In particular, each prediction may be analyzed to determine whether it should be accepted and / or how it should be characterized. Each prediction may be characterized in binary terms as either reliable or unreliable. Sub-process 385 may include determining whether the probability value for the predicted class having the highest probability value meets (e.g., exceeds) a predetermined threshold. If the prediction meets the predetermined threshold, it may be characterized as reliable. Otherwise, if the prediction does not meet the predetermined threshold, it may be characterized as unreliable. The value of the predetermined threshold may be determined during training in sub-process 360 based on the variance of the predicted classes and their corresponding probability values during evaluation.
[0083] In one embodiment, if the prediction meets a predefined threshold, the prediction is associated with a status of "mapped". Alternatively, if the prediction does not meet the predefined threshold, the prediction may be associated with a status of "not mapped". Furthermore, in one embodiment, if the prediction includes two classes with very close probability values (e.g., within 1-3 percentage points, such as a first class with a probability value of 0.51 and a second class with a probability value of 0.49), the prediction may be associated with a status of "not mapped" even if it meets the predefined threshold. In such cases, simply selecting the predicted class with the highest probability value may often result in an unreliable classification. In any case where a prediction is given the "not mapped" status, the predicted class may be automatically overridden to null or the null class, thereby invalidating the model's prediction.
[0084] In any sub-process 390, one or more of the classifications may be confirmed, overridden, and / or manually specified for a given activity record. For example, in one embodiment, the classifications of all predictions assigned a status of "not mapped" may be provided to a user via a graphical user interface (e.g., of the user's user account) for manual classification via one or more inputs in the graphical user interface. The graphical user interface may also include one or more inputs for manually confirming and / or overriding the classifications of predictions assigned a status of "mapped". For example, the graphical user interface may provide a list of all activity records or all unique URLs within the activity records that the user can access for each of the "mapped" and "not mapped" statuses. The user may select an individual entry in the list, and in response to selecting an entry in the list, the graphical user interface may provide details about the entry and one or more inputs (e.g., drop-down menus) to change or specify the class to which the entry belongs, and optionally change the status of the entry, for example, between "mapped" (e.g., if currently classified) or "not mapped" (e.g., if not currently classified) and "don't map". For entries that correspond to an activity or URL that has a status of "mapped," the input for changing the class may be pre-populated with the predicted class for that entry. Similarly, the input for changing the status of an entry may be pre-populated with the current status of the entry. Thus, the graphical user interface makes it easy for the user to identify and correct any classification errors.
[0085] A user can utilize the graphical user interface to perform one or more of the following actions for each activity record or URL, including but not limited to: Override a predicted class with any other one of multiple classes, regardless of their status (e.g., "mapped" or "unmapped"). · Changing the status from "Mapped" or "Not Mapped" to "Don't Map" or vice versa. The "Don't Map" status indicates that the user intends to discard or ignore the activity record or URL. Therefore, an activity record or URL with a "Don't Map" status is not propagated to sub-process 395. Change the status from "Not Mapped" to "Mapped" or vice versa. In one embodiment, the status includes a "mapped but needs confirmation" status, which indicates that explicit attention by the user is requested. The "mapped but needs confirmation" status may be assigned to activity records whose highest probability value is very close (e.g., within 1-3 percentage points) to the second highest probability value, such that the predicted class may be unreliable. The user may review each activity record with a "mapped but needs confirmation status" and confirm or change the class associated with that activity record. Once the user confirms or changes the class, the activity record's status may be automatically updated to "mapped."
[0086] 6A and 6B show exemplary overview screen 600 and activity screen 650, respectively, of a graphical user interface in which the predicted class of an activity record can be viewed, confirmed, specified, and / or overridden, according to one embodiment. Overview screen 600 may include an information area 610 that informs the user if there are any action items that need to be addressed. Overview screen 600 may also include an activity summary 620, including a URL summary 622, showing the number of data points with each status (e.g., "mapped," "not mapped," and "don't map").
[0087] The activity screen 650 may include a list 660 of activity records or URLs. The list 660 may be filterable (e.g., so that a user may view all entries, entries from past months, etc.) and / or sortable (e.g., by one or more of the list's columns). It should be appreciated that depending on the number of entries in the list 660 and / or user preferences, the list 600 may be paginated according to a maximum number of entries per page. Each entry in the list 660 may include a checkbox (e.g., for selecting the entry), a status, a title associated with the URL shown in the activity record represented by the entry, and / or the URL itself. The status may be represented by an icon 662. For example, in the illustrated embodiment, icon 662A indicates a status of "not mapped," icon 662B indicates a status of "mapped," and icon 662C indicates a status of "mapped but needs confirmation."
[0088] Each entry in the list 660 may be selectable. When a user selects an entry, the graphical user interface may populate a frame 670 with details about the activity record or URL represented by the selected entry. These details may include the status of the class (e.g., “mapped”, “not mapped”, “mapped but needs confirmation”, or “don't map”), an input 672 for selecting a class from a plurality of classes, a title associated with the URL, the URL itself, etc. The input 672 may include a drop-down menu with selectable identifiers for all of a plurality of classes. Thus, the user may change the class associated with the activity record or URL as needed or desired. When the user is finished updating the entries in the list 660 (e.g., confirming the class, changing the class, overriding the class, etc.), the user may select a “publish” input 680 to publish the updates to a data warehouse (e.g., in the database 114 of the platform 110).
[0089] In sub-process 395, the post-processed predictions are stored in the data warehouse. Additionally, any confirmations and / or overrides are stored in the data warehouse along with the predictions. In one embodiment, predictions may be stored outside of the data warehouse until a user publishes them (e.g., by selecting input 680). Thus, a user may review, confirm, and / or override the predicted classes before the activity records or URLs, along with their associated classes, are stored in the data warehouse. It should be appreciated that some of the activity records or URLs may be discarded without being stored in the data warehouse (e.g., those associated with a "do not map" status).
[0090] In one embodiment, one or more (potentially including all) of the stored associations between URLs and classes may be incorporated into a lookup table (e.g., in database 114 of platform 110). The lookup table may be indexed according to URL so that previously predicted classes or user-specified classes may be easily searched for based on the URL. In such an embodiment, when an activity record is received in the operational phase, a lookup may be performed (e.g., between sub-processes 305 and 310) using the URL in the activity record before extracting any features or applying a model to those extracted features. If the lookup returns a class, the activity record may be associated with that class without performing any subsequent processing for the activity record. This increases the efficiency of process 300 by not requiring the application of a model when the same URL has already been seen and classified, and by propagating any user-specified class (e.g., when the activity record could not be reliably classified or specified as an override of the predicted class) to future encounters with previously seen URLs.
[0091] Once stored in the data warehouse, the activity records or URLs may be used for one or more downstream functions, such as predicting purchase intent and purchase stages for the visitor represented by the activity record, as discussed in more detail in the related patent applications. For example, once assigned to an activity record, the various classes within the taxonomy may be used to weight the activity represented by the activity record for sales forecasting algorithms and / or intent models. In this case, some classes of activity within the taxonomy that are more indicative of future purchases or particular purchase stages may be weighted higher than other classes of activity within the taxonomy that are less indicative of future purchases or particular purchase stages. As an example, website visitor activity classified as "pricing" is more indicative of future purchases than website visitor activity classified as "home page," and therefore should be weighted higher in an algorithm predicting the likelihood that the visitor is about to make a purchase. Advantageously, the disclosed model provides a computer with artificial intelligence to interpret activities, enabling the computer to understand how those activities may affect a purchase decision.
[0092] The above description of the disclosed embodiments is provided to enable those skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles described herein may be applied to other embodiments without departing from the spirit or scope of the present invention. It should therefore be understood that the description and drawings presented herein represent presently preferred embodiments of the present invention, and thus represent the subject matter broadly contemplated by the present invention. It is further understood that the scope of the present invention fully encompasses other embodiments that may become apparent to those skilled in the art, and thus the scope of the present invention is not limited.
[0093] Combinations described herein, such as "at least one of A, B, or C," "one or more of A, B, or C," "at least one of A, B, and C," "one or more of A, B, and C," and "A, B, C, or any combination thereof," include any combination of A, B, and / or C, and may include multiples of A, multiples of B, or multiples of C. Specifically, combinations such as "at least one of A, B, or C," "one or more of A, B, or C," "at least one of A, B, and C," "one or more of A, B, and C," and "A, B, C, or any combination thereof" may be A only, B only, C only, A and B, A and C, B and C, or A and B and C, and any such combination may contain one or more members of its components A, B, and / or C. For example, a combination of A and B may include one A and multiple Bs, multiple As and one B, or multiple As and Bs.
Claims
1. Using at least one hardware processor, During a training mode, training the model to predict a class from a plurality of classes in a taxonomy of web-based activities based on a training dataset including a plurality of annotated features, each of the plurality of annotated features including one or more features derived from a uniform resource locator (URL) of an online resource and metadata associated with the online resource, and a ground truth class assigned to the one or more features; During operation mode, obtaining web data including one or more activity records, each of the one or more activity records including a URL of an online resource accessed by a visitor and metadata associated with the online resource; For each of the one or more activity records: extracting a set of one or more features from the URL and the metadata in the activity record; applying the trained model to the one or more feature sets to predict a class associated with the one or more feature sets from the plurality of classes in the taxonomy; and storing the predicted class in association with the URL in the activity record.
2. Extracting a set of one or more features from the URL and the metadata includes: deriving one or more keywords from the URL and the metadata; and transforming the one or more keywords into a vector according to a vectorization function.
3. The method of claim 2 , wherein the vector has a fixed number of dimensions and represents an embedding of the one or more keywords into a vector space having the fixed number of dimensions.
4. The method of claim 3 , wherein the vectorization function is a language transformer.
5. The method of claim 3 , wherein the vector comprises real values for each of the fixed number of dimensions.
6. Extracting a set of one or more features from the URL includes: Parsing the URL into a number of components; and deriving one or more keywords for inclusion in the set of one or more features based on at least one pattern in the plurality of components.
7. 7. The method of claim 6, wherein extracting a set of one or more features from the URL further comprises pre-processing the plurality of components to normalize text within the plurality of components after parsing the URL and prior to deriving one or more keywords.
8. 7. The method of claim 6, wherein deriving one or more keywords for inclusion in the set of one or more features comprises adding subdomains within the plurality of components to the set of one or more features only when one or more other components of the plurality of components are empty.
9. 7. The method of claim 6, wherein deriving one or more keywords to be included in the set of one or more features comprises adding a keyword to the set of one or more features that indicates a search if a search pattern is present in the plurality of components.
10. 7. The method of claim 6, wherein deriving one or more keywords to be included in the set of one or more features comprises adding a keyword indicating a company name to the set of one or more features if a home page pattern is present in the plurality of components.
11. 2. The method of claim 1 , wherein extracting a set of one or more features from the metadata comprises extracting character strings from one or more fields in the metadata without including duplicate character strings in the set of one or more features.
12. The method of claim 1 , wherein the model comprises a deep neural network.
13. 13. The method of claim 12, wherein training the model includes adding one or more layers to an existing neural network trained for natural language processing, while neuron weights in one or more layers of the existing neural network are frozen.
14. The trained model outputs both the predicted class and a probability value for the predicted class, and the method includes using the at least one hardware processor during the operational mode to, for each of the one or more activity records: assigning a mapped status to the URL in the activity record if the probability value for the predicted class meets a threshold; 13. The method of claim 12, further comprising: if the probability value for the predicted class does not meet the threshold, assigning an unmapped status to the URL in the activity record.
15. The method includes using the at least one hardware processor: generating, for each of the URLs assigned the unmapped status, a graphical user interface including one or more inputs for specifying one of the classes within the taxonomy that is associated with the URL; 15. The method of claim 14, further comprising: in response to receiving a designation of one of the classes in the taxonomy associated with one of the URLs to which the unmapped status has been assigned, storing the designated class in association with the one URL and switching the unmapped status to the mapped status.
16. 2. The method of claim 1, further comprising: using the at least one hardware processor to generate a graphical user interface including one or more inputs for changing any one or more of the stored predicted classes associated with the URLs in the activity record to an override class, and at least one input for storing any override classes and any non-overridden predicted classes in association with their respective URLs in a data warehouse.
17. 17. The method of claim 16, further comprising: using the at least one hardware processor to generate a lookup table from the data warehouse, the lookup table indexing classes in the data warehouse by URLs associated with those classes in the data warehouse.
18. using the at least one hardware processor, for each of the one or more activity records: performing a lookup in the lookup table using the URL in the activity record prior to extracting the set of one or more features; if the lookup returns a class, storing the class in association with the URL in the activity record without extracting the set of one or more features and without applying the trained model; 20. The method of claim 17, further comprising: if the lookup does not return a class, extracting the set of one or more features and applying the trained model.
19. 1. A system comprising: at least one hardware processor; and one or more software modules, which when executed by the at least one hardware processor: During a training mode, training the model to predict a class from a plurality of classes in a taxonomy of web-based activities based on a training dataset including a plurality of annotated features, each of the plurality of annotated features including one or more features derived from a uniform resource locator (URL) of an online resource and metadata associated with the online resource, and a ground truth class assigned to the one or more features; During operation mode, obtaining web data including one or more activity records, each of the one or more activity records including a URL of an online resource accessed by a visitor and metadata associated with the online resource; For each of the one or more activity records: extracting a set of one or more features from the URL and the metadata in the activity record; applying the trained model to the one or more feature sets to predict a class associated with the one or more feature sets from the plurality of classes in the taxonomy; and storing the predicted class in the activity record in association with the URL.
20. A non-transitory computer-readable medium having instructions stored thereon that, when executed by a processor, cause the processor to: During a training mode, training the model to predict a class from a plurality of classes in a taxonomy of web-based activities based on a training dataset including a plurality of annotated features, each of the plurality of annotated features including one or more features derived from a uniform resource locator (URL) of an online resource and metadata associated with the online resource, and a ground truth class assigned to the one or more features; During operation mode, obtaining web data including one or more activity records, each of the one or more activity records including a URL of an online resource accessed by a visitor and metadata associated with the online resource; For each of the one or more activity records: extracting a set of one or more features from the URL and the metadata in the activity record; applying the trained model to the one or more feature sets to predict a class associated with the one or more feature sets from the plurality of classes in the taxonomy; and storing the predicted class in the activity record in association with the URL.
Citation Information
Cited By
Information generation device, information generation method, computer program, and learning model
JP2026167988A
Information generation device, information generation method, computer program, and learning model
JP7708484B1
