Electronic device and control method therefor
The electronic device and method enhance content summarization by verifying summary accuracy and reducing chapter overlap, improving the quality of AI-generated content summaries.
Patent Information
- Application Number
- PCT/KR2026/096145
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-23
- Filing Date
- 2026-04-21
- Publication Date
- 2026-11-26
AI Technical Summary
Users face challenges in efficiently identifying and summarizing large volumes of content generated by AI models, particularly in ensuring accuracy and avoiding duplication between chapters.
An electronic device and method that utilize an AI model to generate content summaries, with a processor verifying summary accuracy and overlap between chapters by calculating similarities and updating prompts based on verification results.
Improves the accuracy of content summaries by ensuring semantic similarity within chapters and reducing duplication, enhancing the overall quality of content generation.
Smart Images

Figure KR2026096145_26112026_PF_FP_ABST
Abstract
Description
Electronic device and control method thereof
[0001] The present disclosure relates to an electronic device and a control method that provide summary information about content generated through an AI model.
[0002] In the modern information society, various types of content, such as text, audio, and video, are increasing explosively. As a result, users are struggling to quickly and efficiently identify the information they need, and content summarization technology has been actively researched to address this problem.
[0003] Recently, with the advancement of Artificial Intelligence (AI), AI systems equipped with natural language understanding and generation capabilities approaching human levels have emerged. By learning from vast amounts of data, AI can understand context and perform high-level semantic analysis and sentence generation, presenting new possibilities in the field of content summarization.
[0004] Embodiments of the present disclosure may solve at least one of the previously described problems and / or disadvantages and provide the advantages described below. Accordingly, the embodiments of the present disclosure provide an electronic device and a method for controlling the same that provide summary information about content generated through an AI model.
[0005] Additional embodiments will be presented in the detailed description below, some of which are obvious from the detailed description, and other embodiments can also be presented through learning from the presented embodiments.
[0006] An electronic device according to an embodiment of the present disclosure is disclosed. An electronic device according to at least one embodiment of the present disclosure includes a memory for storing at least one instruction and at least one processor for executing said at least one instruction.
[0007] The above at least one processor obtains a content summary from an AI model trained to correspond to a content summary based on a system prompt and a content prompt, and updates the system prompt or the content prompt based on a first verification result corresponding to the verification of summary accuracy of each chapter included in the content summary and a second verification result corresponding to the verification of duplication between different chapters.
[0008] The above content prompt includes a plurality of image frames or text input corresponding to each image frame, and the content summary is text that includes at least one chapter summarizing a plurality of related scenes within the plurality of image frames, and the chapter may include at least one sentence.
[0009] The above at least one processor can obtain a similarity between each sentence included in one chapter and the content prompt, and if the maximum similarity among the similarities is less than a threshold, identify the first verification result as a failure, and if the maximum similarity is greater than or equal to the threshold, perform a function corresponding to a second verification that verifies whether there is overlap between different chapters.
[0010] The above at least one processor can perform a function corresponding to a second verification that verifies whether there is overlap between different chapters if, when the maximum similarity among the similarities for each sentence included in one chapter is less than a threshold, the first verification result is identified as a failure, when the maximum similarity is greater than or equal to the threshold, multiple keywords corresponding to the 5 Ws and 1 H are obtained from the content prompt, and when at least one of the multiple keywords is not matched based on the obtained multiple keywords and the keyword of the sentence having the maximum similarity, the first verification result is identified as a failure, and when all of the multiple keywords are matched.
[0011] The above at least one processor determines the similarity between each sentence included in the chapter and the content prompt. Obtained based on the relationship, wherein SIM is a similarity calculation function, S is the number of sentences included in the chapter, s is the order of sentences, L is the number of scenes included in the chapter, and l is the order of scenes. is the s-th sentence among S sentences, is the lth scene out of L scenes, and The above and It can correspond to the embedding result value of a natural language model based on the value of.
[0012] The above at least one processor can group multiple representative scenes among multiple scenes included in each chapter for adjacent first chapter and second chapter among multiple chapters included in the content summary, and obtain the second verification result based on each representative scene of the first chapter and the entire sentence of the second chapter.
[0013] The above at least one processor can obtain a similarity for the representative scene based on each representative scene of the first chapter and the entire sentence of the second chapter, and if the average value of the obtained similarities is greater than or equal to a threshold, identify the second verification result as a failure and update the content prompt.
[0014] The above at least one processor [describes] the similarity between each representative scene of the first chapter and each sentence of the second chapter or the similarity between each representative scene of the second chapter and each sentence of the first chapter. or Obtained through the relationship, and among the above relationships, SIM is a similarity calculation function, is the k-th chapter among the above chapters, is the first group corresponding to the k-th chapter above, is a second group based on the first group above, , and The above , and Embedding result value based on the value of, It can correspond to weight values based on the location of two or more representative scenes within the second group mentioned above.
[0015] A control method according to at least one embodiment of the present disclosure comprises the steps of: obtaining a content summary from an AI model trained to correspond to a content summary based on a system prompt and a content prompt; obtaining a first verification result corresponding to a verification of the summary accuracy of each chapter included in the content summary and a second verification result corresponding to a verification of whether there is duplication between different chapters; and updating the system prompt or the content prompt based on the first verification result and the second verification result.
[0016] The above content prompt includes a plurality of image frames or text input corresponding to each image frame, and the content summary is text that includes at least one chapter summarizing a plurality of related scenes within the plurality of image frames, and the chapter may include at least one sentence.
[0017] The step of obtaining the first verification result may include the step of obtaining the similarity between each sentence included in one chapter and the content prompt, the step of identifying the first verification result as a failure if the maximum similarity among the similarities is less than a threshold, and the step of performing a function corresponding to a second verification that verifies whether there is overlap between different chapters if the maximum similarity is greater than or equal to the threshold.
[0018] The step of obtaining the first verification result may include: obtaining a similarity between each sentence included in one chapter and the content prompt; identifying the first verification result as a failure if the maximum similarity among the similarities for each sentence is less than a threshold; obtaining a plurality of keywords corresponding to the 5 Ws and 1 H from the content prompt if the maximum similarity is greater than or equal to the threshold, and identifying the first verification result as a failure if at least one of the plurality of keywords is not matched based on the obtained plurality of keywords and the keyword of the sentence having the maximum similarity; and performing a function corresponding to a second verification that verifies whether there is overlap between the different chapters if all of the plurality of keywords match.
[0019] The step of obtaining the first verification result above involves the similarity between each sentence included in the chapter and the content prompt. The method includes a step of obtaining based on the relationship, wherein SIM is a similarity calculation function, S is the number of sentences included in the chapter, s is the order of sentences, L is the number of scenes included in the chapter, and l is the order of scenes. is the s-th sentence among S sentences, is the lth scene out of L scenes, and The above and It can correspond to the embedding result value of a natural language model based on the value of.
[0020] The step of obtaining the second verification result may include, for adjacent first and second chapters among the multiple chapters included in the content summary, the step of grouping multiple representative scenes among multiple scenes included in each chapter, and the step of obtaining the second verification result based on each representative scene of the first chapter and the entire sentence of the second chapter.
[0021] The method may further include the step of obtaining a similarity for the representative scene based on each representative scene of the first chapter and the entire sentence of the second chapter, and the step of updating the content prompt by identifying the second verification result as a failure if the average value of the obtained similarities is greater than or equal to a threshold.
[0022] The step of obtaining the second verification result above involves the similarity between each representative scene of the first chapter and each sentence of the second chapter, or the similarity between each representative scene of the second chapter and each sentence of the first chapter. or
[0023] It includes a step of obtaining through the relationship, wherein SIM among the said relationships is a similarity calculation function, is the k-th chapter among the above chapters, is the first group corresponding to the k-th chapter above, is a second group based on the first group above, , and The above , and Embedding result value based on the value of, It can correspond to weight values based on the location of two or more representative scenes within the second group mentioned above.
[0024] A non-transient computer-readable recording medium comprising a program for executing a method for controlling an electronic device according to at least one embodiment of the present disclosure, wherein the control method comprises the steps of: obtaining a content summary from an AI model trained to correspond to a content summary based on a system prompt and a content prompt; obtaining a first verification result corresponding to a verification of the accuracy of the summary of each chapter included in the content summary and a second verification result corresponding to a verification of whether there is overlap between different chapters; and updating the system prompt or the content prompt based on the first verification result and the second verification result.
[0025] The above content prompt includes a plurality of image frames or text input corresponding to each image frame, and the content summary is text that includes at least one chapter summarizing a plurality of related scenes within the plurality of image frames, and the chapter may include at least one sentence.
[0026] The step of obtaining the first verification result may include the step of obtaining the similarity between each sentence included in one chapter and the content prompt, the step of identifying the first verification result as a failure if the maximum similarity among the similarities is less than a threshold, and the step of performing a function corresponding to a second verification that verifies whether there is overlap between different chapters if the maximum similarity is greater than or equal to the threshold.
[0027] The step of obtaining the first verification result may include: obtaining a similarity between each sentence included in one chapter and the content prompt; identifying the first verification result as a failure if the maximum similarity among the similarities for each sentence is less than a threshold; obtaining a plurality of keywords corresponding to the 5 Ws and 1 H from the content prompt if the maximum similarity is greater than or equal to the threshold, and identifying the first verification result as a failure if at least one of the plurality of keywords is not matched based on the obtained plurality of keywords and the keyword of the sentence having the maximum similarity; and performing a function corresponding to a second verification that verifies whether there is overlap between the different chapters if all of the plurality of keywords match.
[0028] The above-described or other aspects, features, and benefits of embodiments of the present disclosure will become more apparent from the following description with reference to the accompanying drawings. In the accompanying drawings:
[0029] FIG. 1 is a block diagram illustrating the configuration of an electronic device according to at least one embodiment of the present disclosure,
[0030] FIG. 2 is a block diagram illustrating the configuration of an electronic device according to at least one embodiment of the present disclosure,
[0031] FIG. 3 is a drawing for illustrating content summarization, verification, and updating according to at least one embodiment of the present disclosure,
[0032] FIG. 4 is a drawing for illustrating an example of obtaining a content summary according to at least one embodiment of the present disclosure,
[0033] FIG. 5 is a drawing for illustrating an example of verification within a chapter of a content summary according to at least one embodiment of the present disclosure,
[0034] FIG. 6 is a drawing for illustrating an example of verification within a chapter of a content summary according to at least one embodiment of the present disclosure,
[0035] FIG. 7 is a drawing for illustrating an example of inter-chapter verification of a content summary according to at least one embodiment of the present disclosure,
[0036] FIG. 8 is a drawing for illustrating an example of updating a content summary according to at least one embodiment of the present disclosure,
[0037] FIG. 9 is a drawing for illustrating an example of updating a content summary according to at least one embodiment of the present disclosure,
[0038] FIG. 10 is a flowchart illustrating a control method according to at least one embodiment of the present disclosure.
[0039] The terms used in the embodiments of this disclosure have been selected to be as widely used as possible, taking into account their functions within this disclosure; however, these terms may vary depending on the intent of those skilled in the art, case law, the emergence of new technologies, etc. Additionally, in specific cases, terms have been arbitrarily selected by the applicant, and in such cases, their meanings will be described in detail in the relevant explanatory section of this disclosure. Therefore, terms used in this disclosure should be defined not merely by their names, but based on their meanings and the overall content of this disclosure.
[0040] In this specification, expressions such as “have,” “may have,” “include,” or “may include” indicate the presence of such features (e.g., numerical values, functions, operations, or components such as parts) and do not exclude the presence of additional features.
[0041] The expression "at least one of A or / and B" should be understood as representing either "A" or "B" or "A and B".
[0042] Expressions such as "first," "second," "first," or "second" used in this specification may modify various components regardless of order and / or importance, and are used only to distinguish one component from another and do not limit said components.
[0043] Where it is stated that a component (e.g., Component 1) is "(operatively or communicatively) coupled with / to" or "connected to" another component (e.g., Component 2), it should be understood that the component may be directly connected to the other component or connected through the other component (e.g., Component 3).
[0044] The singular expression includes the plural expression unless the context clearly indicates otherwise. In this application, terms such as "comprising" or "consisting of" are intended to specify the existence of the features, numbers, steps, actions, components, parts, or combinations thereof described in the specification, and should be understood as not precluding the existence or addition of one or more other features, numbers, steps, actions, components, parts, or combinations thereof.
[0045] In the present disclosure, a "module" or "part" performs at least one function or operation and may be implemented in hardware or software, or a combination of hardware and software. Additionally, a plurality of "modules" or a plurality of "parts" may be integrated into at least one module and implemented by at least one processor, except for a "module" or "part" that needs to be implemented in specific hardware.
[0046] In this specification, the term "user" may refer to a person using an electronic device or a device using an electronic device (e.g., an artificial intelligence electronic device).
[0047] Various embodiments of the present disclosure will be described in more detail below with reference to the attached drawings.
[0048] FIG. 1 is a block diagram showing the configuration of an electronic device (100) according to at least one embodiment of the present disclosure.
[0049] The electronic device (100) can be implemented in various forms. Specifically, the electronic device (100) can be of various types such as a PC, laptop PC, terminal device, tablet PC, server device, TV, set-top box, smart monitor, media player, projector, etc. The electronic device (100) can be implemented as a display device with a built-in display, such as a TV, smartphone, laptop PC, tablet PC, etc., or it can be implemented as an electronic device used in connection with a monitor or other display device.
[0050] Referring to FIG. 1, the electronic device (100) may include a memory (110) and at least one processor (120). As described above, the electronic device (100) may be implemented as various types of devices, and accordingly, various additional configurations may be provided in the electronic device (100). However, for convenience of explanation, the illustration of additional configurations is omitted in FIG. 1.
[0051] The memory (110) is configured to store various data, programs, instructions, etc., required for the operation of the electronic device (100). For example, the memory (110) may store various setting values that are pre-set by the user to verify the content summary. For example, the setting values may store information regarding a threshold value that serves as a criterion for identifying a first verification result as a failure, a threshold value that serves as a criterion for identifying a second verification result as a failure, or a setting value that serves as a criterion for terminating the content summary.
[0052] The memory (110) may be implemented as a memory embedded in the electronic device (100) for data storage purposes (e.g., volatile memory (e.g., semi-permanent memory such as RAM (random access memory)), non-volatile memory (e.g., permanent memory such as ROM (read-only memory)), flash memory, hard drive or solid-state drive, etc.), or as a memory that can be attached to the electronic device (100) (e.g., memory card, external memory, etc.).
[0053] The memory (110) can store information regarding an artificial intelligence model including multiple layers. Here, storing information regarding an artificial intelligence model may mean storing various information related to the operation of the artificial intelligence model, such as information about multiple layers included in the artificial intelligence model, and information about parameters used in each of the multiple layers (e.g., filter coefficients, bias, etc.).
[0054] An artificial intelligence system is a computer system that implements human-level intelligence, in which machines learn and make judgments on their own, and recognition rates improve with use.
[0055] Artificial intelligence technology consists of machine learning (deep learning) technology, which utilizes algorithms to self-classify and learn the characteristics of input data, and component technologies that mimic the functions of the human brain, such as cognition and judgment, by utilizing machine learning algorithms.
[0056] The elemental technologies may include, for example, linguistic understanding technology that recognizes human language / characters, visual understanding technology that recognizes objects like human vision, reasoning / prediction technology that judges information to logically reason and predict, knowledge representation technology that processes human experience information into knowledge data, and motion control technology that controls autonomous driving of vehicles and the movement of robots.
[0057] In the present disclosure, the statement that an artificial intelligence model is trained means that a basic artificial intelligence model (e.g., an artificial intelligence model including arbitrary parameters) is trained using a number of training data by a learning algorithm, thereby creating a predefined rule of operation or an artificial intelligence model configured to perform a desired characteristic (or purpose). This training may be performed through a separate server and / or system, but is not limited thereto, and may also be performed on an electronic device (100). Examples of learning algorithms include supervised learning, unsupervised learning, semi-supervised learning, transfer learning, or reinforcement learning, but are not limited to the examples described above.
[0058] Here, each artificial intelligence model may be implemented, for example, as a CNN (Convolutional Neural Network), RNN (Recurrent Neural Network), RBM (Restricted Boltzmann Machine), DBN (Deep Belief Network), BRDNN (Bidirectional Recurrent Deep Neural Network), or Deep Q-Network, but is not limited thereto.
[0059] In particular, the memory (110) may store an AI model (230) trained to summarize content, i.e., a content summarization model. The content summarization model may be a model that generates content summary information. The content summarization model may be a model that understands video content. The content summarization model may be a model that generates (or creates) information related to video content or sentences composed of multiple texts.
[0060] For example, a content summarization model may include a multimodal model and can be a Large Language Model (LM) or a multimodal LLM. An LLM is a large-scale language model that learns from vast amounts of text data to understand and generate natural language. Both input and output involve text, and it can be implemented using models such as OpenAI's GPT-3, GPT-4, Google's PaLM, Meta's LLaMA, or Anthropic's Claude. A multimodal model is a model capable of understanding or processing two or more different types of data simultaneously. It can accept not only text but also images, audio, and video as input, and it can be implemented using models such as OpenAI's CLIP, Salesforce Research's BLIP / BLIP-2, Meta's ImageBind, or VideoCLIP based on research by Microsoft. A multimodal LLM is an extended model that adds the ability to process multimodal inputs (inputs other than text) to existing LLMs. It is a model designed with a structure that understands non-verbal modalities such as images, videos, and audio, centered around LLM. Multimodal LLM can be implemented using models such as OpenAI's GPT-4, Google DeepMind's Gemini, LLaVA (Large Language and Vision Assistant), or MiniGPT-4.
[0061] The processor (120) controls the overall operation of the electronic device (100). Specifically, the processor (120) can perform the operation of the electronic device (100) according to various embodiments of the present disclosure by individually or collectively executing instructions stored in memory (110) connected to each component of the electronic device (100).
[0062] The processor (120) may include one or more of a CPU, GPU (Graphics Processing Unit), APU (Accelerated Processing Unit), MIC (Many Integrated Core), NPU (Neural Processing Unit), hardware accelerator, or machine learning accelerator.
[0063] In the case where a method according to at least one embodiment of the present disclosure includes a plurality of operations, the plurality of operations may be performed by a single processor or by a plurality of processors. For example, when a first operation, a second operation, and a third operation are performed by a method according to at least one embodiment, the first operation, the second operation, and the third operation may all be performed by a first processor, or the first operation and the second operation may be performed by a first processor (e.g., a general-purpose processor) and the third operation may be performed by a second processor (e.g., an artificial intelligence dedicated processor).
[0064] In the embodiments of the present disclosure, at least one processor (120) may refer to a system-on-chip (SoC) in which one or more processors and other electronic components are integrated, a single-core processor, a multi-core processor, or a core included in a single-core processor or a multi-core processor, wherein the core may be implemented as a CPU, GPU, APU, MIC, NPU, hardware accelerator, or machine learning accelerator, but the embodiments of the present disclosure are not limited thereto. However, for convenience of explanation, the operation of the electronic device (100) is described below using the expression "processor (120)."
[0065] Meanwhile, the processor (120) can execute an artificial intelligence model according to at least one embodiment of the present disclosure.
[0066] A processor (120) for executing an artificial intelligence model according to one embodiment of the present disclosure may be implemented through a combination of software and a general-purpose processor such as a CPU, AP, DSP (Digital Signal Processor), a graphics-dedicated processor such as a GPU, VPU (Vision Processing Unit), or an artificial intelligence-dedicated processor such as an NPU. The processor (120) may be controlled to process input data according to a predefined operation rule or artificial intelligence model stored in memory (110). Alternatively, if the processor (120) is a dedicated processor (or an artificial intelligence-dedicated processor), it may be designed with a hardware structure specialized for processing a specific artificial intelligence model. For example, hardware specialized for processing a specific artificial intelligence model may be designed as a hardware chip such as an ASIC or FPGA. If the processor (120) is implemented as a dedicated processor, it may be implemented to include memory for implementing the embodiment of the present disclosure or to include a memory processing function for using external memory.
[0067] The processor (120) can obtain a content summary from an AI model trained to correspond to a content summary in a system prompt and a content prompt.
[0068] A system prompt is a string of initial commands used to instruct an AI model on specific roles, constraints, or response methods. This encourages the AI model to maintain consistent behavior and provide responses appropriate for a specific purpose. For example, users can input values into system prompts by providing specific behavioral guidelines, such as specifying whether the AI model should perform a particular role or instructing it to respond clearly and concisely.
[0069] In the case of a content summarization AI model according to at least one embodiment of the present disclosure, the AI model may be assigned a specific role, such as a software developer or a paper summarization expert, and may be induced to provide a response suitable for a specific purpose, such as by asking the model to divide video content or text composed of sentences into multiple chapters according to the topic. However, this is not limited thereto, and the user may input various other forms into the system prompt.
[0070] A content prompt is an instruction that commands the AI to create specific content. More specifically, it is an input sentence that clearly explains whether text or results should be produced in a specific style, purpose, or format. Instructions entered into a content prompt may include the purpose, target audience, style, or format of the result.
[0071] For example, when a user uses AI for content summarization, the instructions in the content prompt may be configured as, "Summarize the content into multiple chapters so that children can easily understand it." However, this is not limited thereto, and the content prompt may include multiple image frames or text input corresponding to each image frame.
[0072] If a user inputs a command such as “Summarize the content into 10 chapters in a simple and clear way so that a child can easily understand it from the perspective of a skilled and kind teacher” along with text consisting of multiple sentences at the system prompt and content prompt, the content summarization AI model can perform content summarization according to the content of the command corresponding to the input prompt.
[0073] The processor (120) can update the system prompt or content prompt based on a first verification result corresponding to the verification of the accuracy of the summary of each chapter included in the content summary and a second verification result corresponding to the verification of whether there is duplication between different chapters.
[0074] The content summary is output from a content summary AI model based on system prompts and content prompts, and may be text containing at least one chapter summarizing multiple related scenes within multiple image frames.
[0075] In this case, a "chapter" refers to a section of related content divided into arbitrary segments based on a content summarization AI model, and a chapter may include at least one sentence.
[0076] A "scene" is defined as a section of related content divided into arbitrary segments based on a content summarization AI model, and the scene may include at least one frame.
[0077] The first verification result refers to the result of verifying the summary accuracy of each chapter included in the content summary. In the process of obtaining the first verification result, verifying the summary accuracy of each chapter included in the content summary is a process of verifying whether the content included in the content summary is semantically similar to the content included in the input of the content prompt.
[0078] Specifically, it is a process of verifying the accuracy of a summary by comparing all sentences within a random chapter among multiple chapters divided according to the content summary with the input of the content prompt. The specific process for obtaining the first verification result is as follows.
[0079] First, the processor (120) can obtain the similarity between each sentence included in the chapter and the content prompt.
[0080] "Similarity" refers to the degree to which the content of a sentence or scene is semantically similar, and means an arbitrary value obtained according to a similarity calculation method through the embedding process in a natural language model that converts a sentence or scene into a number or vector so that the AI can understand it.
[0081] Embeddings may include Sentence Embeddings, such as Word2Vec or GloVe, which convert each word into a single vector or represent the entire sentence as a single vector, as well as Multimodal Embeddings, which represent complex information such as text and images as a single vector. However, they are not limited to these, and may include all processes for converting text or images into numbers or vectors so that AI can understand them.
[0082] Similarity calculations based on embedding results may include the use of Cosine Similarity, Euclidean Distance, Manhattan Distance, Dot Product, or Mahalanobis Distance. However, they are not limited to these, and any method capable of comparing similarity based on embedding results may be included.
[0083] For example, when calculating similarity using the cosine similarity method, if the result is 1.0, it corresponds to a case where the sentences are in the exact same direction and have almost the same meaning, and as the value becomes smaller than 1.0, it corresponds to a case where the sentences are relatively unrelated in meaning.
[0084] Next, the processor (120) can calculate the maximum similarity among the similarities between each sentence included in a chapter and the content prompt.
[0085] The maximum similarity between each sentence included in the chapter and the content prompt is calculated using the following mathematical formula.
[0086]
[0087] Here, SIM is a similarity calculation function, S is the number of sentences included in the chapter, s is the order of a specific sentence included in the chapter, L is the number of scenes included in the chapter, l is the order of a specific scene among multiple scenes, is the s-th sentence among S sentences, is the lth scene out of L scenes, and Is and Corresponds to the embedding result value of a natural language model based on the value of.
[0088] For example, the first sentence of a chapter is highly likely to be relatively similar to the first scene among multiple scenes, and in the case of the first sentence and first scene among S sentences and L scenes, s and l have a value of 1. In this way, the more similar the order of scenes or sentences included in the content prompt input is to the sentences included in the chapter, the The value of approaches 0, and the more similar the order of sentences and scenes is, the higher the probability that the similarity will have a maximum value according to the above mathematical formula.
[0089] Finally, the processor (120) can identify the first verification result as a failure if the maximum similarity is below a threshold.
[0090] At this time, the previously stored threshold can be arbitrarily changed according to the user's settings. For example, if multiple similarities are obtained by comparing each sentence of a chapter with the content prompt input, and even if there is a sentence with the maximum similarity among them, but that maximum similarity is lower than the threshold set by the user, then not only the sentence with the maximum similarity but also the remaining sentences excluding it are identified as having low summary accuracy, and thus the first verification result can be identified as a failure.
[0091] If the maximum similarity is greater than or equal to the threshold, it is identified that the summary within the chapter has been performed correctly, and it can perform a function corresponding to a second verification that verifies whether there is duplication between different chapters.
[0092] Specifically, if the sentence with the maximum similarity is above the threshold, that sentence is identified as having been correctly summarized, so only that sentence can undergo the second verification.
[0093] If the processor (120) finally identifies the first verification result as a failure, it can update the system prompt by adding the data to the system prompt and perform a content summary based on the updated system prompt when performing the next content summary.
[0094] Specifically, multiple similarities are obtained by comparing each sentence of a chapter with the input of a content prompt, and if the maximum similarity among them is lower than a preset threshold, the summary accuracy of each sentence included in the chapter is identified as low; based on this data, the content summarization AI model can review problems in the summarization process and update the system prompt in a direction that improves accuracy in the next content summarization process.
[0095] Even if the maximum similarity exceeds a preset threshold, sentences with low similarity, excluding the sentence with the maximum similarity, are identified as having low summary accuracy; therefore, the system prompt is updated based on this data, and the content summary can be performed based on this when executing the next content summary.
[0096] Meanwhile, if the maximum similarity is greater than or equal to a threshold, the processor (120) does not immediately perform a second verification and obtains multiple keywords corresponding to the 5 Ws and 1 H from the content prompt, and if at least one of the multiple keywords is not matched based on the multiple keywords obtained and the keyword of the sentence having the maximum similarity, the first verification result can be identified as a failure.
[0097] First, the processor (120) can extract multiple keywords corresponding to the six Ws (who, when, where, what, how, and why) from the input of the content prompt. The process of extracting multiple keywords corresponding to the six Ws can be performed by a conventional natural language processing understanding model or a natural language generation model such as an LLM. However, it is not limited thereto, and any method capable of structuring a sentence may be included.
[0098] Next, for a chapter composed of sentences that passed the first verification result within the chapter—that is, sentences with a maximum similarity above a threshold—it is possible to verify whether there are any errors in the summarized content through multiple keywords corresponding to the 5W1H principle and question prompts.
[0099] If the content of a sentence that has passed the first verification result is compared with multiple keywords corresponding to the 5 Ws and 1 H, and at least one of the multiple keywords is not matched, it is identified as having an error and the first verification result can be identified as a failure.
[0100] If multiple keywords are all matched, it can perform a function corresponding to a second verification that checks for duplication between different chapters.
[0101] Specifically, the above process verifies errors by structuring the sentences that passed the criteria and comparing their content with the content prompts, even if the maximum similarity is identified as high summarization accuracy because it exceeds a preset threshold.
[0102] However, the process of verifying errors in sentences that have passed the first verification result as described above is not an essential step in the process of obtaining the first verification result and may be omitted depending on user intervention.
[0103] If the processor (120) additionally performs the above error verification and finally identifies the first verification result as a failure, it can update the system prompt by adding the corresponding data to the system prompt, and perform the content summary based on the updated system prompt when performing the next content summary.
[0104] Meanwhile, the second verification result refers to the result of verifying whether there is overlap between different chapters. In the process of obtaining the second verification result, verifying the overlap of content between chapters means verifying whether there is overlap between any adjacent first and second chapters among multiple chapters composed of sentences that passed the criteria of the first verification result.
[0105] Specifically, the process involves verifying whether each representative scene corresponding to the content of Chapter 1 is similar to the content of the adjacent Chapter 2, thereby verifying whether content that should originally be included in the representative scene corresponding to Chapter 2 is included in the representative scene corresponding to Chapter 1 due to an error. In other words, it is a process of verifying whether there is an error in the process of grouping related content into multiple chapters. The specific process for obtaining the second verification result is as follows.
[0106] First, the processor (120) can group multiple representative scenes among multiple scenes included in each chapter for adjacent first and second chapters among multiple chapters included in the content summary.
[0107] The processor (120) groups multiple scenes corresponding to the content of each chapter into one group. As a result, multiple adjacent chapters, a group of multiple scenes corresponding to the content of the first chapter, and a group of multiple scenes corresponding to the content of the second chapter are grouped. Meanwhile, "adjacent chapters" refers to cases where multiple chapters are sequentially adjacent during the process of dividing related content into chapters in the content summary.
[0108] Afterwards, the process involves excluding duplicate scenes within each group of multiple scenes and selecting multiple representative scenes that can sufficiently represent the content, and grouping them once more.
[0109] Next, the processor (120) can obtain a second verification result based on each representative scene of the first chapter and the entire sentence of the second chapter.
[0110] Specifically, the processor (120) can calculate similarity by comparing each representative scene of the first chapter with the entire sentence included in the second chapter adjacent to the first chapter. At this time, the process of calculating similarity by comparing sentences compares the result values obtained through the embedding process of the natural language model, just as similarity is calculated in the process of obtaining the first verification result.
[0111] Finally, the processor (120) can update the content prompt by identifying the second verification result as a failure if the average value of the calculated similarities is greater than or equal to a threshold already stored in memory.
[0112] Specifically, multiple similarity values are calculated by comparing multiple representative scenes with the sentences of the corresponding chapters and adjacent chapters. Then, the average value of the similarity values multiplied by weights is calculated, and a process is performed to determine whether the average value is less than a threshold value stored in memory (110). A detailed explanation of the "weights" will be provided below along with the mathematical formula for calculating the average value.
[0113] Meanwhile, if the average value of similarities obtained by comparing representative scenes with adjacent chapters is greater than or equal to a stored threshold, it means that there is a high probability that a scene that should originally be in the group of scenes corresponding to adjacent chapters belongs to a different group, so the second verification result is identified as a failure.
[0114] In this case, if the second verification result is identified as a failure, it corresponds to a case where an error occurred during the process of dividing into semantically related chapters, as multiple scenes within the group are similar to the content of adjacent chapters rather than corresponding chapters.
[0115] Accordingly, the processor (120) can update the content prompt by merging multiple groups corresponding to adjacent chapters into one, and perform the content summary based on the updated content prompt when performing the next content summary.
[0116] Meanwhile, the processor (120) [describes] the similarity between each representative scene of the first chapter and each sentence of the second chapter, or the similarity between each representative scene of the second chapter and each sentence of the first chapter,
[0117] or
[0118] It can be obtained through the relationship.
[0119] In the mathematical formula, SIM is a similarity calculation function, is the k-th chapter among the above chapters, is the first group corresponding to the k-th chapter above, is a second group based on the first group above, , and The above , and Embedding result value based on the value of, corresponds to weight values based on the location of two or more representative scenes within the second group mentioned above.
[0120] For example, among the representative scenes within a group, scenes at the boundary between scenes are more likely to be relatively similar to the content of adjacent chapters compared to scenes not at the boundary, so they receive a higher weight when calculating the similarity sum. It is calculated by assigning [this]. Conversely, scenes not on the boundary have a relatively low probability of being similar to the content of adjacent chapters, so a lower weight is applied when calculating the similarity sum. Calculate by assigning.
[0121] FIG. 2 is a block diagram illustrating the configuration of an electronic device according to one embodiment of the present disclosure.
[0122] Referring to FIG. 2, the electronic device (100') may include a memory (110), a processor (120), a communication unit (130), an input / output interface (140), a microphone (150), a display (160), and a speaker (170).
[0123] The configuration of the memory (110) and processor (120) was previously described in FIG. 1, and only the operation different from FIG. 1 will be described below.
[0124] The communication unit (130) may include interfaces such as an HDMI port, DP, RGB, DVI, USB, and Thunderbolt for receiving video / audio signals connected to external devices such as servers. HDMI, DP, and Thunderbolt are ports capable of transmitting video and audio signals simultaneously. The electronic device (100') can display various content by performing various processing such as demuxing, decoding, and scaling on various signals received from external devices connected through the communication interface.
[0125] According to various embodiments of the present disclosure, the communication unit (130) can perform communication with a server in which an artificial intelligence model is stored.
[0126] The communication unit (130) may include a wireless communication module or a wired communication module, and the wireless communication module may include at least one of, for example, a Wi-Fi module, a Bluetooth module, a mobile communication module (3G, LTE, 5G, etc.), a UWB (Ultra Wide Band) module or other wireless communication modules. The wired communication module may include, for example, a LAN (Local Area Network) module, an Ethernet module, a coaxial cable or a fiber optic cable.
[0127] The processor (120) can connect to an external server through the communication unit (130) and transmit input data to the server. The input data may include, for example, instructions regarding the assignment of a specific role of AI related to a system prompt or a content summary related to a content prompt, as well as data based on the first verification result and the second verification result, and may be used as input for classification, prediction, or inference processing by an artificial intelligence model stored or running on the server.
[0128] The processor (120) can receive output data generated by the artificial intelligence model of the server based on the input data. The output data may include a content summary based on the input of the system prompt and the content prompt, or a first verification result and a second verification result for the content summary. This output data corresponds to the result determined by the model, but does not include whether it is correct or semantic similarity.
[0129] The processor (120) can analyze the received output data to verify the accuracy of the summary within a chapter by comparing the semantic similarity between the content prompt and the content summary, or verify whether the distinction between chapters based on the content is accurate by comparing the degree of overlap between adjacent chapters, and can generate feedback data to improve the performance of the artificial intelligence model based on the data by comparing the calculated similarity with a threshold stored in memory (110).
[0130] The generated feedback data is transmitted to the server through the communication unit (130), and the server can improve the accuracy and similarity judgment performance of the model by analyzing the received feedback data and adjusting the parameters of the artificial intelligence model or performing additional retraining.
[0131] This structure, rather than simply transmitting results between input and output, can have the effect of enabling continuous intelligent and user-customized learning through interaction with a server by performing interpretation of output results and generating user intent-based feedback in the electronic device (100').
[0132] However, as previously described, the communication unit (130) is merely one of the various embodiments, and in other embodiments, the configuration of the communication unit (130) may be omitted.
[0133] Meanwhile, if the electronic device (100') supports on-device learning or inference, the artificial intelligence model itself may be stored in memory (110).
[0134] In this case, processing of input data can be performed independently without a network connection. Specifically, the processor (120) can train an artificial intelligence model of the memory (110) in the manner described above and use the artificial intelligence model to generate prediction, classification, or recommendation results for the input data.
[0135] More specifically, the processor (120) inputs input data into an artificial intelligence model stored in memory (110) to verify the accuracy of the summary within a chapter by comparing the semantic similarity between the content prompt and the content summary, or to verify whether the distinction between chapters based on content is accurate by comparing the degree of overlap between adjacent chapters, and can generate feedback data to improve the performance of the artificial intelligence model based on the data by comparing the calculated similarity with a threshold stored in memory (110).
[0136] The input / output interface (140) may be any one of the following interfaces: HDMI (High Definition Multimedia Interface), MHL (Mobile High-Definition Link), USB (Universal Serial Bus), DP (Display Port), Thunderbolt, VGA (Video Graphics Array) port, RGB port, D-SUB (D-subminiature), and DVI (Digital Visual Interface).
[0137] The input / output interface (140) can input and output at least one of audio and video signals. Depending on the implementation example, the input / output interface (140) may include separate ports for inputting and outputting only audio signals and for inputting and outputting only video signals, or it may be implemented as a single port for inputting and outputting both audio and video signals.
[0138] And the input / output interface (140) can provide a video signal corresponding to an image (or screen) generated by the electronic device (100') or an audio signal together with the video signal to an external device (e.g., a display device, an STB, etc.).
[0139] The microphone (150) can receive the user's voice when active. For example, the microphone (150) may be formed integrally on the upper side, front side, or side side of the electronic device (100'). The microphone (150) may include various configurations such as a microphone for collecting analog user voice, an amplifier circuit for amplifying the collected user voice, an A / D conversion circuit for sampling the amplified user voice and converting it into a digital signal, and a filter circuit for removing noise components from the converted digital signal.
[0140] When a user's voice is input through such a microphone (150), the processor (120) can check the content of the user's voice and perform an action corresponding to the content of the voice.
[0141] For example, a voice requesting a summary of specific content may be input by a user, and the processor (120) checks the user's voice and can display text summarizing the specific content through a UI, etc.
[0142] At this time, the content may be a sentence composed of text spoken by the user, and when the user speaks the title of the content, etc., the processor (120) may input a video composed of multiple frames into the content prompt.
[0143] Meanwhile, although it has been described above that user voice is input through the microphone (150), the microphone may be provided in a remote control for controlling the electronic device (100'), and user voice input through the microphone provided in the remote control may be input to the electronic device (100') and processed through the communication unit (130) described above.
[0144] The electronic device (100') can operate not only based on the configuration or remote control provided in the electronic device (100'), but also according to control commands from a user terminal device. For example, if the electronic device is a TV or a set-top box, recently, manufacturers provide applications for controlling the TV or set-top box. Such applications can provide a function that allows the user terminal device to be used as a remote control for the electronic device.
[0145] Accordingly, when a user executes an application to control a TV or set-top box using a user terminal device and inputs a voice command through the user terminal device, the electronic device (100') can perform a voice recognition operation and a corresponding voice recognition result using the voice signal input through the user terminal device.
[0146] The display (160) can be implemented as various types of displays such as an LCD (Liquid Crystal Display), an OLED (Organic Light Emitting Diodes) display, and a PDP (Plasma Display Panel). The display (160) may also include a driving circuit, a backlight unit, etc., which can be implemented in forms such as an a-si TFT, an LTPS (low temperature poly silicon) TFT, and an OTFT (organic TFT). Meanwhile, the display (160) can be implemented as a touchscreen combined with a touch sensor, a flexible display, a 3D display, etc.
[0147] The display (160) can display various images. For example, the display (160) can display a scene or content summary text composed of multiple frames generated by the processor (130).
[0148] The speaker (170) can output sound. Specifically, the speaker (170) may be a component that outputs various audio data processed at the input / output interface, as well as various notification sounds or voice messages. Additionally, the speaker (170) may output result information (e.g., content summary information) corresponding to the voice recognition operation described later.
[0149] Meanwhile, although the electronic device (100') in FIG. 2 is illustrated and described as including a display (160), if the electronic device (100') is a device such as a set-top box that does not include a display, the display configuration may be omitted. Additionally, depending on the implementation form, the speaker and microphone described above may also be omitted. Furthermore, although not illustrated in FIG. 2, other components (e.g., camera, human body detection sensor) may also be included.
[0150] FIG. 3 is a drawing for illustrating content summarization, verification, and updating according to at least one embodiment of the present disclosure.
[0151] Referring to FIG. 3, the processor (120) can obtain a content summary output from an AI model based on an input prompt (200). At this time, the input prompt (200) may include a system prompt (210) and a content prompt (220).
[0152] The processor (120) can obtain a first verification result by verifying the summary accuracy of each chapter included in the content summary through the first verification module (240).
[0153] The processor (120) can obtain a second verification result by verifying whether there is duplication between different chapters included in the content summary through the second verification module (250).
[0154] The processor (120) can update the system prompt or content prompt through the prompt update module (260) based on the first verification result that verifies the summary accuracy of each chapter included in the content summary and the second verification result that verifies whether there is duplication between different chapters.
[0155] FIG. 4 is a drawing for illustrating an example of obtaining a content summary according to at least one embodiment of the present disclosure.
[0156] Referring to FIG. 4, configurations including multiple image frames constituting the content or text inputs corresponding to each image frame can be input into the content prompt (220). FIG. 3 illustrates an example in which text (310) corresponding to multiple image frames constituting the content is input into the content prompt (220).
[0157] When text constituting the content is entered into the content prompt (220), the processor (120) can output a corresponding content summary (320) using the content summary AI model (230) stored in memory (110).
[0158] For example, when text (310) corresponding to the content is entered into the content prompt (220) and a command such as "Summarize the content by dividing it into 00 chapters" is entered, the processor (120) can divide the content into multiple chapters that are related in content and obtain a content summary including a content summary (320) and chapter numbers (330) as shown in FIG. 4.
[0159] Meanwhile, FIG. 4 illustrates only text constituting the content content being entered into the content prompt (220), but multiple image frames constituting the content content may also be entered, and input for specific instructions may be entered into the system prompt (210) to instruct the AI model on specific roles, constraints, or response methods.
[0160] FIG. 5 is a drawing for illustrating an example of verifying the accuracy of a summary within a chapter of a content summary according to at least one embodiment of the present disclosure.
[0161] First, the first verification module (240) performs the process of dividing the chapter into individual sentences for any chapter (320) obtained from the content summary. FIG. 4 illustrates an example in which any chapter (320) consists of S sentences. The first verification module (240) divides the sentences constituting the arbitrary chapter (320) into S sentences (410).
[0162] Next, in order to convert each sentence into a number or vector that the AI can understand, the embedding process in the natural language model is performed to obtain S sentence embeddings (420).
[0163] After the process of embedding sentences included in any chapter (320), the process of embedding multiple image frames or text corresponding to each image frame entered into the content prompt (220) is similarly performed. FIG. 4 illustrates a case in which sentence embeddings (440) are obtained through the process of embedding sentences (430) corresponding to the text constituting the content.
[0164] Next, the first verification module (240) compares each of the sentence embeddings (420) that embed the sentences constituting the chapter with the result (440) of embedding the image frame or text input into the content prompt (220), and calculates the similarity between each sentence included in the chapter and the input of the content prompt (220).
[0165] Next, among the multiple similarities obtained from the sentences constituting the chapter and the content prompt (220) input, it is verified whether the maximum similarity is greater than or equal to a threshold already stored in memory (110). If the maximum similarity is greater than or equal to the threshold, it is identified that the summary within the chapter has been performed correctly, and a second verification is performed to verify whether there is duplication between different chapters.
[0166] Conversely, if the maximum similarity is below the threshold, it is identified that the summary within the chapter was not performed correctly, the first verification result is identified as a failure, and the system prompt (210) is updated through the prompt update module (260) based on the data, and when performing the next content summary, the content summary is performed based on the updated system prompt.
[0167] FIG. 6 is a drawing for illustrating an example of error verification after verification within a chapter of a content summary according to at least one embodiment of the present disclosure.
[0168] First, the first verification module (240) extracts multiple keywords (520) corresponding to the six Ws (who, when, where, what, how, why) from the input (510) of the content prompt.
[0169] Next, a chapter (540) composed of sentences that passed the first verification result within the chapter, that is, sentences with a maximum similarity greater than or equal to a threshold, is verified to see if there are any errors in the summarized content through multiple keywords (520) corresponding to the 5 Ws and 1 H and a question prompt (530).
[0170] If the content of a sentence that has passed the first verification result is compared with multiple keywords corresponding to the 5 Ws and 1 H, and at least one of the multiple keywords is not matched, it is identified as having an error.
[0171] Accordingly, the first verification result is finally identified as a failure, and the system prompt (210) is updated through the prompt update module (260) based on the data, and when performing the next content summary, the content summary is performed based on the updated system prompt. If multiple keywords are all matched, it is identified as having no errors, and a second verification is performed to verify whether there is duplication between different chapters.
[0172] However, the process of verifying errors in sentences that have passed the first verification result as described above is not an essential step in the process of obtaining the first verification result and may be omitted depending on user intervention.
[0173] FIG. 7 is a drawing for illustrating an example of inter-chapter verification of a content summary according to at least one embodiment of the present disclosure.
[0174] FIG. 7 is a diagram illustrating an example where the input of the content prompt (220) is a scene composed of multiple frames.
[0175] First, the second verification module (250) groups multiple scenes corresponding to the content of each chapter into a single group. As a result, multiple adjacent chapters, a group of multiple scenes (610) corresponding to the content of Chapter K (650), and a group of multiple scenes (630) corresponding to the content of Chapter K+1 (660) are grouped. Here, Chapter K and Chapter K+1 represent an arbitrary Kth chapter and an adjacent K+1th chapter among multiple chapters according to the content summary.
[0176] Next, the process of selecting multiple representative scenes that can sufficiently represent the content, excluding duplicate scenes within each group of multiple scenes, is performed once more. According to FIG. 7, as a result, the group corresponding to the content of Chapter K (650) appears as 620, and the group corresponding to the content of Chapter K+1 (660) appears as 640.
[0177] Next, the process involves comparing each representative scene (620) of Chapter K (650) with the entire sentence included in Chapter K+1 (660), which is adjacent to Chapter K, to obtain similarity and verify whether there is overlap between the chapters.
[0178] Specifically, multiple similarities are obtained by comparing multiple representative scenes and sentences of the corresponding chapters and adjacent chapters. Then, the average value of the values obtained by multiplying the multiple similarities by weights is calculated, and a process is performed to determine whether the average value is less than a threshold value stored in memory (110).
[0179] If it exceeds the previously stored threshold, it means that there is a high probability that a scene that should originally be in the group of scenes corresponding to adjacent chapters belongs to a different group, so the second verification result is identified as a failure.
[0180] At this time, if the second verification result is identified as a failure, since multiple scenes within the group are similar to the content of adjacent chapters rather than corresponding chapters, the prompt update module (260) updates the content prompt (220) by merging multiple groups corresponding to adjacent chapters into one, and performs the content summary based on the updated content prompt when performing the next content summary.
[0181] FIGS. 8 and 9 are drawings for illustrating a module that updates a system prompt (210) or a content prompt (220) based on a first verification result and a second verification result according to at least one embodiment of the present disclosure.
[0182] Referring to FIG. 8, when a first verification result is obtained through the first verification module (240), the processor (120) can update the system prompt (210) through the prompt update module (260).
[0183] Specifically, the first verification module (240) obtains multiple similarities by comparing the similarity between the result values (420) of embedding multiple sentences (410) that separate the chapter (320) according to the content summary into each sentence and the result value (440) of embedding the input (430) of the content prompt (220).
[0184] Next, it is determined whether the maximum similarity among multiple similarities is greater than or equal to a threshold already stored in memory (110), and if it is less than the threshold, the first verification result is identified as a failure, and the system prompt (210) is updated through a process of providing feedback based on data less than the threshold. Accordingly, when the electronic device (100) performs the next content summary, it performs the content summary based on the updated content prompt.
[0185] Meanwhile, the process of obtaining the first verification result may include an error verification process as illustrated in FIG. 5. Accordingly, even if the maximum similarity is greater than or equal to a threshold value already stored in memory (110), it may be identified that an error has occurred that was not detected during the error verification process described in FIG. 5, and the system prompt (210) may be updated based on the data that caused the first verification result to be identified as a failure during the error verification process. Likewise, the electronic device (100) may perform a content summary based on the updated content prompt when performing the next content summary.
[0186] Referring to FIG. 9, when a second verification result is obtained through the second verification module (250), the processor (120) can update the content prompt (220) through the prompt update module (260).
[0187] Specifically, the second verification module (250) obtains the similarity between the multiple scenes and all the sentences of the adjacent chapters after going through the process of grouping the multiple scenes corresponding to each of the multiple adjacent chapters composed of sentences that passed the first verification result.
[0188] Next, the average value of the values obtained by multiplying the weights according to the locations of multiple scenes by similarity is calculated to determine whether it is below a threshold value stored in memory (110), and if it is above the threshold value, the second verification result is identified as a failure, and the content prompt (220) can be updated through a process of merging the group composed of the multiple scenes and the adjacent group. Accordingly, the electronic device (100) can perform a content summary based on the updated content prompt when performing the next content summary.
[0189] FIG. 10 is a flowchart illustrating a control method according to at least one embodiment of the present disclosure.
[0190] The content summarization method of FIG. 10 can be performed by an electronic device that stores an AI model trained to summarize content. Such an electronic device may be implemented to have a configuration as shown in FIG. 1, but is not necessarily limited thereto, and may be performed by an electronic device in which some configurations are deleted, changed, or added.
[0191] Referring to FIG. 10, a content summary is obtained from an AI model trained to respond to a content summary based on a system prompt and a content prompt (S910).
[0192] Next, a first verification result corresponding to the verification of the summary accuracy of each chapter included in the content summary and a second verification result corresponding to the verification of whether there is duplication between different chapters are obtained (S920).
[0193] Next, the system prompt or content prompt is updated based on the first verification result and the second verification result (S930).
[0194] Finally, determine whether the pre-set conditions are satisfied; if the set conditions are satisfied, stop the content summarization, otherwise return to the first step and perform the content summarization based on the updated system prompt and content prompt (S940).
[0195] At this time, the content prompt includes multiple image frames or text input corresponding to each image frame, and the content summary is text that includes at least one chapter summarizing multiple related scenes within the multiple image frames, and the chapter may include at least one sentence.
[0196] Additionally, the step of obtaining the first verification result may include the step of obtaining the similarity between each sentence included in one chapter and the content prompt, the step of identifying the first verification result as a failure if the maximum similarity among the similarities is less than a threshold, and the step of performing a function corresponding to the second verification that verifies whether there is overlap between different chapters if the maximum similarity is greater than or equal to the threshold.
[0197] Additionally, the step of obtaining the first verification result may include: a step of obtaining similarity between each sentence included in a chapter and a content prompt; a step of identifying the first verification result as a failure if the maximum similarity among the similarities for each sentence is less than a threshold; a step of obtaining multiple keywords corresponding to the 5 Ws and 1 H from the content prompt if the maximum similarity is greater than or equal to the threshold, and identifying the first verification result as a failure if at least one of the multiple keywords is not matched based on the keywords of the sentence having the maximum similarity with the obtained multiple keywords; and a step of performing a function corresponding to the second verification that verifies whether there is overlap between different chapters if all of the multiple keywords match.
[0198] In addition, the step of obtaining the first verification result involves the similarity between each sentence included in the chapter and the content prompt. It includes a step of obtaining based on the relationship, wherein SIM is a similarity calculation function, S is the number of sentences included in the chapter, s is the order of the sentences, L is the number of scenes included in the chapter, and l is the order of the scenes. is the s-th sentence among S sentences, is the lth scene out of L scenes, and The above and It can correspond to the embedding result value of a natural language model based on the value of.
[0199] Additionally, the step of obtaining the second verification result may include, for adjacent first and second chapters among the multiple chapters included in the content summary, the step of grouping multiple representative scenes among multiple scenes included in each chapter, and the step of obtaining the second verification result based on each representative scene of the first chapter and the entire sentence of the second chapter.
[0200] Additionally, it may further include a step of obtaining similarity for a representative scene based on each representative scene of Chapter 1 and the entire sentence of Chapter 2, and a step of updating a content prompt by identifying the second verification result as a failure if the average value of the obtained similarities is greater than or equal to a threshold.
[0201] In addition, the step of obtaining the second verification result includes the similarity between each representative scene of Chapter 1 and each sentence of Chapter 2, or the similarity between each representative scene of Chapter 2 and each sentence of Chapter 1. or
[0202] It includes a step of obtaining through the relationship, and among the relationships, SIM is a similarity calculation function, is the k-th chapter of chapters, is the first group corresponding to the k-th chapter, is a second group based on the first group, , and Is , and Embedding result value based on the value of, It can correspond to weight values based on the location of two or more representative scenes within the second group.
[0203] Meanwhile, according to at least one embodiment of the present disclosure, the various embodiments described above may be implemented as software comprising instructions stored on a machine-readable storage media that is readable by a machine (e.g., a computer).
[0204] The device is a device capable of calling instructions stored from a storage medium and operating according to the called instructions, and may include an electronic device (e.g., electronic device (A)) according to the disclosed embodiments. When the instruction is executed by a processor, the processor may perform a function corresponding to the instruction directly or by using other components under the control of the processor. The instruction may include code generated or executed by a compiler or an interpreter. The storage medium readable by the device may be provided in the form of a non-transitory storage medium. Here, "non-transitory" means only that the storage medium does not contain a signal and is tangible, and does not distinguish whether data is stored semi-permanently or temporarily in the storage medium.
[0205] Additionally, according to at least one embodiment of the present disclosure, the method according to the various embodiments described above may be provided as included in a computer program product. The computer program product may be traded between a seller and a buyer as a product. The computer program product may be distributed online in the form of a device-readable storage medium (e.g., compact disc read-only memory (CD-ROM)) or through an application store (e.g., Play Store™). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily created in a storage medium such as the memory of a manufacturer's server, an application store's server, or a relay server.
[0206] Additionally, according to at least one embodiment of the present disclosure, the various embodiments described above may be implemented in a recording medium readable by a computer or a similar device using software, hardware, or a combination thereof. In some cases, the embodiments described herein may be implemented as the processor itself. According to a software implementation, embodiments such as the procedures and functions described herein may be implemented as separate software. Each of the software may perform one or more functions and operations described herein.
[0207] Meanwhile, computer instructions for performing processing operations of the device according to the various embodiments described above may be stored in a non-transitory computer-readable medium. When computer instructions stored in such a non-transitory computer-readable medium are executed by the processor of a specific device, they cause the specific device to perform processing operations in the device according to the various embodiments described above. A non-transitory computer-readable medium refers to a medium that stores data semi-permanently and is readable by a device, rather than a medium that stores data for a short moment, such as a register, cache, or memory. Specific examples of a non-transitory computer-readable medium may include CDs, DVDs, hard disks, Blu-ray discs, USBs, memory cards, ROMs, etc.
[0208] Additionally, each component (e.g., module or program) according to the various embodiments described above may be composed of a single or multiple entities, and some of the aforementioned sub-components may be omitted, or other sub-components may be further included in the various embodiments. Generally or additionally, some components (e.g., module or program) may be integrated into a single entity to perform the functions performed by each of the respective components prior to integration in the same or similar manner. The operations performed by the module, program, or other components according to the various embodiments may be executed sequentially, in parallel, iteratively, or heuristically, or at least some operations may be executed in a different order, omitted, or other operations added.
[0209] A non-transient computer-readable recording medium comprising a program for executing a control method for an electronic device according to at least one embodiment of the present disclosure, wherein the control method comprises the steps of: obtaining a content summary from an AI model trained to correspond to a content summary based on a system prompt and a content prompt; obtaining a first verification result corresponding to a verification of the summary accuracy of each chapter included in the content summary and a second verification result corresponding to a verification of whether there is overlap between different chapters; and updating the system prompt or the content prompt based on the first verification result and the second verification result.
[0210] At this time, the content prompt includes multiple image frames or text input corresponding to each image frame, and the content summary is text that includes at least one chapter summarizing multiple related scenes within the multiple image frames, and the chapter may include at least one sentence.
[0211] Additionally, the step of obtaining the first verification result may include the step of obtaining the similarity between each sentence included in one chapter and the content prompt, the step of identifying the first verification result as a failure if the maximum similarity among the similarities is less than a threshold, and the step of performing a function corresponding to the second verification that verifies whether there is overlap between different chapters if the maximum similarity is greater than or equal to the threshold.
[0212] Additionally, the step of obtaining the first verification result may include: a step of obtaining similarity between each sentence included in a chapter and a content prompt; a step of identifying the first verification result as a failure if the maximum similarity among the similarities for each sentence is less than a threshold; a step of obtaining multiple keywords corresponding to the 5 Ws and 1 H from the content prompt if the maximum similarity is greater than or equal to the threshold, and identifying the first verification result as a failure if at least one of the multiple keywords is not matched based on the keywords of the sentence having the maximum similarity with the obtained multiple keywords; and a step of performing a function corresponding to the second verification that verifies whether there is overlap between different chapters if all of the multiple keywords match.
[0213] Although various embodiments of the present disclosure have been described above, the embodiments described above do not necessarily have to be implemented individually, and multiple embodiments may be combined and implemented together, either partially or wholly.
[0214] Furthermore, the present disclosure is not limited to the specific embodiments described above, and various modifications are possible by those skilled in the art without departing from the essence of the present disclosure as claimed in the claims; moreover, such modifications should not be understood individually from the technical spirit or perspective of the present disclosure.
Claims
1. In an electronic device, Memory for storing at least one instruction; and It includes at least one processor that executes the above at least one instruction; and The above-mentioned at least one processor is, Obtain a content summary from an AI model trained to respond to a content summary based on system prompts and content prompts, and An electronic device that updates the system prompt or the content prompt based on a first verification result corresponding to the verification of summary accuracy of each chapter included in the content summary and a second verification result corresponding to the verification of duplication between different chapters.
2. In Paragraph 1, The above content prompt is, It includes multiple image frames or text inputs corresponding to each image frame, and The above content summary is, The text includes at least one chapter summarizing a plurality of related scenes within the plurality of image frames, and The above chapter is an electronic device comprising at least one sentence.
3. In Paragraph 2, The above-mentioned at least one processor is, Obtain the similarity between each sentence included in a chapter and the above content prompt, and If the maximum similarity among the above similarities is less than the threshold, the first verification result is identified as a failure, and An electronic device that performs a function corresponding to a second verification that verifies whether there is overlap between different chapters when the maximum similarity is greater than or equal to the threshold.
4. In Paragraph 2, The above-mentioned at least one processor is, Obtain the similarity between each sentence included in a chapter and the above content prompt, and If the maximum similarity among the similarities for each of the above sentences is less than the threshold, the above first verification result is identified as a failure, and If the above maximum similarity is greater than or equal to the above threshold, multiple keywords corresponding to the 5 Ws and 1 H are obtained from the above content prompt, and Based on the acquired plurality of keywords and the keyword of the sentence having the maximum similarity, if at least one of the plurality of keywords is not matched, the first verification result is identified as a failure, and An electronic device that performs a function corresponding to a second verification that verifies whether there is overlap between the different chapters when all of the above multiple keywords are matched.
5. In Paragraph 3, The above-mentioned at least one processor is, The similarity between each sentence included in the above chapter and the above content prompt, Acquired based on the relationship, Among the above relationships, SIM is a similarity calculation function, S is the number of sentences included in the chapter, s is the order of the sentences, L is the number of scenes included in the chapter, and l is the order of the scenes. is the s-th sentence among S sentences, is the lth scene out of L scenes, and The above and An electronic device corresponding to the embedding result value of a natural language model based on the value of 6. In Paragraph 2, The above-mentioned at least one processor is, For adjacent Chapter 1 and Chapter 2 among the multiple chapters included in the above content summary, group multiple representative scenes among the multiple scenes included in each chapter, and An electronic device that obtains the second verification result based on each representative scene of the first chapter and the entire sentence of the second chapter.
7. In Paragraph 6, The above-mentioned at least one processor is, Based on each representative scene of the above Chapter 1 and the entire sentence of the above Chapter 2, the similarity for the representative scene is obtained, and An electronic device that updates the content prompt by identifying the second verification result as a failure if the average value of the acquired similarities is greater than or equal to a threshold.
8. In Paragraph 7, The above-mentioned at least one processor is, The similarity between each representative scene of the above-mentioned first chapter and each sentence of the above-mentioned second chapter, or the similarity between each representative scene of the above-mentioned second chapter and each sentence of the above-mentioned first chapter, or Obtained through the relationship, Among the above relationships, SIM is a similarity calculation function, is the k-th chapter among the above chapters, is the first group corresponding to the k-th chapter above, is a second group based on the first group above, , and The above , and Embedding result value based on the value of, An electronic device corresponding to weight values according to the positions of two or more representative scenes within the second group.
9. In a method for controlling an electronic device, A step of obtaining a content summary from an AI model trained to respond to a content summary based on system prompts and content prompts; A step of obtaining a first verification result corresponding to the verification of summary accuracy of each chapter included in the above content summary and a second verification result corresponding to the verification of whether there is overlap between different chapters; and A control method comprising the step of updating the system prompt or the content prompt based on the first verification result and the second verification result.
10. In Paragraph 9, The above content prompt is, It includes multiple image frames or text inputs corresponding to each image frame, and The above content summary is, The text includes at least one chapter summarizing a plurality of related scenes within the plurality of image frames, and The above chapter is a control method comprising at least one sentence.
11. In Paragraph 10, The step of obtaining the above-mentioned first verification result is, A step of obtaining similarity between each sentence included in one chapter and the content prompt; If the maximum similarity among the above similarities is less than a threshold, the step of identifying the first verification result as a failure; and A control method comprising: a step of performing a function corresponding to a second verification that verifies whether there is overlap between different chapters when the maximum similarity is greater than or equal to the threshold.
12. In Paragraph 10, The step of obtaining the above-mentioned first verification result is, A step of obtaining similarity between each sentence included in one chapter and the content prompt; A step of identifying the first verification result as a failure if the maximum similarity among the similarities for each of the above sentences is less than a threshold; A step of obtaining a plurality of keywords corresponding to the 5 Ws and 1 H from the content prompt if the maximum similarity is greater than or equal to the threshold, and identifying the first verification result as a failure if at least one of the plurality of keywords is not matched based on the obtained plurality of keywords and the keyword of the sentence having the maximum similarity; and A control method comprising: a step of performing a function corresponding to a second verification that verifies whether there is overlap between the different chapters when all of the above multiple keywords are matched.
13. In Paragraph 11, The step of obtaining the above-mentioned first verification result is, The similarity between each sentence included in the above chapter and the above content prompt, A step of obtaining based on the relationship of; including, Among the above relationships, SIM is a similarity calculation function, S is the number of sentences included in the chapter, s is the order of the sentences, L is the number of scenes included in the chapter, and l is the order of the scenes. is the s-th sentence among S sentences, is the lth scene out of L scenes, and The above and A control method corresponding to the embedding result value of a natural language model based on the value of.
14. In Paragraph 10, The step of obtaining the above second verification result is, For adjacent first and second chapters among the plurality of chapters included in the above content summary, a step of grouping a plurality of representative scenes among the plurality of scenes included in each chapter; and A control method comprising the step of obtaining the second verification result based on each representative scene of the first chapter and the entire sentence of the second chapter.
15. A non-transient computer-readable recording medium comprising a program for executing a method of controlling an electronic device, The above control method is, A step of obtaining a content summary from an AI model trained to respond to a content summary based on system prompts and content prompts; A step of obtaining a first verification result corresponding to the verification of summary accuracy of each chapter included in the above content summary and a second verification result corresponding to the verification of whether there is overlap between different chapters; and A recording medium comprising the step of updating the system prompt or the content prompt based on the first verification result and the second verification result.
