# US 2026/0073946 A1 · Goof repair in movies based on large language models (llms)

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

- Number: US 2026/0073946 A1
- Document ID: US20260073946A1
- Status: Published application
- Kind: A1
- Application number: 18/830,639
- Filed: 2024-09-11
- Published: 2026-03-12
- Earliest claimed: 2024-09-11
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Jing Zhang; Shi Yun Liang; Yuan Yuan Ding; Yu Pan; Jie Ting Chen
- Web page: https://patentgrep.com/patent/US20260073946A1

## CPC

- G11B 27/036: Insert-editing
- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G11B 27/031: Electronic editing of digitised analogue information signals, e.g. audio or video signals
- G11B: INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER (recording measured values in a way that does not require playback through a transducer G01D9/00; recording or playback apparatus using mechanically marked tape, e.g. punched paper tape, or using unit records, e.g. punched or magnetically marked cards G06K; transferring data from one type of record carrier to another G06K1/18; circuits for coupling output of reproducer to radio receiver H04B1/20; gramophone pick-ups or like acoustic electromechanical transducers or circuits therefor H04R)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for automatic detection and correction of continuity errors in video scenes. The method includes generating a textual representation of one or more visual scenes in a video using image caption technology and comparing the textual representation of the one or more visual scenes with embedded contextual information of the video. The method further includes identifying one or more inconsistency errors between the textual representation of one or more visual scenes and the embedded contextual information of the video. The method further includes proposing alternative text to reconcile the one or more inconsistency errors using a pre-trained large language model and employing the proposed alternative text to guide image replacement in the one or more visual scenes containing the one or more inconsistency errors.

## Claims

### Claim 1

A computer-implemented method comprising:
one or more computer devices each having one or more processors and one or more tangible storage devices;
generating, using the one or more computer devices, a textual representation of one or more visual scenes in a video using image caption technology;
comparing, using the one or more computer devices, the textual representation of the one or more visual scenes with embedded contextual information of the video;
identifying, using the one or more computer devices, one or more inconsistency errors between the textual representation of one or more visual scenes and the embedded contextual information of the video;
proposing, using the one or more computer devices, alternative text to reconcile the one or more inconsistency errors, using a pre-trained large language model; and
replacing, using the one or more computer devices, an image in the one or more visual scenes by utilizing the proposed alternative text to guide image replacement.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the embedded contextual information of the video comprises a storyline, an era, and a location where the storyline unfolds.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, further comprising:
ingesting a scene description and the embedded contextual information of the scene by the pre-trained large language model;
identifying one or more phrases or expressions that are inconsistent with the storyline; and
flagging parts of the scene description that do not align logically or contextually with the embedded contextual information of the storyline.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, further comprising:
conducting image editing on an original image of the one or more visual scenes in the video, based on the generated textual representation and the proposed alternative text.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, wherein image editing comprises:
substituting incongruous areas in the original image of the one or more visual scenes with visual content that is congruent with a storyline of the video.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, further comprising:
adding noise to the original image of the one or more visual scenes, wherein a first noise is conditioned on the one or more inconsistency errors and a second noise is conditioned on fused embeddings from images with an interval of five frames from a current frame and the replacement text;
computing a normalized difference between the first noise and the second noise; and
deriving a mask output for an edit region in the original image.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, further comprising:
performing a diffusion implicit models (DDIM) encoding process to estimate a latency of an input image;
applying DDIM decoding process on the fused embedding; and
generating an edited image, with assisted guidance of the mask output.

### Claim 8

A computer program product, comprising a tangible storage device having program code embodied therewith, the program code executable by a processor of a computer to perform a method, the method comprising:
generating, following instructions via the program code executable by the processor of the computer, a textual representation of one or more visual scenes in a video using image caption technology;
comparing, following instructions via the program code executable by the processor of the computer, the textual representation of the one or more visual scenes with embedded contextual information of the video;
identifying, following instructions via the program code executable by the processor of the computer, one or more inconsistency errors between the textual representation of one or more visual scenes and the embedded contextual information of the video;
proposing, following instructions via the program code executable by the processor of the computer, alternative text to reconcile the one or more inconsistency errors, using a pre-trained large language model; and
replacing, following instructions via the program code executable by the processor of the computer, an image in the one or more visual scenes by utilizing the proposed alternative text to guide image replacement.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein the embedded contextual information of the video comprises a storyline, an era, and a location where the storyline unfolds.

### Claim 10 (depends on 9)

The computer program product of claim 9, further comprising:
ingesting a scene description and the embedded contextual information of the scene by the pre-trained large language model;
identifying one or more phrases or expressions that are inconsistent with the storyline; and
flagging parts of the scene description that do not align logically or contextually with the embedded contextual information of the storyline.

### Claim 11 (depends on 8)

The computer program product of claim 8, further comprising:
conducting image editing on an original image of the one or more visual scenes in the video, based on the generated textual representation and the proposed alternative text.

### Claim 12 (depends on 11)

The computer program product of claim 11, wherein image editing comprises:
substituting incongruous areas in the original image of the one or more visual scenes with visual content that is congruent with a storyline of the video.

### Claim 13 (depends on 12)

The computer program product of claim 12, further comprising:
adding noise to the original image of the one or more visual scenes, wherein a first noise is conditioned on the one or more inconsistency errors and a second noise is conditioned on fused embeddings from images with an interval of five frames from a current frame and the replacement text;
computing a normalized difference between the first noise and the second noise; and
deriving a mask output for an edit region in the original image.

### Claim 14 (depends on 13)

The computer program product of claim 13, further comprising:
performing a diffusion implicit models (DDIM) encoding process to estimate a latency of an input image;
applying DDIM decoding process on the fused embedding; and
generating an edited image, with assisted guidance of the mask output.

### Claim 15

A computer system, comprising:
one or more computer devices each having one or more processors and one or more tangible storage devices; and
a program embodied on at least one of the one or more storage devices, the program having a plurality of program instructions for execution by the one or more processors, the program instructions comprising instructions for:
generating, following the plurality of program instructions, a textual representation of one or more visual scenes in a video using image caption technology;
comparing, following the plurality of program instructions, the textual representation of the one or more visual scenes with embedded contextual information of the video;
identifying, following the plurality of program instructions, one or more inconsistency errors between the textual representation of one or more visual scenes and the embedded contextual information of the video;
proposing, following the plurality of program instructions, alternative text to reconcile the one or more inconsistency errors, using a pre-trained large language model; and
replacing, following the plurality of program instructions, an image in the one or more visual scenes by utilizing the proposed alternative text to guide image replacement.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein the embedded contextual information of the video comprises a storyline, an era, and a location where the storyline unfolds.

### Claim 17 (depends on 16)

The computer system of claim 16, further comprising:
ingesting a scene description and the embedded contextual information of the scene by the pre-trained large language model;
identifying one or more phrases or expressions that are inconsistent with the storyline; and
flagging parts of the scene description that do not align logically or contextually with the embedded contextual information of the storyline.

### Claim 18 (depends on 15)

The computer system of claim 15, further comprising:
conducting image editing on an original image of the one or more visual scenes in the video, based on the generated textual representation and the proposed alternative text.

### Claim 19 (depends on 18)

The computer system of claim 18, wherein image editing comprises:
substituting incongruous areas in the original image of the one or more visual scenes with visual content that is congruent with a storyline of the video.

### Claim 20 (depends on 19)

The computer system of claim 19, further comprising:
adding noise to the original image of the one or more visual scenes, wherein a first noise is conditioned on the one or more inconsistency errors and a second noise is conditioned on fused embeddings from images with an interval of five frames from a current frame and the replacement text;
computing a normalized difference between the first noise and the second noise; and
deriving a mask output for an edit region in the original image.
