# US 2021/0173722 A1 · Systems and methods for improved server-side contextual page analysis

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0173722 A1
- Document ID: US20210173722A1
- Status: Published application
- Kind: A1
- Application number: 17/116,599
- Filed: 2020-12-09
- Published: 2021-06-10
- Earliest claimed: 2019-12-10
- Assignees: GumGum, Inc.
- Applicants: GumGum, Inc.
- Inventors: Kenneth Weiner
- Web page: https://patentgrep.com/patent/US20210173722A1

## CPC

- G06Q 30/0277: {Online advertisement}
- G06F 9/54: Interprogram communication
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06F 18/24: Classification techniques
- G06F 40/143: Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
- G06F 40/205: Parsing
- G06F 40/30: Semantic analysis
- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 20/00: Machine learning
- G06Q 30/0251: Targeted advertisements
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/82: using neural networks
- G06N 3/045: Combinations of networks
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Systems and methods are described for server-side contextual analysis of content available at a given uniform resource identifier (URI), which utilizes headless browser techniques to analyze a more complete and accurate version of page content than using existing techniques. For example, systems and methods are described for performing contextual analysis of content that would typically be displayed to a client device but is not included in an HTML file or other initial page source file available at the initially provided URI. The contextual analysis performed may include analyzing text using natural language processing and analyzing images using computer vision techniques.

## Claims

### Claim 1

A computer system comprising:
memory; and
a processor in communication with the memory and configured with processor-executable instructions to perform operations comprising:
receiving, at a server, an application programming interface (API) request to perform contextual analysis of a page, wherein the page is identified by a uniform resource identifier (URI);
initiating execution of a headless content extractor by the server, wherein the headless content extractor is configured to extract content included in or referenced in the page, wherein the content includes text formatted in a HyperText Markup Language (HTML) format and one or more images, wherein at least a portion of the content extracted is not included in an initial file stored at the URI but is requested from an external system over a network based on at least one of (a) execution by the headless content extractor of code included in the initial file or (b) a reference in HTML of the initial file to an additional URI;
performing contextual analysis of the content extracted by the headless content extractor, wherein performing the contextual analysis comprises (c) analyzing text of the content using natural language processing and (d) analyzing the one or more images using one or more computer vision techniques; and
generating a response to the API request that includes results of the contextual analysis, wherein the results are based at least in part on the analyzing of the text and the analyzing of the one or more images.

### Claim 2 (depends on 1)

The computer system of claim 1, wherein the content extracted by the headless content extractor includes one or more videos, and wherein performing the contextual analysis of the content includes analyzing at least a portion of the one or more videos using one or more machine learning models that implement computer vision techniques.

### Claim 3 (depends on 1)

The computer system of claim 1, wherein the results of the contextual analysis included in the response to the API request comprise one or more keywords.

### Claim 4 (depends on 3)

The computer system of claim 3, wherein the one or more keywords include at least one of (a) a topic discussed in the text of the content extracted by the headless content extractor, (b) a real world event referenced in the text of the content extracted by the headless content extractor, or (c) a name of an object depicted in the one or more images.

### Claim 5 (depends on 1)

The computer system of claim 1, wherein the headless content extractor comprises a headless browser that processes at least HTML of the page to produce output without causing display of the output.

### Claim 6 (depends on 5)

The computer system of claim 5, wherein the headless browser blocks advertisement content, such that the content extracted by the headless content extractor excludes content hosted by or associated with an advertisement service.

### Claim 7 (depends on 1)

The computer system of claim 1, wherein the processor is further configured to perform additional operations comprising:
receiving an indication that the page is being viewed at a user device;
selecting an advertisement to present on the page based at least in part on the results of the contextual analysis;
assembling a package that includes one or more media assets and additional code configured for execution at the user device and which causes the user device to present the advertisement for display within the page; and
sending, over a network, the package to the user device.

### Claim 8 (depends on 7)

The computer system of claim 7, wherein the package comprises HTML, JavaScript, JavaScript Object Notation (“JSON”) data, and one or more images that are positioned for display by the user device according to the additional code in the package.

### Claim 9 (depends on 1)

The computer system of claim 1, wherein the processor is further configured to perform additional operations comprising:
determining that the page is not appropriate for presenting advertisements based at least in part on contextual analysis of the portion of the content that is not included in the initial file stored at the URI but is requested from the external system, wherein the page is determined not to be appropriate for presenting advertisements based on a determination that the portion of the content includes at least one of adult content or illegal content; and
including, in the response to the API request, a value indicating that the page is not appropriate for presenting advertisements.

### Claim 10

A computer-implemented method comprising:
receiving, at a server, a request to perform contextual analysis of a page, wherein the page is identified by a uniform resource identifier (URI);
initiating execution of a headless content extractor by the server, wherein the headless content extractor is configured to extract content included in or referenced in the page, wherein the content includes text formatted in a HyperText Markup Language (HTML) format and one or more images, wherein at least a portion of the content extracted is not included in an initial file stored at the URI but is requested from an external system over a network based on at least one of (a) execution by the headless content extractor of code included in the initial file or (b) a reference in HTML of the initial file to an additional URI hosted by the external system;
performing contextual analysis of the content extracted by the headless content extractor, wherein performing the contextual analysis comprises (c) analyzing text of the content using natural language processing and (d) analyzing the one or more images using one or more computer vision techniques; and
storing, in a data store accessible to the server, keywords associated with the page determined from the results of the contextual analysis, wherein the keywords are based at least in part on the analyzing of the text and the analyzing of the one or more images, wherein the keywords are associated in the data store with the URI.

### Claim 11 (depends on 10)

The computer-implemented method of claim 10, wherein the content extracted by the headless content extractor includes one or more videos, and wherein performing the contextual analysis of the content includes analyzing at least a portion of the one or more videos using one or more machine learning models that implement computer vision techniques.

### Claim 12 (depends on 10)

The computer-implemented method of claim 10, wherein the one or more keywords include at least one of (a) a topic discussed in the text of the content extracted by the headless content extractor, (b) a real world event referenced in the text of the content extracted by the headless content extractor, or (c) a name of an object depicted in the one or more images.

### Claim 13 (depends on 10)

The computer-implemented method of claim 10, wherein the headless content extractor comprises a headless browser that processes at least HTML of the page to produce output without causing display of the output.

### Claim 14 (depends on 13)

The computer-implemented method of claim 13, wherein the headless browser blocks advertisement content, such that the content extracted by the headless content extractor excludes content hosted by or associated with an advertisement service.

### Claim 15 (depends on 10)

The computer-implemented method of claim 10 further comprising:
receiving an indication that the page is being viewed at a user device;
selecting an advertisement to present on the page based at least in part on the results of the contextual analysis;
assembling a package that includes one or more media assets and additional code configured for execution at the user device and which causes the user device to present the advertisement for display within the page; and
sending, over a network, the package to the user device.

### Claim 16 (depends on 10)

The computer-implemented method of claim 10 further comprising:
determining that the page is not appropriate for presenting advertisements based at least in part on contextual analysis of the portion of the content that is not included in the initial file stored at the URI but is requested from the external system; and
storing, in the data store accessible to the server, a value indicating that the page is not appropriate for presenting advertisements.

### Claim 17 (depends on 16)

The computer-implemented method of claim 16 further comprising:
receiving, at the server, a subsequent request for an advertisement to present at a client device in association with the page, wherein the subsequent request identifies the page by the URI;
retrieving from the data store, based on the URI, the value indicating that the page is not appropriate for presenting advertisements; and
determining not to send any advertisement content to the client device in response to the subsequent request based on the value.

### Claim 18

A computer-readable, non-transitory storage medium storing computer executable instructions that, when executed by one or more computer systems, configure the one or more computer systems to perform operations comprising:
receiving a request to perform contextual analysis of a page, wherein the page is accessible over a network via a uniform resource identifier (URI);
initiating execution of a headless content extractor, wherein the headless content extractor is configured to extract content included in or referenced in the page without causing display of the content, wherein the content includes text formatted in a HyperText Markup Language (HTML) format and one or more images, wherein at least a portion of the content extracted is not included in an initial file stored at the URI but is requested from an external system over the network based on each of (a) execution by the headless content extractor of code included in the initial file and (b) a reference in HTML of the initial file to an additional URI hosted by the external system;
performing contextual analysis of the content extracted by the headless content extractor, wherein performing the contextual analysis comprises (c) analyzing text of the content using natural language processing and (d) analyzing the one or more images using one or more computer vision techniques; and
storing, in an electronic data store, keywords associated with the page determined from the results of the contextual analysis, wherein the keywords are based at least in part on the analyzing of the text and the analyzing of the one or more images, wherein storing the keywords includes associating the keywords with the URI in the electronic data store.

### Claim 19 (depends on 18)

The computer-readable, non-transitory storage medium of claim 18, wherein the computer executable instructions implement at least a portion of an application programming interface (API) configured to receive requests from one or more advertising platforms, wherein the keywords are provided via the API to a first advertising platform in response to a programmatic bid request for an advertisement received from the first advertising platform.

### Claim 20 (depends on 18)

The computer-readable, non-transitory storage medium of claim 18, wherein the analyzing the one or more images comprises processing features of the image data of the one or more images within one or more convolutional neural networks trained to identify objects in images, wherein output of the convolutional neural networks comprises a classification label associated with one of the keywords associated with the page.
