# US 2025/0094720 A1 · Alt text validation system

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

- Number: US 2025/0094720 A1
- Document ID: US20250094720A1
- Status: Published application
- Kind: A1
- Application number: 18/468,379
- Filed: 2023-09-15
- Published: 2025-03-20
- Earliest claimed: 2023-09-15
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Meshack Kokonya MUSUNDI; Jia MA; Victor Onyango ORIKO
- Web page: https://patentgrep.com/patent/US20250094720A1

## CPC

- G06F 40/30: Semantic analysis
- G06F 16/951: Indexing; Web crawling techniques
- G06F 40/194: Calculation of difference between files
- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Validation of alt text for images in web pages includes extracting image data from the web pages, the image data including source data and alt text data for a plurality of image elements in the web pages. Natural language descriptions of the image elements are generated by providing images defined by the source data to a computer vision component. Prompts are then generated for a semantic comparison model. The prompts include the natural language descriptions of image elements and the alt text for the image elements. The semantic comparison model is trained to output similarity scores for the prompts. Each of the similarity scores is indicative of a similarity between the natural language description and the alt text data for the image element associated with each prompt. Image elements having inaccurate alt text can then be determined based the similarity score.

## Claims

### Claim 1

An alt text validation system comprising:
a processor; and
a memory in communication with the processor, the memory comprising executable instructions that, when executed by the processor alone or in combination with other processors, cause the alt text validation system to perform an alt text audit process, the alt text audit process including:
extracting image data from at least one web page, the image data including source data and alt text data for a plurality of image elements in the at least one web page;
providing images defined by the source data as input to a computer vision component;
receiving a natural language description of each of the images from the computer vision component;
generating prompts for the image elements, each of the prompts being associated with an image and including at least the natural language description for the image and the alt text data for the image;
providing each of the prompts as inputs to a semantic comparison model, the semantic comparison model being trained to output similarity scores for the prompts, each of the similarity scores being indicative of a similarity between the natural language description and the alt text data for an image element associated with a prompt;
determining which image elements in the plurality of image elements require new alt text data based on the similarity score; and
flagging image elements with inaccurate alt text as requiring user action to correct the alt text.

### Claim 2 (depends on 1)

The alt text validation system of claim 1, wherein the alt text audit process further comprises:
comparing the similarity scores to one or more predefined threshold values for the similarity scores to determine which of the image elements require the new alt text;
generating the new alt text automatically using a generative language model; and
presenting the new alt text on a user interface of the alt text validation system.

### Claim 3 (depends on 1)

The alt text validation system of claim 1, wherein the generating the new alt text further comprises:
providing the natural language text generated for the images that require the new alt text as input to the generative language model.

### Claim 4 (depends on 1)

The alt text validation system of claim 1, wherein the alt text audit process further includes:
receiving user input requesting the alt text audit process and identifying the at least one web page as a target of the alt text audit process.

### Claim 5 (depends on 1)

The alt text validation system of claim 1, wherein each of the prompts includes an instruction for the semantic comparison model to perform a semantic comparison of the natural language text and the alt text data included in each of the prompts.

### Claim 6 (depends on 1)

The alt text validation system of claim 1, wherein the semantic comparison model comprises a generative transformer-based model.

### Claim 7 (depends on 6)

The alt text validation system of claim 6, wherein the generative transformer-based model comprises a sentence transformer model.

### Claim 8 (depends on 1)

The alt text validation system of claim 1, wherein:
the image data is extracted from hypertext markup language (HTML) code for the at least one web page,
the source data is extracted from src attributes of the image elements, and
the alt text data is extracted from alt attributes of the image elements.

### Claim 9

A method for validating alt text for images in web pages, the method comprising:
extracting image data from the web pages, the image data including source data and alt text data for a plurality of image elements in the web pages;
providing images defined by the source data as input to a computer vision component;
receiving a natural language description of each of the images from the computer vision component;
generating prompts for the image elements, each of the prompts being associated with an image and including at least the natural language description for the image and the alt text data for the image;
providing each of the prompts as inputs to a semantic comparison model, the semantic comparison model being trained to output similarity scores for the prompts, each of the similarity scores being indicative of a similarity between the natural language description and the alt text data for an image element associated with a prompt;
determining which image elements in the plurality of image elements have inaccurate alt text based on the similarity score; and
flagging image elements with inaccurate alt text as requiring user action to correct the alt text.

### Claim 10 (depends on 9)

The method of claim 9, wherein the alt text audit process further comprises:
comparing the similarity scores to one or more predefined threshold values for the similarity scores to determine which of the image elements require the new alt text;
generating the new alt text automatically using a generative language model; and
presenting the new alt text on a user interface of the alt text validation system.

### Claim 11 (depends on 9)

The method of claim 9, wherein the generating the new alt text further comprises:
providing the natural language text generated for the images that require the new alt text as input to the generative language model.

### Claim 12 (depends on 9)

The method of claim 9, wherein the alt text audit process further includes:
receiving user input requesting the alt text audit process and identifying the at least one web page as a target of the alt text audit process.

### Claim 13 (depends on 9)

The method of claim 9, wherein each of the prompts includes an instruction for the semantic comparison model to perform a semantic comparison of the natural language text and the alt text data included in each of the prompts.

### Claim 14 (depends on 9)

The method of claim 9, wherein the semantic comparison model comprises a generative transformer-based model.

### Claim 15 (depends on 14)

The method of claim 14, wherein the generative transformer-based model comprises a sentence transformer model.

### Claim 16 (depends on 9)

The method of claim 9, wherein:
the image data is extracted from hypertext markup language (HTML) code for the at least one web page,
the source data is extracted from src attributes of the image elements, and
the alt text data is extracted from alt attributes of the image elements.

### Claim 17

A non-transitory computer readable medium on which are stored instructions that, when executed, cause a programmable device to perform functions of:
extracting image data from the web pages, the image data including source data and alt text data for a plurality of image elements in the web pages;
providing images defined by the source data as input to a computer vision component;
receiving a natural language description of each of the images from the computer vision component;
generating prompts for the image elements, each of the prompts being associated with an image and including at least the natural language description for the image and the alt text data for the image;
providing each of the prompts as inputs to a semantic comparison model, the semantic comparison model being trained to output similarity scores for the prompts, each of the similarity scores being indicative of a similarity between the natural language description and the alt text data for an image element associated with a prompt;
determining which image elements in the plurality of image elements require new alt text data based on the similarity score; and
flagging image elements with inaccurate alt text as requiring user action to correct the alt text.

### Claim 18 (depends on 17)

The non-transitory computer readable medium of claim 17, further comprise:
comparing the similarity scores to one or more predefined threshold values for the similarity scores to determine which of the image elements require the new alt text;
generating the new alt text automatically using a generative language model; and
presenting the new alt text on a user interface.

### Claim 19 (depends on 17)

The non-transitory computer readable medium of claim 17, wherein the semantic comparison model comprises a generative transformer-based model.

### Claim 20 (depends on 19)

The non-transitory computer readable medium of claim 19, wherein the generative transformer-based model comprises a sentence transformer model.
